]> git.saurik.com Git - wxWidgets.git/blame - configure
corrections for Mac OS X
[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
71 --with-cygwin use Cygwin for MS-Windows"
72ac_help="$ac_help
73 --with-mingw use GCC Minimal MS-Windows"
74ac_help="$ac_help
75 --with-pm use OS/2 Presentation Manager"
1e6feb95 76ac_help="$ac_help
b3e8d00a 77 --with-mgl use SciTech MGL"
698dcdb6 78ac_help="$ac_help
8168de4c 79 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
698dcdb6 80ac_help="$ac_help
8168de4c 81 --with-libpng use libpng (PNG image format)"
698dcdb6 82ac_help="$ac_help
8168de4c 83 --with-libjpeg use libjpeg (JPEG file format)"
698dcdb6 84ac_help="$ac_help
8168de4c 85 --with-libtiff use libtiff (TIFF file format)"
698dcdb6 86ac_help="$ac_help
8168de4c 87 --with-freetype use freetype (font rasterizer)"
698dcdb6 88ac_help="$ac_help
8168de4c 89 --with-opengl use OpenGL (or Mesa)"
698dcdb6 90ac_help="$ac_help
8168de4c 91 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
3e44f09d
VZ
92ac_help="$ac_help
93 --with-regex enable support for wxRegEx class"
698dcdb6 94ac_help="$ac_help
8168de4c 95 --with-zlib use zlib for LZW compression"
698dcdb6 96ac_help="$ac_help
8168de4c 97 --with-odbc use the IODBC and wxODBC classes"
698dcdb6 98ac_help="$ac_help
8168de4c 99 --enable-shared create shared library code"
698dcdb6 100ac_help="$ac_help
3a922bb4 101 --enable-soname set the DT_SONAME field in ELF shared libraries"
698dcdb6 102ac_help="$ac_help
8168de4c 103 --enable-optimise create optimised code"
698dcdb6 104ac_help="$ac_help
8168de4c 105 --enable-debug same as debug_flag and debug_info"
683dccda
GD
106ac_help="$ac_help
107 --enable-precomp enable use of precompiled headers (Mac OS X)"
698dcdb6 108ac_help="$ac_help
8168de4c 109 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
698dcdb6 110ac_help="$ac_help
8168de4c 111 --enable-debug_info create code with debugging information"
698dcdb6 112ac_help="$ac_help
8168de4c 113 --enable-debug_gdb create code with extra GDB debugging information"
698dcdb6 114ac_help="$ac_help
8168de4c 115 --enable-debug_cntxt use wxDebugContext"
698dcdb6 116ac_help="$ac_help
8168de4c 117 --enable-mem_tracing create code with memory tracing"
698dcdb6 118ac_help="$ac_help
8168de4c 119 --enable-profile create code with profiling information"
698dcdb6 120ac_help="$ac_help
8168de4c 121 --enable-no_rtti create code without RTTI information"
698dcdb6 122ac_help="$ac_help
b3e8d00a 123 --enable-no_exceptions create code without C++ exceptions handling"
698dcdb6 124ac_help="$ac_help
8168de4c 125 --enable-permissive compile code disregarding strict ANSI"
698dcdb6 126ac_help="$ac_help
8168de4c 127 --enable-no_deps create code without dependency information"
54276ccf 128ac_help="$ac_help
b3e8d00a 129 --enable-compat20 enable wxWindows 2.0 compatibility"
54276ccf 130ac_help="$ac_help
b3e8d00a 131 --enable-compat22 enable wxWindows 2.2 compatibility"
698dcdb6 132ac_help="$ac_help
8168de4c 133 --enable-intl use internationalization system"
698dcdb6 134ac_help="$ac_help
8168de4c 135 --enable-config use wxConfig (and derived) classes"
698dcdb6 136ac_help="$ac_help
8168de4c 137 --enable-sockets use socket/network classes"
698dcdb6 138ac_help="$ac_help
8168de4c 139 --enable-ipc use interprocess communication (wxSocket etc.)"
698dcdb6 140ac_help="$ac_help
8168de4c 141 --enable-cmdline use wxCmdLineParser class"
1e6feb95 142ac_help="$ac_help
8168de4c 143 --enable-datetime use wxDateTime class"
1e6feb95 144ac_help="$ac_help
8168de4c 145 --enable-timedate use obsolete wxDate/wxTime classes"
1e6feb95 146ac_help="$ac_help
8168de4c 147 --enable-stopwatch use wxStopWatch class"
1e6feb95 148ac_help="$ac_help
8168de4c 149 --enable-dialupman use dialup network classes"
698dcdb6 150ac_help="$ac_help
8168de4c 151 --enable-apple_ieee use the Apple IEEE codec"
698dcdb6 152ac_help="$ac_help
8168de4c 153 --enable-timer use wxTimer class"
698dcdb6 154ac_help="$ac_help
8168de4c 155 --enable-wave use wxWave class"
698dcdb6 156ac_help="$ac_help
8168de4c 157 --enable-fraction use wxFraction class"
698dcdb6 158ac_help="$ac_help
8168de4c 159 --enable-dynlib use wxLibrary class for DLL loading"
698dcdb6 160ac_help="$ac_help
8168de4c 161 --enable-longlong use wxLongLong class"
698dcdb6 162ac_help="$ac_help
8168de4c 163 --enable-geometry use geometry class"
698dcdb6 164ac_help="$ac_help
8168de4c 165 --enable-log use logging system"
698dcdb6 166ac_help="$ac_help
8168de4c 167 --enable-streams use wxStream etc classes"
698dcdb6 168ac_help="$ac_help
8168de4c 169 --enable-file use wxFile classes"
698dcdb6 170ac_help="$ac_help
8168de4c 171 --enable-ffile use wxFFile classes"
1e6feb95 172ac_help="$ac_help
8168de4c 173 --enable-textfile use wxTextFile classes"
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
8168de4c 195 --enable-mimetypes 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"
1e6feb95 222ac_help="$ac_help
8168de4c 223 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 224ac_help="$ac_help
8168de4c 225 --enable-prologio use Prolog IO library"
698dcdb6 226ac_help="$ac_help
8168de4c 227 --enable-resources use wxWindows resources"
698dcdb6 228ac_help="$ac_help
8168de4c 229 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 230ac_help="$ac_help
8168de4c 231 --enable-clipboard use wxClipboard classes"
698dcdb6 232ac_help="$ac_help
8168de4c 233 --enable-dnd use Drag'n'Drop classes"
698dcdb6 234ac_help="$ac_help
8168de4c 235 --enable-metafile use win32 metafiles"
698dcdb6 236ac_help="$ac_help
24176f2c 237 --enable-treelayout use wxTreeLayout classes"
698dcdb6 238ac_help="$ac_help
8168de4c 239 --enable-controls use all usual controls"
698dcdb6 240ac_help="$ac_help
8168de4c 241 --enable-accel use accelerators"
698dcdb6 242ac_help="$ac_help
8168de4c 243 --enable-button use wxButton class"
698dcdb6 244ac_help="$ac_help
8168de4c 245 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 246ac_help="$ac_help
8168de4c 247 --enable-calendar use wxCalendarCtrl class"
1e6feb95 248ac_help="$ac_help
8168de4c 249 --enable-caret use wxCaret class"
1e6feb95 250ac_help="$ac_help
8168de4c 251 --enable-checkbox use wxCheckBox class"
698dcdb6 252ac_help="$ac_help
8168de4c 253 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 254ac_help="$ac_help
8168de4c 255 --enable-choice use wxChoice class"
698dcdb6 256ac_help="$ac_help
8168de4c 257 --enable-combobox use wxComboBox classes"
698dcdb6 258ac_help="$ac_help
8168de4c 259 --enable-gauge use wxGauge class"
698dcdb6 260ac_help="$ac_help
8168de4c 261 --enable-grid use wxGrid class"
698dcdb6 262ac_help="$ac_help
8168de4c 263 --enable-newgrid use new wxGrid class"
698dcdb6 264ac_help="$ac_help
8168de4c 265 --enable-imaglist use wxImageList class"
698dcdb6 266ac_help="$ac_help
8168de4c 267 --enable-listbox use wxListBox class"
698dcdb6 268ac_help="$ac_help
8168de4c 269 --enable-listctrl use wxListCtrl class"
698dcdb6 270ac_help="$ac_help
8168de4c 271 --enable-notebook use wxNotebook class"
24176f2c
GD
272ac_help="$ac_help
273 --enable-propsheet use wxPropertySheet class"
698dcdb6 274ac_help="$ac_help
8168de4c 275 --enable-radiobox use wxRadioBox class"
698dcdb6 276ac_help="$ac_help
8168de4c 277 --enable-radiobtn use wxRadioButton class"
698dcdb6 278ac_help="$ac_help
8168de4c 279 --enable-sash use wxSashWindow class"
698dcdb6 280ac_help="$ac_help
8168de4c 281 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 282ac_help="$ac_help
8168de4c 283 --enable-slider use wxSlider class"
698dcdb6 284ac_help="$ac_help
8168de4c 285 --enable-spinbtn use wxSpinButton class"
698dcdb6 286ac_help="$ac_help
8168de4c 287 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 288ac_help="$ac_help
8168de4c 289 --enable-splitter use wxSplitterWindow class"
698dcdb6 290ac_help="$ac_help
8168de4c 291 --enable-statbmp use wxStaticBitmap class"
698dcdb6 292ac_help="$ac_help
8168de4c 293 --enable-statbox use wxStaticBox class"
698dcdb6 294ac_help="$ac_help
8168de4c 295 --enable-statline use wxStaticLine class"
698dcdb6 296ac_help="$ac_help
8168de4c 297 --enable-stattext use wxStaticText class"
1e6feb95 298ac_help="$ac_help
8168de4c 299 --enable-statusbar use wxStatusBar class"
698dcdb6 300ac_help="$ac_help
8168de4c 301 --enable-tabdialog use wxTabControl class"
698dcdb6 302ac_help="$ac_help
8168de4c 303 --enable-textctrl use wxTextCtrl class"
1e6feb95 304ac_help="$ac_help
8168de4c 305 --enable-togglebtn use wxToggleButton class"
698dcdb6 306ac_help="$ac_help
8168de4c 307 --enable-toolbar use wxToolBar class"
698dcdb6 308ac_help="$ac_help
8168de4c 309 --enable-tbarnative use native wxToolBar class"
698dcdb6 310ac_help="$ac_help
8168de4c 311 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 312ac_help="$ac_help
8168de4c 313 --enable-treectrl use wxTreeCtrl class"
9f41d601
RR
314ac_help="$ac_help
315 --enable-popupwin use wxPopUpWindow class"
698dcdb6 316ac_help="$ac_help
b3e8d00a 317 --enable-commondlg use all common dialogs"
698dcdb6 318ac_help="$ac_help
8168de4c 319 --enable-choicedlg use wxChoiceDialog"
1e6feb95 320ac_help="$ac_help
8168de4c 321 --enable-coldlg use wxColourDialog"
1e6feb95 322ac_help="$ac_help
8168de4c 323 --enable-filedlg use wxFileDialog"
8db37e06
VZ
324ac_help="$ac_help
325 --enable-finddlg use wxFindReplaceDialog"
1e6feb95 326ac_help="$ac_help
8168de4c 327 --enable-fontdlg use wxFontDialog"
1e6feb95 328ac_help="$ac_help
8168de4c 329 --enable-dirdlg use wxDirDialog"
698dcdb6 330ac_help="$ac_help
8168de4c 331 --enable-msgdlg use wxMessageDialog"
1e6feb95 332ac_help="$ac_help
8168de4c 333 --enable-numberdlg use wxNumberEntryDialog"
cbca9943
VZ
334ac_help="$ac_help
335 --enable-splash use wxSplashScreen"
1e6feb95 336ac_help="$ac_help
8168de4c 337 --enable-textdlg use wxTextDialog"
698dcdb6 338ac_help="$ac_help
8168de4c 339 --enable-tipdlg use startup tips"
698dcdb6 340ac_help="$ac_help
8168de4c 341 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
342ac_help="$ac_help
343 --enable-wizarddlg use wxWizard"
698dcdb6 344ac_help="$ac_help
8168de4c 345 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 346ac_help="$ac_help
8168de4c 347 --enable-miniframe use wxMiniFrame class"
698dcdb6 348ac_help="$ac_help
8168de4c 349 --enable-tooltips use wxToolTip class"
698dcdb6 350ac_help="$ac_help
8168de4c 351 --enable-splines use spline drawing code"
698dcdb6 352ac_help="$ac_help
8168de4c 353 --enable-validators use wxValidator and derived classes"
698dcdb6 354ac_help="$ac_help
8168de4c 355 --enable-busyinfo use wxBusyInfo"
698dcdb6 356ac_help="$ac_help
b3e8d00a 357 --enable-joystick use wxJoystick (Linux only)"
698dcdb6 358ac_help="$ac_help
8168de4c 359 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
360ac_help="$ac_help
361 --enable-dragimage use wxDragImage"
edae8572
VZ
362ac_help="$ac_help
363 --enable-palette use wxPalette class"
1e6feb95 364ac_help="$ac_help
8168de4c 365 --enable-image use wxImage class"
698dcdb6 366ac_help="$ac_help
8168de4c 367 --enable-gif use gif images (GIF file format)"
698dcdb6 368ac_help="$ac_help
8168de4c 369 --enable-pcx use pcx images (PCX file format)"
698dcdb6 370ac_help="$ac_help
8168de4c 371 --enable-pnm use pnm images (PNM file format)"
698dcdb6 372ac_help="$ac_help
8168de4c 373 --enable-xpm use xpm images (XPM file format)"
698dcdb6
VZ
374ac_help="$ac_help
375 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
376ac_help="$ac_help
377 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
378ac_help="$ac_help
379 --disable-gtktest Do not try to compile and run a test GTK program"
380ac_help="$ac_help
381 --with-x use the X Window System"
10f2d63a
VZ
382
383# Initialize some variables set by options.
384# The variables have the same names as the options, with
385# dashes changed to underlines.
698dcdb6
VZ
386build=NONE
387cache_file=./config.cache
10f2d63a 388exec_prefix=NONE
698dcdb6 389host=NONE
10f2d63a 390no_create=
698dcdb6 391nonopt=NONE
10f2d63a
VZ
392no_recursion=
393prefix=NONE
394program_prefix=NONE
395program_suffix=NONE
396program_transform_name=s,x,x,
397silent=
398site=
399srcdir=
698dcdb6 400target=NONE
10f2d63a
VZ
401verbose=
402x_includes=NONE
403x_libraries=NONE
404bindir='${exec_prefix}/bin'
405sbindir='${exec_prefix}/sbin'
406libexecdir='${exec_prefix}/libexec'
407datadir='${prefix}/share'
408sysconfdir='${prefix}/etc'
409sharedstatedir='${prefix}/com'
410localstatedir='${prefix}/var'
411libdir='${exec_prefix}/lib'
412includedir='${prefix}/include'
413oldincludedir='/usr/include'
414infodir='${prefix}/info'
415mandir='${prefix}/man'
416
698dcdb6
VZ
417# Initialize some other variables.
418subdirs=
419MFLAGS= MAKEFLAGS=
420SHELL=${CONFIG_SHELL-/bin/sh}
421# Maximum number of lines to put in a shell here document.
422ac_max_here_lines=12
10f2d63a
VZ
423
424ac_prev=
425for ac_option
426do
698dcdb6 427
10f2d63a
VZ
428 # If the previous option needs an argument, assign it.
429 if test -n "$ac_prev"; then
430 eval "$ac_prev=\$ac_option"
431 ac_prev=
432 continue
433 fi
434
698dcdb6
VZ
435 case "$ac_option" in
436 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
437 *) ac_optarg= ;;
438 esac
10f2d63a
VZ
439
440 # Accept the important Cygnus configure options, so we can diagnose typos.
441
698dcdb6 442 case "$ac_option" in
10f2d63a
VZ
443
444 -bindir | --bindir | --bindi | --bind | --bin | --bi)
445 ac_prev=bindir ;;
446 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 447 bindir="$ac_optarg" ;;
10f2d63a
VZ
448
449 -build | --build | --buil | --bui | --bu)
698dcdb6 450 ac_prev=build ;;
10f2d63a 451 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 452 build="$ac_optarg" ;;
10f2d63a
VZ
453
454 -cache-file | --cache-file | --cache-fil | --cache-fi \
455 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
456 ac_prev=cache_file ;;
457 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
458 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 459 cache_file="$ac_optarg" ;;
10f2d63a
VZ
460
461 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
462 ac_prev=datadir ;;
463 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
464 | --da=*)
698dcdb6 465 datadir="$ac_optarg" ;;
10f2d63a
VZ
466
467 -disable-* | --disable-*)
698dcdb6 468 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 469 # Reject names that are not valid shell variable names.
698dcdb6
VZ
470 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
471 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
472 fi
473 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
474 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
475
476 -enable-* | --enable-*)
698dcdb6 477 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 478 # Reject names that are not valid shell variable names.
698dcdb6
VZ
479 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
480 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
481 fi
482 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
483 case "$ac_option" in
484 *=*) ;;
10f2d63a
VZ
485 *) ac_optarg=yes ;;
486 esac
698dcdb6 487 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
488
489 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
490 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
491 | --exec | --exe | --ex)
492 ac_prev=exec_prefix ;;
493 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
494 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
495 | --exec=* | --exe=* | --ex=*)
698dcdb6 496 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
497
498 -gas | --gas | --ga | --g)
499 # Obsolete; use --with-gas.
500 with_gas=yes ;;
501
698dcdb6
VZ
502 -help | --help | --hel | --he)
503 # Omit some internal or obsolete options to make the list less imposing.
504 # This message is too long to be a string in the A/UX 3.1 sh.
505 cat << EOF
506Usage: configure [options] [host]
507Options: [defaults in brackets after descriptions]
508Configuration:
509 --cache-file=FILE cache test results in FILE
510 --help print this message
511 --no-create do not create output files
512 --quiet, --silent do not print \`checking...' messages
513 --version print the version of autoconf that created configure
514Directory and file names:
515 --prefix=PREFIX install architecture-independent files in PREFIX
516 [$ac_default_prefix]
517 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
518 [same as prefix]
519 --bindir=DIR user executables in DIR [EPREFIX/bin]
520 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
521 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
522 --datadir=DIR read-only architecture-independent data in DIR
523 [PREFIX/share]
524 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
525 --sharedstatedir=DIR modifiable architecture-independent data in DIR
526 [PREFIX/com]
527 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
528 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
529 --includedir=DIR C header files in DIR [PREFIX/include]
530 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
531 --infodir=DIR info documentation in DIR [PREFIX/info]
532 --mandir=DIR man documentation in DIR [PREFIX/man]
533 --srcdir=DIR find the sources in DIR [configure dir or ..]
534 --program-prefix=PREFIX prepend PREFIX to installed program names
535 --program-suffix=SUFFIX append SUFFIX to installed program names
536 --program-transform-name=PROGRAM
537 run sed PROGRAM on installed program names
538EOF
539 cat << EOF
540Host type:
541 --build=BUILD configure for building on BUILD [BUILD=HOST]
542 --host=HOST configure for HOST [guessed]
543 --target=TARGET configure for TARGET [TARGET=HOST]
544Features and packages:
545 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
546 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
547 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
548 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
549 --x-includes=DIR X include files are in DIR
550 --x-libraries=DIR X library files are in DIR
551EOF
552 if test -n "$ac_help"; then
553 echo "--enable and --with options recognized:$ac_help"
554 fi
555 exit 0 ;;
10f2d63a
VZ
556
557 -host | --host | --hos | --ho)
698dcdb6 558 ac_prev=host ;;
10f2d63a 559 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 560 host="$ac_optarg" ;;
10f2d63a
VZ
561
562 -includedir | --includedir | --includedi | --included | --include \
563 | --includ | --inclu | --incl | --inc)
564 ac_prev=includedir ;;
565 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
566 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 567 includedir="$ac_optarg" ;;
10f2d63a
VZ
568
569 -infodir | --infodir | --infodi | --infod | --info | --inf)
570 ac_prev=infodir ;;
571 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 572 infodir="$ac_optarg" ;;
10f2d63a
VZ
573
574 -libdir | --libdir | --libdi | --libd)
575 ac_prev=libdir ;;
576 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 577 libdir="$ac_optarg" ;;
10f2d63a
VZ
578
579 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
580 | --libexe | --libex | --libe)
581 ac_prev=libexecdir ;;
582 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
583 | --libexe=* | --libex=* | --libe=*)
698dcdb6 584 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
585
586 -localstatedir | --localstatedir | --localstatedi | --localstated \
587 | --localstate | --localstat | --localsta | --localst \
588 | --locals | --local | --loca | --loc | --lo)
589 ac_prev=localstatedir ;;
590 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
591 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
592 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 593 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
594
595 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
596 ac_prev=mandir ;;
597 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 598 mandir="$ac_optarg" ;;
10f2d63a
VZ
599
600 -nfp | --nfp | --nf)
601 # Obsolete; use --without-fp.
602 with_fp=no ;;
603
604 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
605 | --no-cr | --no-c)
606 no_create=yes ;;
607
608 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
609 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
610 no_recursion=yes ;;
611
612 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
613 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
614 | --oldin | --oldi | --old | --ol | --o)
615 ac_prev=oldincludedir ;;
616 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
617 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
618 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 619 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
620
621 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
622 ac_prev=prefix ;;
623 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 624 prefix="$ac_optarg" ;;
10f2d63a
VZ
625
626 -program-prefix | --program-prefix | --program-prefi | --program-pref \
627 | --program-pre | --program-pr | --program-p)
628 ac_prev=program_prefix ;;
629 -program-prefix=* | --program-prefix=* | --program-prefi=* \
630 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 631 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
632
633 -program-suffix | --program-suffix | --program-suffi | --program-suff \
634 | --program-suf | --program-su | --program-s)
635 ac_prev=program_suffix ;;
636 -program-suffix=* | --program-suffix=* | --program-suffi=* \
637 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 638 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
639
640 -program-transform-name | --program-transform-name \
641 | --program-transform-nam | --program-transform-na \
642 | --program-transform-n | --program-transform- \
643 | --program-transform | --program-transfor \
644 | --program-transfo | --program-transf \
645 | --program-trans | --program-tran \
646 | --progr-tra | --program-tr | --program-t)
647 ac_prev=program_transform_name ;;
648 -program-transform-name=* | --program-transform-name=* \
649 | --program-transform-nam=* | --program-transform-na=* \
650 | --program-transform-n=* | --program-transform-=* \
651 | --program-transform=* | --program-transfor=* \
652 | --program-transfo=* | --program-transf=* \
653 | --program-trans=* | --program-tran=* \
654 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 655 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
656
657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
658 | -silent | --silent | --silen | --sile | --sil)
659 silent=yes ;;
660
661 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
662 ac_prev=sbindir ;;
663 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
664 | --sbi=* | --sb=*)
698dcdb6 665 sbindir="$ac_optarg" ;;
10f2d63a
VZ
666
667 -sharedstatedir | --sharedstatedir | --sharedstatedi \
668 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
669 | --sharedst | --shareds | --shared | --share | --shar \
670 | --sha | --sh)
671 ac_prev=sharedstatedir ;;
672 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
673 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
674 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
675 | --sha=* | --sh=*)
698dcdb6 676 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
677
678 -site | --site | --sit)
679 ac_prev=site ;;
680 -site=* | --site=* | --sit=*)
698dcdb6 681 site="$ac_optarg" ;;
10f2d63a
VZ
682
683 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
684 ac_prev=srcdir ;;
685 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 686 srcdir="$ac_optarg" ;;
10f2d63a
VZ
687
688 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
689 | --syscon | --sysco | --sysc | --sys | --sy)
690 ac_prev=sysconfdir ;;
691 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
692 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 693 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
694
695 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 696 ac_prev=target ;;
10f2d63a 697 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 698 target="$ac_optarg" ;;
10f2d63a
VZ
699
700 -v | -verbose | --verbose | --verbos | --verbo | --verb)
701 verbose=yes ;;
702
698dcdb6
VZ
703 -version | --version | --versio | --versi | --vers)
704 echo "configure generated by autoconf version 2.13"
705 exit 0 ;;
10f2d63a
VZ
706
707 -with-* | --with-*)
698dcdb6 708 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 709 # Reject names that are not valid shell variable names.
698dcdb6
VZ
710 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
711 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
712 fi
10f2d63a 713 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
714 case "$ac_option" in
715 *=*) ;;
10f2d63a
VZ
716 *) ac_optarg=yes ;;
717 esac
698dcdb6 718 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
719
720 -without-* | --without-*)
698dcdb6 721 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 722 # Reject names that are not valid shell variable names.
698dcdb6
VZ
723 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
724 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
725 fi
726 ac_package=`echo $ac_package| sed 's/-/_/g'`
727 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
728
729 --x)
730 # Obsolete; use --with-x.
731 with_x=yes ;;
732
733 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
734 | --x-incl | --x-inc | --x-in | --x-i)
735 ac_prev=x_includes ;;
736 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
737 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 738 x_includes="$ac_optarg" ;;
10f2d63a
VZ
739
740 -x-libraries | --x-libraries | --x-librarie | --x-librari \
741 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
742 ac_prev=x_libraries ;;
743 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
744 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 745 x_libraries="$ac_optarg" ;;
10f2d63a 746
698dcdb6 747 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
748 ;;
749
750 *)
698dcdb6
VZ
751 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
752 echo "configure: warning: $ac_option: invalid host type" 1>&2
753 fi
754 if test "x$nonopt" != xNONE; then
755 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
756 fi
757 nonopt="$ac_option"
10f2d63a
VZ
758 ;;
759
760 esac
761done
762
763if test -n "$ac_prev"; then
698dcdb6
VZ
764 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
765fi
766
767trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
768
769# File descriptor usage:
770# 0 standard input
771# 1 file creation
772# 2 errors and warnings
773# 3 some systems may open it to /dev/tty
774# 4 used on the Kubota Titan
775# 6 checking for... messages and results
776# 5 compiler messages saved in config.log
777if test "$silent" = yes; then
778 exec 6>/dev/null
779else
780 exec 6>&1
10f2d63a 781fi
698dcdb6
VZ
782exec 5>./config.log
783
784echo "\
785This file contains any messages produced by compilers while
786running configure, to aid debugging if configure makes a mistake.
787" 1>&5
10f2d63a 788
698dcdb6
VZ
789# Strip out --no-create and --no-recursion so they do not pile up.
790# Also quote any args containing shell metacharacters.
791ac_configure_args=
792for ac_arg
10f2d63a 793do
698dcdb6
VZ
794 case "$ac_arg" in
795 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
796 | --no-cr | --no-c) ;;
797 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
798 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
799 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
800 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
801 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
802 esac
803done
804
698dcdb6
VZ
805# NLS nuisances.
806# Only set these to C if already set. These must not be set unconditionally
807# because not all systems understand e.g. LANG=C (notably SCO).
808# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
809# Non-C LC_CTYPE values break the ctype check.
810if test "${LANG+set}" = set; then LANG=C; export LANG; fi
811if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
812if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
813if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 814
698dcdb6
VZ
815# confdefs.h avoids OS command line length limits that DEFS can exceed.
816rm -rf conftest* confdefs.h
817# AIX cpp loses on an empty file, so make sure it contains at least a newline.
818echo > confdefs.h
10f2d63a 819
698dcdb6
VZ
820# A filename unique to this package, relative to the directory that
821# configure is in, which we can look for to find out if srcdir is correct.
822ac_unique_file=wx-config.in
10f2d63a
VZ
823
824# Find the source files, if location was not specified.
825if test -z "$srcdir"; then
826 ac_srcdir_defaulted=yes
827 # Try the directory containing this script, then its parent.
828 ac_prog=$0
698dcdb6 829 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
830 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
831 srcdir=$ac_confdir
832 if test ! -r $srcdir/$ac_unique_file; then
833 srcdir=..
834 fi
835else
836 ac_srcdir_defaulted=no
837fi
838if test ! -r $srcdir/$ac_unique_file; then
839 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 840 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 841 else
698dcdb6 842 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
843 fi
844fi
698dcdb6 845srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
846
847# Prefer explicitly selected file to automatically selected ones.
848if test -z "$CONFIG_SITE"; then
849 if test "x$prefix" != xNONE; then
850 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
851 else
852 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
853 fi
854fi
855for ac_site_file in $CONFIG_SITE; do
856 if test -r "$ac_site_file"; then
698dcdb6 857 echo "loading site script $ac_site_file"
10f2d63a
VZ
858 . "$ac_site_file"
859 fi
860done
861
862if test -r "$cache_file"; then
698dcdb6
VZ
863 echo "loading cache $cache_file"
864 . $cache_file
10f2d63a 865else
698dcdb6
VZ
866 echo "creating cache $cache_file"
867 > $cache_file
10f2d63a
VZ
868fi
869
870ac_ext=c
698dcdb6 871# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 872ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
873ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
874ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
875cross_compiling=$ac_cv_prog_cc_cross
876
877ac_exeext=
878ac_objext=o
879if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
880 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
881 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
882 ac_n= ac_c='
883' ac_t=' '
884 else
885 ac_n=-n ac_c= ac_t=
886 fi
10f2d63a 887else
698dcdb6 888 ac_n= ac_c='\c' ac_t=
10f2d63a 889fi
698dcdb6
VZ
890
891
10f2d63a 892
7c66a493
VZ
893ac_aux_dir=
894for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
895 if test -f $ac_dir/install-sh; then
896 ac_aux_dir=$ac_dir
897 ac_install_sh="$ac_aux_dir/install-sh -c"
898 break
899 elif 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 fi
904done
905if test -z "$ac_aux_dir"; then
698dcdb6 906 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 907fi
698dcdb6
VZ
908ac_config_guess=$ac_aux_dir/config.guess
909ac_config_sub=$ac_aux_dir/config.sub
910ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 911
698dcdb6
VZ
912
913# Do some error checking and defaulting for the host and target type.
914# The inputs are:
915# configure --host=HOST --target=TARGET --build=BUILD NONOPT
916#
917# The rules are:
918# 1. You are not allowed to specify --host, --target, and nonopt at the
919# same time.
920# 2. Host defaults to nonopt.
921# 3. If nonopt is not specified, then host defaults to the current host,
922# as determined by config.guess.
923# 4. Target and build default to nonopt.
924# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
925
926# The aliases save the names the user supplied, while $host etc.
927# will get canonicalized.
698dcdb6
VZ
928case $host---$target---$nonopt in
929NONE---*---* | *---NONE---* | *---*---NONE) ;;
930*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
931esac
932
933
934# Make sure we can run config.sub.
935if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
936else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
937fi
938
939echo $ac_n "checking host system type""... $ac_c" 1>&6
683dccda 940echo "configure:941: checking host system type" >&5
698dcdb6
VZ
941
942host_alias=$host
943case "$host_alias" in
944NONE)
945 case $nonopt in
946 NONE)
947 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
948 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
949 fi ;;
950 *) host_alias=$nonopt ;;
951 esac ;;
952esac
953
954host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
955host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
956host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
957host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
958echo "$ac_t""$host" 1>&6
959
960echo $ac_n "checking target system type""... $ac_c" 1>&6
683dccda 961echo "configure:962: checking target system type" >&5
698dcdb6
VZ
962
963target_alias=$target
964case "$target_alias" in
965NONE)
966 case $nonopt in
967 NONE) target_alias=$host_alias ;;
968 *) target_alias=$nonopt ;;
969 esac ;;
970esac
971
972target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
973target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
974target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
975target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
976echo "$ac_t""$target" 1>&6
977
978echo $ac_n "checking build system type""... $ac_c" 1>&6
683dccda 979echo "configure:980: checking build system type" >&5
698dcdb6
VZ
980
981build_alias=$build
982case "$build_alias" in
983NONE)
984 case $nonopt in
985 NONE) build_alias=$host_alias ;;
986 *) build_alias=$nonopt ;;
987 esac ;;
988esac
989
990build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
991build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
992build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
993build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
994echo "$ac_t""$build" 1>&6
995
996test "$host_alias" != "$target_alias" &&
7c66a493
VZ
997 test "$program_prefix$program_suffix$program_transform_name" = \
998 NONENONEs,x,x, &&
999 program_prefix=${target_alias}-
1000
698dcdb6
VZ
1001
1002
10f2d63a 1003WX_MAJOR_VERSION_NUMBER=2
37d403aa 1004WX_MINOR_VERSION_NUMBER=3
6c01ec02 1005WX_RELEASE_NUMBER=2
10f2d63a 1006
10f2d63a 1007WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1008WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1009
6c01ec02 1010WX_CURRENT=1
6426998c
RL
1011WX_REVISION=0
1012WX_AGE=0
1013
698dcdb6
VZ
1014
1015
10f2d63a
VZ
1016USE_UNIX=1
1017USE_WIN32=0
b12915c1 1018USE_BEOS=0
1216f52d 1019USE_MAC=0
b12915c1 1020
10f2d63a
VZ
1021USE_LINUX=
1022USE_SGI=
1023USE_HPUX=
1024USE_SYSV=
1025USE_SVR4=
1026USE_AIX=
1027USE_SUN=
1028USE_SOLARIS=
1029USE_SUNOS=
1030USE_ALPHA=
7cf43d5e 1031USE_IA64=
10f2d63a
VZ
1032USE_OSF=
1033USE_BSD=
f11bdd03 1034USE_DARWIN=
10f2d63a 1035USE_FREEBSD=
95c8801c 1036USE_OPENBSD=
f6bcfd97 1037USE_NETBSD=
10f2d63a
VZ
1038USE_VMS=
1039USE_ULTRIX=
1040USE_CYGWIN=
1041USE_MINGW=
1042USE_DATA_GENERAL=
1043
ab9b9eab
VZ
1044NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1045
1e6feb95 1046ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
10f2d63a
VZ
1047
1048DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1049DEFAULT_wxUSE_MAC=0
1050DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1051DEFAULT_wxUSE_MOTIF=0
1052DEFAULT_wxUSE_MSW=0
e07802fc 1053DEFAULT_wxUSE_PM=0
1e6feb95 1054DEFAULT_wxUSE_WINE=0
10f2d63a
VZ
1055
1056DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1057DEFAULT_DEFAULT_wxUSE_MAC=0
1058DEFAULT_DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1059DEFAULT_DEFAULT_wxUSE_MOTIF=0
1060DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1061DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1062DEFAULT_DEFAULT_wxUSE_WINE=0
10f2d63a 1063
d6a55c4b 1064PROGRAM_EXT=
3a922bb4 1065SO_SUFFIX=so
d6a55c4b 1066
10f2d63a
VZ
1067case "${host}" in
1068 *-hp-hpux* )
1069 USE_HPUX=1
1070 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1071 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1072 SO_SUFFIX=sl
698dcdb6 1073 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1074#define __HPUX__ 1
1075EOF
1076
1077 ;;
1078 *-*-linux* )
1079 USE_LINUX=1
698dcdb6 1080 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1081#define __LINUX__ 1
1082EOF
1083
1084 TMP=`uname -m`
1085 if test "x$TMP" = "xalpha"; then
1086 USE_ALPHA=1
698dcdb6 1087 cat >> confdefs.h <<\EOF
10f2d63a 1088#define __ALPHA__ 1
7cf43d5e
RL
1089EOF
1090
1091 fi
1092 if test "x$TMP" = "xia64"; then
1093 USE_IA64=1
1094 cat >> confdefs.h <<\EOF
1095#define __IA64__ 1
10f2d63a
VZ
1096EOF
1097
1098 fi
1099 DEFAULT_DEFAULT_wxUSE_GTK=1
1100 ;;
1101 *-*-irix5* | *-*-irix6* )
1102 USE_SGI=1
1103 USE_SVR4=1
698dcdb6 1104 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1105#define __SGI__ 1
1106EOF
1107
698dcdb6 1108 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1109#define __SVR4__ 1
1110EOF
1111
1112 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1113 ;;
1114 *-*-solaris2* )
1115 USE_SUN=1
1116 USE_SOLARIS=1
1117 USE_SVR4=1
698dcdb6 1118 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1119#define __SUN__ 1
1120EOF
1121
698dcdb6 1122 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1123#define __SOLARIS__ 1
1124EOF
1125
698dcdb6 1126 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1127#define __SVR4__ 1
1128EOF
1129
1130 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1131 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1132 ;;
1133 *-*-sunos4* )
1134 USE_SUN=1
1135 USE_SUNOS=1
1136 USE_BSD=1
698dcdb6 1137 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1138#define __SUN__ 1
1139EOF
1140
698dcdb6 1141 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1142#define __SUNOS__ 1
1143EOF
1144
698dcdb6 1145 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1146#define __BSD__ 1
1147EOF
1148
1149 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1150 ;;
f6bcfd97 1151 *-*-freebsd*)
10f2d63a
VZ
1152 USE_BSD=1
1153 USE_FREEBSD=1
698dcdb6 1154 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1155#define __FREEBSD__ 1
1156EOF
1157
698dcdb6 1158 cat >> confdefs.h <<\EOF
10f2d63a 1159#define __BSD__ 1
95c8801c
VS
1160EOF
1161
1162 DEFAULT_DEFAULT_wxUSE_GTK=1
1163 ;;
1164 *-*-openbsd*)
1165 USE_BSD=1
1166 USE_OPENBSD=1
698dcdb6 1167 cat >> confdefs.h <<\EOF
95c8801c
VS
1168#define __FREEBSD__ 1
1169EOF
1170
698dcdb6 1171 cat >> confdefs.h <<\EOF
95c8801c 1172#define __OPENBSD__ 1
f6bcfd97
BP
1173EOF
1174
1175 DEFAULT_DEFAULT_wxUSE_GTK=1
1176 ;;
1177 *-*-netbsd*)
1178 USE_BSD=1
1179 USE_NETBSD=1
698dcdb6 1180 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1181#define __FREEBSD__ 1
1182EOF
1183
698dcdb6 1184 cat >> confdefs.h <<\EOF
f6bcfd97 1185#define __NETBSD__ 1
10f2d63a
VZ
1186EOF
1187
1188 DEFAULT_DEFAULT_wxUSE_GTK=1
1189 ;;
1190 *-*-osf* )
1191 USE_ALPHA=1
1192 USE_OSF=1
698dcdb6 1193 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1194#define __ALPHA__ 1
1195EOF
1196
698dcdb6 1197 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1198#define __OSF__ 1
1199EOF
1200
1201 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1202 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1203 ;;
1204 *-*-dgux5* )
1205 USE_ALPHA=1
1206 USE_SVR4=1
698dcdb6 1207 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1208#define __ALPHA__ 1
1209EOF
1210
698dcdb6 1211 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1212#define __SVR4__ 1
1213EOF
1214
1215 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1216 ;;
1217 *-*-sysv5* )
1218 USE_SYSV=1
1219 USE_SVR4=1
698dcdb6 1220 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1221#define __SYSV__ 1
1222EOF
1223
698dcdb6 1224 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1225#define __SVR4__ 1
1226EOF
1227
1228 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1229 ;;
1230 *-*-aix* )
1231 USE_AIX=1
1232 USE_SYSV=1
1233 USE_SVR4=1
698dcdb6 1234 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1235#define __AIX__ 1
1236EOF
1237
698dcdb6 1238 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1239#define __SYSV__ 1
1240EOF
1241
698dcdb6 1242 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1243#define __SVR4__ 1
1244EOF
1245
1246 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1247 ;;
1248
1c8183e2 1249 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1250 USE_UNIX=0
1251 USE_WIN32=1
3a922bb4 1252 SO_SUFFIX=dll
698dcdb6 1253 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1254#define __WIN32__ 1
1255EOF
1256
698dcdb6 1257 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1258#define __WIN95__ 1
1259EOF
1260
698dcdb6 1261 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1262#define __WINDOWS__ 1
1263EOF
1264
698dcdb6 1265 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1266#define __GNUWIN32__ 1
1267EOF
1268
698dcdb6 1269 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1270#define STRICT 1
1271EOF
1272
698dcdb6 1273 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1274#define WINVER 0x0400
1275EOF
1276
cf27ef00 1277 PROGRAM_EXT=".exe"
7b7a7637 1278 RESCOMP=windres
10f2d63a
VZ
1279 DEFAULT_DEFAULT_wxUSE_MSW=1
1280 ;;
1281
1282 *-pc-os2_emx )
698dcdb6 1283 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1284#define __EMX__ 1
1285EOF
1286
cf27ef00 1287 PROGRAM_EXT=".exe"
e07802fc 1288 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1289 ;;
1290
d08b457b
GD
1291 powerpc-*-darwin* )
1292 USE_BSD=1
f11bdd03 1293 USE_DARWIN=1
3a922bb4 1294 SO_SUFFIX=dylib
698dcdb6 1295 cat >> confdefs.h <<\EOF
f11bdd03 1296#define __BSD__ 1
b4085ce6
GD
1297EOF
1298
698dcdb6 1299 cat >> confdefs.h <<\EOF
f11bdd03 1300#define __DARWIN__ 1
d08b457b
GD
1301EOF
1302
1303 cat >> confdefs.h <<\EOF
1304#define __POWERPC__ 1
b4085ce6
GD
1305EOF
1306
1307 DEFAULT_DEFAULT_wxUSE_MAC=1
1308 ;;
1309
b12915c1
VZ
1310 *-*-beos* )
1311 USE_BEOS=1
698dcdb6 1312 cat >> confdefs.h <<\EOF
b12915c1
VZ
1313#define __BEOS__ 1
1314EOF
1315
1316 ;;
1317
10f2d63a 1318 *)
698dcdb6 1319 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1320esac
1321
1322if test "$USE_UNIX" = 1 ; then
b12915c1 1323 wxUSE_UNIX=yes
698dcdb6 1324 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1325#define __UNIX__ 1
1326EOF
1327
10f2d63a
VZ
1328fi
1329
2389f33b
VZ
1330if test "$USE_LINUX" = 1; then
1331 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
7cf43d5e 1332echo "configure:1333: checking for glibc 2.1 or later" >&5
2389f33b
VZ
1333if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1335else
1336 cat > conftest.$ac_ext <<EOF
7cf43d5e 1337#line 1338 "configure"
2389f33b
VZ
1338#include "confdefs.h"
1339#include <features.h>
1340int main() {
1341
1342 #if !__GLIBC_PREREQ(2, 1)
1343 #error not glibc2.1
1344 #endif
1345
1346; return 0; }
1347EOF
7cf43d5e 1348if { (eval echo configure:1349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2389f33b
VZ
1349 rm -rf conftest*
1350
1351 wx_lib_glibc21=yes
1352
1353else
1354 echo "configure: failed program was:" >&5
1355 cat conftest.$ac_ext >&5
1356 rm -rf conftest*
1357
1358 wx_lib_glibc21=no
1359
1360
1361fi
1362rm -f conftest*
1363
1364fi
1365
1366echo "$ac_t""$wx_lib_glibc21" 1>&6
2389f33b
VZ
1367 if test "$wx_lib_glibc21" = "yes"; then
1368 cat >> confdefs.h <<\EOF
1369#define wxHAVE_GLIBC2 1
1370EOF
1371
1372 fi
1373fi
10f2d63a 1374
1e487827 1375
1e487827 1376
6232543b 1377
10f2d63a
VZ
1378 wx_arg_cache_file="configarg.cache"
1379 echo "loading argument cache $wx_arg_cache_file"
1380 rm -f ${wx_arg_cache_file}.tmp
1381 touch ${wx_arg_cache_file}.tmp
1382 touch ${wx_arg_cache_file}
698dcdb6 1383
10f2d63a
VZ
1384
1385DEBUG_CONFIGURE=0
1386if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1387 DEFAULT_wxUSE_UNIVERSAL=no
1388
10f2d63a
VZ
1389 DEFAULT_wxUSE_THREADS=yes
1390
1391 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1392 DEFAULT_wxUSE_SONAME=no
1e6feb95 1393 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1394 DEFAULT_wxUSE_PROFILE=no
1395 DEFAULT_wxUSE_NO_DEPS=no
1396 DEFAULT_wxUSE_NO_RTTI=no
1397 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1398 DEFAULT_wxUSE_PERMISSIVE=no
1399 DEFAULT_wxUSE_DEBUG_FLAG=yes
1400 DEFAULT_wxUSE_DEBUG_INFO=yes
1401 DEFAULT_wxUSE_DEBUG_GDB=yes
1402 DEFAULT_wxUSE_MEM_TRACING=no
1403 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1404 DEFAULT_wxUSE_DMALLOC=no
683dccda 1405 DEFAULT_wxUSE_PRECOMP=yes
10f2d63a
VZ
1406 DEFAULT_wxUSE_APPLE_IEEE=no
1407
1408 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1409 DEFAULT_wxUSE_LOGWINDOW=no
1410 DEFAULT_wxUSE_LOGGUI=no
10f2d63a
VZ
1411
1412 DEFAULT_wxUSE_GUI=yes
1e6feb95 1413 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1414
3e44f09d 1415 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1416 DEFAULT_wxUSE_ZLIB=no
1417 DEFAULT_wxUSE_LIBPNG=no
1418 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1419 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1420 DEFAULT_wxUSE_ODBC=no
3fed1840 1421 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1422 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1423
eb4efbdc 1424 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1425 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1426 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1427 DEFAULT_wxUSE_CMDLINE_PARSER=no
1428 DEFAULT_wxUSE_DATETIME=no
1429 DEFAULT_wxUSE_TIMEDATE=no
1430 DEFAULT_wxUSE_TIMER=no
1431 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1432 DEFAULT_wxUSE_FILE=no
1e6feb95 1433 DEFAULT_wxUSE_FFILE=no
10f2d63a 1434 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1435 DEFAULT_wxUSE_WAVE=no
1436 DEFAULT_wxUSE_INTL=no
1437 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1438 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1439 DEFAULT_wxUSE_STREAMS=no
1440 DEFAULT_wxUSE_SOCKETS=no
1441 DEFAULT_wxUSE_DIALUP_MANAGER=no
1442 DEFAULT_wxUSE_SERIAL=no
1443 DEFAULT_wxUSE_JOYSTICK=no
1444 DEFAULT_wxUSE_DYNLIB_CLASS=no
1445 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1446 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1447
1448 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1449 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1450 DEFAULT_wxUSE_POSTSCRIPT=no
1451
1452 DEFAULT_wxUSE_X_RESOURCES=no
1453 DEFAULT_wxUSE_CLIPBOARD=no
1454 DEFAULT_wxUSE_TOOLTIPS=no
1455 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1456 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1457 DEFAULT_wxUSE_SPLINES=no
1458
1459 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1460 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1461 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1462
1463 DEFAULT_wxUSE_PROLOGIO=no
1464 DEFAULT_wxUSE_RESOURCES=no
1465 DEFAULT_wxUSE_CONSTRAINTS=no
1466 DEFAULT_wxUSE_IPC=no
1467 DEFAULT_wxUSE_HELP=no
29fd3c0c 1468 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1469 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1470 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1471 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1472 DEFAULT_wxUSE_MIMETYPE=no
3e44f09d 1473 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1474
1475 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1476 DEFAULT_wxUSE_CHOICEDLG=no
1477 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1478 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1479 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1480 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1481 DEFAULT_wxUSE_FONTDLG=no
1482 DEFAULT_wxUSE_MSGDLG=no
1483 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1484 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1485 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1486 DEFAULT_wxUSE_STARTUP_TIPS=no
1487 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1488 DEFAULT_wxUSE_WIZARDDLG=no
1489
1e6feb95 1490 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1491 DEFAULT_wxUSE_MINIFRAME=no
1492 DEFAULT_wxUSE_HTML=no
24528b0c 1493 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1494 DEFAULT_wxUSE_FS_INET=no
1495 DEFAULT_wxUSE_FS_ZIP=no
1496 DEFAULT_wxUSE_BUSYINFO=no
1497 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1498 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1499
1500 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1501 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1502 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1503 DEFAULT_wxUSE_CALCTRL=no
1504 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1505 DEFAULT_wxUSE_CHECKBOX=no
1506 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1507 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1508 DEFAULT_wxUSE_COMBOBOX=no
1509 DEFAULT_wxUSE_GAUGE=no
1510 DEFAULT_wxUSE_GRID=no
1511 DEFAULT_wxUSE_NEW_GRID=no
1512 DEFAULT_wxUSE_IMAGLIST=no
1513 DEFAULT_wxUSE_LISTBOX=no
1514 DEFAULT_wxUSE_LISTCTRL=no
1515 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1516 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1517 DEFAULT_wxUSE_RADIOBOX=no
1518 DEFAULT_wxUSE_RADIOBTN=no
1519 DEFAULT_wxUSE_SASH=no
1520 DEFAULT_wxUSE_SCROLLBAR=no
1521 DEFAULT_wxUSE_SLIDER=no
1522 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1523 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1524 DEFAULT_wxUSE_SPLITTER=no
1525 DEFAULT_wxUSE_STATBMP=no
1526 DEFAULT_wxUSE_STATBOX=no
1527 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1528 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1529 DEFAULT_wxUSE_STATUSBAR=yes
1530 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1531 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1532 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1533 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1534 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1535 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1536 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1537 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
1538
1539 DEFAULT_wxUSE_UNICODE=no
1540 DEFAULT_wxUSE_WCSRTOMBS=no
1541
edae8572 1542 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1543 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1544 DEFAULT_wxUSE_GIF=no
1545 DEFAULT_wxUSE_PCX=no
1546 DEFAULT_wxUSE_PNM=no
0046ff7c 1547 DEFAULT_wxUSE_XPM=no
10f2d63a 1548else
1e6feb95
VZ
1549 DEFAULT_wxUSE_UNIVERSAL=no
1550
10f2d63a
VZ
1551 DEFAULT_wxUSE_THREADS=yes
1552
1553 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1554 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1555 DEFAULT_wxUSE_OPTIMISE=yes
1556 DEFAULT_wxUSE_PROFILE=no
1557 DEFAULT_wxUSE_NO_DEPS=no
1558 DEFAULT_wxUSE_NO_RTTI=no
1559 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1560 DEFAULT_wxUSE_PERMISSIVE=no
1561 DEFAULT_wxUSE_DEBUG_FLAG=no
1562 DEFAULT_wxUSE_DEBUG_INFO=no
1563 DEFAULT_wxUSE_DEBUG_GDB=no
1564 DEFAULT_wxUSE_MEM_TRACING=no
1565 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1566 DEFAULT_wxUSE_DMALLOC=no
683dccda 1567 DEFAULT_wxUSE_PRECOMP=yes
10f2d63a
VZ
1568 DEFAULT_wxUSE_APPLE_IEEE=yes
1569
1570 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1571 DEFAULT_wxUSE_LOGWINDOW=yes
1572 DEFAULT_wxUSE_LOGGUI=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
10f2d63a 1595 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1596 DEFAULT_wxUSE_WAVE=no
1597 DEFAULT_wxUSE_INTL=yes
1598 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1599 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1600 DEFAULT_wxUSE_STREAMS=yes
1601 DEFAULT_wxUSE_SOCKETS=yes
1602 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1603 DEFAULT_wxUSE_SERIAL=yes
1604 DEFAULT_wxUSE_JOYSTICK=yes
1605 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1606 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1607 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1608
1609 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1610 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1611 DEFAULT_wxUSE_POSTSCRIPT=yes
1612
1613 DEFAULT_wxUSE_X_RESOURCES=no
1614 DEFAULT_wxUSE_CLIPBOARD=yes
1615 DEFAULT_wxUSE_TOOLTIPS=yes
1616 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1617 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1618 DEFAULT_wxUSE_SPLINES=yes
1619
1620 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1621 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1622 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1623
1624 DEFAULT_wxUSE_PROLOGIO=yes
1625 DEFAULT_wxUSE_RESOURCES=yes
1626 DEFAULT_wxUSE_CONSTRAINTS=yes
1627 DEFAULT_wxUSE_IPC=yes
1628 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1629 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1630 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1631 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1632 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1633 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1634 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1635
1636 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1637 DEFAULT_wxUSE_CHOICEDLG=yes
1638 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1639 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1640 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1641 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1642 DEFAULT_wxUSE_FONTDLG=yes
1643 DEFAULT_wxUSE_MSGDLG=yes
1644 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1645 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1646 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1647 DEFAULT_wxUSE_STARTUP_TIPS=yes
1648 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1649 DEFAULT_wxUSE_WIZARDDLG=yes
1650
1e6feb95 1651 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1652 DEFAULT_wxUSE_MINIFRAME=yes
1653 DEFAULT_wxUSE_HTML=yes
24528b0c 1654 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1655 DEFAULT_wxUSE_FS_INET=yes
1656 DEFAULT_wxUSE_FS_ZIP=yes
1657 DEFAULT_wxUSE_BUSYINFO=yes
1658 DEFAULT_wxUSE_ZIPSTREAM=yes
1659 DEFAULT_wxUSE_VALIDATORS=yes
1660
1661 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1662 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1663 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1664 DEFAULT_wxUSE_CALCTRL=yes
1665 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1666 DEFAULT_wxUSE_CHECKBOX=yes
1667 DEFAULT_wxUSE_CHECKLST=yes
1668 DEFAULT_wxUSE_CHOICE=yes
1669 DEFAULT_wxUSE_COMBOBOX=yes
1670 DEFAULT_wxUSE_GAUGE=yes
1671 DEFAULT_wxUSE_GRID=yes
cc977e5f 1672 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1673 DEFAULT_wxUSE_IMAGLIST=yes
1674 DEFAULT_wxUSE_LISTBOX=yes
1675 DEFAULT_wxUSE_LISTCTRL=yes
1676 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1677 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1678 DEFAULT_wxUSE_RADIOBOX=yes
1679 DEFAULT_wxUSE_RADIOBTN=yes
1680 DEFAULT_wxUSE_SASH=yes
1681 DEFAULT_wxUSE_SCROLLBAR=yes
1682 DEFAULT_wxUSE_SLIDER=yes
1683 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1684 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1685 DEFAULT_wxUSE_SPLITTER=yes
1686 DEFAULT_wxUSE_STATBMP=yes
1687 DEFAULT_wxUSE_STATBOX=yes
1688 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1689 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1690 DEFAULT_wxUSE_STATUSBAR=yes
1691 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1692 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1693 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1694 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1695 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1696 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1697 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1698 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
1699
1700 DEFAULT_wxUSE_UNICODE=no
1701 DEFAULT_wxUSE_WCSRTOMBS=no
1702
edae8572 1703 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1704 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1705 DEFAULT_wxUSE_GIF=yes
1706 DEFAULT_wxUSE_PCX=yes
1707 DEFAULT_wxUSE_PNM=yes
0046ff7c 1708 DEFAULT_wxUSE_XPM=yes
10f2d63a
VZ
1709fi
1710
698dcdb6
VZ
1711
1712
10f2d63a
VZ
1713for toolkit in `echo $ALL_TOOLKITS`; do
1714 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1715 if test "x$LINE" != x ; then
1716 has_toolkit_in_cache=1
1717 eval "DEFAULT_$LINE"
1718 eval "CACHE_$toolkit=1"
1719 fi
1720done
1721
698dcdb6
VZ
1722
1723
1724 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
7cf43d5e 1725echo "configure:1726: checking for --enable-gui" >&5
10f2d63a
VZ
1726 no_cache=0
1727 # Check whether --enable-gui or --disable-gui was given.
1728if test "${enable_gui+set}" = set; then
1729 enableval="$enable_gui"
698dcdb6 1730
10f2d63a
VZ
1731 if test "$enableval" = yes; then
1732 ac_cv_use_gui='wxUSE_GUI=yes'
1733 else
1734 ac_cv_use_gui='wxUSE_GUI=no'
1735 fi
698dcdb6 1736
10f2d63a 1737else
698dcdb6 1738
10f2d63a
VZ
1739 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1740 if test "x$LINE" != x ; then
1741 eval "DEFAULT_$LINE"
1742 else
1743 no_cache=1
1744 fi
1745
1746 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1747
1748fi
10f2d63a
VZ
1749
1750
1751 eval "$ac_cv_use_gui"
1752 if test "$no_cache" != 1; then
1753 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1754 fi
1755
1756 if test "$wxUSE_GUI" = yes; then
698dcdb6 1757 echo "$ac_t""yes" 1>&6
10f2d63a 1758 else
698dcdb6 1759 echo "$ac_t""no" 1>&6
10f2d63a 1760 fi
698dcdb6 1761
10f2d63a 1762
b12915c1 1763if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1764
1e6feb95
VZ
1765
1766 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
7cf43d5e 1767echo "configure:1768: checking for --enable-universal" >&5
1e6feb95
VZ
1768 no_cache=0
1769 # Check whether --enable-universal or --disable-universal was given.
1770if test "${enable_universal+set}" = set; then
1771 enableval="$enable_universal"
1772
1773 if test "$enableval" = yes; then
1774 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1775 else
1776 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1777 fi
1778
1779else
1780
1781 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1782 if test "x$LINE" != x ; then
1783 eval "DEFAULT_$LINE"
1784 else
1785 no_cache=1
1786 fi
1787
1788 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1789
1790fi
1791
1792
1793 eval "$ac_cv_use_universal"
1794 if test "$no_cache" != 1; then
1795 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1796 fi
1797
1798 if test "$wxUSE_UNIVERSAL" = yes; then
1799 echo "$ac_t""yes" 1>&6
1800 else
1801 echo "$ac_t""no" 1>&6
1802 fi
1803
10f2d63a
VZ
1804# Check whether --with-gtk or --without-gtk was given.
1805if test "${with_gtk+set}" = set; then
1806 withval="$with_gtk"
1807 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1808fi
10f2d63a
VZ
1809
1810# Check whether --with-motif or --without-motif was given.
1811if test "${with_motif+set}" = set; then
1812 withval="$with_motif"
1813 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1814fi
10f2d63a 1815
b4085ce6
GD
1816# Check whether --with-mac or --without-mac was given.
1817if test "${with_mac+set}" = set; then
1818 withval="$with_mac"
1819 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1820fi
b4085ce6 1821
10f2d63a
VZ
1822# Check whether --with-wine or --without-wine was given.
1823if test "${with_wine+set}" = set; then
1824 withval="$with_wine"
1825 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1826fi
10f2d63a
VZ
1827
1828# Check whether --with-cygwin or --without-cygwin was given.
1829if test "${with_cygwin+set}" = set; then
1830 withval="$with_cygwin"
1831 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
698dcdb6 1832fi
10f2d63a
VZ
1833
1834# Check whether --with-mingw or --without-mingw was given.
1835if test "${with_mingw+set}" = set; then
1836 withval="$with_mingw"
1837 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
698dcdb6 1838fi
10f2d63a 1839
e07802fc
VZ
1840# Check whether --with-pm or --without-pm was given.
1841if test "${with_pm+set}" = set; then
1842 withval="$with_pm"
1843 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1844fi
1845
1e6feb95
VZ
1846# Check whether --with-mgl or --without-mgl was given.
1847if test "${with_mgl+set}" = set; then
1848 withval="$with_mgl"
1849 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1850fi
1851
10f2d63a 1852
8168de4c
VZ
1853# Check whether --enable-gtk2 or --disable-gtk2 was given.
1854if test "${enable_gtk2+set}" = set; then
1855 enableval="$enable_gtk2"
1856 wxUSE_GTK2=1
10f2d63a 1857else
8168de4c 1858 wxUSE_GTK2=0
698dcdb6
VZ
1859fi
1860
703e0a69 1861
1e487827 1862
698dcdb6 1863 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
7cf43d5e 1864echo "configure:1865: checking for --with-libpng" >&5
698dcdb6
VZ
1865 no_cache=0
1866 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1867if test "${with_libpng+set}" = set; then
1868 withval="$with_libpng"
698dcdb6 1869
10f2d63a 1870 if test "$withval" = yes; then
b12915c1 1871 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1872 elif test "$withval" = no; then
b12915c1 1873 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1874 elif test "$withval" = sys; then
1875 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1876 else
698dcdb6 1877 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1878 fi
698dcdb6 1879
10f2d63a 1880else
698dcdb6 1881
b12915c1 1882 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1883 if test "x$LINE" != x ; then
1884 eval "DEFAULT_$LINE"
1885 else
1886 no_cache=1
1887 fi
1888
b12915c1 1889 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1890
1891fi
10f2d63a
VZ
1892
1893
b12915c1 1894 eval "$ac_cv_use_libpng"
10f2d63a 1895 if test "$no_cache" != 1; then
b12915c1 1896 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1897 fi
1898
b12915c1 1899 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1900 echo "$ac_t""yes" 1>&6
422107f9 1901 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1902 echo "$ac_t""no" 1>&6
422107f9 1903 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1904 echo "$ac_t""system version" 1>&6
422107f9 1905 else
698dcdb6 1906 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1907 fi
698dcdb6 1908
10f2d63a 1909
698dcdb6 1910 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
7cf43d5e 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'
1923 else
698dcdb6 1924 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1925 fi
698dcdb6 1926
10f2d63a 1927else
698dcdb6 1928
b12915c1 1929 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1930 if test "x$LINE" != x ; then
1931 eval "DEFAULT_$LINE"
1932 else
1933 no_cache=1
1934 fi
1935
b12915c1 1936 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
1937
1938fi
10f2d63a
VZ
1939
1940
b12915c1 1941 eval "$ac_cv_use_libjpeg"
10f2d63a 1942 if test "$no_cache" != 1; then
b12915c1 1943 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1944 fi
1945
b12915c1 1946 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 1947 echo "$ac_t""yes" 1>&6
422107f9 1948 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 1949 echo "$ac_t""no" 1>&6
422107f9 1950 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 1951 echo "$ac_t""system version" 1>&6
422107f9 1952 else
698dcdb6 1953 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1954 fi
698dcdb6 1955
10f2d63a 1956
698dcdb6 1957 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
7cf43d5e 1958echo "configure:1959: checking for --with-libtiff" >&5
10f2d63a 1959 no_cache=0
698dcdb6 1960 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
1961if test "${with_libtiff+set}" = set; then
1962 withval="$with_libtiff"
698dcdb6 1963
10f2d63a 1964 if test "$withval" = yes; then
b12915c1 1965 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1966 elif test "$withval" = no; then
b12915c1 1967 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1968 elif test "$withval" = sys; then
1969 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1970 else
698dcdb6 1971 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1972 fi
698dcdb6 1973
10f2d63a 1974else
698dcdb6 1975
b12915c1 1976 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1977 if test "x$LINE" != x ; then
1978 eval "DEFAULT_$LINE"
1979 else
1980 no_cache=1
1981 fi
1982
b12915c1 1983 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
1984
1985fi
10f2d63a
VZ
1986
1987
b12915c1 1988 eval "$ac_cv_use_libtiff"
10f2d63a 1989 if test "$no_cache" != 1; then
b12915c1 1990 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1991 fi
1992
b12915c1 1993 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 1994 echo "$ac_t""yes" 1>&6
0dcf9893 1995 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 1996 echo "$ac_t""no" 1>&6
0dcf9893 1997 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 1998 echo "$ac_t""system version" 1>&6
0dcf9893 1999 else
698dcdb6 2000 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2001 fi
698dcdb6 2002
10f2d63a 2003
698dcdb6 2004 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
7cf43d5e 2005echo "configure:2006: checking for --with-freetype" >&5
3fed1840 2006 no_cache=0
698dcdb6 2007 # Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
2008if test "${with_freetype+set}" = set; then
2009 withval="$with_freetype"
698dcdb6 2010
3fed1840
RR
2011 if test "$withval" = yes; then
2012 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2013 elif test "$withval" = no; then
2014 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2015 elif test "$withval" = sys; then
2016 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
2017 else
698dcdb6 2018 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 2019 fi
698dcdb6 2020
3fed1840 2021else
698dcdb6 2022
3fed1840
RR
2023 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2024 if test "x$LINE" != x ; then
2025 eval "DEFAULT_$LINE"
2026 else
2027 no_cache=1
2028 fi
2029
2030 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
698dcdb6
VZ
2031
2032fi
3fed1840
RR
2033
2034
2035 eval "$ac_cv_use_freetype"
2036 if test "$no_cache" != 1; then
2037 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2038 fi
2039
2040 if test "$wxUSE_FREETYPE" = yes; then
698dcdb6 2041 echo "$ac_t""yes" 1>&6
3fed1840 2042 elif test "$wxUSE_FREETYPE" = no; then
698dcdb6 2043 echo "$ac_t""no" 1>&6
3fed1840 2044 elif test "$wxUSE_FREETYPE" = sys; then
698dcdb6 2045 echo "$ac_t""system version" 1>&6
3fed1840 2046 else
698dcdb6 2047 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 2048 fi
698dcdb6 2049
3fed1840 2050
698dcdb6 2051 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
7cf43d5e 2052echo "configure:2053: checking for --with-opengl" >&5
10f2d63a 2053 no_cache=0
698dcdb6 2054 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2055if test "${with_opengl+set}" = set; then
2056 withval="$with_opengl"
698dcdb6 2057
10f2d63a 2058 if test "$withval" = yes; then
b12915c1 2059 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2060 else
b12915c1 2061 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2062 fi
698dcdb6 2063
10f2d63a 2064else
698dcdb6 2065
b12915c1 2066 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2067 if test "x$LINE" != x ; then
2068 eval "DEFAULT_$LINE"
2069 else
2070 no_cache=1
2071 fi
2072
b12915c1 2073 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2074
2075fi
10f2d63a
VZ
2076
2077
b12915c1 2078 eval "$ac_cv_use_opengl"
10f2d63a 2079 if test "$no_cache" != 1; then
b12915c1 2080 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2081 fi
2082
b12915c1 2083 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2084 echo "$ac_t""yes" 1>&6
10f2d63a 2085 else
698dcdb6 2086 echo "$ac_t""no" 1>&6
10f2d63a 2087 fi
698dcdb6 2088
10f2d63a 2089
b12915c1
VZ
2090fi
2091
1e487827 2092
698dcdb6 2093 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
7cf43d5e 2094echo "configure:2095: checking for --with-dmalloc" >&5
698dcdb6
VZ
2095 no_cache=0
2096 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2097if test "${with_dmalloc+set}" = set; then
2098 withval="$with_dmalloc"
698dcdb6 2099
c7a2bf27 2100 if test "$withval" = yes; then
b12915c1 2101 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2102 else
b12915c1 2103 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2104 fi
698dcdb6 2105
c7a2bf27 2106else
698dcdb6 2107
b12915c1 2108 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2109 if test "x$LINE" != x ; then
2110 eval "DEFAULT_$LINE"
2111 else
2112 no_cache=1
2113 fi
2114
b12915c1 2115 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2116
2117fi
c7a2bf27
RR
2118
2119
b12915c1 2120 eval "$ac_cv_use_dmalloc"
c7a2bf27 2121 if test "$no_cache" != 1; then
b12915c1 2122 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2123 fi
2124
b12915c1 2125 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2126 echo "$ac_t""yes" 1>&6
c7a2bf27 2127 else
698dcdb6 2128 echo "$ac_t""no" 1>&6
c7a2bf27 2129 fi
698dcdb6 2130
c7a2bf27 2131
3e44f09d 2132 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
7cf43d5e 2133echo "configure:2134: checking for --with-regex" >&5
3e44f09d
VZ
2134 no_cache=0
2135 # Check whether --with-regex or --without-regex was given.
2136if test "${with_regex+set}" = set; then
2137 withval="$with_regex"
2138
2139 if test "$withval" = yes; then
2140 ac_cv_use_regex='wxUSE_REGEX=yes'
2141 elif test "$withval" = no; then
2142 ac_cv_use_regex='wxUSE_REGEX=no'
2143 elif test "$withval" = sys; then
2144 ac_cv_use_regex='wxUSE_REGEX=sys'
2145 else
2146 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2147 fi
2148
2149else
2150
2151 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2152 if test "x$LINE" != x ; then
2153 eval "DEFAULT_$LINE"
2154 else
2155 no_cache=1
2156 fi
2157
2158 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2159
2160fi
2161
2162
2163 eval "$ac_cv_use_regex"
2164 if test "$no_cache" != 1; then
2165 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2166 fi
2167
2168 if test "$wxUSE_REGEX" = yes; then
2169 echo "$ac_t""yes" 1>&6
2170 elif test "$wxUSE_REGEX" = no; then
2171 echo "$ac_t""no" 1>&6
2172 elif test "$wxUSE_REGEX" = sys; then
2173 echo "$ac_t""system version" 1>&6
2174 else
2175 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2176 fi
2177
2178
698dcdb6 2179 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
7cf43d5e 2180echo "configure:2181: checking for --with-zlib" >&5
10f2d63a 2181 no_cache=0
698dcdb6 2182 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2183if test "${with_zlib+set}" = set; then
2184 withval="$with_zlib"
698dcdb6 2185
10f2d63a 2186 if test "$withval" = yes; then
b12915c1 2187 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2188 elif test "$withval" = no; then
b12915c1 2189 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2190 elif test "$withval" = sys; then
2191 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2192 else
698dcdb6 2193 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2194 fi
698dcdb6 2195
10f2d63a 2196else
698dcdb6 2197
b12915c1 2198 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2199 if test "x$LINE" != x ; then
2200 eval "DEFAULT_$LINE"
2201 else
2202 no_cache=1
2203 fi
2204
b12915c1 2205 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2206
2207fi
10f2d63a
VZ
2208
2209
b12915c1 2210 eval "$ac_cv_use_zlib"
10f2d63a 2211 if test "$no_cache" != 1; then
b12915c1 2212 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2213 fi
2214
b12915c1 2215 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2216 echo "$ac_t""yes" 1>&6
422107f9 2217 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2218 echo "$ac_t""no" 1>&6
422107f9 2219 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2220 echo "$ac_t""system version" 1>&6
422107f9 2221 else
698dcdb6 2222 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2223 fi
698dcdb6 2224
10f2d63a 2225
698dcdb6 2226 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
7cf43d5e 2227echo "configure:2228: checking for --with-odbc" >&5
10f2d63a 2228 no_cache=0
698dcdb6 2229 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2230if test "${with_odbc+set}" = set; then
2231 withval="$with_odbc"
698dcdb6 2232
10f2d63a
VZ
2233 if test "$withval" = yes; then
2234 ac_cv_use_odbc='wxUSE_ODBC=yes'
2235 else
2236 ac_cv_use_odbc='wxUSE_ODBC=no'
2237 fi
698dcdb6 2238
10f2d63a 2239else
698dcdb6 2240
10f2d63a
VZ
2241 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2242 if test "x$LINE" != x ; then
2243 eval "DEFAULT_$LINE"
2244 else
2245 no_cache=1
2246 fi
2247
2248 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2249
2250fi
10f2d63a
VZ
2251
2252
2253 eval "$ac_cv_use_odbc"
2254 if test "$no_cache" != 1; then
2255 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2256 fi
2257
2258 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2259 echo "$ac_t""yes" 1>&6
10f2d63a 2260 else
698dcdb6 2261 echo "$ac_t""no" 1>&6
10f2d63a 2262 fi
698dcdb6
VZ
2263
2264
10f2d63a 2265
698dcdb6 2266
698dcdb6 2267 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
7cf43d5e 2268echo "configure:2269: checking for --enable-shared" >&5
10f2d63a
VZ
2269 no_cache=0
2270 # Check whether --enable-shared or --disable-shared was given.
2271if test "${enable_shared+set}" = set; then
2272 enableval="$enable_shared"
698dcdb6 2273
10f2d63a
VZ
2274 if test "$enableval" = yes; then
2275 ac_cv_use_shared='wxUSE_SHARED=yes'
2276 else
2277 ac_cv_use_shared='wxUSE_SHARED=no'
2278 fi
698dcdb6 2279
10f2d63a 2280else
698dcdb6 2281
10f2d63a
VZ
2282 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2283 if test "x$LINE" != x ; then
2284 eval "DEFAULT_$LINE"
2285 else
2286 no_cache=1
2287 fi
2288
2289 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2290
2291fi
10f2d63a
VZ
2292
2293
2294 eval "$ac_cv_use_shared"
2295 if test "$no_cache" != 1; then
2296 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2297 fi
2298
2299 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2300 echo "$ac_t""yes" 1>&6
10f2d63a 2301 else
698dcdb6 2302 echo "$ac_t""no" 1>&6
10f2d63a 2303 fi
698dcdb6 2304
10f2d63a 2305
3a922bb4 2306 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
7cf43d5e 2307echo "configure:2308: checking for --enable-soname" >&5
00cf1208 2308 no_cache=0
3a922bb4
RL
2309 # Check whether --enable-soname or --disable-soname was given.
2310if test "${enable_soname+set}" = set; then
2311 enableval="$enable_soname"
698dcdb6 2312
00cf1208 2313 if test "$enableval" = yes; then
3a922bb4 2314 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2315 else
3a922bb4 2316 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2317 fi
698dcdb6 2318
00cf1208 2319else
698dcdb6 2320
3a922bb4 2321 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2322 if test "x$LINE" != x ; then
2323 eval "DEFAULT_$LINE"
2324 else
2325 no_cache=1
2326 fi
2327
3a922bb4 2328 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
698dcdb6
VZ
2329
2330fi
00cf1208
RR
2331
2332
3a922bb4 2333 eval "$ac_cv_use_soname"
00cf1208 2334 if test "$no_cache" != 1; then
3a922bb4 2335 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2336 fi
2337
3a922bb4 2338 if test "$wxUSE_SONAME" = yes; then
698dcdb6 2339 echo "$ac_t""yes" 1>&6
00cf1208 2340 else
698dcdb6 2341 echo "$ac_t""no" 1>&6
00cf1208 2342 fi
698dcdb6 2343
00cf1208 2344
698dcdb6 2345 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
7cf43d5e 2346echo "configure:2347: checking for --enable-optimise" >&5
10f2d63a
VZ
2347 no_cache=0
2348 # Check whether --enable-optimise or --disable-optimise was given.
2349if test "${enable_optimise+set}" = set; then
2350 enableval="$enable_optimise"
698dcdb6 2351
10f2d63a
VZ
2352 if test "$enableval" = yes; then
2353 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2354 else
2355 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2356 fi
698dcdb6 2357
10f2d63a 2358else
698dcdb6 2359
10f2d63a
VZ
2360 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2361 if test "x$LINE" != x ; then
2362 eval "DEFAULT_$LINE"
2363 else
2364 no_cache=1
2365 fi
2366
2367 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2368
2369fi
10f2d63a
VZ
2370
2371
2372 eval "$ac_cv_use_optimise"
2373 if test "$no_cache" != 1; then
2374 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2375 fi
2376
2377 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2378 echo "$ac_t""yes" 1>&6
10f2d63a 2379 else
698dcdb6 2380 echo "$ac_t""no" 1>&6
10f2d63a 2381 fi
698dcdb6 2382
10f2d63a 2383
698dcdb6 2384 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
7cf43d5e 2385echo "configure:2386: checking for --enable-debug" >&5
10f2d63a
VZ
2386 no_cache=0
2387 # Check whether --enable-debug or --disable-debug was given.
2388if test "${enable_debug+set}" = set; then
2389 enableval="$enable_debug"
698dcdb6 2390
10f2d63a
VZ
2391 if test "$enableval" = yes; then
2392 ac_cv_use_debug='wxUSE_DEBUG=yes'
2393 else
2394 ac_cv_use_debug='wxUSE_DEBUG=no'
2395 fi
698dcdb6 2396
10f2d63a 2397else
698dcdb6 2398
10f2d63a
VZ
2399 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2400 if test "x$LINE" != x ; then
2401 eval "DEFAULT_$LINE"
2402 else
2403 no_cache=1
2404 fi
2405
2406 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2407
2408fi
10f2d63a
VZ
2409
2410
2411 eval "$ac_cv_use_debug"
2412 if test "$no_cache" != 1; then
2413 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2414 fi
2415
2416 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2417 echo "$ac_t""yes" 1>&6
10f2d63a 2418 else
698dcdb6 2419 echo "$ac_t""no" 1>&6
10f2d63a 2420 fi
698dcdb6 2421
10f2d63a 2422
683dccda
GD
2423
2424 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
7cf43d5e 2425echo "configure:2426: checking for --enable-precomp" >&5
683dccda
GD
2426 no_cache=0
2427 # Check whether --enable-precomp or --disable-precomp was given.
2428if test "${enable_precomp+set}" = set; then
2429 enableval="$enable_precomp"
2430
2431 if test "$enableval" = yes; then
2432 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2433 else
2434 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2435 fi
2436
2437else
2438
2439 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2440 if test "x$LINE" != x ; then
2441 eval "DEFAULT_$LINE"
2442 else
2443 no_cache=1
2444 fi
2445
2446 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2447
2448fi
2449
2450
2451 eval "$ac_cv_use_precomp"
2452 if test "$no_cache" != 1; then
2453 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2454 fi
2455
2456 if test "$wxUSE_PRECOMP" = yes; then
2457 echo "$ac_t""yes" 1>&6
2458 else
2459 echo "$ac_t""no" 1>&6
2460 fi
2461
2462
10f2d63a
VZ
2463if test "$wxUSE_DEBUG" = "yes"; then
2464 DEFAULT_wxUSE_DEBUG_FLAG=yes
2465 DEFAULT_wxUSE_DEBUG_INFO=yes
2466elif test "$wxUSE_DEBUG" = "no"; then
2467 DEFAULT_wxUSE_DEBUG_FLAG=no
2468 DEFAULT_wxUSE_DEBUG_INFO=no
2469fi
2470
698dcdb6
VZ
2471
2472 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
7cf43d5e 2473echo "configure:2474: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2474 no_cache=0
2475 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2476if test "${enable_debug_flag+set}" = set; then
2477 enableval="$enable_debug_flag"
698dcdb6 2478
10f2d63a
VZ
2479 if test "$enableval" = yes; then
2480 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2481 else
2482 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2483 fi
698dcdb6 2484
10f2d63a 2485else
698dcdb6 2486
10f2d63a
VZ
2487 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2488 if test "x$LINE" != x ; then
2489 eval "DEFAULT_$LINE"
2490 else
2491 no_cache=1
2492 fi
2493
2494 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2495
2496fi
10f2d63a
VZ
2497
2498
2499 eval "$ac_cv_use_debug_flag"
2500 if test "$no_cache" != 1; then
2501 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2502 fi
2503
2504 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2505 echo "$ac_t""yes" 1>&6
10f2d63a 2506 else
698dcdb6 2507 echo "$ac_t""no" 1>&6
10f2d63a 2508 fi
698dcdb6 2509
10f2d63a 2510
698dcdb6 2511 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
7cf43d5e 2512echo "configure:2513: checking for --enable-debug_info" >&5
10f2d63a
VZ
2513 no_cache=0
2514 # Check whether --enable-debug_info or --disable-debug_info was given.
2515if test "${enable_debug_info+set}" = set; then
2516 enableval="$enable_debug_info"
698dcdb6 2517
10f2d63a
VZ
2518 if test "$enableval" = yes; then
2519 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2520 else
2521 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2522 fi
698dcdb6 2523
10f2d63a 2524else
698dcdb6 2525
10f2d63a
VZ
2526 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2527 if test "x$LINE" != x ; then
2528 eval "DEFAULT_$LINE"
2529 else
2530 no_cache=1
2531 fi
2532
2533 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2534
2535fi
10f2d63a
VZ
2536
2537
2538 eval "$ac_cv_use_debug_info"
2539 if test "$no_cache" != 1; then
2540 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2541 fi
2542
2543 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2544 echo "$ac_t""yes" 1>&6
10f2d63a 2545 else
698dcdb6 2546 echo "$ac_t""no" 1>&6
10f2d63a 2547 fi
698dcdb6 2548
10f2d63a 2549
698dcdb6 2550 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
7cf43d5e 2551echo "configure:2552: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2552 no_cache=0
2553 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2554if test "${enable_debug_gdb+set}" = set; then
2555 enableval="$enable_debug_gdb"
698dcdb6 2556
10f2d63a
VZ
2557 if test "$enableval" = yes; then
2558 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2559 else
2560 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2561 fi
698dcdb6 2562
10f2d63a 2563else
698dcdb6 2564
10f2d63a
VZ
2565 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2566 if test "x$LINE" != x ; then
2567 eval "DEFAULT_$LINE"
2568 else
2569 no_cache=1
2570 fi
2571
2572 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2573
2574fi
10f2d63a
VZ
2575
2576
2577 eval "$ac_cv_use_debug_gdb"
2578 if test "$no_cache" != 1; then
2579 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2580 fi
2581
2582 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2583 echo "$ac_t""yes" 1>&6
10f2d63a 2584 else
698dcdb6 2585 echo "$ac_t""no" 1>&6
10f2d63a 2586 fi
698dcdb6 2587
10f2d63a 2588
698dcdb6 2589 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
7cf43d5e 2590echo "configure:2591: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2591 no_cache=0
2592 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2593if test "${enable_debug_cntxt+set}" = set; then
2594 enableval="$enable_debug_cntxt"
698dcdb6 2595
10f2d63a
VZ
2596 if test "$enableval" = yes; then
2597 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2598 else
2599 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2600 fi
698dcdb6 2601
10f2d63a 2602else
698dcdb6 2603
10f2d63a
VZ
2604 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2605 if test "x$LINE" != x ; then
2606 eval "DEFAULT_$LINE"
2607 else
2608 no_cache=1
2609 fi
2610
2611 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2612
2613fi
10f2d63a
VZ
2614
2615
2616 eval "$ac_cv_use_debug_cntxt"
2617 if test "$no_cache" != 1; then
2618 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2619 fi
2620
2621 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2622 echo "$ac_t""yes" 1>&6
10f2d63a 2623 else
698dcdb6 2624 echo "$ac_t""no" 1>&6
10f2d63a 2625 fi
698dcdb6 2626
10f2d63a 2627
698dcdb6 2628 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
7cf43d5e 2629echo "configure:2630: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2630 no_cache=0
2631 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2632if test "${enable_mem_tracing+set}" = set; then
2633 enableval="$enable_mem_tracing"
698dcdb6 2634
10f2d63a
VZ
2635 if test "$enableval" = yes; then
2636 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2637 else
2638 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2639 fi
698dcdb6 2640
10f2d63a 2641else
698dcdb6 2642
10f2d63a
VZ
2643 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2644 if test "x$LINE" != x ; then
2645 eval "DEFAULT_$LINE"
2646 else
2647 no_cache=1
2648 fi
2649
2650 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2651
2652fi
10f2d63a
VZ
2653
2654
2655 eval "$ac_cv_use_mem_tracing"
2656 if test "$no_cache" != 1; then
2657 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2658 fi
2659
2660 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2661 echo "$ac_t""yes" 1>&6
10f2d63a 2662 else
698dcdb6 2663 echo "$ac_t""no" 1>&6
10f2d63a 2664 fi
698dcdb6 2665
10f2d63a 2666
698dcdb6 2667 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
7cf43d5e 2668echo "configure:2669: checking for --enable-profile" >&5
10f2d63a
VZ
2669 no_cache=0
2670 # Check whether --enable-profile or --disable-profile was given.
2671if test "${enable_profile+set}" = set; then
2672 enableval="$enable_profile"
698dcdb6 2673
10f2d63a
VZ
2674 if test "$enableval" = yes; then
2675 ac_cv_use_profile='wxUSE_PROFILE=yes'
2676 else
2677 ac_cv_use_profile='wxUSE_PROFILE=no'
2678 fi
698dcdb6 2679
10f2d63a 2680else
698dcdb6 2681
10f2d63a
VZ
2682 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2683 if test "x$LINE" != x ; then
2684 eval "DEFAULT_$LINE"
2685 else
2686 no_cache=1
2687 fi
2688
2689 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2690
2691fi
10f2d63a
VZ
2692
2693
2694 eval "$ac_cv_use_profile"
2695 if test "$no_cache" != 1; then
2696 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2697 fi
2698
2699 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2700 echo "$ac_t""yes" 1>&6
10f2d63a 2701 else
698dcdb6 2702 echo "$ac_t""no" 1>&6
10f2d63a 2703 fi
698dcdb6 2704
10f2d63a 2705
698dcdb6 2706 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
7cf43d5e 2707echo "configure:2708: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2708 no_cache=0
2709 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2710if test "${enable_no_rtti+set}" = set; then
2711 enableval="$enable_no_rtti"
698dcdb6 2712
10f2d63a
VZ
2713 if test "$enableval" = yes; then
2714 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2715 else
2716 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2717 fi
698dcdb6 2718
10f2d63a 2719else
698dcdb6 2720
10f2d63a
VZ
2721 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2722 if test "x$LINE" != x ; then
2723 eval "DEFAULT_$LINE"
2724 else
2725 no_cache=1
2726 fi
2727
2728 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2729
2730fi
10f2d63a
VZ
2731
2732
2733 eval "$ac_cv_use_no_rtti"
2734 if test "$no_cache" != 1; then
2735 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2736 fi
2737
2738 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2739 echo "$ac_t""yes" 1>&6
10f2d63a 2740 else
698dcdb6 2741 echo "$ac_t""no" 1>&6
10f2d63a 2742 fi
698dcdb6 2743
10f2d63a 2744
698dcdb6 2745 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
7cf43d5e 2746echo "configure:2747: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2747 no_cache=0
2748 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2749if test "${enable_no_exceptions+set}" = set; then
2750 enableval="$enable_no_exceptions"
698dcdb6 2751
10f2d63a
VZ
2752 if test "$enableval" = yes; then
2753 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2754 else
2755 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2756 fi
698dcdb6 2757
10f2d63a 2758else
698dcdb6 2759
10f2d63a
VZ
2760 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2761 if test "x$LINE" != x ; then
2762 eval "DEFAULT_$LINE"
2763 else
2764 no_cache=1
2765 fi
2766
2767 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2768
2769fi
10f2d63a
VZ
2770
2771
2772 eval "$ac_cv_use_no_exceptions"
2773 if test "$no_cache" != 1; then
2774 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2775 fi
2776
2777 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2778 echo "$ac_t""yes" 1>&6
10f2d63a 2779 else
698dcdb6 2780 echo "$ac_t""no" 1>&6
10f2d63a 2781 fi
698dcdb6 2782
10f2d63a 2783
698dcdb6 2784 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
7cf43d5e 2785echo "configure:2786: checking for --enable-permissive" >&5
10f2d63a
VZ
2786 no_cache=0
2787 # Check whether --enable-permissive or --disable-permissive was given.
2788if test "${enable_permissive+set}" = set; then
2789 enableval="$enable_permissive"
698dcdb6 2790
10f2d63a
VZ
2791 if test "$enableval" = yes; then
2792 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2793 else
2794 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2795 fi
698dcdb6 2796
10f2d63a 2797else
698dcdb6 2798
10f2d63a
VZ
2799 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2800 if test "x$LINE" != x ; then
2801 eval "DEFAULT_$LINE"
2802 else
2803 no_cache=1
2804 fi
2805
2806 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2807
2808fi
10f2d63a
VZ
2809
2810
2811 eval "$ac_cv_use_permissive"
2812 if test "$no_cache" != 1; then
2813 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2814 fi
2815
2816 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2817 echo "$ac_t""yes" 1>&6
10f2d63a 2818 else
698dcdb6 2819 echo "$ac_t""no" 1>&6
10f2d63a 2820 fi
698dcdb6 2821
10f2d63a 2822
698dcdb6 2823 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
7cf43d5e 2824echo "configure:2825: checking for --enable-no_deps" >&5
10f2d63a
VZ
2825 no_cache=0
2826 # Check whether --enable-no_deps or --disable-no_deps was given.
2827if test "${enable_no_deps+set}" = set; then
2828 enableval="$enable_no_deps"
698dcdb6 2829
10f2d63a
VZ
2830 if test "$enableval" = yes; then
2831 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2832 else
2833 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2834 fi
698dcdb6 2835
10f2d63a 2836else
698dcdb6 2837
10f2d63a
VZ
2838 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2839 if test "x$LINE" != x ; then
2840 eval "DEFAULT_$LINE"
2841 else
2842 no_cache=1
2843 fi
2844
2845 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2846
2847fi
10f2d63a
VZ
2848
2849
2850 eval "$ac_cv_use_no_deps"
2851 if test "$no_cache" != 1; then
2852 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2853 fi
2854
2855 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2856 echo "$ac_t""yes" 1>&6
10f2d63a 2857 else
698dcdb6 2858 echo "$ac_t""no" 1>&6
10f2d63a 2859 fi
698dcdb6
VZ
2860
2861
10f2d63a 2862
54276ccf 2863 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
7cf43d5e 2864echo "configure:2865: checking for --enable-compat20" >&5
54276ccf
VZ
2865 no_cache=0
2866 # Check whether --enable-compat20 or --disable-compat20 was given.
2867if test "${enable_compat20+set}" = set; then
2868 enableval="$enable_compat20"
2869
2870 if test "$enableval" = yes; then
2871 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2872 else
2873 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2874 fi
2875
2876else
2877
2878 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2879 if test "x$LINE" != x ; then
2880 eval "DEFAULT_$LINE"
2881 else
2882 no_cache=1
2883 fi
2884
2885 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2886
2887fi
2888
2889
2890 eval "$ac_cv_use_compat20"
2891 if test "$no_cache" != 1; then
2892 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2893 fi
2894
2895 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2896 echo "$ac_t""yes" 1>&6
2897 else
2898 echo "$ac_t""no" 1>&6
2899 fi
2900
2901
2902 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
7cf43d5e 2903echo "configure:2904: checking for --enable-compat22" >&5
54276ccf
VZ
2904 no_cache=0
2905 # Check whether --enable-compat22 or --disable-compat22 was given.
2906if test "${enable_compat22+set}" = set; then
2907 enableval="$enable_compat22"
2908
2909 if test "$enableval" = yes; then
2910 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2911 else
2912 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2913 fi
2914
2915else
2916
2917 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2918 if test "x$LINE" != x ; then
2919 eval "DEFAULT_$LINE"
2920 else
2921 no_cache=1
2922 fi
2923
2924 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2925
2926fi
2927
2928
2929 eval "$ac_cv_use_compat22"
2930 if test "$no_cache" != 1; then
2931 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2932 fi
2933
2934 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2935 echo "$ac_t""yes" 1>&6
2936 else
2937 echo "$ac_t""no" 1>&6
2938 fi
2939
2940
2941
698dcdb6
VZ
2942
2943 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
7cf43d5e 2944echo "configure:2945: checking for --enable-intl" >&5
10f2d63a
VZ
2945 no_cache=0
2946 # Check whether --enable-intl or --disable-intl was given.
2947if test "${enable_intl+set}" = set; then
2948 enableval="$enable_intl"
698dcdb6 2949
10f2d63a
VZ
2950 if test "$enableval" = yes; then
2951 ac_cv_use_intl='wxUSE_INTL=yes'
2952 else
2953 ac_cv_use_intl='wxUSE_INTL=no'
2954 fi
698dcdb6 2955
10f2d63a 2956else
698dcdb6 2957
10f2d63a
VZ
2958 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2959 if test "x$LINE" != x ; then
2960 eval "DEFAULT_$LINE"
2961 else
2962 no_cache=1
2963 fi
2964
2965 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
2966
2967fi
10f2d63a
VZ
2968
2969
2970 eval "$ac_cv_use_intl"
2971 if test "$no_cache" != 1; then
2972 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2973 fi
2974
2975 if test "$wxUSE_INTL" = yes; then
698dcdb6 2976 echo "$ac_t""yes" 1>&6
10f2d63a 2977 else
698dcdb6 2978 echo "$ac_t""no" 1>&6
10f2d63a 2979 fi
698dcdb6 2980
10f2d63a 2981
698dcdb6 2982 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
7cf43d5e 2983echo "configure:2984: checking for --enable-config" >&5
10f2d63a
VZ
2984 no_cache=0
2985 # Check whether --enable-config or --disable-config was given.
2986if test "${enable_config+set}" = set; then
2987 enableval="$enable_config"
698dcdb6 2988
10f2d63a
VZ
2989 if test "$enableval" = yes; then
2990 ac_cv_use_config='wxUSE_CONFIG=yes'
2991 else
2992 ac_cv_use_config='wxUSE_CONFIG=no'
2993 fi
698dcdb6 2994
10f2d63a 2995else
698dcdb6 2996
10f2d63a
VZ
2997 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2998 if test "x$LINE" != x ; then
2999 eval "DEFAULT_$LINE"
3000 else
3001 no_cache=1
3002 fi
3003
3004 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
3005
3006fi
10f2d63a
VZ
3007
3008
3009 eval "$ac_cv_use_config"
3010 if test "$no_cache" != 1; then
3011 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3012 fi
3013
3014 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 3015 echo "$ac_t""yes" 1>&6
10f2d63a 3016 else
698dcdb6 3017 echo "$ac_t""no" 1>&6
10f2d63a 3018 fi
698dcdb6
VZ
3019
3020
b12915c1 3021
698dcdb6 3022 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
7cf43d5e 3023echo "configure:3024: checking for --enable-sockets" >&5
10f2d63a
VZ
3024 no_cache=0
3025 # Check whether --enable-sockets or --disable-sockets was given.
3026if test "${enable_sockets+set}" = set; then
3027 enableval="$enable_sockets"
698dcdb6 3028
10f2d63a
VZ
3029 if test "$enableval" = yes; then
3030 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3031 else
3032 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3033 fi
698dcdb6 3034
10f2d63a 3035else
698dcdb6 3036
10f2d63a
VZ
3037 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3038 if test "x$LINE" != x ; then
3039 eval "DEFAULT_$LINE"
3040 else
3041 no_cache=1
3042 fi
3043
3044 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
3045
3046fi
10f2d63a
VZ
3047
3048
3049 eval "$ac_cv_use_sockets"
3050 if test "$no_cache" != 1; then
3051 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3052 fi
3053
3054 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 3055 echo "$ac_t""yes" 1>&6
10f2d63a 3056 else
698dcdb6 3057 echo "$ac_t""no" 1>&6
10f2d63a 3058 fi
698dcdb6 3059
b12915c1 3060
698dcdb6
VZ
3061
3062 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
7cf43d5e 3063echo "configure:3064: checking for --enable-ipc" >&5
10f2d63a 3064 no_cache=0
eb4efbdc
VZ
3065 # Check whether --enable-ipc or --disable-ipc was given.
3066if test "${enable_ipc+set}" = set; then
3067 enableval="$enable_ipc"
698dcdb6 3068
10f2d63a 3069 if test "$enableval" = yes; then
eb4efbdc 3070 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3071 else
eb4efbdc 3072 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3073 fi
698dcdb6 3074
10f2d63a 3075else
698dcdb6 3076
eb4efbdc 3077 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3078 if test "x$LINE" != x ; then
3079 eval "DEFAULT_$LINE"
3080 else
3081 no_cache=1
3082 fi
3083
eb4efbdc 3084 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3085
3086fi
10f2d63a
VZ
3087
3088
eb4efbdc 3089 eval "$ac_cv_use_ipc"
10f2d63a 3090 if test "$no_cache" != 1; then
eb4efbdc 3091 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3092 fi
3093
eb4efbdc 3094 if test "$wxUSE_IPC" = yes; then
698dcdb6 3095 echo "$ac_t""yes" 1>&6
10f2d63a 3096 else
698dcdb6 3097 echo "$ac_t""no" 1>&6
10f2d63a 3098 fi
698dcdb6
VZ
3099
3100
eb4efbdc 3101
1e6feb95 3102 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
7cf43d5e 3103echo "configure:3104: checking for --enable-cmdline" >&5
1e6feb95
VZ
3104 no_cache=0
3105 # Check whether --enable-cmdline or --disable-cmdline was given.
3106if test "${enable_cmdline+set}" = set; then
3107 enableval="$enable_cmdline"
3108
3109 if test "$enableval" = yes; then
3110 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3111 else
3112 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3113 fi
3114
3115else
3116
3117 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3118 if test "x$LINE" != x ; then
3119 eval "DEFAULT_$LINE"
3120 else
3121 no_cache=1
3122 fi
3123
3124 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3125
3126fi
3127
3128
3129 eval "$ac_cv_use_cmdline"
3130 if test "$no_cache" != 1; then
3131 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3132 fi
3133
3134 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3135 echo "$ac_t""yes" 1>&6
3136 else
3137 echo "$ac_t""no" 1>&6
3138 fi
3139
3140
3141 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
7cf43d5e 3142echo "configure:3143: checking for --enable-datetime" >&5
1e6feb95
VZ
3143 no_cache=0
3144 # Check whether --enable-datetime or --disable-datetime was given.
3145if test "${enable_datetime+set}" = set; then
3146 enableval="$enable_datetime"
3147
3148 if test "$enableval" = yes; then
3149 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3150 else
3151 ac_cv_use_datetime='wxUSE_DATETIME=no'
3152 fi
3153
3154else
3155
3156 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3157 if test "x$LINE" != x ; then
3158 eval "DEFAULT_$LINE"
3159 else
3160 no_cache=1
3161 fi
3162
3163 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3164
3165fi
3166
3167
3168 eval "$ac_cv_use_datetime"
3169 if test "$no_cache" != 1; then
3170 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3171 fi
3172
3173 if test "$wxUSE_DATETIME" = yes; then
3174 echo "$ac_t""yes" 1>&6
3175 else
3176 echo "$ac_t""no" 1>&6
3177 fi
3178
3179
3180 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
7cf43d5e 3181echo "configure:3182: checking for --enable-timedate" >&5
1e6feb95
VZ
3182 no_cache=0
3183 # Check whether --enable-timedate or --disable-timedate was given.
3184if test "${enable_timedate+set}" = set; then
3185 enableval="$enable_timedate"
3186
3187 if test "$enableval" = yes; then
3188 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3189 else
3190 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3191 fi
3192
3193else
3194
3195 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3196 if test "x$LINE" != x ; then
3197 eval "DEFAULT_$LINE"
3198 else
3199 no_cache=1
3200 fi
3201
3202 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3203
3204fi
3205
3206
3207 eval "$ac_cv_use_timedate"
3208 if test "$no_cache" != 1; then
3209 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3210 fi
3211
3212 if test "$wxUSE_TIMEDATE" = yes; then
3213 echo "$ac_t""yes" 1>&6
3214 else
3215 echo "$ac_t""no" 1>&6
3216 fi
3217
3218
3219 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
7cf43d5e 3220echo "configure:3221: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3221 no_cache=0
3222 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3223if test "${enable_stopwatch+set}" = set; then
3224 enableval="$enable_stopwatch"
3225
3226 if test "$enableval" = yes; then
3227 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3228 else
3229 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3230 fi
3231
3232else
3233
3234 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3235 if test "x$LINE" != x ; then
3236 eval "DEFAULT_$LINE"
3237 else
3238 no_cache=1
3239 fi
3240
3241 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3242
3243fi
3244
3245
3246 eval "$ac_cv_use_stopwatch"
3247 if test "$no_cache" != 1; then
3248 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3249 fi
3250
3251 if test "$wxUSE_STOPWATCH" = yes; then
3252 echo "$ac_t""yes" 1>&6
3253 else
3254 echo "$ac_t""no" 1>&6
3255 fi
3256
3257
698dcdb6 3258 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
7cf43d5e 3259echo "configure:3260: checking for --enable-dialupman" >&5
10f2d63a 3260 no_cache=0
eb4efbdc
VZ
3261 # Check whether --enable-dialupman or --disable-dialupman was given.
3262if test "${enable_dialupman+set}" = set; then
3263 enableval="$enable_dialupman"
698dcdb6 3264
10f2d63a 3265 if test "$enableval" = yes; then
eb4efbdc 3266 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3267 else
eb4efbdc 3268 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3269 fi
698dcdb6 3270
10f2d63a 3271else
698dcdb6 3272
eb4efbdc 3273 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3274 if test "x$LINE" != x ; then
3275 eval "DEFAULT_$LINE"
3276 else
3277 no_cache=1
3278 fi
3279
eb4efbdc 3280 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3281
3282fi
10f2d63a
VZ
3283
3284
eb4efbdc 3285 eval "$ac_cv_use_dialupman"
10f2d63a 3286 if test "$no_cache" != 1; then
eb4efbdc 3287 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3288 fi
3289
eb4efbdc 3290 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3291 echo "$ac_t""yes" 1>&6
10f2d63a 3292 else
698dcdb6 3293 echo "$ac_t""no" 1>&6
10f2d63a 3294 fi
698dcdb6 3295
10f2d63a 3296
698dcdb6 3297 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
7cf43d5e 3298echo "configure:3299: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3299 no_cache=0
3300 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3301if test "${enable_apple_ieee+set}" = set; then
3302 enableval="$enable_apple_ieee"
698dcdb6 3303
10f2d63a
VZ
3304 if test "$enableval" = yes; then
3305 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3306 else
3307 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3308 fi
698dcdb6 3309
10f2d63a 3310else
698dcdb6 3311
10f2d63a
VZ
3312 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3313 if test "x$LINE" != x ; then
3314 eval "DEFAULT_$LINE"
3315 else
3316 no_cache=1
3317 fi
3318
3319 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3320
3321fi
10f2d63a
VZ
3322
3323
3324 eval "$ac_cv_use_apple_ieee"
3325 if test "$no_cache" != 1; then
3326 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3327 fi
3328
3329 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3330 echo "$ac_t""yes" 1>&6
10f2d63a 3331 else
698dcdb6 3332 echo "$ac_t""no" 1>&6
10f2d63a 3333 fi
698dcdb6 3334
10f2d63a 3335
1e6feb95 3336 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
7cf43d5e 3337echo "configure:3338: checking for --enable-timer" >&5
10f2d63a 3338 no_cache=0
1e6feb95
VZ
3339 # Check whether --enable-timer or --disable-timer was given.
3340if test "${enable_timer+set}" = set; then
3341 enableval="$enable_timer"
698dcdb6 3342
10f2d63a 3343 if test "$enableval" = yes; then
1e6feb95 3344 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3345 else
1e6feb95 3346 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3347 fi
698dcdb6 3348
10f2d63a 3349else
698dcdb6 3350
1e6feb95 3351 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3352 if test "x$LINE" != x ; then
3353 eval "DEFAULT_$LINE"
3354 else
3355 no_cache=1
3356 fi
3357
1e6feb95 3358 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3359
3360fi
10f2d63a
VZ
3361
3362
1e6feb95 3363 eval "$ac_cv_use_timer"
10f2d63a 3364 if test "$no_cache" != 1; then
1e6feb95 3365 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3366 fi
3367
1e6feb95 3368 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3369 echo "$ac_t""yes" 1>&6
10f2d63a 3370 else
698dcdb6 3371 echo "$ac_t""no" 1>&6
10f2d63a 3372 fi
698dcdb6 3373
10f2d63a 3374
698dcdb6 3375 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
7cf43d5e 3376echo "configure:3377: checking for --enable-wave" >&5
10f2d63a
VZ
3377 no_cache=0
3378 # Check whether --enable-wave or --disable-wave was given.
3379if test "${enable_wave+set}" = set; then
3380 enableval="$enable_wave"
698dcdb6 3381
10f2d63a
VZ
3382 if test "$enableval" = yes; then
3383 ac_cv_use_wave='wxUSE_WAVE=yes'
3384 else
3385 ac_cv_use_wave='wxUSE_WAVE=no'
3386 fi
698dcdb6 3387
10f2d63a 3388else
698dcdb6 3389
10f2d63a
VZ
3390 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3391 if test "x$LINE" != x ; then
3392 eval "DEFAULT_$LINE"
3393 else
3394 no_cache=1
3395 fi
3396
3397 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3398
3399fi
10f2d63a
VZ
3400
3401
3402 eval "$ac_cv_use_wave"
3403 if test "$no_cache" != 1; then
3404 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3405 fi
3406
3407 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3408 echo "$ac_t""yes" 1>&6
10f2d63a 3409 else
698dcdb6 3410 echo "$ac_t""no" 1>&6
10f2d63a 3411 fi
698dcdb6 3412
10f2d63a 3413
698dcdb6 3414 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
7cf43d5e 3415echo "configure:3416: checking for --enable-fraction" >&5
10f2d63a
VZ
3416 no_cache=0
3417 # Check whether --enable-fraction or --disable-fraction was given.
3418if test "${enable_fraction+set}" = set; then
3419 enableval="$enable_fraction"
698dcdb6 3420
10f2d63a
VZ
3421 if test "$enableval" = yes; then
3422 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3423 else
3424 ac_cv_use_fraction='wxUSE_FRACTION=no'
3425 fi
698dcdb6 3426
10f2d63a 3427else
698dcdb6 3428
10f2d63a
VZ
3429 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3430 if test "x$LINE" != x ; then
3431 eval "DEFAULT_$LINE"
3432 else
3433 no_cache=1
3434 fi
3435
3436 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3437
3438fi
10f2d63a
VZ
3439
3440
3441 eval "$ac_cv_use_fraction"
3442 if test "$no_cache" != 1; then
3443 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3444 fi
3445
3446 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3447 echo "$ac_t""yes" 1>&6
10f2d63a 3448 else
698dcdb6 3449 echo "$ac_t""no" 1>&6
10f2d63a 3450 fi
698dcdb6 3451
10f2d63a 3452
698dcdb6 3453 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
7cf43d5e 3454echo "configure:3455: checking for --enable-dynlib" >&5
10f2d63a
VZ
3455 no_cache=0
3456 # Check whether --enable-dynlib or --disable-dynlib was given.
3457if test "${enable_dynlib+set}" = set; then
3458 enableval="$enable_dynlib"
698dcdb6 3459
10f2d63a
VZ
3460 if test "$enableval" = yes; then
3461 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3462 else
3463 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3464 fi
698dcdb6 3465
10f2d63a 3466else
698dcdb6 3467
10f2d63a
VZ
3468 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3469 if test "x$LINE" != x ; then
3470 eval "DEFAULT_$LINE"
3471 else
3472 no_cache=1
3473 fi
3474
3475 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3476
3477fi
10f2d63a
VZ
3478
3479
3480 eval "$ac_cv_use_dynlib"
3481 if test "$no_cache" != 1; then
3482 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3483 fi
3484
3485 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3486 echo "$ac_t""yes" 1>&6
10f2d63a 3487 else
698dcdb6 3488 echo "$ac_t""no" 1>&6
10f2d63a 3489 fi
698dcdb6 3490
10f2d63a 3491
698dcdb6 3492 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
7cf43d5e 3493echo "configure:3494: checking for --enable-longlong" >&5
10f2d63a
VZ
3494 no_cache=0
3495 # Check whether --enable-longlong or --disable-longlong was given.
3496if test "${enable_longlong+set}" = set; then
3497 enableval="$enable_longlong"
698dcdb6 3498
10f2d63a
VZ
3499 if test "$enableval" = yes; then
3500 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3501 else
3502 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3503 fi
698dcdb6 3504
10f2d63a 3505else
698dcdb6 3506
10f2d63a
VZ
3507 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3508 if test "x$LINE" != x ; then
3509 eval "DEFAULT_$LINE"
3510 else
3511 no_cache=1
3512 fi
3513
3514 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3515
3516fi
10f2d63a
VZ
3517
3518
3519 eval "$ac_cv_use_longlong"
3520 if test "$no_cache" != 1; then
3521 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3522 fi
3523
3524 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3525 echo "$ac_t""yes" 1>&6
10f2d63a 3526 else
698dcdb6 3527 echo "$ac_t""no" 1>&6
10f2d63a 3528 fi
698dcdb6 3529
10f2d63a 3530
698dcdb6 3531 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
7cf43d5e 3532echo "configure:3533: checking for --enable-geometry" >&5
e8f65ba6
RR
3533 no_cache=0
3534 # Check whether --enable-geometry or --disable-geometry was given.
3535if test "${enable_geometry+set}" = set; then
3536 enableval="$enable_geometry"
698dcdb6 3537
e8f65ba6
RR
3538 if test "$enableval" = yes; then
3539 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3540 else
3541 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3542 fi
698dcdb6 3543
e8f65ba6 3544else
698dcdb6 3545
e8f65ba6
RR
3546 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3547 if test "x$LINE" != x ; then
3548 eval "DEFAULT_$LINE"
3549 else
3550 no_cache=1
3551 fi
3552
3553 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3554
3555fi
e8f65ba6
RR
3556
3557
3558 eval "$ac_cv_use_geometry"
3559 if test "$no_cache" != 1; then
3560 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3561 fi
3562
3563 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3564 echo "$ac_t""yes" 1>&6
e8f65ba6 3565 else
698dcdb6 3566 echo "$ac_t""no" 1>&6
e8f65ba6 3567 fi
698dcdb6 3568
e8f65ba6 3569
698dcdb6 3570 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
7cf43d5e 3571echo "configure:3572: checking for --enable-log" >&5
10f2d63a
VZ
3572 no_cache=0
3573 # Check whether --enable-log or --disable-log was given.
3574if test "${enable_log+set}" = set; then
3575 enableval="$enable_log"
698dcdb6 3576
10f2d63a
VZ
3577 if test "$enableval" = yes; then
3578 ac_cv_use_log='wxUSE_LOG=yes'
3579 else
3580 ac_cv_use_log='wxUSE_LOG=no'
3581 fi
698dcdb6 3582
10f2d63a 3583else
698dcdb6 3584
10f2d63a
VZ
3585 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3586 if test "x$LINE" != x ; then
3587 eval "DEFAULT_$LINE"
3588 else
3589 no_cache=1
3590 fi
3591
3592 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3593
3594fi
10f2d63a
VZ
3595
3596
3597 eval "$ac_cv_use_log"
3598 if test "$no_cache" != 1; then
3599 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3600 fi
3601
3602 if test "$wxUSE_LOG" = yes; then
698dcdb6 3603 echo "$ac_t""yes" 1>&6
10f2d63a 3604 else
698dcdb6 3605 echo "$ac_t""no" 1>&6
10f2d63a 3606 fi
698dcdb6 3607
10f2d63a 3608
698dcdb6 3609 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
7cf43d5e 3610echo "configure:3611: checking for --enable-streams" >&5
10f2d63a
VZ
3611 no_cache=0
3612 # Check whether --enable-streams or --disable-streams was given.
3613if test "${enable_streams+set}" = set; then
3614 enableval="$enable_streams"
698dcdb6 3615
10f2d63a
VZ
3616 if test "$enableval" = yes; then
3617 ac_cv_use_streams='wxUSE_STREAMS=yes'
3618 else
3619 ac_cv_use_streams='wxUSE_STREAMS=no'
3620 fi
698dcdb6 3621
10f2d63a 3622else
698dcdb6 3623
10f2d63a
VZ
3624 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3625 if test "x$LINE" != x ; then
3626 eval "DEFAULT_$LINE"
3627 else
3628 no_cache=1
3629 fi
3630
3631 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3632
3633fi
10f2d63a
VZ
3634
3635
3636 eval "$ac_cv_use_streams"
3637 if test "$no_cache" != 1; then
3638 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3639 fi
3640
3641 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3642 echo "$ac_t""yes" 1>&6
10f2d63a 3643 else
698dcdb6 3644 echo "$ac_t""no" 1>&6
10f2d63a 3645 fi
698dcdb6 3646
10f2d63a 3647
698dcdb6 3648 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
7cf43d5e 3649echo "configure:3650: checking for --enable-file" >&5
10f2d63a
VZ
3650 no_cache=0
3651 # Check whether --enable-file or --disable-file was given.
3652if test "${enable_file+set}" = set; then
3653 enableval="$enable_file"
698dcdb6 3654
10f2d63a
VZ
3655 if test "$enableval" = yes; then
3656 ac_cv_use_file='wxUSE_FILE=yes'
3657 else
3658 ac_cv_use_file='wxUSE_FILE=no'
3659 fi
698dcdb6 3660
10f2d63a 3661else
698dcdb6 3662
10f2d63a
VZ
3663 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3664 if test "x$LINE" != x ; then
3665 eval "DEFAULT_$LINE"
3666 else
3667 no_cache=1
3668 fi
3669
3670 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3671
3672fi
10f2d63a
VZ
3673
3674
3675 eval "$ac_cv_use_file"
3676 if test "$no_cache" != 1; then
3677 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3678 fi
3679
3680 if test "$wxUSE_FILE" = yes; then
698dcdb6 3681 echo "$ac_t""yes" 1>&6
10f2d63a 3682 else
698dcdb6 3683 echo "$ac_t""no" 1>&6
10f2d63a 3684 fi
698dcdb6 3685
10f2d63a 3686
1e6feb95 3687 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
7cf43d5e 3688echo "configure:3689: checking for --enable-ffile" >&5
10f2d63a 3689 no_cache=0
1e6feb95
VZ
3690 # Check whether --enable-ffile or --disable-ffile was given.
3691if test "${enable_ffile+set}" = set; then
3692 enableval="$enable_ffile"
698dcdb6 3693
10f2d63a 3694 if test "$enableval" = yes; then
1e6feb95 3695 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3696 else
1e6feb95 3697 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3698 fi
698dcdb6 3699
10f2d63a 3700else
698dcdb6 3701
1e6feb95 3702 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3703 if test "x$LINE" != x ; then
3704 eval "DEFAULT_$LINE"
3705 else
3706 no_cache=1
3707 fi
3708
1e6feb95 3709 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3710
3711fi
10f2d63a
VZ
3712
3713
1e6feb95 3714 eval "$ac_cv_use_ffile"
10f2d63a 3715 if test "$no_cache" != 1; then
1e6feb95 3716 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3717 fi
3718
1e6feb95 3719 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3720 echo "$ac_t""yes" 1>&6
10f2d63a 3721 else
698dcdb6 3722 echo "$ac_t""no" 1>&6
10f2d63a 3723 fi
698dcdb6 3724
10f2d63a 3725
1e6feb95 3726 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
7cf43d5e 3727echo "configure:3728: checking for --enable-textfile" >&5
10f2d63a 3728 no_cache=0
1e6feb95
VZ
3729 # Check whether --enable-textfile or --disable-textfile was given.
3730if test "${enable_textfile+set}" = set; then
3731 enableval="$enable_textfile"
698dcdb6 3732
10f2d63a 3733 if test "$enableval" = yes; then
1e6feb95 3734 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 3735 else
1e6feb95 3736 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 3737 fi
698dcdb6 3738
10f2d63a 3739else
698dcdb6 3740
1e6feb95 3741 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3742 if test "x$LINE" != x ; then
3743 eval "DEFAULT_$LINE"
3744 else
3745 no_cache=1
3746 fi
3747
1e6feb95 3748 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
3749
3750fi
10f2d63a
VZ
3751
3752
1e6feb95 3753 eval "$ac_cv_use_textfile"
10f2d63a 3754 if test "$no_cache" != 1; then
1e6feb95 3755 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3756 fi
3757
1e6feb95 3758 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 3759 echo "$ac_t""yes" 1>&6
10f2d63a 3760 else
698dcdb6 3761 echo "$ac_t""no" 1>&6
10f2d63a 3762 fi
698dcdb6 3763
10f2d63a 3764
1e6feb95 3765 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
7cf43d5e 3766echo "configure:3767: checking for --enable-fontmap" >&5
10f2d63a 3767 no_cache=0
1e6feb95
VZ
3768 # Check whether --enable-fontmap or --disable-fontmap was given.
3769if test "${enable_fontmap+set}" = set; then
3770 enableval="$enable_fontmap"
698dcdb6 3771
10f2d63a 3772 if test "$enableval" = yes; then
1e6feb95 3773 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 3774 else
1e6feb95 3775 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 3776 fi
698dcdb6 3777
10f2d63a 3778else
698dcdb6 3779
1e6feb95 3780 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
3781 if test "x$LINE" != x ; then
3782 eval "DEFAULT_$LINE"
3783 else
3784 no_cache=1
3785 fi
3786
1e6feb95 3787 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
3788
3789fi
10f2d63a
VZ
3790
3791
1e6feb95 3792 eval "$ac_cv_use_fontmap"
10f2d63a 3793 if test "$no_cache" != 1; then
1e6feb95 3794 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3795 fi
3796
1e6feb95 3797 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 3798 echo "$ac_t""yes" 1>&6
10f2d63a 3799 else
698dcdb6 3800 echo "$ac_t""no" 1>&6
10f2d63a 3801 fi
698dcdb6 3802
10f2d63a 3803
1e6feb95 3804 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
7cf43d5e 3805echo "configure:3806: checking for --enable-unicode" >&5
10f2d63a 3806 no_cache=0
1e6feb95
VZ
3807 # Check whether --enable-unicode or --disable-unicode was given.
3808if test "${enable_unicode+set}" = set; then
3809 enableval="$enable_unicode"
3810
3811 if test "$enableval" = yes; then
3812 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3813 else
3814 ac_cv_use_unicode='wxUSE_UNICODE=no'
3815 fi
3816
3817else
3818
3819 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3820 if test "x$LINE" != x ; then
3821 eval "DEFAULT_$LINE"
3822 else
3823 no_cache=1
3824 fi
3825
3826 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3827
3828fi
3829
3830
3831 eval "$ac_cv_use_unicode"
3832 if test "$no_cache" != 1; then
3833 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3834 fi
3835
3836 if test "$wxUSE_UNICODE" = yes; then
3837 echo "$ac_t""yes" 1>&6
3838 else
3839 echo "$ac_t""no" 1>&6
3840 fi
3841
3842
1e6feb95 3843 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
7cf43d5e 3844echo "configure:3845: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
3845 no_cache=0
3846 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3847if test "${enable_wxprintfv+set}" = set; then
3848 enableval="$enable_wxprintfv"
3849
3850 if test "$enableval" = yes; then
10f2d63a
VZ
3851 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3852 else
3853 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3854 fi
698dcdb6 3855
10f2d63a 3856else
698dcdb6 3857
10f2d63a
VZ
3858 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3859 if test "x$LINE" != x ; then
3860 eval "DEFAULT_$LINE"
3861 else
3862 no_cache=1
3863 fi
3864
3865 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
3866
3867fi
10f2d63a
VZ
3868
3869
3870 eval "$ac_cv_use_wxprintfv"
3871 if test "$no_cache" != 1; then
3872 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3873 fi
3874
3875 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 3876 echo "$ac_t""yes" 1>&6
10f2d63a 3877 else
698dcdb6 3878 echo "$ac_t""no" 1>&6
10f2d63a 3879 fi
698dcdb6 3880
10f2d63a 3881
698dcdb6 3882 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
7cf43d5e 3883echo "configure:3884: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
3884 no_cache=0
3885 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3886if test "${enable_std_iostreams+set}" = set; then
3887 enableval="$enable_std_iostreams"
698dcdb6 3888
10f2d63a
VZ
3889 if test "$enableval" = yes; then
3890 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3891 else
3892 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3893 fi
698dcdb6 3894
10f2d63a 3895else
698dcdb6 3896
10f2d63a
VZ
3897 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3898 if test "x$LINE" != x ; then
3899 eval "DEFAULT_$LINE"
3900 else
3901 no_cache=1
3902 fi
3903
3904 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
3905
3906fi
10f2d63a
VZ
3907
3908
3909 eval "$ac_cv_use_std_iostreams"
3910 if test "$no_cache" != 1; then
3911 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3912 fi
3913
3914 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 3915 echo "$ac_t""yes" 1>&6
10f2d63a 3916 else
698dcdb6 3917 echo "$ac_t""no" 1>&6
10f2d63a 3918 fi
698dcdb6 3919
10f2d63a 3920
698dcdb6 3921 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
7cf43d5e 3922echo "configure:3923: checking for --enable-filesystem" >&5
24528b0c
VS
3923 no_cache=0
3924 # Check whether --enable-filesystem or --disable-filesystem was given.
3925if test "${enable_filesystem+set}" = set; then
3926 enableval="$enable_filesystem"
698dcdb6 3927
24528b0c
VS
3928 if test "$enableval" = yes; then
3929 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3930 else
3931 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3932 fi
698dcdb6 3933
24528b0c 3934else
698dcdb6 3935
24528b0c
VS
3936 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3937 if test "x$LINE" != x ; then
3938 eval "DEFAULT_$LINE"
3939 else
3940 no_cache=1
3941 fi
3942
3943 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
3944
3945fi
24528b0c
VS
3946
3947
3948 eval "$ac_cv_use_filesystem"
3949 if test "$no_cache" != 1; then
3950 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3951 fi
3952
3953 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 3954 echo "$ac_t""yes" 1>&6
24528b0c 3955 else
698dcdb6 3956 echo "$ac_t""no" 1>&6
24528b0c 3957 fi
698dcdb6 3958
24528b0c 3959
698dcdb6 3960 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
7cf43d5e 3961echo "configure:3962: checking for --enable-fs_inet" >&5
10f2d63a
VZ
3962 no_cache=0
3963 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3964if test "${enable_fs_inet+set}" = set; then
3965 enableval="$enable_fs_inet"
698dcdb6 3966
10f2d63a
VZ
3967 if test "$enableval" = yes; then
3968 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3969 else
3970 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3971 fi
698dcdb6 3972
10f2d63a 3973else
698dcdb6 3974
10f2d63a
VZ
3975 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3976 if test "x$LINE" != x ; then
3977 eval "DEFAULT_$LINE"
3978 else
3979 no_cache=1
3980 fi
3981
3982 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
3983
3984fi
10f2d63a
VZ
3985
3986
3987 eval "$ac_cv_use_fs_inet"
3988 if test "$no_cache" != 1; then
3989 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3990 fi
3991
3992 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 3993 echo "$ac_t""yes" 1>&6
10f2d63a 3994 else
698dcdb6 3995 echo "$ac_t""no" 1>&6
10f2d63a 3996 fi
698dcdb6 3997
10f2d63a 3998
698dcdb6 3999 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
7cf43d5e 4000echo "configure:4001: checking for --enable-fs_zip" >&5
10f2d63a
VZ
4001 no_cache=0
4002 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4003if test "${enable_fs_zip+set}" = set; then
4004 enableval="$enable_fs_zip"
698dcdb6 4005
10f2d63a
VZ
4006 if test "$enableval" = yes; then
4007 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4008 else
4009 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4010 fi
698dcdb6 4011
10f2d63a 4012else
698dcdb6 4013
10f2d63a
VZ
4014 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4015 if test "x$LINE" != x ; then
4016 eval "DEFAULT_$LINE"
4017 else
4018 no_cache=1
4019 fi
4020
4021 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
4022
4023fi
10f2d63a
VZ
4024
4025
4026 eval "$ac_cv_use_fs_zip"
4027 if test "$no_cache" != 1; then
4028 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4029 fi
4030
4031 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 4032 echo "$ac_t""yes" 1>&6
10f2d63a 4033 else
698dcdb6 4034 echo "$ac_t""no" 1>&6
10f2d63a 4035 fi
698dcdb6 4036
10f2d63a 4037
698dcdb6 4038 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
7cf43d5e 4039echo "configure:4040: checking for --enable-zipstream" >&5
10f2d63a
VZ
4040 no_cache=0
4041 # Check whether --enable-zipstream or --disable-zipstream was given.
4042if test "${enable_zipstream+set}" = set; then
4043 enableval="$enable_zipstream"
698dcdb6 4044
10f2d63a
VZ
4045 if test "$enableval" = yes; then
4046 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4047 else
4048 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4049 fi
698dcdb6 4050
10f2d63a 4051else
698dcdb6 4052
10f2d63a
VZ
4053 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4054 if test "x$LINE" != x ; then
4055 eval "DEFAULT_$LINE"
4056 else
4057 no_cache=1
4058 fi
4059
4060 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4061
4062fi
10f2d63a
VZ
4063
4064
4065 eval "$ac_cv_use_zipstream"
4066 if test "$no_cache" != 1; then
4067 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4068 fi
4069
4070 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4071 echo "$ac_t""yes" 1>&6
10f2d63a 4072 else
698dcdb6 4073 echo "$ac_t""no" 1>&6
10f2d63a 4074 fi
698dcdb6 4075
10f2d63a 4076
698dcdb6
VZ
4077
4078 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
7cf43d5e 4079echo "configure:4080: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4080 no_cache=0
4081 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4082if test "${enable_catch_segvs+set}" = set; then
4083 enableval="$enable_catch_segvs"
698dcdb6 4084
eb4efbdc
VZ
4085 if test "$enableval" = yes; then
4086 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4087 else
4088 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4089 fi
698dcdb6 4090
eb4efbdc 4091else
698dcdb6 4092
eb4efbdc
VZ
4093 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4094 if test "x$LINE" != x ; then
4095 eval "DEFAULT_$LINE"
4096 else
4097 no_cache=1
4098 fi
4099
4100 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4101
4102fi
eb4efbdc
VZ
4103
4104
4105 eval "$ac_cv_use_catch_segvs"
4106 if test "$no_cache" != 1; then
4107 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4108 fi
4109
4110 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4111 echo "$ac_t""yes" 1>&6
eb4efbdc 4112 else
698dcdb6 4113 echo "$ac_t""no" 1>&6
eb4efbdc 4114 fi
698dcdb6 4115
eb4efbdc 4116
698dcdb6 4117 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
7cf43d5e 4118echo "configure:4119: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4119 no_cache=0
4120 # Check whether --enable-snglinst or --disable-snglinst was given.
4121if test "${enable_snglinst+set}" = set; then
4122 enableval="$enable_snglinst"
698dcdb6 4123
4f3c5f06
VZ
4124 if test "$enableval" = yes; then
4125 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4126 else
4127 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4128 fi
698dcdb6 4129
4f3c5f06 4130else
698dcdb6 4131
4f3c5f06
VZ
4132 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4133 if test "x$LINE" != x ; then
4134 eval "DEFAULT_$LINE"
4135 else
4136 no_cache=1
4137 fi
4138
4139 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4140
4141fi
4f3c5f06
VZ
4142
4143
4144 eval "$ac_cv_use_snglinst"
4145 if test "$no_cache" != 1; then
4146 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4147 fi
4148
4149 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4150 echo "$ac_t""yes" 1>&6
4f3c5f06 4151 else
698dcdb6 4152 echo "$ac_t""no" 1>&6
4f3c5f06 4153 fi
698dcdb6
VZ
4154
4155
eb4efbdc 4156
1e6feb95 4157 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
7cf43d5e 4158echo "configure:4159: checking for --enable-mimetype" >&5
1e6feb95
VZ
4159 no_cache=0
4160 # Check whether --enable-mimetype or --disable-mimetype was given.
4161if test "${enable_mimetype+set}" = set; then
4162 enableval="$enable_mimetype"
4163
4164 if test "$enableval" = yes; then
4165 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4166 else
4167 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4168 fi
4169
4170else
4171
4172 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4173 if test "x$LINE" != x ; then
4174 eval "DEFAULT_$LINE"
4175 else
4176 no_cache=1
4177 fi
4178
4179 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4180
4181fi
4182
4183
4184 eval "$ac_cv_use_mimetype"
4185 if test "$no_cache" != 1; then
4186 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4187 fi
4188
4189 if test "$wxUSE_MIMETYPE" = yes; then
4190 echo "$ac_t""yes" 1>&6
4191 else
4192 echo "$ac_t""no" 1>&6
4193 fi
4194
4195
3e44f09d 4196 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
7cf43d5e 4197echo "configure:4198: checking for --enable-system_options" >&5
3e44f09d
VZ
4198 no_cache=0
4199 # Check whether --enable-system_options or --disable-system_options was given.
4200if test "${enable_system_options+set}" = set; then
4201 enableval="$enable_system_options"
4202
4203 if test "$enableval" = yes; then
4204 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4205 else
4206 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4207 fi
4208
4209else
4210
4211 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4212 if test "x$LINE" != x ; then
4213 eval "DEFAULT_$LINE"
4214 else
4215 no_cache=1
4216 fi
4217
4218 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4219
4220fi
4221
4222
4223 eval "$ac_cv_use_system_options"
4224 if test "$no_cache" != 1; then
4225 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4226 fi
4227
4228 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4229 echo "$ac_t""yes" 1>&6
4230 else
4231 echo "$ac_t""no" 1>&6
4232 fi
4233
4234
1e6feb95 4235
698dcdb6
VZ
4236
4237 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
7cf43d5e 4238echo "configure:4239: checking for --enable-threads" >&5
10f2d63a
VZ
4239 no_cache=0
4240 # Check whether --enable-threads or --disable-threads was given.
4241if test "${enable_threads+set}" = set; then
4242 enableval="$enable_threads"
698dcdb6 4243
10f2d63a
VZ
4244 if test "$enableval" = yes; then
4245 ac_cv_use_threads='wxUSE_THREADS=yes'
4246 else
4247 ac_cv_use_threads='wxUSE_THREADS=no'
4248 fi
698dcdb6 4249
10f2d63a 4250else
698dcdb6 4251
10f2d63a
VZ
4252 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4253 if test "x$LINE" != x ; then
4254 eval "DEFAULT_$LINE"
4255 else
4256 no_cache=1
4257 fi
4258
4259 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4260
4261fi
10f2d63a
VZ
4262
4263
4264 eval "$ac_cv_use_threads"
4265 if test "$no_cache" != 1; then
4266 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4267 fi
4268
4269 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4270 echo "$ac_t""yes" 1>&6
10f2d63a 4271 else
698dcdb6 4272 echo "$ac_t""no" 1>&6
10f2d63a 4273 fi
698dcdb6 4274
10f2d63a 4275
698dcdb6 4276 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
7cf43d5e 4277echo "configure:4278: checking for --enable-serial" >&5
10f2d63a
VZ
4278 no_cache=0
4279 # Check whether --enable-serial or --disable-serial was given.
4280if test "${enable_serial+set}" = set; then
4281 enableval="$enable_serial"
698dcdb6 4282
10f2d63a
VZ
4283 if test "$enableval" = yes; then
4284 ac_cv_use_serial='wxUSE_SERIAL=yes'
4285 else
4286 ac_cv_use_serial='wxUSE_SERIAL=no'
4287 fi
698dcdb6 4288
10f2d63a 4289else
698dcdb6 4290
10f2d63a
VZ
4291 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4292 if test "x$LINE" != x ; then
4293 eval "DEFAULT_$LINE"
4294 else
4295 no_cache=1
4296 fi
4297
4298 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
698dcdb6
VZ
4299
4300fi
10f2d63a
VZ
4301
4302
4303 eval "$ac_cv_use_serial"
4304 if test "$no_cache" != 1; then
4305 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4306 fi
4307
4308 if test "$wxUSE_SERIAL" = yes; then
698dcdb6 4309 echo "$ac_t""yes" 1>&6
10f2d63a 4310 else
698dcdb6 4311 echo "$ac_t""no" 1>&6
10f2d63a 4312 fi
698dcdb6 4313
10f2d63a 4314
b12915c1
VZ
4315if test "$wxUSE_GUI" = "yes"; then
4316
698dcdb6
VZ
4317
4318
4319 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
7cf43d5e 4320echo "configure:4321: checking for --enable-docview" >&5
10f2d63a
VZ
4321 no_cache=0
4322 # Check whether --enable-docview or --disable-docview was given.
4323if test "${enable_docview+set}" = set; then
4324 enableval="$enable_docview"
698dcdb6 4325
10f2d63a
VZ
4326 if test "$enableval" = yes; then
4327 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4328 else
4329 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4330 fi
698dcdb6 4331
10f2d63a 4332else
698dcdb6 4333
10f2d63a
VZ
4334 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4335 if test "x$LINE" != x ; then
4336 eval "DEFAULT_$LINE"
4337 else
4338 no_cache=1
4339 fi
4340
4341 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4342
4343fi
10f2d63a
VZ
4344
4345
4346 eval "$ac_cv_use_docview"
4347 if test "$no_cache" != 1; then
4348 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4349 fi
4350
4351 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4352 echo "$ac_t""yes" 1>&6
10f2d63a 4353 else
698dcdb6 4354 echo "$ac_t""no" 1>&6
10f2d63a 4355 fi
698dcdb6 4356
10f2d63a 4357
698dcdb6 4358 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
7cf43d5e 4359echo "configure:4360: checking for --enable-help" >&5
10f2d63a
VZ
4360 no_cache=0
4361 # Check whether --enable-help or --disable-help was given.
4362if test "${enable_help+set}" = set; then
4363 enableval="$enable_help"
698dcdb6 4364
10f2d63a
VZ
4365 if test "$enableval" = yes; then
4366 ac_cv_use_help='wxUSE_HELP=yes'
4367 else
4368 ac_cv_use_help='wxUSE_HELP=no'
4369 fi
698dcdb6 4370
10f2d63a 4371else
698dcdb6 4372
10f2d63a
VZ
4373 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4374 if test "x$LINE" != x ; then
4375 eval "DEFAULT_$LINE"
4376 else
4377 no_cache=1
4378 fi
4379
4380 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4381
4382fi
10f2d63a
VZ
4383
4384
4385 eval "$ac_cv_use_help"
4386 if test "$no_cache" != 1; then
4387 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4388 fi
4389
4390 if test "$wxUSE_HELP" = yes; then
698dcdb6 4391 echo "$ac_t""yes" 1>&6
10f2d63a 4392 else
698dcdb6 4393 echo "$ac_t""no" 1>&6
10f2d63a 4394 fi
698dcdb6 4395
10f2d63a 4396
29fd3c0c 4397 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
7cf43d5e 4398echo "configure:4399: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4399 no_cache=0
4400 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4401if test "${enable_mshtmlhelp+set}" = set; then
4402 enableval="$enable_mshtmlhelp"
4403
4404 if test "$enableval" = yes; then
4405 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4406 else
4407 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4408 fi
4409
4410else
4411
4412 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4413 if test "x$LINE" != x ; then
4414 eval "DEFAULT_$LINE"
4415 else
4416 no_cache=1
4417 fi
4418
4419 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4420
4421fi
4422
4423
4424 eval "$ac_cv_use_mshtmlhelp"
4425 if test "$no_cache" != 1; then
4426 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4427 fi
4428
4429 if test "$wxUSE_MS_HTML_HELP" = yes; then
4430 echo "$ac_t""yes" 1>&6
4431 else
4432 echo "$ac_t""no" 1>&6
4433 fi
4434
4435
3379ed37 4436 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
7cf43d5e 4437echo "configure:4438: checking for --enable-html" >&5
3379ed37
VZ
4438 no_cache=0
4439 # Check whether --enable-html or --disable-html was given.
4440if test "${enable_html+set}" = set; then
4441 enableval="$enable_html"
4442
4443 if test "$enableval" = yes; then
4444 ac_cv_use_html='wxUSE_HTML=yes'
4445 else
4446 ac_cv_use_html='wxUSE_HTML=no'
4447 fi
4448
4449else
4450
4451 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4452 if test "x$LINE" != x ; then
4453 eval "DEFAULT_$LINE"
4454 else
4455 no_cache=1
4456 fi
4457
4458 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4459
4460fi
4461
4462
4463 eval "$ac_cv_use_html"
4464 if test "$no_cache" != 1; then
4465 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4466 fi
4467
4468 if test "$wxUSE_HTML" = yes; then
4469 echo "$ac_t""yes" 1>&6
4470 else
4471 echo "$ac_t""no" 1>&6
4472 fi
4473
4474
4475 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
7cf43d5e 4476echo "configure:4477: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4477 no_cache=0
4478 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4479if test "${enable_htmlhelp+set}" = set; then
4480 enableval="$enable_htmlhelp"
4481
4482 if test "$enableval" = yes; then
4483 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4484 else
4485 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4486 fi
4487
4488else
4489
4490 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4491 if test "x$LINE" != x ; then
4492 eval "DEFAULT_$LINE"
4493 else
4494 no_cache=1
4495 fi
4496
4497 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4498
4499fi
4500
4501
4502 eval "$ac_cv_use_htmlhelp"
4503 if test "$no_cache" != 1; then
4504 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4505 fi
4506
4507 if test "$wxUSE_WXHTML_HELP" = yes; then
4508 echo "$ac_t""yes" 1>&6
4509 else
4510 echo "$ac_t""no" 1>&6
4511 fi
4512
4513
698dcdb6 4514 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
7cf43d5e 4515echo "configure:4516: checking for --enable-constraints" >&5
10f2d63a
VZ
4516 no_cache=0
4517 # Check whether --enable-constraints or --disable-constraints was given.
4518if test "${enable_constraints+set}" = set; then
4519 enableval="$enable_constraints"
698dcdb6 4520
10f2d63a
VZ
4521 if test "$enableval" = yes; then
4522 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4523 else
4524 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4525 fi
698dcdb6 4526
10f2d63a 4527else
698dcdb6 4528
10f2d63a
VZ
4529 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4530 if test "x$LINE" != x ; then
4531 eval "DEFAULT_$LINE"
4532 else
4533 no_cache=1
4534 fi
4535
4536 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
4537
4538fi
10f2d63a
VZ
4539
4540
4541 eval "$ac_cv_use_constraints"
4542 if test "$no_cache" != 1; then
4543 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4544 fi
4545
4546 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 4547 echo "$ac_t""yes" 1>&6
10f2d63a 4548 else
698dcdb6 4549 echo "$ac_t""no" 1>&6
10f2d63a 4550 fi
698dcdb6 4551
10f2d63a 4552
698dcdb6 4553 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
7cf43d5e 4554echo "configure:4555: checking for --enable-printarch" >&5
10f2d63a
VZ
4555 no_cache=0
4556 # Check whether --enable-printarch or --disable-printarch was given.
4557if test "${enable_printarch+set}" = set; then
4558 enableval="$enable_printarch"
698dcdb6 4559
10f2d63a
VZ
4560 if test "$enableval" = yes; then
4561 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4562 else
4563 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4564 fi
698dcdb6 4565
10f2d63a 4566else
698dcdb6 4567
10f2d63a
VZ
4568 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4569 if test "x$LINE" != x ; then
4570 eval "DEFAULT_$LINE"
4571 else
4572 no_cache=1
4573 fi
4574
4575 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
4576
4577fi
10f2d63a
VZ
4578
4579
4580 eval "$ac_cv_use_printarch"
4581 if test "$no_cache" != 1; then
4582 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4583 fi
4584
4585 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 4586 echo "$ac_t""yes" 1>&6
10f2d63a 4587 else
698dcdb6 4588 echo "$ac_t""no" 1>&6
10f2d63a 4589 fi
698dcdb6 4590
10f2d63a 4591
698dcdb6 4592 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
7cf43d5e 4593echo "configure:4594: checking for --enable-mdi" >&5
10f2d63a
VZ
4594 no_cache=0
4595 # Check whether --enable-mdi or --disable-mdi was given.
4596if test "${enable_mdi+set}" = set; then
4597 enableval="$enable_mdi"
698dcdb6 4598
10f2d63a
VZ
4599 if test "$enableval" = yes; then
4600 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4601 else
4602 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4603 fi
698dcdb6 4604
10f2d63a 4605else
698dcdb6 4606
10f2d63a
VZ
4607 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4608 if test "x$LINE" != x ; then
4609 eval "DEFAULT_$LINE"
4610 else
4611 no_cache=1
4612 fi
4613
4614 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
4615
4616fi
10f2d63a
VZ
4617
4618
4619 eval "$ac_cv_use_mdi"
4620 if test "$no_cache" != 1; then
4621 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4622 fi
4623
4624 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 4625 echo "$ac_t""yes" 1>&6
10f2d63a 4626 else
698dcdb6 4627 echo "$ac_t""no" 1>&6
10f2d63a 4628 fi
698dcdb6
VZ
4629
4630
1e6feb95 4631 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
7cf43d5e 4632echo "configure:4633: checking for --enable-loggui" >&5
1e6feb95
VZ
4633 no_cache=0
4634 # Check whether --enable-loggui or --disable-loggui was given.
4635if test "${enable_loggui+set}" = set; then
4636 enableval="$enable_loggui"
4637
4638 if test "$enableval" = yes; then
4639 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4640 else
4641 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4642 fi
4643
4644else
4645
4646 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4647 if test "x$LINE" != x ; then
4648 eval "DEFAULT_$LINE"
4649 else
4650 no_cache=1
4651 fi
4652
4653 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4654
4655fi
4656
4657
4658 eval "$ac_cv_use_loggui"
4659 if test "$no_cache" != 1; then
4660 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4661 fi
4662
4663 if test "$wxUSE_LOGGUI" = yes; then
4664 echo "$ac_t""yes" 1>&6
4665 else
4666 echo "$ac_t""no" 1>&6
4667 fi
4668
4669
4670 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
7cf43d5e 4671echo "configure:4672: checking for --enable-logwin" >&5
1e6feb95
VZ
4672 no_cache=0
4673 # Check whether --enable-logwin or --disable-logwin was given.
4674if test "${enable_logwin+set}" = set; then
4675 enableval="$enable_logwin"
4676
4677 if test "$enableval" = yes; then
4678 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4679 else
4680 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4681 fi
4682
4683else
4684
4685 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4686 if test "x$LINE" != x ; then
4687 eval "DEFAULT_$LINE"
4688 else
4689 no_cache=1
4690 fi
4691
4692 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4693
4694fi
4695
4696
4697 eval "$ac_cv_use_logwin"
4698 if test "$no_cache" != 1; then
4699 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4700 fi
4701
4702 if test "$wxUSE_LOGWINDOW" = yes; then
4703 echo "$ac_t""yes" 1>&6
4704 else
4705 echo "$ac_t""no" 1>&6
4706 fi
4707
4708
10f2d63a 4709
698dcdb6 4710 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
7cf43d5e 4711echo "configure:4712: checking for --enable-postscript" >&5
10f2d63a
VZ
4712 no_cache=0
4713 # Check whether --enable-postscript or --disable-postscript was given.
4714if test "${enable_postscript+set}" = set; then
4715 enableval="$enable_postscript"
698dcdb6 4716
10f2d63a
VZ
4717 if test "$enableval" = yes; then
4718 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4719 else
4720 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4721 fi
698dcdb6 4722
10f2d63a 4723else
698dcdb6 4724
10f2d63a
VZ
4725 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4726 if test "x$LINE" != x ; then
4727 eval "DEFAULT_$LINE"
4728 else
4729 no_cache=1
4730 fi
4731
4732 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
4733
4734fi
10f2d63a
VZ
4735
4736
4737 eval "$ac_cv_use_postscript"
4738 if test "$no_cache" != 1; then
4739 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4740 fi
4741
4742 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 4743 echo "$ac_t""yes" 1>&6
10f2d63a 4744 else
698dcdb6 4745 echo "$ac_t""no" 1>&6
10f2d63a 4746 fi
698dcdb6
VZ
4747
4748
4749
10f2d63a 4750
1e6feb95 4751
698dcdb6 4752 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
7cf43d5e 4753echo "configure:4754: checking for --enable-prologio" >&5
10f2d63a
VZ
4754 no_cache=0
4755 # Check whether --enable-prologio or --disable-prologio was given.
4756if test "${enable_prologio+set}" = set; then
4757 enableval="$enable_prologio"
698dcdb6 4758
10f2d63a
VZ
4759 if test "$enableval" = yes; then
4760 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4761 else
4762 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4763 fi
698dcdb6 4764
10f2d63a 4765else
698dcdb6 4766
10f2d63a
VZ
4767 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4768 if test "x$LINE" != x ; then
4769 eval "DEFAULT_$LINE"
4770 else
4771 no_cache=1
4772 fi
4773
4774 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
4775
4776fi
10f2d63a
VZ
4777
4778
4779 eval "$ac_cv_use_prologio"
4780 if test "$no_cache" != 1; then
4781 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4782 fi
4783
4784 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 4785 echo "$ac_t""yes" 1>&6
10f2d63a 4786 else
698dcdb6 4787 echo "$ac_t""no" 1>&6
10f2d63a 4788 fi
698dcdb6 4789
10f2d63a 4790
698dcdb6 4791 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
7cf43d5e 4792echo "configure:4793: checking for --enable-resources" >&5
10f2d63a
VZ
4793 no_cache=0
4794 # Check whether --enable-resources or --disable-resources was given.
4795if test "${enable_resources+set}" = set; then
4796 enableval="$enable_resources"
698dcdb6 4797
10f2d63a
VZ
4798 if test "$enableval" = yes; then
4799 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4800 else
4801 ac_cv_use_resources='wxUSE_RESOURCES=no'
4802 fi
698dcdb6 4803
10f2d63a 4804else
698dcdb6 4805
10f2d63a
VZ
4806 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4807 if test "x$LINE" != x ; then
4808 eval "DEFAULT_$LINE"
4809 else
4810 no_cache=1
4811 fi
4812
4813 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
4814
4815fi
10f2d63a
VZ
4816
4817
4818 eval "$ac_cv_use_resources"
4819 if test "$no_cache" != 1; then
4820 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4821 fi
4822
4823 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 4824 echo "$ac_t""yes" 1>&6
10f2d63a 4825 else
698dcdb6 4826 echo "$ac_t""no" 1>&6
10f2d63a 4827 fi
698dcdb6 4828
10f2d63a 4829
698dcdb6
VZ
4830
4831 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
7cf43d5e 4832echo "configure:4833: checking for --enable-xresources" >&5
10f2d63a
VZ
4833 no_cache=0
4834 # Check whether --enable-xresources or --disable-xresources was given.
4835if test "${enable_xresources+set}" = set; then
4836 enableval="$enable_xresources"
698dcdb6 4837
10f2d63a
VZ
4838 if test "$enableval" = yes; then
4839 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4840 else
4841 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4842 fi
698dcdb6 4843
10f2d63a 4844else
698dcdb6 4845
10f2d63a
VZ
4846 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4847 if test "x$LINE" != x ; then
4848 eval "DEFAULT_$LINE"
4849 else
4850 no_cache=1
4851 fi
4852
4853 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
4854
4855fi
10f2d63a
VZ
4856
4857
4858 eval "$ac_cv_use_xresources"
4859 if test "$no_cache" != 1; then
4860 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4861 fi
4862
4863 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 4864 echo "$ac_t""yes" 1>&6
10f2d63a 4865 else
698dcdb6 4866 echo "$ac_t""no" 1>&6
10f2d63a 4867 fi
698dcdb6
VZ
4868
4869
10f2d63a 4870
698dcdb6
VZ
4871
4872 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
7cf43d5e 4873echo "configure:4874: checking for --enable-clipboard" >&5
10f2d63a
VZ
4874 no_cache=0
4875 # Check whether --enable-clipboard or --disable-clipboard was given.
4876if test "${enable_clipboard+set}" = set; then
4877 enableval="$enable_clipboard"
698dcdb6 4878
10f2d63a
VZ
4879 if test "$enableval" = yes; then
4880 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4881 else
4882 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4883 fi
698dcdb6 4884
10f2d63a 4885else
698dcdb6 4886
10f2d63a
VZ
4887 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4888 if test "x$LINE" != x ; then
4889 eval "DEFAULT_$LINE"
4890 else
4891 no_cache=1
4892 fi
4893
4894 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
4895
4896fi
10f2d63a
VZ
4897
4898
4899 eval "$ac_cv_use_clipboard"
4900 if test "$no_cache" != 1; then
4901 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4902 fi
4903
4904 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 4905 echo "$ac_t""yes" 1>&6
10f2d63a 4906 else
698dcdb6 4907 echo "$ac_t""no" 1>&6
10f2d63a 4908 fi
698dcdb6 4909
10f2d63a 4910
698dcdb6 4911 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
7cf43d5e 4912echo "configure:4913: checking for --enable-dnd" >&5
10f2d63a
VZ
4913 no_cache=0
4914 # Check whether --enable-dnd or --disable-dnd was given.
4915if test "${enable_dnd+set}" = set; then
4916 enableval="$enable_dnd"
698dcdb6 4917
10f2d63a
VZ
4918 if test "$enableval" = yes; then
4919 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4920 else
4921 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4922 fi
698dcdb6 4923
10f2d63a 4924else
698dcdb6 4925
10f2d63a
VZ
4926 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4927 if test "x$LINE" != x ; then
4928 eval "DEFAULT_$LINE"
4929 else
4930 no_cache=1
4931 fi
4932
4933 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
4934
4935fi
10f2d63a
VZ
4936
4937
4938 eval "$ac_cv_use_dnd"
4939 if test "$no_cache" != 1; then
4940 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4941 fi
4942
4943 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 4944 echo "$ac_t""yes" 1>&6
10f2d63a 4945 else
698dcdb6 4946 echo "$ac_t""no" 1>&6
10f2d63a 4947 fi
698dcdb6 4948
10f2d63a 4949
698dcdb6 4950 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
7cf43d5e 4951echo "configure:4952: checking for --enable-metafile" >&5
b64f0a5f
RL
4952 no_cache=0
4953 # Check whether --enable-metafile or --disable-metafile was given.
4954if test "${enable_metafile+set}" = set; then
4955 enableval="$enable_metafile"
698dcdb6 4956
b64f0a5f
RL
4957 if test "$enableval" = yes; then
4958 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4959 else
4960 ac_cv_use_metafile='wxUSE_METAFILE=no'
4961 fi
698dcdb6 4962
b64f0a5f 4963else
698dcdb6 4964
b64f0a5f
RL
4965 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4966 if test "x$LINE" != x ; then
4967 eval "DEFAULT_$LINE"
4968 else
4969 no_cache=1
4970 fi
4971
4972 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
4973
4974fi
b64f0a5f
RL
4975
4976
4977 eval "$ac_cv_use_metafile"
4978 if test "$no_cache" != 1; then
4979 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4980 fi
4981
4982 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 4983 echo "$ac_t""yes" 1>&6
b64f0a5f 4984 else
698dcdb6 4985 echo "$ac_t""no" 1>&6
b64f0a5f 4986 fi
698dcdb6
VZ
4987
4988
10f2d63a 4989
24176f2c 4990 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
7cf43d5e 4991echo "configure:4992: checking for --enable-treelayout" >&5
10f2d63a 4992 no_cache=0
24176f2c
GD
4993 # Check whether --enable-treelayout or --disable-treelayout was given.
4994if test "${enable_treelayout+set}" = set; then
4995 enableval="$enable_treelayout"
698dcdb6 4996
10f2d63a 4997 if test "$enableval" = yes; then
24176f2c 4998 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 4999 else
24176f2c 5000 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5001 fi
698dcdb6 5002
10f2d63a 5003else
698dcdb6 5004
24176f2c 5005 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5006 if test "x$LINE" != x ; then
5007 eval "DEFAULT_$LINE"
5008 else
5009 no_cache=1
5010 fi
5011
24176f2c 5012 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
5013
5014fi
10f2d63a
VZ
5015
5016
24176f2c 5017 eval "$ac_cv_use_treelayout"
10f2d63a 5018 if test "$no_cache" != 1; then
24176f2c 5019 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5020 fi
5021
24176f2c 5022 if test "$wxUSE_TREELAYOUT" = yes; then
698dcdb6 5023 echo "$ac_t""yes" 1>&6
10f2d63a 5024 else
698dcdb6 5025 echo "$ac_t""no" 1>&6
10f2d63a 5026 fi
698dcdb6 5027
10f2d63a 5028
698dcdb6
VZ
5029
5030
5031 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
7cf43d5e 5032echo "configure:5033: checking for --enable-controls" >&5
10f2d63a
VZ
5033 no_cache=0
5034 # Check whether --enable-controls or --disable-controls was given.
5035if test "${enable_controls+set}" = set; then
5036 enableval="$enable_controls"
698dcdb6 5037
10f2d63a
VZ
5038 if test "$enableval" = yes; then
5039 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5040 else
5041 ac_cv_use_controls='wxUSE_CONTROLS=no'
5042 fi
698dcdb6 5043
10f2d63a 5044else
698dcdb6 5045
10f2d63a
VZ
5046 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5047 if test "x$LINE" != x ; then
5048 eval "DEFAULT_$LINE"
5049 else
5050 no_cache=1
5051 fi
5052
5053 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5054
5055fi
10f2d63a
VZ
5056
5057
5058 eval "$ac_cv_use_controls"
5059 if test "$no_cache" != 1; then
5060 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5061 fi
5062
5063 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5064 echo "$ac_t""yes" 1>&6
10f2d63a 5065 else
698dcdb6 5066 echo "$ac_t""no" 1>&6
10f2d63a 5067 fi
698dcdb6 5068
10f2d63a
VZ
5069
5070if test "$wxUSE_CONTROLS" = "yes"; then
5071 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5072 DEFAULT_wxUSE_BMPBUTTON=yes
5073 DEFAULT_wxUSE_BUTTON=yes
5074 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5075 DEFAULT_wxUSE_CARET=yes
5076 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5077 DEFAULT_wxUSE_CHECKBOX=yes
5078 DEFAULT_wxUSE_CHECKLISTBOX=yes
5079 DEFAULT_wxUSE_CHOICE=yes
5080 DEFAULT_wxUSE_GAUGE=yes
5081 DEFAULT_wxUSE_GRID=yes
cc977e5f 5082 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5083 DEFAULT_wxUSE_IMAGLIST=yes
5084 DEFAULT_wxUSE_LISTBOX=yes
5085 DEFAULT_wxUSE_LISTCTRL=yes
5086 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5087 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5088 DEFAULT_wxUSE_RADIOBOX=yes
5089 DEFAULT_wxUSE_RADIOBTN=yes
5090 DEFAULT_wxUSE_SASH=yes
5091 DEFAULT_wxUSE_SCROLLBAR=yes
5092 DEFAULT_wxUSE_SLIDER=yes
5093 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5094 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5095 DEFAULT_wxUSE_SPLITTER=yes
5096 DEFAULT_wxUSE_STATBMP=yes
5097 DEFAULT_wxUSE_STATBOX=yes
5098 DEFAULT_wxUSE_STATLINE=yes
5099 DEFAULT_wxUSE_STATUSBAR=yes
5100 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5101 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5102 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5103 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5104 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5105 DEFAULT_wxUSE_TOOLTIPS=yes
5106 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5107 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
5108elif test "$wxUSE_CONTROLS" = "no"; then
5109 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5110 DEFAULT_wxUSE_BMPBUTTON=no
5111 DEFAULT_wxUSE_BUTTON=no
5112 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5113 DEFAULT_wxUSE_CARET=no
5114 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5115 DEFAULT_wxUSE_CHECKBOX=no
5116 DEFAULT_wxUSE_CHECKLISTBOX=no
5117 DEFAULT_wxUSE_CHOICE=no
5118 DEFAULT_wxUSE_GAUGE=no
5119 DEFAULT_wxUSE_GRID=no
5120 DEFAULT_wxUSE_NEW_GRID=no
5121 DEFAULT_wxUSE_IMAGLIST=no
5122 DEFAULT_wxUSE_LISTBOX=no
5123 DEFAULT_wxUSE_LISTCTRL=no
5124 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5125 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5126 DEFAULT_wxUSE_RADIOBOX=no
5127 DEFAULT_wxUSE_RADIOBTN=no
5128 DEFAULT_wxUSE_SASH=no
5129 DEFAULT_wxUSE_SCROLLBAR=no
5130 DEFAULT_wxUSE_SLIDER=no
5131 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5132 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5133 DEFAULT_wxUSE_SPLITTER=no
5134 DEFAULT_wxUSE_STATBMP=no
5135 DEFAULT_wxUSE_STATBOX=no
5136 DEFAULT_wxUSE_STATLINE=no
5137 DEFAULT_wxUSE_STATUSBAR=no
5138 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5139 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5140 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5141 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5142 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5143 DEFAULT_wxUSE_TOOLTIPS=no
5144 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5145 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
5146fi
5147
698dcdb6
VZ
5148
5149 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
7cf43d5e 5150echo "configure:5151: checking for --enable-accel" >&5
10f2d63a
VZ
5151 no_cache=0
5152 # Check whether --enable-accel or --disable-accel was given.
5153if test "${enable_accel+set}" = set; then
5154 enableval="$enable_accel"
698dcdb6 5155
10f2d63a
VZ
5156 if test "$enableval" = yes; then
5157 ac_cv_use_accel='wxUSE_ACCEL=yes'
5158 else
5159 ac_cv_use_accel='wxUSE_ACCEL=no'
5160 fi
698dcdb6 5161
10f2d63a 5162else
698dcdb6 5163
10f2d63a
VZ
5164 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5165 if test "x$LINE" != x ; then
5166 eval "DEFAULT_$LINE"
5167 else
5168 no_cache=1
5169 fi
5170
5171 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5172
5173fi
10f2d63a
VZ
5174
5175
5176 eval "$ac_cv_use_accel"
5177 if test "$no_cache" != 1; then
5178 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5179 fi
5180
5181 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5182 echo "$ac_t""yes" 1>&6
10f2d63a 5183 else
698dcdb6 5184 echo "$ac_t""no" 1>&6
10f2d63a 5185 fi
698dcdb6 5186
10f2d63a 5187
1e6feb95 5188 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
7cf43d5e 5189echo "configure:5190: checking for --enable-button" >&5
10f2d63a 5190 no_cache=0
1e6feb95
VZ
5191 # Check whether --enable-button or --disable-button was given.
5192if test "${enable_button+set}" = set; then
5193 enableval="$enable_button"
698dcdb6 5194
10f2d63a 5195 if test "$enableval" = yes; then
1e6feb95 5196 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5197 else
1e6feb95 5198 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5199 fi
698dcdb6 5200
10f2d63a 5201else
698dcdb6 5202
1e6feb95 5203 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5204 if test "x$LINE" != x ; then
5205 eval "DEFAULT_$LINE"
5206 else
5207 no_cache=1
5208 fi
5209
1e6feb95 5210 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5211
5212fi
10f2d63a
VZ
5213
5214
1e6feb95 5215 eval "$ac_cv_use_button"
10f2d63a 5216 if test "$no_cache" != 1; then
1e6feb95 5217 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5218 fi
5219
1e6feb95 5220 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5221 echo "$ac_t""yes" 1>&6
10f2d63a 5222 else
698dcdb6 5223 echo "$ac_t""no" 1>&6
10f2d63a 5224 fi
698dcdb6 5225
10f2d63a 5226
698dcdb6 5227 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
7cf43d5e 5228echo "configure:5229: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5229 no_cache=0
5230 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5231if test "${enable_bmpbutton+set}" = set; then
5232 enableval="$enable_bmpbutton"
698dcdb6 5233
10f2d63a
VZ
5234 if test "$enableval" = yes; then
5235 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5236 else
5237 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5238 fi
698dcdb6 5239
10f2d63a 5240else
698dcdb6 5241
10f2d63a
VZ
5242 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5243 if test "x$LINE" != x ; then
5244 eval "DEFAULT_$LINE"
5245 else
5246 no_cache=1
5247 fi
5248
5249 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5250
5251fi
10f2d63a
VZ
5252
5253
5254 eval "$ac_cv_use_bmpbutton"
5255 if test "$no_cache" != 1; then
5256 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5257 fi
5258
5259 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5260 echo "$ac_t""yes" 1>&6
10f2d63a 5261 else
698dcdb6 5262 echo "$ac_t""no" 1>&6
10f2d63a 5263 fi
698dcdb6 5264
10f2d63a 5265
1e6feb95 5266 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
7cf43d5e 5267echo "configure:5268: checking for --enable-calendar" >&5
1e6feb95
VZ
5268 no_cache=0
5269 # Check whether --enable-calendar or --disable-calendar was given.
5270if test "${enable_calendar+set}" = set; then
5271 enableval="$enable_calendar"
5272
5273 if test "$enableval" = yes; then
5274 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5275 else
5276 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5277 fi
5278
5279else
5280
5281 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5282 if test "x$LINE" != x ; then
5283 eval "DEFAULT_$LINE"
5284 else
5285 no_cache=1
5286 fi
5287
5288 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5289
5290fi
5291
5292
5293 eval "$ac_cv_use_calendar"
5294 if test "$no_cache" != 1; then
5295 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5296 fi
5297
5298 if test "$wxUSE_CALCTRL" = yes; then
5299 echo "$ac_t""yes" 1>&6
5300 else
5301 echo "$ac_t""no" 1>&6
5302 fi
5303
5304
5305 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
7cf43d5e 5306echo "configure:5307: checking for --enable-caret" >&5
1e6feb95
VZ
5307 no_cache=0
5308 # Check whether --enable-caret or --disable-caret was given.
5309if test "${enable_caret+set}" = set; then
5310 enableval="$enable_caret"
5311
5312 if test "$enableval" = yes; then
5313 ac_cv_use_caret='wxUSE_CARET=yes'
5314 else
5315 ac_cv_use_caret='wxUSE_CARET=no'
5316 fi
5317
5318else
5319
5320 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5321 if test "x$LINE" != x ; then
5322 eval "DEFAULT_$LINE"
5323 else
5324 no_cache=1
5325 fi
5326
5327 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5328
5329fi
5330
5331
5332 eval "$ac_cv_use_caret"
5333 if test "$no_cache" != 1; then
5334 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5335 fi
5336
5337 if test "$wxUSE_CARET" = yes; then
5338 echo "$ac_t""yes" 1>&6
5339 else
5340 echo "$ac_t""no" 1>&6
5341 fi
5342
5343
698dcdb6 5344 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
7cf43d5e 5345echo "configure:5346: checking for --enable-checkbox" >&5
10f2d63a
VZ
5346 no_cache=0
5347 # Check whether --enable-checkbox or --disable-checkbox was given.
5348if test "${enable_checkbox+set}" = set; then
5349 enableval="$enable_checkbox"
698dcdb6 5350
10f2d63a
VZ
5351 if test "$enableval" = yes; then
5352 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5353 else
5354 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5355 fi
698dcdb6 5356
10f2d63a 5357else
698dcdb6 5358
10f2d63a
VZ
5359 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5360 if test "x$LINE" != x ; then
5361 eval "DEFAULT_$LINE"
5362 else
5363 no_cache=1
5364 fi
5365
5366 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5367
5368fi
10f2d63a
VZ
5369
5370
5371 eval "$ac_cv_use_checkbox"
5372 if test "$no_cache" != 1; then
5373 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5374 fi
5375
5376 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5377 echo "$ac_t""yes" 1>&6
10f2d63a 5378 else
698dcdb6 5379 echo "$ac_t""no" 1>&6
10f2d63a 5380 fi
698dcdb6 5381
10f2d63a 5382
698dcdb6 5383 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
7cf43d5e 5384echo "configure:5385: checking for --enable-checklst" >&5
10f2d63a
VZ
5385 no_cache=0
5386 # Check whether --enable-checklst or --disable-checklst was given.
5387if test "${enable_checklst+set}" = set; then
5388 enableval="$enable_checklst"
698dcdb6 5389
10f2d63a
VZ
5390 if test "$enableval" = yes; then
5391 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5392 else
5393 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5394 fi
698dcdb6 5395
10f2d63a 5396else
698dcdb6 5397
10f2d63a
VZ
5398 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5399 if test "x$LINE" != x ; then
5400 eval "DEFAULT_$LINE"
5401 else
5402 no_cache=1
5403 fi
5404
5405 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5406
5407fi
10f2d63a
VZ
5408
5409
5410 eval "$ac_cv_use_checklst"
5411 if test "$no_cache" != 1; then
5412 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5413 fi
5414
5415 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5416 echo "$ac_t""yes" 1>&6
10f2d63a 5417 else
698dcdb6 5418 echo "$ac_t""no" 1>&6
10f2d63a 5419 fi
698dcdb6 5420
10f2d63a 5421
698dcdb6 5422 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
7cf43d5e 5423echo "configure:5424: checking for --enable-choice" >&5
10f2d63a
VZ
5424 no_cache=0
5425 # Check whether --enable-choice or --disable-choice was given.
5426if test "${enable_choice+set}" = set; then
5427 enableval="$enable_choice"
698dcdb6 5428
10f2d63a
VZ
5429 if test "$enableval" = yes; then
5430 ac_cv_use_choice='wxUSE_CHOICE=yes'
5431 else
5432 ac_cv_use_choice='wxUSE_CHOICE=no'
5433 fi
698dcdb6 5434
10f2d63a 5435else
698dcdb6 5436
10f2d63a
VZ
5437 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5438 if test "x$LINE" != x ; then
5439 eval "DEFAULT_$LINE"
5440 else
5441 no_cache=1
5442 fi
5443
5444 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5445
5446fi
10f2d63a
VZ
5447
5448
5449 eval "$ac_cv_use_choice"
5450 if test "$no_cache" != 1; then
5451 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5452 fi
5453
5454 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5455 echo "$ac_t""yes" 1>&6
10f2d63a 5456 else
698dcdb6 5457 echo "$ac_t""no" 1>&6
10f2d63a 5458 fi
698dcdb6 5459
10f2d63a 5460
698dcdb6 5461 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
7cf43d5e 5462echo "configure:5463: checking for --enable-combobox" >&5
10f2d63a
VZ
5463 no_cache=0
5464 # Check whether --enable-combobox or --disable-combobox was given.
5465if test "${enable_combobox+set}" = set; then
5466 enableval="$enable_combobox"
698dcdb6 5467
10f2d63a
VZ
5468 if test "$enableval" = yes; then
5469 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5470 else
5471 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5472 fi
698dcdb6 5473
10f2d63a 5474else
698dcdb6 5475
10f2d63a
VZ
5476 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5477 if test "x$LINE" != x ; then
5478 eval "DEFAULT_$LINE"
5479 else
5480 no_cache=1
5481 fi
5482
5483 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
5484
5485fi
10f2d63a
VZ
5486
5487
5488 eval "$ac_cv_use_combobox"
5489 if test "$no_cache" != 1; then
5490 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5491 fi
5492
5493 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 5494 echo "$ac_t""yes" 1>&6
10f2d63a 5495 else
698dcdb6 5496 echo "$ac_t""no" 1>&6
10f2d63a 5497 fi
698dcdb6 5498
10f2d63a 5499
698dcdb6 5500 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
7cf43d5e 5501echo "configure:5502: checking for --enable-gauge" >&5
10f2d63a
VZ
5502 no_cache=0
5503 # Check whether --enable-gauge or --disable-gauge was given.
5504if test "${enable_gauge+set}" = set; then
5505 enableval="$enable_gauge"
698dcdb6 5506
10f2d63a
VZ
5507 if test "$enableval" = yes; then
5508 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5509 else
5510 ac_cv_use_gauge='wxUSE_GAUGE=no'
5511 fi
698dcdb6 5512
10f2d63a 5513else
698dcdb6 5514
10f2d63a
VZ
5515 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5516 if test "x$LINE" != x ; then
5517 eval "DEFAULT_$LINE"
5518 else
5519 no_cache=1
5520 fi
5521
5522 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
5523
5524fi
10f2d63a
VZ
5525
5526
5527 eval "$ac_cv_use_gauge"
5528 if test "$no_cache" != 1; then
5529 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5530 fi
5531
5532 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 5533 echo "$ac_t""yes" 1>&6
10f2d63a 5534 else
698dcdb6 5535 echo "$ac_t""no" 1>&6
10f2d63a 5536 fi
698dcdb6 5537
10f2d63a 5538
698dcdb6 5539 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
7cf43d5e 5540echo "configure:5541: checking for --enable-grid" >&5
10f2d63a
VZ
5541 no_cache=0
5542 # Check whether --enable-grid or --disable-grid was given.
5543if test "${enable_grid+set}" = set; then
5544 enableval="$enable_grid"
698dcdb6 5545
10f2d63a
VZ
5546 if test "$enableval" = yes; then
5547 ac_cv_use_grid='wxUSE_GRID=yes'
5548 else
5549 ac_cv_use_grid='wxUSE_GRID=no'
5550 fi
698dcdb6 5551
10f2d63a 5552else
698dcdb6 5553
10f2d63a
VZ
5554 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5555 if test "x$LINE" != x ; then
5556 eval "DEFAULT_$LINE"
5557 else
5558 no_cache=1
5559 fi
5560
5561 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
5562
5563fi
10f2d63a
VZ
5564
5565
5566 eval "$ac_cv_use_grid"
5567 if test "$no_cache" != 1; then
5568 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5569 fi
5570
5571 if test "$wxUSE_GRID" = yes; then
698dcdb6 5572 echo "$ac_t""yes" 1>&6
10f2d63a 5573 else
698dcdb6 5574 echo "$ac_t""no" 1>&6
10f2d63a 5575 fi
698dcdb6 5576
10f2d63a 5577
698dcdb6 5578 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
7cf43d5e 5579echo "configure:5580: checking for --enable-newgrid" >&5
10f2d63a
VZ
5580 no_cache=0
5581 # Check whether --enable-newgrid or --disable-newgrid was given.
5582if test "${enable_newgrid+set}" = set; then
5583 enableval="$enable_newgrid"
698dcdb6 5584
10f2d63a
VZ
5585 if test "$enableval" = yes; then
5586 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5587 else
5588 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5589 fi
698dcdb6 5590
10f2d63a 5591else
698dcdb6 5592
10f2d63a
VZ
5593 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5594 if test "x$LINE" != x ; then
5595 eval "DEFAULT_$LINE"
5596 else
5597 no_cache=1
5598 fi
5599
5600 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
5601
5602fi
10f2d63a
VZ
5603
5604
5605 eval "$ac_cv_use_newgrid"
5606 if test "$no_cache" != 1; then
5607 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5608 fi
5609
5610 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 5611 echo "$ac_t""yes" 1>&6
10f2d63a 5612 else
698dcdb6 5613 echo "$ac_t""no" 1>&6
10f2d63a 5614 fi
698dcdb6 5615
10f2d63a 5616
698dcdb6 5617 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
7cf43d5e 5618echo "configure:5619: checking for --enable-imaglist" >&5
10f2d63a
VZ
5619 no_cache=0
5620 # Check whether --enable-imaglist or --disable-imaglist was given.
5621if test "${enable_imaglist+set}" = set; then
5622 enableval="$enable_imaglist"
698dcdb6 5623
10f2d63a
VZ
5624 if test "$enableval" = yes; then
5625 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5626 else
5627 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5628 fi
698dcdb6 5629
10f2d63a 5630else
698dcdb6 5631
10f2d63a
VZ
5632 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5633 if test "x$LINE" != x ; then
5634 eval "DEFAULT_$LINE"
5635 else
5636 no_cache=1
5637 fi
5638
5639 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
5640
5641fi
10f2d63a
VZ
5642
5643
5644 eval "$ac_cv_use_imaglist"
5645 if test "$no_cache" != 1; then
5646 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5647 fi
5648
5649 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 5650 echo "$ac_t""yes" 1>&6
10f2d63a 5651 else
698dcdb6 5652 echo "$ac_t""no" 1>&6
10f2d63a 5653 fi
698dcdb6 5654
10f2d63a 5655
698dcdb6 5656 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
7cf43d5e 5657echo "configure:5658: checking for --enable-listbox" >&5
10f2d63a
VZ
5658 no_cache=0
5659 # Check whether --enable-listbox or --disable-listbox was given.
5660if test "${enable_listbox+set}" = set; then
5661 enableval="$enable_listbox"
698dcdb6 5662
10f2d63a
VZ
5663 if test "$enableval" = yes; then
5664 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5665 else
5666 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5667 fi
698dcdb6 5668
10f2d63a 5669else
698dcdb6 5670
10f2d63a
VZ
5671 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5672 if test "x$LINE" != x ; then
5673 eval "DEFAULT_$LINE"
5674 else
5675 no_cache=1
5676 fi
5677
5678 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
5679
5680fi
10f2d63a
VZ
5681
5682
5683 eval "$ac_cv_use_listbox"
5684 if test "$no_cache" != 1; then
5685 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5686 fi
5687
5688 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 5689 echo "$ac_t""yes" 1>&6
10f2d63a 5690 else
698dcdb6 5691 echo "$ac_t""no" 1>&6
10f2d63a 5692 fi
698dcdb6 5693
10f2d63a 5694
698dcdb6 5695 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
7cf43d5e 5696echo "configure:5697: checking for --enable-listctrl" >&5
10f2d63a
VZ
5697 no_cache=0
5698 # Check whether --enable-listctrl or --disable-listctrl was given.
5699if test "${enable_listctrl+set}" = set; then
5700 enableval="$enable_listctrl"
698dcdb6 5701
10f2d63a
VZ
5702 if test "$enableval" = yes; then
5703 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5704 else
5705 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5706 fi
698dcdb6 5707
10f2d63a 5708else
698dcdb6 5709
10f2d63a
VZ
5710 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5711 if test "x$LINE" != x ; then
5712 eval "DEFAULT_$LINE"
5713 else
5714 no_cache=1
5715 fi
5716
5717 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
5718
5719fi
10f2d63a
VZ
5720
5721
5722 eval "$ac_cv_use_listctrl"
5723 if test "$no_cache" != 1; then
5724 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5725 fi
5726
5727 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 5728 echo "$ac_t""yes" 1>&6
10f2d63a 5729 else
698dcdb6 5730 echo "$ac_t""no" 1>&6
10f2d63a 5731 fi
698dcdb6 5732
10f2d63a 5733
698dcdb6 5734 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
7cf43d5e 5735echo "configure:5736: checking for --enable-notebook" >&5
10f2d63a
VZ
5736 no_cache=0
5737 # Check whether --enable-notebook or --disable-notebook was given.
5738if test "${enable_notebook+set}" = set; then
5739 enableval="$enable_notebook"
698dcdb6 5740
10f2d63a
VZ
5741 if test "$enableval" = yes; then
5742 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5743 else
5744 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5745 fi
698dcdb6 5746
10f2d63a 5747else
698dcdb6 5748
10f2d63a
VZ
5749 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5750 if test "x$LINE" != x ; then
5751 eval "DEFAULT_$LINE"
5752 else
5753 no_cache=1
5754 fi
5755
5756 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
5757
5758fi
10f2d63a
VZ
5759
5760
5761 eval "$ac_cv_use_notebook"
5762 if test "$no_cache" != 1; then
5763 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5764 fi
5765
5766 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 5767 echo "$ac_t""yes" 1>&6
10f2d63a 5768 else
698dcdb6 5769 echo "$ac_t""no" 1>&6
10f2d63a 5770 fi
698dcdb6 5771
10f2d63a 5772
24176f2c 5773 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
7cf43d5e 5774echo "configure:5775: checking for --enable-propsheet" >&5
24176f2c
GD
5775 no_cache=0
5776 # Check whether --enable-propsheet or --disable-propsheet was given.
5777if test "${enable_propsheet+set}" = set; then
5778 enableval="$enable_propsheet"
5779
5780 if test "$enableval" = yes; then
5781 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5782 else
5783 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5784 fi
5785
5786else
5787
5788 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5789 if test "x$LINE" != x ; then
5790 eval "DEFAULT_$LINE"
5791 else
5792 no_cache=1
5793 fi
5794
5795 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5796
5797fi
5798
5799
5800 eval "$ac_cv_use_propsheet"
5801 if test "$no_cache" != 1; then
5802 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5803 fi
5804
5805 if test "$wxUSE_PROPSHEET" = yes; then
5806 echo "$ac_t""yes" 1>&6
5807 else
5808 echo "$ac_t""no" 1>&6
5809 fi
5810
5811
698dcdb6 5812 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
7cf43d5e 5813echo "configure:5814: checking for --enable-radiobox" >&5
10f2d63a
VZ
5814 no_cache=0
5815 # Check whether --enable-radiobox or --disable-radiobox was given.
5816if test "${enable_radiobox+set}" = set; then
5817 enableval="$enable_radiobox"
698dcdb6 5818
10f2d63a
VZ
5819 if test "$enableval" = yes; then
5820 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5821 else
5822 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5823 fi
698dcdb6 5824
10f2d63a 5825else
698dcdb6 5826
10f2d63a
VZ
5827 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5828 if test "x$LINE" != x ; then
5829 eval "DEFAULT_$LINE"
5830 else
5831 no_cache=1
5832 fi
5833
5834 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
5835
5836fi
10f2d63a
VZ
5837
5838
5839 eval "$ac_cv_use_radiobox"
5840 if test "$no_cache" != 1; then
5841 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5842 fi
5843
5844 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 5845 echo "$ac_t""yes" 1>&6
10f2d63a 5846 else
698dcdb6 5847 echo "$ac_t""no" 1>&6
10f2d63a 5848 fi
698dcdb6 5849
10f2d63a 5850
698dcdb6 5851 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
7cf43d5e 5852echo "configure:5853: checking for --enable-radiobtn" >&5
10f2d63a
VZ
5853 no_cache=0
5854 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5855if test "${enable_radiobtn+set}" = set; then
5856 enableval="$enable_radiobtn"
698dcdb6 5857
10f2d63a
VZ
5858 if test "$enableval" = yes; then
5859 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5860 else
5861 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5862 fi
698dcdb6 5863
10f2d63a 5864else
698dcdb6 5865
10f2d63a
VZ
5866 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5867 if test "x$LINE" != x ; then
5868 eval "DEFAULT_$LINE"
5869 else
5870 no_cache=1
5871 fi
5872
5873 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
5874
5875fi
10f2d63a
VZ
5876
5877
5878 eval "$ac_cv_use_radiobtn"
5879 if test "$no_cache" != 1; then
5880 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5881 fi
5882
5883 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 5884 echo "$ac_t""yes" 1>&6
10f2d63a 5885 else
698dcdb6 5886 echo "$ac_t""no" 1>&6
10f2d63a 5887 fi
698dcdb6 5888
10f2d63a 5889
698dcdb6 5890 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
7cf43d5e 5891echo "configure:5892: checking for --enable-sash" >&5
10f2d63a
VZ
5892 no_cache=0
5893 # Check whether --enable-sash or --disable-sash was given.
5894if test "${enable_sash+set}" = set; then
5895 enableval="$enable_sash"
698dcdb6 5896
10f2d63a
VZ
5897 if test "$enableval" = yes; then
5898 ac_cv_use_sash='wxUSE_SASH=yes'
5899 else
5900 ac_cv_use_sash='wxUSE_SASH=no'
5901 fi
698dcdb6 5902
10f2d63a 5903else
698dcdb6 5904
10f2d63a
VZ
5905 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5906 if test "x$LINE" != x ; then
5907 eval "DEFAULT_$LINE"
5908 else
5909 no_cache=1
5910 fi
5911
5912 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
5913
5914fi
10f2d63a
VZ
5915
5916
5917 eval "$ac_cv_use_sash"
5918 if test "$no_cache" != 1; then
5919 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5920 fi
5921
5922 if test "$wxUSE_SASH" = yes; then
698dcdb6 5923 echo "$ac_t""yes" 1>&6
10f2d63a 5924 else
698dcdb6 5925 echo "$ac_t""no" 1>&6
10f2d63a 5926 fi
698dcdb6 5927
10f2d63a 5928
698dcdb6 5929 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
7cf43d5e 5930echo "configure:5931: checking for --enable-scrollbar" >&5
10f2d63a
VZ
5931 no_cache=0
5932 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5933if test "${enable_scrollbar+set}" = set; then
5934 enableval="$enable_scrollbar"
698dcdb6 5935
10f2d63a
VZ
5936 if test "$enableval" = yes; then
5937 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5938 else
5939 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5940 fi
698dcdb6 5941
10f2d63a 5942else
698dcdb6 5943
10f2d63a
VZ
5944 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5945 if test "x$LINE" != x ; then
5946 eval "DEFAULT_$LINE"
5947 else
5948 no_cache=1
5949 fi
5950
5951 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
5952
5953fi
10f2d63a
VZ
5954
5955
5956 eval "$ac_cv_use_scrollbar"
5957 if test "$no_cache" != 1; then
5958 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5959 fi
5960
5961 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 5962 echo "$ac_t""yes" 1>&6
10f2d63a 5963 else
698dcdb6 5964 echo "$ac_t""no" 1>&6
10f2d63a 5965 fi
698dcdb6 5966
10f2d63a 5967
698dcdb6 5968 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
7cf43d5e 5969echo "configure:5970: checking for --enable-slider" >&5
10f2d63a
VZ
5970 no_cache=0
5971 # Check whether --enable-slider or --disable-slider was given.
5972if test "${enable_slider+set}" = set; then
5973 enableval="$enable_slider"
698dcdb6 5974
10f2d63a
VZ
5975 if test "$enableval" = yes; then
5976 ac_cv_use_slider='wxUSE_SLIDER=yes'
5977 else
5978 ac_cv_use_slider='wxUSE_SLIDER=no'
5979 fi
698dcdb6 5980
10f2d63a 5981else
698dcdb6 5982
10f2d63a
VZ
5983 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5984 if test "x$LINE" != x ; then
5985 eval "DEFAULT_$LINE"
5986 else
5987 no_cache=1
5988 fi
5989
5990 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
5991
5992fi
10f2d63a
VZ
5993
5994
5995 eval "$ac_cv_use_slider"
5996 if test "$no_cache" != 1; then
5997 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5998 fi
5999
6000 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 6001 echo "$ac_t""yes" 1>&6
10f2d63a 6002 else
698dcdb6 6003 echo "$ac_t""no" 1>&6
10f2d63a 6004 fi
698dcdb6 6005
10f2d63a 6006
698dcdb6 6007 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
7cf43d5e 6008echo "configure:6009: checking for --enable-spinbtn" >&5
10f2d63a
VZ
6009 no_cache=0
6010 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6011if test "${enable_spinbtn+set}" = set; then
6012 enableval="$enable_spinbtn"
698dcdb6 6013
10f2d63a
VZ
6014 if test "$enableval" = yes; then
6015 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6016 else
6017 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6018 fi
698dcdb6 6019
10f2d63a 6020else
698dcdb6 6021
10f2d63a
VZ
6022 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6023 if test "x$LINE" != x ; then
6024 eval "DEFAULT_$LINE"
6025 else
6026 no_cache=1
6027 fi
6028
6029 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
6030
6031fi
10f2d63a
VZ
6032
6033
6034 eval "$ac_cv_use_spinbtn"
6035 if test "$no_cache" != 1; then
6036 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6037 fi
6038
6039 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 6040 echo "$ac_t""yes" 1>&6
10f2d63a 6041 else
698dcdb6 6042 echo "$ac_t""no" 1>&6
10f2d63a 6043 fi
698dcdb6 6044
10f2d63a 6045
698dcdb6 6046 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
7cf43d5e 6047echo "configure:6048: checking for --enable-spinctrl" >&5
56cfaa52
RR
6048 no_cache=0
6049 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6050if test "${enable_spinctrl+set}" = set; then
6051 enableval="$enable_spinctrl"
698dcdb6 6052
56cfaa52
RR
6053 if test "$enableval" = yes; then
6054 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6055 else
6056 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6057 fi
698dcdb6 6058
56cfaa52 6059else
698dcdb6 6060
56cfaa52
RR
6061 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6062 if test "x$LINE" != x ; then
6063 eval "DEFAULT_$LINE"
6064 else
6065 no_cache=1
6066 fi
6067
6068 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6069
6070fi
56cfaa52
RR
6071
6072
6073 eval "$ac_cv_use_spinctrl"
6074 if test "$no_cache" != 1; then
6075 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6076 fi
6077
6078 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6079 echo "$ac_t""yes" 1>&6
56cfaa52 6080 else
698dcdb6 6081 echo "$ac_t""no" 1>&6
56cfaa52 6082 fi
698dcdb6 6083
56cfaa52 6084
698dcdb6 6085 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
7cf43d5e 6086echo "configure:6087: checking for --enable-splitter" >&5
10f2d63a
VZ
6087 no_cache=0
6088 # Check whether --enable-splitter or --disable-splitter was given.
6089if test "${enable_splitter+set}" = set; then
6090 enableval="$enable_splitter"
698dcdb6 6091
10f2d63a
VZ
6092 if test "$enableval" = yes; then
6093 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6094 else
6095 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6096 fi
698dcdb6 6097
10f2d63a 6098else
698dcdb6 6099
10f2d63a
VZ
6100 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6101 if test "x$LINE" != x ; then
6102 eval "DEFAULT_$LINE"
6103 else
6104 no_cache=1
6105 fi
6106
6107 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6108
6109fi
10f2d63a
VZ
6110
6111
6112 eval "$ac_cv_use_splitter"
6113 if test "$no_cache" != 1; then
6114 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6115 fi
6116
6117 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6118 echo "$ac_t""yes" 1>&6
10f2d63a 6119 else
698dcdb6 6120 echo "$ac_t""no" 1>&6
10f2d63a 6121 fi
698dcdb6 6122
10f2d63a 6123
698dcdb6 6124 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
7cf43d5e 6125echo "configure:6126: checking for --enable-statbmp" >&5
10f2d63a
VZ
6126 no_cache=0
6127 # Check whether --enable-statbmp or --disable-statbmp was given.
6128if test "${enable_statbmp+set}" = set; then
6129 enableval="$enable_statbmp"
698dcdb6 6130
10f2d63a
VZ
6131 if test "$enableval" = yes; then
6132 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6133 else
6134 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6135 fi
698dcdb6 6136
10f2d63a 6137else
698dcdb6 6138
10f2d63a
VZ
6139 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6140 if test "x$LINE" != x ; then
6141 eval "DEFAULT_$LINE"
6142 else
6143 no_cache=1
6144 fi
6145
6146 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6147
6148fi
10f2d63a
VZ
6149
6150
6151 eval "$ac_cv_use_statbmp"
6152 if test "$no_cache" != 1; then
6153 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6154 fi
6155
6156 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6157 echo "$ac_t""yes" 1>&6
10f2d63a 6158 else
698dcdb6 6159 echo "$ac_t""no" 1>&6
10f2d63a 6160 fi
698dcdb6 6161
10f2d63a 6162
698dcdb6 6163 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
7cf43d5e 6164echo "configure:6165: checking for --enable-statbox" >&5
10f2d63a
VZ
6165 no_cache=0
6166 # Check whether --enable-statbox or --disable-statbox was given.
6167if test "${enable_statbox+set}" = set; then
6168 enableval="$enable_statbox"
698dcdb6 6169
10f2d63a
VZ
6170 if test "$enableval" = yes; then
6171 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6172 else
6173 ac_cv_use_statbox='wxUSE_STATBOX=no'
6174 fi
698dcdb6 6175
10f2d63a 6176else
698dcdb6 6177
10f2d63a
VZ
6178 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6179 if test "x$LINE" != x ; then
6180 eval "DEFAULT_$LINE"
6181 else
6182 no_cache=1
6183 fi
6184
6185 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6186
6187fi
10f2d63a
VZ
6188
6189
6190 eval "$ac_cv_use_statbox"
6191 if test "$no_cache" != 1; then
6192 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6193 fi
6194
6195 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6196 echo "$ac_t""yes" 1>&6
10f2d63a 6197 else
698dcdb6 6198 echo "$ac_t""no" 1>&6
10f2d63a 6199 fi
698dcdb6 6200
10f2d63a 6201
698dcdb6 6202 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
7cf43d5e 6203echo "configure:6204: checking for --enable-statline" >&5
10f2d63a
VZ
6204 no_cache=0
6205 # Check whether --enable-statline or --disable-statline was given.
6206if test "${enable_statline+set}" = set; then
6207 enableval="$enable_statline"
698dcdb6 6208
10f2d63a
VZ
6209 if test "$enableval" = yes; then
6210 ac_cv_use_statline='wxUSE_STATLINE=yes'
6211 else
6212 ac_cv_use_statline='wxUSE_STATLINE=no'
6213 fi
698dcdb6 6214
10f2d63a 6215else
698dcdb6 6216
10f2d63a
VZ
6217 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6218 if test "x$LINE" != x ; then
6219 eval "DEFAULT_$LINE"
6220 else
6221 no_cache=1
6222 fi
6223
6224 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6225
6226fi
10f2d63a
VZ
6227
6228
6229 eval "$ac_cv_use_statline"
6230 if test "$no_cache" != 1; then
6231 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6232 fi
6233
6234 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6235 echo "$ac_t""yes" 1>&6
10f2d63a 6236 else
698dcdb6 6237 echo "$ac_t""no" 1>&6
10f2d63a 6238 fi
698dcdb6 6239
10f2d63a 6240
1e6feb95 6241 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
7cf43d5e 6242echo "configure:6243: checking for --enable-stattext" >&5
1e6feb95
VZ
6243 no_cache=0
6244 # Check whether --enable-stattext or --disable-stattext was given.
6245if test "${enable_stattext+set}" = set; then
6246 enableval="$enable_stattext"
6247
6248 if test "$enableval" = yes; then
6249 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6250 else
6251 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6252 fi
6253
6254else
6255
6256 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6257 if test "x$LINE" != x ; then
6258 eval "DEFAULT_$LINE"
6259 else
6260 no_cache=1
6261 fi
6262
6263 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6264
6265fi
6266
6267
6268 eval "$ac_cv_use_stattext"
6269 if test "$no_cache" != 1; then
6270 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6271 fi
6272
6273 if test "$wxUSE_STATTEXT" = yes; then
6274 echo "$ac_t""yes" 1>&6
6275 else
6276 echo "$ac_t""no" 1>&6
6277 fi
6278
6279
698dcdb6 6280 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
7cf43d5e 6281echo "configure:6282: checking for --enable-statusbar" >&5
10f2d63a
VZ
6282 no_cache=0
6283 # Check whether --enable-statusbar or --disable-statusbar was given.
6284if test "${enable_statusbar+set}" = set; then
6285 enableval="$enable_statusbar"
698dcdb6 6286
10f2d63a
VZ
6287 if test "$enableval" = yes; then
6288 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6289 else
6290 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6291 fi
698dcdb6 6292
10f2d63a 6293else
698dcdb6 6294
10f2d63a
VZ
6295 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6296 if test "x$LINE" != x ; then
6297 eval "DEFAULT_$LINE"
6298 else
6299 no_cache=1
6300 fi
6301
6302 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6303
6304fi
10f2d63a
VZ
6305
6306
6307 eval "$ac_cv_use_statusbar"
6308 if test "$no_cache" != 1; then
6309 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6310 fi
6311
6312 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6313 echo "$ac_t""yes" 1>&6
10f2d63a 6314 else
698dcdb6 6315 echo "$ac_t""no" 1>&6
10f2d63a 6316 fi
698dcdb6 6317
10f2d63a 6318
698dcdb6 6319 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
7cf43d5e 6320echo "configure:6321: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6321 no_cache=0
6322 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6323if test "${enable_tabdialog+set}" = set; then
6324 enableval="$enable_tabdialog"
698dcdb6 6325
10f2d63a
VZ
6326 if test "$enableval" = yes; then
6327 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6328 else
6329 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6330 fi
698dcdb6 6331
10f2d63a 6332else
698dcdb6 6333
10f2d63a
VZ
6334 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6335 if test "x$LINE" != x ; then
6336 eval "DEFAULT_$LINE"
6337 else
6338 no_cache=1
6339 fi
6340
6341 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6342
6343fi
10f2d63a
VZ
6344
6345
6346 eval "$ac_cv_use_tabdialog"
6347 if test "$no_cache" != 1; then
6348 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6349 fi
6350
6351 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6352 echo "$ac_t""yes" 1>&6
10f2d63a 6353 else
698dcdb6 6354 echo "$ac_t""no" 1>&6
10f2d63a 6355 fi
698dcdb6 6356
10f2d63a 6357
1e6feb95 6358 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
7cf43d5e 6359echo "configure:6360: checking for --enable-textctrl" >&5
1e6feb95
VZ
6360 no_cache=0
6361 # Check whether --enable-textctrl or --disable-textctrl was given.
6362if test "${enable_textctrl+set}" = set; then
6363 enableval="$enable_textctrl"
6364
6365 if test "$enableval" = yes; then
6366 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6367 else
6368 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6369 fi
6370
6371else
6372
6373 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6374 if test "x$LINE" != x ; then
6375 eval "DEFAULT_$LINE"
6376 else
6377 no_cache=1
6378 fi
6379
6380 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6381
6382fi
6383
6384
6385 eval "$ac_cv_use_textctrl"
6386 if test "$no_cache" != 1; then
6387 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6388 fi
6389
6390 if test "$wxUSE_TEXTCTRL" = yes; then
6391 echo "$ac_t""yes" 1>&6
6392 else
6393 echo "$ac_t""no" 1>&6
6394 fi
6395
6396
698dcdb6 6397 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
7cf43d5e 6398echo "configure:6399: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6399 no_cache=0
6400 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6401if test "${enable_togglebtn+set}" = set; then
6402 enableval="$enable_togglebtn"
698dcdb6 6403
1db8dc4a
VZ
6404 if test "$enableval" = yes; then
6405 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6406 else
6407 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6408 fi
698dcdb6 6409
1db8dc4a 6410else
698dcdb6 6411
1db8dc4a
VZ
6412 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6413 if test "x$LINE" != x ; then
6414 eval "DEFAULT_$LINE"
6415 else
6416 no_cache=1
6417 fi
6418
6419 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6420
6421fi
1db8dc4a
VZ
6422
6423
6424 eval "$ac_cv_use_togglebtn"
6425 if test "$no_cache" != 1; then
6426 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6427 fi
6428
6429 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6430 echo "$ac_t""yes" 1>&6
1db8dc4a 6431 else
698dcdb6 6432 echo "$ac_t""no" 1>&6
1db8dc4a 6433 fi
698dcdb6 6434
1db8dc4a 6435
698dcdb6 6436 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
7cf43d5e 6437echo "configure:6438: checking for --enable-toolbar" >&5
10f2d63a
VZ
6438 no_cache=0
6439 # Check whether --enable-toolbar or --disable-toolbar was given.
6440if test "${enable_toolbar+set}" = set; then
6441 enableval="$enable_toolbar"
698dcdb6 6442
10f2d63a
VZ
6443 if test "$enableval" = yes; then
6444 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6445 else
6446 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6447 fi
698dcdb6 6448
10f2d63a 6449else
698dcdb6 6450
10f2d63a
VZ
6451 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6452 if test "x$LINE" != x ; then
6453 eval "DEFAULT_$LINE"
6454 else
6455 no_cache=1
6456 fi
6457
6458 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
6459
6460fi
10f2d63a
VZ
6461
6462
6463 eval "$ac_cv_use_toolbar"
6464 if test "$no_cache" != 1; then
6465 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6466 fi
6467
6468 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 6469 echo "$ac_t""yes" 1>&6
10f2d63a 6470 else
698dcdb6 6471 echo "$ac_t""no" 1>&6
10f2d63a 6472 fi
698dcdb6 6473
10f2d63a 6474
698dcdb6 6475 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
7cf43d5e 6476echo "configure:6477: checking for --enable-tbarnative" >&5
360d6699
VZ
6477 no_cache=0
6478 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6479if test "${enable_tbarnative+set}" = set; then
6480 enableval="$enable_tbarnative"
698dcdb6 6481
360d6699
VZ
6482 if test "$enableval" = yes; then
6483 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6484 else
6485 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6486 fi
698dcdb6 6487
360d6699 6488else
698dcdb6 6489
360d6699
VZ
6490 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6491 if test "x$LINE" != x ; then
6492 eval "DEFAULT_$LINE"
6493 else
6494 no_cache=1
6495 fi
6496
6497 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
6498
6499fi
360d6699
VZ
6500
6501
6502 eval "$ac_cv_use_tbarnative"
6503 if test "$no_cache" != 1; then
6504 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6505 fi
6506
6507 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 6508 echo "$ac_t""yes" 1>&6
360d6699 6509 else
698dcdb6 6510 echo "$ac_t""no" 1>&6
360d6699 6511 fi
698dcdb6 6512
360d6699 6513
698dcdb6 6514 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
7cf43d5e 6515echo "configure:6516: checking for --enable-tbarsmpl" >&5
360d6699
VZ
6516 no_cache=0
6517 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6518if test "${enable_tbarsmpl+set}" = set; then
6519 enableval="$enable_tbarsmpl"
698dcdb6 6520
360d6699
VZ
6521 if test "$enableval" = yes; then
6522 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6523 else
6524 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6525 fi
698dcdb6 6526
360d6699 6527else
698dcdb6 6528
360d6699
VZ
6529 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6530 if test "x$LINE" != x ; then
6531 eval "DEFAULT_$LINE"
6532 else
6533 no_cache=1
6534 fi
6535
6536 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
6537
6538fi
360d6699
VZ
6539
6540
6541 eval "$ac_cv_use_tbarsmpl"
6542 if test "$no_cache" != 1; then
6543 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6544 fi
6545
6546 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 6547 echo "$ac_t""yes" 1>&6
360d6699 6548 else
698dcdb6 6549 echo "$ac_t""no" 1>&6
360d6699 6550 fi
698dcdb6 6551
360d6699 6552
698dcdb6 6553 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
7cf43d5e 6554echo "configure:6555: checking for --enable-treectrl" >&5
10f2d63a
VZ
6555 no_cache=0
6556 # Check whether --enable-treectrl or --disable-treectrl was given.
6557if test "${enable_treectrl+set}" = set; then
6558 enableval="$enable_treectrl"
698dcdb6 6559
10f2d63a
VZ
6560 if test "$enableval" = yes; then
6561 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6562 else
6563 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6564 fi
698dcdb6 6565
10f2d63a 6566else
698dcdb6 6567
10f2d63a
VZ
6568 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6569 if test "x$LINE" != x ; then
6570 eval "DEFAULT_$LINE"
6571 else
6572 no_cache=1
6573 fi
6574
6575 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
6576
6577fi
10f2d63a
VZ
6578
6579
1e6feb95
VZ
6580 eval "$ac_cv_use_treectrl"
6581 if test "$no_cache" != 1; then
6582 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6583 fi
6584
6585 if test "$wxUSE_TREECTRL" = yes; then
6586 echo "$ac_t""yes" 1>&6
6587 else
6588 echo "$ac_t""no" 1>&6
6589 fi
6590
6591
9f41d601 6592 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
7cf43d5e 6593echo "configure:6594: checking for --enable-popupwin" >&5
9f41d601
RR
6594 no_cache=0
6595 # Check whether --enable-popupwin or --disable-popupwin was given.
6596if test "${enable_popupwin+set}" = set; then
6597 enableval="$enable_popupwin"
6598
6599 if test "$enableval" = yes; then
6600 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6601 else
6602 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6603 fi
6604
6605else
6606
6607 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6608 if test "x$LINE" != x ; then
6609 eval "DEFAULT_$LINE"
6610 else
6611 no_cache=1
6612 fi
6613
6614 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6615
6616fi
6617
6618
6619 eval "$ac_cv_use_popupwin"
6620 if test "$no_cache" != 1; then
6621 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6622 fi
6623
6624 if test "$wxUSE_POPUPWIN" = yes; then
6625 echo "$ac_t""yes" 1>&6
6626 else
6627 echo "$ac_t""no" 1>&6
6628 fi
6629
6630
1e6feb95
VZ
6631
6632
6633 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
7cf43d5e 6634echo "configure:6635: checking for --enable-commondlg" >&5
1e6feb95
VZ
6635 no_cache=0
6636 # Check whether --enable-commondlg or --disable-commondlg was given.
6637if test "${enable_commondlg+set}" = set; then
6638 enableval="$enable_commondlg"
6639
6640 if test "$enableval" = yes; then
6641 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6642 else
6643 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6644 fi
6645
6646else
6647
6648 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6649 if test "x$LINE" != x ; then
6650 eval "DEFAULT_$LINE"
6651 else
6652 no_cache=1
6653 fi
6654
6655 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6656
6657fi
6658
6659
6660 eval "$ac_cv_use_commondlg"
6661 if test "$no_cache" != 1; then
6662 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6663 fi
6664
6665 if test "$wxUSE_COMMONDLGS" = yes; then
6666 echo "$ac_t""yes" 1>&6
6667 else
6668 echo "$ac_t""no" 1>&6
6669 fi
6670
6671
6672 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
7cf43d5e 6673echo "configure:6674: checking for --enable-choicedlg" >&5
1e6feb95
VZ
6674 no_cache=0
6675 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6676if test "${enable_choicedlg+set}" = set; then
6677 enableval="$enable_choicedlg"
6678
6679 if test "$enableval" = yes; then
6680 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6681 else
6682 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6683 fi
6684
6685else
6686
6687 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6688 if test "x$LINE" != x ; then
6689 eval "DEFAULT_$LINE"
6690 else
6691 no_cache=1
6692 fi
6693
6694 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6695
6696fi
6697
6698
6699 eval "$ac_cv_use_choicedlg"
6700 if test "$no_cache" != 1; then
6701 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6702 fi
6703
6704 if test "$wxUSE_CHOICEDLG" = yes; then
6705 echo "$ac_t""yes" 1>&6
6706 else
6707 echo "$ac_t""no" 1>&6
6708 fi
6709
6710
6711 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
7cf43d5e 6712echo "configure:6713: checking for --enable-coldlg" >&5
1e6feb95
VZ
6713 no_cache=0
6714 # Check whether --enable-coldlg or --disable-coldlg was given.
6715if test "${enable_coldlg+set}" = set; then
6716 enableval="$enable_coldlg"
6717
6718 if test "$enableval" = yes; then
6719 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6720 else
6721 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6722 fi
6723
6724else
6725
6726 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6727 if test "x$LINE" != x ; then
6728 eval "DEFAULT_$LINE"
6729 else
6730 no_cache=1
6731 fi
6732
6733 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6734
6735fi
6736
6737
6738 eval "$ac_cv_use_coldlg"
6739 if test "$no_cache" != 1; then
6740 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6741 fi
6742
6743 if test "$wxUSE_COLOURDLG" = yes; then
6744 echo "$ac_t""yes" 1>&6
6745 else
6746 echo "$ac_t""no" 1>&6
6747 fi
6748
6749
6750 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
7cf43d5e 6751echo "configure:6752: checking for --enable-filedlg" >&5
1e6feb95
VZ
6752 no_cache=0
6753 # Check whether --enable-filedlg or --disable-filedlg was given.
6754if test "${enable_filedlg+set}" = set; then
6755 enableval="$enable_filedlg"
6756
6757 if test "$enableval" = yes; then
6758 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6759 else
6760 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6761 fi
6762
6763else
6764
6765 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6766 if test "x$LINE" != x ; then
6767 eval "DEFAULT_$LINE"
6768 else
6769 no_cache=1
6770 fi
6771
6772 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6773
6774fi
6775
6776
6777 eval "$ac_cv_use_filedlg"
6778 if test "$no_cache" != 1; then
6779 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6780 fi
6781
6782 if test "$wxUSE_FILEDLG" = yes; then
6783 echo "$ac_t""yes" 1>&6
6784 else
6785 echo "$ac_t""no" 1>&6
6786 fi
6787
6788
8db37e06 6789 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
7cf43d5e 6790echo "configure:6791: checking for --enable-filedlg" >&5
8db37e06
VZ
6791 no_cache=0
6792 # Check whether --enable-filedlg or --disable-filedlg was given.
6793if test "${enable_filedlg+set}" = set; then
6794 enableval="$enable_filedlg"
6795
6796 if test "$enableval" = yes; then
6797 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes'
6798 else
6799 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no'
6800 fi
6801
6802else
6803
6804 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6805 if test "x$LINE" != x ; then
6806 eval "DEFAULT_$LINE"
6807 else
6808 no_cache=1
6809 fi
6810
6811 ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
6812
6813fi
6814
6815
6816 eval "$ac_cv_use_filedlg"
6817 if test "$no_cache" != 1; then
6818 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6819 fi
6820
6821 if test "$wxUSE_FINDREPLDLG" = yes; then
6822 echo "$ac_t""yes" 1>&6
6823 else
6824 echo "$ac_t""no" 1>&6
6825 fi
6826
6827
1e6feb95 6828 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
7cf43d5e 6829echo "configure:6830: checking for --enable-fontdlg" >&5
1e6feb95
VZ
6830 no_cache=0
6831 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6832if test "${enable_fontdlg+set}" = set; then
6833 enableval="$enable_fontdlg"
6834
6835 if test "$enableval" = yes; then
6836 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6837 else
6838 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6839 fi
6840
6841else
6842
6843 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6844 if test "x$LINE" != x ; then
6845 eval "DEFAULT_$LINE"
6846 else
6847 no_cache=1
6848 fi
6849
6850 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6851
6852fi
6853
6854
6855 eval "$ac_cv_use_fontdlg"
6856 if test "$no_cache" != 1; then
6857 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6858 fi
6859
6860 if test "$wxUSE_FONTDLG" = yes; then
6861 echo "$ac_t""yes" 1>&6
6862 else
6863 echo "$ac_t""no" 1>&6
6864 fi
6865
6866
6867 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
7cf43d5e 6868echo "configure:6869: checking for --enable-dirdlg" >&5
1e6feb95
VZ
6869 no_cache=0
6870 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6871if test "${enable_dirdlg+set}" = set; then
6872 enableval="$enable_dirdlg"
6873
6874 if test "$enableval" = yes; then
6875 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6876 else
6877 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6878 fi
6879
6880else
6881
6882 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6883 if test "x$LINE" != x ; then
6884 eval "DEFAULT_$LINE"
6885 else
6886 no_cache=1
6887 fi
6888
6889 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6890
6891fi
6892
6893
6894 eval "$ac_cv_use_dirdlg"
10f2d63a 6895 if test "$no_cache" != 1; then
1e6feb95 6896 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6897 fi
6898
1e6feb95 6899 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 6900 echo "$ac_t""yes" 1>&6
10f2d63a 6901 else
698dcdb6 6902 echo "$ac_t""no" 1>&6
10f2d63a 6903 fi
698dcdb6
VZ
6904
6905
1e6feb95 6906 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
7cf43d5e 6907echo "configure:6908: checking for --enable-msgdlg" >&5
10f2d63a 6908 no_cache=0
1e6feb95
VZ
6909 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6910if test "${enable_msgdlg+set}" = set; then
6911 enableval="$enable_msgdlg"
698dcdb6 6912
10f2d63a 6913 if test "$enableval" = yes; then
1e6feb95 6914 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 6915 else
1e6feb95 6916 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 6917 fi
698dcdb6 6918
10f2d63a 6919else
698dcdb6 6920
1e6feb95 6921 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6922 if test "x$LINE" != x ; then
6923 eval "DEFAULT_$LINE"
6924 else
6925 no_cache=1
6926 fi
6927
1e6feb95 6928 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
6929
6930fi
10f2d63a
VZ
6931
6932
1e6feb95 6933 eval "$ac_cv_use_msgdlg"
10f2d63a 6934 if test "$no_cache" != 1; then
1e6feb95 6935 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6936 fi
6937
1e6feb95 6938 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 6939 echo "$ac_t""yes" 1>&6
10f2d63a 6940 else
698dcdb6 6941 echo "$ac_t""no" 1>&6
10f2d63a 6942 fi
698dcdb6 6943
10f2d63a 6944
1e6feb95 6945 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
7cf43d5e 6946echo "configure:6947: checking for --enable-numberdlg" >&5
10f2d63a 6947 no_cache=0
1e6feb95
VZ
6948 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6949if test "${enable_numberdlg+set}" = set; then
6950 enableval="$enable_numberdlg"
698dcdb6 6951
10f2d63a 6952 if test "$enableval" = yes; then
1e6feb95 6953 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 6954 else
1e6feb95 6955 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 6956 fi
698dcdb6 6957
10f2d63a 6958else
698dcdb6 6959
1e6feb95 6960 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6961 if test "x$LINE" != x ; then
6962 eval "DEFAULT_$LINE"
6963 else
6964 no_cache=1
6965 fi
6966
1e6feb95 6967 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
6968
6969fi
10f2d63a
VZ
6970
6971
1e6feb95 6972 eval "$ac_cv_use_numberdlg"
10f2d63a 6973 if test "$no_cache" != 1; then
1e6feb95 6974 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6975 fi
6976
1e6feb95 6977 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 6978 echo "$ac_t""yes" 1>&6
10f2d63a 6979 else
698dcdb6 6980 echo "$ac_t""no" 1>&6
10f2d63a 6981 fi
698dcdb6 6982
10f2d63a 6983
cbca9943 6984 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7cf43d5e 6985echo "configure:6986: checking for --enable-splash" >&5
cbca9943
VZ
6986 no_cache=0
6987 # Check whether --enable-splash or --disable-splash was given.
6988if test "${enable_splash+set}" = set; then
6989 enableval="$enable_splash"
6990
6991 if test "$enableval" = yes; then
6992 ac_cv_use_splash='wxUSE_SPLASH=yes'
6993 else
6994 ac_cv_use_splash='wxUSE_SPLASH=no'
6995 fi
6996
6997else
6998
6999 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7000 if test "x$LINE" != x ; then
7001 eval "DEFAULT_$LINE"
7002 else
7003 no_cache=1
7004 fi
7005
7006 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7007
7008fi
7009
7010
7011 eval "$ac_cv_use_splash"
7012 if test "$no_cache" != 1; then
7013 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7014 fi
7015
7016 if test "$wxUSE_SPLASH" = yes; then
7017 echo "$ac_t""yes" 1>&6
7018 else
7019 echo "$ac_t""no" 1>&6
7020 fi
7021
7022
698dcdb6 7023 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7cf43d5e 7024echo "configure:7025: checking for --enable-textdlg" >&5
10f2d63a
VZ
7025 no_cache=0
7026 # Check whether --enable-textdlg or --disable-textdlg was given.
7027if test "${enable_textdlg+set}" = set; then
7028 enableval="$enable_textdlg"
698dcdb6 7029
10f2d63a
VZ
7030 if test "$enableval" = yes; then
7031 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7032 else
7033 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7034 fi
698dcdb6 7035
10f2d63a 7036else
698dcdb6 7037
10f2d63a
VZ
7038 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7039 if test "x$LINE" != x ; then
7040 eval "DEFAULT_$LINE"
7041 else
7042 no_cache=1
7043 fi
7044
7045 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
7046
7047fi
10f2d63a
VZ
7048
7049
7050 eval "$ac_cv_use_textdlg"
7051 if test "$no_cache" != 1; then
7052 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7053 fi
7054
7055 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 7056 echo "$ac_t""yes" 1>&6
10f2d63a 7057 else
698dcdb6 7058 echo "$ac_t""no" 1>&6
10f2d63a 7059 fi
698dcdb6 7060
10f2d63a 7061
698dcdb6 7062 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7cf43d5e 7063echo "configure:7064: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7064 no_cache=0
7065 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7066if test "${enable_tipdlg+set}" = set; then
7067 enableval="$enable_tipdlg"
698dcdb6 7068
10f2d63a
VZ
7069 if test "$enableval" = yes; then
7070 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7071 else
7072 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7073 fi
698dcdb6 7074
10f2d63a 7075else
698dcdb6 7076
10f2d63a
VZ
7077 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7078 if test "x$LINE" != x ; then
7079 eval "DEFAULT_$LINE"
7080 else
7081 no_cache=1
7082 fi
7083
7084 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
7085
7086fi
10f2d63a
VZ
7087
7088
7089 eval "$ac_cv_use_tipdlg"
7090 if test "$no_cache" != 1; then
7091 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7092 fi
7093
7094 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 7095 echo "$ac_t""yes" 1>&6
10f2d63a 7096 else
698dcdb6 7097 echo "$ac_t""no" 1>&6
10f2d63a 7098 fi
698dcdb6 7099
10f2d63a 7100
698dcdb6 7101 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7cf43d5e 7102echo "configure:7103: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7103 no_cache=0
7104 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7105if test "${enable_progressdlg+set}" = set; then
7106 enableval="$enable_progressdlg"
698dcdb6 7107
10f2d63a
VZ
7108 if test "$enableval" = yes; then
7109 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7110 else
7111 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7112 fi
698dcdb6 7113
10f2d63a 7114else
698dcdb6 7115
10f2d63a
VZ
7116 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7117 if test "x$LINE" != x ; then
7118 eval "DEFAULT_$LINE"
7119 else
7120 no_cache=1
7121 fi
7122
7123 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7124
7125fi
10f2d63a
VZ
7126
7127
7128 eval "$ac_cv_use_progressdlg"
7129 if test "$no_cache" != 1; then
7130 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7131 fi
7132
7133 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7134 echo "$ac_t""yes" 1>&6
10f2d63a 7135 else
698dcdb6 7136 echo "$ac_t""no" 1>&6
10f2d63a 7137 fi
698dcdb6 7138
10f2d63a 7139
b1f5d087 7140 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7cf43d5e 7141echo "configure:7142: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7142 no_cache=0
7143 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7144if test "${enable_wizarddlg+set}" = set; then
7145 enableval="$enable_wizarddlg"
7146
7147 if test "$enableval" = yes; then
7148 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7149 else
7150 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7151 fi
7152
7153else
7154
7155 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7156 if test "x$LINE" != x ; then
7157 eval "DEFAULT_$LINE"
7158 else
7159 no_cache=1
7160 fi
7161
7162 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7163
7164fi
7165
7166
7167 eval "$ac_cv_use_wizarddlg"
7168 if test "$no_cache" != 1; then
7169 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7170 fi
7171
7172 if test "$wxUSE_WIZARDDLG" = yes; then
7173 echo "$ac_t""yes" 1>&6
7174 else
7175 echo "$ac_t""no" 1>&6
7176 fi
7177
7178
7179
7180
1e6feb95 7181 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7cf43d5e 7182echo "configure:7183: checking for --enable-menus" >&5
1e6feb95
VZ
7183 no_cache=0
7184 # Check whether --enable-menus or --disable-menus was given.
7185if test "${enable_menus+set}" = set; then
7186 enableval="$enable_menus"
7187
7188 if test "$enableval" = yes; then
7189 ac_cv_use_menus='wxUSE_MENUS=yes'
7190 else
7191 ac_cv_use_menus='wxUSE_MENUS=no'
7192 fi
7193
7194else
7195
7196 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7197 if test "x$LINE" != x ; then
7198 eval "DEFAULT_$LINE"
7199 else
7200 no_cache=1
7201 fi
7202
7203 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7204
7205fi
7206
7207
7208 eval "$ac_cv_use_menus"
7209 if test "$no_cache" != 1; then
7210 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7211 fi
7212
7213 if test "$wxUSE_MENUS" = yes; then
7214 echo "$ac_t""yes" 1>&6
7215 else
7216 echo "$ac_t""no" 1>&6
7217 fi
7218
7219
698dcdb6 7220 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7cf43d5e 7221echo "configure:7222: checking for --enable-miniframe" >&5
10f2d63a
VZ
7222 no_cache=0
7223 # Check whether --enable-miniframe or --disable-miniframe was given.
7224if test "${enable_miniframe+set}" = set; then
7225 enableval="$enable_miniframe"
698dcdb6 7226
10f2d63a
VZ
7227 if test "$enableval" = yes; then
7228 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7229 else
7230 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7231 fi
698dcdb6 7232
10f2d63a 7233else
698dcdb6 7234
10f2d63a
VZ
7235 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7236 if test "x$LINE" != x ; then
7237 eval "DEFAULT_$LINE"
7238 else
7239 no_cache=1
7240 fi
7241
7242 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7243
7244fi
10f2d63a
VZ
7245
7246
7247 eval "$ac_cv_use_miniframe"
7248 if test "$no_cache" != 1; then
7249 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7250 fi
7251
7252 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7253 echo "$ac_t""yes" 1>&6
10f2d63a 7254 else
698dcdb6 7255 echo "$ac_t""no" 1>&6
10f2d63a 7256 fi
698dcdb6 7257
10f2d63a 7258
698dcdb6 7259 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7cf43d5e 7260echo "configure:7261: checking for --enable-tooltips" >&5
10f2d63a
VZ
7261 no_cache=0
7262 # Check whether --enable-tooltips or --disable-tooltips was given.
7263if test "${enable_tooltips+set}" = set; then
7264 enableval="$enable_tooltips"
698dcdb6 7265
10f2d63a
VZ
7266 if test "$enableval" = yes; then
7267 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7268 else
7269 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7270 fi
698dcdb6 7271
10f2d63a 7272else
698dcdb6 7273
10f2d63a
VZ
7274 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7275 if test "x$LINE" != x ; then
7276 eval "DEFAULT_$LINE"
7277 else
7278 no_cache=1
7279 fi
7280
7281 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7282
7283fi
10f2d63a
VZ
7284
7285
7286 eval "$ac_cv_use_tooltips"
7287 if test "$no_cache" != 1; then
7288 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7289 fi
7290
7291 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7292 echo "$ac_t""yes" 1>&6
10f2d63a 7293 else
698dcdb6 7294 echo "$ac_t""no" 1>&6
10f2d63a 7295 fi
698dcdb6 7296
10f2d63a 7297
698dcdb6 7298 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7cf43d5e 7299echo "configure:7300: checking for --enable-splines" >&5
10f2d63a
VZ
7300 no_cache=0
7301 # Check whether --enable-splines or --disable-splines was given.
7302if test "${enable_splines+set}" = set; then
7303 enableval="$enable_splines"
698dcdb6 7304
10f2d63a
VZ
7305 if test "$enableval" = yes; then
7306 ac_cv_use_splines='wxUSE_SPLINES=yes'
7307 else
7308 ac_cv_use_splines='wxUSE_SPLINES=no'
7309 fi
698dcdb6 7310
10f2d63a 7311else
698dcdb6 7312
10f2d63a
VZ
7313 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7314 if test "x$LINE" != x ; then
7315 eval "DEFAULT_$LINE"
7316 else
7317 no_cache=1
7318 fi
7319
7320 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7321
7322fi
10f2d63a
VZ
7323
7324
7325 eval "$ac_cv_use_splines"
7326 if test "$no_cache" != 1; then
7327 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7328 fi
7329
7330 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7331 echo "$ac_t""yes" 1>&6
10f2d63a 7332 else
698dcdb6 7333 echo "$ac_t""no" 1>&6
10f2d63a 7334 fi
698dcdb6 7335
10f2d63a 7336
698dcdb6 7337 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7cf43d5e 7338echo "configure:7339: checking for --enable-validators" >&5
10f2d63a
VZ
7339 no_cache=0
7340 # Check whether --enable-validators or --disable-validators was given.
7341if test "${enable_validators+set}" = set; then
7342 enableval="$enable_validators"
698dcdb6 7343
10f2d63a
VZ
7344 if test "$enableval" = yes; then
7345 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7346 else
7347 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7348 fi
698dcdb6 7349
10f2d63a 7350else
698dcdb6 7351
10f2d63a
VZ
7352 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7353 if test "x$LINE" != x ; then
7354 eval "DEFAULT_$LINE"
7355 else
7356 no_cache=1
7357 fi
7358
7359 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7360
7361fi
10f2d63a
VZ
7362
7363
7364 eval "$ac_cv_use_validators"
7365 if test "$no_cache" != 1; then
7366 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7367 fi
7368
7369 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7370 echo "$ac_t""yes" 1>&6
10f2d63a 7371 else
698dcdb6 7372 echo "$ac_t""no" 1>&6
10f2d63a 7373 fi
698dcdb6 7374
10f2d63a 7375
698dcdb6 7376 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7cf43d5e 7377echo "configure:7378: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7378 no_cache=0
7379 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7380if test "${enable_busyinfo+set}" = set; then
7381 enableval="$enable_busyinfo"
698dcdb6 7382
10f2d63a
VZ
7383 if test "$enableval" = yes; then
7384 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7385 else
7386 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7387 fi
698dcdb6 7388
10f2d63a 7389else
698dcdb6 7390
10f2d63a
VZ
7391 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7392 if test "x$LINE" != x ; then
7393 eval "DEFAULT_$LINE"
7394 else
7395 no_cache=1
7396 fi
7397
7398 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
7399
7400fi
10f2d63a
VZ
7401
7402
7403 eval "$ac_cv_use_busyinfo"
7404 if test "$no_cache" != 1; then
7405 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7406 fi
7407
7408 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 7409 echo "$ac_t""yes" 1>&6
10f2d63a 7410 else
698dcdb6 7411 echo "$ac_t""no" 1>&6
10f2d63a 7412 fi
698dcdb6 7413
10f2d63a 7414
698dcdb6 7415 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7cf43d5e 7416echo "configure:7417: checking for --enable-joystick" >&5
f6bcfd97
BP
7417 no_cache=0
7418 # Check whether --enable-joystick or --disable-joystick was given.
7419if test "${enable_joystick+set}" = set; then
7420 enableval="$enable_joystick"
698dcdb6 7421
f6bcfd97
BP
7422 if test "$enableval" = yes; then
7423 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7424 else
7425 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7426 fi
698dcdb6 7427
f6bcfd97 7428else
698dcdb6 7429
f6bcfd97
BP
7430 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7431 if test "x$LINE" != x ; then
7432 eval "DEFAULT_$LINE"
7433 else
7434 no_cache=1
7435 fi
7436
7437 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
7438
7439fi
f6bcfd97
BP
7440
7441
7442 eval "$ac_cv_use_joystick"
7443 if test "$no_cache" != 1; then
7444 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7445 fi
7446
7447 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 7448 echo "$ac_t""yes" 1>&6
f6bcfd97 7449 else
698dcdb6 7450 echo "$ac_t""no" 1>&6
f6bcfd97 7451 fi
698dcdb6
VZ
7452
7453
1e6feb95 7454 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
7cf43d5e 7455echo "configure:7456: checking for --enable-metafile" >&5
1e6feb95
VZ
7456 no_cache=0
7457 # Check whether --enable-metafile or --disable-metafile was given.
7458if test "${enable_metafile+set}" = set; then
7459 enableval="$enable_metafile"
7460
7461 if test "$enableval" = yes; then
7462 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7463 else
7464 ac_cv_use_metafile='wxUSE_METAFILE=no'
7465 fi
7466
7467else
7468
7469 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7470 if test "x$LINE" != x ; then
7471 eval "DEFAULT_$LINE"
7472 else
7473 no_cache=1
7474 fi
7475
7476 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7477
7478fi
7479
7480
7481 eval "$ac_cv_use_metafile"
7482 if test "$no_cache" != 1; then
7483 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7484 fi
7485
7486 if test "$wxUSE_METAFILE" = yes; then
7487 echo "$ac_t""yes" 1>&6
7488 else
7489 echo "$ac_t""no" 1>&6
7490 fi
7491
7492
24fd6d87 7493 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
7cf43d5e 7494echo "configure:7495: checking for --enable-dragimage" >&5
24fd6d87
VZ
7495 no_cache=0
7496 # Check whether --enable-dragimage or --disable-dragimage was given.
7497if test "${enable_dragimage+set}" = set; then
7498 enableval="$enable_dragimage"
7499
7500 if test "$enableval" = yes; then
7501 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7502 else
7503 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7504 fi
7505
7506else
7507
7508 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7509 if test "x$LINE" != x ; then
7510 eval "DEFAULT_$LINE"
7511 else
7512 no_cache=1
7513 fi
7514
7515 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7516
7517fi
7518
7519
7520 eval "$ac_cv_use_dragimage"
7521 if test "$no_cache" != 1; then
7522 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7523 fi
7524
7525 if test "$wxUSE_DRAGIMAGE" = yes; then
7526 echo "$ac_t""yes" 1>&6
7527 else
7528 echo "$ac_t""no" 1>&6
7529 fi
7530
7531
10f2d63a 7532
698dcdb6 7533
edae8572 7534 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
7cf43d5e 7535echo "configure:7536: checking for --enable-palette" >&5
edae8572
VZ
7536 no_cache=0
7537 # Check whether --enable-palette or --disable-palette was given.
7538if test "${enable_palette+set}" = set; then
7539 enableval="$enable_palette"
7540
7541 if test "$enableval" = yes; then
7542 ac_cv_use_palette='wxUSE_PALETTE=yes'
7543 else
7544 ac_cv_use_palette='wxUSE_PALETTE=no'
7545 fi
7546
7547else
7548
7549 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
7550 if test "x$LINE" != x ; then
7551 eval "DEFAULT_$LINE"
7552 else
7553 no_cache=1
7554 fi
7555
7556 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
7557
7558fi
7559
7560
7561 eval "$ac_cv_use_palette"
7562 if test "$no_cache" != 1; then
7563 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
7564 fi
7565
7566 if test "$wxUSE_PALETTE" = yes; then
7567 echo "$ac_t""yes" 1>&6
7568 else
7569 echo "$ac_t""no" 1>&6
7570 fi
7571
7572
698dcdb6 7573 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
7cf43d5e 7574echo "configure:7575: checking for --enable-image" >&5
0046ff7c
VS
7575 no_cache=0
7576 # Check whether --enable-image or --disable-image was given.
7577if test "${enable_image+set}" = set; then
7578 enableval="$enable_image"
698dcdb6 7579
0046ff7c
VS
7580 if test "$enableval" = yes; then
7581 ac_cv_use_image='wxUSE_IMAGE=yes'
7582 else
7583 ac_cv_use_image='wxUSE_IMAGE=no'
7584 fi
698dcdb6 7585
0046ff7c 7586else
698dcdb6 7587
0046ff7c
VS
7588 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7589 if test "x$LINE" != x ; then
7590 eval "DEFAULT_$LINE"
7591 else
7592 no_cache=1
7593 fi
7594
7595 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
7596
7597fi
0046ff7c
VS
7598
7599
7600 eval "$ac_cv_use_image"
7601 if test "$no_cache" != 1; then
7602 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7603 fi
7604
7605 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 7606 echo "$ac_t""yes" 1>&6
0046ff7c 7607 else
698dcdb6 7608 echo "$ac_t""no" 1>&6
0046ff7c 7609 fi
698dcdb6 7610
0046ff7c 7611
698dcdb6 7612 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7cf43d5e 7613echo "configure:7614: checking for --enable-gif" >&5
10f2d63a
VZ
7614 no_cache=0
7615 # Check whether --enable-gif or --disable-gif was given.
7616if test "${enable_gif+set}" = set; then
7617 enableval="$enable_gif"
698dcdb6 7618
10f2d63a
VZ
7619 if test "$enableval" = yes; then
7620 ac_cv_use_gif='wxUSE_GIF=yes'
7621 else
7622 ac_cv_use_gif='wxUSE_GIF=no'
7623 fi
698dcdb6 7624
10f2d63a 7625else
698dcdb6 7626
10f2d63a
VZ
7627 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7628 if test "x$LINE" != x ; then
7629 eval "DEFAULT_$LINE"
7630 else
7631 no_cache=1
7632 fi
7633
7634 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
7635
7636fi
10f2d63a
VZ
7637
7638
7639 eval "$ac_cv_use_gif"
7640 if test "$no_cache" != 1; then
7641 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7642 fi
7643
7644 if test "$wxUSE_GIF" = yes; then
698dcdb6 7645 echo "$ac_t""yes" 1>&6
10f2d63a 7646 else
698dcdb6 7647 echo "$ac_t""no" 1>&6
10f2d63a 7648 fi
698dcdb6 7649
10f2d63a 7650
698dcdb6 7651 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
7cf43d5e 7652echo "configure:7653: checking for --enable-pcx" >&5
10f2d63a
VZ
7653 no_cache=0
7654 # Check whether --enable-pcx or --disable-pcx was given.
7655if test "${enable_pcx+set}" = set; then
7656 enableval="$enable_pcx"
698dcdb6 7657
10f2d63a
VZ
7658 if test "$enableval" = yes; then
7659 ac_cv_use_pcx='wxUSE_PCX=yes'
7660 else
7661 ac_cv_use_pcx='wxUSE_PCX=no'
7662 fi
698dcdb6 7663
10f2d63a 7664else
698dcdb6 7665
10f2d63a
VZ
7666 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7667 if test "x$LINE" != x ; then
7668 eval "DEFAULT_$LINE"
7669 else
7670 no_cache=1
7671 fi
7672
7673 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
7674
7675fi
10f2d63a
VZ
7676
7677
7678 eval "$ac_cv_use_pcx"
7679 if test "$no_cache" != 1; then
7680 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7681 fi
7682
7683 if test "$wxUSE_PCX" = yes; then
698dcdb6 7684 echo "$ac_t""yes" 1>&6
10f2d63a 7685 else
698dcdb6 7686 echo "$ac_t""no" 1>&6
10f2d63a 7687 fi
698dcdb6 7688
10f2d63a 7689
698dcdb6 7690 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7cf43d5e 7691echo "configure:7692: checking for --enable-pnm" >&5
10f2d63a
VZ
7692 no_cache=0
7693 # Check whether --enable-pnm or --disable-pnm was given.
7694if test "${enable_pnm+set}" = set; then
7695 enableval="$enable_pnm"
698dcdb6 7696
10f2d63a
VZ
7697 if test "$enableval" = yes; then
7698 ac_cv_use_pnm='wxUSE_PNM=yes'
7699 else
7700 ac_cv_use_pnm='wxUSE_PNM=no'
7701 fi
698dcdb6 7702
10f2d63a 7703else
698dcdb6 7704
10f2d63a
VZ
7705 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7706 if test "x$LINE" != x ; then
7707 eval "DEFAULT_$LINE"
7708 else
7709 no_cache=1
7710 fi
7711
7712 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
7713
7714fi
10f2d63a
VZ
7715
7716
7717 eval "$ac_cv_use_pnm"
7718 if test "$no_cache" != 1; then
7719 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7720 fi
7721
7722 if test "$wxUSE_PNM" = yes; then
698dcdb6 7723 echo "$ac_t""yes" 1>&6
10f2d63a 7724 else
698dcdb6 7725 echo "$ac_t""no" 1>&6
10f2d63a 7726 fi
698dcdb6 7727
10f2d63a 7728
698dcdb6 7729 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7cf43d5e 7730echo "configure:7731: checking for --enable-pnm" >&5
0046ff7c
VS
7731 no_cache=0
7732 # Check whether --enable-pnm or --disable-pnm was given.
7733if test "${enable_pnm+set}" = set; then
7734 enableval="$enable_pnm"
698dcdb6 7735
0046ff7c
VS
7736 if test "$enableval" = yes; then
7737 ac_cv_use_pnm='wxUSE_XPM=yes'
7738 else
7739 ac_cv_use_pnm='wxUSE_XPM=no'
7740 fi
698dcdb6 7741
0046ff7c 7742else
698dcdb6 7743
0046ff7c
VS
7744 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7745 if test "x$LINE" != x ; then
7746 eval "DEFAULT_$LINE"
7747 else
7748 no_cache=1
7749 fi
7750
7751 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
7752
7753fi
0046ff7c
VS
7754
7755
7756 eval "$ac_cv_use_pnm"
7757 if test "$no_cache" != 1; then
7758 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7759 fi
7760
7761 if test "$wxUSE_XPM" = yes; then
698dcdb6 7762 echo "$ac_t""yes" 1>&6
0046ff7c 7763 else
698dcdb6 7764 echo "$ac_t""no" 1>&6
0046ff7c 7765 fi
698dcdb6 7766
0046ff7c 7767
b12915c1
VZ
7768fi
7769
698dcdb6 7770
10f2d63a
VZ
7771 echo "saving argument cache $wx_arg_cache_file"
7772 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 7773
10f2d63a 7774
698dcdb6
VZ
7775
7776echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7cf43d5e 7777echo "configure:7778: checking for toolkit" >&5
10f2d63a
VZ
7778
7779if test "$wxUSE_GUI" = "yes"; then
7780
3a922bb4
RL
7781 if test "$USE_BEOS" = 1; then
7782 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7783 fi
b12915c1 7784
3a922bb4
RL
7785 if test "$TOOLKIT_GIVEN" = 1; then
7786 for toolkit in `echo $ALL_TOOLKITS`; do
7787 var=wxUSE_$toolkit
7788 eval "value=\$${var}"
7789 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7790 done
10f2d63a 7791 else
3a922bb4
RL
7792 for toolkit in `echo $ALL_TOOLKITS`; do
7793 if test "$has_toolkit_in_cache" != 1; then
7794 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7795 else
7796 var=DEFAULT_wxUSE_$toolkit
7797 fi
7798 eval "wxUSE_$toolkit=\$${var}"
7799 done
10f2d63a 7800 fi
10f2d63a 7801
3a922bb4
RL
7802 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
7803 + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} \
7804 + ${wxUSE_MGL:-0}`
10f2d63a 7805
3a922bb4
RL
7806 case "${host}" in
7807 *-pc-os2_emx )
7808 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7809 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7810 LEX_STEM="lexyy"
7811 ;;
7812 *)
7813 PATH_IFS=':'
7814 LEX_STEM="lex.yy"
7815 ;;
7816 esac
10f2d63a 7817
3a922bb4
RL
7818 case "$NUM_TOOLKITS" in
7819 1)
7820 ;;
7821 0)
7822 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7823 ;;
7824 *)
7825 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7826 esac
10f2d63a 7827
3a922bb4
RL
7828 for toolkit in `echo $ALL_TOOLKITS`; do
7829 var=wxUSE_$toolkit
7830 eval "value=\$${var}"
7831 if test "x$value" != x; then
7832 cache_var=CACHE_$toolkit
7833 eval "cache=\$${cache_var}"
7834 if test "$cache" = 1; then
7835 echo "$var=$value" >> ${wx_arg_cache_file}
7836 fi
7837 if test "$value" = 1; then
7838 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7839 echo "$ac_t""$toolkit_echo" 1>&6
7840 fi
7841 fi
7842 done
10f2d63a 7843else
cf27ef00 7844 PATH_IFS=':'
3a922bb4 7845 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
7846fi
7847
698dcdb6
VZ
7848
7849cat > confcache <<\EOF
10f2d63a
VZ
7850# This file is a shell script that caches the results of configure
7851# tests run on this system so they can be shared between configure
698dcdb6
VZ
7852# scripts and configure runs. It is not useful on other systems.
7853# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 7854#
698dcdb6
VZ
7855# By default, configure uses ./config.cache as the cache file,
7856# creating it if it does not exist already. You can give configure
7857# the --cache-file=FILE option to use a different cache file; that is
7858# what configure does when it calls configure scripts in
7859# subdirectories, so they share the cache.
7860# Giving --cache-file=/dev/null disables caching, for debugging configure.
7861# config.status only pays attention to the cache file if you give it the
7862# --recheck option to rerun configure.
10f2d63a 7863#
698dcdb6 7864EOF
10f2d63a
VZ
7865# The following way of writing the cache mishandles newlines in values,
7866# but we know of no workaround that is simple, portable, and efficient.
7867# So, don't put newlines in cache variables' values.
7868# Ultrix sh set writes to stderr and can't be redirected directly,
7869# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
7870(set) 2>&1 |
7871 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7872 *ac_space=\ *)
7873 # `set' does not quote correctly, so add quotes (double-quote substitution
7874 # turns \\\\ into \\, and sed turns \\ into \).
7875 sed -n \
7876 -e "s/'/'\\\\''/g" \
7877 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7878 ;;
7879 *)
7880 # `set' quotes correctly as required by POSIX, so do not add quotes.
7881 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7882 ;;
7883 esac >> confcache
7884if cmp -s $cache_file confcache; then
7885 :
7886else
10f2d63a 7887 if test -w $cache_file; then
698dcdb6
VZ
7888 echo "updating cache $cache_file"
7889 cat confcache > $cache_file
10f2d63a
VZ
7890 else
7891 echo "not updating unwritable cache $cache_file"
7892 fi
7893fi
7894rm -f confcache
7895
698dcdb6 7896
e59890c3 7897if test "$build" != "$host" ; then
3a922bb4
RL
7898 if test "$USE_WIN32" = 1 ; then
7899 CC=$host_alias-gcc
7900 CXX=$host_alias-c++
7901 AR=$host_alias-ar
7902 RANLIB=$host_alias-ranlib
7903 DLLTOOL=$host_alias-dlltool
7904 RESCOMP=$host_alias-windres
7905 LD=$host_alias-ld
7906 NM=$host_alias-nm
7907 STRIP=$host_alias-strip
7908 else
7909 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
7910 fi
10f2d63a
VZ
7911fi
7912
698dcdb6 7913# Extract the first word of "gcc", so it can be a program name with args.
1e487827 7914set dummy gcc; ac_word=$2
698dcdb6 7915echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7cf43d5e 7916echo "configure:7917: checking for $ac_word" >&5
698dcdb6
VZ
7917if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7918 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
7919else
7920 if test -n "$CC"; then
7921 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 7922else
698dcdb6
VZ
7923 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7924 ac_dummy="$PATH"
7925 for ac_dir in $ac_dummy; do
7926 test -z "$ac_dir" && ac_dir=.
7927 if test -f $ac_dir/$ac_word; then
7928 ac_cv_prog_CC="gcc"
7929 break
7930 fi
7931 done
7932 IFS="$ac_save_ifs"
10f2d63a 7933fi
6232543b 7934fi
698dcdb6 7935CC="$ac_cv_prog_CC"
6232543b 7936if test -n "$CC"; then
698dcdb6 7937 echo "$ac_t""$CC" 1>&6
1e487827 7938else
698dcdb6 7939 echo "$ac_t""no" 1>&6
1e487827 7940fi
6232543b 7941
1e487827
VS
7942if test -z "$CC"; then
7943 # Extract the first word of "cc", so it can be a program name with args.
7944set dummy cc; ac_word=$2
698dcdb6 7945echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7cf43d5e 7946echo "configure:7947: checking for $ac_word" >&5
698dcdb6
VZ
7947if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7948 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7949else
7950 if test -n "$CC"; then
7951 ac_cv_prog_CC="$CC" # Let the user override the test.
7952else
698dcdb6 7953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 7954 ac_prog_rejected=no
698dcdb6
VZ
7955 ac_dummy="$PATH"
7956 for ac_dir in $ac_dummy; do
7957 test -z "$ac_dir" && ac_dir=.
7958 if test -f $ac_dir/$ac_word; then
7959 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7960 ac_prog_rejected=yes
7961 continue
7962 fi
7963 ac_cv_prog_CC="cc"
7964 break
7965 fi
7966 done
7967 IFS="$ac_save_ifs"
1e487827
VS
7968if test $ac_prog_rejected = yes; then
7969 # We found a bogon in the path, so make sure we never use it.
7970 set dummy $ac_cv_prog_CC
7971 shift
698dcdb6 7972 if test $# -gt 0; then
1e487827
VS
7973 # We chose a different compiler from the bogus one.
7974 # However, it has the same basename, so the bogon will be chosen
7975 # first if we set CC to just the basename; use the full file name.
7976 shift
698dcdb6 7977 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
7978 shift
7979 ac_cv_prog_CC="$@"
703e0a69 7980 fi
1e487827
VS
7981fi
7982fi
7983fi
698dcdb6 7984CC="$ac_cv_prog_CC"
1e487827 7985if test -n "$CC"; then
698dcdb6 7986 echo "$ac_t""$CC" 1>&6
703e0a69 7987else
698dcdb6 7988 echo "$ac_t""no" 1>&6
703e0a69 7989fi
1e487827 7990
698dcdb6
VZ
7991 if test -z "$CC"; then
7992 case "`uname -s`" in
7993 *win32* | *WIN32*)
7994 # Extract the first word of "cl", so it can be a program name with args.
7995set dummy cl; ac_word=$2
7996echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7cf43d5e 7997echo "configure:7998: checking for $ac_word" >&5
698dcdb6
VZ
7998if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7999 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8000else
8001 if test -n "$CC"; then
8002 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 8003else
698dcdb6
VZ
8004 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8005 ac_dummy="$PATH"
8006 for ac_dir in $ac_dummy; do
8007 test -z "$ac_dir" && ac_dir=.
8008 if test -f $ac_dir/$ac_word; then
8009 ac_cv_prog_CC="cl"
8010 break
8011 fi
8012 done
8013 IFS="$ac_save_ifs"
703e0a69 8014fi
1e487827 8015fi
698dcdb6 8016CC="$ac_cv_prog_CC"
1e487827 8017if test -n "$CC"; then
698dcdb6 8018 echo "$ac_t""$CC" 1>&6
1e487827 8019else
698dcdb6 8020 echo "$ac_t""no" 1>&6
1e487827 8021fi
698dcdb6
VZ
8022 ;;
8023 esac
8024 fi
8025 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
8026fi
8027
698dcdb6 8028echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7cf43d5e 8029echo "configure:8030: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 8030
698dcdb6
VZ
8031ac_ext=c
8032# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8033ac_cpp='$CPP $CPPFLAGS'
8034ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8035ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8036cross_compiling=$ac_cv_prog_cc_cross
6232543b 8037
698dcdb6 8038cat > conftest.$ac_ext << EOF
1e487827 8039
7cf43d5e 8040#line 8041 "configure"
1e487827
VS
8041#include "confdefs.h"
8042
698dcdb6
VZ
8043main(){return(0);}
8044EOF
7cf43d5e 8045if { (eval echo configure:8046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8046 ac_cv_prog_cc_works=yes
8047 # If we can't run a trivial program, we are probably using a cross compiler.
8048 if (./conftest; exit) 2>/dev/null; then
8049 ac_cv_prog_cc_cross=no
8050 else
8051 ac_cv_prog_cc_cross=yes
8052 fi
8053else
8054 echo "configure: failed program was:" >&5
8055 cat conftest.$ac_ext >&5
8056 ac_cv_prog_cc_works=no
8057fi
8058rm -fr conftest*
8059ac_ext=c
8060# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8061ac_cpp='$CPP $CPPFLAGS'
8062ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8063ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8064cross_compiling=$ac_cv_prog_cc_cross
8065
8066echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8067if test $ac_cv_prog_cc_works = no; then
8068 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8069fi
8070echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7cf43d5e 8071echo "configure:8072: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8072echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8073cross_compiling=$ac_cv_prog_cc_cross
8074
8075echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
7cf43d5e 8076echo "configure:8077: checking whether we are using GNU C" >&5
698dcdb6
VZ
8077if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8078 echo $ac_n "(cached) $ac_c" 1>&6
8079else
8080 cat > conftest.c <<EOF
8081#ifdef __GNUC__
8082 yes;
1e487827 8083#endif
698dcdb6 8084EOF
7cf43d5e 8085if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8086 ac_cv_prog_gcc=yes
8087else
8088 ac_cv_prog_gcc=no
8089fi
8090fi
1e487827 8091
698dcdb6 8092echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 8093
698dcdb6
VZ
8094if test $ac_cv_prog_gcc = yes; then
8095 GCC=yes
8096else
8097 GCC=
8098fi
1e487827 8099
698dcdb6
VZ
8100ac_test_CFLAGS="${CFLAGS+set}"
8101ac_save_CFLAGS="$CFLAGS"
8102CFLAGS=
8103echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
7cf43d5e 8104echo "configure:8105: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
8105if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8106 echo $ac_n "(cached) $ac_c" 1>&6
8107else
8108 echo 'void f(){}' > conftest.c
8109if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8110 ac_cv_prog_cc_g=yes
8111else
698dcdb6 8112 ac_cv_prog_cc_g=no
10f2d63a 8113fi
698dcdb6
VZ
8114rm -f conftest*
8115
10f2d63a 8116fi
698dcdb6
VZ
8117
8118echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 8119if test "$ac_test_CFLAGS" = set; then
698dcdb6 8120 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
8121elif test $ac_cv_prog_cc_g = yes; then
8122 if test "$GCC" = yes; then
8123 CFLAGS="-g -O2"
8124 else
8125 CFLAGS="-g"
8126 fi
8127else
8128 if test "$GCC" = yes; then
8129 CFLAGS="-O2"
8130 else
8131 CFLAGS=
8132 fi
8133fi
8134
8135
8136CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8137
698dcdb6 8138echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7cf43d5e 8139echo "configure:8140: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8140# On Suns, sometimes $CPP names a directory.
8141if test -n "$CPP" && test -d "$CPP"; then
8142 CPP=
8143fi
8144if test -z "$CPP"; then
698dcdb6
VZ
8145if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8146 echo $ac_n "(cached) $ac_c" 1>&6
8147else
8148 # This must be in double quotes, not single quotes, because CPP may get
8149 # substituted into the Makefile and "${CC-cc}" will confuse make.
8150 CPP="${CC-cc} -E"
10f2d63a 8151 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8152 # not just through cpp.
8153 cat > conftest.$ac_ext <<EOF
7cf43d5e 8154#line 8155 "configure"
10f2d63a
VZ
8155#include "confdefs.h"
8156#include <assert.h>
698dcdb6
VZ
8157Syntax Error
8158EOF
8159ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7cf43d5e 8160{ (eval echo configure:8161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8161ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8162if test -z "$ac_err"; then
10f2d63a
VZ
8163 :
8164else
698dcdb6
VZ
8165 echo "$ac_err" >&5
8166 echo "configure: failed program was:" >&5
10f2d63a 8167 cat conftest.$ac_ext >&5
698dcdb6
VZ
8168 rm -rf conftest*
8169 CPP="${CC-cc} -E -traditional-cpp"
8170 cat > conftest.$ac_ext <<EOF
7cf43d5e 8171#line 8172 "configure"
10f2d63a 8172#include "confdefs.h"
698dcdb6
VZ
8173#include <assert.h>
8174Syntax Error
8175EOF
8176ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7cf43d5e 8177{ (eval echo configure:8178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8178ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8179if test -z "$ac_err"; then
8180 :
10f2d63a 8181else
698dcdb6
VZ
8182 echo "$ac_err" >&5
8183 echo "configure: failed program was:" >&5
10f2d63a 8184 cat conftest.$ac_ext >&5
698dcdb6
VZ
8185 rm -rf conftest*
8186 CPP="${CC-cc} -nologo -E"
8187 cat > conftest.$ac_ext <<EOF
7cf43d5e 8188#line 8189 "configure"
10f2d63a
VZ
8189#include "confdefs.h"
8190#include <assert.h>
698dcdb6
VZ
8191Syntax Error
8192EOF
8193ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7cf43d5e 8194{ (eval echo configure:8195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8195ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8196if test -z "$ac_err"; then
10f2d63a
VZ
8197 :
8198else
698dcdb6
VZ
8199 echo "$ac_err" >&5
8200 echo "configure: failed program was:" >&5
10f2d63a 8201 cat conftest.$ac_ext >&5
698dcdb6
VZ
8202 rm -rf conftest*
8203 CPP=/lib/cpp
10f2d63a 8204fi
698dcdb6 8205rm -f conftest*
10f2d63a 8206fi
698dcdb6 8207rm -f conftest*
703e0a69 8208fi
698dcdb6
VZ
8209rm -f conftest*
8210 ac_cv_prog_CPP="$CPP"
8211fi
8212 CPP="$ac_cv_prog_CPP"
10f2d63a 8213else
698dcdb6 8214 ac_cv_prog_CPP="$CPP"
10f2d63a 8215fi
698dcdb6 8216echo "$ac_t""$CPP" 1>&6
10f2d63a 8217
698dcdb6
VZ
8218if test $ac_cv_prog_gcc = yes; then
8219 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
7cf43d5e 8220echo "configure:8221: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8221if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8222 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8223else
8224 ac_pattern="Autoconf.*'x'"
698dcdb6 8225 cat > conftest.$ac_ext <<EOF
7cf43d5e 8226#line 8227 "configure"
10f2d63a
VZ
8227#include "confdefs.h"
8228#include <sgtty.h>
8229Autoconf TIOCGETP
698dcdb6 8230EOF
10f2d63a
VZ
8231if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8232 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8233 rm -rf conftest*
10f2d63a
VZ
8234 ac_cv_prog_gcc_traditional=yes
8235else
698dcdb6 8236 rm -rf conftest*
10f2d63a
VZ
8237 ac_cv_prog_gcc_traditional=no
8238fi
8239rm -f conftest*
8240
698dcdb6 8241
10f2d63a 8242 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8243 cat > conftest.$ac_ext <<EOF
7cf43d5e 8244#line 8245 "configure"
10f2d63a
VZ
8245#include "confdefs.h"
8246#include <termio.h>
8247Autoconf TCGETA
698dcdb6 8248EOF
10f2d63a
VZ
8249if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8250 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8251 rm -rf conftest*
10f2d63a
VZ
8252 ac_cv_prog_gcc_traditional=yes
8253fi
8254rm -f conftest*
8255
8256 fi
8257fi
698dcdb6
VZ
8258
8259echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8260 if test $ac_cv_prog_gcc_traditional = yes; then
8261 CC="$CC -traditional"
8262 fi
8263fi
8264
703e0a69 8265
698dcdb6
VZ
8266
8267ac_ext=C
8268# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8269ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8270ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8271ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8272cross_compiling=$ac_cv_prog_cxx_cross
8273
8274
8275for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8276do
8277# Extract the first word of "$ac_prog", so it can be a program name with args.
8278set dummy $ac_prog; ac_word=$2
8279echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7cf43d5e 8280echo "configure:8281: checking for $ac_word" >&5
698dcdb6
VZ
8281if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8282 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8283else
8284 if test -n "$CXX"; then
8285 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8286else
698dcdb6
VZ
8287 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8288 ac_dummy="$PATH"
8289 for ac_dir in $ac_dummy; do
8290 test -z "$ac_dir" && ac_dir=.
8291 if test -f $ac_dir/$ac_word; then
8292 ac_cv_prog_CXX="$ac_prog"
8293 break
8294 fi
8295 done
8296 IFS="$ac_save_ifs"
10f2d63a
VZ
8297fi
8298fi
698dcdb6 8299CXX="$ac_cv_prog_CXX"
10f2d63a 8300if test -n "$CXX"; then
698dcdb6 8301 echo "$ac_t""$CXX" 1>&6
10f2d63a 8302else
698dcdb6 8303 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8304fi
8305
698dcdb6 8306test -n "$CXX" && break
10f2d63a 8307done
698dcdb6 8308test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
8309
8310
698dcdb6 8311echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7cf43d5e 8312echo "configure:8313: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 8313
698dcdb6
VZ
8314ac_ext=C
8315# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8316ac_cpp='$CXXCPP $CPPFLAGS'
8317ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8318ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8319cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 8320
698dcdb6
VZ
8321cat > conftest.$ac_ext << EOF
8322
7cf43d5e 8323#line 8324 "configure"
10f2d63a
VZ
8324#include "confdefs.h"
8325
698dcdb6
VZ
8326int main(){return(0);}
8327EOF
7cf43d5e 8328if { (eval echo configure:8329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8329 ac_cv_prog_cxx_works=yes
8330 # If we can't run a trivial program, we are probably using a cross compiler.
8331 if (./conftest; exit) 2>/dev/null; then
8332 ac_cv_prog_cxx_cross=no
8333 else
8334 ac_cv_prog_cxx_cross=yes
8335 fi
8336else
8337 echo "configure: failed program was:" >&5
8338 cat conftest.$ac_ext >&5
8339 ac_cv_prog_cxx_works=no
8340fi
8341rm -fr conftest*
8342ac_ext=C
8343# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8344ac_cpp='$CXXCPP $CPPFLAGS'
8345ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8346ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8347cross_compiling=$ac_cv_prog_cxx_cross
8348
8349echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8350if test $ac_cv_prog_cxx_works = no; then
8351 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8352fi
8353echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7cf43d5e 8354echo "configure:8355: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8355echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8356cross_compiling=$ac_cv_prog_cxx_cross
8357
8358echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
7cf43d5e 8359echo "configure:8360: checking whether we are using GNU C++" >&5
698dcdb6
VZ
8360if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8361 echo $ac_n "(cached) $ac_c" 1>&6
8362else
8363 cat > conftest.C <<EOF
8364#ifdef __GNUC__
8365 yes;
10f2d63a 8366#endif
698dcdb6 8367EOF
7cf43d5e 8368if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8369 ac_cv_prog_gxx=yes
8370else
8371 ac_cv_prog_gxx=no
8372fi
8373fi
10f2d63a 8374
698dcdb6 8375echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 8376
698dcdb6
VZ
8377if test $ac_cv_prog_gxx = yes; then
8378 GXX=yes
8379else
8380 GXX=
8381fi
10f2d63a 8382
698dcdb6
VZ
8383ac_test_CXXFLAGS="${CXXFLAGS+set}"
8384ac_save_CXXFLAGS="$CXXFLAGS"
8385CXXFLAGS=
8386echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
7cf43d5e 8387echo "configure:8388: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
8388if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8389 echo $ac_n "(cached) $ac_c" 1>&6
8390else
8391 echo 'void f(){}' > conftest.cc
8392if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
8393 ac_cv_prog_cxx_g=yes
8394else
698dcdb6 8395 ac_cv_prog_cxx_g=no
10f2d63a 8396fi
698dcdb6
VZ
8397rm -f conftest*
8398
10f2d63a 8399fi
698dcdb6
VZ
8400
8401echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 8402if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 8403 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
8404elif test $ac_cv_prog_cxx_g = yes; then
8405 if test "$GXX" = yes; then
8406 CXXFLAGS="-g -O2"
8407 else
8408 CXXFLAGS="-g"
8409 fi
8410else
8411 if test "$GXX" = yes; then
8412 CXXFLAGS="-O2"
8413 else
8414 CXXFLAGS=
8415 fi
8416fi
8417
8418
10f2d63a
VZ
8419CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8420
8421ac_ext=c
698dcdb6 8422# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 8423ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
8424ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8425ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8426cross_compiling=$ac_cv_prog_cc_cross
8427
8428
8429# Extract the first word of "ranlib", so it can be a program name with args.
8430set dummy ranlib; ac_word=$2
8431echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7cf43d5e 8432echo "configure:8433: checking for $ac_word" >&5
698dcdb6
VZ
8433if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8434 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8435else
8436 if test -n "$RANLIB"; then
8437 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8438else
698dcdb6
VZ
8439 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8440 ac_dummy="$PATH"
8441 for ac_dir in $ac_dummy; do
8442 test -z "$ac_dir" && ac_dir=.
8443 if test -f $ac_dir/$ac_word; then
8444 ac_cv_prog_RANLIB="ranlib"
8445 break
8446 fi
8447 done
8448 IFS="$ac_save_ifs"
8449 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
8450fi
8451fi
698dcdb6 8452RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 8453if test -n "$RANLIB"; then
698dcdb6 8454 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 8455else
698dcdb6 8456 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8457fi
8458
8459
8460# Extract the first word of "ar", so it can be a program name with args.
8461set dummy ar; ac_word=$2
698dcdb6 8462echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7cf43d5e 8463echo "configure:8464: checking for $ac_word" >&5
698dcdb6
VZ
8464if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8465 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8466else
8467 if test -n "$AR"; then
8468 ac_cv_prog_AR="$AR" # Let the user override the test.
8469else
698dcdb6
VZ
8470 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8471 ac_dummy="$PATH"
8472 for ac_dir in $ac_dummy; do
8473 test -z "$ac_dir" && ac_dir=.
8474 if test -f $ac_dir/$ac_word; then
8475 ac_cv_prog_AR="ar"
8476 break
8477 fi
8478 done
8479 IFS="$ac_save_ifs"
10f2d63a
VZ
8480 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8481fi
8482fi
698dcdb6 8483AR="$ac_cv_prog_AR"
10f2d63a 8484if test -n "$AR"; then
698dcdb6 8485 echo "$ac_t""$AR" 1>&6
10f2d63a 8486else
698dcdb6 8487 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8488fi
8489
698dcdb6 8490
10f2d63a
VZ
8491# Find a good install program. We prefer a C program (faster),
8492# so one script is as good as another. But avoid the broken or
8493# incompatible versions:
8494# SysV /etc/install, /usr/sbin/install
8495# SunOS /usr/etc/install
8496# IRIX /sbin/install
8497# AIX /bin/install
8498# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8499# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8500# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8501# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 8502echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
7cf43d5e 8503echo "configure:8504: checking for a BSD compatible install" >&5
10f2d63a 8504if test -z "$INSTALL"; then
698dcdb6
VZ
8505if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8506 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8507else
698dcdb6 8508 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
8509 for ac_dir in $PATH; do
8510 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
8511 case "$ac_dir/" in
8512 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
8513 *)
8514 # OSF1 and SCO ODT 3.0 have their own names for install.
8515 # Don't use installbsd from OSF since it installs stuff as root
8516 # by default.
8517 for ac_prog in ginstall scoinst install; do
698dcdb6 8518 if test -f $ac_dir/$ac_prog; then
10f2d63a 8519 if test $ac_prog = install &&
698dcdb6 8520 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
8521 # AIX install. It has an incompatible calling convention.
8522 :
8523 else
8524 ac_cv_path_install="$ac_dir/$ac_prog -c"
8525 break 2
8526 fi
8527 fi
8528 done
8529 ;;
8530 esac
8531 done
698dcdb6 8532 IFS="$ac_save_IFS"
10f2d63a
VZ
8533
8534fi
8535 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 8536 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
8537 else
8538 # As a last resort, use the slow shell script. We don't cache a
8539 # path for INSTALL within a source directory, because that will
8540 # break other packages using the cache if that directory is
8541 # removed, or if the path is relative.
698dcdb6 8542 INSTALL="$ac_install_sh"
10f2d63a
VZ
8543 fi
8544fi
698dcdb6 8545echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
8546
8547# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8548# It thinks the first close brace ends the variable substitution.
8549test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8550
698dcdb6 8551test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
8552
8553test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8554
698dcdb6 8555
10f2d63a
VZ
8556# Extract the first word of "strip", so it can be a program name with args.
8557set dummy strip; ac_word=$2
698dcdb6 8558echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7cf43d5e 8559echo "configure:8560: checking for $ac_word" >&5
698dcdb6
VZ
8560if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8561 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8562else
8563 if test -n "$STRIP"; then
8564 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8565else
698dcdb6
VZ
8566 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8567 ac_dummy="$PATH"
8568 for ac_dir in $ac_dummy; do
8569 test -z "$ac_dir" && ac_dir=.
8570 if test -f $ac_dir/$ac_word; then
8571 ac_cv_prog_STRIP="strip"
8572 break
8573 fi
8574 done
8575 IFS="$ac_save_ifs"
10f2d63a
VZ
8576 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8577fi
8578fi
698dcdb6 8579STRIP="$ac_cv_prog_STRIP"
10f2d63a 8580if test -n "$STRIP"; then
698dcdb6 8581 echo "$ac_t""$STRIP" 1>&6
10f2d63a 8582else
698dcdb6 8583 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8584fi
8585
698dcdb6
VZ
8586
8587echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
7cf43d5e 8588echo "configure:8589: checking make for VPATH support" >&5
10f2d63a
VZ
8589cat - << EOF > confMake
8590check : file
8591 cp \$? \$@
8592 cp \$? final_file
8593EOF
8594
8595if test ! -d sub ; then
8596 mkdir sub
8597fi
8598echo dummy > sub/file
f6bcfd97 8599${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
8600RESULT=$?
8601rm -f sub/file check final_file confMake
8602rmdir sub
8603if test "$RESULT" = 0; then
698dcdb6 8604 echo "$ac_t""yes" 1>&6
10f2d63a 8605else
698dcdb6
VZ
8606 echo "$ac_t""no" 1>&6
8607 { echo "configure: error:
1e487827
VS
8608You need a make-utility that is able to use the variable
8609VPATH correctly.
8610If your version of make does not support VPATH correctly,
8611please install GNU-make (possibly as gmake), and start
8612configure with the following command:
8613export MAKE=gmake; ./configure for sh-type shells
8614setenv MAKE gmake; ./configure for csh-type shells
8615Also please do remember to use gmake in this case every time
8616you are trying to compile.
698dcdb6 8617" 1>&2; exit 1; }
10f2d63a
VZ
8618fi
8619
8620for ac_prog in 'bison -y' byacc
8621do
698dcdb6 8622# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 8623set dummy $ac_prog; ac_word=$2
698dcdb6 8624echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7cf43d5e 8625echo "configure:8626: checking for $ac_word" >&5
698dcdb6
VZ
8626if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8627 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8628else
8629 if test -n "$YACC"; then
8630 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8631else
698dcdb6
VZ
8632 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8633 ac_dummy="$PATH"
8634 for ac_dir in $ac_dummy; do
8635 test -z "$ac_dir" && ac_dir=.
8636 if test -f $ac_dir/$ac_word; then
8637 ac_cv_prog_YACC="$ac_prog"
8638 break
8639 fi
8640 done
8641 IFS="$ac_save_ifs"
10f2d63a
VZ
8642fi
8643fi
698dcdb6 8644YACC="$ac_cv_prog_YACC"
10f2d63a 8645if test -n "$YACC"; then
698dcdb6 8646 echo "$ac_t""$YACC" 1>&6
10f2d63a 8647else
698dcdb6 8648 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8649fi
8650
698dcdb6 8651test -n "$YACC" && break
10f2d63a
VZ
8652done
8653test -n "$YACC" || YACC="yacc"
8654
698dcdb6
VZ
8655
8656# Extract the first word of "flex", so it can be a program name with args.
8657set dummy flex; ac_word=$2
8658echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7cf43d5e 8659echo "configure:8660: checking for $ac_word" >&5
698dcdb6
VZ
8660if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8661 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8662else
8663 if test -n "$LEX"; then
8664 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8665else
698dcdb6
VZ
8666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8667 ac_dummy="$PATH"
8668 for ac_dir in $ac_dummy; do
8669 test -z "$ac_dir" && ac_dir=.
8670 if test -f $ac_dir/$ac_word; then
8671 ac_cv_prog_LEX="flex"
8672 break
8673 fi
8674 done
8675 IFS="$ac_save_ifs"
8676 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
8677fi
8678fi
698dcdb6 8679LEX="$ac_cv_prog_LEX"
10f2d63a 8680if test -n "$LEX"; then
698dcdb6 8681 echo "$ac_t""$LEX" 1>&6
10f2d63a 8682else
698dcdb6 8683 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8684fi
8685
8686if test -z "$LEXLIB"
8687then
698dcdb6
VZ
8688 case "$LEX" in
8689 flex*) ac_lib=fl ;;
8690 *) ac_lib=l ;;
8691 esac
8692 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
7cf43d5e 8693echo "configure:8694: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
8694ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8695if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8696 echo $ac_n "(cached) $ac_c" 1>&6
8697else
8698 ac_save_LIBS="$LIBS"
8699LIBS="-l$ac_lib $LIBS"
8700cat > conftest.$ac_ext <<EOF
7cf43d5e 8701#line 8702 "configure"
10f2d63a
VZ
8702#include "confdefs.h"
8703/* Override any gcc2 internal prototype to avoid an error. */
8704/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
8705 builtin and then its argument prototype would still apply. */
8706char yywrap();
10f2d63a 8707
698dcdb6
VZ
8708int main() {
8709yywrap()
8710; return 0; }
8711EOF
7cf43d5e 8712if { (eval echo configure:8713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8713 rm -rf conftest*
8714 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 8715else
698dcdb6
VZ
8716 echo "configure: failed program was:" >&5
8717 cat conftest.$ac_ext >&5
8718 rm -rf conftest*
8719 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 8720fi
698dcdb6
VZ
8721rm -f conftest*
8722LIBS="$ac_save_LIBS"
8723
10f2d63a 8724fi
698dcdb6
VZ
8725if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8726 echo "$ac_t""yes" 1>&6
8727 LEXLIB="-l$ac_lib"
8728else
8729 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8730fi
8731
8732fi
8733
8734
698dcdb6 8735echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7cf43d5e 8736echo "configure:8737: checking whether ln -s works" >&5
698dcdb6
VZ
8737if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8738 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8739else
698dcdb6
VZ
8740 rm -f conftestdata
8741if ln -s X conftestdata 2>/dev/null
8742then
8743 rm -f conftestdata
8744 ac_cv_prog_LN_S="ln -s"
10f2d63a 8745else
698dcdb6 8746 ac_cv_prog_LN_S=ln
10f2d63a
VZ
8747fi
8748fi
698dcdb6
VZ
8749LN_S="$ac_cv_prog_LN_S"
8750if test "$ac_cv_prog_LN_S" = "ln -s"; then
8751 echo "$ac_t""yes" 1>&6
10f2d63a 8752else
698dcdb6 8753 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8754fi
8755
8756
8757
8758SEARCH_INCLUDE="\
8759 /usr/local/include \
8760 \
8761 /usr/Motif-1.2/include \
8762 /usr/Motif-2.1/include \
8763 \
8764 /usr/include/Motif1.2 \
8765 /opt/xpm/include/X11 \
8766 /opt/GBxpm/include/ \
8767 /opt/GBxpm/X11/include/ \
8768 \
8769 /usr/Motif1.2/include \
8770 /usr/dt/include \
afc31813
VZ
8771 /usr/openwin/include \
8772 \
10f2d63a
VZ
8773 /usr/include/Xm \
8774 \
8775 /usr/X11R6/include \
afc31813 8776 /usr/X11R6.4/include \
10f2d63a
VZ
8777 /usr/X11R5/include \
8778 /usr/X11R4/include \
8779 \
10f2d63a
VZ
8780 /usr/include/X11R6 \
8781 /usr/include/X11R5 \
8782 /usr/include/X11R4 \
8783 \
8784 /usr/local/X11R6/include \
8785 /usr/local/X11R5/include \
8786 /usr/local/X11R4/include \
8787 \
8788 /usr/local/include/X11R6 \
8789 /usr/local/include/X11R5 \
8790 /usr/local/include/X11R4 \
8791 \
8792 /usr/X11/include \
8793 /usr/include/X11 \
8794 /usr/local/X11/include \
8795 /usr/local/include/X11 \
8796 \
8797 /usr/X386/include \
8798 /usr/x386/include \
8799 /usr/XFree86/include/X11 \
8800 \
cf27ef00 8801 X:/XFree86/include \
ec14dd32
VZ
8802 X:/XFree86/include/X11 \
8803 \
10f2d63a
VZ
8804 /usr/include/gtk \
8805 /usr/local/include/gtk \
8806 /usr/include/glib \
8807 /usr/local/include/glib \
8808 \
8809 /usr/include/qt \
8810 /usr/local/include/qt \
8811 \
8812 /usr/include/windows \
8813 /usr/include/wine \
8814 /usr/local/include/wine \
8815 \
8816 /usr/unsupported/include \
8817 /usr/athena/include \
8818 /usr/local/x11r5/include \
8819 /usr/lpp/Xamples/include \
8820 \
10f2d63a 8821 /usr/openwin/share/include \
928b5c08
VZ
8822 \
8823 /usr/include"
10f2d63a
VZ
8824
8825SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8826
698dcdb6
VZ
8827
8828cat > confcache <<\EOF
10f2d63a
VZ
8829# This file is a shell script that caches the results of configure
8830# tests run on this system so they can be shared between configure
698dcdb6
VZ
8831# scripts and configure runs. It is not useful on other systems.
8832# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8833#
698dcdb6
VZ
8834# By default, configure uses ./config.cache as the cache file,
8835# creating it if it does not exist already. You can give configure
8836# the --cache-file=FILE option to use a different cache file; that is
8837# what configure does when it calls configure scripts in
8838# subdirectories, so they share the cache.
8839# Giving --cache-file=/dev/null disables caching, for debugging configure.
8840# config.status only pays attention to the cache file if you give it the
8841# --recheck option to rerun configure.
10f2d63a 8842#
698dcdb6 8843EOF
10f2d63a
VZ
8844# The following way of writing the cache mishandles newlines in values,
8845# but we know of no workaround that is simple, portable, and efficient.
8846# So, don't put newlines in cache variables' values.
8847# Ultrix sh set writes to stderr and can't be redirected directly,
8848# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8849(set) 2>&1 |
8850 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8851 *ac_space=\ *)
8852 # `set' does not quote correctly, so add quotes (double-quote substitution
8853 # turns \\\\ into \\, and sed turns \\ into \).
8854 sed -n \
8855 -e "s/'/'\\\\''/g" \
8856 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8857 ;;
8858 *)
8859 # `set' quotes correctly as required by POSIX, so do not add quotes.
8860 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8861 ;;
8862 esac >> confcache
8863if cmp -s $cache_file confcache; then
8864 :
8865else
10f2d63a 8866 if test -w $cache_file; then
698dcdb6
VZ
8867 echo "updating cache $cache_file"
8868 cat confcache > $cache_file
10f2d63a
VZ
8869 else
8870 echo "not updating unwritable cache $cache_file"
8871 fi
8872fi
8873rm -f confcache
8874
698dcdb6
VZ
8875
8876
18dbb1f6
VZ
8877REGEX_INCLUDE=
8878if test "$wxUSE_REGEX" != "no"; then
8879 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
8880echo $ac_n "checking for regex.h""... $ac_c" 1>&6
7cf43d5e 8881echo "configure:8882: checking for regex.h" >&5
18dbb1f6
VZ
8882if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8883 echo $ac_n "(cached) $ac_c" 1>&6
8884else
8885 cat > conftest.$ac_ext <<EOF
7cf43d5e 8886#line 8887 "configure"
18dbb1f6
VZ
8887#include "confdefs.h"
8888#include <regex.h>
8889EOF
8890ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7cf43d5e 8891{ (eval echo configure:8892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18dbb1f6
VZ
8892ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8893if test -z "$ac_err"; then
8894 rm -rf conftest*
8895 eval "ac_cv_header_$ac_safe=yes"
8896else
8897 echo "$ac_err" >&5
8898 echo "configure: failed program was:" >&5
8899 cat conftest.$ac_ext >&5
8900 rm -rf conftest*
8901 eval "ac_cv_header_$ac_safe=no"
8902fi
8903rm -f conftest*
8904fi
8905if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8906 echo "$ac_t""yes" 1>&6
8907 for ac_func in regcomp
8908do
8909echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7cf43d5e 8910echo "configure:8911: checking for $ac_func" >&5
18dbb1f6
VZ
8911if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8912 echo $ac_n "(cached) $ac_c" 1>&6
8913else
8914 cat > conftest.$ac_ext <<EOF
7cf43d5e 8915#line 8916 "configure"
18dbb1f6
VZ
8916#include "confdefs.h"
8917/* System header to define __stub macros and hopefully few prototypes,
8918 which can conflict with char $ac_func(); below. */
8919#include <assert.h>
8920/* Override any gcc2 internal prototype to avoid an error. */
8921/* We use char because int might match the return type of a gcc2
8922 builtin and then its argument prototype would still apply. */
8923char $ac_func();
8924
8925int main() {
8926
8927/* The GNU C library defines this for functions which it implements
8928 to always fail with ENOSYS. Some functions are actually named
8929 something starting with __ and the normal name is an alias. */
8930#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8931choke me
8932#else
8933$ac_func();
8934#endif
8935
8936; return 0; }
8937EOF
7cf43d5e 8938if { (eval echo configure:8939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18dbb1f6
VZ
8939 rm -rf conftest*
8940 eval "ac_cv_func_$ac_func=yes"
8941else
8942 echo "configure: failed program was:" >&5
8943 cat conftest.$ac_ext >&5
8944 rm -rf conftest*
8945 eval "ac_cv_func_$ac_func=no"
8946fi
8947rm -f conftest*
8948fi
8949
8950if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8951 echo "$ac_t""yes" 1>&6
8952 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8953 cat >> confdefs.h <<EOF
8954#define $ac_tr_func 1
8955EOF
8956
8957else
8958 echo "$ac_t""no" 1>&6
8959fi
8960done
8961
8962else
8963 echo "$ac_t""no" 1>&6
8964fi
8965
8966
8967 if test "x$ac_cv_func_regcomp" != "xyes"; then
8968 if test "$wxUSE_REGEX" = "sys"; then
8969 { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; }
8970 fi
8971
8972 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
8973 fi
8974
8975 cat >> confdefs.h <<\EOF
8976#define wxUSE_REGEX 1
8977EOF
8978
8979fi
8980
8981
dad6c0ea
VZ
8982AFMINSTALL=
8983
3a922bb4
RL
8984TOOLKIT=
8985TOOLKIT_INCLUDE=
8986WIDGET_SET=
10f2d63a 8987
3a922bb4
RL
8988if test "$USE_WIN32" = 1 ; then
8989 for ac_hdr in w32api.h
8990do
8991ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8992echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7cf43d5e 8993echo "configure:8994: checking for $ac_hdr" >&5
3a922bb4
RL
8994if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8995 echo $ac_n "(cached) $ac_c" 1>&6
8996else
8997 cat > conftest.$ac_ext <<EOF
7cf43d5e 8998#line 8999 "configure"
3a922bb4
RL
8999#include "confdefs.h"
9000#include <$ac_hdr>
9001EOF
9002ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7cf43d5e 9003{ (eval echo configure:9004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
9004ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9005if test -z "$ac_err"; then
9006 rm -rf conftest*
9007 eval "ac_cv_header_$ac_safe=yes"
9008else
9009 echo "$ac_err" >&5
9010 echo "configure: failed program was:" >&5
9011 cat conftest.$ac_ext >&5
9012 rm -rf conftest*
9013 eval "ac_cv_header_$ac_safe=no"
9014fi
9015rm -f conftest*
9016fi
9017if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9018 echo "$ac_t""yes" 1>&6
9019 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9020 cat >> confdefs.h <<EOF
9021#define $ac_tr_hdr 1
9022EOF
9023
9024else
9025 echo "$ac_t""no" 1>&6
9026fi
9027done
10f2d63a 9028
3a922bb4 9029 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
29fd3c0c 9030echo $ac_n "checking for windows.h""... $ac_c" 1>&6
7cf43d5e 9031echo "configure:9032: checking for windows.h" >&5
d4158b5d
VS
9032if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9033 echo $ac_n "(cached) $ac_c" 1>&6
9034else
9035 cat > conftest.$ac_ext <<EOF
7cf43d5e 9036#line 9037 "configure"
d4158b5d 9037#include "confdefs.h"
29fd3c0c 9038#include <windows.h>
d4158b5d
VS
9039EOF
9040ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7cf43d5e 9041{ (eval echo configure:9042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4158b5d
VS
9042ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9043if test -z "$ac_err"; then
9044 rm -rf conftest*
9045 eval "ac_cv_header_$ac_safe=yes"
9046else
9047 echo "$ac_err" >&5
9048 echo "configure: failed program was:" >&5
9049 cat conftest.$ac_ext >&5
9050 rm -rf conftest*
9051 eval "ac_cv_header_$ac_safe=no"
9052fi
9053rm -f conftest*
9054fi
9055if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9056 echo "$ac_t""yes" 1>&6
29fd3c0c 9057 :
d4158b5d
VS
9058else
9059 echo "$ac_t""no" 1>&6
d4158b5d 9060
3a922bb4
RL
9061 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9062
29fd3c0c 9063fi
10f2d63a 9064
3f0f0161 9065
3a922bb4 9066 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
7cf43d5e 9067echo "configure:9068: checking if w32api has good enough MSIE support" >&5
3a922bb4
RL
9068if eval "test \"`echo '$''{'wx_cv_w32api_win_ie'+set}'`\" = set"; then
9069 echo $ac_n "(cached) $ac_c" 1>&6
9070else
9071
9072 cat > conftest.$ac_ext <<EOF
7cf43d5e 9073#line 9074 "configure"
3a922bb4
RL
9074#include "confdefs.h"
9075#include <w32api.h>
9076int main() {
3f0f0161 9077
3a922bb4
RL
9078 #define wxCHECK_W32API_VERSION( major, minor ) \
9079 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
9080 && ( ( __W32API_MAJOR_VERSION > (major) ) \
9081 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
f6bcfd97 9082
3a922bb4
RL
9083 #if !wxCHECK_W32API_VERSION(1,1)
9084 #error You need w32api 1.1 or newer
9085 #endif
9086
9087; return 0; }
9088EOF
7cf43d5e 9089if { (eval echo configure:9090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3a922bb4
RL
9090 rm -rf conftest*
9091
9092 wx_cv_w32api_win_ie=yes
9093 CPPFLAGS="$CPPFLAGS -D_WIN_IE=0x400"
9094
9095else
9096 echo "configure: failed program was:" >&5
9097 cat conftest.$ac_ext >&5
9098 rm -rf conftest*
9099
9100 wx_cv_w32api_win_ie=no
9101
9102fi
9103rm -f conftest*
9104
9105fi
10f2d63a 9106
3a922bb4 9107echo "$ac_t""$wx_cv_w32api_win_ie" 1>&6
32832908 9108
3a922bb4
RL
9109 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
9110
7b7a7637
RL
9111 if test "$wxUSE_CYGWIN" = 1; then
9112 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
9113 fi
9114
3a922bb4
RL
9115 if test "$wxUSE_ODBC" = "yes" ; then
9116 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
9117 fi
9118
9119 if test "$wxUSE_MINGW" = 1; then
9120 LDFLAGS="$LDFLAGS -mwindows"
9121 fi
9122
9123 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
9124 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
9125fi
9126
9127if test "$wxUSE_GUI" = "yes"; then
9128 USE_GUI=1
32832908 9129
3a922bb4
RL
9130 GUI_TK_LIBRARY=
9131
9132 WXGTK12=
9133 WXGTK127=
9134 WXGTK20=
32832908 9135
3a922bb4
RL
9136 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
9137 TOOLKIT=MSW
9138 GUIDIST=MSW_DIST
1e6feb95 9139 fi
10f2d63a 9140
1e6feb95 9141 if test "$wxUSE_GTK" = 1; then
8168de4c 9142 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
7cf43d5e 9143echo "configure:9144: checking for GTK+ version" >&5
8168de4c
VZ
9144
9145 gtk_version_cached=1
9146 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9147 echo $ac_n "(cached) $ac_c" 1>&6
9148else
9149
9150 gtk_version_cached=0
9151 echo "$ac_t""""" 1>&6
9152
9153 wx_cv_lib_gtk=
9154 if test "x$wxUSE_GTK2" = "xyes"; then
9155 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6f72b082
OK
9156if test "${with_gtk_prefix+set}" = set; then
9157 withval="$with_gtk_prefix"
9158 gtk_config_prefix="$withval"
9159else
9160 gtk_config_prefix=""
698dcdb6 9161fi
6f72b082
OK
9162
9163# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9164if test "${with_gtk_exec_prefix+set}" = set; then
9165 withval="$with_gtk_exec_prefix"
9166 gtk_config_exec_prefix="$withval"
9167else
9168 gtk_config_exec_prefix=""
698dcdb6
VZ
9169fi
9170
6f72b082
OK
9171# Check whether --enable-gtktest or --disable-gtktest was given.
9172if test "${enable_gtktest+set}" = set; then
9173 enableval="$enable_gtktest"
698dcdb6 9174 :
6f72b082
OK
9175else
9176 enable_gtktest=yes
698dcdb6
VZ
9177fi
9178
6f72b082 9179
8168de4c 9180 for module in .
6f72b082
OK
9181 do
9182 case "$module" in
8168de4c 9183 gthread)
6f72b082
OK
9184 gtk_config_args="$gtk_config_args gthread"
9185 ;;
9186 esac
9187 done
9188
9189 if test x$gtk_config_exec_prefix != x ; then
9190 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9191 if test x${GTK_CONFIG_2_0+set} != xset ; then
9192 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9193 fi
9194 fi
9195 if test x$gtk_config_prefix != x ; then
9196 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9197 if test x${GTK_CONFIG_2_0+set} != xset ; then
9198 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9199 fi
9200 fi
9201
9202 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9203set dummy gtk-config-2.0; ac_word=$2
698dcdb6 9204echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7cf43d5e 9205echo "configure:9206: checking for $ac_word" >&5
698dcdb6
VZ
9206if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9207 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 9208else
698dcdb6
VZ
9209 case "$GTK_CONFIG_2_0" in
9210 /*)
6f72b082
OK
9211 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9212 ;;
698dcdb6
VZ
9213 ?:/*)
9214 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9215 ;;
6f72b082 9216 *)
698dcdb6
VZ
9217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9218 ac_dummy="$PATH"
9219 for ac_dir in $ac_dummy; do
9220 test -z "$ac_dir" && ac_dir=.
9221 if test -f $ac_dir/$ac_word; then
9222 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9223 break
9224 fi
9225 done
9226 IFS="$ac_save_ifs"
6f72b082
OK
9227 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9228 ;;
9229esac
9230fi
698dcdb6 9231GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 9232if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 9233 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 9234else
698dcdb6 9235 echo "$ac_t""no" 1>&6
6f72b082
OK
9236fi
9237
9238 min_gtk_version=1.3.1
698dcdb6 9239 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7cf43d5e 9240echo "configure:9241: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
9241 no_gtk=""
9242 if test "$GTK_CONFIG_2_0" = "no" ; then
9243 no_gtk=yes
9244 else
9245 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9246 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9247 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9248 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9249 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9250 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9251 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9252 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9253 if test "x$enable_gtktest" = "xyes" ; then
9254 ac_save_CFLAGS="$CFLAGS"
9255 ac_save_LIBS="$LIBS"
9256 CFLAGS="$CFLAGS $GTK_CFLAGS"
9257 LIBS="$GTK_LIBS $LIBS"
9258 rm -f conf.gtktest
9259 if test "$cross_compiling" = yes; then
9260 echo $ac_n "cross compiling; assumed OK... $ac_c"
9261else
698dcdb6 9262 cat > conftest.$ac_ext <<EOF
7cf43d5e 9263#line 9264 "configure"
6f72b082
OK
9264#include "confdefs.h"
9265
9266#include <gtk/gtk.h>
9267#include <stdio.h>
9268#include <stdlib.h>
9269
8168de4c 9270int
6f72b082
OK
9271main ()
9272{
9273 int major, minor, micro;
9274 char *tmp_version;
9275
9276 system ("touch conf.gtktest");
9277
9278 /* HP/UX 9 (%@#!) writes to sscanf strings */
9279 tmp_version = g_strdup("$min_gtk_version");
9280 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9281 printf("%s, bad version string\n", "$min_gtk_version");
9282 exit(1);
9283 }
9284
9285 if ((gtk_major_version != $gtk_config_major_version) ||
9286 (gtk_minor_version != $gtk_config_minor_version) ||
9287 (gtk_micro_version != $gtk_config_micro_version))
9288 {
8168de4c 9289 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
9290 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9291 gtk_major_version, gtk_minor_version, gtk_micro_version);
9292 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9293 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9294 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9295 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9296 printf("*** required on your system.\n");
9297 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9298 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9299 printf("*** before re-running configure\n");
8168de4c 9300 }
6f72b082
OK
9301#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9302 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8168de4c 9303 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
9304 (gtk_micro_version != GTK_MICRO_VERSION))
9305 {
9306 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8168de4c 9307 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 9308 printf("*** library (version %d.%d.%d)\n",
8168de4c 9309 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082
OK
9310 }
9311#endif /* defined (GTK_MAJOR_VERSION) ... */
9312 else
9313 {
9314 if ((gtk_major_version > major) ||
9315 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9316 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9317 {
9318 return 0;
9319 }
9320 else
9321 {
9322 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9323 gtk_major_version, gtk_minor_version, gtk_micro_version);
9324 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8168de4c 9325 major, minor, micro);
6f72b082
OK
9326 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9327 printf("***\n");
9328 printf("*** If you have already installed a sufficiently new version, this error\n");
9329 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9330 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9331 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9332 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9333 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9334 printf("*** so that the correct libraries are found at run-time))\n");
9335 }
9336 }
9337 return 1;
9338}
9339
698dcdb6 9340EOF
7cf43d5e 9341if { (eval echo configure:9342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9342then
6f72b082
OK
9343 :
9344else
698dcdb6
VZ
9345 echo "configure: failed program was:" >&5
9346 cat conftest.$ac_ext >&5
9347 rm -fr conftest*
9348 no_gtk=yes
6f72b082 9349fi
698dcdb6 9350rm -fr conftest*
6f72b082 9351fi
698dcdb6 9352
6f72b082
OK
9353 CFLAGS="$ac_save_CFLAGS"
9354 LIBS="$ac_save_LIBS"
9355 fi
9356 fi
9357 if test "x$no_gtk" = x ; then
698dcdb6 9358 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8168de4c 9359 wx_cv_lib_gtk=2.0
6f72b082 9360 else
698dcdb6 9361 echo "$ac_t""no" 1>&6
6f72b082
OK
9362 if test "$GTK_CONFIG_2_0" = "no" ; then
9363 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9364 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9365 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9366 echo "*** full path to gtk-config-2.0."
9367 else
9368 if test -f conf.gtktest ; then
9369 :
9370 else
9371 echo "*** Could not run GTK test program, checking why..."
9372 CFLAGS="$CFLAGS $GTK_CFLAGS"
9373 LIBS="$LIBS $GTK_LIBS"
698dcdb6 9374 cat > conftest.$ac_ext <<EOF
7cf43d5e 9375#line 9376 "configure"
6f72b082
OK
9376#include "confdefs.h"
9377
9378#include <gtk/gtk.h>
9379#include <stdio.h>
9380
698dcdb6
VZ
9381int main() {
9382 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9383; return 0; }
9384EOF
7cf43d5e 9385if { (eval echo configure:9386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9386 rm -rf conftest*
6f72b082
OK
9387 echo "*** The test program compiled, but did not run. This usually means"
9388 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9389 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9390 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9391 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9392 echo "*** is required on your system"
8168de4c 9393 echo "***"
6f72b082
OK
9394 echo "*** If you have an old version installed, it is best to remove it, although"
9395 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9396 echo "***"
9397 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9398 echo "*** came with the system with the command"
9399 echo "***"
698dcdb6 9400 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 9401else
698dcdb6
VZ
9402 echo "configure: failed program was:" >&5
9403 cat conftest.$ac_ext >&5
9404 rm -rf conftest*
9405 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
9406 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9407 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
698dcdb6 9408 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 9409fi
698dcdb6 9410rm -f conftest*
6f72b082
OK
9411 CFLAGS="$ac_save_CFLAGS"
9412 LIBS="$ac_save_LIBS"
9413 fi
9414 fi
9415 GTK_CFLAGS=""
9416 GTK_LIBS=""
8168de4c
VZ
9417 gthread
9418 fi
9419
9420
9421 rm -f conf.gtktest
9422
9423 fi
9424
9425 if test -z "$wx_cv_lib_gtk"; then
9426
10f2d63a
VZ
9427 if test x$gtk_config_exec_prefix != x ; then
9428 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9429 if test x${GTK_CONFIG+set} != xset ; then
9430 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9431 fi
9432 fi
9433 if test x$gtk_config_prefix != x ; then
9434 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9435 if test x${GTK_CONFIG+set} != xset ; then
9436 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9437 fi
9438 fi
9439
9440 # Extract the first word of "gtk-config", so it can be a program name with args.
9441set dummy gtk-config; ac_word=$2
698dcdb6 9442echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7cf43d5e 9443echo "configure:9444: checking for $ac_word" >&5
698dcdb6
VZ
9444if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9445 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 9446else
698dcdb6
VZ
9447 case "$GTK_CONFIG" in
9448 /*)
f6bcfd97
BP
9449 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9450 ;;
698dcdb6
VZ
9451 ?:/*)
9452 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9453 ;;
f6bcfd97 9454 *)
698dcdb6
VZ
9455 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9456 ac_dummy="$PATH"
9457 for ac_dir in $ac_dummy; do
9458 test -z "$ac_dir" && ac_dir=.
9459 if test -f $ac_dir/$ac_word; then
9460 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9461 break
9462 fi
9463 done
9464 IFS="$ac_save_ifs"
f6bcfd97
BP
9465 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9466 ;;
9467esac
9468fi
698dcdb6 9469GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 9470if test -n "$GTK_CONFIG"; then
698dcdb6 9471 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 9472else
698dcdb6 9473 echo "$ac_t""no" 1>&6
f6bcfd97
BP
9474fi
9475
9476 min_gtk_version=1.2.7
698dcdb6 9477 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7cf43d5e 9478echo "configure:9479: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
9479 no_gtk=""
9480 if test "$GTK_CONFIG" != "no" ; then
9481 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9482 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9483 ac_save_CFLAGS="$CFLAGS"
9484 ac_save_LIBS="$LIBS"
9485 CFLAGS="$CFLAGS $GTK_CFLAGS"
9486 LIBS="$LIBS $GTK_LIBS"
9487 if test "$cross_compiling" = yes; then
9488 echo $ac_n "cross compiling; assumed OK... $ac_c"
9489else
698dcdb6 9490 cat > conftest.$ac_ext <<EOF
7cf43d5e 9491#line 9492 "configure"
f6bcfd97
BP
9492#include "confdefs.h"
9493
9494#include <gtk/gtk.h>
9495#include <gtk/gtkfeatures.h>
9496#include <stdio.h>
9497#include <stdlib.h>
9498
9499int
9500main ()
9501{
9502 int major, minor, micro;
9503
9504 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9505 printf("%s, bad version string\n", "$min_gtk_version");
9506 exit(1);
9507 }
9508
9509 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9510 (GTK_MINOR_VERSION != gtk_minor_version) ||
9511 (GTK_MICRO_VERSION != gtk_micro_version)) {
9512 printf("Headers vs. library version mismatch!\n");
9513 exit(1);
9514 }
9515
9516 if (gtk_minor_version == 1) return FALSE;
9517
9518 return !((gtk_major_version > major) ||
9519 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9520 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9521}
9522
698dcdb6 9523EOF
7cf43d5e 9524if { (eval echo configure:9525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9525then
f6bcfd97
BP
9526 :
9527else
698dcdb6
VZ
9528 echo "configure: failed program was:" >&5
9529 cat conftest.$ac_ext >&5
9530 rm -fr conftest*
9531 no_gtk=yes
f6bcfd97 9532fi
698dcdb6 9533rm -fr conftest*
f6bcfd97 9534fi
698dcdb6 9535
f6bcfd97
BP
9536 CFLAGS="$ac_save_CFLAGS"
9537 LIBS="$ac_save_LIBS"
9538 else
9539 no_gtk=yes
9540 fi
9541 if test "x$no_gtk" = x ; then
698dcdb6 9542 echo "$ac_t""yes" 1>&6
8168de4c 9543 wx_cv_lib_gtk=1.2.7
f6bcfd97 9544 else
698dcdb6 9545 echo "$ac_t""no" 1>&6
f6bcfd97
BP
9546 GTK_CFLAGS=""
9547 GTK_LIBS=""
9548 :
9549 fi
698dcdb6
VZ
9550
9551
f6bcfd97 9552
8168de4c
VZ
9553 fi
9554
9555 if test -z "$wx_cv_lib_gtk"; then
9556
f6bcfd97
BP
9557 if test x$gtk_config_exec_prefix != x ; then
9558 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9559 if test x${GTK_CONFIG+set} != xset ; then
9560 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9561 fi
9562 fi
9563 if test x$gtk_config_prefix != x ; then
9564 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9565 if test x${GTK_CONFIG+set} != xset ; then
9566 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9567 fi
9568 fi
9569
9570 # Extract the first word of "gtk-config", so it can be a program name with args.
9571set dummy gtk-config; ac_word=$2
698dcdb6 9572echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7cf43d5e 9573echo "configure:9574: checking for $ac_word" >&5
698dcdb6
VZ
9574if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9575 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9576else
698dcdb6
VZ
9577 case "$GTK_CONFIG" in
9578 /*)
10f2d63a
VZ
9579 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9580 ;;
698dcdb6
VZ
9581 ?:/*)
9582 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9583 ;;
10f2d63a 9584 *)
698dcdb6
VZ
9585 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9586 ac_dummy="$PATH"
9587 for ac_dir in $ac_dummy; do
9588 test -z "$ac_dir" && ac_dir=.
9589 if test -f $ac_dir/$ac_word; then
9590 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9591 break
9592 fi
9593 done
9594 IFS="$ac_save_ifs"
10f2d63a
VZ
9595 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9596 ;;
9597esac
9598fi
698dcdb6 9599GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 9600if test -n "$GTK_CONFIG"; then
698dcdb6 9601 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 9602else
698dcdb6 9603 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9604fi
9605
04165bec 9606 min_gtk_version=1.2.3
698dcdb6 9607 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7cf43d5e 9608echo "configure:9609: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
9609 no_gtk=""
9610 if test "$GTK_CONFIG" != "no" ; then
9611 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 9612 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
9613 ac_save_CFLAGS="$CFLAGS"
9614 ac_save_LIBS="$LIBS"
9615 CFLAGS="$CFLAGS $GTK_CFLAGS"
9616 LIBS="$LIBS $GTK_LIBS"
9617 if test "$cross_compiling" = yes; then
9618 echo $ac_n "cross compiling; assumed OK... $ac_c"
9619else
698dcdb6 9620 cat > conftest.$ac_ext <<EOF
7cf43d5e 9621#line 9622 "configure"
10f2d63a
VZ
9622#include "confdefs.h"
9623
9624#include <gtk/gtk.h>
f49f2b0c 9625#include <gtk/gtkfeatures.h>
10f2d63a 9626#include <stdio.h>
32832908 9627#include <stdlib.h>
10f2d63a
VZ
9628
9629int
9630main ()
9631{
9632 int major, minor, micro;
9633
9634 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9635 printf("%s, bad version string\n", "$min_gtk_version");
9636 exit(1);
9637 }
9638
f49f2b0c
RR
9639 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9640 (GTK_MINOR_VERSION != gtk_minor_version) ||
9641 (GTK_MICRO_VERSION != gtk_micro_version)) {
9642 printf("Headers vs. library version mismatch!\n");
9643 exit(1);
9644 }
9645
10f2d63a
VZ
9646 if (gtk_minor_version == 1) return FALSE;
9647
9648 return !((gtk_major_version > major) ||
9649 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9650 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9651}
9652
698dcdb6 9653EOF
7cf43d5e 9654if { (eval echo configure:9655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9655then
10f2d63a
VZ
9656 :
9657else
698dcdb6
VZ
9658 echo "configure: failed program was:" >&5
9659 cat conftest.$ac_ext >&5
9660 rm -fr conftest*
9661 no_gtk=yes
10f2d63a 9662fi
698dcdb6 9663rm -fr conftest*
10f2d63a 9664fi
698dcdb6 9665
10f2d63a
VZ
9666 CFLAGS="$ac_save_CFLAGS"
9667 LIBS="$ac_save_LIBS"
9668 else
9669 no_gtk=yes
9670 fi
9671 if test "x$no_gtk" = x ; then
698dcdb6 9672 echo "$ac_t""yes" 1>&6
8168de4c 9673 wx_cv_lib_gtk=1.2.3
10f2d63a 9674 else
698dcdb6 9675 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9676 GTK_CFLAGS=""
9677 GTK_LIBS=""
7e99ad86 9678 :
10f2d63a 9679 fi
698dcdb6
VZ
9680
9681
10f2d63a 9682
8168de4c
VZ
9683 fi
9684
9685 if test -z "$wx_cv_lib_gtk"; then
9686 wx_cv_lib_gtk=none
138be253
VZ
9687 else
9688 wx_cv_cflags_gtk=$GTK_CFLAGS
9689 wx_cv_libs_gtk=$GTK_LIBS
8168de4c
VZ
9690 fi
9691
1e6feb95 9692
8168de4c 9693fi
703e0a69 9694
698dcdb6 9695
8168de4c
VZ
9696 if test "$gtk_version_cached" = 1; then
9697 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
1e6feb95 9698 fi
698dcdb6 9699
8168de4c
VZ
9700 case "$wx_cv_lib_gtk" in
9701 2.0) WXGTK20=1
9702 ;;
9703 1.2.7) WXGTK127=1
d1a8d972 9704 WXGTK12=1
8168de4c
VZ
9705 ;;
9706 1.2.3) WXGTK12=1
9707 ;;
9708 *) { echo "configure: error:
9709Please check that gtk-config is in path, the directory
9710where GTK+ libraries are installed (returned by
9711'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9712equivalent variable and GTK+ is version 1.2.3 or above.
9713 " 1>&2; exit 1; }
9714 ;;
9715 esac
2224580a 9716
138be253 9717 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11dfaa5f 9718 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
698dcdb6 9719
1e6feb95
VZ
9720 AFMINSTALL=afminstall
9721 TOOLKIT=GTK
9722 GUIDIST=GTK_DIST
7ec2881a 9723
1e6feb95 9724 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
7cf43d5e 9725echo "configure:9726: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
9726ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9727if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9728 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 9729else
698dcdb6 9730 ac_save_LIBS="$LIBS"
7ec2881a 9731LIBS="-lgdk $LIBS"
698dcdb6 9732cat > conftest.$ac_ext <<EOF
7cf43d5e 9733#line 9734 "configure"
7ec2881a
RR
9734#include "confdefs.h"
9735/* Override any gcc2 internal prototype to avoid an error. */
9736/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9737 builtin and then its argument prototype would still apply. */
9738char gdk_im_open();
9739
9740int main() {
9741gdk_im_open()
9742; return 0; }
9743EOF
7cf43d5e 9744if { (eval echo configure:9745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9745 rm -rf conftest*
9746 eval "ac_cv_lib_$ac_lib_var=yes"
9747else
9748 echo "configure: failed program was:" >&5
9749 cat conftest.$ac_ext >&5
9750 rm -rf conftest*
9751 eval "ac_cv_lib_$ac_lib_var=no"
9752fi
9753rm -f conftest*
9754LIBS="$ac_save_LIBS"
9755
9756fi
9757if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9758 echo "$ac_t""yes" 1>&6
9759 cat >> confdefs.h <<\EOF
7ec2881a
RR
9760#define HAVE_XIM 1
9761EOF
9762
698dcdb6
VZ
9763else
9764 echo "$ac_t""no" 1>&6
7ec2881a
RR
9765fi
9766
1e6feb95 9767 fi
10f2d63a 9768
1e6feb95
VZ
9769 if test "$wxUSE_MGL" = 1; then
9770
9771 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
7cf43d5e 9772echo "configure:9773: checking for SciTech MGL library" >&5
1e6feb95
VZ
9773 if test "x$MGL_ROOT" = x ; then
9774 echo "$ac_t""not found" 1>&6
9775 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9776 else
9777 echo "$ac_t""$MGL_ROOT" 1>&6
9778 fi
9779
3a922bb4
RL
9780 mgl_os=linux/gcc/glibc
9781 mgl_lib_type=""
1e6feb95
VZ
9782
9783 if test "$wxUSE_DEBUG_FLAG" = yes ; then
3a922bb4
RL
9784 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a ; then
9785 mgl_lib_type=debug
1e6feb95
VZ
9786 fi
9787 fi
3a922bb4
RL
9788 if test "x$mgl_lib_type" = x ; then
9789 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a ; then
9790 mgl_lib_type=release
1e6feb95
VZ
9791 else
9792 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9793 fi
9794 fi
9795
9796 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
3a922bb4 9797 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
1e6feb95
VZ
9798
9799 AFMINSTALL=afminstall
9800 TOOLKIT=MGL
9801 GUIDIST=MGL_DIST
9802 fi
9803
9804 if test "$wxUSE_WINE" = 1; then
3a922bb4
RL
9805 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
9806echo $ac_n "checking for windows.h""... $ac_c" 1>&6
7cf43d5e 9807echo "configure:9808: checking for windows.h" >&5
3a922bb4
RL
9808if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9809 echo $ac_n "(cached) $ac_c" 1>&6
9810else
9811 cat > conftest.$ac_ext <<EOF
7cf43d5e 9812#line 9813 "configure"
3a922bb4
RL
9813#include "confdefs.h"
9814#include <windows.h>
9815EOF
9816ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7cf43d5e 9817{ (eval echo configure:9818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
9818ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9819if test -z "$ac_err"; then
9820 rm -rf conftest*
9821 eval "ac_cv_header_$ac_safe=yes"
9822else
9823 echo "$ac_err" >&5
9824 echo "configure: failed program was:" >&5
9825 cat conftest.$ac_ext >&5
9826 rm -rf conftest*
9827 eval "ac_cv_header_$ac_safe=no"
9828fi
9829rm -f conftest*
9830fi
9831if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9832 echo "$ac_t""yes" 1>&6
9833 :
9834else
9835 echo "$ac_t""no" 1>&6
10f2d63a 9836
1e6feb95 9837 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
3a922bb4
RL
9838
9839fi
9840
10f2d63a 9841
3a922bb4 9842 xpm_link=""
1e6feb95 9843 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
7cf43d5e 9844echo "configure:9845: checking for Xpm library" >&5
1e6feb95 9845
10f2d63a
VZ
9846ac_find_libraries=
9847for ac_dir in $SEARCH_LIB;
9848 do
f11bdd03 9849 for ac_extension in a so sl dylib; do
10f2d63a
VZ
9850 if test -f "$ac_dir/libXpm.$ac_extension"; then
9851 ac_find_libraries=$ac_dir
9852 break 2
9853 fi
9854 done
9855 done
9856
1e6feb95
VZ
9857 if test "$ac_find_libraries" != "" ; then
9858 GUI_TK_LIBRARY="-L$ac_find_libraries"
3a922bb4 9859 xpm_link="-lXpm"
1e6feb95 9860 cat >> confdefs.h <<\EOF
10f2d63a
VZ
9861#define wxHAVE_LIB_XPM 1
9862EOF
9863
1e6feb95
VZ
9864 echo "$ac_t""found at $ac_find_libraries" 1>&6
9865 else
9866 echo "$ac_t""no" 1>&6
9867 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9868 fi
10f2d63a 9869
3a922bb4 9870 mesa_link=""
1e6feb95 9871 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
7cf43d5e 9872echo "configure:9873: checking for Mesa library" >&5
1e6feb95 9873
10f2d63a
VZ
9874ac_find_libraries=
9875for ac_dir in $SEARCH_LIB;
9876 do
f11bdd03 9877 for ac_extension in a so sl dylib; do
10f2d63a
VZ
9878 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9879 ac_find_libraries=$ac_dir
9880 break 2
9881 fi
9882 done
9883 done
9884
1e6feb95
VZ
9885 if test "$ac_find_libraries" != "" ; then
9886 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
3a922bb4 9887 mesa_link="-lMesaGL"
1e6feb95
VZ
9888 echo "$ac_t""found at $ac_find_libraries" 1>&6
9889 else
9890 { echo "configure: error: no" 1>&2; exit 1; }
9891 fi
10f2d63a 9892
3a922bb4 9893 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine $mesa_link $xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
1e6feb95
VZ
9894 TOOLKIT=MSW
9895 GUIDIST=MSW_DIST
3a922bb4 9896 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
1e6feb95 9897 fi
698dcdb6 9898
1e6feb95
VZ
9899
9900 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
9901# paths, otherwise set no_x=yes.
9902# Uses ac_ vars as temps to allow command line to override cache and checks.
9903# --without-x overrides everything else, but does not touch the cache.
9904echo $ac_n "checking for X""... $ac_c" 1>&6
7cf43d5e 9905echo "configure:9906: checking for X" >&5
ab9b9eab
VZ
9906
9907# Check whether --with-x or --without-x was given.
9908if test "${with_x+set}" = set; then
9909 withval="$with_x"
698dcdb6
VZ
9910 :
9911fi
ba337fe7 9912
ab9b9eab
VZ
9913# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9914if test "x$with_x" = xno; then
9915 # The user explicitly disabled X.
9916 have_x=disabled
9917else
9918 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9919 # Both variables are already set.
9920 have_x=yes
9921 else
698dcdb6
VZ
9922if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9923 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
9924else
9925 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
9926ac_x_includes=NO ac_x_libraries=NO
9927rm -fr conftestdir
9928if mkdir conftestdir; then
9929 cd conftestdir
ab9b9eab 9930 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 9931 cat > Imakefile <<'EOF'
ab9b9eab
VZ
9932acfindx:
9933 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9934EOF
9935 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9936 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9937 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9938 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 9939 for ac_extension in a so sl; do
ab9b9eab 9940 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 9941 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 9942 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
9943 fi
9944 done
ab9b9eab
VZ
9945 # Screen out bogus values from the imake configuration. They are
9946 # bogus both because they are the default anyway, and because
9947 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 9948 case "$ac_im_incroot" in
ab9b9eab 9949 /usr/include) ;;
698dcdb6 9950 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 9951 esac
698dcdb6 9952 case "$ac_im_usrlibdir" in
ab9b9eab 9953 /usr/lib | /lib) ;;
698dcdb6 9954 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 9955 esac
ba337fe7 9956 fi
ab9b9eab 9957 cd ..
698dcdb6 9958 rm -fr conftestdir
ab9b9eab 9959fi
10f2d63a 9960
698dcdb6
VZ
9961if test "$ac_x_includes" = NO; then
9962 # Guess where to find include files, by looking for this one X11 .h file.
9963 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9964
ab9b9eab 9965 # First, try using that file with no special directory specified.
698dcdb6 9966cat > conftest.$ac_ext <<EOF
7cf43d5e 9967#line 9968 "configure"
ab9b9eab 9968#include "confdefs.h"
698dcdb6
VZ
9969#include <$x_direct_test_include>
9970EOF
9971ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7cf43d5e 9972{ (eval echo configure:9973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
9973ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9974if test -z "$ac_err"; then
9975 rm -rf conftest*
ab9b9eab
VZ
9976 # We can compile using X headers with no special include directory.
9977ac_x_includes=
9978else
698dcdb6
VZ
9979 echo "$ac_err" >&5
9980 echo "configure: failed program was:" >&5
ab9b9eab 9981 cat conftest.$ac_ext >&5
698dcdb6
VZ
9982 rm -rf conftest*
9983 # Look for the header file in a standard set of common directories.
9984# Check X11 before X11Rn because it is often a symlink to the current release.
9985 for ac_dir in \
9986 /usr/X11/include \
9987 /usr/X11R6/include \
9988 /usr/X11R5/include \
9989 /usr/X11R4/include \
9990 \
9991 /usr/include/X11 \
9992 /usr/include/X11R6 \
9993 /usr/include/X11R5 \
9994 /usr/include/X11R4 \
9995 \
9996 /usr/local/X11/include \
9997 /usr/local/X11R6/include \
9998 /usr/local/X11R5/include \
9999 /usr/local/X11R4/include \
10000 \
10001 /usr/local/include/X11 \
10002 /usr/local/include/X11R6 \
10003 /usr/local/include/X11R5 \
10004 /usr/local/include/X11R4 \
10005 \
10006 /usr/X386/include \
10007 /usr/x386/include \
10008 /usr/XFree86/include/X11 \
10009 \
10010 /usr/include \
10011 /usr/local/include \
10012 /usr/unsupported/include \
10013 /usr/athena/include \
10014 /usr/local/x11r5/include \
10015 /usr/lpp/Xamples/include \
10016 \
10017 /usr/openwin/include \
10018 /usr/openwin/share/include \
10019 ; \
10020 do
10021 if test -r "$ac_dir/$x_direct_test_include"; then
10022 ac_x_includes=$ac_dir
10023 break
10024 fi
10025 done
ab9b9eab 10026fi
698dcdb6
VZ
10027rm -f conftest*
10028fi # $ac_x_includes = NO
10f2d63a 10029
698dcdb6 10030if test "$ac_x_libraries" = NO; then
ab9b9eab 10031 # Check for the libraries.
698dcdb6
VZ
10032
10033 test -z "$x_direct_test_library" && x_direct_test_library=Xt
10034 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10035
ab9b9eab
VZ
10036 # See if we find them without any special options.
10037 # Don't add to $LIBS permanently.
698dcdb6
VZ
10038 ac_save_LIBS="$LIBS"
10039 LIBS="-l$x_direct_test_library $LIBS"
10040cat > conftest.$ac_ext <<EOF
7cf43d5e 10041#line 10042 "configure"
ab9b9eab 10042#include "confdefs.h"
698dcdb6
VZ
10043
10044int main() {
10045${x_direct_test_function}()
10046; return 0; }
10047EOF
7cf43d5e 10048if { (eval echo configure:10049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10049 rm -rf conftest*
10050 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
10051# We can link X programs with no special library path.
10052ac_x_libraries=
10053else
698dcdb6
VZ
10054 echo "configure: failed program was:" >&5
10055 cat conftest.$ac_ext >&5
10056 rm -rf conftest*
10057 LIBS="$ac_save_LIBS"
10058# First see if replacing the include by lib works.
10059# Check X11 before X11Rn because it is often a symlink to the current release.
10060for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
10061 /usr/X11/lib \
10062 /usr/X11R6/lib \
10063 /usr/X11R5/lib \
10064 /usr/X11R4/lib \
10065 \
10066 /usr/lib/X11 \
10067 /usr/lib/X11R6 \
10068 /usr/lib/X11R5 \
10069 /usr/lib/X11R4 \
10070 \
10071 /usr/local/X11/lib \
10072 /usr/local/X11R6/lib \
10073 /usr/local/X11R5/lib \
10074 /usr/local/X11R4/lib \
10075 \
10076 /usr/local/lib/X11 \
10077 /usr/local/lib/X11R6 \
10078 /usr/local/lib/X11R5 \
10079 /usr/local/lib/X11R4 \
10080 \
10081 /usr/X386/lib \
10082 /usr/x386/lib \
10083 /usr/XFree86/lib/X11 \
10084 \
10085 /usr/lib \
10086 /usr/local/lib \
10087 /usr/unsupported/lib \
10088 /usr/athena/lib \
10089 /usr/local/x11r5/lib \
10090 /usr/lpp/Xamples/lib \
10091 /lib/usr/lib/X11 \
10092 \
10093 /usr/openwin/lib \
10094 /usr/openwin/share/lib \
10095 ; \
ab9b9eab
VZ
10096do
10097 for ac_extension in a so sl; do
698dcdb6 10098 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
10099 ac_x_libraries=$ac_dir
10100 break 2
10f2d63a 10101 fi
10f2d63a 10102 done
ab9b9eab
VZ
10103done
10104fi
698dcdb6
VZ
10105rm -f conftest*
10106fi # $ac_x_libraries = NO
10f2d63a 10107
698dcdb6 10108if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
10109 # Didn't find X anywhere. Cache the known absence of X.
10110 ac_cv_have_x="have_x=no"
10111else
10112 # Record where we found X for the cache.
10113 ac_cv_have_x="have_x=yes \
10114 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10115fi
10116fi
10f2d63a 10117 fi
ab9b9eab
VZ
10118 eval "$ac_cv_have_x"
10119fi # $with_x != no
10f2d63a 10120
ab9b9eab 10121if test "$have_x" != yes; then
698dcdb6 10122 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
10123 no_x=yes
10124else
10125 # If each of the values was on the command line, it overrides each guess.
10126 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10127 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10128 # Update the cache value to reflect the command line values.
10129 ac_cv_have_x="have_x=yes \
10130 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 10131 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 10132fi
10f2d63a 10133
ab9b9eab
VZ
10134if test "$no_x" = yes; then
10135 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 10136 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
10137#define X_DISPLAY_MISSING 1
10138EOF
10f2d63a 10139
ab9b9eab
VZ
10140 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10141else
10142 if test -n "$x_includes"; then
10143 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
10144 fi
10145
ab9b9eab
VZ
10146 # It would also be nice to do this for all -L options, not just this one.
10147 if test -n "$x_libraries"; then
10148 X_LIBS="$X_LIBS -L$x_libraries"
10149 # For Solaris; some versions of Sun CC require a space after -R and
10150 # others require no space. Words are not sufficient . . . .
698dcdb6 10151 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 10152 "SunOS 5"*)
698dcdb6 10153 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
7cf43d5e 10154echo "configure:10155: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
10155 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
10156 cat > conftest.$ac_ext <<EOF
7cf43d5e 10157#line 10158 "configure"
ab9b9eab 10158#include "confdefs.h"
10f2d63a 10159
698dcdb6 10160int main() {
788deba1 10161
698dcdb6
VZ
10162; return 0; }
10163EOF
7cf43d5e 10164if { (eval echo configure:10165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10165 rm -rf conftest*
ab9b9eab
VZ
10166 ac_R_nospace=yes
10167else
698dcdb6
VZ
10168 echo "configure: failed program was:" >&5
10169 cat conftest.$ac_ext >&5
10170 rm -rf conftest*
10171 ac_R_nospace=no
ab9b9eab 10172fi
698dcdb6 10173rm -f conftest*
ab9b9eab 10174 if test $ac_R_nospace = yes; then
698dcdb6 10175 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10176 X_LIBS="$X_LIBS -R$x_libraries"
10177 else
10178 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 10179 cat > conftest.$ac_ext <<EOF
7cf43d5e 10180#line 10181 "configure"
ab9b9eab 10181#include "confdefs.h"
788deba1 10182
698dcdb6 10183int main() {
ab9b9eab 10184
698dcdb6
VZ
10185; return 0; }
10186EOF
7cf43d5e 10187if { (eval echo configure:10188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10188 rm -rf conftest*
ab9b9eab
VZ
10189 ac_R_space=yes
10190else
698dcdb6
VZ
10191 echo "configure: failed program was:" >&5
10192 cat conftest.$ac_ext >&5
10193 rm -rf conftest*
10194 ac_R_space=no
ab9b9eab 10195fi
698dcdb6 10196rm -f conftest*
ab9b9eab 10197 if test $ac_R_space = yes; then
698dcdb6 10198 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
10199 X_LIBS="$X_LIBS -R $x_libraries"
10200 else
698dcdb6 10201 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
10202 fi
10203 fi
698dcdb6 10204 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
10205 esac
10206 fi
10207
10208 # Check for system-dependent libraries X programs must link with.
10209 # Do this before checking for the system-independent R6 libraries
10210 # (-lICE), since we may need -lsocket or whatever for X linking.
10211
10212 if test "$ISC" = yes; then
10213 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10214 else
698dcdb6
VZ
10215 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10216 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 10217 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 10218 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
7cf43d5e 10219echo "configure:10220: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
10220ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10221if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10222 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10223else
698dcdb6 10224 ac_save_LIBS="$LIBS"
ab9b9eab 10225LIBS="-ldnet $LIBS"
698dcdb6 10226cat > conftest.$ac_ext <<EOF
7cf43d5e 10227#line 10228 "configure"
ab9b9eab
VZ
10228#include "confdefs.h"
10229/* Override any gcc2 internal prototype to avoid an error. */
10230/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10231 builtin and then its argument prototype would still apply. */
10232char dnet_ntoa();
10233
10234int main() {
10235dnet_ntoa()
10236; return 0; }
10237EOF
7cf43d5e 10238if { (eval echo configure:10239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10239 rm -rf conftest*
10240 eval "ac_cv_lib_$ac_lib_var=yes"
10241else
10242 echo "configure: failed program was:" >&5
10243 cat conftest.$ac_ext >&5
10244 rm -rf conftest*
10245 eval "ac_cv_lib_$ac_lib_var=no"
10246fi
10247rm -f conftest*
10248LIBS="$ac_save_LIBS"
10249
10250fi
10251if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10252 echo "$ac_t""yes" 1>&6
ab9b9eab 10253 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
10254else
10255 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10256fi
10257
10258 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 10259 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
7cf43d5e 10260echo "configure:10261: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
10261ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10262if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10263 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10264else
698dcdb6 10265 ac_save_LIBS="$LIBS"
ab9b9eab 10266LIBS="-ldnet_stub $LIBS"
698dcdb6 10267cat > conftest.$ac_ext <<EOF
7cf43d5e 10268#line 10269 "configure"
ab9b9eab
VZ
10269#include "confdefs.h"
10270/* Override any gcc2 internal prototype to avoid an error. */
10271/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10272 builtin and then its argument prototype would still apply. */
10273char dnet_ntoa();
10274
10275int main() {
10276dnet_ntoa()
10277; return 0; }
10278EOF
7cf43d5e 10279if { (eval echo configure:10280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10280 rm -rf conftest*
10281 eval "ac_cv_lib_$ac_lib_var=yes"
10282else
10283 echo "configure: failed program was:" >&5
10284 cat conftest.$ac_ext >&5
10285 rm -rf conftest*
10286 eval "ac_cv_lib_$ac_lib_var=no"
10287fi
10288rm -f conftest*
10289LIBS="$ac_save_LIBS"
10290
10291fi
10292if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10293 echo "$ac_t""yes" 1>&6
ab9b9eab 10294 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
10295else
10296 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10297fi
10298
10299 fi
10300
10301 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10302 # to get the SysV transport functions.
698dcdb6 10303 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
10304 # needs -lnsl.
10305 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
10306 # on Irix 5.2, according to dickey@clark.net.
10307 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
7cf43d5e 10308echo "configure:10309: checking for gethostbyname" >&5
698dcdb6
VZ
10309if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10310 echo $ac_n "(cached) $ac_c" 1>&6
10311else
10312 cat > conftest.$ac_ext <<EOF
7cf43d5e 10313#line 10314 "configure"
ab9b9eab
VZ
10314#include "confdefs.h"
10315/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10316 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
10317#include <assert.h>
10318/* Override any gcc2 internal prototype to avoid an error. */
10319/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10320 builtin and then its argument prototype would still apply. */
10321char gethostbyname();
10322
10323int main() {
ab9b9eab
VZ
10324
10325/* The GNU C library defines this for functions which it implements
10326 to always fail with ENOSYS. Some functions are actually named
10327 something starting with __ and the normal name is an alias. */
10328#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10329choke me
10330#else
698dcdb6 10331gethostbyname();
ab9b9eab
VZ
10332#endif
10333
698dcdb6
VZ
10334; return 0; }
10335EOF
7cf43d5e 10336if { (eval echo configure:10337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10337 rm -rf conftest*
10338 eval "ac_cv_func_gethostbyname=yes"
10339else
10340 echo "configure: failed program was:" >&5
10341 cat conftest.$ac_ext >&5
10342 rm -rf conftest*
10343 eval "ac_cv_func_gethostbyname=no"
10344fi
10345rm -f conftest*
10346fi
10347
10348if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10349 echo "$ac_t""yes" 1>&6
10350 :
10351else
10352 echo "$ac_t""no" 1>&6
10353fi
ab9b9eab
VZ
10354
10355 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 10356 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
7cf43d5e 10357echo "configure:10358: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
10358ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10359if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10360 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10361else
698dcdb6 10362 ac_save_LIBS="$LIBS"
ab9b9eab 10363LIBS="-lnsl $LIBS"
698dcdb6 10364cat > conftest.$ac_ext <<EOF
7cf43d5e 10365#line 10366 "configure"
ab9b9eab
VZ
10366#include "confdefs.h"
10367/* Override any gcc2 internal prototype to avoid an error. */
10368/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10369 builtin and then its argument prototype would still apply. */
10370char gethostbyname();
6232543b 10371
698dcdb6
VZ
10372int main() {
10373gethostbyname()
10374; return 0; }
10375EOF
7cf43d5e 10376if { (eval echo configure:10377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10377 rm -rf conftest*
10378 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 10379else
698dcdb6
VZ
10380 echo "configure: failed program was:" >&5
10381 cat conftest.$ac_ext >&5
10382 rm -rf conftest*
10383 eval "ac_cv_lib_$ac_lib_var=no"
10384fi
10385rm -f conftest*
10386LIBS="$ac_save_LIBS"
1e487827 10387
698dcdb6
VZ
10388fi
10389if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10390 echo "$ac_t""yes" 1>&6
10391 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10392else
10393 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10394fi
10395
10396 fi
10397
10398 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10399 # socket/setsockopt and other routines are undefined under SCO ODT
10400 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
10401 # on later versions), says simon@lia.di.epfl.ch: it contains
10402 # gethostby* variants that don't use the nameserver (or something).
10403 # -lsocket must be given before -lnsl if both are needed.
10404 # We assume that if connect needs -lnsl, so does gethostbyname.
10405 echo $ac_n "checking for connect""... $ac_c" 1>&6
7cf43d5e 10406echo "configure:10407: checking for connect" >&5
698dcdb6
VZ
10407if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
10408 echo $ac_n "(cached) $ac_c" 1>&6
10409else
10410 cat > conftest.$ac_ext <<EOF
7cf43d5e 10411#line 10412 "configure"
ab9b9eab
VZ
10412#include "confdefs.h"
10413/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10414 which can conflict with char connect(); below. */
ab9b9eab
VZ
10415#include <assert.h>
10416/* Override any gcc2 internal prototype to avoid an error. */
10417/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10418 builtin and then its argument prototype would still apply. */
10419char connect();
10420
10421int main() {
ab9b9eab
VZ
10422
10423/* The GNU C library defines this for functions which it implements
10424 to always fail with ENOSYS. Some functions are actually named
10425 something starting with __ and the normal name is an alias. */
10426#if defined (__stub_connect) || defined (__stub___connect)
10427choke me
10428#else
698dcdb6 10429connect();
ab9b9eab
VZ
10430#endif
10431
698dcdb6
VZ
10432; return 0; }
10433EOF
7cf43d5e 10434if { (eval echo configure:10435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10435 rm -rf conftest*
10436 eval "ac_cv_func_connect=yes"
10437else
10438 echo "configure: failed program was:" >&5
10439 cat conftest.$ac_ext >&5
10440 rm -rf conftest*
10441 eval "ac_cv_func_connect=no"
10442fi
10443rm -f conftest*
10444fi
10445
10446if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
10447 echo "$ac_t""yes" 1>&6
10448 :
10449else
10450 echo "$ac_t""no" 1>&6
10451fi
ab9b9eab
VZ
10452
10453 if test $ac_cv_func_connect = no; then
698dcdb6 10454 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
7cf43d5e 10455echo "configure:10456: checking for connect in -lsocket" >&5
698dcdb6
VZ
10456ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
10457if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10458 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10459else
698dcdb6 10460 ac_save_LIBS="$LIBS"
ab9b9eab 10461LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 10462cat > conftest.$ac_ext <<EOF
7cf43d5e 10463#line 10464 "configure"
ab9b9eab
VZ
10464#include "confdefs.h"
10465/* Override any gcc2 internal prototype to avoid an error. */
10466/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10467 builtin and then its argument prototype would still apply. */
10468char connect();
10469
10470int main() {
10471connect()
10472; return 0; }
10473EOF
7cf43d5e 10474if { (eval echo configure:10475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10475 rm -rf conftest*
10476 eval "ac_cv_lib_$ac_lib_var=yes"
10477else
10478 echo "configure: failed program was:" >&5
10479 cat conftest.$ac_ext >&5
10480 rm -rf conftest*
10481 eval "ac_cv_lib_$ac_lib_var=no"
10482fi
10483rm -f conftest*
10484LIBS="$ac_save_LIBS"
10485
10486fi
10487if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10488 echo "$ac_t""yes" 1>&6
ab9b9eab 10489 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
10490else
10491 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10492fi
10493
10494 fi
10495
698dcdb6
VZ
10496 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
10497 echo $ac_n "checking for remove""... $ac_c" 1>&6
7cf43d5e 10498echo "configure:10499: checking for remove" >&5
698dcdb6
VZ
10499if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
10500 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10501else
698dcdb6 10502 cat > conftest.$ac_ext <<EOF
7cf43d5e 10503#line 10504 "configure"
ab9b9eab
VZ
10504#include "confdefs.h"
10505/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10506 which can conflict with char remove(); below. */
ab9b9eab
VZ
10507#include <assert.h>
10508/* Override any gcc2 internal prototype to avoid an error. */
10509/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10510 builtin and then its argument prototype would still apply. */
10511char remove();
10512
10513int main() {
ab9b9eab
VZ
10514
10515/* The GNU C library defines this for functions which it implements
10516 to always fail with ENOSYS. Some functions are actually named
10517 something starting with __ and the normal name is an alias. */
10518#if defined (__stub_remove) || defined (__stub___remove)
10519choke me
10520#else
698dcdb6 10521remove();
ab9b9eab
VZ
10522#endif
10523
698dcdb6
VZ
10524; return 0; }
10525EOF
7cf43d5e 10526if { (eval echo configure:10527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10527 rm -rf conftest*
10528 eval "ac_cv_func_remove=yes"
10529else
10530 echo "configure: failed program was:" >&5
10531 cat conftest.$ac_ext >&5
10532 rm -rf conftest*
10533 eval "ac_cv_func_remove=no"
10534fi
10535rm -f conftest*
10536fi
10537
10538if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
10539 echo "$ac_t""yes" 1>&6
10540 :
10541else
10542 echo "$ac_t""no" 1>&6
10543fi
ab9b9eab
VZ
10544
10545 if test $ac_cv_func_remove = no; then
698dcdb6 10546 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
7cf43d5e 10547echo "configure:10548: checking for remove in -lposix" >&5
698dcdb6
VZ
10548ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
10549if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10550 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10551else
698dcdb6 10552 ac_save_LIBS="$LIBS"
ab9b9eab 10553LIBS="-lposix $LIBS"
698dcdb6 10554cat > conftest.$ac_ext <<EOF
7cf43d5e 10555#line 10556 "configure"
ab9b9eab
VZ
10556#include "confdefs.h"
10557/* Override any gcc2 internal prototype to avoid an error. */
10558/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10559 builtin and then its argument prototype would still apply. */
10560char remove();
10561
10562int main() {
10563remove()
10564; return 0; }
10565EOF
7cf43d5e 10566if { (eval echo configure:10567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10567 rm -rf conftest*
10568 eval "ac_cv_lib_$ac_lib_var=yes"
10569else
10570 echo "configure: failed program was:" >&5
10571 cat conftest.$ac_ext >&5
10572 rm -rf conftest*
10573 eval "ac_cv_lib_$ac_lib_var=no"
10574fi
10575rm -f conftest*
10576LIBS="$ac_save_LIBS"
10577
10578fi
10579if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10580 echo "$ac_t""yes" 1>&6
ab9b9eab 10581 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
10582else
10583 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10584fi
10585
10586 fi
10587
10588 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 10589 echo $ac_n "checking for shmat""... $ac_c" 1>&6
7cf43d5e 10590echo "configure:10591: checking for shmat" >&5
698dcdb6
VZ
10591if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
10592 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10593else
698dcdb6 10594 cat > conftest.$ac_ext <<EOF
7cf43d5e 10595#line 10596 "configure"
ab9b9eab
VZ
10596#include "confdefs.h"
10597/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10598 which can conflict with char shmat(); below. */
ab9b9eab
VZ
10599#include <assert.h>
10600/* Override any gcc2 internal prototype to avoid an error. */
10601/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10602 builtin and then its argument prototype would still apply. */
10603char shmat();
10604
10605int main() {
ab9b9eab
VZ
10606
10607/* The GNU C library defines this for functions which it implements
10608 to always fail with ENOSYS. Some functions are actually named
10609 something starting with __ and the normal name is an alias. */
10610#if defined (__stub_shmat) || defined (__stub___shmat)
10611choke me
10612#else
698dcdb6 10613shmat();
ab9b9eab
VZ
10614#endif
10615
698dcdb6
VZ
10616; return 0; }
10617EOF
7cf43d5e 10618if { (eval echo configure:10619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10619 rm -rf conftest*
10620 eval "ac_cv_func_shmat=yes"
10621else
10622 echo "configure: failed program was:" >&5
10623 cat conftest.$ac_ext >&5
10624 rm -rf conftest*
10625 eval "ac_cv_func_shmat=no"
10626fi
10627rm -f conftest*
10628fi
10629
10630if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
10631 echo "$ac_t""yes" 1>&6
10632 :
10633else
10634 echo "$ac_t""no" 1>&6
10635fi
ab9b9eab
VZ
10636
10637 if test $ac_cv_func_shmat = no; then
698dcdb6 10638 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
7cf43d5e 10639echo "configure:10640: checking for shmat in -lipc" >&5
698dcdb6
VZ
10640ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
10641if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10642 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10643else
698dcdb6 10644 ac_save_LIBS="$LIBS"
ab9b9eab 10645LIBS="-lipc $LIBS"
698dcdb6 10646cat > conftest.$ac_ext <<EOF
7cf43d5e 10647#line 10648 "configure"
ab9b9eab
VZ
10648#include "confdefs.h"
10649/* Override any gcc2 internal prototype to avoid an error. */
10650/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10651 builtin and then its argument prototype would still apply. */
10652char shmat();
10653
10654int main() {
10655shmat()
10656; return 0; }
10657EOF
7cf43d5e 10658if { (eval echo configure:10659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10659 rm -rf conftest*
10660 eval "ac_cv_lib_$ac_lib_var=yes"
10661else
10662 echo "configure: failed program was:" >&5
10663 cat conftest.$ac_ext >&5
10664 rm -rf conftest*
10665 eval "ac_cv_lib_$ac_lib_var=no"
10666fi
10667rm -f conftest*
10668LIBS="$ac_save_LIBS"
10669
10670fi
10671if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10672 echo "$ac_t""yes" 1>&6
ab9b9eab 10673 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
10674else
10675 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10676fi
10677
10678 fi
10679 fi
10680
10681 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 10682 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
10683 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10684 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10685 # check for ICE first), but we must link in the order -lSM -lICE or
10686 # we get undefined symbols. So assume we have SM if we have ICE.
10687 # These have to be linked with before -lX11, unlike the other
10688 # libraries we check for below, so use a different variable.
698dcdb6
VZ
10689 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10690 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
7cf43d5e 10691echo "configure:10692: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
10692ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10693if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10694 echo $ac_n "(cached) $ac_c" 1>&6
10695else
10696 ac_save_LIBS="$LIBS"
ab9b9eab 10697LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 10698cat > conftest.$ac_ext <<EOF
7cf43d5e 10699#line 10700 "configure"
ab9b9eab
VZ
10700#include "confdefs.h"
10701/* Override any gcc2 internal prototype to avoid an error. */
10702/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10703 builtin and then its argument prototype would still apply. */
10704char IceConnectionNumber();
10705
10706int main() {
10707IceConnectionNumber()
10708; return 0; }
10709EOF
7cf43d5e 10710if { (eval echo configure:10711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10711 rm -rf conftest*
10712 eval "ac_cv_lib_$ac_lib_var=yes"
10713else
10714 echo "configure: failed program was:" >&5
10715 cat conftest.$ac_ext >&5
10716 rm -rf conftest*
10717 eval "ac_cv_lib_$ac_lib_var=no"
10718fi
10719rm -f conftest*
10720LIBS="$ac_save_LIBS"
10721
10722fi
10723if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10724 echo "$ac_t""yes" 1>&6
ab9b9eab 10725 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
10726else
10727 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10728fi
10729
698dcdb6 10730 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
10731
10732fi
10733
1e6feb95
VZ
10734 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10735 LDFLAGS="$LDFLAGS $X_LIBS"
ab9b9eab 10736
1e6feb95
VZ
10737 if test "$wxUSE_MOTIF" = 1; then
10738 if test "$no_x" = "yes"; then
10739 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10740 fi
ab9b9eab 10741
1e6feb95
VZ
10742 GUI_TK_LIBRARY="$X_LIBS"
10743 TOOLKIT_INCLUDE="$X_CFLAGS"
1e6feb95 10744 AFMINSTALL=afminstall
1e6feb95 10745 COMPILED_X_PROGRAM=0
cd6d6d5b 10746
1e6feb95 10747 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
7cf43d5e 10748echo "configure:10749: checking for Motif/Lesstif headers" >&5
1e6feb95 10749
ab9b9eab
VZ
10750ac_find_includes=
10751for ac_dir in $SEARCH_INCLUDE;
10752 do
10753 if test -f "$ac_dir/Xm/Xm.h"; then
10754 ac_find_includes=$ac_dir
10755 break
10756 fi
10757 done
10758
1e6feb95
VZ
10759 if test "$ac_find_includes" != "" ; then
10760 echo "$ac_t""found $ac_find_includes" 1>&6
10761 else
10762 cat > conftest.$ac_ext <<EOF
7cf43d5e 10763#line 10764 "configure"
cd6d6d5b
VZ
10764#include "confdefs.h"
10765
1e6feb95
VZ
10766 #include <Xm/Xm.h>
10767
698dcdb6 10768int main() {
cd6d6d5b 10769
1e6feb95 10770 int version;
1e6feb95
VZ
10771 version = xmUseVersion;
10772
698dcdb6
VZ
10773; return 0; }
10774EOF
7cf43d5e 10775if { (eval echo configure:10776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10776 rm -rf conftest*
10777
1e6feb95
VZ
10778 echo "$ac_t""found in default search path" 1>&6
10779 COMPILED_X_PROGRAM=1
10780
cd6d6d5b 10781else
698dcdb6
VZ
10782 echo "configure: failed program was:" >&5
10783 cat conftest.$ac_ext >&5
10784 rm -rf conftest*
10785
1e6feb95
VZ
10786 echo "$ac_t""no" 1>&6
10787 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10788
698dcdb6 10789
cd6d6d5b 10790fi
698dcdb6 10791rm -f conftest*
1e6feb95 10792 fi
ab9b9eab 10793
1e6feb95
VZ
10794 if test "$COMPILED_X_PROGRAM" = 0; then
10795 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
7cf43d5e 10796echo "configure:10797: checking for Motif/Lesstif library" >&5
1e6feb95 10797
ab9b9eab
VZ
10798ac_find_libraries=
10799for ac_dir in $SEARCH_LIB;
10800 do
f11bdd03 10801 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
10802 if test -f "$ac_dir/libXm.$ac_extension"; then
10803 ac_find_libraries=$ac_dir
10804 break 2
10805 fi
10806 done
10807 done
10808
1e6feb95
VZ
10809 if test "$ac_find_libraries" != "" ; then
10810
ab9b9eab
VZ
10811 ac_path_to_include=$ac_find_includes
10812 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10813 result=$?
10814 if test $result = 0; then
10815 ac_path_to_include=""
10816 else
10817 ac_path_to_include="-I$ac_find_includes"
10818 fi
10819
1e6feb95 10820
ab9b9eab
VZ
10821 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10822 result=$?
10823 if test $result = 0; then
10824 ac_path_to_link=""
10825 else
10826 ac_path_to_link="-L$ac_find_libraries"
10827 fi
10828
698dcdb6 10829
1e6feb95
VZ
10830 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10831 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10832 echo "$ac_t""found at $ac_find_libraries" 1>&6
10833 else
10834 cat > conftest.$ac_ext <<EOF
7cf43d5e 10835#line 10836 "configure"
cd6d6d5b 10836#include "confdefs.h"
ab9b9eab 10837
1e6feb95
VZ
10838 #include <Xm/Xm.h>
10839
698dcdb6 10840int main() {
ab9b9eab 10841
1e6feb95 10842 int version;
1e6feb95
VZ
10843 version = xmUseVersion;
10844
698dcdb6
VZ
10845; return 0; }
10846EOF
7cf43d5e 10847if { (eval echo configure:10848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10848 rm -rf conftest*
10849
1e6feb95
VZ
10850 echo "$ac_t""found in default search path" 1>&6
10851 COMPILED_X_PROGRAM=1
10852
cd6d6d5b 10853else
698dcdb6
VZ
10854 echo "configure: failed program was:" >&5
10855 cat conftest.$ac_ext >&5
10856 rm -rf conftest*
10857
1e6feb95
VZ
10858 echo "$ac_t""no" 1>&6
10859 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10860
698dcdb6 10861
cd6d6d5b 10862fi
698dcdb6 10863rm -f conftest*
1e6feb95 10864 fi
cd6d6d5b 10865 fi
ab9b9eab 10866
3a922bb4 10867 xpm_link=""
1e6feb95 10868 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
7cf43d5e 10869echo "configure:10870: checking for Xpm library" >&5
1e6feb95 10870
ab9b9eab
VZ
10871ac_find_libraries=
10872for ac_dir in $SEARCH_LIB;
10873 do
f11bdd03 10874 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
10875 if test -f "$ac_dir/libXpm.$ac_extension"; then
10876 ac_find_libraries=$ac_dir
10877 break 2
10878 fi
10879 done
10880 done
10881
1e6feb95
VZ
10882 if test "$ac_find_libraries" != "" ; then
10883
ab9b9eab
VZ
10884 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10885 result=$?
10886 if test $result = 0; then
10887 ac_path_to_link=""
10888 else
10889 ac_path_to_link="-L$ac_find_libraries"
10890 fi
10891
1e6feb95 10892 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
3a922bb4 10893 xpm_link="-lXpm "
1e6feb95 10894 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
10895#define wxHAVE_LIB_XPM 1
10896EOF
10897
1e6feb95
VZ
10898 echo "$ac_t""found at $ac_find_libraries" 1>&6
10899 else
10900 cat > conftest.$ac_ext <<EOF
7cf43d5e 10901#line 10902 "configure"
cd6d6d5b
VZ
10902#include "confdefs.h"
10903
1e6feb95
VZ
10904 #include <X11/xpm.h>
10905
698dcdb6 10906int main() {
cd6d6d5b 10907
1e6feb95 10908 int version;
1e6feb95
VZ
10909 version = XpmLibraryVersion();
10910
698dcdb6
VZ
10911; return 0; }
10912EOF
7cf43d5e 10913if { (eval echo configure:10914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10914 rm -rf conftest*
10915
3a922bb4
RL
10916 xpm_link="-lXpm "
10917 cat >> confdefs.h <<\EOF
3ace2e6d
SN
10918#define wxHAVE_LIB_XPM 1
10919EOF
10920
1e6feb95
VZ
10921 echo "$ac_t""found in default search path" 1>&6
10922 COMPILED_X_PROGRAM=0
10923
cd6d6d5b 10924else
698dcdb6
VZ
10925 echo "configure: failed program was:" >&5
10926 cat conftest.$ac_ext >&5
10927 rm -rf conftest*
10928
1e6feb95
VZ
10929 echo "$ac_t""no" 1>&6
10930 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10931
698dcdb6 10932
cd6d6d5b 10933fi
698dcdb6 10934rm -f conftest*
1e6feb95
VZ
10935 fi
10936
3a922bb4 10937 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm $xpm_link -lXmu -lXext -lXt -lX11"
334f0d2c 10938 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
1e6feb95
VZ
10939 TOOLKIT=MOTIF
10940 GUIDIST=MOTIF_DIST
ab9b9eab
VZ
10941 fi
10942
683dccda
GD
10943 if test "$wxUSE_MAC" = 1; then
10944 if test "$wxUSE_PRECOMP" = "yes"; then
10945 CPPFLAGS="${CPPFLAGS} -cpp-precomp"
10946 fi
13c0541d 10947 CPPFLAGS="${CPPFLAGS} -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
d08b457b
GD
10948 CFLAGS="${CFLAGS} -fpascal-strings"
10949 CXXFLAGS="${CXXFLAGS} -fpascal-strings"
10950 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DTARGET_CARBON"
10951
13c0541d 10952 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
1e6feb95 10953 TOOLKIT=MAC
683dccda 10954 GUIDIST=MACX_DIST
1e6feb95 10955 fi
10f2d63a 10956
1e6feb95
VZ
10957 if test "$wxUSE_PM" = 1; then
10958 TOOLKIT=PM
10959 GUIDIST=GTK_DIST
10960 fi
b4085ce6 10961
3a922bb4 10962 if test "$TOOLKIT" = "PM" ; then
1e6feb95 10963 TOOLKIT_DIR="os2"
3a922bb4
RL
10964 else
10965 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
1e6feb95 10966 fi
e07802fc 10967
3a922bb4 10968 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
1e6feb95 10969
3a922bb4
RL
10970 if test "$wxUSE_UNIVERSAL" = "yes"; then
10971 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10972 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
10973 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
10974 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
10975 WIDGET_SET=univ
f6bcfd97 10976 else
3a922bb4 10977 ALL_OBJECTS="\$(GUIOBJS)"
1e6feb95
VZ
10978 fi
10979
10980 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10981
10982 if test "$TOOLKIT" != "MSW"; then
10983 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10984 fi
10985
10986 if test "$wxUSE_HTML" = "yes"; then
10987 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10988 fi
3fcdd07b 10989
3a922bb4
RL
10990 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
10991 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
831b3152 10992 fi
d9d8273d 10993 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 10994 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
10995 fi
10996 if test "$wxUSE_LIBTIFF" = "yes" ; then
10997 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10998 fi
10999 if test "$wxUSE_LIBPNG" = "yes" ; then
11000 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
11001 fi
3fed1840
RR
11002 if test "$wxUSE_FREETYPE" = "yes" ; then
11003 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
11004 fi
2224580a 11005
2224580a
VZ
11006 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
11007 RPM_SPEC="wx\$(TOOLKIT).spec"
11008
11009 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
11010 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 11011else
dad6c0ea
VZ
11012 USE_GUI=0
11013
3a922bb4 11014 TOOLKIT_DIR="base"
f6bcfd97 11015
3a922bb4
RL
11016 if test "$USE_WIN32" = 1 ; then
11017 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
11018 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
0b2effe9 11019
3a922bb4 11020 TOOLKIT="MSW"
f6bcfd97 11021 else
3a922bb4
RL
11022 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
11023 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
f6bcfd97
BP
11024 fi
11025
831b3152 11026 PORT_FILES="\${top_srcdir}/src/files.lst"
2224580a
VZ
11027 RPM_FILES="src/rpmfiles.lst"
11028 RPM_SPEC="wxBase.spec"
11029
11030 GUIDIST="BASE_DIST"
11031 DISTDIR="wxBase"
10f2d63a
VZ
11032fi
11033
3a922bb4
RL
11034if test "x$REGEX_INCLUDE" != "x" ; then
11035 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
11036fi
11037if test "$wxUSE_ZLIB" = "yes" ; then
11038 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
11039fi
10f2d63a 11040
3a922bb4
RL
11041if test "$wxUSE_OPENGL" = "yes"; then
11042 if test "$wxUSE_MAC" = 1; then
11043 cat >> confdefs.h <<\EOF
11044#define wxUSE_OPENGL 1
11045EOF
10f2d63a 11046
3a922bb4
RL
11047 cat >> confdefs.h <<\EOF
11048#define wxUSE_GLCANVAS 1
11049EOF
10f2d63a 11050
3a922bb4
RL
11051 OPENGL_LIBS="-framework OpenGL -framework AGL"
11052 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
11053 else
11054 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11055echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
7cf43d5e 11056echo "configure:11057: checking for GL/gl.h" >&5
3a922bb4
RL
11057if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11058 echo $ac_n "(cached) $ac_c" 1>&6
11059else
11060 cat > conftest.$ac_ext <<EOF
7cf43d5e 11061#line 11062 "configure"
3a922bb4
RL
11062#include "confdefs.h"
11063#include <GL/gl.h>
11064EOF
11065ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7cf43d5e 11066{ (eval echo configure:11067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
11067ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11068if test -z "$ac_err"; then
11069 rm -rf conftest*
11070 eval "ac_cv_header_$ac_safe=yes"
11071else
11072 echo "$ac_err" >&5
11073 echo "configure: failed program was:" >&5
11074 cat conftest.$ac_ext >&5
11075 rm -rf conftest*
11076 eval "ac_cv_header_$ac_safe=no"
11077fi
11078rm -f conftest*
11079fi
11080if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11081 echo "$ac_t""yes" 1>&6
11082
11083 cat >> confdefs.h <<\EOF
11084#define wxUSE_OPENGL 1
11085EOF
10f2d63a 11086
3a922bb4
RL
11087 cat >> confdefs.h <<\EOF
11088#define wxUSE_GLCANVAS 1
11089EOF
10f2d63a 11090
3a922bb4
RL
11091 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
11092 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
7cf43d5e 11093echo "configure:11094: checking for glFlush in -lGL" >&5
3a922bb4
RL
11094ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
11095if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11096 echo $ac_n "(cached) $ac_c" 1>&6
11097else
11098 ac_save_LIBS="$LIBS"
11099LIBS="-lGL $LIBS"
11100cat > conftest.$ac_ext <<EOF
7cf43d5e 11101#line 11102 "configure"
3a922bb4
RL
11102#include "confdefs.h"
11103/* Override any gcc2 internal prototype to avoid an error. */
11104/* We use char because int might match the return type of a gcc2
11105 builtin and then its argument prototype would still apply. */
11106char glFlush();
55e80573 11107
3a922bb4
RL
11108int main() {
11109glFlush()
11110; return 0; }
11111EOF
7cf43d5e 11112if { (eval echo configure:11113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4
RL
11113 rm -rf conftest*
11114 eval "ac_cv_lib_$ac_lib_var=yes"
11115else
11116 echo "configure: failed program was:" >&5
11117 cat conftest.$ac_ext >&5
11118 rm -rf conftest*
11119 eval "ac_cv_lib_$ac_lib_var=no"
11120fi
11121rm -f conftest*
11122LIBS="$ac_save_LIBS"
55e80573 11123
3a922bb4
RL
11124fi
11125if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11126 echo "$ac_t""yes" 1>&6
11127
11128 OPENGL_LIBS="-lGL -lGLU"
11129
11130else
11131 echo "$ac_t""no" 1>&6
11132
11133 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
7cf43d5e 11134echo "configure:11135: checking for glFlush in -lMesaGL" >&5
3a922bb4
RL
11135ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
11136if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11137 echo $ac_n "(cached) $ac_c" 1>&6
11138else
11139 ac_save_LIBS="$LIBS"
11140LIBS="-lMesaGL $LIBS"
11141cat > conftest.$ac_ext <<EOF
7cf43d5e 11142#line 11143 "configure"
3a922bb4
RL
11143#include "confdefs.h"
11144/* Override any gcc2 internal prototype to avoid an error. */
11145/* We use char because int might match the return type of a gcc2
11146 builtin and then its argument prototype would still apply. */
11147char glFlush();
11148
11149int main() {
11150glFlush()
11151; return 0; }
11152EOF
7cf43d5e 11153if { (eval echo configure:11154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4
RL
11154 rm -rf conftest*
11155 eval "ac_cv_lib_$ac_lib_var=yes"
11156else
11157 echo "configure: failed program was:" >&5
11158 cat conftest.$ac_ext >&5
11159 rm -rf conftest*
11160 eval "ac_cv_lib_$ac_lib_var=no"
11161fi
11162rm -f conftest*
11163LIBS="$ac_save_LIBS"
11164
11165fi
11166if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11167 echo "$ac_t""yes" 1>&6
11168
11169 OPENGL_LIBS="-lMesaGL -lMesaGLU"
11170
11171else
11172 echo "$ac_t""no" 1>&6
11173fi
55e80573 11174
3a922bb4
RL
11175
11176fi
11177
11178
11179else
11180 echo "$ac_t""no" 1>&6
11181wxUSE_OPENGL=0
11182fi
11183
11184 fi
11185fi
11186
11187if test -z "$TOOLKIT_VPATH" ; then
11188 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
11189fi
11190
11191if test -n "$TOOLKIT" ; then
11192 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
11193fi
11194
11195if test "$wxUSE_CYGWIN" = 1 ; then
11196 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
11197fi
11198
11199lib_debug_suffix=
11200if test "$wxUSE_DEBUG_FLAG" = "yes"; then
11201 lib_debug_suffix=d
11202 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}d"
11203fi
11204
11205TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_debug_suffix}-${WX_RELEASE}"
11206TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_debug_suffix}_gl-${WX_RELEASE}"
11207
11208if test "$cross_compiling" = "yes"; then
11209 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
11210 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
11211fi
11212
11213WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
11214WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
11215
11216WXCONFIG_LIBS="-l${WX_LIBRARY}"
11217
11218if test "$wxUSE_OPENGL" = "yes"; then
11219 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} $OPENGL_LIBS"
11220fi
11221
11222WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
11223WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
11224
11225WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11226WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11227
11228WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
11229WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
11230WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
11231WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
11232
d08b457b 11233WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
3a922bb4
RL
11234
11235
11236
11237if test "$wxUSE_SHARED" = "yes"; then
55e80573
VZ
11238
11239 if test "$wxUSE_OPENGL" = "yes"; then
11240 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
3a922bb4 11241 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
55e80573
VZ
11242 else
11243 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
3a922bb4 11244 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
55e80573
VZ
11245 fi
11246
dd4f7467 11247 if test "$GCC" = "yes"; then
55e80573 11248 PIC_FLAG="-fPIC"
dd4f7467 11249 fi
55e80573
VZ
11250
11251 SHARED_LD="${CXX} -shared -o"
698dcdb6 11252
10f2d63a
VZ
11253 case "${host}" in
11254 *-hp-hpux* )
55e80573 11255 if test "$GCC" != "yes"; then
f6bcfd97
BP
11256 LDFLAGS="-L/usr/lib"
11257
10f2d63a
VZ
11258 SHARED_LD="${CXX} -b -o"
11259 PIC_FLAG="+Z"
11260 fi
55e80573 11261
7b7a7637
RL
11262 if test "$wxUSE_OPENGL" = "yes"; then
11263 WX_ALL_INSTALLED="preinstall_gl"
11264 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
11265 else
11266 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
11267 fi
10f2d63a 11268 ;;
b12915c1 11269
55e80573
VZ
11270 *-*-linux* )
11271 if test "$GCC" != "yes"; then
11272 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
7cf43d5e 11273echo "configure:11274: checking for Intel compiler" >&5
55e80573
VZ
11274if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
11275 echo $ac_n "(cached) $ac_c" 1>&6
11276else
11277
11278 cat > conftest.$ac_ext <<EOF
7cf43d5e 11279#line 11280 "configure"
55e80573
VZ
11280#include "confdefs.h"
11281
11282int main() {
11283
11284 #ifndef __INTEL_COMPILER
dd4f7467 11285 #error Not icc
55e80573
VZ
11286 #endif
11287
11288; return 0; }
11289EOF
7cf43d5e 11290if { (eval echo configure:11291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
55e80573
VZ
11291 rm -rf conftest*
11292 wx_cv_prog_icc=yes
11293else
11294 echo "configure: failed program was:" >&5
11295 cat conftest.$ac_ext >&5
11296 rm -rf conftest*
11297 wx_cv_prog_icc=no
11298
11299fi
11300rm -f conftest*
11301
11302fi
11303
11304echo "$ac_t""$wx_cv_prog_icc" 1>&6
55e80573
VZ
11305 if test "$wx_cv_prog_icc" = "yes"; then
11306 PIC_FLAG="-KPIC"
11307 fi
11308 fi
11309
3a922bb4
RL
11310 if test "$wxUSE_SONAME" = "yes" ; then
11311 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
11312 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 11313 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 11314 fi
10f2d63a 11315 ;;
55e80573 11316
10f2d63a
VZ
11317 *-*-solaris2* )
11318 if test "$GCC" = yes ; then
f6bcfd97 11319 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
11320 else
11321 SHARED_LD="${CXX} -G -o"
11322 PIC_FLAG="-KPIC"
7b7a7637
RL
11323 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
11324 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}"
10f2d63a 11325 fi
10f2d63a 11326 ;;
55e80573 11327
b4085ce6 11328 *-*-darwin* )
d08b457b
GD
11329 CFLAGS="${CFLAGS} -fno-common"
11330 CXXFLAGS="${CXXFLAGS} -fno-common"
ea5999b9
GD
11331 SHARED_LD="${CXX} -dynamiclib -o"
11332 PIC_FLAG="-dynamic -fPIC"
10f2d63a 11333 ;;
55e80573 11334
10f2d63a
VZ
11335 *-*-aix* )
11336 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10f2d63a 11337 ;;
55e80573 11338
7b7a7637 11339 *-*-cygwin* | *-*-mingw32* )
3a922bb4
RL
11340 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_NAME_STATIC} -o"
11341 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXUSINGDLL=1"
18dbb1f6 11342 WXMSW_DLL_DEFINES="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
7b7a7637
RL
11343
11344 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 11345 WX_ALL_INSTALLED="preinstall_gl"
3a922bb4 11346 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
f6bcfd97 11347 else
3a922bb4 11348 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
f6bcfd97 11349 fi
7b7a7637 11350 PIC_FLAG=
10f2d63a 11351 ;;
55e80573 11352
10f2d63a 11353 *-pc-os2_emx )
7b7a7637 11354 wxUSE_SHARED=no
10f2d63a 11355 ;;
55e80573 11356
b12915c1 11357 *-*-beos* )
e2b8b066 11358 SHARED_LD="${LD} -shared -o"
b12915c1 11359 ;;
55e80573
VZ
11360
11361 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
11362 *-*-sunos4* | \
11363 *-*-irix5* | *-*-irix6* | \
11364 *-*-osf* | \
11365 *-*-dgux5* | \
11366 *-*-sysv5* )
11367 ;;
11368
10f2d63a 11369 *)
7b7a7637 11370 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
10f2d63a
VZ
11371 esac
11372
11373 if test "x$WX_TARGET_LIBRARY" = "x"; then
11374 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 11375 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 11376 fi
55e80573 11377
3711412e 11378 WX_TARGET_LIBRARY_TYPE="so"
3a922bb4 11379fi
f6bcfd97 11380
3a922bb4 11381if test "$wxUSE_SHARED" = "no"; then
f6bcfd97 11382
3a922bb4 11383 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
f6bcfd97
BP
11384 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11385 fi
11386
3a922bb4
RL
11387 if test "$wxUSE_OPENGL" = "yes"; then
11388 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
11389 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
11390 else
11391 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
11392 fi
698dcdb6 11393
3a922bb4
RL
11394 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11395 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
11396
11397 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a 11398fi
10f2d63a 11399
d08b457b
GD
11400if test "$wxUSE_MAC" = 1; then
11401 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
11402 # Extract the first word of "Rez", so it can be a program name with args.
11403set dummy Rez; ac_word=$2
11404echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7cf43d5e 11405echo "configure:11406: checking for $ac_word" >&5
d08b457b
GD
11406if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
11407 echo $ac_n "(cached) $ac_c" 1>&6
11408else
11409 if test -n "$RESCOMP"; then
11410 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
11411else
11412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11413 ac_dummy="$PATH"
11414 for ac_dir in $ac_dummy; do
11415 test -z "$ac_dir" && ac_dir=.
11416 if test -f $ac_dir/$ac_word; then
11417 ac_cv_prog_RESCOMP="Rez"
11418 break
11419 fi
11420 done
11421 IFS="$ac_save_ifs"
11422 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
11423fi
11424fi
11425RESCOMP="$ac_cv_prog_RESCOMP"
11426if test -n "$RESCOMP"; then
11427 echo "$ac_t""$RESCOMP" 1>&6
11428else
11429 echo "$ac_t""no" 1>&6
11430fi
11431
11432 # Extract the first word of "Derez", so it can be a program name with args.
11433set dummy Derez; ac_word=$2
11434echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7cf43d5e 11435echo "configure:11436: checking for $ac_word" >&5
d08b457b
GD
11436if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
11437 echo $ac_n "(cached) $ac_c" 1>&6
11438else
11439 if test -n "$DEREZ"; then
11440 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
11441else
11442 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11443 ac_dummy="$PATH"
11444 for ac_dir in $ac_dummy; do
11445 test -z "$ac_dir" && ac_dir=.
11446 if test -f $ac_dir/$ac_word; then
11447 ac_cv_prog_DEREZ="Derez"
11448 break
11449 fi
11450 done
11451 IFS="$ac_save_ifs"
11452 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
11453fi
11454fi
11455DEREZ="$ac_cv_prog_DEREZ"
11456if test -n "$DEREZ"; then
11457 echo "$ac_t""$DEREZ" 1>&6
11458else
11459 echo "$ac_t""no" 1>&6
11460fi
11461
11462 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
11463 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
11464fi
11465
3a922bb4 11466
13c0541d
GD
11467if test "$wxUSE_MAC" != 1; then
11468 for ac_hdr in strings.h
9cfadba2 11469do
698dcdb6
VZ
11470ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11471echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7cf43d5e 11472echo "configure:11473: checking for $ac_hdr" >&5
698dcdb6
VZ
11473if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11474 echo $ac_n "(cached) $ac_c" 1>&6
11475else
11476 cat > conftest.$ac_ext <<EOF
7cf43d5e 11477#line 11478 "configure"
9cfadba2 11478#include "confdefs.h"
698dcdb6
VZ
11479#include <$ac_hdr>
11480EOF
11481ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7cf43d5e 11482{ (eval echo configure:11483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11483ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11484if test -z "$ac_err"; then
11485 rm -rf conftest*
11486 eval "ac_cv_header_$ac_safe=yes"
6232543b 11487else
698dcdb6
VZ
11488 echo "$ac_err" >&5
11489 echo "configure: failed program was:" >&5
9cfadba2 11490 cat conftest.$ac_ext >&5
698dcdb6
VZ
11491 rm -rf conftest*
11492 eval "ac_cv_header_$ac_safe=no"
9cfadba2 11493fi
698dcdb6 11494rm -f conftest*
9cfadba2 11495fi
698dcdb6
VZ
11496if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11497 echo "$ac_t""yes" 1>&6
11498 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11499 cat >> confdefs.h <<EOF
11500#define $ac_tr_hdr 1
9cfadba2 11501EOF
698dcdb6
VZ
11502
11503else
11504 echo "$ac_t""no" 1>&6
9cfadba2
VZ
11505fi
11506done
10f2d63a 11507
13c0541d
GD
11508fi
11509
3a922bb4 11510for ac_hdr in stdlib.h
10f2d63a 11511do
698dcdb6
VZ
11512ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11513echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7cf43d5e 11514echo "configure:11515: checking for $ac_hdr" >&5
698dcdb6
VZ
11515if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11516 echo $ac_n "(cached) $ac_c" 1>&6
11517else
11518 cat > conftest.$ac_ext <<EOF
7cf43d5e 11519#line 11520 "configure"
10f2d63a 11520#include "confdefs.h"
698dcdb6
VZ
11521#include <$ac_hdr>
11522EOF
11523ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7cf43d5e 11524{ (eval echo configure:11525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11525ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11526if test -z "$ac_err"; then
11527 rm -rf conftest*
11528 eval "ac_cv_header_$ac_safe=yes"
6232543b 11529else
698dcdb6
VZ
11530 echo "$ac_err" >&5
11531 echo "configure: failed program was:" >&5
10f2d63a 11532 cat conftest.$ac_ext >&5
698dcdb6
VZ
11533 rm -rf conftest*
11534 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11535fi
698dcdb6 11536rm -f conftest*
10f2d63a 11537fi
698dcdb6
VZ
11538if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11539 echo "$ac_t""yes" 1>&6
11540 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11541 cat >> confdefs.h <<EOF
11542#define $ac_tr_hdr 1
10f2d63a 11543EOF
698dcdb6
VZ
11544
11545else
11546 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11547fi
11548done
11549
3a922bb4 11550for ac_hdr in unistd.h
10f2d63a 11551do
698dcdb6
VZ
11552ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11553echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7cf43d5e 11554echo "configure:11555: checking for $ac_hdr" >&5
698dcdb6
VZ
11555if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11556 echo $ac_n "(cached) $ac_c" 1>&6
11557else
11558 cat > conftest.$ac_ext <<EOF
7cf43d5e 11559#line 11560 "configure"
10f2d63a 11560#include "confdefs.h"
698dcdb6
VZ
11561#include <$ac_hdr>
11562EOF
11563ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7cf43d5e 11564{ (eval echo configure:11565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11565ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11566if test -z "$ac_err"; then
11567 rm -rf conftest*
11568 eval "ac_cv_header_$ac_safe=yes"
6f72b082 11569else
698dcdb6
VZ
11570 echo "$ac_err" >&5
11571 echo "configure: failed program was:" >&5
6f72b082 11572 cat conftest.$ac_ext >&5
698dcdb6
VZ
11573 rm -rf conftest*
11574 eval "ac_cv_header_$ac_safe=no"
6f72b082 11575fi
698dcdb6 11576rm -f conftest*
6f72b082 11577fi
698dcdb6
VZ
11578if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11579 echo "$ac_t""yes" 1>&6
11580 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11581 cat >> confdefs.h <<EOF
11582#define $ac_tr_hdr 1
6f72b082 11583EOF
698dcdb6
VZ
11584
11585else
11586 echo "$ac_t""no" 1>&6
6f72b082
OK
11587fi
11588done
11589
3a922bb4 11590for ac_hdr in wchar.h
6f72b082 11591do
698dcdb6
VZ
11592ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11593echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7cf43d5e 11594echo "configure:11595: checking for $ac_hdr" >&5
698dcdb6
VZ
11595if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11596 echo $ac_n "(cached) $ac_c" 1>&6
11597else
11598 cat > conftest.$ac_ext <<EOF
7cf43d5e 11599#line 11600 "configure"
6f72b082 11600#include "confdefs.h"
698dcdb6
VZ
11601#include <$ac_hdr>
11602EOF
11603ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7cf43d5e 11604{ (eval echo configure:11605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11605ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11606if test -z "$ac_err"; then
11607 rm -rf conftest*
11608 eval "ac_cv_header_$ac_safe=yes"
6f72b082 11609else
698dcdb6
VZ
11610 echo "$ac_err" >&5
11611 echo "configure: failed program was:" >&5
6f72b082 11612 cat conftest.$ac_ext >&5
698dcdb6
VZ
11613 rm -rf conftest*
11614 eval "ac_cv_header_$ac_safe=no"
6f72b082 11615fi
698dcdb6 11616rm -f conftest*
6f72b082 11617fi
698dcdb6
VZ
11618if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11619 echo "$ac_t""yes" 1>&6
11620 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11621 cat >> confdefs.h <<EOF
11622#define $ac_tr_hdr 1
6f72b082 11623EOF
698dcdb6
VZ
11624
11625else
11626 echo "$ac_t""no" 1>&6
6f72b082
OK
11627fi
11628done
11629
3a922bb4 11630for ac_hdr in wcstr.h
6f72b082 11631do
698dcdb6
VZ
11632ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11633echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7cf43d5e 11634echo "configure:11635: checking for $ac_hdr" >&5
698dcdb6
VZ
11635if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11636 echo $ac_n "(cached) $ac_c" 1>&6
11637else
11638 cat > conftest.$ac_ext <<EOF
7cf43d5e 11639#line 11640 "configure"
6f72b082 11640#include "confdefs.h"
698dcdb6
VZ
11641#include <$ac_hdr>
11642EOF
11643ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7cf43d5e 11644{ (eval echo configure:11645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11645ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11646if test -z "$ac_err"; then
11647 rm -rf conftest*
11648 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11649else
698dcdb6
VZ
11650 echo "$ac_err" >&5
11651 echo "configure: failed program was:" >&5
10f2d63a 11652 cat conftest.$ac_ext >&5
698dcdb6
VZ
11653 rm -rf conftest*
11654 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11655fi
698dcdb6 11656rm -f conftest*
10f2d63a 11657fi
698dcdb6
VZ
11658if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11659 echo "$ac_t""yes" 1>&6
11660 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11661 cat >> confdefs.h <<EOF
11662#define $ac_tr_hdr 1
10f2d63a 11663EOF
698dcdb6
VZ
11664
11665else
11666 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11667fi
11668done
11669
3a922bb4 11670for ac_hdr in fnmatch.h
0fb0dd83 11671do
698dcdb6
VZ
11672ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11673echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7cf43d5e 11674echo "configure:11675: checking for $ac_hdr" >&5
698dcdb6
VZ
11675if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11676 echo $ac_n "(cached) $ac_c" 1>&6
11677else
11678 cat > conftest.$ac_ext <<EOF
7cf43d5e 11679#line 11680 "configure"
0fb0dd83 11680#include "confdefs.h"
698dcdb6
VZ
11681#include <$ac_hdr>
11682EOF
11683ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7cf43d5e 11684{ (eval echo configure:11685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11685ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11686if test -z "$ac_err"; then
11687 rm -rf conftest*
11688 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 11689else
698dcdb6
VZ
11690 echo "$ac_err" >&5
11691 echo "configure: failed program was:" >&5
0fb0dd83 11692 cat conftest.$ac_ext >&5
698dcdb6
VZ
11693 rm -rf conftest*
11694 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 11695fi
698dcdb6 11696rm -f conftest*
0fb0dd83 11697fi
698dcdb6
VZ
11698if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11699 echo "$ac_t""yes" 1>&6
11700 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11701 cat >> confdefs.h <<EOF
11702#define $ac_tr_hdr 1
0fb0dd83 11703EOF
698dcdb6
VZ
11704
11705else
11706 echo "$ac_t""no" 1>&6
0fb0dd83
RR
11707fi
11708done
11709
3a922bb4 11710for ac_hdr in iconv.h
1f8ae82f 11711do
698dcdb6
VZ
11712ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11713echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7cf43d5e 11714echo "configure:11715: checking for $ac_hdr" >&5
698dcdb6
VZ
11715if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11716 echo $ac_n "(cached) $ac_c" 1>&6
11717else
11718 cat > conftest.$ac_ext <<EOF
7cf43d5e 11719#line 11720 "configure"
1f8ae82f 11720#include "confdefs.h"
698dcdb6
VZ
11721#include <$ac_hdr>
11722EOF
11723ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7cf43d5e 11724{ (eval echo configure:11725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11725ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11726if test -z "$ac_err"; then
11727 rm -rf conftest*
11728 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 11729else
698dcdb6
VZ
11730 echo "$ac_err" >&5
11731 echo "configure: failed program was:" >&5
1f8ae82f 11732 cat conftest.$ac_ext >&5
698dcdb6
VZ
11733 rm -rf conftest*
11734 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 11735fi
698dcdb6 11736rm -f conftest*
1f8ae82f 11737fi
698dcdb6
VZ
11738if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11739 echo "$ac_t""yes" 1>&6
11740 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11741 cat >> confdefs.h <<EOF
11742#define $ac_tr_hdr 1
1f8ae82f 11743EOF
698dcdb6
VZ
11744
11745else
11746 echo "$ac_t""no" 1>&6
1f8ae82f
GD
11747fi
11748done
11749
3a922bb4 11750for ac_hdr in langinfo.h
10f2d63a 11751do
698dcdb6
VZ
11752ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11753echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7cf43d5e 11754echo "configure:11755: checking for $ac_hdr" >&5
698dcdb6
VZ
11755if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11756 echo $ac_n "(cached) $ac_c" 1>&6
11757else
11758 cat > conftest.$ac_ext <<EOF
7cf43d5e 11759#line 11760 "configure"
10f2d63a 11760#include "confdefs.h"
698dcdb6
VZ
11761#include <$ac_hdr>
11762EOF
11763ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7cf43d5e 11764{ (eval echo configure:11765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11765ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11766if test -z "$ac_err"; then
11767 rm -rf conftest*
11768 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11769else
698dcdb6
VZ
11770 echo "$ac_err" >&5
11771 echo "configure: failed program was:" >&5
10f2d63a 11772 cat conftest.$ac_ext >&5
698dcdb6
VZ
11773 rm -rf conftest*
11774 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11775fi
698dcdb6 11776rm -f conftest*
10f2d63a 11777fi
698dcdb6
VZ
11778if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11779 echo "$ac_t""yes" 1>&6
11780 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11781 cat >> confdefs.h <<EOF
11782#define $ac_tr_hdr 1
10f2d63a 11783EOF
698dcdb6
VZ
11784
11785else
11786 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11787fi
11788done
11789
10f2d63a 11790
3a922bb4
RL
11791if test "$wxUSE_GUI" = "yes"; then
11792 if test "$wxUSE_UNIX" = "yes"; then
11793 for ac_hdr in X11/XKBlib.h
29fd3c0c
VS
11794do
11795ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11796echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7cf43d5e 11797echo "configure:11798: checking for $ac_hdr" >&5
29fd3c0c
VS
11798if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11799 echo $ac_n "(cached) $ac_c" 1>&6
11800else
11801 cat > conftest.$ac_ext <<EOF
7cf43d5e 11802#line 11803 "configure"
29fd3c0c
VS
11803#include "confdefs.h"
11804#include <$ac_hdr>
11805EOF
11806ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7cf43d5e 11807{ (eval echo configure:11808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
11808ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11809if test -z "$ac_err"; then
11810 rm -rf conftest*
11811 eval "ac_cv_header_$ac_safe=yes"
11812else
11813 echo "$ac_err" >&5
11814 echo "configure: failed program was:" >&5
11815 cat conftest.$ac_ext >&5
11816 rm -rf conftest*
11817 eval "ac_cv_header_$ac_safe=no"
11818fi
11819rm -f conftest*
11820fi
11821if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11822 echo "$ac_t""yes" 1>&6
11823 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11824 cat >> confdefs.h <<EOF
11825#define $ac_tr_hdr 1
11826EOF
11827
11828else
11829 echo "$ac_t""no" 1>&6
11830fi
11831done
11832
3a922bb4 11833 fi
29fd3c0c
VS
11834fi
11835
698dcdb6
VZ
11836
11837echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7cf43d5e 11838echo "configure:11839: checking for ANSI C header files" >&5
698dcdb6
VZ
11839if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11840 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11841else
698dcdb6 11842 cat > conftest.$ac_ext <<EOF
7cf43d5e 11843#line 11844 "configure"
10f2d63a
VZ
11844#include "confdefs.h"
11845#include <stdlib.h>
11846#include <stdarg.h>
11847#include <string.h>
11848#include <float.h>
698dcdb6
VZ
11849EOF
11850ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7cf43d5e 11851{ (eval echo configure:11852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11852ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11853if test -z "$ac_err"; then
11854 rm -rf conftest*
10f2d63a
VZ
11855 ac_cv_header_stdc=yes
11856else
698dcdb6
VZ
11857 echo "$ac_err" >&5
11858 echo "configure: failed program was:" >&5
10f2d63a 11859 cat conftest.$ac_ext >&5
698dcdb6 11860 rm -rf conftest*
10f2d63a
VZ
11861 ac_cv_header_stdc=no
11862fi
698dcdb6 11863rm -f conftest*
10f2d63a
VZ
11864
11865if test $ac_cv_header_stdc = yes; then
11866 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 11867cat > conftest.$ac_ext <<EOF
7cf43d5e 11868#line 11869 "configure"
10f2d63a
VZ
11869#include "confdefs.h"
11870#include <string.h>
698dcdb6 11871EOF
10f2d63a
VZ
11872if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11873 egrep "memchr" >/dev/null 2>&1; then
11874 :
11875else
698dcdb6 11876 rm -rf conftest*
10f2d63a
VZ
11877 ac_cv_header_stdc=no
11878fi
11879rm -f conftest*
11880
11881fi
11882
11883if test $ac_cv_header_stdc = yes; then
11884 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 11885cat > conftest.$ac_ext <<EOF
7cf43d5e 11886#line 11887 "configure"
10f2d63a
VZ
11887#include "confdefs.h"
11888#include <stdlib.h>
698dcdb6 11889EOF
10f2d63a
VZ
11890if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11891 egrep "free" >/dev/null 2>&1; then
11892 :
11893else
698dcdb6 11894 rm -rf conftest*
10f2d63a
VZ
11895 ac_cv_header_stdc=no
11896fi
11897rm -f conftest*
11898
11899fi
11900
11901if test $ac_cv_header_stdc = yes; then
11902 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 11903if test "$cross_compiling" = yes; then
10f2d63a
VZ
11904 :
11905else
698dcdb6 11906 cat > conftest.$ac_ext <<EOF
7cf43d5e 11907#line 11908 "configure"
10f2d63a
VZ
11908#include "confdefs.h"
11909#include <ctype.h>
698dcdb6
VZ
11910#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11911#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 11912#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
11913int main () { int i; for (i = 0; i < 256; i++)
11914if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11915exit (0); }
11916
11917EOF
7cf43d5e 11918if { (eval echo configure:11919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 11919then
10f2d63a
VZ
11920 :
11921else
698dcdb6
VZ
11922 echo "configure: failed program was:" >&5
11923 cat conftest.$ac_ext >&5
11924 rm -fr conftest*
11925 ac_cv_header_stdc=no
10f2d63a 11926fi
698dcdb6 11927rm -fr conftest*
10f2d63a 11928fi
698dcdb6 11929
10f2d63a
VZ
11930fi
11931fi
1e487827 11932
698dcdb6
VZ
11933echo "$ac_t""$ac_cv_header_stdc" 1>&6
11934if test $ac_cv_header_stdc = yes; then
11935 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11936#define STDC_HEADERS 1
11937EOF
11938
11939fi
11940
698dcdb6 11941echo $ac_n "checking for mode_t""... $ac_c" 1>&6
7cf43d5e 11942echo "configure:11943: checking for mode_t" >&5
698dcdb6
VZ
11943if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11944 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 11945else
698dcdb6 11946 cat > conftest.$ac_ext <<EOF
7cf43d5e 11947#line 11948 "configure"
1e487827 11948#include "confdefs.h"
698dcdb6
VZ
11949#include <sys/types.h>
11950#if STDC_HEADERS
11951#include <stdlib.h>
11952#include <stddef.h>
11953#endif
11954EOF
11955if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11956 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11957 rm -rf conftest*
10f2d63a
VZ
11958 ac_cv_type_mode_t=yes
11959else
698dcdb6
VZ
11960 rm -rf conftest*
11961 ac_cv_type_mode_t=no
703e0a69 11962fi
698dcdb6 11963rm -f conftest*
1e487827 11964
698dcdb6
VZ
11965fi
11966echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11967if test $ac_cv_type_mode_t = no; then
11968 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11969#define mode_t int
11970EOF
11971
11972fi
11973
698dcdb6 11974echo $ac_n "checking for off_t""... $ac_c" 1>&6
7cf43d5e 11975echo "configure:11976: checking for off_t" >&5
698dcdb6
VZ
11976if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11977 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11978else
698dcdb6 11979 cat > conftest.$ac_ext <<EOF
7cf43d5e 11980#line 11981 "configure"
10f2d63a 11981#include "confdefs.h"
698dcdb6
VZ
11982#include <sys/types.h>
11983#if STDC_HEADERS
11984#include <stdlib.h>
11985#include <stddef.h>
11986#endif
11987EOF
11988if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11989 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11990 rm -rf conftest*
10f2d63a
VZ
11991 ac_cv_type_off_t=yes
11992else
698dcdb6
VZ
11993 rm -rf conftest*
11994 ac_cv_type_off_t=no
703e0a69 11995fi
698dcdb6 11996rm -f conftest*
1e487827 11997
698dcdb6
VZ
11998fi
11999echo "$ac_t""$ac_cv_type_off_t" 1>&6
12000if test $ac_cv_type_off_t = no; then
12001 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12002#define off_t long
12003EOF
12004
12005fi
12006
698dcdb6 12007echo $ac_n "checking for pid_t""... $ac_c" 1>&6
7cf43d5e 12008echo "configure:12009: checking for pid_t" >&5
698dcdb6
VZ
12009if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
12010 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12011else
698dcdb6 12012 cat > conftest.$ac_ext <<EOF
7cf43d5e 12013#line 12014 "configure"
10f2d63a 12014#include "confdefs.h"
698dcdb6
VZ
12015#include <sys/types.h>
12016#if STDC_HEADERS
12017#include <stdlib.h>
12018#include <stddef.h>
12019#endif
12020EOF
12021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12022 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12023 rm -rf conftest*
10f2d63a
VZ
12024 ac_cv_type_pid_t=yes
12025else
698dcdb6
VZ
12026 rm -rf conftest*
12027 ac_cv_type_pid_t=no
703e0a69 12028fi
698dcdb6 12029rm -f conftest*
1e487827 12030
698dcdb6
VZ
12031fi
12032echo "$ac_t""$ac_cv_type_pid_t" 1>&6
12033if test $ac_cv_type_pid_t = no; then
12034 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12035#define pid_t int
12036EOF
12037
12038fi
12039
698dcdb6 12040echo $ac_n "checking for size_t""... $ac_c" 1>&6
7cf43d5e 12041echo "configure:12042: checking for size_t" >&5
698dcdb6
VZ
12042if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
12043 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12044else
698dcdb6 12045 cat > conftest.$ac_ext <<EOF
7cf43d5e 12046#line 12047 "configure"
10f2d63a 12047#include "confdefs.h"
698dcdb6
VZ
12048#include <sys/types.h>
12049#if STDC_HEADERS
12050#include <stdlib.h>
12051#include <stddef.h>
12052#endif
12053EOF
12054if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12055 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12056 rm -rf conftest*
10f2d63a
VZ
12057 ac_cv_type_size_t=yes
12058else
698dcdb6
VZ
12059 rm -rf conftest*
12060 ac_cv_type_size_t=no
703e0a69 12061fi
698dcdb6 12062rm -f conftest*
1e487827 12063
698dcdb6
VZ
12064fi
12065echo "$ac_t""$ac_cv_type_size_t" 1>&6
12066if test $ac_cv_type_size_t = no; then
12067 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12068#define size_t unsigned
12069EOF
12070
12071fi
12072
698dcdb6 12073echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
7cf43d5e 12074echo "configure:12075: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
12075if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
12076 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12077else
698dcdb6 12078 cat > conftest.$ac_ext <<EOF
7cf43d5e 12079#line 12080 "configure"
10f2d63a
VZ
12080#include "confdefs.h"
12081#include <sys/types.h>
698dcdb6 12082EOF
10f2d63a
VZ
12083if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12084 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 12085 rm -rf conftest*
10f2d63a
VZ
12086 ac_cv_type_uid_t=yes
12087else
698dcdb6 12088 rm -rf conftest*
10f2d63a
VZ
12089 ac_cv_type_uid_t=no
12090fi
12091rm -f conftest*
12092
12093fi
1e487827 12094
698dcdb6
VZ
12095echo "$ac_t""$ac_cv_type_uid_t" 1>&6
12096if test $ac_cv_type_uid_t = no; then
12097 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12098#define uid_t int
12099EOF
12100
698dcdb6 12101 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12102#define gid_t int
12103EOF
12104
12105fi
12106
1e487827 12107
698dcdb6 12108echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
7cf43d5e 12109echo "configure:12110: checking for wchar_t" >&5
698dcdb6
VZ
12110if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
12111 echo $ac_n "(cached) $ac_c" 1>&6
12112else
12113
12114 cat > conftest.$ac_ext <<EOF
7cf43d5e 12115#line 12116 "configure"
0046ff7c
VS
12116#include "confdefs.h"
12117#include <wchar.h>
698dcdb6 12118int main() {
0046ff7c 12119
d836ee96
VZ
12120 wchar_t wc, *ws;
12121 wc = L'a';
12122 ws = L"Hello, world!";
698dcdb6
VZ
12123
12124; return 0; }
12125EOF
7cf43d5e 12126if { (eval echo configure:12127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12127 rm -rf conftest*
1f8ae82f
GD
12128 wx_cv_type_wchar_t=yes
12129else
698dcdb6
VZ
12130 echo "configure: failed program was:" >&5
12131 cat conftest.$ac_ext >&5
12132 rm -rf conftest*
12133 cat > conftest.$ac_ext <<EOF
7cf43d5e 12134#line 12135 "configure"
1f8ae82f
GD
12135#include "confdefs.h"
12136#include <stdlib.h>
698dcdb6 12137int main() {
1f8ae82f 12138
d836ee96
VZ
12139 wchar_t wc, *ws;
12140 wc = L'a';
12141 ws = L"Hello, world!";
698dcdb6
VZ
12142
12143; return 0; }
12144EOF
7cf43d5e 12145if { (eval echo configure:12146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12146 rm -rf conftest*
0046ff7c
VS
12147 wx_cv_type_wchar_t=yes
12148else
698dcdb6
VZ
12149 echo "configure: failed program was:" >&5
12150 cat conftest.$ac_ext >&5
12151 rm -rf conftest*
12152 wx_cv_type_wchar_t=no
0046ff7c 12153fi
698dcdb6 12154rm -f conftest*
d836ee96 12155
6232543b 12156fi
698dcdb6 12157rm -f conftest*
703e0a69 12158
1e487827 12159fi
698dcdb6
VZ
12160
12161echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
12162
12163if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 12164 cat >> confdefs.h <<\EOF
0046ff7c
VS
12165#define wxUSE_WCHAR_T 1
12166EOF
12167
12168fi
12169
19af3b06
VZ
12170
12171ac_ext=C
12172# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12173ac_cpp='$CXXCPP $CPPFLAGS'
12174ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12175ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12176cross_compiling=$ac_cv_prog_cxx_cross
12177
d836ee96 12178echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
7cf43d5e 12179echo "configure:12180: checking if size_t is unsigned int" >&5
d836ee96
VZ
12180if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
12181 echo $ac_n "(cached) $ac_c" 1>&6
12182else
dd2c8b7c 12183 cat > conftest.$ac_ext <<EOF
7cf43d5e 12184#line 12185 "configure"
d836ee96
VZ
12185#include "confdefs.h"
12186#include <stddef.h>
12187int main() {
12188
dd2c8b7c
VZ
12189 return 0; }
12190
d836ee96 12191 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
12192
12193 int bar() {
d836ee96
VZ
12194
12195; return 0; }
12196EOF
7cf43d5e 12197if { (eval echo configure:12198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
12198 rm -rf conftest*
12199 wx_cv_size_t_is_uint=no
12200else
12201 echo "configure: failed program was:" >&5
12202 cat conftest.$ac_ext >&5
12203 rm -rf conftest*
12204 wx_cv_size_t_is_uint=yes
12205
12206fi
12207rm -f conftest*
12208
12209fi
12210
12211echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
12212
12213if test "$wx_cv_size_t_is_uint" = "yes"; then
12214 cat >> confdefs.h <<\EOF
12215#define wxSIZE_T_IS_UINT 1
12216EOF
12217
12218else
12219 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
7cf43d5e 12220echo "configure:12221: checking if size_t is unsigned long" >&5
d836ee96
VZ
12221if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
12222 echo $ac_n "(cached) $ac_c" 1>&6
12223else
12224 cat > conftest.$ac_ext <<EOF
7cf43d5e 12225#line 12226 "configure"
d836ee96
VZ
12226#include "confdefs.h"
12227#include <stddef.h>
12228int main() {
12229
dd2c8b7c
VZ
12230 return 0; }
12231
d836ee96 12232 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
12233
12234 int bar() {
d836ee96
VZ
12235
12236; return 0; }
12237EOF
7cf43d5e 12238if { (eval echo configure:12239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
12239 rm -rf conftest*
12240 wx_cv_size_t_is_ulong=no
12241else
12242 echo "configure: failed program was:" >&5
12243 cat conftest.$ac_ext >&5
12244 rm -rf conftest*
12245 wx_cv_size_t_is_ulong=yes
12246
12247fi
12248rm -f conftest*
12249
12250fi
12251
12252echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
12253
12254 if test "$wx_cv_size_t_is_ulong" = "yes"; then
12255 cat >> confdefs.h <<\EOF
12256#define wxSIZE_T_IS_ULONG 1
12257EOF
12258
12259 fi
12260fi
12261
19af3b06
VZ
12262ac_ext=c
12263# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12264ac_cpp='$CPP $CPPFLAGS'
12265ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12266ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12267cross_compiling=$ac_cv_prog_cc_cross
12268
12269
1e487827 12270
698dcdb6 12271echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
7cf43d5e 12272echo "configure:12273: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
12273if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
12274 echo $ac_n "(cached) $ac_c" 1>&6
12275else
12276
12277 cat > conftest.$ac_ext <<EOF
7cf43d5e 12278#line 12279 "configure"
b12915c1
VZ
12279#include "confdefs.h"
12280#include <pwd.h>
698dcdb6 12281int main() {
b12915c1
VZ
12282
12283 char *p;
12284 struct passwd *pw;
12285 p = pw->pw_gecos;
698dcdb6
VZ
12286
12287; return 0; }
12288EOF
7cf43d5e 12289if { (eval echo configure:12290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12290 rm -rf conftest*
12291
b12915c1 12292 wx_cv_struct_pw_gecos=yes
698dcdb6 12293
b12915c1 12294else
698dcdb6
VZ
12295 echo "configure: failed program was:" >&5
12296 cat conftest.$ac_ext >&5
12297 rm -rf conftest*
12298
b12915c1 12299 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
12300
12301
6232543b 12302fi
698dcdb6
VZ
12303rm -f conftest*
12304
703e0a69 12305
1e487827 12306fi
698dcdb6
VZ
12307
12308echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 12309
bd3277fe 12310if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 12311 cat >> confdefs.h <<\EOF
bd3277fe
VZ
12312#define HAVE_PW_GECOS 1
12313EOF
12314
12315fi
12316
698dcdb6
VZ
12317
12318echo $ac_n "checking for working const""... $ac_c" 1>&6
7cf43d5e 12319echo "configure:12320: checking for working const" >&5
698dcdb6
VZ
12320if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
12321 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12322else
698dcdb6 12323 cat > conftest.$ac_ext <<EOF
7cf43d5e 12324#line 12325 "configure"
10f2d63a 12325#include "confdefs.h"
698dcdb6
VZ
12326
12327int main() {
12328
12329/* Ultrix mips cc rejects this. */
12330typedef int charset[2]; const charset x;
12331/* SunOS 4.1.1 cc rejects this. */
12332char const *const *ccp;
12333char **p;
12334/* NEC SVR4.0.2 mips cc rejects this. */
12335struct point {int x, y;};
12336static struct point const zero = {0,0};
12337/* AIX XL C 1.02.0.0 rejects this.
12338 It does not let you subtract one const X* pointer from another in an arm
12339 of an if-expression whose if-part is not a constant expression */
12340const char *g = "string";
12341ccp = &g + (g ? g-g : 0);
12342/* HPUX 7.0 cc rejects these. */
12343++ccp;
12344p = (char**) ccp;
12345ccp = (char const *const *) p;
12346{ /* SCO 3.2v4 cc rejects this. */
12347 char *t;
12348 char const *s = 0 ? (char *) 0 : (char const *) 0;
12349
12350 *t++ = 0;
10f2d63a 12351}
698dcdb6
VZ
12352{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12353 int x[] = {25, 17};
12354 const int *foo = &x[0];
12355 ++foo;
703e0a69 12356}
698dcdb6
VZ
12357{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12358 typedef const int *iptr;
12359 iptr p = 0;
12360 ++p;
6232543b 12361}
698dcdb6
VZ
12362{ /* AIX XL C 1.02.0.0 rejects this saying
12363 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12364 struct s { int j; const int *ap[3]; };
12365 struct s *b; b->j = 5;
1e487827 12366}
698dcdb6
VZ
12367{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12368 const int foo = 10;
12369}
12370
12371; return 0; }
12372EOF
7cf43d5e 12373if { (eval echo configure:12374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12374 rm -rf conftest*
10f2d63a
VZ
12375 ac_cv_c_const=yes
12376else
698dcdb6
VZ
12377 echo "configure: failed program was:" >&5
12378 cat conftest.$ac_ext >&5
12379 rm -rf conftest*
12380 ac_cv_c_const=no
10f2d63a 12381fi
698dcdb6 12382rm -f conftest*
10f2d63a 12383fi
1e487827 12384
698dcdb6
VZ
12385echo "$ac_t""$ac_cv_c_const" 1>&6
12386if test $ac_cv_c_const = no; then
12387 cat >> confdefs.h <<\EOF
12388#define const
10f2d63a
VZ
12389EOF
12390
12391fi
12392
698dcdb6 12393echo $ac_n "checking for inline""... $ac_c" 1>&6
7cf43d5e 12394echo "configure:12395: checking for inline" >&5
698dcdb6
VZ
12395if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
12396 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12397else
12398 ac_cv_c_inline=no
12399for ac_kw in inline __inline__ __inline; do
698dcdb6 12400 cat > conftest.$ac_ext <<EOF
7cf43d5e 12401#line 12402 "configure"
10f2d63a
VZ
12402#include "confdefs.h"
12403
698dcdb6
VZ
12404int main() {
12405} $ac_kw foo() {
12406; return 0; }
12407EOF
7cf43d5e 12408if { (eval echo configure:12409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12409 rm -rf conftest*
10f2d63a
VZ
12410 ac_cv_c_inline=$ac_kw; break
12411else
698dcdb6
VZ
12412 echo "configure: failed program was:" >&5
12413 cat conftest.$ac_ext >&5
10f2d63a 12414fi
698dcdb6 12415rm -f conftest*
10f2d63a
VZ
12416done
12417
12418fi
698dcdb6
VZ
12419
12420echo "$ac_t""$ac_cv_c_inline" 1>&6
12421case "$ac_cv_c_inline" in
10f2d63a 12422 inline | yes) ;;
698dcdb6
VZ
12423 no) cat >> confdefs.h <<\EOF
12424#define inline
10f2d63a
VZ
12425EOF
12426 ;;
698dcdb6 12427 *) cat >> confdefs.h <<EOF
10f2d63a
VZ
12428#define inline $ac_cv_c_inline
12429EOF
12430 ;;
12431esac
12432
698dcdb6
VZ
12433
12434echo $ac_n "checking size of char""... $ac_c" 1>&6
7cf43d5e 12435echo "configure:12436: checking size of char" >&5
698dcdb6
VZ
12436if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
12437 echo $ac_n "(cached) $ac_c" 1>&6
6232543b 12438else
1e487827 12439 if test "$cross_compiling" = yes; then
698dcdb6 12440 ac_cv_sizeof_char=1
1e487827 12441else
698dcdb6 12442 cat > conftest.$ac_ext <<EOF
7cf43d5e 12443#line 12444 "configure"
1e487827 12444#include "confdefs.h"
698dcdb6 12445#include <stdio.h>
7cf43d5e 12446#include <sys/types.h>
698dcdb6 12447main()
1e487827 12448{
698dcdb6
VZ
12449 FILE *f=fopen("conftestval", "w");
12450 if (!f) exit(1);
12451 fprintf(f, "%d\n", sizeof(char));
12452 exit(0);
1e487827 12453}
698dcdb6 12454EOF
7cf43d5e 12455if { (eval echo configure:12456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12456then
12457 ac_cv_sizeof_char=`cat conftestval`
1e487827 12458else
698dcdb6
VZ
12459 echo "configure: failed program was:" >&5
12460 cat conftest.$ac_ext >&5
12461 rm -fr conftest*
1e487827
VS
12462 ac_cv_sizeof_char=0
12463fi
698dcdb6 12464rm -fr conftest*
1e487827 12465fi
10f2d63a 12466
1e487827 12467fi
698dcdb6
VZ
12468echo "$ac_t""$ac_cv_sizeof_char" 1>&6
12469cat >> confdefs.h <<EOF
12470#define SIZEOF_CHAR $ac_cv_sizeof_char
1e487827 12471EOF
6232543b 12472
703e0a69 12473
698dcdb6 12474echo $ac_n "checking size of short""... $ac_c" 1>&6
7cf43d5e 12475echo "configure:12476: checking size of short" >&5
698dcdb6
VZ
12476if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
12477 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 12478else
1e487827 12479 if test "$cross_compiling" = yes; then
698dcdb6 12480 ac_cv_sizeof_short=2
1e487827 12481else
698dcdb6 12482 cat > conftest.$ac_ext <<EOF
7cf43d5e 12483#line 12484 "configure"
1e487827 12484#include "confdefs.h"
698dcdb6 12485#include <stdio.h>
7cf43d5e 12486#include <sys/types.h>
698dcdb6 12487main()
1e487827 12488{
698dcdb6
VZ
12489 FILE *f=fopen("conftestval", "w");
12490 if (!f) exit(1);
12491 fprintf(f, "%d\n", sizeof(short));
12492 exit(0);
1e487827 12493}
698dcdb6 12494EOF
7cf43d5e 12495if { (eval echo configure:12496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12496then
12497 ac_cv_sizeof_short=`cat conftestval`
1e487827 12498else
698dcdb6
VZ
12499 echo "configure: failed program was:" >&5
12500 cat conftest.$ac_ext >&5
12501 rm -fr conftest*
12502 ac_cv_sizeof_short=0
1e487827 12503fi
698dcdb6 12504rm -fr conftest*
1e487827 12505fi
698dcdb6 12506
1e487827 12507fi
698dcdb6
VZ
12508echo "$ac_t""$ac_cv_sizeof_short" 1>&6
12509cat >> confdefs.h <<EOF
12510#define SIZEOF_SHORT $ac_cv_sizeof_short
12511EOF
12512
12513
12514echo $ac_n "checking size of int *""... $ac_c" 1>&6
7cf43d5e 12515echo "configure:12516: checking size of int *" >&5
698dcdb6
VZ
12516if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
12517 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12518else
12519 if test "$cross_compiling" = yes; then
698dcdb6 12520 ac_cv_sizeof_int_p=4
10f2d63a 12521else
698dcdb6 12522 cat > conftest.$ac_ext <<EOF
7cf43d5e 12523#line 12524 "configure"
10f2d63a 12524#include "confdefs.h"
698dcdb6 12525#include <stdio.h>
7cf43d5e 12526#include <sys/types.h>
698dcdb6 12527main()
10f2d63a 12528{
698dcdb6
VZ
12529 FILE *f=fopen("conftestval", "w");
12530 if (!f) exit(1);
12531 fprintf(f, "%d\n", sizeof(int *));
12532 exit(0);
10f2d63a 12533}
698dcdb6 12534EOF
7cf43d5e 12535if { (eval echo configure:12536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12536then
12537 ac_cv_sizeof_int_p=`cat conftestval`
10f2d63a 12538else
698dcdb6
VZ
12539 echo "configure: failed program was:" >&5
12540 cat conftest.$ac_ext >&5
12541 rm -fr conftest*
12542 ac_cv_sizeof_int_p=0
6232543b 12543fi
698dcdb6 12544rm -fr conftest*
1e487827 12545fi
698dcdb6 12546
1e487827 12547fi
698dcdb6
VZ
12548echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
12549cat >> confdefs.h <<EOF
12550#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
12551EOF
12552
698dcdb6
VZ
12553
12554echo $ac_n "checking size of int""... $ac_c" 1>&6
7cf43d5e 12555echo "configure:12556: checking size of int" >&5
698dcdb6
VZ
12556if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
12557 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12558else
12559 if test "$cross_compiling" = yes; then
698dcdb6 12560 ac_cv_sizeof_int=4
703e0a69 12561else
698dcdb6 12562 cat > conftest.$ac_ext <<EOF
7cf43d5e 12563#line 12564 "configure"
1e487827 12564#include "confdefs.h"
698dcdb6 12565#include <stdio.h>
7cf43d5e 12566#include <sys/types.h>
698dcdb6 12567main()
1e487827 12568{
698dcdb6
VZ
12569 FILE *f=fopen("conftestval", "w");
12570 if (!f) exit(1);
12571 fprintf(f, "%d\n", sizeof(int));
12572 exit(0);
1e487827 12573}
698dcdb6 12574EOF
7cf43d5e 12575if { (eval echo configure:12576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12576then
12577 ac_cv_sizeof_int=`cat conftestval`
12578else
12579 echo "configure: failed program was:" >&5
12580 cat conftest.$ac_ext >&5
12581 rm -fr conftest*
12582 ac_cv_sizeof_int=0
703e0a69 12583fi
698dcdb6
VZ
12584rm -fr conftest*
12585fi
12586
12587fi
12588echo "$ac_t""$ac_cv_sizeof_int" 1>&6
12589cat >> confdefs.h <<EOF
12590#define SIZEOF_INT $ac_cv_sizeof_int
12591EOF
12592
12593
12594echo $ac_n "checking size of long""... $ac_c" 1>&6
7cf43d5e 12595echo "configure:12596: checking size of long" >&5
698dcdb6
VZ
12596if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
12597 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12598else
12599 if test "$cross_compiling" = yes; then
698dcdb6 12600 ac_cv_sizeof_long=4
10f2d63a 12601else
698dcdb6 12602 cat > conftest.$ac_ext <<EOF
7cf43d5e 12603#line 12604 "configure"
10f2d63a 12604#include "confdefs.h"
698dcdb6 12605#include <stdio.h>
7cf43d5e 12606#include <sys/types.h>
698dcdb6 12607main()
10f2d63a 12608{
698dcdb6
VZ
12609 FILE *f=fopen("conftestval", "w");
12610 if (!f) exit(1);
12611 fprintf(f, "%d\n", sizeof(long));
12612 exit(0);
10f2d63a 12613}
698dcdb6 12614EOF
7cf43d5e 12615if { (eval echo configure:12616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12616then
12617 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 12618else
698dcdb6
VZ
12619 echo "configure: failed program was:" >&5
12620 cat conftest.$ac_ext >&5
12621 rm -fr conftest*
12622 ac_cv_sizeof_long=0
10f2d63a 12623fi
698dcdb6 12624rm -fr conftest*
10f2d63a 12625fi
698dcdb6 12626
10f2d63a 12627fi
698dcdb6
VZ
12628echo "$ac_t""$ac_cv_sizeof_long" 1>&6
12629cat >> confdefs.h <<EOF
12630#define SIZEOF_LONG $ac_cv_sizeof_long
12631EOF
12632
12633
12634echo $ac_n "checking size of long long""... $ac_c" 1>&6
7cf43d5e 12635echo "configure:12636: checking size of long long" >&5
698dcdb6
VZ
12636if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
12637 echo $ac_n "(cached) $ac_c" 1>&6
12638else
12639 if test "$cross_compiling" = yes; then
12640 ac_cv_sizeof_long_long=0
12641else
12642 cat > conftest.$ac_ext <<EOF
7cf43d5e 12643#line 12644 "configure"
698dcdb6
VZ
12644#include "confdefs.h"
12645#include <stdio.h>
7cf43d5e 12646#include <sys/types.h>
698dcdb6
VZ
12647main()
12648{
12649 FILE *f=fopen("conftestval", "w");
12650 if (!f) exit(1);
12651 fprintf(f, "%d\n", sizeof(long long));
12652 exit(0);
12653}
12654EOF
7cf43d5e 12655if { (eval echo configure:12656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12656then
12657 ac_cv_sizeof_long_long=`cat conftestval`
6232543b 12658else
698dcdb6
VZ
12659 echo "configure: failed program was:" >&5
12660 cat conftest.$ac_ext >&5
12661 rm -fr conftest*
6232543b
VS
12662 ac_cv_sizeof_long_long=0
12663fi
698dcdb6
VZ
12664rm -fr conftest*
12665fi
12666
703e0a69 12667fi
698dcdb6
VZ
12668echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
12669cat >> confdefs.h <<EOF
10f2d63a
VZ
12670#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12671EOF
12672
1e487827 12673
698dcdb6
VZ
12674
12675echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
7cf43d5e 12676echo "configure:12677: checking size of wchar_t" >&5
698dcdb6
VZ
12677if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
12678 echo $ac_n "(cached) $ac_c" 1>&6
12679else
12680
b93d0d08
VS
12681 if test "$cross_compiling" = yes; then
12682 wx_cv_sizeof_wchar_t=4
1e6feb95 12683
b93d0d08 12684else
698dcdb6 12685 cat > conftest.$ac_ext <<EOF
7cf43d5e 12686#line 12687 "configure"
b93d0d08
VS
12687#include "confdefs.h"
12688
1e6feb95
VZ
12689 #ifdef HAVE_WCHAR_H
12690 # include <wchar.h>
12691 #endif
12692 #ifdef HAVE_STDLIB_H
12693 # include <stdlib.h>
12694 #endif
12695 #include <stdio.h>
12696 int main()
12697 {
12698 FILE *f=fopen("conftestval", "w");
12699 if (!f) exit(1);
12700 fprintf(f, "%i", sizeof(wchar_t));
12701 exit(0);
12702 }
698dcdb6
VZ
12703
12704EOF
7cf43d5e 12705if { (eval echo configure:12706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12706then
b93d0d08
VS
12707 wx_cv_sizeof_wchar_t=`cat conftestval`
12708else
698dcdb6
VZ
12709 echo "configure: failed program was:" >&5
12710 cat conftest.$ac_ext >&5
12711 rm -fr conftest*
12712 wx_cv_sizeof_wchar_t=0
b93d0d08 12713fi
698dcdb6 12714rm -fr conftest*
b93d0d08
VS
12715fi
12716
698dcdb6 12717
b93d0d08
VS
12718fi
12719
698dcdb6
VZ
12720echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
12721
12722cat >> confdefs.h <<EOF
28c6addc 12723#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
b93d0d08
VS
12724EOF
12725
698dcdb6 12726
698dcdb6 12727echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
7cf43d5e 12728echo "configure:12729: checking whether byte ordering is bigendian" >&5
698dcdb6
VZ
12729if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
12730 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12731else
12732 ac_cv_c_bigendian=unknown
12733# See if sys/param.h defines the BYTE_ORDER macro.
698dcdb6 12734cat > conftest.$ac_ext <<EOF
7cf43d5e 12735#line 12736 "configure"
10f2d63a
VZ
12736#include "confdefs.h"
12737#include <sys/types.h>
12738#include <sys/param.h>
698dcdb6 12739int main() {
10f2d63a
VZ
12740
12741#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12742 bogus endian macros
12743#endif
698dcdb6
VZ
12744; return 0; }
12745EOF
7cf43d5e 12746if { (eval echo configure:12747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12747 rm -rf conftest*
10f2d63a 12748 # It does; now see whether it defined to BIG_ENDIAN or not.
698dcdb6 12749cat > conftest.$ac_ext <<EOF
7cf43d5e 12750#line 12751 "configure"
10f2d63a
VZ
12751#include "confdefs.h"
12752#include <sys/types.h>
12753#include <sys/param.h>
698dcdb6 12754int main() {
10f2d63a
VZ
12755
12756#if BYTE_ORDER != BIG_ENDIAN
12757 not big endian
12758#endif
698dcdb6
VZ
12759; return 0; }
12760EOF
7cf43d5e 12761if { (eval echo configure:12762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12762 rm -rf conftest*
10f2d63a
VZ
12763 ac_cv_c_bigendian=yes
12764else
698dcdb6
VZ
12765 echo "configure: failed program was:" >&5
12766 cat conftest.$ac_ext >&5
12767 rm -rf conftest*
12768 ac_cv_c_bigendian=no
10f2d63a 12769fi
698dcdb6 12770rm -f conftest*
10f2d63a 12771else
698dcdb6
VZ
12772 echo "configure: failed program was:" >&5
12773 cat conftest.$ac_ext >&5
10f2d63a 12774fi
698dcdb6 12775rm -f conftest*
10f2d63a
VZ
12776if test $ac_cv_c_bigendian = unknown; then
12777if test "$cross_compiling" = yes; then
12778 ac_cv_c_bigendian=unknown
12779else
698dcdb6 12780 cat > conftest.$ac_ext <<EOF
7cf43d5e 12781#line 12782 "configure"
10f2d63a
VZ
12782#include "confdefs.h"
12783main () {
12784 /* Are we little or big endian? From Harbison&Steele. */
12785 union
12786 {
12787 long l;
12788 char c[sizeof (long)];
12789 } u;
12790 u.l = 1;
12791 exit (u.c[sizeof (long) - 1] == 1);
12792}
698dcdb6 12793EOF
7cf43d5e 12794if { (eval echo configure:12795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12795then
10f2d63a
VZ
12796 ac_cv_c_bigendian=no
12797else
698dcdb6
VZ
12798 echo "configure: failed program was:" >&5
12799 cat conftest.$ac_ext >&5
12800 rm -fr conftest*
12801 ac_cv_c_bigendian=yes
10f2d63a 12802fi
698dcdb6 12803rm -fr conftest*
10f2d63a 12804fi
698dcdb6 12805
10f2d63a
VZ
12806fi
12807fi
698dcdb6
VZ
12808
12809echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10f2d63a 12810if test $ac_cv_c_bigendian = unknown; then
698dcdb6 12811 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
10f2d63a
VZ
12812fi
12813if test $ac_cv_c_bigendian = yes; then
698dcdb6 12814 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12815#define WORDS_BIGENDIAN 1
12816EOF
12817
12818fi
12819
698dcdb6 12820
3a922bb4 12821echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
7cf43d5e 12822echo "configure:12823: checking how to run the C++ preprocessor" >&5
3a922bb4
RL
12823if test -z "$CXXCPP"; then
12824if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
12825 echo $ac_n "(cached) $ac_c" 1>&6
12826else
12827 ac_ext=C
12828# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12829ac_cpp='$CXXCPP $CPPFLAGS'
12830ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12831ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12832cross_compiling=$ac_cv_prog_cxx_cross
12833 CXXCPP="${CXX-g++} -E"
12834 cat > conftest.$ac_ext <<EOF
7cf43d5e 12835#line 12836 "configure"
3a922bb4
RL
12836#include "confdefs.h"
12837#include <stdlib.h>
12838EOF
12839ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7cf43d5e 12840{ (eval echo configure:12841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
12841ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12842if test -z "$ac_err"; then
12843 :
12844else
12845 echo "$ac_err" >&5
12846 echo "configure: failed program was:" >&5
12847 cat conftest.$ac_ext >&5
12848 rm -rf conftest*
12849 CXXCPP=/lib/cpp
12850fi
12851rm -f conftest*
12852 ac_cv_prog_CXXCPP="$CXXCPP"
12853ac_ext=C
12854# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12855ac_cpp='$CXXCPP $CPPFLAGS'
12856ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12857ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12858cross_compiling=$ac_cv_prog_cxx_cross
12859fi
12860fi
12861CXXCPP="$ac_cv_prog_CXXCPP"
12862echo "$ac_t""$CXXCPP" 1>&6
12863
698dcdb6 12864
10f2d63a 12865 if test "$cross_compiling" = "yes"; then
698dcdb6 12866 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12867#define wxUSE_IOSTREAMH 1
12868EOF
12869
12870 else
698dcdb6
VZ
12871
12872 ac_ext=C
12873# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12874ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12875ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12876ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12877cross_compiling=$ac_cv_prog_cxx_cross
12878
703e0a69 12879
698dcdb6 12880 for ac_hdr in iostream
10f2d63a 12881do
698dcdb6
VZ
12882ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12883echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7cf43d5e 12884echo "configure:12885: checking for $ac_hdr" >&5
698dcdb6
VZ
12885if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12886 echo $ac_n "(cached) $ac_c" 1>&6
12887else
12888 cat > conftest.$ac_ext <<EOF
7cf43d5e 12889#line 12890 "configure"
10f2d63a 12890#include "confdefs.h"
698dcdb6
VZ
12891#include <$ac_hdr>
12892EOF
12893ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7cf43d5e 12894{ (eval echo configure:12895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12895ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12896if test -z "$ac_err"; then
12897 rm -rf conftest*
12898 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12899else
698dcdb6
VZ
12900 echo "$ac_err" >&5
12901 echo "configure: failed program was:" >&5
10f2d63a 12902 cat conftest.$ac_ext >&5
698dcdb6
VZ
12903 rm -rf conftest*
12904 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12905fi
698dcdb6 12906rm -f conftest*
10f2d63a 12907fi
698dcdb6
VZ
12908if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12909 echo "$ac_t""yes" 1>&6
12910 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12911 cat >> confdefs.h <<EOF
12912#define $ac_tr_hdr 1
10f2d63a 12913EOF
698dcdb6
VZ
12914
12915else
12916 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12917fi
12918done
12919
698dcdb6 12920
57fe5ed0
VZ
12921 if test "$ac_cv_header_iostream" = "yes" ; then
12922 :
12923 else
698dcdb6 12924 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12925#define wxUSE_IOSTREAMH 1
12926EOF
12927
10f2d63a
VZ
12928 fi
12929
12930 ac_ext=c
698dcdb6 12931# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12932ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12933ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12934ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12935cross_compiling=$ac_cv_prog_cc_cross
10f2d63a
VZ
12936
12937 fi
12938
703e0a69 12939
698dcdb6
VZ
12940
12941 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
7cf43d5e 12942echo "configure:12943: checking if C++ compiler supports bool" >&5
698dcdb6
VZ
12943if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12944 echo $ac_n "(cached) $ac_c" 1>&6
12945else
12946
12947
12948 ac_ext=C
12949# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12950ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12951ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12952ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12953cross_compiling=$ac_cv_prog_cxx_cross
10f2d63a 12954
698dcdb6
VZ
12955
12956 cat > conftest.$ac_ext <<EOF
7cf43d5e 12957#line 12958 "configure"
10f2d63a
VZ
12958#include "confdefs.h"
12959
698dcdb6
VZ
12960
12961int main() {
10f2d63a
VZ
12962
12963 bool b = true;
12964
12965 return 0;
698dcdb6
VZ
12966
12967; return 0; }
12968EOF
7cf43d5e 12969if { (eval echo configure:12970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12970 rm -rf conftest*
12971
10f2d63a 12972 wx_cv_cpp_bool=yes
698dcdb6 12973
10f2d63a 12974else
698dcdb6
VZ
12975 echo "configure: failed program was:" >&5
12976 cat conftest.$ac_ext >&5
12977 rm -rf conftest*
12978
10f2d63a 12979 wx_cv_cpp_bool=no
698dcdb6
VZ
12980
12981
10f2d63a 12982fi
698dcdb6 12983rm -f conftest*
10f2d63a
VZ
12984
12985 ac_ext=c
698dcdb6 12986# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12987ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12988ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12989ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12990cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 12991
698dcdb6 12992
10f2d63a 12993fi
698dcdb6
VZ
12994
12995echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10f2d63a
VZ
12996
12997 if test "$wx_cv_cpp_bool" = "yes"; then
698dcdb6 12998 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12999#define HAVE_BOOL 1
13000EOF
13001
13002 fi
13003
1e487827 13004
698dcdb6 13005
698dcdb6 13006echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
7cf43d5e 13007echo "configure:13008: checking for wcslen in -lc" >&5
698dcdb6
VZ
13008ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
13009if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13010 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13011else
698dcdb6 13012 ac_save_LIBS="$LIBS"
10f2d63a 13013LIBS="-lc $LIBS"
698dcdb6 13014cat > conftest.$ac_ext <<EOF
7cf43d5e 13015#line 13016 "configure"
10f2d63a
VZ
13016#include "confdefs.h"
13017/* Override any gcc2 internal prototype to avoid an error. */
13018/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13019 builtin and then its argument prototype would still apply. */
13020char wcslen();
13021
13022int main() {
13023wcslen()
13024; return 0; }
13025EOF
7cf43d5e 13026if { (eval echo configure:13027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13027 rm -rf conftest*
13028 eval "ac_cv_lib_$ac_lib_var=yes"
13029else
13030 echo "configure: failed program was:" >&5
13031 cat conftest.$ac_ext >&5
13032 rm -rf conftest*
13033 eval "ac_cv_lib_$ac_lib_var=no"
13034fi
13035rm -f conftest*
13036LIBS="$ac_save_LIBS"
13037
13038fi
13039if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13040 echo "$ac_t""yes" 1>&6
13041
13042 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13043#define HAVE_WCSLEN 1
13044EOF
13045
13046 WCHAR_LINK=""
698dcdb6 13047
10f2d63a 13048else
698dcdb6 13049 echo "$ac_t""no" 1>&6
10f2d63a 13050
698dcdb6 13051 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
7cf43d5e 13052echo "configure:13053: checking for wcslen in -lw" >&5
698dcdb6
VZ
13053ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
13054if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13055 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13056else
698dcdb6 13057 ac_save_LIBS="$LIBS"
10f2d63a 13058LIBS="-lw $LIBS"
698dcdb6 13059cat > conftest.$ac_ext <<EOF
7cf43d5e 13060#line 13061 "configure"
10f2d63a
VZ
13061#include "confdefs.h"
13062/* Override any gcc2 internal prototype to avoid an error. */
13063/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13064 builtin and then its argument prototype would still apply. */
13065char wcslen();
13066
13067int main() {
13068wcslen()
13069; return 0; }
13070EOF
7cf43d5e 13071if { (eval echo configure:13072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13072 rm -rf conftest*
13073 eval "ac_cv_lib_$ac_lib_var=yes"
13074else
13075 echo "configure: failed program was:" >&5
13076 cat conftest.$ac_ext >&5
13077 rm -rf conftest*
13078 eval "ac_cv_lib_$ac_lib_var=no"
13079fi
13080rm -f conftest*
13081LIBS="$ac_save_LIBS"
13082
13083fi
13084if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13085 echo "$ac_t""yes" 1>&6
13086
13087 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13088#define HAVE_WCSLEN 1
13089EOF
13090
13091 WCHAR_LINK="-lw"
698dcdb6 13092
18dbb1f6
VZ
13093else
13094 echo "$ac_t""no" 1>&6
13095
13096 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
7cf43d5e 13097echo "configure:13098: checking for wcslen in -lmsvcrt" >&5
18dbb1f6
VZ
13098ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
13099if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13100 echo $ac_n "(cached) $ac_c" 1>&6
13101else
13102 ac_save_LIBS="$LIBS"
13103LIBS="-lmsvcrt $LIBS"
13104cat > conftest.$ac_ext <<EOF
7cf43d5e 13105#line 13106 "configure"
18dbb1f6
VZ
13106#include "confdefs.h"
13107/* Override any gcc2 internal prototype to avoid an error. */
13108/* We use char because int might match the return type of a gcc2
13109 builtin and then its argument prototype would still apply. */
13110char wcslen();
13111
13112int main() {
13113wcslen()
13114; return 0; }
13115EOF
7cf43d5e 13116if { (eval echo configure:13117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18dbb1f6
VZ
13117 rm -rf conftest*
13118 eval "ac_cv_lib_$ac_lib_var=yes"
13119else
13120 echo "configure: failed program was:" >&5
13121 cat conftest.$ac_ext >&5
13122 rm -rf conftest*
13123 eval "ac_cv_lib_$ac_lib_var=no"
13124fi
13125rm -f conftest*
13126LIBS="$ac_save_LIBS"
13127
13128fi
13129if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13130 echo "$ac_t""yes" 1>&6
13131
13132 cat >> confdefs.h <<\EOF
13133#define HAVE_WCSLEN 1
13134EOF
13135
13136 WCHAR_LINK=""
13137
698dcdb6
VZ
13138else
13139 echo "$ac_t""no" 1>&6
6232543b 13140fi
10f2d63a 13141
18dbb1f6
VZ
13142
13143fi
13144
698dcdb6 13145
1e487827 13146fi
703e0a69 13147
698dcdb6 13148
b3e8d00a
VZ
13149for ac_func in wcsrtombs
13150do
13151echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7cf43d5e 13152echo "configure:13153: checking for $ac_func" >&5
b3e8d00a
VZ
13153if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13154 echo $ac_n "(cached) $ac_c" 1>&6
13155else
13156 cat > conftest.$ac_ext <<EOF
7cf43d5e 13157#line 13158 "configure"
b3e8d00a
VZ
13158#include "confdefs.h"
13159/* System header to define __stub macros and hopefully few prototypes,
13160 which can conflict with char $ac_func(); below. */
13161#include <assert.h>
13162/* Override any gcc2 internal prototype to avoid an error. */
13163/* We use char because int might match the return type of a gcc2
13164 builtin and then its argument prototype would still apply. */
13165char $ac_func();
13166
13167int main() {
13168
13169/* The GNU C library defines this for functions which it implements
13170 to always fail with ENOSYS. Some functions are actually named
13171 something starting with __ and the normal name is an alias. */
13172#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13173choke me
13174#else
13175$ac_func();
13176#endif
13177
13178; return 0; }
13179EOF
7cf43d5e 13180if { (eval echo configure:13181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b3e8d00a
VZ
13181 rm -rf conftest*
13182 eval "ac_cv_func_$ac_func=yes"
13183else
13184 echo "configure: failed program was:" >&5
13185 cat conftest.$ac_ext >&5
13186 rm -rf conftest*
13187 eval "ac_cv_func_$ac_func=no"
13188fi
13189rm -f conftest*
13190fi
13191
13192if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13193 echo "$ac_t""yes" 1>&6
13194 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13195 cat >> confdefs.h <<EOF
13196#define $ac_tr_func 1
13197EOF
13198
13199else
13200 echo "$ac_t""no" 1>&6
13201fi
13202done
13203
13204
698dcdb6 13205echo $ac_n "checking for vprintf""... $ac_c" 1>&6
7cf43d5e 13206echo "configure:13207: checking for vprintf" >&5
698dcdb6
VZ
13207if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
13208 echo $ac_n "(cached) $ac_c" 1>&6
13209else
13210 cat > conftest.$ac_ext <<EOF
7cf43d5e 13211#line 13212 "configure"
10f2d63a
VZ
13212#include "confdefs.h"
13213/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13214 which can conflict with char vprintf(); below. */
10f2d63a
VZ
13215#include <assert.h>
13216/* Override any gcc2 internal prototype to avoid an error. */
13217/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13218 builtin and then its argument prototype would still apply. */
13219char vprintf();
13220
13221int main() {
10f2d63a
VZ
13222
13223/* The GNU C library defines this for functions which it implements
13224 to always fail with ENOSYS. Some functions are actually named
13225 something starting with __ and the normal name is an alias. */
698dcdb6 13226#if defined (__stub_vprintf) || defined (__stub___vprintf)
10f2d63a
VZ
13227choke me
13228#else
698dcdb6 13229vprintf();
10f2d63a
VZ
13230#endif
13231
698dcdb6
VZ
13232; return 0; }
13233EOF
7cf43d5e 13234if { (eval echo configure:13235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13235 rm -rf conftest*
13236 eval "ac_cv_func_vprintf=yes"
13237else
13238 echo "configure: failed program was:" >&5
13239 cat conftest.$ac_ext >&5
13240 rm -rf conftest*
13241 eval "ac_cv_func_vprintf=no"
13242fi
13243rm -f conftest*
13244fi
13245
13246if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
13247 echo "$ac_t""yes" 1>&6
13248 cat >> confdefs.h <<\EOF
13249#define HAVE_VPRINTF 1
13250EOF
13251
13252else
13253 echo "$ac_t""no" 1>&6
13254fi
13255
13256if test "$ac_cv_func_vprintf" != yes; then
13257echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
7cf43d5e 13258echo "configure:13259: checking for _doprnt" >&5
698dcdb6
VZ
13259if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
13260 echo $ac_n "(cached) $ac_c" 1>&6
13261else
13262 cat > conftest.$ac_ext <<EOF
7cf43d5e 13263#line 13264 "configure"
10f2d63a
VZ
13264#include "confdefs.h"
13265/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13266 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
13267#include <assert.h>
13268/* Override any gcc2 internal prototype to avoid an error. */
13269/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13270 builtin and then its argument prototype would still apply. */
13271char _doprnt();
13272
13273int main() {
10f2d63a
VZ
13274
13275/* The GNU C library defines this for functions which it implements
13276 to always fail with ENOSYS. Some functions are actually named
13277 something starting with __ and the normal name is an alias. */
13278#if defined (__stub__doprnt) || defined (__stub____doprnt)
13279choke me
13280#else
698dcdb6 13281_doprnt();
10f2d63a
VZ
13282#endif
13283
698dcdb6
VZ
13284; return 0; }
13285EOF
7cf43d5e 13286if { (eval echo configure:13287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13287 rm -rf conftest*
13288 eval "ac_cv_func__doprnt=yes"
13289else
13290 echo "configure: failed program was:" >&5
13291 cat conftest.$ac_ext >&5
13292 rm -rf conftest*
13293 eval "ac_cv_func__doprnt=no"
13294fi
13295rm -f conftest*
13296fi
13297
13298if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
13299 echo "$ac_t""yes" 1>&6
13300 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13301#define HAVE_DOPRNT 1
13302EOF
13303
698dcdb6
VZ
13304else
13305 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13306fi
13307
13308fi
13309
1e487827 13310
698dcdb6
VZ
13311
13312
13313
13314
698dcdb6 13315echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
7cf43d5e 13316echo "configure:13317: checking for vsnprintf" >&5
698dcdb6
VZ
13317if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
13318 echo $ac_n "(cached) $ac_c" 1>&6
13319else
13320
13321 cat > conftest.$ac_ext <<EOF
7cf43d5e 13322#line 13323 "configure"
f6bcfd97
BP
13323#include "confdefs.h"
13324
13325 #include <stdio.h>
698dcdb6
VZ
13326 #include <stdarg.h>
13327
13328int main() {
10f2d63a 13329
f6bcfd97 13330 int wx_test_vsnprintf(const char *, ...);
10f2d63a 13331
f6bcfd97
BP
13332 wx_test_vsnprintf("%s");
13333 return 0;
13334 }
13335
13336 int wx_test_vsnprintf(const char *fmt, ...)
13337 {
13338 char *s;
13339
13340 va_list argp;
13341 va_start(argp, fmt);
13342 vsnprintf(s, 42, fmt, argp);
13343 va_end(argp);
698dcdb6
VZ
13344
13345; return 0; }
13346EOF
7cf43d5e 13347if { (eval echo configure:13348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13348 rm -rf conftest*
13349
f6bcfd97 13350 wx_cv_func_vsnprintf=yes
698dcdb6 13351
10f2d63a 13352else
698dcdb6
VZ
13353 echo "configure: failed program was:" >&5
13354 cat conftest.$ac_ext >&5
13355 rm -rf conftest*
13356
13357 cat > conftest.$ac_ext <<EOF
7cf43d5e 13358#line 13359 "configure"
c521c494
RL
13359#include "confdefs.h"
13360
13361 #include <stdio.h>
13362 #include <stdarg.h>
698dcdb6
VZ
13363
13364int main() {
c521c494
RL
13365
13366 int wx_test_vsnprintf(const char *, ...);
13367
13368 wx_test_vsnprintf("%s");
13369 return 0;
13370 }
13371
13372 int wx_test_vsnprintf(const char *fmt, ...)
13373 {
13374 char *s;
13375
13376 va_list argp;
13377 va_start(argp, fmt);
13378 _vsnprintf(s, 42, fmt, argp);
13379 va_end(argp);
698dcdb6
VZ
13380
13381; return 0; }
13382EOF
7cf43d5e 13383if { (eval echo configure:13384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13384 rm -rf conftest*
13385
c521c494 13386 wx_cv_func_vsnprintf=yes
698dcdb6 13387
c521c494 13388else
698dcdb6
VZ
13389 echo "configure: failed program was:" >&5
13390 cat conftest.$ac_ext >&5
13391 rm -rf conftest*
13392
c521c494 13393 wx_cv_func_vsnprintf=no
698dcdb6 13394
10f2d63a 13395fi
698dcdb6
VZ
13396rm -f conftest*
13397
6232543b 13398fi
698dcdb6 13399rm -f conftest*
703e0a69 13400
1e487827 13401fi
698dcdb6
VZ
13402
13403echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
10f2d63a 13404
9d8deca0 13405if test "$wx_cv_func_vsnprintf" = yes; then
698dcdb6 13406 cat >> confdefs.h <<\EOF
9d8deca0
VZ
13407#define HAVE_VSNPRINTF 1
13408EOF
13409
13410else
698dcdb6 13411 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9d8deca0
VZ
13412fi
13413
698dcdb6 13414echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
7cf43d5e 13415echo "configure:13416: checking for vsscanf" >&5
698dcdb6
VZ
13416if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
13417 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13418else
698dcdb6
VZ
13419
13420 cat > conftest.$ac_ext <<EOF
7cf43d5e 13421#line 13422 "configure"
10f2d63a 13422#include "confdefs.h"
10f2d63a 13423
f6bcfd97
BP
13424 #include <stdio.h>
13425 #include <stdarg.h>
698dcdb6
VZ
13426
13427int main() {
10f2d63a 13428
f6bcfd97 13429 int wx_test_vsscanf(const char *, ...);
10f2d63a 13430
f6bcfd97
BP
13431 wx_test_vsscanf("%d");
13432 return 0;
10f2d63a
VZ
13433 }
13434
f6bcfd97 13435 int wx_test_vsscanf(const char *fmt, ...)
10f2d63a 13436 {
f6bcfd97
BP
13437 va_list argp;
13438 va_start(argp, fmt);
13439 vsscanf("42", fmt, argp);
13440 va_end(argp);
698dcdb6
VZ
13441
13442; return 0; }
13443EOF
7cf43d5e 13444if { (eval echo configure:13445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13445 rm -rf conftest*
13446
f6bcfd97 13447 wx_cv_func_vsscanf=yes
698dcdb6 13448
10f2d63a 13449else
698dcdb6
VZ
13450 echo "configure: failed program was:" >&5
13451 cat conftest.$ac_ext >&5
13452 rm -rf conftest*
13453
f6bcfd97 13454 wx_cv_func_vsscanf=no
698dcdb6 13455
6232543b 13456fi
698dcdb6 13457rm -f conftest*
703e0a69 13458
1e487827 13459fi
698dcdb6
VZ
13460
13461echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10f2d63a 13462
9d8deca0 13463if test "$wx_cv_func_vsscanf" = yes; then
698dcdb6 13464 cat >> confdefs.h <<\EOF
9d8deca0
VZ
13465#define HAVE_VSSCANF 1
13466EOF
13467
13468fi
13469
95c8801c
VS
13470if test "$TOOLKIT" != "MSW"; then
13471
13472
13473
698dcdb6
VZ
13474ac_ext=C
13475# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13476ac_cpp='$CXXCPP $CPPFLAGS'
13477ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13478ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13479cross_compiling=$ac_cv_prog_cxx_cross
13480
13481echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
7cf43d5e 13482echo "configure:13483: checking if iconv() takes char**" >&5
698dcdb6
VZ
13483if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
13484 echo $ac_n "(cached) $ac_c" 1>&6
13485else
13486
13487 cat > conftest.$ac_ext <<EOF
7cf43d5e 13488#line 13489 "configure"
95c8801c
VS
13489#include "confdefs.h"
13490#include <iconv.h>
698dcdb6 13491int main() {
95c8801c
VS
13492
13493 char **inbuf, **outbuf;
19af3b06
VZ
13494 iconv_t cd;
13495 size_t insz, outsz;
13496 iconv(cd, inbuf, &insz, outbuf, &outsz);
698dcdb6
VZ
13497
13498; return 0; }
13499EOF
7cf43d5e 13500if { (eval echo configure:13501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 13501 rm -rf conftest*
95c8801c
VS
13502 wx_cv_iconv_takes_char=yes
13503else
698dcdb6
VZ
13504 echo "configure: failed program was:" >&5
13505 cat conftest.$ac_ext >&5
13506 rm -rf conftest*
13507 wx_cv_iconv_takes_char=no
95c8801c 13508fi
698dcdb6 13509rm -f conftest*
95c8801c
VS
13510
13511fi
698dcdb6
VZ
13512
13513echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
10f2d63a 13514ac_ext=c
698dcdb6 13515# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 13516ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13517ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13518ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13519cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 13520
95c8801c 13521if test "$wx_cv_iconv_takes_char" = yes ; then
698dcdb6 13522 cat >> confdefs.h <<\EOF
95c8801c
VS
13523#define WX_ICONV_TAKES_CHAR 1
13524EOF
13525
13526fi
10f2d63a 13527
1e487827 13528
698dcdb6
VZ
13529if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
13530 for ac_func in sigaction
eb4efbdc 13531do
698dcdb6 13532echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7cf43d5e 13533echo "configure:13534: checking for $ac_func" >&5
698dcdb6
VZ
13534if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13535 echo $ac_n "(cached) $ac_c" 1>&6
13536else
13537 cat > conftest.$ac_ext <<EOF
7cf43d5e 13538#line 13539 "configure"
eb4efbdc
VZ
13539#include "confdefs.h"
13540/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13541 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
13542#include <assert.h>
13543/* Override any gcc2 internal prototype to avoid an error. */
13544/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13545 builtin and then its argument prototype would still apply. */
13546char $ac_func();
13547
13548int main() {
eb4efbdc
VZ
13549
13550/* The GNU C library defines this for functions which it implements
13551 to always fail with ENOSYS. Some functions are actually named
13552 something starting with __ and the normal name is an alias. */
13553#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13554choke me
13555#else
698dcdb6 13556$ac_func();
eb4efbdc
VZ
13557#endif
13558
698dcdb6 13559; return 0; }
eb4efbdc 13560EOF
7cf43d5e 13561if { (eval echo configure:13562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13562 rm -rf conftest*
13563 eval "ac_cv_func_$ac_func=yes"
13564else
13565 echo "configure: failed program was:" >&5
13566 cat conftest.$ac_ext >&5
13567 rm -rf conftest*
13568 eval "ac_cv_func_$ac_func=no"
13569fi
13570rm -f conftest*
13571fi
eb4efbdc 13572
698dcdb6
VZ
13573if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13574 echo "$ac_t""yes" 1>&6
13575 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13576 cat >> confdefs.h <<EOF
13577#define $ac_tr_func 1
13578EOF
13579
13580else
13581 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
13582fi
13583done
13584
698dcdb6 13585
eb4efbdc 13586 if test "$ac_cv_func_sigaction" = "no"; then
698dcdb6 13587 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
eb4efbdc
VZ
13588 wxUSE_ON_FATAL_EXCEPTION=no
13589 fi
f6bcfd97
BP
13590
13591 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6
VZ
13592
13593 ac_ext=C
13594# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 13595ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
13596ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13597ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13598cross_compiling=$ac_cv_prog_cxx_cross
6232543b 13599
1e487827 13600
698dcdb6 13601 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
7cf43d5e 13602echo "configure:13603: checking for sa_handler type" >&5
698dcdb6
VZ
13603if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
13604 echo $ac_n "(cached) $ac_c" 1>&6
13605else
13606
13607 cat > conftest.$ac_ext <<EOF
7cf43d5e 13608#line 13609 "configure"
f6bcfd97
BP
13609#include "confdefs.h"
13610#include <signal.h>
698dcdb6 13611int main() {
f6bcfd97
BP
13612
13613 extern void testSigHandler(int);
13614
13615 struct sigaction sa;
13616 sa.sa_handler = testSigHandler;
698dcdb6
VZ
13617
13618; return 0; }
13619EOF
7cf43d5e 13620if { (eval echo configure:13621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13621 rm -rf conftest*
13622
f6bcfd97 13623 wx_cv_type_sa_handler=int
698dcdb6 13624
f6bcfd97 13625else
698dcdb6
VZ
13626 echo "configure: failed program was:" >&5
13627 cat conftest.$ac_ext >&5
13628 rm -rf conftest*
13629
f6bcfd97 13630 wx_cv_type_sa_handler=void
698dcdb6 13631
6232543b 13632fi
698dcdb6
VZ
13633rm -f conftest*
13634
1e487827 13635fi
698dcdb6
VZ
13636
13637echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
f6bcfd97
BP
13638
13639 ac_ext=c
698dcdb6 13640# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
f6bcfd97 13641ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13642ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13643ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13644cross_compiling=$ac_cv_prog_cc_cross
13645
703e0a69 13646
698dcdb6 13647 cat >> confdefs.h <<EOF
f6bcfd97
BP
13648#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
13649EOF
13650
13651 fi
eb4efbdc
VZ
13652fi
13653
10f2d63a
VZ
13654for ac_func in vfork
13655do
698dcdb6 13656echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7cf43d5e 13657echo "configure:13658: checking for $ac_func" >&5
698dcdb6
VZ
13658if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13659 echo $ac_n "(cached) $ac_c" 1>&6
13660else
13661 cat > conftest.$ac_ext <<EOF
7cf43d5e 13662#line 13663 "configure"
10f2d63a
VZ
13663#include "confdefs.h"
13664/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13665 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13666#include <assert.h>
13667/* Override any gcc2 internal prototype to avoid an error. */
13668/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13669 builtin and then its argument prototype would still apply. */
13670char $ac_func();
13671
13672int main() {
10f2d63a
VZ
13673
13674/* The GNU C library defines this for functions which it implements
13675 to always fail with ENOSYS. Some functions are actually named
13676 something starting with __ and the normal name is an alias. */
13677#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13678choke me
13679#else
698dcdb6 13680$ac_func();
10f2d63a
VZ
13681#endif
13682
698dcdb6 13683; return 0; }
10f2d63a 13684EOF
7cf43d5e 13685if { (eval echo configure:13686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13686 rm -rf conftest*
13687 eval "ac_cv_func_$ac_func=yes"
13688else
13689 echo "configure: failed program was:" >&5
13690 cat conftest.$ac_ext >&5
13691 rm -rf conftest*
13692 eval "ac_cv_func_$ac_func=no"
13693fi
13694rm -f conftest*
13695fi
270a909e 13696
698dcdb6
VZ
13697if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13698 echo "$ac_t""yes" 1>&6
13699 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13700 cat >> confdefs.h <<EOF
13701#define $ac_tr_func 1
13702EOF
13703
13704else
13705 echo "$ac_t""no" 1>&6
270a909e
VZ
13706fi
13707done
13708
1e487827 13709
52e8b690 13710echo $ac_n "checking for statfs""... $ac_c" 1>&6
7cf43d5e 13711echo "configure:13712: checking for statfs" >&5
52e8b690
VZ
13712if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
13713 echo $ac_n "(cached) $ac_c" 1>&6
13714else
13715 cat > conftest.$ac_ext <<EOF
7cf43d5e 13716#line 13717 "configure"
52e8b690
VZ
13717#include "confdefs.h"
13718
d08b457b
GD
13719 #ifdef __DARWIN__
13720 #include <sys/param.h>
13721 #include <sys/mount.h>
13722 #else
13723 #include <sys/vfs.h>
13724 #endif
52e8b690
VZ
13725
13726int main() {
13727
13728 long l;
13729 struct statfs fs;
13730 statfs("/", &fs);
13731 l = fs.f_bsize;
13732 l += fs.f_blocks;
13733 l += fs.f_bavail;
13734
13735; return 0; }
13736EOF
7cf43d5e 13737if { (eval echo configure:13738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
52e8b690
VZ
13738 rm -rf conftest*
13739
13740 wx_cv_func_statfs=yes
13741
13742else
13743 echo "configure: failed program was:" >&5
13744 cat conftest.$ac_ext >&5
13745 rm -rf conftest*
13746
13747 wx_cv_func_statfs=no
13748
13749
13750fi
13751rm -f conftest*
13752
13753fi
13754
13755echo "$ac_t""$wx_cv_func_statfs" 1>&6
13756
13757if test "$wx_cv_func_statfs" = "yes"; then
13758 cat >> confdefs.h <<\EOF
13759#define HAVE_STATFS 1
13760EOF
13761
13762else
13763 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
13764fi
13765
698dcdb6
VZ
13766if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
13767 for ac_func in fcntl flock
4f3c5f06 13768do
698dcdb6 13769echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7cf43d5e 13770echo "configure:13771: checking for $ac_func" >&5
698dcdb6
VZ
13771if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13772 echo $ac_n "(cached) $ac_c" 1>&6
13773else
13774 cat > conftest.$ac_ext <<EOF
7cf43d5e 13775#line 13776 "configure"
4f3c5f06
VZ
13776#include "confdefs.h"
13777/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13778 which can conflict with char $ac_func(); below. */
4f3c5f06
VZ
13779#include <assert.h>
13780/* Override any gcc2 internal prototype to avoid an error. */
13781/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13782 builtin and then its argument prototype would still apply. */
13783char $ac_func();
13784
13785int main() {
4f3c5f06
VZ
13786
13787/* The GNU C library defines this for functions which it implements
13788 to always fail with ENOSYS. Some functions are actually named
13789 something starting with __ and the normal name is an alias. */
13790#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13791choke me
13792#else
698dcdb6 13793$ac_func();
4f3c5f06
VZ
13794#endif
13795
698dcdb6
VZ
13796; return 0; }
13797EOF
7cf43d5e 13798if { (eval echo configure:13799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13799 rm -rf conftest*
13800 eval "ac_cv_func_$ac_func=yes"
13801else
13802 echo "configure: failed program was:" >&5
13803 cat conftest.$ac_ext >&5
13804 rm -rf conftest*
13805 eval "ac_cv_func_$ac_func=no"
13806fi
13807rm -f conftest*
13808fi
13809
13810if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13811 echo "$ac_t""yes" 1>&6
13812 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13813 cat >> confdefs.h <<EOF
13814#define $ac_tr_func 1
4f3c5f06
VZ
13815EOF
13816 break
698dcdb6
VZ
13817else
13818 echo "$ac_t""no" 1>&6
4f3c5f06
VZ
13819fi
13820done
13821
698dcdb6 13822
4f3c5f06 13823 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
698dcdb6 13824 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f3c5f06
VZ
13825 wxUSE_SNGLINST_CHECKER=no
13826 fi
13827fi
13828
270a909e
VZ
13829for ac_func in timegm
13830do
698dcdb6 13831echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7cf43d5e 13832echo "configure:13833: checking for $ac_func" >&5
698dcdb6
VZ
13833if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13834 echo $ac_n "(cached) $ac_c" 1>&6
13835else
13836 cat > conftest.$ac_ext <<EOF
7cf43d5e 13837#line 13838 "configure"
270a909e
VZ
13838#include "confdefs.h"
13839/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13840 which can conflict with char $ac_func(); below. */
270a909e
VZ
13841#include <assert.h>
13842/* Override any gcc2 internal prototype to avoid an error. */
13843/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13844 builtin and then its argument prototype would still apply. */
13845char $ac_func();
13846
13847int main() {
270a909e
VZ
13848
13849/* The GNU C library defines this for functions which it implements
13850 to always fail with ENOSYS. Some functions are actually named
13851 something starting with __ and the normal name is an alias. */
13852#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13853choke me
13854#else
698dcdb6 13855$ac_func();
270a909e
VZ
13856#endif
13857
698dcdb6 13858; return 0; }
270a909e 13859EOF
7cf43d5e 13860if { (eval echo configure:13861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13861 rm -rf conftest*
13862 eval "ac_cv_func_$ac_func=yes"
13863else
13864 echo "configure: failed program was:" >&5
13865 cat conftest.$ac_ext >&5
13866 rm -rf conftest*
13867 eval "ac_cv_func_$ac_func=no"
13868fi
13869rm -f conftest*
13870fi
10f2d63a 13871
698dcdb6
VZ
13872if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13873 echo "$ac_t""yes" 1>&6
13874 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13875 cat >> confdefs.h <<EOF
13876#define $ac_tr_func 1
13877EOF
13878
13879else
13880 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13881fi
13882done
13883
698dcdb6 13884
8fd0d89b
VZ
13885for ac_func in putenv setenv
13886do
698dcdb6 13887echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7cf43d5e 13888echo "configure:13889: checking for $ac_func" >&5
698dcdb6
VZ
13889if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13890 echo $ac_n "(cached) $ac_c" 1>&6
13891else
13892 cat > conftest.$ac_ext <<EOF
7cf43d5e 13893#line 13894 "configure"
8fd0d89b
VZ
13894#include "confdefs.h"
13895/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13896 which can conflict with char $ac_func(); below. */
8fd0d89b
VZ
13897#include <assert.h>
13898/* Override any gcc2 internal prototype to avoid an error. */
13899/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13900 builtin and then its argument prototype would still apply. */
13901char $ac_func();
13902
13903int main() {
8fd0d89b
VZ
13904
13905/* The GNU C library defines this for functions which it implements
13906 to always fail with ENOSYS. Some functions are actually named
13907 something starting with __ and the normal name is an alias. */
13908#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13909choke me
13910#else
698dcdb6 13911$ac_func();
8fd0d89b
VZ
13912#endif
13913
698dcdb6
VZ
13914; return 0; }
13915EOF
7cf43d5e 13916if { (eval echo configure:13917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13917 rm -rf conftest*
13918 eval "ac_cv_func_$ac_func=yes"
13919else
13920 echo "configure: failed program was:" >&5
13921 cat conftest.$ac_ext >&5
13922 rm -rf conftest*
13923 eval "ac_cv_func_$ac_func=no"
13924fi
13925rm -f conftest*
13926fi
13927
13928if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13929 echo "$ac_t""yes" 1>&6
13930 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13931 cat >> confdefs.h <<EOF
13932#define $ac_tr_func 1
8fd0d89b
VZ
13933EOF
13934 break
698dcdb6
VZ
13935else
13936 echo "$ac_t""no" 1>&6
8fd0d89b
VZ
13937fi
13938done
13939
698dcdb6 13940
b12915c1
VZ
13941HAVE_SOME_SLEEP_FUNC=0
13942if test "$USE_BEOS" = 1; then
698dcdb6 13943 cat >> confdefs.h <<\EOF
b12915c1
VZ
13944#define HAVE_SLEEP 1
13945EOF
13946
13947 HAVE_SOME_SLEEP_FUNC=1
13948fi
13949
f11bdd03 13950if test "$USE_DARWIN" = 1; then
698dcdb6 13951 cat >> confdefs.h <<\EOF
b4085ce6
GD
13952#define HAVE_USLEEP 1
13953EOF
13954
13955 HAVE_SOME_SLEEP_FUNC=1
13956fi
13957
b12915c1
VZ
13958if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
13959 POSIX4_LINK=
698dcdb6 13960 for ac_func in nanosleep
10f2d63a 13961do
698dcdb6 13962echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7cf43d5e 13963echo "configure:13964: checking for $ac_func" >&5
698dcdb6
VZ
13964if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13965 echo $ac_n "(cached) $ac_c" 1>&6
13966else
13967 cat > conftest.$ac_ext <<EOF
7cf43d5e 13968#line 13969 "configure"
10f2d63a
VZ
13969#include "confdefs.h"
13970/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13971 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
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
698dcdb6
VZ
13975 builtin and then its argument prototype would still apply. */
13976char $ac_func();
13977
13978int main() {
10f2d63a
VZ
13979
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_$ac_func) || defined (__stub___$ac_func)
13984choke me
13985#else
698dcdb6 13986$ac_func();
10f2d63a
VZ
13987#endif
13988
698dcdb6
VZ
13989; return 0; }
13990EOF
7cf43d5e 13991if { (eval echo configure:13992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13992 rm -rf conftest*
13993 eval "ac_cv_func_$ac_func=yes"
13994else
13995 echo "configure: failed program was:" >&5
13996 cat conftest.$ac_ext >&5
13997 rm -rf conftest*
13998 eval "ac_cv_func_$ac_func=no"
13999fi
14000rm -f conftest*
14001fi
14002
14003if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14004 echo "$ac_t""yes" 1>&6
14005 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14006 cat >> confdefs.h <<EOF
14007#define $ac_tr_func 1
14008EOF
14009 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14010#define HAVE_NANOSLEEP 1
14011EOF
14012
14013else
698dcdb6
VZ
14014 echo "$ac_t""no" 1>&6
14015echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
7cf43d5e 14016echo "configure:14017: checking for nanosleep in -lposix4" >&5
698dcdb6
VZ
14017ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
14018if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14019 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14020else
698dcdb6 14021 ac_save_LIBS="$LIBS"
10f2d63a 14022LIBS="-lposix4 $LIBS"
698dcdb6 14023cat > conftest.$ac_ext <<EOF
7cf43d5e 14024#line 14025 "configure"
10f2d63a
VZ
14025#include "confdefs.h"
14026/* Override any gcc2 internal prototype to avoid an error. */
14027/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14028 builtin and then its argument prototype would still apply. */
14029char nanosleep();
14030
14031int main() {
14032nanosleep()
14033; return 0; }
14034EOF
7cf43d5e 14035if { (eval echo configure:14036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14036 rm -rf conftest*
14037 eval "ac_cv_lib_$ac_lib_var=yes"
14038else
14039 echo "configure: failed program was:" >&5
14040 cat conftest.$ac_ext >&5
14041 rm -rf conftest*
14042 eval "ac_cv_lib_$ac_lib_var=no"
14043fi
14044rm -f conftest*
14045LIBS="$ac_save_LIBS"
14046
14047fi
14048if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14049 echo "$ac_t""yes" 1>&6
14050
14051 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14052#define HAVE_NANOSLEEP 1
14053EOF
14054
b12915c1 14055 POSIX4_LINK="-lposix4"
698dcdb6 14056
10f2d63a 14057else
698dcdb6 14058 echo "$ac_t""no" 1>&6
10f2d63a 14059
698dcdb6 14060 for ac_func in usleep
10f2d63a 14061do
698dcdb6 14062echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7cf43d5e 14063echo "configure:14064: checking for $ac_func" >&5
698dcdb6
VZ
14064if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14065 echo $ac_n "(cached) $ac_c" 1>&6
14066else
14067 cat > conftest.$ac_ext <<EOF
7cf43d5e 14068#line 14069 "configure"
10f2d63a
VZ
14069#include "confdefs.h"
14070/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14071 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
14072#include <assert.h>
14073/* Override any gcc2 internal prototype to avoid an error. */
14074/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14075 builtin and then its argument prototype would still apply. */
14076char $ac_func();
14077
14078int main() {
10f2d63a
VZ
14079
14080/* The GNU C library defines this for functions which it implements
14081 to always fail with ENOSYS. Some functions are actually named
14082 something starting with __ and the normal name is an alias. */
14083#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14084choke me
14085#else
698dcdb6 14086$ac_func();
10f2d63a
VZ
14087#endif
14088
698dcdb6
VZ
14089; return 0; }
14090EOF
7cf43d5e 14091if { (eval echo configure:14092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14092 rm -rf conftest*
14093 eval "ac_cv_func_$ac_func=yes"
14094else
14095 echo "configure: failed program was:" >&5
14096 cat conftest.$ac_ext >&5
14097 rm -rf conftest*
14098 eval "ac_cv_func_$ac_func=no"
14099fi
14100rm -f conftest*
14101fi
14102
14103if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14104 echo "$ac_t""yes" 1>&6
14105 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14106 cat >> confdefs.h <<EOF
14107#define $ac_tr_func 1
14108EOF
14109 cat >> confdefs.h <<\EOF
b4085ce6
GD
14110#define HAVE_USLEEP 1
14111EOF
14112
10f2d63a 14113else
698dcdb6
VZ
14114 echo "$ac_t""no" 1>&6
14115echo "configure: warning: wxSleep() function will not work" 1>&2
14116
10f2d63a
VZ
14117fi
14118done
14119
698dcdb6
VZ
14120
14121
10f2d63a
VZ
14122fi
14123
698dcdb6
VZ
14124
14125
10f2d63a
VZ
14126fi
14127done
14128
b12915c1 14129fi
10f2d63a
VZ
14130
14131for ac_func in uname gethostname
14132do
698dcdb6 14133echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7cf43d5e 14134echo "configure:14135: checking for $ac_func" >&5
698dcdb6
VZ
14135if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14136 echo $ac_n "(cached) $ac_c" 1>&6
14137else
14138 cat > conftest.$ac_ext <<EOF
7cf43d5e 14139#line 14140 "configure"
10f2d63a
VZ
14140#include "confdefs.h"
14141/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14142 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
14143#include <assert.h>
14144/* Override any gcc2 internal prototype to avoid an error. */
14145/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14146 builtin and then its argument prototype would still apply. */
14147char $ac_func();
14148
14149int main() {
10f2d63a
VZ
14150
14151/* The GNU C library defines this for functions which it implements
14152 to always fail with ENOSYS. Some functions are actually named
14153 something starting with __ and the normal name is an alias. */
14154#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14155choke me
14156#else
698dcdb6 14157$ac_func();
10f2d63a
VZ
14158#endif
14159
698dcdb6
VZ
14160; return 0; }
14161EOF
7cf43d5e 14162if { (eval echo configure:14163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14163 rm -rf conftest*
14164 eval "ac_cv_func_$ac_func=yes"
14165else
14166 echo "configure: failed program was:" >&5
14167 cat conftest.$ac_ext >&5
14168 rm -rf conftest*
14169 eval "ac_cv_func_$ac_func=no"
14170fi
14171rm -f conftest*
14172fi
14173
14174if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14175 echo "$ac_t""yes" 1>&6
14176 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14177 cat >> confdefs.h <<EOF
14178#define $ac_tr_func 1
10f2d63a
VZ
14179EOF
14180 break
698dcdb6
VZ
14181else
14182 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14183fi
14184done
14185
698dcdb6
VZ
14186
14187
14188ac_ext=C
14189# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 14190ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
14191ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14192ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14193cross_compiling=$ac_cv_prog_cxx_cross
14194
6098c7f9 14195
10f2d63a
VZ
14196for ac_func in strtok_r
14197do
698dcdb6 14198echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7cf43d5e 14199echo "configure:14200: checking for $ac_func" >&5
698dcdb6
VZ
14200if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14201 echo $ac_n "(cached) $ac_c" 1>&6
14202else
14203 cat > conftest.$ac_ext <<EOF
7cf43d5e 14204#line 14205 "configure"
10f2d63a
VZ
14205#include "confdefs.h"
14206/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14207 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
14208#include <assert.h>
14209/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
14210#ifdef __cplusplus
14211extern "C"
14212#endif
10f2d63a 14213/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14214 builtin and then its argument prototype would still apply. */
14215char $ac_func();
14216
14217int main() {
10f2d63a
VZ
14218
14219/* The GNU C library defines this for functions which it implements
14220 to always fail with ENOSYS. Some functions are actually named
14221 something starting with __ and the normal name is an alias. */
14222#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14223choke me
14224#else
698dcdb6 14225$ac_func();
10f2d63a
VZ
14226#endif
14227
698dcdb6 14228; return 0; }
10f2d63a 14229EOF
7cf43d5e 14230if { (eval echo configure:14231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14231 rm -rf conftest*
14232 eval "ac_cv_func_$ac_func=yes"
14233else
14234 echo "configure: failed program was:" >&5
14235 cat conftest.$ac_ext >&5
14236 rm -rf conftest*
14237 eval "ac_cv_func_$ac_func=no"
14238fi
14239rm -f conftest*
14240fi
10f2d63a 14241
698dcdb6
VZ
14242if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14243 echo "$ac_t""yes" 1>&6
14244 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14245 cat >> confdefs.h <<EOF
14246#define $ac_tr_func 1
14247EOF
14248
14249else
14250 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14251fi
14252done
14253
698dcdb6 14254
6098c7f9 14255ac_ext=c
698dcdb6 14256# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 14257ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
14258ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14259ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14260cross_compiling=$ac_cv_prog_cc_cross
6232543b 14261
1e487827 14262
698dcdb6 14263INET_LINK=
10f2d63a
VZ
14264for ac_func in inet_addr
14265do
698dcdb6 14266echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7cf43d5e 14267echo "configure:14268: checking for $ac_func" >&5
698dcdb6
VZ
14268if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14269 echo $ac_n "(cached) $ac_c" 1>&6
14270else
14271 cat > conftest.$ac_ext <<EOF
7cf43d5e 14272#line 14273 "configure"
10f2d63a
VZ
14273#include "confdefs.h"
14274/* System header to define __stub macros and hopefully few prototypes,
698dcdb6
VZ
14275 which can conflict with char $ac_func(); below. */
14276#include <assert.h>
14277/* Override any gcc2 internal prototype to avoid an error. */
10f2d63a 14278/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14279 builtin and then its argument prototype would still apply. */
14280char $ac_func();
14281
14282int main() {
10f2d63a
VZ
14283
14284/* The GNU C library defines this for functions which it implements
14285 to always fail with ENOSYS. Some functions are actually named
1e487827
VS
14286 something starting with __ and the normal name is an alias. */
14287#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14288choke me
14289#else
698dcdb6 14290$ac_func();
1e487827 14291#endif
703e0a69 14292
698dcdb6
VZ
14293; return 0; }
14294EOF
7cf43d5e 14295if { (eval echo configure:14296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14296 rm -rf conftest*
14297 eval "ac_cv_func_$ac_func=yes"
14298else
14299 echo "configure: failed program was:" >&5
14300 cat conftest.$ac_ext >&5
14301 rm -rf conftest*
14302 eval "ac_cv_func_$ac_func=no"
14303fi
14304rm -f conftest*
14305fi
14306
14307if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14308 echo "$ac_t""yes" 1>&6
14309 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14310 cat >> confdefs.h <<EOF
14311#define $ac_tr_func 1
14312EOF
14313 cat >> confdefs.h <<\EOF
c63c7106
VZ
14314#define HAVE_INET_ADDR 1
14315EOF
14316
10f2d63a 14317else
698dcdb6
VZ
14318 echo "$ac_t""no" 1>&6
14319echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
7cf43d5e 14320echo "configure:14321: checking for inet_addr in -lnsl" >&5
698dcdb6
VZ
14321ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
14322if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14323 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 14324else
698dcdb6 14325 ac_save_LIBS="$LIBS"
c63c7106 14326LIBS="-lnsl $LIBS"
698dcdb6 14327cat > conftest.$ac_ext <<EOF
7cf43d5e 14328#line 14329 "configure"
c63c7106
VZ
14329#include "confdefs.h"
14330/* Override any gcc2 internal prototype to avoid an error. */
14331/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14332 builtin and then its argument prototype would still apply. */
14333char inet_addr();
14334
14335int main() {
14336inet_addr()
14337; return 0; }
14338EOF
7cf43d5e 14339if { (eval echo configure:14340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14340 rm -rf conftest*
14341 eval "ac_cv_lib_$ac_lib_var=yes"
14342else
14343 echo "configure: failed program was:" >&5
14344 cat conftest.$ac_ext >&5
14345 rm -rf conftest*
14346 eval "ac_cv_lib_$ac_lib_var=no"
14347fi
14348rm -f conftest*
14349LIBS="$ac_save_LIBS"
14350
14351fi
14352if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14353 echo "$ac_t""yes" 1>&6
c63c7106
VZ
14354 INET_LINK="nsl"
14355else
698dcdb6
VZ
14356 echo "$ac_t""no" 1>&6
14357echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
7cf43d5e 14358echo "configure:14359: checking for inet_addr in -lresolv" >&5
698dcdb6
VZ
14359ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
14360if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14361 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 14362else
698dcdb6 14363 ac_save_LIBS="$LIBS"
c63c7106 14364LIBS="-lresolv $LIBS"
698dcdb6 14365cat > conftest.$ac_ext <<EOF
7cf43d5e 14366#line 14367 "configure"
c63c7106
VZ
14367#include "confdefs.h"
14368/* Override any gcc2 internal prototype to avoid an error. */
14369/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14370 builtin and then its argument prototype would still apply. */
14371char inet_addr();
14372
14373int main() {
14374inet_addr()
14375; return 0; }
14376EOF
7cf43d5e 14377if { (eval echo configure:14378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14378 rm -rf conftest*
14379 eval "ac_cv_lib_$ac_lib_var=yes"
14380else
14381 echo "configure: failed program was:" >&5
14382 cat conftest.$ac_ext >&5
14383 rm -rf conftest*
14384 eval "ac_cv_lib_$ac_lib_var=no"
14385fi
14386rm -f conftest*
14387LIBS="$ac_save_LIBS"
c63c7106 14388
6232543b 14389fi
698dcdb6
VZ
14390if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14391 echo "$ac_t""yes" 1>&6
14392 INET_LINK="resolv"
14393
14394else
14395 echo "$ac_t""no" 1>&6
14396fi
c63c7106 14397
698dcdb6 14398
1e487827 14399fi
703e0a69 14400
698dcdb6
VZ
14401
14402
10f2d63a
VZ
14403fi
14404done
14405
698dcdb6 14406
10f2d63a
VZ
14407for ac_func in inet_aton
14408do
698dcdb6 14409echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7cf43d5e 14410echo "configure:14411: checking for $ac_func" >&5
698dcdb6
VZ
14411if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14412 echo $ac_n "(cached) $ac_c" 1>&6
14413else
14414 cat > conftest.$ac_ext <<EOF
7cf43d5e 14415#line 14416 "configure"
10f2d63a
VZ
14416#include "confdefs.h"
14417/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14418 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
14419#include <assert.h>
14420/* Override any gcc2 internal prototype to avoid an error. */
14421/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14422 builtin and then its argument prototype would still apply. */
14423char $ac_func();
14424
14425int main() {
10f2d63a
VZ
14426
14427/* The GNU C library defines this for functions which it implements
14428 to always fail with ENOSYS. Some functions are actually named
14429 something starting with __ and the normal name is an alias. */
14430#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14431choke me
14432#else
698dcdb6 14433$ac_func();
10f2d63a
VZ
14434#endif
14435
698dcdb6
VZ
14436; return 0; }
14437EOF
7cf43d5e 14438if { (eval echo configure:14439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14439 rm -rf conftest*
14440 eval "ac_cv_func_$ac_func=yes"
14441else
14442 echo "configure: failed program was:" >&5
14443 cat conftest.$ac_ext >&5
14444 rm -rf conftest*
14445 eval "ac_cv_func_$ac_func=no"
14446fi
14447rm -f conftest*
14448fi
14449
14450if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14451 echo "$ac_t""yes" 1>&6
14452 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14453 cat >> confdefs.h <<EOF
14454#define $ac_tr_func 1
14455EOF
14456 cat >> confdefs.h <<\EOF
c63c7106
VZ
14457#define HAVE_INET_ATON 1
14458EOF
14459
10f2d63a 14460else
698dcdb6
VZ
14461 echo "$ac_t""no" 1>&6
14462 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
7cf43d5e 14463echo "configure:14464: checking for inet_aton in -l$INET_LINK" >&5
698dcdb6
VZ
14464ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
14465if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14466 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14467else
698dcdb6 14468 ac_save_LIBS="$LIBS"
c63c7106 14469LIBS="-l$INET_LINK $LIBS"
698dcdb6 14470cat > conftest.$ac_ext <<EOF
7cf43d5e 14471#line 14472 "configure"
10f2d63a
VZ
14472#include "confdefs.h"
14473/* Override any gcc2 internal prototype to avoid an error. */
14474/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14475 builtin and then its argument prototype would still apply. */
14476char inet_aton();
14477
14478int main() {
14479inet_aton()
14480; return 0; }
14481EOF
7cf43d5e 14482if { (eval echo configure:14483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14483 rm -rf conftest*
14484 eval "ac_cv_lib_$ac_lib_var=yes"
14485else
14486 echo "configure: failed program was:" >&5
14487 cat conftest.$ac_ext >&5
14488 rm -rf conftest*
14489 eval "ac_cv_lib_$ac_lib_var=no"
14490fi
14491rm -f conftest*
14492LIBS="$ac_save_LIBS"
14493
14494fi
14495if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14496 echo "$ac_t""yes" 1>&6
14497 cat >> confdefs.h <<\EOF
c63c7106 14498#define HAVE_INET_ATON 1
10f2d63a
VZ
14499EOF
14500
698dcdb6
VZ
14501else
14502 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14503fi
14504
698dcdb6 14505
c63c7106
VZ
14506fi
14507done
14508
698dcdb6 14509
c63c7106 14510if test "x$INET_LINK" != "x"; then
698dcdb6 14511 cat >> confdefs.h <<\EOF
c63c7106
VZ
14512#define HAVE_INET_ADDR 1
14513EOF
14514
14515 INET_LINK="-l$INET_LINK"
14516fi
10f2d63a
VZ
14517
14518fi
14519
698dcdb6
VZ
14520
14521cat > confcache <<\EOF
10f2d63a
VZ
14522# This file is a shell script that caches the results of configure
14523# tests run on this system so they can be shared between configure
698dcdb6
VZ
14524# scripts and configure runs. It is not useful on other systems.
14525# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 14526#
698dcdb6
VZ
14527# By default, configure uses ./config.cache as the cache file,
14528# creating it if it does not exist already. You can give configure
14529# the --cache-file=FILE option to use a different cache file; that is
14530# what configure does when it calls configure scripts in
14531# subdirectories, so they share the cache.
14532# Giving --cache-file=/dev/null disables caching, for debugging configure.
14533# config.status only pays attention to the cache file if you give it the
14534# --recheck option to rerun configure.
10f2d63a 14535#
698dcdb6 14536EOF
10f2d63a
VZ
14537# The following way of writing the cache mishandles newlines in values,
14538# but we know of no workaround that is simple, portable, and efficient.
14539# So, don't put newlines in cache variables' values.
14540# Ultrix sh set writes to stderr and can't be redirected directly,
14541# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
14542(set) 2>&1 |
14543 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14544 *ac_space=\ *)
14545 # `set' does not quote correctly, so add quotes (double-quote substitution
14546 # turns \\\\ into \\, and sed turns \\ into \).
14547 sed -n \
14548 -e "s/'/'\\\\''/g" \
14549 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14550 ;;
14551 *)
14552 # `set' quotes correctly as required by POSIX, so do not add quotes.
14553 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14554 ;;
14555 esac >> confcache
14556if cmp -s $cache_file confcache; then
14557 :
14558else
10f2d63a 14559 if test -w $cache_file; then
698dcdb6
VZ
14560 echo "updating cache $cache_file"
14561 cat confcache > $cache_file
10f2d63a
VZ
14562 else
14563 echo "not updating unwritable cache $cache_file"
14564 fi
14565fi
14566rm -f confcache
14567
698dcdb6
VZ
14568
14569
b089607b 14570if test "$TOOLKIT" != "MSW"; then
10f2d63a 14571
698dcdb6 14572
3a922bb4
RL
14573THREADS_LINK=
14574THREADS_OBJ=
14575CODE_GEN_FLAGS=
14576CODE_GEN_FLAGS_CXX=
10f2d63a
VZ
14577
14578if test "$wxUSE_THREADS" = "yes" ; then
14579 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 14580 echo "configure: warning: Threads are not supported under WINE" 1>&2
10f2d63a 14581 wxUSE_THREADS="no"
b12915c1 14582 elif test "$USE_BEOS" = 1; then
698dcdb6 14583 echo "configure: warning: BeOS threads are not yet supported" 1>&2
b12915c1 14584 wxUSE_THREADS="no"
10f2d63a
VZ
14585 fi
14586fi
14587
14588if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 14589
186837b0 14590 if test "$USE_AIX" = 1; then
f6bcfd97
BP
14591 THREADS_LIB=pthreads
14592 else
14593 THREADS_LIB=pthread
14594 fi
14595
698dcdb6 14596 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
7cf43d5e 14597echo "configure:14598: checking for pthread_create in -l$THREADS_LIB" >&5
698dcdb6
VZ
14598ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
14599if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14600 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14601else
698dcdb6 14602 ac_save_LIBS="$LIBS"
f6bcfd97 14603LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 14604cat > conftest.$ac_ext <<EOF
7cf43d5e 14605#line 14606 "configure"
10f2d63a
VZ
14606#include "confdefs.h"
14607/* Override any gcc2 internal prototype to avoid an error. */
14608/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14609 builtin and then its argument prototype would still apply. */
14610char pthread_create();
14611
14612int main() {
14613pthread_create()
14614; return 0; }
14615EOF
7cf43d5e 14616if { (eval echo configure:14617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14617 rm -rf conftest*
14618 eval "ac_cv_lib_$ac_lib_var=yes"
14619else
14620 echo "configure: failed program was:" >&5
14621 cat conftest.$ac_ext >&5
14622 rm -rf conftest*
14623 eval "ac_cv_lib_$ac_lib_var=no"
14624fi
14625rm -f conftest*
14626LIBS="$ac_save_LIBS"
10f2d63a 14627
698dcdb6
VZ
14628fi
14629if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14630 echo "$ac_t""yes" 1>&6
14631
10f2d63a 14632 THREADS_OBJ="threadpsx.lo"
f6bcfd97 14633 THREADS_LINK=$THREADS_LIB
698dcdb6 14634
10f2d63a 14635else
698dcdb6 14636 echo "$ac_t""no" 1>&6
10f2d63a 14637
698dcdb6 14638 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
7cf43d5e 14639echo "configure:14640: checking for pthread_create in -lc_r" >&5
698dcdb6
VZ
14640ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
14641if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14642 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14643else
698dcdb6 14644 ac_save_LIBS="$LIBS"
10f2d63a 14645LIBS="-lc_r $LIBS"
698dcdb6 14646cat > conftest.$ac_ext <<EOF
7cf43d5e 14647#line 14648 "configure"
10f2d63a
VZ
14648#include "confdefs.h"
14649/* Override any gcc2 internal prototype to avoid an error. */
14650/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14651 builtin and then its argument prototype would still apply. */
14652char pthread_create();
14653
14654int main() {
14655pthread_create()
14656; return 0; }
14657EOF
7cf43d5e 14658if { (eval echo configure:14659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14659 rm -rf conftest*
14660 eval "ac_cv_lib_$ac_lib_var=yes"
14661else
14662 echo "configure: failed program was:" >&5
14663 cat conftest.$ac_ext >&5
14664 rm -rf conftest*
14665 eval "ac_cv_lib_$ac_lib_var=no"
14666fi
14667rm -f conftest*
14668LIBS="$ac_save_LIBS"
10f2d63a 14669
698dcdb6
VZ
14670fi
14671if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14672 echo "$ac_t""yes" 1>&6
14673
10f2d63a
VZ
14674 THREADS_OBJ="threadpsx.lo"
14675 THREADS_LINK="c_r"
698dcdb6 14676
10f2d63a 14677else
698dcdb6 14678 echo "$ac_t""no" 1>&6
10f2d63a 14679
698dcdb6
VZ
14680 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
14681echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
7cf43d5e 14682echo "configure:14683: checking for sys/prctl.h" >&5
698dcdb6
VZ
14683if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14684 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14685else
698dcdb6 14686 cat > conftest.$ac_ext <<EOF
7cf43d5e 14687#line 14688 "configure"
10f2d63a
VZ
14688#include "confdefs.h"
14689#include <sys/prctl.h>
698dcdb6
VZ
14690EOF
14691ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7cf43d5e 14692{ (eval echo configure:14693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14693ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14694if test -z "$ac_err"; then
14695 rm -rf conftest*
14696 eval "ac_cv_header_$ac_safe=yes"
1e487827 14697else
698dcdb6
VZ
14698 echo "$ac_err" >&5
14699 echo "configure: failed program was:" >&5
10f2d63a 14700 cat conftest.$ac_ext >&5
698dcdb6
VZ
14701 rm -rf conftest*
14702 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14703fi
698dcdb6 14704rm -f conftest*
10f2d63a 14705fi
698dcdb6
VZ
14706if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14707 echo "$ac_t""yes" 1>&6
14708
1f8ae82f 14709 THREADS_OBJ="threadsgi.lo"
698dcdb6
VZ
14710
14711else
14712 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14713fi
14714
698dcdb6 14715
6232543b 14716fi
10f2d63a 14717
698dcdb6 14718
1e487827 14719fi
703e0a69 14720
698dcdb6 14721
10f2d63a
VZ
14722 if test -z "$THREADS_OBJ" ; then
14723 wxUSE_THREADS=no
698dcdb6 14724 echo "configure: warning: No thread support on this system" 1>&2
10f2d63a
VZ
14725 fi
14726fi
14727
14728if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 14729 for ac_func in thr_setconcurrency
70846f0a 14730do
698dcdb6 14731echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7cf43d5e 14732echo "configure:14733: checking for $ac_func" >&5
698dcdb6
VZ
14733if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14734 echo $ac_n "(cached) $ac_c" 1>&6
14735else
14736 cat > conftest.$ac_ext <<EOF
7cf43d5e 14737#line 14738 "configure"
70846f0a
VZ
14738#include "confdefs.h"
14739/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14740 which can conflict with char $ac_func(); below. */
70846f0a
VZ
14741#include <assert.h>
14742/* Override any gcc2 internal prototype to avoid an error. */
14743/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14744 builtin and then its argument prototype would still apply. */
14745char $ac_func();
14746
14747int main() {
70846f0a
VZ
14748
14749/* The GNU C library defines this for functions which it implements
14750 to always fail with ENOSYS. Some functions are actually named
14751 something starting with __ and the normal name is an alias. */
14752#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14753choke me
14754#else
698dcdb6 14755$ac_func();
70846f0a
VZ
14756#endif
14757
698dcdb6 14758; return 0; }
70846f0a 14759EOF
7cf43d5e 14760if { (eval echo configure:14761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14761 rm -rf conftest*
14762 eval "ac_cv_func_$ac_func=yes"
14763else
14764 echo "configure: failed program was:" >&5
14765 cat conftest.$ac_ext >&5
14766 rm -rf conftest*
14767 eval "ac_cv_func_$ac_func=no"
14768fi
14769rm -f conftest*
14770fi
70846f0a 14771
698dcdb6
VZ
14772if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14773 echo "$ac_t""yes" 1>&6
14774 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14775 cat >> confdefs.h <<EOF
14776#define $ac_tr_func 1
14777EOF
14778
14779else
14780 echo "$ac_t""no" 1>&6
70846f0a
VZ
14781fi
14782done
14783
698dcdb6
VZ
14784
14785
14786 for ac_hdr in sched.h
10f2d63a 14787do
698dcdb6
VZ
14788ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14789echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7cf43d5e 14790echo "configure:14791: checking for $ac_hdr" >&5
698dcdb6
VZ
14791if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14792 echo $ac_n "(cached) $ac_c" 1>&6
14793else
14794 cat > conftest.$ac_ext <<EOF
7cf43d5e 14795#line 14796 "configure"
10f2d63a 14796#include "confdefs.h"
698dcdb6
VZ
14797#include <$ac_hdr>
14798EOF
14799ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7cf43d5e 14800{ (eval echo configure:14801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14801ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14802if test -z "$ac_err"; then
14803 rm -rf conftest*
14804 eval "ac_cv_header_$ac_safe=yes"
1e487827 14805else
698dcdb6
VZ
14806 echo "$ac_err" >&5
14807 echo "configure: failed program was:" >&5
10f2d63a 14808 cat conftest.$ac_ext >&5
698dcdb6
VZ
14809 rm -rf conftest*
14810 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14811fi
698dcdb6 14812rm -f conftest*
10f2d63a 14813fi
698dcdb6
VZ
14814if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14815 echo "$ac_t""yes" 1>&6
14816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14817 cat >> confdefs.h <<EOF
14818#define $ac_tr_hdr 1
10f2d63a 14819EOF
698dcdb6
VZ
14820
14821else
14822 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14823fi
14824done
14825
698dcdb6
VZ
14826
14827 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
7cf43d5e 14828echo "configure:14829: checking for sched_yield in -l$THREADS_LINK" >&5
698dcdb6
VZ
14829ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
14830if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14831 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14832else
698dcdb6 14833 ac_save_LIBS="$LIBS"
10f2d63a 14834LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14835cat > conftest.$ac_ext <<EOF
7cf43d5e 14836#line 14837 "configure"
10f2d63a
VZ
14837#include "confdefs.h"
14838/* Override any gcc2 internal prototype to avoid an error. */
14839/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14840 builtin and then its argument prototype would still apply. */
14841char sched_yield();
14842
14843int main() {
14844sched_yield()
14845; return 0; }
14846EOF
7cf43d5e 14847if { (eval echo configure:14848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14848 rm -rf conftest*
14849 eval "ac_cv_lib_$ac_lib_var=yes"
14850else
14851 echo "configure: failed program was:" >&5
14852 cat conftest.$ac_ext >&5
14853 rm -rf conftest*
14854 eval "ac_cv_lib_$ac_lib_var=no"
14855fi
14856rm -f conftest*
14857LIBS="$ac_save_LIBS"
14858
14859fi
14860if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14861 echo "$ac_t""yes" 1>&6
14862 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14863#define HAVE_SCHED_YIELD 1
14864EOF
14865
14866else
698dcdb6
VZ
14867 echo "$ac_t""no" 1>&6
14868echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
7cf43d5e 14869echo "configure:14870: checking for sched_yield in -lposix4" >&5
698dcdb6
VZ
14870ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
14871if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14872 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14873else
698dcdb6 14874 ac_save_LIBS="$LIBS"
1e487827 14875LIBS="-lposix4 $LIBS"
698dcdb6 14876cat > conftest.$ac_ext <<EOF
7cf43d5e 14877#line 14878 "configure"
10f2d63a
VZ
14878#include "confdefs.h"
14879/* Override any gcc2 internal prototype to avoid an error. */
14880/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14881 builtin and then its argument prototype would still apply. */
14882char sched_yield();
14883
14884int main() {
14885sched_yield()
14886; return 0; }
14887EOF
7cf43d5e 14888if { (eval echo configure:14889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14889 rm -rf conftest*
14890 eval "ac_cv_lib_$ac_lib_var=yes"
14891else
14892 echo "configure: failed program was:" >&5
14893 cat conftest.$ac_ext >&5
14894 rm -rf conftest*
14895 eval "ac_cv_lib_$ac_lib_var=no"
14896fi
14897rm -f conftest*
14898LIBS="$ac_save_LIBS"
14899
14900fi
14901if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14902 echo "$ac_t""yes" 1>&6
14903 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14904#define HAVE_SCHED_YIELD 1
14905EOF
14906 POSIX4_LINK="-lposix4"
14907else
698dcdb6
VZ
14908 echo "$ac_t""no" 1>&6
14909echo "configure: warning: wxThread::Yield will not work properly" 1>&2
14910
6232543b 14911fi
10f2d63a 14912
698dcdb6 14913
1e487827 14914fi
703e0a69 14915
698dcdb6 14916
f6bcfd97 14917 HAVE_PRIOR_FUNCS=0
698dcdb6 14918 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
7cf43d5e 14919echo "configure:14920: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
698dcdb6
VZ
14920ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
14921if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14922 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14923else
698dcdb6 14924 ac_save_LIBS="$LIBS"
10f2d63a 14925LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14926cat > conftest.$ac_ext <<EOF
7cf43d5e 14927#line 14928 "configure"
10f2d63a
VZ
14928#include "confdefs.h"
14929/* Override any gcc2 internal prototype to avoid an error. */
14930/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14931 builtin and then its argument prototype would still apply. */
14932char pthread_attr_getschedpolicy();
14933
14934int main() {
14935pthread_attr_getschedpolicy()
14936; return 0; }
14937EOF
7cf43d5e 14938if { (eval echo configure:14939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14939 rm -rf conftest*
14940 eval "ac_cv_lib_$ac_lib_var=yes"
14941else
14942 echo "configure: failed program was:" >&5
14943 cat conftest.$ac_ext >&5
14944 rm -rf conftest*
14945 eval "ac_cv_lib_$ac_lib_var=no"
14946fi
14947rm -f conftest*
14948LIBS="$ac_save_LIBS"
14949
14950fi
14951if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14952 echo "$ac_t""yes" 1>&6
14953 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
7cf43d5e 14954echo "configure:14955: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
698dcdb6
VZ
14955ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
14956if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14957 echo $ac_n "(cached) $ac_c" 1>&6
14958else
14959 ac_save_LIBS="$LIBS"
f6bcfd97 14960LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14961cat > conftest.$ac_ext <<EOF
7cf43d5e 14962#line 14963 "configure"
f6bcfd97
BP
14963#include "confdefs.h"
14964/* Override any gcc2 internal prototype to avoid an error. */
14965/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14966 builtin and then its argument prototype would still apply. */
14967char pthread_attr_setschedparam();
14968
14969int main() {
14970pthread_attr_setschedparam()
14971; return 0; }
14972EOF
7cf43d5e 14973if { (eval echo configure:14974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14974 rm -rf conftest*
14975 eval "ac_cv_lib_$ac_lib_var=yes"
14976else
14977 echo "configure: failed program was:" >&5
14978 cat conftest.$ac_ext >&5
14979 rm -rf conftest*
14980 eval "ac_cv_lib_$ac_lib_var=no"
14981fi
14982rm -f conftest*
14983LIBS="$ac_save_LIBS"
14984
14985fi
14986if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14987 echo "$ac_t""yes" 1>&6
14988 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
7cf43d5e 14989echo "configure:14990: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
698dcdb6
VZ
14990ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14991if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14992 echo $ac_n "(cached) $ac_c" 1>&6
14993else
14994 ac_save_LIBS="$LIBS"
f6bcfd97 14995LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14996cat > conftest.$ac_ext <<EOF
7cf43d5e 14997#line 14998 "configure"
f6bcfd97
BP
14998#include "confdefs.h"
14999/* Override any gcc2 internal prototype to avoid an error. */
15000/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15001 builtin and then its argument prototype would still apply. */
15002char sched_get_priority_max();
15003
15004int main() {
15005sched_get_priority_max()
15006; return 0; }
15007EOF
7cf43d5e 15008if { (eval echo configure:15009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15009 rm -rf conftest*
15010 eval "ac_cv_lib_$ac_lib_var=yes"
15011else
15012 echo "configure: failed program was:" >&5
15013 cat conftest.$ac_ext >&5
15014 rm -rf conftest*
15015 eval "ac_cv_lib_$ac_lib_var=no"
15016fi
15017rm -f conftest*
15018LIBS="$ac_save_LIBS"
15019
15020fi
15021if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15022 echo "$ac_t""yes" 1>&6
f6bcfd97 15023 HAVE_PRIOR_FUNCS=1
10f2d63a 15024else
698dcdb6
VZ
15025 echo "$ac_t""no" 1>&6
15026echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
7cf43d5e 15027echo "configure:15028: checking for sched_get_priority_max in -lposix4" >&5
698dcdb6
VZ
15028ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
15029if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15030 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 15031else
698dcdb6 15032 ac_save_LIBS="$LIBS"
1e487827 15033LIBS="-lposix4 $LIBS"
698dcdb6 15034cat > conftest.$ac_ext <<EOF
7cf43d5e 15035#line 15036 "configure"
10f2d63a 15036#include "confdefs.h"
6232543b 15037/* Override any gcc2 internal prototype to avoid an error. */
6232543b 15038/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15039 builtin and then its argument prototype would still apply. */
15040char sched_get_priority_max();
15041
15042int main() {
15043sched_get_priority_max()
15044; return 0; }
15045EOF
7cf43d5e 15046if { (eval echo configure:15047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15047 rm -rf conftest*
15048 eval "ac_cv_lib_$ac_lib_var=yes"
15049else
15050 echo "configure: failed program was:" >&5
15051 cat conftest.$ac_ext >&5
15052 rm -rf conftest*
15053 eval "ac_cv_lib_$ac_lib_var=no"
15054fi
15055rm -f conftest*
15056LIBS="$ac_save_LIBS"
10f2d63a 15057
698dcdb6
VZ
15058fi
15059if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15060 echo "$ac_t""yes" 1>&6
15061
f6bcfd97
BP
15062 HAVE_PRIOR_FUNCS=1
15063 POSIX4_LINK="-lposix4"
698dcdb6
VZ
15064
15065else
15066 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15067fi
15068
698dcdb6 15069
10f2d63a
VZ
15070fi
15071
698dcdb6
VZ
15072
15073else
15074 echo "$ac_t""no" 1>&6
6232543b 15075fi
10f2d63a 15076
698dcdb6
VZ
15077
15078else
15079 echo "$ac_t""no" 1>&6
1e487827 15080fi
703e0a69 15081
698dcdb6 15082
f6bcfd97 15083 if test "$HAVE_PRIOR_FUNCS" = 1; then
698dcdb6 15084 cat >> confdefs.h <<\EOF
f6bcfd97
BP
15085#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
15086EOF
15087
15088 else
698dcdb6 15089 echo "configure: warning: Setting thread priority will not work" 1>&2
f6bcfd97
BP
15090 fi
15091
698dcdb6 15092 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
7cf43d5e 15093echo "configure:15094: checking for pthread_cancel in -l$THREADS_LINK" >&5
698dcdb6
VZ
15094ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
15095if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15096 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15097else
698dcdb6 15098 ac_save_LIBS="$LIBS"
10f2d63a 15099LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 15100cat > conftest.$ac_ext <<EOF
7cf43d5e 15101#line 15102 "configure"
10f2d63a
VZ
15102#include "confdefs.h"
15103/* Override any gcc2 internal prototype to avoid an error. */
15104/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15105 builtin and then its argument prototype would still apply. */
15106char pthread_cancel();
15107
15108int main() {
15109pthread_cancel()
15110; return 0; }
15111EOF
7cf43d5e 15112if { (eval echo configure:15113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15113 rm -rf conftest*
15114 eval "ac_cv_lib_$ac_lib_var=yes"
15115else
15116 echo "configure: failed program was:" >&5
15117 cat conftest.$ac_ext >&5
15118 rm -rf conftest*
15119 eval "ac_cv_lib_$ac_lib_var=no"
15120fi
15121rm -f conftest*
15122LIBS="$ac_save_LIBS"
15123
15124fi
15125if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15126 echo "$ac_t""yes" 1>&6
15127 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15128#define HAVE_PTHREAD_CANCEL 1
15129EOF
15130
15131else
698dcdb6
VZ
15132 echo "$ac_t""no" 1>&6
15133echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10f2d63a
VZ
15134fi
15135
1e487827 15136
698dcdb6 15137 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
7cf43d5e 15138echo "configure:15139: checking for pthread_cleanup_push/pop" >&5
698dcdb6
VZ
15139if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
15140 echo $ac_n "(cached) $ac_c" 1>&6
15141else
15142
15143 cat > conftest.$ac_ext <<EOF
7cf43d5e 15144#line 15145 "configure"
10f2d63a
VZ
15145#include "confdefs.h"
15146#include <pthread.h>
698dcdb6 15147int main() {
10f2d63a
VZ
15148
15149 pthread_cleanup_push(NULL, NULL);
15150 pthread_cleanup_pop(0);
698dcdb6
VZ
15151
15152; return 0; }
15153EOF
7cf43d5e 15154if { (eval echo configure:15155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15155 rm -rf conftest*
15156
10f2d63a 15157 wx_cv_func_pthread_cleanup_push=yes
698dcdb6 15158
10f2d63a 15159else
698dcdb6
VZ
15160 echo "configure: failed program was:" >&5
15161 cat conftest.$ac_ext >&5
15162 rm -rf conftest*
15163
10f2d63a 15164 wx_cv_func_pthread_cleanup_push=no
698dcdb6 15165
6232543b 15166fi
698dcdb6
VZ
15167rm -f conftest*
15168
1e487827 15169fi
698dcdb6
VZ
15170
15171echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
10f2d63a 15172
d9b9876f 15173 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
698dcdb6 15174 cat >> confdefs.h <<\EOF
d9b9876f
VZ
15175#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
15176EOF
15177
15178 fi
15179
698dcdb6 15180
b48da802
VZ
15181 if test "x$wx_lib_glibc21" = "xyes"; then
15182 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
ab252f7b
VZ
15183 fi
15184
698dcdb6 15185 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
7cf43d5e 15186echo "configure:15187: checking for pthread_mutexattr_t" >&5
698dcdb6
VZ
15187if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
15188 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 15189else
698dcdb6
VZ
15190
15191 cat > conftest.$ac_ext <<EOF
7cf43d5e 15192#line 15193 "configure"
d9b9876f
VZ
15193#include "confdefs.h"
15194#include <pthread.h>
698dcdb6 15195int main() {
d9b9876f
VZ
15196
15197 pthread_mutexattr_t attr;
15198 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
698dcdb6
VZ
15199
15200; return 0; }
15201EOF
7cf43d5e 15202if { (eval echo configure:15203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15203 rm -rf conftest*
15204
d9b9876f 15205 wx_cv_type_pthread_mutexattr_t=yes
698dcdb6 15206
d9b9876f 15207else
698dcdb6
VZ
15208 echo "configure: failed program was:" >&5
15209 cat conftest.$ac_ext >&5
15210 rm -rf conftest*
15211
d9b9876f 15212 wx_cv_type_pthread_mutexattr_t=no
698dcdb6
VZ
15213
15214
6232543b 15215fi
698dcdb6
VZ
15216rm -f conftest*
15217
1e487827 15218fi
698dcdb6
VZ
15219
15220echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
d9b9876f
VZ
15221
15222 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
698dcdb6 15223 cat >> confdefs.h <<\EOF
d9b9876f
VZ
15224#define HAVE_PTHREAD_MUTEXATTR_T 1
15225EOF
15226
15227 else
698dcdb6 15228 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
7cf43d5e 15229echo "configure:15230: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
698dcdb6
VZ
15230if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
15231 echo $ac_n "(cached) $ac_c" 1>&6
15232else
15233
15234 cat > conftest.$ac_ext <<EOF
7cf43d5e 15235#line 15236 "configure"
d9b9876f
VZ
15236#include "confdefs.h"
15237#include <pthread.h>
698dcdb6 15238int main() {
d9b9876f
VZ
15239
15240 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
698dcdb6
VZ
15241
15242; return 0; }
15243EOF
7cf43d5e 15244if { (eval echo configure:15245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15245 rm -rf conftest*
15246
d9b9876f 15247 wx_cv_type_pthread_rec_mutex_init=yes
698dcdb6 15248
d9b9876f 15249else
698dcdb6
VZ
15250 echo "configure: failed program was:" >&5
15251 cat conftest.$ac_ext >&5
15252 rm -rf conftest*
15253
d9b9876f 15254 wx_cv_type_pthread_rec_mutex_init=no
698dcdb6
VZ
15255
15256
6232543b 15257fi
698dcdb6
VZ
15258rm -f conftest*
15259
1e487827 15260fi
698dcdb6
VZ
15261
15262echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
3765e936 15263 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
698dcdb6 15264 cat >> confdefs.h <<\EOF
d9b9876f
VZ
15265#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
15266EOF
15267
15268 else
698dcdb6 15269 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
d9b9876f
VZ
15270 fi
15271 fi
15272
10f2d63a 15273 THREADS_LINK="-l$THREADS_LINK"
186837b0
VZ
15274
15275 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
a3cb1afc 15276 CPPFLAGS="${CFLAGS} -mt"
186837b0
VZ
15277 CXXFLAGS="${CXXFLAGS} -mt"
15278 LDFLAGS="${LDFLAGS} -mt"
15279 fi
10f2d63a
VZ
15280fi
15281
15282fi
15283
15284if test "$wxUSE_THREADS" = "yes"; then
698dcdb6 15285 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15286#define wxUSE_THREADS 1
15287EOF
15288
698dcdb6 15289
7b6058cd 15290 if test "$USE_DARWIN" != 1; then
3a922bb4 15291 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
2c6025bc 15292 fi
10f2d63a
VZ
15293
15294 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
15295else
15296 if test "$ac_cv_func_strtok_r" = "yes"; then
698dcdb6 15297 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
7cf43d5e 15298echo "configure:15299: checking if -D_REENTRANT is needed" >&5
ab9b9eab 15299 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
3a922bb4 15300 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
698dcdb6 15301 echo "$ac_t""yes" 1>&6
ab9b9eab 15302 else
698dcdb6 15303 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15304 fi
15305 fi
15306fi
15307
6f72b082 15308if test "$WXGTK20" = 1 ; then
698dcdb6 15309 cat >> confdefs.h <<EOF
6f72b082 15310#define __WXGTK20__ $WXGTK20
13111b2a
VZ
15311EOF
15312
15313 WXGTK12=1
15314fi
15315
10f2d63a 15316if test "$WXGTK12" = 1 ; then
698dcdb6 15317 cat >> confdefs.h <<EOF
10f2d63a
VZ
15318#define __WXGTK12__ $WXGTK12
15319EOF
15320
15321fi
15322
f6bcfd97 15323if test "$WXGTK127" = 1 ; then
698dcdb6 15324 cat >> confdefs.h <<EOF
f6bcfd97
BP
15325#define __WXGTK127__ $WXGTK127
15326EOF
15327
15328fi
15329
10f2d63a
VZ
15330WXDEBUG=
15331
15332if test "$wxUSE_DEBUG_INFO" = "yes" ; then
15333 WXDEBUG="-g"
15334 wxUSE_OPTIMISE=no
15335fi
15336
15337if test "$wxUSE_DEBUG_GDB" = "yes" ; then
15338 wxUSE_DEBUG_INFO=yes
15339 WXDEBUG="-ggdb"
15340fi
15341
15342if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
698dcdb6 15343 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15344#define WXDEBUG 1
15345EOF
15346
15347 WXDEBUG_DEFINE="-D__WXDEBUG__"
15348else
15349 if test "$wxUSE_GTK" = 1 ; then
15350 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
15351 fi
15352fi
15353
15354if test "$wxUSE_MEM_TRACING" = "yes" ; then
698dcdb6 15355 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15356#define wxUSE_MEMORY_TRACING 1
15357EOF
15358
698dcdb6 15359 cat >> confdefs.h <<\EOF
10f2d63a 15360#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
15361EOF
15362
698dcdb6 15363 cat >> confdefs.h <<\EOF
47c13eb7 15364#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
15365EOF
15366
15367 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
15368fi
15369
15370if test "$wxUSE_DMALLOC" = "yes" ; then
15371 DMALLOC_LINK="-ldmalloc"
15372fi
15373
15374PROFILE=
15375if test "$wxUSE_PROFILE" = "yes" ; then
15376 PROFILE="-pg"
15377fi
15378
10f2d63a
VZ
15379if test "$GCC" = yes ; then
15380 if test "$wxUSE_NO_RTTI" = "yes" ; then
3a922bb4 15381 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
10f2d63a
VZ
15382 fi
15383 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
3a922bb4 15384 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
10f2d63a
VZ
15385 fi
15386 if test "$wxUSE_PERMISSIVE" = "yes" ; then
d08b457b 15387 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
15388 fi
15389 if test "$wxUSE_NO_DEPS" = "no" ; then
077c5642
GD
15390 CFLAGS="-MMD ${CFLAGS}"
15391 CXXFLAGS="-MMD ${CXXFLAGS}"
3a922bb4
RL
15392 fi
15393 if test "$USE_WIN32" = 1 ; then
15394 # I'm not even really sure what this was ever added to solve,
15395 # but someone added it for mingw native builds, so I guess
15396 # they had a reason, right??
15397 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
10f2d63a
VZ
15398 fi
15399fi
15400
698dcdb6 15401
10f2d63a
VZ
15402CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
15403CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
15404if test "$wxUSE_OPTIMISE" = "no" ; then
15405 OPTIMISE=
15406else
15407 if test "$GCC" = yes ; then
15408 OPTIMISE="-O2"
15409 case "${host}" in
15410 i586-*-*|i686-*-* )
15411 OPTIMISE="${OPTIMISE} "
15412 ;;
15413 esac
15414 else
15415 OPTIMISE="-O"
15416 fi
15417fi
15418
54276ccf
VZ
15419if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
15420 cat >> confdefs.h <<\EOF
15421#define WXWIN_COMPATIBILITY_2 1
15422EOF
15423
15424
15425 WXWIN_COMPATIBILITY_2_2="yes"
15426fi
15427
15428if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
15429 cat >> confdefs.h <<\EOF
15430#define WXWIN_COMPATIBILITY_2_2 1
15431EOF
15432
15433fi
15434
698dcdb6 15435
10f2d63a 15436ZLIB_INCLUDE=
422107f9 15437if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
698dcdb6 15438 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15439#define wxUSE_ZLIB 1
15440EOF
15441
422107f9
VZ
15442 if test "$wxUSE_ZLIB" = "yes" ; then
15443 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
15444 else
15445 ZLIB_LINK=
698dcdb6
VZ
15446 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
15447echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
7cf43d5e 15448echo "configure:15449: checking for zlib.h" >&5
698dcdb6
VZ
15449if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15450 echo $ac_n "(cached) $ac_c" 1>&6
15451else
15452 cat > conftest.$ac_ext <<EOF
7cf43d5e 15453#line 15454 "configure"
422107f9
VZ
15454#include "confdefs.h"
15455#include <zlib.h>
698dcdb6
VZ
15456EOF
15457ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7cf43d5e 15458{ (eval echo configure:15459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15459ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15460if test -z "$ac_err"; then
15461 rm -rf conftest*
15462 eval "ac_cv_header_$ac_safe=yes"
422107f9 15463else
698dcdb6
VZ
15464 echo "$ac_err" >&5
15465 echo "configure: failed program was:" >&5
422107f9 15466 cat conftest.$ac_ext >&5
698dcdb6
VZ
15467 rm -rf conftest*
15468 eval "ac_cv_header_$ac_safe=no"
422107f9 15469fi
698dcdb6 15470rm -f conftest*
422107f9 15471fi
698dcdb6
VZ
15472if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15473 echo "$ac_t""yes" 1>&6
15474 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
7cf43d5e 15475echo "configure:15476: checking for deflate in -lz" >&5
698dcdb6
VZ
15476ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
15477if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15478 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15479else
698dcdb6 15480 ac_save_LIBS="$LIBS"
422107f9 15481LIBS="-lz $LIBS"
698dcdb6 15482cat > conftest.$ac_ext <<EOF
7cf43d5e 15483#line 15484 "configure"
422107f9
VZ
15484#include "confdefs.h"
15485/* Override any gcc2 internal prototype to avoid an error. */
15486/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15487 builtin and then its argument prototype would still apply. */
15488char deflate();
15489
15490int main() {
15491deflate()
15492; return 0; }
15493EOF
7cf43d5e 15494if { (eval echo configure:15495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15495 rm -rf conftest*
15496 eval "ac_cv_lib_$ac_lib_var=yes"
15497else
15498 echo "configure: failed program was:" >&5
15499 cat conftest.$ac_ext >&5
15500 rm -rf conftest*
15501 eval "ac_cv_lib_$ac_lib_var=no"
15502fi
15503rm -f conftest*
15504LIBS="$ac_save_LIBS"
15505
15506fi
15507if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15508 echo "$ac_t""yes" 1>&6
422107f9 15509 ZLIB_LINK="-lz"
698dcdb6
VZ
15510else
15511 echo "$ac_t""no" 1>&6
422107f9
VZ
15512fi
15513
698dcdb6
VZ
15514else
15515 echo "$ac_t""no" 1>&6
422107f9
VZ
15516fi
15517
15518 if test "x$ZLIB_LINK" = "x" ; then
698dcdb6 15519 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
422107f9
VZ
15520 fi
15521 fi
10f2d63a
VZ
15522fi
15523
15524PNG_INCLUDE=
422107f9 15525if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
698dcdb6 15526 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15527#define wxUSE_LIBPNG 1
15528EOF
15529
41fd4136 15530 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
698dcdb6 15531 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
422107f9
VZ
15532 wxUSE_LIBPNG=yes
15533 fi
15534
15535 if test "$wxUSE_LIBPNG" = "yes" ; then
15536 PNG_INCLUDE="-I\${top_srcdir}/src/png"
15537 else
15538 PNG_LINK=
698dcdb6
VZ
15539 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
15540echo $ac_n "checking for png.h""... $ac_c" 1>&6
7cf43d5e 15541echo "configure:15542: checking for png.h" >&5
698dcdb6
VZ
15542if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15543 echo $ac_n "(cached) $ac_c" 1>&6
15544else
15545 cat > conftest.$ac_ext <<EOF
7cf43d5e 15546#line 15547 "configure"
422107f9
VZ
15547#include "confdefs.h"
15548#include <png.h>
698dcdb6
VZ
15549EOF
15550ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7cf43d5e 15551{ (eval echo configure:15552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15552ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15553if test -z "$ac_err"; then
15554 rm -rf conftest*
15555 eval "ac_cv_header_$ac_safe=yes"
422107f9 15556else
698dcdb6
VZ
15557 echo "$ac_err" >&5
15558 echo "configure: failed program was:" >&5
422107f9 15559 cat conftest.$ac_ext >&5
698dcdb6
VZ
15560 rm -rf conftest*
15561 eval "ac_cv_header_$ac_safe=no"
422107f9 15562fi
698dcdb6 15563rm -f conftest*
422107f9 15564fi
698dcdb6
VZ
15565if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15566 echo "$ac_t""yes" 1>&6
15567 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
7cf43d5e 15568echo "configure:15569: checking for png_check_sig in -lpng" >&5
698dcdb6
VZ
15569ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
15570if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15571 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15572else
698dcdb6 15573 ac_save_LIBS="$LIBS"
422107f9 15574LIBS="-lpng -lz -lm $LIBS"
698dcdb6 15575cat > conftest.$ac_ext <<EOF
7cf43d5e 15576#line 15577 "configure"
422107f9
VZ
15577#include "confdefs.h"
15578/* Override any gcc2 internal prototype to avoid an error. */
15579/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15580 builtin and then its argument prototype would still apply. */
15581char png_check_sig();
15582
15583int main() {
15584png_check_sig()
15585; return 0; }
15586EOF
7cf43d5e 15587if { (eval echo configure:15588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15588 rm -rf conftest*
15589 eval "ac_cv_lib_$ac_lib_var=yes"
15590else
15591 echo "configure: failed program was:" >&5
15592 cat conftest.$ac_ext >&5
15593 rm -rf conftest*
15594 eval "ac_cv_lib_$ac_lib_var=no"
15595fi
15596rm -f conftest*
15597LIBS="$ac_save_LIBS"
15598
15599fi
15600if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15601 echo "$ac_t""yes" 1>&6
422107f9 15602 PNG_LINK="-lpng"
698dcdb6
VZ
15603else
15604 echo "$ac_t""no" 1>&6
422107f9
VZ
15605fi
15606
698dcdb6
VZ
15607
15608else
15609 echo "$ac_t""no" 1>&6
422107f9
VZ
15610fi
15611
15612 if test "x$PNG_LINK" = "x" ; then
698dcdb6 15613 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
15614 fi
15615 fi
15616
10f2d63a
VZ
15617 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
15618fi
15619
15620JPEG_INCLUDE=
422107f9 15621if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
698dcdb6 15622 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15623#define wxUSE_LIBJPEG 1
15624EOF
15625
422107f9
VZ
15626 if test "$wxUSE_LIBJPEG" = "yes" ; then
15627 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
15628 else
15629 JPEG_LINK=
463abc64 15630 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7cf43d5e 15631echo "configure:15632: checking for jpeglib.h" >&5
463abc64 15632 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
698dcdb6
VZ
15633 echo $ac_n "(cached) $ac_c" 1>&6
15634else
15635 cat > conftest.$ac_ext <<EOF
7cf43d5e 15636#line 15637 "configure"
422107f9 15637#include "confdefs.h"
463abc64
VZ
15638
15639 #undef HAVE_STDLIB_H
15640 #include <stdio.h>
15641 #include <jpeglib.h>
15642
15643int main() {
15644
15645
15646; return 0; }
698dcdb6 15647EOF
7cf43d5e 15648if { (eval echo configure:15649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15649 rm -rf conftest*
463abc64 15650 ac_cv_header_jpeglib_h=yes
6232543b 15651else
698dcdb6 15652 echo "configure: failed program was:" >&5
422107f9 15653 cat conftest.$ac_ext >&5
698dcdb6 15654 rm -rf conftest*
463abc64
VZ
15655 ac_cv_header_jpeglib_h=no
15656
422107f9 15657fi
698dcdb6 15658rm -f conftest*
463abc64 15659
422107f9 15660fi
463abc64
VZ
15661
15662 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
15663
15664 if test "$ac_cv_header_jpeglib_h" = "yes"; then
15665 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
7cf43d5e 15666echo "configure:15667: checking for jpeg_read_header in -ljpeg" >&5
698dcdb6
VZ
15667ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
15668if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15669 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15670else
698dcdb6 15671 ac_save_LIBS="$LIBS"
422107f9 15672LIBS="-ljpeg $LIBS"
698dcdb6 15673cat > conftest.$ac_ext <<EOF
7cf43d5e 15674#line 15675 "configure"
422107f9
VZ
15675#include "confdefs.h"
15676/* Override any gcc2 internal prototype to avoid an error. */
15677/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15678 builtin and then its argument prototype would still apply. */
15679char jpeg_read_header();
15680
15681int main() {
15682jpeg_read_header()
15683; return 0; }
15684EOF
7cf43d5e 15685if { (eval echo configure:15686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15686 rm -rf conftest*
15687 eval "ac_cv_lib_$ac_lib_var=yes"
15688else
15689 echo "configure: failed program was:" >&5
15690 cat conftest.$ac_ext >&5
15691 rm -rf conftest*
15692 eval "ac_cv_lib_$ac_lib_var=no"
15693fi
15694rm -f conftest*
15695LIBS="$ac_save_LIBS"
15696
15697fi
15698if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15699 echo "$ac_t""yes" 1>&6
422107f9 15700 JPEG_LINK="-ljpeg"
698dcdb6
VZ
15701else
15702 echo "$ac_t""no" 1>&6
422107f9
VZ
15703fi
15704
463abc64 15705 fi
422107f9
VZ
15706
15707 if test "x$JPEG_LINK" = "x" ; then
698dcdb6 15708 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
15709 fi
15710 fi
10f2d63a
VZ
15711fi
15712
c7a2bf27 15713TIFF_INCLUDE=
0dcf9893 15714if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
698dcdb6 15715 cat >> confdefs.h <<\EOF
c7a2bf27
RR
15716#define wxUSE_LIBTIFF 1
15717EOF
15718
665bbe97 15719 if test "$wxUSE_LIBTIFF" = "yes" ; then
0dcf9893
VZ
15720 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
15721 else
15722 TIFF_LINK=
698dcdb6
VZ
15723 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
15724echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7cf43d5e 15725echo "configure:15726: checking for tiffio.h" >&5
698dcdb6
VZ
15726if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15727 echo $ac_n "(cached) $ac_c" 1>&6
15728else
15729 cat > conftest.$ac_ext <<EOF
7cf43d5e 15730#line 15731 "configure"
0dcf9893
VZ
15731#include "confdefs.h"
15732#include <tiffio.h>
698dcdb6
VZ
15733EOF
15734ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7cf43d5e 15735{ (eval echo configure:15736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15736ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15737if test -z "$ac_err"; then
15738 rm -rf conftest*
15739 eval "ac_cv_header_$ac_safe=yes"
3fed1840 15740else
698dcdb6
VZ
15741 echo "$ac_err" >&5
15742 echo "configure: failed program was:" >&5
3fed1840 15743 cat conftest.$ac_ext >&5
698dcdb6
VZ
15744 rm -rf conftest*
15745 eval "ac_cv_header_$ac_safe=no"
3fed1840 15746fi
698dcdb6 15747rm -f conftest*
3fed1840 15748fi
698dcdb6
VZ
15749if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15750 echo "$ac_t""yes" 1>&6
3a922bb4 15751 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
7cf43d5e 15752echo "configure:15753: checking for TIFFError in -ltiff" >&5
3a922bb4 15753ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15754if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15755 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 15756else
698dcdb6 15757 ac_save_LIBS="$LIBS"
3a922bb4 15758LIBS="-ltiff -lm $LIBS"
698dcdb6 15759cat > conftest.$ac_ext <<EOF
7cf43d5e 15760#line 15761 "configure"
3fed1840
RR
15761#include "confdefs.h"
15762/* Override any gcc2 internal prototype to avoid an error. */
15763/* We use char because int might match the return type of a gcc2
698dcdb6 15764 builtin and then its argument prototype would still apply. */
3a922bb4 15765char TIFFError();
698dcdb6
VZ
15766
15767int main() {
3a922bb4 15768TIFFError()
698dcdb6
VZ
15769; return 0; }
15770EOF
7cf43d5e 15771if { (eval echo configure:15772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15772 rm -rf conftest*
15773 eval "ac_cv_lib_$ac_lib_var=yes"
15774else
15775 echo "configure: failed program was:" >&5
15776 cat conftest.$ac_ext >&5
15777 rm -rf conftest*
15778 eval "ac_cv_lib_$ac_lib_var=no"
15779fi
15780rm -f conftest*
15781LIBS="$ac_save_LIBS"
15782
15783fi
15784if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15785 echo "$ac_t""yes" 1>&6
3a922bb4 15786 TIFF_LINK="-ltiff"
698dcdb6
VZ
15787else
15788 echo "$ac_t""no" 1>&6
3fed1840
RR
15789fi
15790
698dcdb6
VZ
15791else
15792 echo "$ac_t""no" 1>&6
3fed1840
RR
15793fi
15794
3a922bb4
RL
15795 if test "x$TIFF_LINK" = "x" ; then
15796 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
3fed1840
RR
15797 fi
15798 fi
15799fi
15800
3a922bb4
RL
15801FREETYPE_INCLUDE=
15802if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
15803 cat >> confdefs.h <<\EOF
15804#define wxUSE_FREETYPE 1
7b6058cd
GD
15805EOF
15806
3a922bb4
RL
15807 if test "$wxUSE_FREETYPE" = "yes" ; then
15808 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
7b6058cd 15809 else
3a922bb4
RL
15810 FREETYPE_LINK=
15811 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
15812echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
7cf43d5e 15813echo "configure:15814: checking for freetype.h" >&5
698dcdb6
VZ
15814if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15815 echo $ac_n "(cached) $ac_c" 1>&6
15816else
15817 cat > conftest.$ac_ext <<EOF
7cf43d5e 15818#line 15819 "configure"
10f2d63a 15819#include "confdefs.h"
3a922bb4 15820#include <freetype.h>
698dcdb6
VZ
15821EOF
15822ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7cf43d5e 15823{ (eval echo configure:15824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15824ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15825if test -z "$ac_err"; then
15826 rm -rf conftest*
15827 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 15828else
698dcdb6
VZ
15829 echo "$ac_err" >&5
15830 echo "configure: failed program was:" >&5
10f2d63a 15831 cat conftest.$ac_ext >&5
698dcdb6
VZ
15832 rm -rf conftest*
15833 eval "ac_cv_header_$ac_safe=no"
10f2d63a 15834fi
698dcdb6 15835rm -f conftest*
10f2d63a 15836fi
698dcdb6
VZ
15837if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15838 echo "$ac_t""yes" 1>&6
3a922bb4 15839 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
7cf43d5e 15840echo "configure:15841: checking for FT_Render_Glyph in -lfreetype" >&5
3a922bb4 15841ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15842if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15843 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15844else
698dcdb6 15845 ac_save_LIBS="$LIBS"
3a922bb4 15846LIBS="-lfreetype -lm $LIBS"
698dcdb6 15847cat > conftest.$ac_ext <<EOF
7cf43d5e 15848#line 15849 "configure"
10f2d63a
VZ
15849#include "confdefs.h"
15850/* Override any gcc2 internal prototype to avoid an error. */
15851/* We use char because int might match the return type of a gcc2
698dcdb6 15852 builtin and then its argument prototype would still apply. */
3a922bb4 15853char FT_Render_Glyph();
698dcdb6
VZ
15854
15855int main() {
3a922bb4 15856FT_Render_Glyph()
698dcdb6
VZ
15857; return 0; }
15858EOF
7cf43d5e 15859if { (eval echo configure:15860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15860 rm -rf conftest*
15861 eval "ac_cv_lib_$ac_lib_var=yes"
15862else
15863 echo "configure: failed program was:" >&5
15864 cat conftest.$ac_ext >&5
15865 rm -rf conftest*
15866 eval "ac_cv_lib_$ac_lib_var=no"
15867fi
15868rm -f conftest*
15869LIBS="$ac_save_LIBS"
10f2d63a 15870
698dcdb6
VZ
15871fi
15872if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15873 echo "$ac_t""yes" 1>&6
3a922bb4 15874 FREETYPE_LINK="-lfreetype"
698dcdb6
VZ
15875else
15876 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15877fi
15878
3a922bb4 15879
10f2d63a 15880else
698dcdb6 15881 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15882fi
15883
3a922bb4
RL
15884 if test "x$FREETYPE_LINK" = "x" ; then
15885 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
15886 fi
7b6058cd 15887 fi
10f2d63a
VZ
15888fi
15889
698dcdb6 15890
10f2d63a 15891if test "$wxUSE_GUI" = "yes"; then
698dcdb6 15892 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15893#define wxUSE_GUI 1
15894EOF
15895
698dcdb6 15896
10f2d63a 15897 else
698dcdb6 15898 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15899#define wxUSE_NOGUI 1
15900EOF
15901
15902fi
15903
698dcdb6 15904
10f2d63a 15905if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 15906 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15907#define wxUSE_UNIX 1
15908EOF
15909
15910fi
15911
698dcdb6 15912
10f2d63a 15913if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 15914 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15915#define wxUSE_APPLE_IEEE 1
15916EOF
15917
15918fi
15919
1e6feb95
VZ
15920if test "$wxUSE_TIMER" = "yes"; then
15921 cat >> confdefs.h <<\EOF
15922#define wxUSE_TIMER 1
15923EOF
15924
15925fi
15926
10f2d63a 15927if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 15928 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15929#define wxUSE_WAVE 1
15930EOF
15931
15932fi
15933
1e6feb95
VZ
15934if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15935 cat >> confdefs.h <<\EOF
15936#define wxUSE_CMDLINE_PARSER 1
15937EOF
15938
15939fi
15940
15941if test "$wxUSE_STOPWATCH" = "yes"; then
15942 cat >> confdefs.h <<\EOF
15943#define wxUSE_STOPWATCH 1
15944EOF
15945
15946fi
15947
15948if test "$wxUSE_DATETIME" = "yes"; then
15949 cat >> confdefs.h <<\EOF
15950#define wxUSE_DATETIME 1
15951EOF
15952
15953fi
15954
15955if test "$wxUSE_TIMEDATE" = "yes"; then
15956 cat >> confdefs.h <<\EOF
15957#define wxUSE_TIMEDATE 1
15958EOF
15959
15960fi
15961
10f2d63a 15962if test "$wxUSE_FILE" = "yes"; then
698dcdb6 15963 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15964#define wxUSE_FILE 1
15965EOF
15966
15967fi
15968
1e6feb95
VZ
15969if test "$wxUSE_FFILE" = "yes"; then
15970 cat >> confdefs.h <<\EOF
15971#define wxUSE_FFILE 1
15972EOF
15973
15974fi
15975
24528b0c 15976if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 15977 cat >> confdefs.h <<\EOF
24528b0c
VS
15978#define wxUSE_FILESYSTEM 1
15979EOF
15980
15981fi
15982
10f2d63a 15983if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 15984 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15985#define wxUSE_FS_INET 1
15986EOF
15987
15988fi
15989
15990if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 15991 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15992#define wxUSE_FS_ZIP 1
15993EOF
15994
15995fi
15996
15997if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 15998 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15999#define wxUSE_ZIPSTREAM 1
16000EOF
16001
16002fi
16003
eb4efbdc 16004if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 16005 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
16006#define wxUSE_ON_FATAL_EXCEPTION 1
16007EOF
16008
16009fi
16010
4f3c5f06 16011if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 16012 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
16013#define wxUSE_SNGLINST_CHECKER 1
16014EOF
16015
16016fi
16017
10f2d63a 16018if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 16019 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16020#define wxUSE_BUSYINFO 1
16021EOF
16022
16023fi
16024
16025if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 16026 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16027#define wxUSE_STD_IOSTREAM 1
16028EOF
16029
16030fi
16031
16032if test "$wxUSE_TEXTFILE" = "yes"; then
16033 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 16034 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 16035 else
698dcdb6 16036 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16037#define wxUSE_TEXTFILE 1
16038EOF
16039
16040 fi
16041fi
16042
16043if test "$wxUSE_CONFIG" = "yes" ; then
16044 if test "$wxUSE_TEXTFILE" != "yes"; then
698dcdb6 16045 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
10f2d63a 16046 else
698dcdb6 16047 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16048#define wxUSE_CONFIG 1
16049EOF
16050
16051 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
16052 fi
16053fi
16054
16055if test "$wxUSE_INTL" = "yes" ; then
16056 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 16057 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 16058 else
698dcdb6 16059 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16060#define wxUSE_INTL 1
16061EOF
16062
16063 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 16064 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
16065 fi
16066fi
16067
16068if test "$wxUSE_LOG" = "yes"; then
698dcdb6 16069 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16070#define wxUSE_LOG 1
16071EOF
16072
d73be714
VZ
16073
16074 if test "$wxUSE_LOGGUI" = "yes"; then
16075 cat >> confdefs.h <<\EOF
16076#define wxUSE_LOGGUI 1
16077EOF
16078
16079 fi
16080
16081 if test "$wxUSE_LOGWINDOW" = "yes"; then
16082 cat >> confdefs.h <<\EOF
16083#define wxUSE_LOGWINDOW 1
16084EOF
16085
16086 fi
10f2d63a
VZ
16087fi
16088
16089if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 16090 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16091#define wxUSE_LONGLONG 1
16092EOF
16093
16094fi
16095
e8f65ba6 16096if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 16097 cat >> confdefs.h <<\EOF
e8f65ba6
RR
16098#define wxUSE_GEOMETRY 1
16099EOF
16100
16101fi
16102
10f2d63a 16103if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 16104 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16105#define wxUSE_DIALUP_MANAGER 1
16106EOF
16107
70f7a477 16108 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
16109fi
16110
16111if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 16112 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16113#define wxUSE_STREAMS 1
16114EOF
16115
16116fi
16117
1e487827 16118
1e6feb95 16119if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 16120 for ac_func in strptime
83307f33 16121do
698dcdb6 16122echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7cf43d5e 16123echo "configure:16124: checking for $ac_func" >&5
698dcdb6
VZ
16124if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16125 echo $ac_n "(cached) $ac_c" 1>&6
16126else
16127 cat > conftest.$ac_ext <<EOF
7cf43d5e 16128#line 16129 "configure"
83307f33
VZ
16129#include "confdefs.h"
16130/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16131 which can conflict with char $ac_func(); below. */
83307f33
VZ
16132#include <assert.h>
16133/* Override any gcc2 internal prototype to avoid an error. */
16134/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16135 builtin and then its argument prototype would still apply. */
16136char $ac_func();
16137
16138int main() {
83307f33
VZ
16139
16140/* The GNU C library defines this for functions which it implements
16141 to always fail with ENOSYS. Some functions are actually named
16142 something starting with __ and the normal name is an alias. */
16143#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16144choke me
16145#else
698dcdb6 16146$ac_func();
83307f33
VZ
16147#endif
16148
698dcdb6 16149; return 0; }
83307f33 16150EOF
7cf43d5e 16151if { (eval echo configure:16152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16152 rm -rf conftest*
16153 eval "ac_cv_func_$ac_func=yes"
16154else
16155 echo "configure: failed program was:" >&5
16156 cat conftest.$ac_ext >&5
16157 rm -rf conftest*
16158 eval "ac_cv_func_$ac_func=no"
16159fi
16160rm -f conftest*
16161fi
83307f33 16162
698dcdb6
VZ
16163if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16164 echo "$ac_t""yes" 1>&6
16165 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16166 cat >> confdefs.h <<EOF
16167#define $ac_tr_func 1
16168EOF
16169
16170else
16171 echo "$ac_t""no" 1>&6
83307f33
VZ
16172fi
16173done
16174
1e487827 16175
698dcdb6 16176 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
7cf43d5e 16177echo "configure:16178: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
16178if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
16179 echo $ac_n "(cached) $ac_c" 1>&6
16180else
16181
16182 cat > conftest.$ac_ext <<EOF
7cf43d5e 16183#line 16184 "configure"
360d6699
VZ
16184#include "confdefs.h"
16185
b4085ce6 16186 #include <time.h>
698dcdb6
VZ
16187
16188int main() {
360d6699
VZ
16189
16190 int tz;
4f11a343 16191 tz = timezone;
698dcdb6
VZ
16192
16193; return 0; }
16194EOF
7cf43d5e 16195if { (eval echo configure:16196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16196 rm -rf conftest*
16197
4f11a343 16198 wx_cv_var_timezone=timezone
698dcdb6 16199
360d6699 16200else
698dcdb6
VZ
16201 echo "configure: failed program was:" >&5
16202 cat conftest.$ac_ext >&5
16203 rm -rf conftest*
16204
16205 cat > conftest.$ac_ext <<EOF
7cf43d5e 16206#line 16207 "configure"
360d6699
VZ
16207#include "confdefs.h"
16208
b4085ce6 16209 #include <time.h>
698dcdb6
VZ
16210
16211int main() {
360d6699
VZ
16212
16213 int tz;
16214 tz = _timezone;
698dcdb6
VZ
16215
16216; return 0; }
16217EOF
7cf43d5e 16218if { (eval echo configure:16219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16219 rm -rf conftest*
16220
360d6699 16221 wx_cv_var_timezone=_timezone
698dcdb6 16222
5357c8e8 16223else
698dcdb6
VZ
16224 echo "configure: failed program was:" >&5
16225 cat conftest.$ac_ext >&5
16226 rm -rf conftest*
16227
16228 cat > conftest.$ac_ext <<EOF
7cf43d5e 16229#line 16230 "configure"
5357c8e8
VZ
16230#include "confdefs.h"
16231
b4085ce6 16232 #include <time.h>
698dcdb6
VZ
16233
16234int main() {
5357c8e8
VZ
16235
16236 int tz;
4f11a343 16237 tz = __timezone;
698dcdb6
VZ
16238
16239; return 0; }
16240EOF
7cf43d5e 16241if { (eval echo configure:16242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16242 rm -rf conftest*
16243
4f11a343 16244 wx_cv_var_timezone=__timezone
698dcdb6 16245
360d6699 16246else
698dcdb6
VZ
16247 echo "configure: failed program was:" >&5
16248 cat conftest.$ac_ext >&5
16249 rm -rf conftest*
16250 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
16251
360d6699 16252fi
698dcdb6
VZ
16253rm -f conftest*
16254
16255
360d6699 16256fi
698dcdb6
VZ
16257rm -f conftest*
16258
16259
6232543b 16260fi
698dcdb6
VZ
16261rm -f conftest*
16262
16263
1e487827 16264fi
703e0a69 16265
698dcdb6
VZ
16266echo "$ac_t""$wx_cv_var_timezone" 1>&6
16267
16268 cat >> confdefs.h <<EOF
360d6699
VZ
16269#define WX_TIMEZONE $wx_cv_var_timezone
16270EOF
16271
698dcdb6
VZ
16272
16273 for ac_func in localtime
afc31813 16274do
698dcdb6 16275echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7cf43d5e 16276echo "configure:16277: checking for $ac_func" >&5
698dcdb6
VZ
16277if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16278 echo $ac_n "(cached) $ac_c" 1>&6
16279else
16280 cat > conftest.$ac_ext <<EOF
7cf43d5e 16281#line 16282 "configure"
10f2d63a 16282#include "confdefs.h"
afc31813 16283/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16284 which can conflict with char $ac_func(); below. */
afc31813
VZ
16285#include <assert.h>
16286/* Override any gcc2 internal prototype to avoid an error. */
16287/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16288 builtin and then its argument prototype would still apply. */
16289char $ac_func();
16290
16291int main() {
afc31813
VZ
16292
16293/* The GNU C library defines this for functions which it implements
16294 to always fail with ENOSYS. Some functions are actually named
16295 something starting with __ and the normal name is an alias. */
16296#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16297choke me
16298#else
698dcdb6 16299$ac_func();
afc31813
VZ
16300#endif
16301
698dcdb6 16302; return 0; }
10f2d63a 16303EOF
7cf43d5e 16304if { (eval echo configure:16305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16305 rm -rf conftest*
16306 eval "ac_cv_func_$ac_func=yes"
16307else
16308 echo "configure: failed program was:" >&5
16309 cat conftest.$ac_ext >&5
16310 rm -rf conftest*
16311 eval "ac_cv_func_$ac_func=no"
16312fi
16313rm -f conftest*
16314fi
afc31813 16315
698dcdb6
VZ
16316if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16317 echo "$ac_t""yes" 1>&6
16318 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16319 cat >> confdefs.h <<EOF
16320#define $ac_tr_func 1
16321EOF
16322
16323else
16324 echo "$ac_t""no" 1>&6
afc31813
VZ
16325fi
16326done
16327
1e487827 16328
698dcdb6
VZ
16329 if test "$ac_cv_func_localtime" = "yes"; then
16330 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
7cf43d5e 16331echo "configure:16332: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
16332if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16333 echo $ac_n "(cached) $ac_c" 1>&6
16334else
16335
16336 cat > conftest.$ac_ext <<EOF
7cf43d5e 16337#line 16338 "configure"
0470b1e6
VZ
16338#include "confdefs.h"
16339
b4085ce6 16340 #include <time.h>
698dcdb6
VZ
16341
16342int main() {
0470b1e6
VZ
16343
16344 struct tm tm;
16345 tm.tm_gmtoff++;
698dcdb6
VZ
16346
16347; return 0; }
16348EOF
7cf43d5e 16349if { (eval echo configure:16350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16350 rm -rf conftest*
16351
f03a98d8 16352 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 16353
0470b1e6 16354else
698dcdb6
VZ
16355 echo "configure: failed program was:" >&5
16356 cat conftest.$ac_ext >&5
16357 rm -rf conftest*
16358 wx_cv_struct_tm_has_gmtoff=no
16359
0470b1e6 16360fi
698dcdb6
VZ
16361rm -f conftest*
16362
1e487827 16363fi
698dcdb6
VZ
16364
16365echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
16366 fi
16367
16368 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 16369 cat >> confdefs.h <<\EOF
6232543b
VS
16370#define WX_GMTOFF_IN_TM 1
16371EOF
0470b1e6 16372
3fcdd07b
VZ
16373 fi
16374
698dcdb6 16375 for ac_func in gettimeofday ftime
3fcdd07b 16376do
698dcdb6 16377echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7cf43d5e 16378echo "configure:16379: checking for $ac_func" >&5
698dcdb6
VZ
16379if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16380 echo $ac_n "(cached) $ac_c" 1>&6
16381else
16382 cat > conftest.$ac_ext <<EOF
7cf43d5e 16383#line 16384 "configure"
3fcdd07b
VZ
16384#include "confdefs.h"
16385/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16386 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
16387#include <assert.h>
16388/* Override any gcc2 internal prototype to avoid an error. */
16389/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16390 builtin and then its argument prototype would still apply. */
16391char $ac_func();
16392
16393int main() {
3fcdd07b
VZ
16394
16395/* The GNU C library defines this for functions which it implements
16396 to always fail with ENOSYS. Some functions are actually named
16397 something starting with __ and the normal name is an alias. */
16398#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16399choke me
16400#else
698dcdb6 16401$ac_func();
3fcdd07b
VZ
16402#endif
16403
698dcdb6
VZ
16404; return 0; }
16405EOF
7cf43d5e 16406if { (eval echo configure:16407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16407 rm -rf conftest*
16408 eval "ac_cv_func_$ac_func=yes"
16409else
16410 echo "configure: failed program was:" >&5
16411 cat conftest.$ac_ext >&5
16412 rm -rf conftest*
16413 eval "ac_cv_func_$ac_func=no"
16414fi
16415rm -f conftest*
16416fi
16417
16418if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16419 echo "$ac_t""yes" 1>&6
16420 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16421 cat >> confdefs.h <<EOF
16422#define $ac_tr_func 1
3fcdd07b
VZ
16423EOF
16424 break
698dcdb6
VZ
16425else
16426 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
16427fi
16428done
16429
afc31813 16430
698dcdb6
VZ
16431 if test "$ac_cv_func_gettimeofday" = "yes"; then
16432 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
7cf43d5e 16433echo "configure:16434: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
16434if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16435 echo $ac_n "(cached) $ac_c" 1>&6
16436else
16437
16438
16439 ac_ext=C
16440# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16441ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16442ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16443ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16444cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16445
698dcdb6
VZ
16446
16447 cat > conftest.$ac_ext <<EOF
7cf43d5e 16448#line 16449 "configure"
10f2d63a 16449#include "confdefs.h"
afc31813
VZ
16450
16451 #include <sys/time.h>
16452 #include <unistd.h>
698dcdb6
VZ
16453
16454int main() {
afc31813
VZ
16455
16456 struct timeval tv;
776862b4 16457 gettimeofday(&tv, NULL);
698dcdb6
VZ
16458
16459; return 0; }
16460EOF
7cf43d5e 16461if { (eval echo configure:16462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16462 rm -rf conftest*
afc31813 16463 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 16464else
698dcdb6
VZ
16465 echo "configure: failed program was:" >&5
16466 cat conftest.$ac_ext >&5
16467 rm -rf conftest*
16468 cat > conftest.$ac_ext <<EOF
7cf43d5e 16469#line 16470 "configure"
10f2d63a 16470#include "confdefs.h"
afc31813
VZ
16471
16472 #include <sys/time.h>
16473 #include <unistd.h>
698dcdb6
VZ
16474
16475int main() {
afc31813
VZ
16476
16477 struct timeval tv;
16478 gettimeofday(&tv);
698dcdb6
VZ
16479
16480; return 0; }
16481EOF
7cf43d5e 16482if { (eval echo configure:16483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16483 rm -rf conftest*
afc31813 16484 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 16485else
698dcdb6
VZ
16486 echo "configure: failed program was:" >&5
16487 cat conftest.$ac_ext >&5
16488 rm -rf conftest*
776862b4
VZ
16489
16490 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
16491 wx_cv_func_gettimeofday_has_2_args=unknown
16492
698dcdb6 16493
10f2d63a 16494fi
698dcdb6
VZ
16495rm -f conftest*
16496
10f2d63a 16497fi
698dcdb6 16498rm -f conftest*
afc31813 16499 ac_ext=c
698dcdb6 16500# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 16501ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16502ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16503ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16504cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 16505
698dcdb6 16506
afc31813 16507fi
698dcdb6
VZ
16508
16509echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 16510
afc31813 16511 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 16512 cat >> confdefs.h <<\EOF
afc31813
VZ
16513#define WX_GETTIMEOFDAY_NO_TZ 1
16514EOF
16515
16516 fi
16517 fi
16518
698dcdb6 16519 cat >> confdefs.h <<\EOF
afc31813
VZ
16520#define wxUSE_TIMEDATE 1
16521EOF
16522
16523 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16524fi
16525
698dcdb6 16526
b089607b
VZ
16527if test "$TOOLKIT" != "MSW"; then
16528
3a922bb4
RL
16529 if test "$wxUSE_SOCKETS" = "yes"; then
16530 echo $ac_n "checking for socket""... $ac_c" 1>&6
7cf43d5e 16531echo "configure:16532: checking for socket" >&5
698dcdb6
VZ
16532if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16533 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16534else
698dcdb6 16535 cat > conftest.$ac_ext <<EOF
7cf43d5e 16536#line 16537 "configure"
c63c7106
VZ
16537#include "confdefs.h"
16538/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16539 which can conflict with char socket(); below. */
c63c7106
VZ
16540#include <assert.h>
16541/* Override any gcc2 internal prototype to avoid an error. */
16542/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16543 builtin and then its argument prototype would still apply. */
16544char socket();
16545
16546int main() {
c63c7106
VZ
16547
16548/* The GNU C library defines this for functions which it implements
16549 to always fail with ENOSYS. Some functions are actually named
16550 something starting with __ and the normal name is an alias. */
16551#if defined (__stub_socket) || defined (__stub___socket)
16552choke me
16553#else
698dcdb6 16554socket();
c63c7106
VZ
16555#endif
16556
698dcdb6
VZ
16557; return 0; }
16558EOF
7cf43d5e 16559if { (eval echo configure:16560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16560 rm -rf conftest*
16561 eval "ac_cv_func_socket=yes"
16562else
16563 echo "configure: failed program was:" >&5
16564 cat conftest.$ac_ext >&5
16565 rm -rf conftest*
16566 eval "ac_cv_func_socket=no"
16567fi
16568rm -f conftest*
16569fi
16570
16571if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16572 echo "$ac_t""yes" 1>&6
c63c7106
VZ
16573 :
16574else
698dcdb6
VZ
16575 echo "$ac_t""no" 1>&6
16576echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
7cf43d5e 16577echo "configure:16578: checking for socket in -lsocket" >&5
698dcdb6
VZ
16578ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16579if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16580 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16581else
698dcdb6 16582 ac_save_LIBS="$LIBS"
c63c7106 16583LIBS="-lsocket $LIBS"
698dcdb6 16584cat > conftest.$ac_ext <<EOF
7cf43d5e 16585#line 16586 "configure"
c63c7106
VZ
16586#include "confdefs.h"
16587/* Override any gcc2 internal prototype to avoid an error. */
16588/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16589 builtin and then its argument prototype would still apply. */
16590char socket();
16591
16592int main() {
16593socket()
16594; return 0; }
16595EOF
7cf43d5e 16596if { (eval echo configure:16597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16597 rm -rf conftest*
16598 eval "ac_cv_lib_$ac_lib_var=yes"
16599else
16600 echo "configure: failed program was:" >&5
16601 cat conftest.$ac_ext >&5
16602 rm -rf conftest*
16603 eval "ac_cv_lib_$ac_lib_var=no"
16604fi
16605rm -f conftest*
16606LIBS="$ac_save_LIBS"
16607
16608fi
16609if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16610 echo "$ac_t""yes" 1>&6
c63c7106 16611 INET_LINK="$INET_LINK -lsocket"
c63c7106 16612else
698dcdb6 16613 echo "$ac_t""no" 1>&6
afc31813 16614
3a922bb4
RL
16615 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
16616 wxUSE_SOCKETS=no
16617
698dcdb6 16618
6232543b 16619fi
b089607b 16620
3a922bb4 16621
1e487827 16622fi
afc31813 16623
3a922bb4 16624 fi
51a9faba 16625
3a922bb4
RL
16626
16627 if test "$wxUSE_SOCKETS" = "yes" ; then
16628 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
7cf43d5e 16629echo "configure:16630: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
16630if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16631 echo $ac_n "(cached) $ac_c" 1>&6
16632else
16633
3a922bb4
RL
16634
16635 ac_ext=C
698dcdb6 16636# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16637ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16638ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16639ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16640cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16641
698dcdb6 16642
3a922bb4 16643 cat > conftest.$ac_ext <<EOF
7cf43d5e 16644#line 16645 "configure"
afc31813 16645#include "confdefs.h"
51a9faba 16646
3a922bb4
RL
16647 #include <sys/types.h>
16648 #include <sys/socket.h>
16649
698dcdb6 16650int main() {
51a9faba 16651
3a922bb4
RL
16652 socklen_t len;
16653 getsockname(0, 0, &len);
16654
698dcdb6
VZ
16655; return 0; }
16656EOF
7cf43d5e 16657if { (eval echo configure:16658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16658 rm -rf conftest*
51a9faba 16659 wx_cv_type_getsockname3=socklen_t
afc31813 16660else
698dcdb6
VZ
16661 echo "configure: failed program was:" >&5
16662 cat conftest.$ac_ext >&5
16663 rm -rf conftest*
16664 cat > conftest.$ac_ext <<EOF
7cf43d5e 16665#line 16666 "configure"
afc31813 16666#include "confdefs.h"
51a9faba 16667
3a922bb4
RL
16668 #include <sys/types.h>
16669 #include <sys/socket.h>
16670
698dcdb6 16671int main() {
51a9faba 16672
3a922bb4
RL
16673 size_t len;
16674 getsockname(0, 0, &len);
16675
698dcdb6
VZ
16676; return 0; }
16677EOF
7cf43d5e 16678if { (eval echo configure:16679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16679 rm -rf conftest*
51a9faba 16680 wx_cv_type_getsockname3=size_t
afc31813 16681else
698dcdb6
VZ
16682 echo "configure: failed program was:" >&5
16683 cat conftest.$ac_ext >&5
16684 rm -rf conftest*
16685 cat > conftest.$ac_ext <<EOF
7cf43d5e 16686#line 16687 "configure"
afc31813 16687#include "confdefs.h"
51a9faba 16688
3a922bb4
RL
16689 #include <sys/types.h>
16690 #include <sys/socket.h>
16691
698dcdb6 16692int main() {
51a9faba 16693
3a922bb4
RL
16694 int len;
16695 getsockname(0, 0, &len);
16696
698dcdb6
VZ
16697; return 0; }
16698EOF
7cf43d5e 16699if { (eval echo configure:16700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16700 rm -rf conftest*
51a9faba 16701 wx_cv_type_getsockname3=int
afc31813 16702else
698dcdb6
VZ
16703 echo "configure: failed program was:" >&5
16704 cat conftest.$ac_ext >&5
16705 rm -rf conftest*
16706 wx_cv_type_getsockname3=unknown
3a922bb4 16707
afc31813 16708fi
698dcdb6 16709rm -f conftest*
3a922bb4 16710
afc31813 16711fi
698dcdb6 16712rm -f conftest*
3a922bb4 16713
afc31813 16714fi
698dcdb6 16715rm -f conftest*
51a9faba 16716
3a922bb4 16717 ac_ext=c
698dcdb6 16718# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 16719ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16720ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16721ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16722cross_compiling=$ac_cv_prog_cc_cross
afc31813 16723
3a922bb4 16724
51a9faba 16725fi
698dcdb6
VZ
16726
16727echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 16728
3a922bb4
RL
16729 if test "$wx_cv_type_getsockname3" = "unknown"; then
16730 wxUSE_SOCKETS=no
16731 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
16732 else
16733 cat >> confdefs.h <<EOF
51a9faba
VZ
16734#define SOCKLEN_T $wx_cv_type_getsockname3
16735EOF
16736
3a922bb4 16737 fi
51a9faba
VZ
16738 fi
16739fi
afc31813 16740
51a9faba 16741if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 16742 cat >> confdefs.h <<\EOF
afc31813
VZ
16743#define wxUSE_SOCKETS 1
16744EOF
16745
70f7a477 16746 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
16747fi
16748
698dcdb6 16749
dc3d889d
VZ
16750if test "$wxUSE_GUI" = "yes"; then
16751
3a922bb4
RL
16752 if test "$TOOLKIT" != "MSW"; then
16753 if test "$wxUSE_JOYSTICK" = "yes"; then
16754 for ac_hdr in linux/joystick.h
10f2d63a 16755do
698dcdb6
VZ
16756ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16757echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7cf43d5e 16758echo "configure:16759: checking for $ac_hdr" >&5
698dcdb6
VZ
16759if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16760 echo $ac_n "(cached) $ac_c" 1>&6
16761else
16762 cat > conftest.$ac_ext <<EOF
7cf43d5e 16763#line 16764 "configure"
10f2d63a 16764#include "confdefs.h"
698dcdb6
VZ
16765#include <$ac_hdr>
16766EOF
16767ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7cf43d5e 16768{ (eval echo configure:16769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
16769ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16770if test -z "$ac_err"; then
16771 rm -rf conftest*
16772 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 16773else
698dcdb6
VZ
16774 echo "$ac_err" >&5
16775 echo "configure: failed program was:" >&5
10f2d63a 16776 cat conftest.$ac_ext >&5
698dcdb6
VZ
16777 rm -rf conftest*
16778 eval "ac_cv_header_$ac_safe=no"
10f2d63a 16779fi
698dcdb6 16780rm -f conftest*
10f2d63a 16781fi
698dcdb6
VZ
16782if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16783 echo "$ac_t""yes" 1>&6
16784 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16785 cat >> confdefs.h <<EOF
16786#define $ac_tr_hdr 1
10f2d63a 16787EOF
698dcdb6
VZ
16788
16789else
16790 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16791fi
16792done
16793
3a922bb4
RL
16794 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
16795 wxUSE_JOYSTICK=no
16796 echo "configure: warning: Joystick not supported by this system" 1>&2
16797 fi
16798 fi
16799 fi
b089607b 16800
3a922bb4
RL
16801 if test "$wxUSE_JOYSTICK" = "yes"; then
16802 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16803#define wxUSE_JOYSTICK 1
16804EOF
16805
3a922bb4
RL
16806 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
16807 fi
dc3d889d
VZ
16808fi
16809
698dcdb6 16810
b089607b
VZ
16811if test "$TOOLKIT" != "MSW"; then
16812
3a922bb4
RL
16813 HAVE_DL_FUNCS=0
16814 HAVE_SHL_FUNCS=0
16815 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
16816 if test "$USE_DARWIN" = 1; then
16817 HAVE_DL_FUNCS=1
16818 else
16819 for ac_func in dlopen
10f2d63a 16820do
698dcdb6 16821echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7cf43d5e 16822echo "configure:16823: checking for $ac_func" >&5
698dcdb6
VZ
16823if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16824 echo $ac_n "(cached) $ac_c" 1>&6
16825else
16826 cat > conftest.$ac_ext <<EOF
7cf43d5e 16827#line 16828 "configure"
10f2d63a
VZ
16828#include "confdefs.h"
16829/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16830 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16831#include <assert.h>
16832/* Override any gcc2 internal prototype to avoid an error. */
16833/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16834 builtin and then its argument prototype would still apply. */
16835char $ac_func();
16836
16837int main() {
10f2d63a
VZ
16838
16839/* The GNU C library defines this for functions which it implements
16840 to always fail with ENOSYS. Some functions are actually named
16841 something starting with __ and the normal name is an alias. */
16842#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16843choke me
16844#else
698dcdb6 16845$ac_func();
10f2d63a
VZ
16846#endif
16847
698dcdb6
VZ
16848; return 0; }
16849EOF
7cf43d5e 16850if { (eval echo configure:16851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16851 rm -rf conftest*
16852 eval "ac_cv_func_$ac_func=yes"
16853else
16854 echo "configure: failed program was:" >&5
16855 cat conftest.$ac_ext >&5
16856 rm -rf conftest*
16857 eval "ac_cv_func_$ac_func=no"
16858fi
16859rm -f conftest*
16860fi
16861
16862if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16863 echo "$ac_t""yes" 1>&6
16864 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16865 cat >> confdefs.h <<EOF
16866#define $ac_tr_func 1
16867EOF
16868
3a922bb4 16869 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16870#define HAVE_DLOPEN 1
16871EOF
16872
3a922bb4
RL
16873 HAVE_DL_FUNCS=1
16874
10f2d63a 16875else
698dcdb6
VZ
16876 echo "$ac_t""no" 1>&6
16877echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
7cf43d5e 16878echo "configure:16879: checking for dlopen in -ldl" >&5
698dcdb6
VZ
16879ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16880if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16881 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16882else
698dcdb6 16883 ac_save_LIBS="$LIBS"
10f2d63a 16884LIBS="-ldl $LIBS"
698dcdb6 16885cat > conftest.$ac_ext <<EOF
7cf43d5e 16886#line 16887 "configure"
10f2d63a
VZ
16887#include "confdefs.h"
16888/* Override any gcc2 internal prototype to avoid an error. */
16889/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16890 builtin and then its argument prototype would still apply. */
16891char dlopen();
16892
16893int main() {
16894dlopen()
16895; return 0; }
16896EOF
7cf43d5e 16897if { (eval echo configure:16898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16898 rm -rf conftest*
16899 eval "ac_cv_lib_$ac_lib_var=yes"
16900else
16901 echo "configure: failed program was:" >&5
16902 cat conftest.$ac_ext >&5
16903 rm -rf conftest*
16904 eval "ac_cv_lib_$ac_lib_var=no"
16905fi
16906rm -f conftest*
16907LIBS="$ac_save_LIBS"
16908
16909fi
16910if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16911 echo "$ac_t""yes" 1>&6
16912
3a922bb4 16913 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16914#define HAVE_DLOPEN 1
16915EOF
16916
3a922bb4
RL
16917 HAVE_DL_FUNCS=1
16918 LIBS="$LIBS -ldl"
16919
10f2d63a 16920else
698dcdb6 16921 echo "$ac_t""no" 1>&6
10f2d63a 16922
3a922bb4 16923 for ac_func in shl_load
10f2d63a 16924do
698dcdb6 16925echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7cf43d5e 16926echo "configure:16927: checking for $ac_func" >&5
698dcdb6
VZ
16927if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16928 echo $ac_n "(cached) $ac_c" 1>&6
16929else
16930 cat > conftest.$ac_ext <<EOF
7cf43d5e 16931#line 16932 "configure"
10f2d63a
VZ
16932#include "confdefs.h"
16933/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16934 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16935#include <assert.h>
16936/* Override any gcc2 internal prototype to avoid an error. */
16937/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16938 builtin and then its argument prototype would still apply. */
16939char $ac_func();
16940
16941int main() {
10f2d63a
VZ
16942
16943/* The GNU C library defines this for functions which it implements
16944 to always fail with ENOSYS. Some functions are actually named
16945 something starting with __ and the normal name is an alias. */
16946#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16947choke me
16948#else
698dcdb6 16949$ac_func();
10f2d63a
VZ
16950#endif
16951
698dcdb6
VZ
16952; return 0; }
16953EOF
7cf43d5e 16954if { (eval echo configure:16955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16955 rm -rf conftest*
16956 eval "ac_cv_func_$ac_func=yes"
16957else
16958 echo "configure: failed program was:" >&5
16959 cat conftest.$ac_ext >&5
16960 rm -rf conftest*
16961 eval "ac_cv_func_$ac_func=no"
16962fi
16963rm -f conftest*
16964fi
16965
16966if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16967 echo "$ac_t""yes" 1>&6
16968 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16969 cat >> confdefs.h <<EOF
16970#define $ac_tr_func 1
16971EOF
16972
3a922bb4 16973 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16974#define HAVE_SHL_LOAD 1
16975EOF
16976
3a922bb4
RL
16977 HAVE_SHL_FUNCS=1
16978
10f2d63a 16979else
698dcdb6
VZ
16980 echo "$ac_t""no" 1>&6
16981echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
7cf43d5e 16982echo "configure:16983: checking for dld in -lshl_load" >&5
698dcdb6
VZ
16983ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16984if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16985 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16986else
698dcdb6 16987 ac_save_LIBS="$LIBS"
f6bcfd97 16988LIBS="-lshl_load $LIBS"
698dcdb6 16989cat > conftest.$ac_ext <<EOF
7cf43d5e 16990#line 16991 "configure"
f6bcfd97
BP
16991#include "confdefs.h"
16992/* Override any gcc2 internal prototype to avoid an error. */
16993/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16994 builtin and then its argument prototype would still apply. */
16995char dld();
16996
16997int main() {
16998dld()
16999; return 0; }
17000EOF
7cf43d5e 17001if { (eval echo configure:17002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17002 rm -rf conftest*
17003 eval "ac_cv_lib_$ac_lib_var=yes"
17004else
17005 echo "configure: failed program was:" >&5
17006 cat conftest.$ac_ext >&5
17007 rm -rf conftest*
17008 eval "ac_cv_lib_$ac_lib_var=no"
17009fi
17010rm -f conftest*
17011LIBS="$ac_save_LIBS"
f6bcfd97 17012
698dcdb6
VZ
17013fi
17014if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17015 echo "$ac_t""yes" 1>&6
17016
3a922bb4
RL
17017 HAVE_SHL_FUNCS=1
17018 LIBS="$LIBS -ldld"
17019
698dcdb6
VZ
17020else
17021 echo "$ac_t""no" 1>&6
f6bcfd97
BP
17022fi
17023
3a922bb4 17024
10f2d63a
VZ
17025fi
17026done
17027
3a922bb4 17028
10f2d63a
VZ
17029fi
17030
3a922bb4 17031
10f2d63a
VZ
17032fi
17033done
17034
1e487827 17035
3a922bb4
RL
17036 if test "$HAVE_DL_FUNCS" = 1; then
17037 for ac_func in dlerror
f6bcfd97 17038do
698dcdb6 17039echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7cf43d5e 17040echo "configure:17041: checking for $ac_func" >&5
698dcdb6
VZ
17041if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17042 echo $ac_n "(cached) $ac_c" 1>&6
17043else
17044 cat > conftest.$ac_ext <<EOF
7cf43d5e 17045#line 17046 "configure"
f6bcfd97
BP
17046#include "confdefs.h"
17047/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17048 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
17049#include <assert.h>
17050/* Override any gcc2 internal prototype to avoid an error. */
17051/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17052 builtin and then its argument prototype would still apply. */
17053char $ac_func();
17054
17055int main() {
f6bcfd97
BP
17056
17057/* The GNU C library defines this for functions which it implements
17058 to always fail with ENOSYS. Some functions are actually named
17059 something starting with __ and the normal name is an alias. */
17060#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17061choke me
17062#else
698dcdb6 17063$ac_func();
f6bcfd97
BP
17064#endif
17065
698dcdb6
VZ
17066; return 0; }
17067EOF
7cf43d5e 17068if { (eval echo configure:17069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17069 rm -rf conftest*
17070 eval "ac_cv_func_$ac_func=yes"
17071else
17072 echo "configure: failed program was:" >&5
17073 cat conftest.$ac_ext >&5
17074 rm -rf conftest*
17075 eval "ac_cv_func_$ac_func=no"
17076fi
17077rm -f conftest*
17078fi
17079
17080if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17081 echo "$ac_t""yes" 1>&6
17082 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17083 cat >> confdefs.h <<EOF
17084#define $ac_tr_func 1
17085EOF
17086 cat >> confdefs.h <<\EOF
f6bcfd97
BP
17087#define HAVE_DLERROR 1
17088EOF
17089
17090else
698dcdb6
VZ
17091 echo "$ac_t""no" 1>&6
17092echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
7cf43d5e 17093echo "configure:17094: checking for dlerror in -ldl" >&5
698dcdb6
VZ
17094ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
17095if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17096 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 17097else
698dcdb6 17098 ac_save_LIBS="$LIBS"
f6bcfd97 17099LIBS="-ldl $LIBS"
698dcdb6 17100cat > conftest.$ac_ext <<EOF
7cf43d5e 17101#line 17102 "configure"
f6bcfd97
BP
17102#include "confdefs.h"
17103/* Override any gcc2 internal prototype to avoid an error. */
17104/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17105 builtin and then its argument prototype would still apply. */
17106char dlerror();
17107
17108int main() {
17109dlerror()
17110; return 0; }
17111EOF
7cf43d5e 17112if { (eval echo configure:17113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17113 rm -rf conftest*
17114 eval "ac_cv_lib_$ac_lib_var=yes"
17115else
17116 echo "configure: failed program was:" >&5
17117 cat conftest.$ac_ext >&5
17118 rm -rf conftest*
17119 eval "ac_cv_lib_$ac_lib_var=no"
17120fi
17121rm -f conftest*
17122LIBS="$ac_save_LIBS"
17123
17124fi
17125if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17126 echo "$ac_t""yes" 1>&6
17127 cat >> confdefs.h <<\EOF
f6bcfd97
BP
17128#define HAVE_DLERROR 1
17129EOF
17130
698dcdb6
VZ
17131else
17132 echo "$ac_t""no" 1>&6
f6bcfd97
BP
17133fi
17134
17135fi
17136done
17137
3a922bb4
RL
17138 fi
17139 fi
f6bcfd97 17140
3a922bb4
RL
17141 if test "$HAVE_DL_FUNCS" = 0; then
17142 if test "$HAVE_SHL_FUNCS" = 0; then
17143 if test "$USE_UNIX" = 1; then
17144 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
17145 wxUSE_DYNLIB_CLASS=no
17146 else
17147 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
17148 fi
17149 fi
10f2d63a
VZ
17150 fi
17151 fi
17152fi
17153
17154if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 17155 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17156#define wxUSE_DYNLIB_CLASS 1
17157EOF
17158
b12915c1
VZ
17159else
17160 wxUSE_ODBC=no
17161 wxUSE_SERIAL=no
10f2d63a
VZ
17162fi
17163
698dcdb6 17164
1e6feb95
VZ
17165if test "$wxUSE_FONTMAP" = "yes" ; then
17166 cat >> confdefs.h <<\EOF
17167#define wxUSE_FONTMAP 1
17168EOF
17169
17170fi
17171
10f2d63a 17172if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 17173 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17174#define wxUSE_UNICODE 1
17175EOF
17176
17177fi
17178
10f2d63a 17179if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 17180 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17181#define wxUSE_EXPERIMENTAL_PRINTF 1
17182EOF
17183
17184fi
17185
698dcdb6 17186
b12915c1 17187if test "$wxUSE_SERIAL" = "yes" ; then
698dcdb6 17188 cat >> confdefs.h <<\EOF
b12915c1
VZ
17189#define wxUSE_SERIAL 1
17190EOF
17191
17192fi
17193
698dcdb6 17194
10f2d63a
VZ
17195IODBC_C_SRC=""
17196if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 17197 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17198#define wxUSE_ODBC 1
17199EOF
17200
17201 WXODBCFLAG="-D_IODBC_"
17202 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
17203fi
17204
698dcdb6 17205
10f2d63a 17206if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 17207 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17208#define wxUSE_POSTSCRIPT 1
17209EOF
17210
17211fi
17212
698dcdb6 17213cat >> confdefs.h <<\EOF
10f2d63a
VZ
17214#define wxUSE_AFM_FOR_POSTSCRIPT 1
17215EOF
17216
698dcdb6
VZ
17217
17218cat >> confdefs.h <<\EOF
10f2d63a
VZ
17219#define wxUSE_NORMALIZED_PS_FONTS 1
17220EOF
17221
698dcdb6
VZ
17222
17223
10f2d63a 17224if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 17225 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17226#define wxUSE_CONSTRAINTS 1
17227EOF
17228
17229 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
17230fi
17231
17232if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab
RL
17233 if test "$wxUSE_UNIVERSAL" = "yes"; then
17234 echo "configure: warning: MDI is not supported for wxUNIVERSAL yet... disabled" 1>&2
17235 wxUSE_MDI_ARCHITECTURE=no
17236 fi
17237
17238 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17239 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17240#define wxUSE_MDI_ARCHITECTURE 1
17241EOF
17242
fc26f4ab
RL
17243 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
17244 fi
10f2d63a
VZ
17245fi
17246
17247if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 17248 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17249#define wxUSE_DOC_VIEW_ARCHITECTURE 1
17250EOF
17251
17252 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
17253 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17254 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
17255 fi
17256fi
17257
17258if test "$wxUSE_HELP" = "yes"; then
698dcdb6 17259 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17260#define wxUSE_HELP 1
17261EOF
17262
17263 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 17264
3e44f09d 17265 if test "$USE_WIN32" = 1; then
031d8228 17266 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
29fd3c0c
VS
17267 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
17268echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
7cf43d5e 17269echo "configure:17270: checking for htmlhelp.h" >&5
29fd3c0c
VS
17270if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17271 echo $ac_n "(cached) $ac_c" 1>&6
17272else
17273 cat > conftest.$ac_ext <<EOF
7cf43d5e 17274#line 17275 "configure"
29fd3c0c
VS
17275#include "confdefs.h"
17276#include <htmlhelp.h>
17277EOF
17278ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7cf43d5e 17279{ (eval echo configure:17280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
17280ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17281if test -z "$ac_err"; then
17282 rm -rf conftest*
17283 eval "ac_cv_header_$ac_safe=yes"
17284else
17285 echo "$ac_err" >&5
17286 echo "configure: failed program was:" >&5
17287 cat conftest.$ac_ext >&5
17288 rm -rf conftest*
17289 eval "ac_cv_header_$ac_safe=no"
17290fi
17291rm -f conftest*
17292fi
17293if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17294 echo "$ac_t""yes" 1>&6
17295
17296 cat >> confdefs.h <<\EOF
17297#define wxUSE_MS_HTML_HELP 1
17298EOF
17299
17300
17301else
17302 echo "$ac_t""no" 1>&6
17303
fc26f4ab 17304 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
29fd3c0c
VS
17305 wxUSE_MS_HTML_HELP=no
17306
17307fi
17308
3e44f09d 17309 fi
3379ed37 17310 fi
031d8228
VS
17311
17312 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17313 if test "$wxUSE_HTML" = "yes"; then
17314 cat >> confdefs.h <<\EOF
17315#define wxUSE_WXHTML_HELP 1
17316EOF
17317
17318 else
17319 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17320 wxUSE_WXHTML_HELP=no
17321 fi
17322 fi
10f2d63a
VZ
17323fi
17324
17325if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17326 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 17327 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 17328 else
698dcdb6 17329 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17330#define wxUSE_PRINTING_ARCHITECTURE 1
17331EOF
17332
17333 fi
17334 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17335fi
17336
17337if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 17338 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17339#define wxUSE_PROLOGIO 1
17340EOF
17341
17342fi
17343
17344if test "$wxUSE_RESOURCES" = "yes" ; then
3379ed37 17345 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17346#define wxUSE_RESOURCES 1
17347EOF
17348
3379ed37 17349 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
10f2d63a
VZ
17350fi
17351
17352if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 17353 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17354#define wxUSE_X_RESOURCES 1
17355EOF
17356
17357fi
17358
698dcdb6 17359
3a922bb4
RL
17360if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
17361 -o "$wxUSE_CLIPBOARD" = "yes" \
17362 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
2b9bdf71 17363 for ac_hdr in ole2.h
10f2d63a 17364do
698dcdb6
VZ
17365ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17366echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7cf43d5e 17367echo "configure:17368: checking for $ac_hdr" >&5
698dcdb6
VZ
17368if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17369 echo $ac_n "(cached) $ac_c" 1>&6
17370else
17371 cat > conftest.$ac_ext <<EOF
7cf43d5e 17372#line 17373 "configure"
10f2d63a 17373#include "confdefs.h"
698dcdb6
VZ
17374#include <$ac_hdr>
17375EOF
17376ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7cf43d5e 17377{ (eval echo configure:17378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
17378ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17379if test -z "$ac_err"; then
17380 rm -rf conftest*
17381 eval "ac_cv_header_$ac_safe=yes"
1e487827 17382else
698dcdb6
VZ
17383 echo "$ac_err" >&5
17384 echo "configure: failed program was:" >&5
10f2d63a 17385 cat conftest.$ac_ext >&5
698dcdb6
VZ
17386 rm -rf conftest*
17387 eval "ac_cv_header_$ac_safe=no"
10f2d63a 17388fi
698dcdb6 17389rm -f conftest*
10f2d63a 17390fi
698dcdb6
VZ
17391if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17392 echo "$ac_t""yes" 1>&6
17393 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17394 cat >> confdefs.h <<EOF
17395#define $ac_tr_hdr 1
10f2d63a 17396EOF
698dcdb6
VZ
17397
17398else
17399 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17400fi
17401done
17402
698dcdb6 17403
2b9bdf71
VZ
17404 if test "$ac_cv_header_ole2_h" = "yes" ; then
17405 if test "$GCC" = yes ; then
17406 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
2b9bdf71
VZ
17407 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
17408 LIBS="$LIBS -lrpcrt4 -loleaut32 -lole32 -luuid"
17409 cat >> confdefs.h <<\EOF
4f11a343
VS
17410#define wxUSE_OLE 1
17411EOF
17412
b64f0a5f 17413
2b9bdf71
VZ
17414 fi
17415
17416 cat >> confdefs.h <<\EOF
17417#define wxUSE_DATAOBJ 1
17418EOF
17419
17420 else
17421 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
17422
17423 wxUSE_CLIPBOARD=no
17424 wxUSE_DRAG_AND_DROP=no
17425 wxUSE_DATAOBJ=no
17426 fi
17427
17428 if test "$wxUSE_METAFILE" = "yes"; then
17429 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17430#define wxUSE_METAFILE 1
17431EOF
17432
2b9bdf71
VZ
17433
17434 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17435#define wxUSE_ENH_METAFILE 1
17436EOF
17437
2b9bdf71
VZ
17438 fi
17439fi
17440
17441if test "$wxUSE_IPC" = "yes"; then
17442 if test "$wxUSE_SOCKETS" != "yes"; then
17443 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
17444 fi
17445
17446 cat >> confdefs.h <<\EOF
17447#define wxUSE_IPC 1
17448EOF
17449
17450fi
17451
17452if test "$wxUSE_CLIPBOARD" = "yes"; then
17453 cat >> confdefs.h <<\EOF
17454#define wxUSE_CLIPBOARD 1
17455EOF
17456
673f4220 17457
e33ef661 17458 cat >> confdefs.h <<\EOF
673f4220
VZ
17459#define wxUSE_DATAOBJ 1
17460EOF
17461
2b9bdf71
VZ
17462fi
17463
17464if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17465 if test "$wxUSE_GTK" = 1; then
17466 if test "$WXGTK12" != 1; then
17467 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
10f2d63a
VZ
17468 wxUSE_DRAG_AND_DROP=no
17469 fi
17470 fi
17471
2b9bdf71
VZ
17472 if test "$wxUSE_MOTIF" = 1; then
17473 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
17474 wxUSE_DRAG_AND_DROP=no
17475 fi
17476
17477 if test "$wxUSE_MAC" = 1; then
17478 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
17479 wxUSE_DRAG_AND_DROP=no
17480 fi
17481
10f2d63a 17482 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 17483 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17484#define wxUSE_DRAG_AND_DROP 1
17485EOF
17486
17487 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17488 fi
17489
17490fi
17491
17492if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 17493 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17494#define wxUSE_SPLINES 1
17495EOF
17496
17497fi
17498
698dcdb6 17499
1e6feb95
VZ
17500USES_CONTROLS=0
17501if test "$wxUSE_CONTROLS" = "yes"; then
17502 USES_CONTROLS=1
17503fi
17504
10f2d63a 17505if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 17506 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17507#define wxUSE_ACCEL 1
17508EOF
17509
1e6feb95
VZ
17510 USES_CONTROLS=1
17511fi
17512
17513if test "$wxUSE_BUTTON" = "yes"; then
17514 cat >> confdefs.h <<\EOF
17515#define wxUSE_BUTTON 1
17516EOF
17517
17518 USES_CONTROLS=1
17519fi
17520
17521if test "$wxUSE_BMPBUTTON" = "yes"; then
17522 cat >> confdefs.h <<\EOF
17523#define wxUSE_BMPBUTTON 1
17524EOF
17525
17526 USES_CONTROLS=1
17527fi
17528
17529if test "$wxUSE_CALCTRL" = "yes"; then
17530 cat >> confdefs.h <<\EOF
17531#define wxUSE_CALENDARCTRL 1
17532EOF
17533
17534 USES_CONTROLS=1
17535 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
17536fi
17537
17538if test "$wxUSE_CARET" = "yes"; then
698dcdb6 17539 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17540#define wxUSE_CARET 1
17541EOF
17542
1e6feb95 17543 USES_CONTROLS=1
10f2d63a
VZ
17544 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17545fi
17546
17547if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 17548 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17549#define wxUSE_COMBOBOX 1
17550EOF
17551
1e6feb95 17552 USES_CONTROLS=1
10f2d63a
VZ
17553fi
17554
17555if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 17556 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17557#define wxUSE_CHOICE 1
17558EOF
17559
1e6feb95 17560 USES_CONTROLS=1
10f2d63a
VZ
17561fi
17562
17563if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 17564 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17565#define wxUSE_CHECKBOX 1
17566EOF
17567
1e6feb95 17568 USES_CONTROLS=1
10f2d63a
VZ
17569fi
17570
17571if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 17572 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17573#define wxUSE_CHECKLISTBOX 1
17574EOF
17575
1e6feb95 17576 USES_CONTROLS=1
10f2d63a
VZ
17577 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17578fi
17579
17580if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 17581 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17582#define wxUSE_GAUGE 1
17583EOF
17584
1e6feb95 17585 USES_CONTROLS=1
10f2d63a
VZ
17586fi
17587
d6a55c4b
VZ
17588if test "$wxUSE_NEW_GRID" = "yes"; then
17589 wxUSE_GRID="yes"
698dcdb6 17590 cat >> confdefs.h <<\EOF
d6a55c4b 17591#define wxUSE_NEW_GRID 1
10f2d63a
VZ
17592EOF
17593
1e6feb95 17594 USES_CONTROLS=1
d6a55c4b 17595 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
17596fi
17597
d6a55c4b 17598if test "$wxUSE_GRID" = "yes"; then
698dcdb6 17599 cat >> confdefs.h <<\EOF
d6a55c4b 17600#define wxUSE_GRID 1
10f2d63a
VZ
17601EOF
17602
1e6feb95 17603 USES_CONTROLS=1
d6a55c4b 17604 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
17605fi
17606
17607if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17608 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17609#define wxUSE_IMAGLIST 1
17610EOF
17611
17612fi
17613
17614if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 17615 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17616#define wxUSE_LISTBOX 1
17617EOF
17618
1e6feb95 17619 USES_CONTROLS=1
10f2d63a
VZ
17620fi
17621
17622if test "$wxUSE_LISTCTRL" = "yes"; then
17623 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17624 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17625#define wxUSE_LISTCTRL 1
17626EOF
17627
1e6feb95 17628 USES_CONTROLS=1
10f2d63a
VZ
17629 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17630 else
698dcdb6 17631 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17632 fi
17633fi
17634
17635if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 17636 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17637#define wxUSE_NOTEBOOK 1
17638EOF
17639
1e6feb95 17640 USES_CONTROLS=1
10f2d63a
VZ
17641 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17642fi
17643
24176f2c
GD
17644if test "$wxUSE_PROPSHEET" = "yes"; then
17645 cat >> confdefs.h <<\EOF
17646#define wxUSE_PROPSHEET 1
17647EOF
17648
17649 USES_CONTROLS=1
17650 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
17651fi
17652
10f2d63a 17653if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 17654 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17655#define wxUSE_RADIOBOX 1
17656EOF
17657
1e6feb95 17658 USES_CONTROLS=1
10f2d63a
VZ
17659fi
17660
17661if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 17662 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17663#define wxUSE_RADIOBTN 1
17664EOF
17665
1e6feb95 17666 USES_CONTROLS=1
10f2d63a
VZ
17667fi
17668
17669if test "$wxUSE_SASH" = "yes"; then
698dcdb6 17670 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17671#define wxUSE_SASH 1
17672EOF
17673
17674 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17675fi
17676
17677if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 17678 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17679#define wxUSE_SCROLLBAR 1
17680EOF
17681
1e6feb95 17682 USES_CONTROLS=1
741a9306 17683 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
17684fi
17685
17686if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 17687 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17688#define wxUSE_SLIDER 1
17689EOF
17690
1e6feb95 17691 USES_CONTROLS=1
10f2d63a
VZ
17692fi
17693
17694if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 17695 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17696#define wxUSE_SPINBTN 1
17697EOF
17698
1e6feb95 17699 USES_CONTROLS=1
10f2d63a
VZ
17700fi
17701
56cfaa52 17702if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 17703 cat >> confdefs.h <<\EOF
56cfaa52
RR
17704#define wxUSE_SPINCTRL 1
17705EOF
17706
1e6feb95 17707 USES_CONTROLS=1
56cfaa52
RR
17708fi
17709
10f2d63a 17710if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 17711 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17712#define wxUSE_SPLITTER 1
17713EOF
17714
17715 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17716fi
17717
17718if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 17719 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17720#define wxUSE_STATBMP 1
17721EOF
17722
1e6feb95 17723 USES_CONTROLS=1
10f2d63a
VZ
17724fi
17725
17726if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 17727 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17728#define wxUSE_STATBOX 1
17729EOF
17730
1e6feb95
VZ
17731 USES_CONTROLS=1
17732fi
17733
17734if test "$wxUSE_STATTEXT" = "yes"; then
17735 cat >> confdefs.h <<\EOF
17736#define wxUSE_STATTEXT 1
17737EOF
17738
17739 USES_CONTROLS=1
10f2d63a
VZ
17740fi
17741
17742if test "$wxUSE_STATLINE" = "yes"; then
17743 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 17744 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 17745 else
698dcdb6 17746 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17747#define wxUSE_STATLINE 1
17748EOF
17749
1e6feb95 17750 USES_CONTROLS=1
10f2d63a
VZ
17751 fi
17752fi
17753
17754if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 17755 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17756#define wxUSE_STATUSBAR 1
17757EOF
17758
1e6feb95 17759 USES_CONTROLS=1
698dcdb6 17760
2286341c 17761 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
17762fi
17763
17764if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 17765 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17766#define wxUSE_TAB_DIALOG 1
17767EOF
17768
17769 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17770fi
17771
1e6feb95
VZ
17772if test "$wxUSE_TEXTCTRL" = "yes"; then
17773 cat >> confdefs.h <<\EOF
17774#define wxUSE_TEXTCTRL 1
17775EOF
17776
17777 USES_CONTROLS=1
17778 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17779fi
17780
1db8dc4a 17781if test "$wxUSE_TOGGLEBTN" = "yes"; then
fc26f4ab
RL
17782 if test "$wxUSE_MAC" = 1 -o "$wxUSE_UNIVERSAL" = "yes"; then
17783 echo "configure: warning: Toggle button not yet supported under Mac OS X or wxUNIVERSAL... disabled" 1>&2
a45d7ab7
GD
17784 wxUSE_TOGGLEBTN=no
17785 fi
17786
17787 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17788 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
17789#define wxUSE_TOGGLEBTN 1
17790EOF
17791
1e6feb95 17792 USES_CONTROLS=1
a45d7ab7 17793 fi
1db8dc4a
VZ
17794fi
17795
360d6699 17796if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 17797 cat >> confdefs.h <<\EOF
360d6699
VZ
17798#define wxUSE_TOOLBAR_SIMPLE 1
17799EOF
17800
17801 wxUSE_TOOLBAR="yes"
1e6feb95 17802 USES_CONTROLS=1
360d6699
VZ
17803fi
17804
10f2d63a 17805if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 17806 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17807#define wxUSE_TOOLBAR 1
17808EOF
17809
1e6feb95 17810 USES_CONTROLS=1
698dcdb6 17811
360d6699
VZ
17812 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17813 wxUSE_TOOLBAR_NATIVE="yes"
17814 fi
17815
1e6feb95
VZ
17816 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17817 cat >> confdefs.h <<\EOF
360d6699
VZ
17818#define wxUSE_TOOLBAR_NATIVE 1
17819EOF
17820
1e6feb95
VZ
17821 USES_CONTROLS=1
17822 fi
17823
17824 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
17825fi
17826
10f2d63a
VZ
17827if test "$wxUSE_TOOLTIPS" = "yes"; then
17828 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 17829 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
10f2d63a
VZ
17830 else
17831 if test "$wxUSE_WINE" = 1; then
698dcdb6 17832 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
10f2d63a 17833 else
698dcdb6 17834 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17835#define wxUSE_TOOLTIPS 1
17836EOF
17837
17838 fi
17839 fi
17840fi
17841
17842if test "$wxUSE_TREECTRL" = "yes"; then
17843 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17844 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17845#define wxUSE_TREECTRL 1
17846EOF
17847
1e6feb95 17848 USES_CONTROLS=1
10f2d63a
VZ
17849 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17850 else
698dcdb6 17851 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17852 fi
17853fi
17854
9f41d601 17855if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65
GD
17856 if test "$wxUSE_MAC" = 1; then
17857 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
17858 else
17859 cat >> confdefs.h <<\EOF
9f41d601
RR
17860#define wxUSE_POPUPWIN 1
17861EOF
17862
6abe4b65
GD
17863 USES_CONTROLS=1
17864 fi
9f41d601
RR
17865fi
17866
1e6feb95
VZ
17867if test "$USES_CONTROLS" = 1; then
17868 cat >> confdefs.h <<\EOF
17869#define wxUSE_CONTROLS 1
10f2d63a
VZ
17870EOF
17871
10f2d63a
VZ
17872fi
17873
1e6feb95 17874
24176f2c
GD
17875if test "$wxUSE_TREELAYOUT" = "yes"; then
17876 cat >> confdefs.h <<\EOF
17877#define wxUSE_TREELAYOUT 1
17878EOF
17879
17880 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
17881fi
1e6feb95 17882
24fd6d87
VZ
17883if test "$wxUSE_DRAGIMAGE" = "yes"; then
17884 cat >> confdefs.h <<\EOF
17885#define wxUSE_DRAGIMAGE 1
17886EOF
17887
17888 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
17889fi
17890
1e6feb95 17891if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 17892 cat >> confdefs.h <<\EOF
1e6feb95 17893#define wxUSE_MENUS 1
10f2d63a
VZ
17894EOF
17895
1e6feb95 17896 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
17897fi
17898
1e6feb95
VZ
17899if test "$wxUSE_METAFILE" = "yes"; then
17900 cat >> confdefs.h <<\EOF
17901#define wxUSE_METAFILE 1
10f2d63a
VZ
17902EOF
17903
10f2d63a
VZ
17904fi
17905
1e6feb95
VZ
17906if test "$wxUSE_MIMETYPE" = "yes"; then
17907 cat >> confdefs.h <<\EOF
17908#define wxUSE_MIMETYPE 1
10f2d63a
VZ
17909EOF
17910
10f2d63a
VZ
17911fi
17912
3e44f09d
VZ
17913if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
17914 cat >> confdefs.h <<\EOF
17915#define wxUSE_SYSTEM_OPTIONS 1
17916EOF
17917
17918fi
17919
10f2d63a 17920if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 17921 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17922#define wxUSE_MINIFRAME 1
17923EOF
17924
17925 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
17926fi
17927
17928if test "$wxUSE_HTML" = "yes"; then
698dcdb6 17929 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17930#define wxUSE_HTML 1
17931EOF
17932
17933 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
17934fi
17935
17936if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 17937 cat >> confdefs.h <<\EOF
1e487827
VS
17938#define wxUSE_VALIDATORS 1
17939EOF
703e0a69 17940
698dcdb6
VZ
17941 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
17942fi
17943
edae8572
VZ
17944if test "$wxUSE_PALETTE" = "yes" ; then
17945 cat >> confdefs.h <<\EOF
17946#define wxUSE_PALETTE 1
17947EOF
17948
17949fi
17950
698dcdb6
VZ
17951if test "$wxUSE_IMAGE" = "yes" ; then
17952 cat >> confdefs.h <<\EOF
17953#define wxUSE_IMAGE 1
17954EOF
17955
17956fi
17957
17958if test "$wxUSE_GIF" = "yes" ; then
17959 cat >> confdefs.h <<\EOF
17960#define wxUSE_GIF 1
17961EOF
17962
17963fi
17964
17965if test "$wxUSE_PCX" = "yes" ; then
17966 cat >> confdefs.h <<\EOF
17967#define wxUSE_PCX 1
17968EOF
17969
17970fi
17971
17972if test "$wxUSE_PNM" = "yes" ; then
17973 cat >> confdefs.h <<\EOF
17974#define wxUSE_PNM 1
17975EOF
17976
17977fi
17978
17979if test "$wxUSE_XPM" = "yes" ; then
17980 cat >> confdefs.h <<\EOF
17981#define wxUSE_XPM 1
17982EOF
17983
17984fi
17985
17986
1e6feb95
VZ
17987if test "$wxUSE_CHOICEDLG" = "yes"; then
17988 cat >> confdefs.h <<\EOF
17989#define wxUSE_CHOICEDLG 1
17990EOF
17991
17992fi
17993
17994if test "$wxUSE_COLOURDLG" = "yes"; then
17995 cat >> confdefs.h <<\EOF
17996#define wxUSE_COLOURDLG 1
17997EOF
17998
17999fi
18000
18001if test "$wxUSE_FILEDLG" = "yes"; then
18002 cat >> confdefs.h <<\EOF
18003#define wxUSE_FILEDLG 1
18004EOF
18005
18006fi
18007
8db37e06
VZ
18008if test "$wxUSE_FINDREPLDLG" = "yes"; then
18009 cat >> confdefs.h <<\EOF
18010#define wxUSE_FINDREPLDLG 1
18011EOF
18012
18013fi
18014
1e6feb95
VZ
18015if test "$wxUSE_FONTDLG" = "yes"; then
18016 cat >> confdefs.h <<\EOF
18017#define wxUSE_FONTDLG 1
18018EOF
18019
18020fi
18021
18022if test "$wxUSE_DIRDLG" = "yes"; then
18023 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18024 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
18025 else
18026 if test "$wxUSE_TREECTRL" != "yes"; then
18027 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
18028 else
18029 cat >> confdefs.h <<\EOF
18030#define wxUSE_DIRDLG 1
18031EOF
18032
18033 fi
18034 fi
18035fi
18036
18037if test "$wxUSE_MSGDLG" = "yes"; then
18038 cat >> confdefs.h <<\EOF
18039#define wxUSE_MSGDLG 1
18040EOF
18041
18042fi
18043
18044if test "$wxUSE_NUMBERDLG" = "yes"; then
18045 cat >> confdefs.h <<\EOF
18046#define wxUSE_NUMBERDLG 1
18047EOF
18048
18049fi
18050
18051if test "$wxUSE_PROGRESSDLG" = "yes"; then
18052 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18053 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
18054 else
18055 cat >> confdefs.h <<\EOF
18056#define wxUSE_PROGRESSDLG 1
18057EOF
18058
18059 fi
18060fi
18061
cbca9943
VZ
18062if test "$wxUSE_SPLASH" = "yes"; then
18063 cat >> confdefs.h <<\EOF
18064#define wxUSE_SPLASH 1
18065EOF
18066
18067fi
18068
1e6feb95
VZ
18069if test "$wxUSE_STARTUP_TIPS" = "yes"; then
18070 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18071 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
18072 else
18073 cat >> confdefs.h <<\EOF
18074#define wxUSE_STARTUP_TIPS 1
18075EOF
18076
18077 fi
18078fi
18079
18080if test "$wxUSE_TEXTDLG" = "yes"; then
18081 cat >> confdefs.h <<\EOF
18082#define wxUSE_TEXTDLG 1
18083EOF
18084
18085fi
18086
b1f5d087
VZ
18087if test "$wxUSE_WIZARDDLG" = "yes"; then
18088 cat >> confdefs.h <<\EOF
18089#define wxUSE_WIZARDDLG 1
18090EOF
18091
18092 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
18093fi
18094
1e6feb95 18095
698dcdb6
VZ
18096if test "$cross_compiling" = "yes"; then
18097 OSINFO="\"$host\""
18098else
18099 OSINFO=`uname -s -r -m`
18100 OSINFO="\"$OSINFO\""
18101fi
18102
18103cat >> confdefs.h <<EOF
18104#define WXWIN_OS_DESCRIPTION $OSINFO
18105EOF
18106
18107
18108
06dda230
VZ
18109if test "x$prefix" != "xNONE"; then
18110 wxPREFIX=$prefix
18111else
18112 wxPREFIX=$ac_default_prefix
18113fi
18114
7e67ed0d 18115cat >> confdefs.h <<EOF
06dda230 18116#define wxINSTALL_PREFIX "$wxPREFIX"
7e67ed0d
VZ
18117EOF
18118
18119
18120
698dcdb6 18121GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
698dcdb6
VZ
18122
18123EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
3a922bb4 18124
f11bdd03 18125if test "$wxUSE_MAC" = 1 ; then
698dcdb6
VZ
18126 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
18127fi
3a922bb4 18128
698dcdb6
VZ
18129if test "$wxUSE_GUI" = "yes"; then
18130 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
3a922bb4
RL
18131
18132
18133 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
18134 drawing dynamic erase event exec font image \
18135 minimal richedit rotate widgets"
18136
3a922bb4
RL
18137 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
18138else
18139 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
18140fi
18141
18142LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
18143
3a922bb4 18144INCLUDES="-I. -I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
3e44f09d
VZ
18145$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
18146$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
698dcdb6
VZ
18147
18148if test "$wxUSE_GTK" = 1; then
18149 WXCONFIG_INCLUDE=""
18150else
18151 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
18152fi
18153
18154if test "$GXX" = yes ; then
18155 CXXWARNINGS="-Wall"
18156 fi
18157EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
18158
18159CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
18160CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
18161
18162LDFLAGS="$LDFLAGS $PROFILE"
18163
698dcdb6
VZ
18164SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
32832908 18232
2f51a9ec
GD
18233
18234
18235
18236
f6bcfd97 18237
dad6c0ea 18238
caa2c79b 18239
3711412e 18240
1e6feb95
VZ
18241
18242
0f3f1cbc 18243
18dbb1f6 18244
10f2d63a
VZ
18245
18246
698dcdb6 18247echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
7cf43d5e 18248echo "configure:18249: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
18249set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
18250if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
18251 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18252else
698dcdb6 18253 cat > conftestmake <<\EOF
10f2d63a
VZ
18254all:
18255 @echo 'ac_maketemp="${MAKE}"'
18256EOF
18257# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 18258eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
18259if test -n "$ac_maketemp"; then
18260 eval ac_cv_prog_make_${ac_make}_set=yes
18261else
18262 eval ac_cv_prog_make_${ac_make}_set=no
18263fi
698dcdb6 18264rm -f conftestmake
10f2d63a
VZ
18265fi
18266if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 18267 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
18268 SET_MAKE=
18269else
698dcdb6 18270 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18271 SET_MAKE="MAKE=${MAKE-make}"
18272fi
18273
698dcdb6 18274
3a922bb4
RL
18275if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
18276 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 18277fi
665bbe97 18278
698dcdb6 18279
10f2d63a 18280
2224580a 18281if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 18282 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
18283 wx_cv_path_ifs=$PATH_IFS
18284 wx_cv_program_ext=$PROGRAM_EXT
18285 wx_cv_target_library=$WX_TARGET_LIBRARY
7b6058cd 18286 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
3711412e 18287 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
93a20a27 18288 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
7b6058cd 18289 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
698dcdb6 18290 subdirs="demos samples utils contrib"
2224580a
VZ
18291
18292fi
10f2d63a 18293
698dcdb6
VZ
18294trap '' 1 2 15
18295cat > confcache <<\EOF
10f2d63a
VZ
18296# This file is a shell script that caches the results of configure
18297# tests run on this system so they can be shared between configure
698dcdb6
VZ
18298# scripts and configure runs. It is not useful on other systems.
18299# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 18300#
698dcdb6
VZ
18301# By default, configure uses ./config.cache as the cache file,
18302# creating it if it does not exist already. You can give configure
18303# the --cache-file=FILE option to use a different cache file; that is
18304# what configure does when it calls configure scripts in
18305# subdirectories, so they share the cache.
18306# Giving --cache-file=/dev/null disables caching, for debugging configure.
18307# config.status only pays attention to the cache file if you give it the
18308# --recheck option to rerun configure.
10f2d63a 18309#
698dcdb6 18310EOF
10f2d63a
VZ
18311# The following way of writing the cache mishandles newlines in values,
18312# but we know of no workaround that is simple, portable, and efficient.
18313# So, don't put newlines in cache variables' values.
18314# Ultrix sh set writes to stderr and can't be redirected directly,
18315# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
18316(set) 2>&1 |
18317 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18318 *ac_space=\ *)
18319 # `set' does not quote correctly, so add quotes (double-quote substitution
18320 # turns \\\\ into \\, and sed turns \\ into \).
18321 sed -n \
18322 -e "s/'/'\\\\''/g" \
18323 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18324 ;;
18325 *)
18326 # `set' quotes correctly as required by POSIX, so do not add quotes.
18327 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18328 ;;
18329 esac >> confcache
18330if cmp -s $cache_file confcache; then
18331 :
18332else
10f2d63a 18333 if test -w $cache_file; then
698dcdb6
VZ
18334 echo "updating cache $cache_file"
18335 cat confcache > $cache_file
10f2d63a
VZ
18336 else
18337 echo "not updating unwritable cache $cache_file"
18338 fi
18339fi
18340rm -f confcache
18341
698dcdb6
VZ
18342trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18343
10f2d63a
VZ
18344test "x$prefix" = xNONE && prefix=$ac_default_prefix
18345# Let make expand exec_prefix.
18346test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18347
698dcdb6
VZ
18348# Any assignment to VPATH causes Sun make to only execute
18349# the first set of double-colon rules, so remove it if not needed.
18350# If there is a colon in the path, we need to keep it.
10f2d63a 18351if test "x$srcdir" = x.; then
698dcdb6 18352 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
18353fi
18354
698dcdb6
VZ
18355trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18356
10f2d63a
VZ
18357DEFS=-DHAVE_CONFIG_H
18358
698dcdb6 18359# Without the "./", some shells look in PATH for config.status.
10f2d63a 18360: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
18361
18362echo creating $CONFIG_STATUS
18363rm -f $CONFIG_STATUS
18364cat > $CONFIG_STATUS <<EOF
18365#! /bin/sh
10f2d63a
VZ
18366# Generated automatically by configure.
18367# Run this file to recreate the current configuration.
698dcdb6
VZ
18368# This directory was configured as follows,
18369# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18370#
18371# $0 $ac_configure_args
18372#
10f2d63a 18373# Compiler output produced by configure, useful for debugging
698dcdb6 18374# configure, is in ./config.log if it exists.
1e487827 18375
698dcdb6
VZ
18376ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18377for ac_option
10f2d63a 18378do
698dcdb6 18379 case "\$ac_option" in
10f2d63a 18380 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
18381 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18382 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18383 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18384 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18385 exit 0 ;;
18386 -help | --help | --hel | --he | --h)
18387 echo "\$ac_cs_usage"; exit 0 ;;
18388 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
18389 esac
18390done
18391
698dcdb6
VZ
18392ac_given_srcdir=$srcdir
18393ac_given_INSTALL="$INSTALL"
703e0a69 18394
698dcdb6
VZ
18395trap 'rm -fr `echo "
18396 wx-config
18397 src/make.env
18398 src/makeprog.env
18399 src/makelib.env
18400 Makefile
18401 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 18402EOF
698dcdb6 18403cat >> $CONFIG_STATUS <<EOF
1e487827 18404
698dcdb6
VZ
18405# Protect against being on the right side of a sed subst in config.status.
18406sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18407 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18408$ac_vpsub
18409$extrasub
18410s%@SHELL@%$SHELL%g
18411s%@CFLAGS@%$CFLAGS%g
18412s%@CPPFLAGS@%$CPPFLAGS%g
18413s%@CXXFLAGS@%$CXXFLAGS%g
18414s%@FFLAGS@%$FFLAGS%g
18415s%@DEFS@%$DEFS%g
18416s%@LDFLAGS@%$LDFLAGS%g
18417s%@LIBS@%$LIBS%g
18418s%@exec_prefix@%$exec_prefix%g
18419s%@prefix@%$prefix%g
18420s%@program_transform_name@%$program_transform_name%g
18421s%@bindir@%$bindir%g
18422s%@sbindir@%$sbindir%g
18423s%@libexecdir@%$libexecdir%g
18424s%@datadir@%$datadir%g
18425s%@sysconfdir@%$sysconfdir%g
18426s%@sharedstatedir@%$sharedstatedir%g
18427s%@localstatedir@%$localstatedir%g
18428s%@libdir@%$libdir%g
18429s%@includedir@%$includedir%g
18430s%@oldincludedir@%$oldincludedir%g
18431s%@infodir@%$infodir%g
18432s%@mandir@%$mandir%g
18433s%@host@%$host%g
18434s%@host_alias@%$host_alias%g
18435s%@host_cpu@%$host_cpu%g
18436s%@host_vendor@%$host_vendor%g
18437s%@host_os@%$host_os%g
18438s%@target@%$target%g
18439s%@target_alias@%$target_alias%g
18440s%@target_cpu@%$target_cpu%g
18441s%@target_vendor@%$target_vendor%g
18442s%@target_os@%$target_os%g
18443s%@build@%$build%g
18444s%@build_alias@%$build_alias%g
18445s%@build_cpu@%$build_cpu%g
18446s%@build_vendor@%$build_vendor%g
18447s%@build_os@%$build_os%g
18448s%@CC@%$CC%g
18449s%@CPP@%$CPP%g
18450s%@CXX@%$CXX%g
698dcdb6
VZ
18451s%@RANLIB@%$RANLIB%g
18452s%@AR@%$AR%g
18453s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18454s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18455s%@INSTALL_DATA@%$INSTALL_DATA%g
18456s%@STRIP@%$STRIP%g
18457s%@YACC@%$YACC%g
18458s%@LEX@%$LEX%g
18459s%@LEXLIB@%$LEXLIB%g
18460s%@LN_S@%$LN_S%g
18461s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
698dcdb6
VZ
18462s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18463s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 18464s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
18465s%@X_CFLAGS@%$X_CFLAGS%g
18466s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18467s%@X_LIBS@%$X_LIBS%g
18468s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3a922bb4 18469s%@RESCOMP@%$RESCOMP%g
698dcdb6 18470s%@DEREZ@%$DEREZ%g
3a922bb4 18471s%@CXXCPP@%$CXXCPP%g
698dcdb6
VZ
18472s%@LEX_STEM@%$LEX_STEM%g
18473s%@PATH_IFS@%$PATH_IFS%g
18474s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18475s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18476s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
698dcdb6
VZ
18477s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18478s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
698dcdb6
VZ
18479s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18480s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18481s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
698dcdb6 18482s%@PROGRAM_EXT@%$PROGRAM_EXT%g
698dcdb6
VZ
18483s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18484s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
698dcdb6
VZ
18485s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18486s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18487s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
698dcdb6
VZ
18488s%@WX_ALL@%$WX_ALL%g
18489s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18490s%@SHARED_LD@%$SHARED_LD%g
18491s%@PIC_FLAG@%$PIC_FLAG%g
698dcdb6
VZ
18492s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18493s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
3a922bb4
RL
18494s%@SONAME_FLAGS@%$SONAME_FLAGS%g
18495s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
698dcdb6
VZ
18496s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18497s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18498s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18499s%@USE_GUI@%$USE_GUI%g
18500s%@AFMINSTALL@%$AFMINSTALL%g
18501s%@TOOLKIT@%$TOOLKIT%g
698dcdb6 18502s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
1e6feb95 18503s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
3a922bb4
RL
18504s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
18505s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
18506s%@cross_compiling@%$cross_compiling%g
18507s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
18508s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
698dcdb6
VZ
18509s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18510s%@ALL_OBJECTS@%$ALL_OBJECTS%g
698dcdb6
VZ
18511s%@GUIDIST@%$GUIDIST%g
18512s%@PORT_FILES@%$PORT_FILES%g
18513s%@DISTDIR@%$DISTDIR%g
18514s%@RPM_SPEC@%$RPM_SPEC%g
18515s%@RPM_FILES@%$RPM_FILES%g
698dcdb6 18516s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
698dcdb6
VZ
18517s%@EXTRA_LIBS@%$EXTRA_LIBS%g
18518s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18519s%@EXTRADEFS@%$EXTRADEFS%g
18520s%@LD_LIBS@%$LD_LIBS%g
18dbb1f6 18521s%@WXMSW_DLL_DEFINES@%$WXMSW_DLL_DEFINES%g
698dcdb6 18522s%@RESFLAGS@%$RESFLAGS%g
3a922bb4 18523s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
d08b457b 18524s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
698dcdb6
VZ
18525s%@LIBWXMACRES@%$LIBWXMACRES%g
18526s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18527s%@DLLTOOL@%$DLLTOOL%g
18528s%@AS@%$AS%g
18529s%@NM@%$NM%g
18530s%@LD@%$LD%g
18531s%@MAKEINFO@%$MAKEINFO%g
18532s%@SET_MAKE@%$SET_MAKE%g
18533s%@subdirs@%$subdirs%g
1e487827 18534
1e487827 18535CEOF
1e487827
VS
18536EOF
18537
698dcdb6
VZ
18538cat >> $CONFIG_STATUS <<\EOF
18539
18540# Split the substitutions into bite-sized pieces for seds with
18541# small command number limits, like on Digital OSF/1 and HP-UX.
18542ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18543ac_file=1 # Number of current file.
18544ac_beg=1 # First line for current file.
18545ac_end=$ac_max_sed_cmds # Line after last line for current file.
18546ac_more_lines=:
18547ac_sed_cmds=""
18548while $ac_more_lines; do
18549 if test $ac_beg -gt 1; then
18550 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18551 else
18552 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18553 fi
18554 if test ! -s conftest.s$ac_file; then
18555 ac_more_lines=false
18556 rm -f conftest.s$ac_file
18557 else
18558 if test -z "$ac_sed_cmds"; then
18559 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 18560 else
698dcdb6 18561 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 18562 fi
698dcdb6
VZ
18563 ac_file=`expr $ac_file + 1`
18564 ac_beg=$ac_end
18565 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 18566 fi
698dcdb6
VZ
18567done
18568if test -z "$ac_sed_cmds"; then
18569 ac_sed_cmds=cat
18570fi
18571EOF
10f2d63a 18572
698dcdb6
VZ
18573cat >> $CONFIG_STATUS <<EOF
18574
18575CONFIG_FILES=\${CONFIG_FILES-"wx-config
18576 src/make.env
18577 src/makeprog.env
18578 src/makelib.env
18579 Makefile
18580 "}
10f2d63a 18581EOF
698dcdb6
VZ
18582cat >> $CONFIG_STATUS <<\EOF
18583for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 18584 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
18585 case "$ac_file" in
18586 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18587 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18588 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
18589 esac
18590
698dcdb6 18591 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 18592
698dcdb6
VZ
18593 # Remove last slash and all that follows it. Not all systems have dirname.
18594 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18595 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18596 # The file is in a subdirectory.
18597 test ! -d "$ac_dir" && mkdir "$ac_dir"
18598 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 18599 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 18600 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
18601 else
18602 ac_dir_suffix= ac_dots=
18603 fi
18604
698dcdb6
VZ
18605 case "$ac_given_srcdir" in
18606 .) srcdir=.
18607 if test -z "$ac_dots"; then top_srcdir=.
18608 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18609 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 18610 *) # Relative path.
698dcdb6
VZ
18611 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18612 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
18613 esac
18614
698dcdb6
VZ
18615 case "$ac_given_INSTALL" in
18616 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18617 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
18618 esac
18619
698dcdb6
VZ
18620 echo creating "$ac_file"
18621 rm -f "$ac_file"
18622 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18623 case "$ac_file" in
18624 *Makefile*) ac_comsub="1i\\
18625# $configure_input" ;;
18626 *) ac_comsub= ;;
18627 esac
10f2d63a 18628
698dcdb6
VZ
18629 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18630 sed -e "$ac_comsub
18631s%@configure_input@%$configure_input%g
18632s%@srcdir@%$srcdir%g
18633s%@top_srcdir@%$top_srcdir%g
18634s%@INSTALL@%$INSTALL%g
18635" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18636fi; done
18637rm -f conftest.s*
10f2d63a
VZ
18638
18639# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18640# NAME is the cpp macro being defined and VALUE is the value it is being given.
18641#
18642# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
18643ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18644ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18645ac_dC='\3'
18646ac_dD='%g'
18647# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18648ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18649ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 18650ac_uC=' '
698dcdb6
VZ
18651ac_uD='\4%g'
18652# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18653ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18654ac_eB='$%\1#\2define\3'
18655ac_eC=' '
18656ac_eD='%g'
10f2d63a 18657
698dcdb6
VZ
18658if test "${CONFIG_HEADERS+set}" != set; then
18659EOF
18660cat >> $CONFIG_STATUS <<EOF
18661 CONFIG_HEADERS="setup.h:setup.h.in"
18662EOF
18663cat >> $CONFIG_STATUS <<\EOF
18664fi
18665for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 18666 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
18667 case "$ac_file" in
18668 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18669 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18670 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
18671 esac
18672
698dcdb6
VZ
18673 echo creating $ac_file
18674
18675 rm -f conftest.frag conftest.in conftest.out
18676 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18677 cat $ac_file_inputs > conftest.in
18678
18679EOF
18680
18681# Transform confdefs.h into a sed script conftest.vals that substitutes
18682# the proper values into config.h.in to produce config.h. And first:
18683# Protect against being on the right side of a sed subst in config.status.
18684# Protect against being in an unquoted here document in config.status.
18685rm -f conftest.vals
18686cat > conftest.hdr <<\EOF
18687s/[\\&%]/\\&/g
18688s%[\\$`]%\\&%g
18689s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18690s%ac_d%ac_u%gp
18691s%ac_u%ac_e%gp
18692EOF
18693sed -n -f conftest.hdr confdefs.h > conftest.vals
18694rm -f conftest.hdr
10f2d63a
VZ
18695
18696# This sed command replaces #undef with comments. This is necessary, for
18697# example, in the case of _POSIX_SOURCE, which is predefined and required
18698# on some systems where configure will not decide to define it.
698dcdb6
VZ
18699cat >> conftest.vals <<\EOF
18700s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
18701EOF
18702
698dcdb6
VZ
18703# Break up conftest.vals because some shells have a limit on
18704# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
18705
18706rm -f conftest.tail
698dcdb6 18707while :
10f2d63a 18708do
698dcdb6
VZ
18709 ac_lines=`grep -c . conftest.vals`
18710 # grep -c gives empty output for an empty file on some AIX systems.
18711 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18712 # Write a limited-size here document to conftest.frag.
18713 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18714 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 18715 echo 'CEOF
698dcdb6
VZ
18716 sed -f conftest.frag conftest.in > conftest.out
18717 rm -f conftest.in
18718 mv conftest.out conftest.in
18719' >> $CONFIG_STATUS
18720 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18721 rm -f conftest.vals
18722 mv conftest.tail conftest.vals
10f2d63a 18723done
698dcdb6
VZ
18724rm -f conftest.vals
18725
18726cat >> $CONFIG_STATUS <<\EOF
18727 rm -f conftest.frag conftest.h
18728 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18729 cat conftest.in >> conftest.h
18730 rm -f conftest.in
18731 if cmp -s $ac_file conftest.h 2>/dev/null; then
18732 echo "$ac_file is unchanged"
18733 rm -f conftest.h
10f2d63a 18734 else
698dcdb6
VZ
18735 # Remove last slash and all that follows it. Not all systems have dirname.
18736 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 18737 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
18738 # The file is in a subdirectory.
18739 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 18740 fi
698dcdb6
VZ
18741 rm -f $ac_file
18742 mv conftest.h $ac_file
10f2d63a 18743 fi
698dcdb6
VZ
18744fi; done
18745
10f2d63a 18746EOF
698dcdb6 18747cat >> $CONFIG_STATUS <<EOF
10f2d63a 18748
3a922bb4 18749 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
698dcdb6
VZ
18750 LN_S="${LN_S}"
18751
18752
18753EOF
18754cat >> $CONFIG_STATUS <<\EOF
10f2d63a 18755
3a922bb4 18756 if test ! -L wx-config; then
991a5759 18757 chmod +x wx-config
3a922bb4
RL
18758 mv wx-config wx${TOOLCHAIN_NAME}-config
18759 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 18760 fi
665bbe97 18761
00cf1208
RR
18762 if test ! -d lib; then
18763 mkdir lib
18764 fi
18765 if test ! -d lib/wx; then
18766 mkdir lib/wx
18767 fi
18768 if test ! -d lib/wx/include; then
18769 mkdir lib/wx/include
18770 fi
3a922bb4
RL
18771 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
18772 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 18773 fi
3a922bb4
RL
18774 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
18775 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
18776 fi
18777 if test -f setup.h; then
3a922bb4 18778 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 18779 fi
698dcdb6
VZ
18780
18781exit 0
10f2d63a
VZ
18782EOF
18783chmod +x $CONFIG_STATUS
698dcdb6
VZ
18784rm -fr confdefs* $ac_clean_files
18785test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 18786
2224580a
VZ
18787if test "$no_recursion" != yes; then
18788
18789 # Remove --cache-file and --srcdir arguments so they do not pile up.
18790 ac_sub_configure_args=
18791 ac_prev=
18792 for ac_arg in $ac_configure_args; do
18793 if test -n "$ac_prev"; then
18794 ac_prev=
18795 continue
18796 fi
698dcdb6 18797 case "$ac_arg" in
2224580a
VZ
18798 -cache-file | --cache-file | --cache-fil | --cache-fi \
18799 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18800 ac_prev=cache_file ;;
18801 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 18802 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
18803 ;;
18804 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18805 ac_prev=srcdir ;;
18806 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18807 ;;
18808 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18809 esac
18810 done
18811
698dcdb6 18812 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
18813
18814 # Do not complain, so a configure script can configure whichever
18815 # parts of a large source tree are present.
698dcdb6
VZ
18816 if test ! -d $srcdir/$ac_config_dir; then
18817 continue
18818 fi
18819
18820 echo configuring in $ac_config_dir
2224580a 18821
698dcdb6 18822 case "$srcdir" in
2224580a
VZ
18823 .) ;;
18824 *)
698dcdb6
VZ
18825 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18826 else
18827 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18828 fi
18829 ;;
2224580a
VZ
18830 esac
18831
18832 ac_popdir=`pwd`
698dcdb6 18833 cd $ac_config_dir
2224580a 18834
698dcdb6
VZ
18835 # A "../" for each directory in /$ac_config_dir.
18836 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 18837
698dcdb6 18838 case "$srcdir" in
2224580a
VZ
18839 .) # No --srcdir option. We are building in place.
18840 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
18841 /*) # Absolute path.
18842 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 18843 *) # Relative path.
698dcdb6 18844 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
18845 esac
18846
18847 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
18848 if test -f $ac_sub_srcdir/configure; then
18849 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
18850 elif test -f $ac_sub_srcdir/configure.in; then
18851 ac_sub_configure=$ac_configure
18852 else
698dcdb6 18853 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
18854 ac_sub_configure=
18855 fi
18856
18857 # The recursion is here.
18858 if test -n "$ac_sub_configure"; then
698dcdb6 18859
2224580a 18860 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
18861 case "$cache_file" in
18862 /*) ac_sub_cache_file=$cache_file ;;
2224580a 18863 *) # Relative path.
698dcdb6 18864 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 18865 esac
698dcdb6
VZ
18866 case "$ac_given_INSTALL" in
18867 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18868 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18869 esac
2224580a 18870
698dcdb6 18871 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 18872 # The eval makes quoting arguments work.
698dcdb6
VZ
18873 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
18874 then :
18875 else
18876 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
18877 fi
2224580a
VZ
18878 fi
18879
18880 cd $ac_popdir
18881 done
18882fi
18883
698dcdb6 18884