]> git.saurik.com Git - wxWidgets.git/blame - configure
fixed yet another typo, now it finally works
[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
VZ
76ac_help="$ac_help
77 --with-mgl use 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
8168de4c 101 --enable-burnt_name create set name in shared library "
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"
698dcdb6 106ac_help="$ac_help
8168de4c 107 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
698dcdb6 108ac_help="$ac_help
8168de4c 109 --enable-debug_info create code with debugging information"
698dcdb6 110ac_help="$ac_help
8168de4c 111 --enable-debug_gdb create code with extra GDB debugging information"
698dcdb6 112ac_help="$ac_help
8168de4c 113 --enable-debug_cntxt use wxDebugContext"
698dcdb6 114ac_help="$ac_help
8168de4c 115 --enable-mem_tracing create code with memory tracing"
698dcdb6 116ac_help="$ac_help
8168de4c 117 --enable-profile create code with profiling information"
698dcdb6 118ac_help="$ac_help
8168de4c 119 --enable-no_rtti create code without RTTI information"
698dcdb6 120ac_help="$ac_help
8168de4c 121 --enable-no_exceptions create code without exceptions information"
698dcdb6 122ac_help="$ac_help
8168de4c 123 --enable-permissive compile code disregarding strict ANSI"
698dcdb6 124ac_help="$ac_help
8168de4c 125 --enable-no_deps create code without dependency information"
54276ccf
VZ
126ac_help="$ac_help
127 --enable-compat20 enable wxWin 2.0 compatibility"
128ac_help="$ac_help
129 --enable-compat22 enable wxWin 2.2 compatibility"
698dcdb6 130ac_help="$ac_help
8168de4c 131 --enable-intl use internationalization system"
698dcdb6 132ac_help="$ac_help
8168de4c 133 --enable-config use wxConfig (and derived) classes"
698dcdb6 134ac_help="$ac_help
8168de4c 135 --enable-sockets use socket/network classes"
698dcdb6 136ac_help="$ac_help
8168de4c 137 --enable-ipc use interprocess communication (wxSocket etc.)"
698dcdb6 138ac_help="$ac_help
8168de4c 139 --enable-cmdline use wxCmdLineParser class"
1e6feb95 140ac_help="$ac_help
8168de4c 141 --enable-datetime use wxDateTime class"
1e6feb95 142ac_help="$ac_help
8168de4c 143 --enable-timedate use obsolete wxDate/wxTime classes"
1e6feb95 144ac_help="$ac_help
8168de4c 145 --enable-stopwatch use wxStopWatch class"
1e6feb95 146ac_help="$ac_help
8168de4c 147 --enable-dialupman use dialup network classes"
698dcdb6 148ac_help="$ac_help
8168de4c 149 --enable-apple_ieee use the Apple IEEE codec"
698dcdb6 150ac_help="$ac_help
8168de4c 151 --enable-timer use wxTimer class"
698dcdb6 152ac_help="$ac_help
8168de4c 153 --enable-wave use wxWave class"
698dcdb6 154ac_help="$ac_help
8168de4c 155 --enable-fraction use wxFraction class"
698dcdb6 156ac_help="$ac_help
8168de4c 157 --enable-dynlib use wxLibrary class for DLL loading"
698dcdb6 158ac_help="$ac_help
8168de4c 159 --enable-longlong use wxLongLong class"
698dcdb6 160ac_help="$ac_help
8168de4c 161 --enable-geometry use geometry class"
698dcdb6 162ac_help="$ac_help
8168de4c 163 --enable-log use logging system"
698dcdb6 164ac_help="$ac_help
8168de4c 165 --enable-streams use wxStream etc classes"
698dcdb6 166ac_help="$ac_help
8168de4c 167 --enable-file use wxFile classes"
698dcdb6 168ac_help="$ac_help
8168de4c 169 --enable-ffile use wxFFile classes"
1e6feb95 170ac_help="$ac_help
8168de4c 171 --enable-textfile use wxTextFile classes"
698dcdb6 172ac_help="$ac_help
8168de4c 173 --enable-fontmap use font encodings conversion classes"
1e6feb95 174ac_help="$ac_help
8168de4c 175 --enable-unicode compile wxString with Unicode support"
698dcdb6 176ac_help="$ac_help
8168de4c 177 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
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
VZ
196ac_help="$ac_help
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
8168de4c 237 --enable-wxtree make wxTree library"
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"
698dcdb6 272ac_help="$ac_help
8168de4c 273 --enable-radiobox use wxRadioBox class"
698dcdb6 274ac_help="$ac_help
8168de4c 275 --enable-radiobtn use wxRadioButton class"
698dcdb6 276ac_help="$ac_help
8168de4c 277 --enable-sash use wxSashWindow class"
698dcdb6 278ac_help="$ac_help
8168de4c 279 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 280ac_help="$ac_help
8168de4c 281 --enable-slider use wxSlider class"
698dcdb6 282ac_help="$ac_help
8168de4c 283 --enable-spinbtn use wxSpinButton class"
698dcdb6 284ac_help="$ac_help
8168de4c 285 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 286ac_help="$ac_help
8168de4c 287 --enable-splitter use wxSplitterWindow class"
698dcdb6 288ac_help="$ac_help
8168de4c 289 --enable-statbmp use wxStaticBitmap class"
698dcdb6 290ac_help="$ac_help
8168de4c 291 --enable-statbox use wxStaticBox class"
698dcdb6 292ac_help="$ac_help
8168de4c 293 --enable-statline use wxStaticLine class"
698dcdb6 294ac_help="$ac_help
8168de4c 295 --enable-stattext use wxStaticText class"
1e6feb95 296ac_help="$ac_help
8168de4c 297 --enable-statusbar use wxStatusBar class"
698dcdb6 298ac_help="$ac_help
8168de4c 299 --enable-tabdialog use wxTabControl class"
698dcdb6 300ac_help="$ac_help
8168de4c 301 --enable-textctrl use wxTextCtrl class"
1e6feb95 302ac_help="$ac_help
8168de4c 303 --enable-togglebtn use wxToggleButton class"
698dcdb6 304ac_help="$ac_help
8168de4c 305 --enable-toolbar use wxToolBar class"
698dcdb6 306ac_help="$ac_help
8168de4c 307 --enable-tbarnative use native wxToolBar class"
698dcdb6 308ac_help="$ac_help
8168de4c 309 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 310ac_help="$ac_help
8168de4c 311 --enable-treectrl use wxTreeCtrl class"
9f41d601
RR
312ac_help="$ac_help
313 --enable-popupwin use wxPopUpWindow class"
698dcdb6 314ac_help="$ac_help
8168de4c 315 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
698dcdb6 316ac_help="$ac_help
8168de4c 317 --enable-choicedlg use wxChoiceDialog"
1e6feb95 318ac_help="$ac_help
8168de4c 319 --enable-coldlg use wxColourDialog"
1e6feb95 320ac_help="$ac_help
8168de4c 321 --enable-filedlg use wxFileDialog"
1e6feb95 322ac_help="$ac_help
8168de4c 323 --enable-fontdlg use wxFontDialog"
1e6feb95 324ac_help="$ac_help
8168de4c 325 --enable-dirdlg use wxDirDialog"
698dcdb6 326ac_help="$ac_help
8168de4c 327 --enable-msgdlg use wxMessageDialog"
1e6feb95 328ac_help="$ac_help
8168de4c 329 --enable-numberdlg use wxNumberEntryDialog"
1e6feb95 330ac_help="$ac_help
8168de4c 331 --enable-textdlg use wxTextDialog"
698dcdb6 332ac_help="$ac_help
8168de4c 333 --enable-tipdlg use startup tips"
698dcdb6 334ac_help="$ac_help
8168de4c 335 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
336ac_help="$ac_help
337 --enable-wizarddlg use wxWizard"
698dcdb6 338ac_help="$ac_help
8168de4c 339 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 340ac_help="$ac_help
8168de4c 341 --enable-miniframe use wxMiniFrame class"
698dcdb6 342ac_help="$ac_help
8168de4c 343 --enable-tooltips use wxToolTip class"
698dcdb6 344ac_help="$ac_help
8168de4c 345 --enable-splines use spline drawing code"
698dcdb6 346ac_help="$ac_help
8168de4c 347 --enable-validators use wxValidator and derived classes"
698dcdb6 348ac_help="$ac_help
8168de4c 349 --enable-busyinfo use wxBusyInfo"
698dcdb6 350ac_help="$ac_help
8168de4c 351 --enable-joystick compile in joystick support (Linux only)"
698dcdb6 352ac_help="$ac_help
8168de4c 353 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
354ac_help="$ac_help
355 --enable-dragimage use wxDragImage"
1e6feb95 356ac_help="$ac_help
8168de4c 357 --enable-image use wxImage class"
698dcdb6 358ac_help="$ac_help
8168de4c 359 --enable-gif use gif images (GIF file format)"
698dcdb6 360ac_help="$ac_help
8168de4c 361 --enable-pcx use pcx images (PCX file format)"
698dcdb6 362ac_help="$ac_help
8168de4c 363 --enable-pnm use pnm images (PNM file format)"
698dcdb6 364ac_help="$ac_help
8168de4c 365 --enable-xpm use xpm images (XPM file format)"
698dcdb6
VZ
366ac_help="$ac_help
367 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
368ac_help="$ac_help
369 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
370ac_help="$ac_help
371 --disable-gtktest Do not try to compile and run a test GTK program"
372ac_help="$ac_help
373 --with-x use the X Window System"
10f2d63a
VZ
374
375# Initialize some variables set by options.
376# The variables have the same names as the options, with
377# dashes changed to underlines.
698dcdb6
VZ
378build=NONE
379cache_file=./config.cache
10f2d63a 380exec_prefix=NONE
698dcdb6 381host=NONE
10f2d63a 382no_create=
698dcdb6 383nonopt=NONE
10f2d63a
VZ
384no_recursion=
385prefix=NONE
386program_prefix=NONE
387program_suffix=NONE
388program_transform_name=s,x,x,
389silent=
390site=
391srcdir=
698dcdb6 392target=NONE
10f2d63a
VZ
393verbose=
394x_includes=NONE
395x_libraries=NONE
396bindir='${exec_prefix}/bin'
397sbindir='${exec_prefix}/sbin'
398libexecdir='${exec_prefix}/libexec'
399datadir='${prefix}/share'
400sysconfdir='${prefix}/etc'
401sharedstatedir='${prefix}/com'
402localstatedir='${prefix}/var'
403libdir='${exec_prefix}/lib'
404includedir='${prefix}/include'
405oldincludedir='/usr/include'
406infodir='${prefix}/info'
407mandir='${prefix}/man'
408
698dcdb6
VZ
409# Initialize some other variables.
410subdirs=
411MFLAGS= MAKEFLAGS=
412SHELL=${CONFIG_SHELL-/bin/sh}
413# Maximum number of lines to put in a shell here document.
414ac_max_here_lines=12
10f2d63a
VZ
415
416ac_prev=
417for ac_option
418do
698dcdb6 419
10f2d63a
VZ
420 # If the previous option needs an argument, assign it.
421 if test -n "$ac_prev"; then
422 eval "$ac_prev=\$ac_option"
423 ac_prev=
424 continue
425 fi
426
698dcdb6
VZ
427 case "$ac_option" in
428 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
429 *) ac_optarg= ;;
430 esac
10f2d63a
VZ
431
432 # Accept the important Cygnus configure options, so we can diagnose typos.
433
698dcdb6 434 case "$ac_option" in
10f2d63a
VZ
435
436 -bindir | --bindir | --bindi | --bind | --bin | --bi)
437 ac_prev=bindir ;;
438 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 439 bindir="$ac_optarg" ;;
10f2d63a
VZ
440
441 -build | --build | --buil | --bui | --bu)
698dcdb6 442 ac_prev=build ;;
10f2d63a 443 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 444 build="$ac_optarg" ;;
10f2d63a
VZ
445
446 -cache-file | --cache-file | --cache-fil | --cache-fi \
447 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
448 ac_prev=cache_file ;;
449 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
450 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 451 cache_file="$ac_optarg" ;;
10f2d63a
VZ
452
453 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
454 ac_prev=datadir ;;
455 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
456 | --da=*)
698dcdb6 457 datadir="$ac_optarg" ;;
10f2d63a
VZ
458
459 -disable-* | --disable-*)
698dcdb6 460 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 461 # Reject names that are not valid shell variable names.
698dcdb6
VZ
462 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
463 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
464 fi
465 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
466 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
467
468 -enable-* | --enable-*)
698dcdb6 469 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 470 # Reject names that are not valid shell variable names.
698dcdb6
VZ
471 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
472 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
473 fi
474 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
475 case "$ac_option" in
476 *=*) ;;
10f2d63a
VZ
477 *) ac_optarg=yes ;;
478 esac
698dcdb6 479 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
480
481 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
482 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
483 | --exec | --exe | --ex)
484 ac_prev=exec_prefix ;;
485 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
486 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
487 | --exec=* | --exe=* | --ex=*)
698dcdb6 488 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
489
490 -gas | --gas | --ga | --g)
491 # Obsolete; use --with-gas.
492 with_gas=yes ;;
493
698dcdb6
VZ
494 -help | --help | --hel | --he)
495 # Omit some internal or obsolete options to make the list less imposing.
496 # This message is too long to be a string in the A/UX 3.1 sh.
497 cat << EOF
498Usage: configure [options] [host]
499Options: [defaults in brackets after descriptions]
500Configuration:
501 --cache-file=FILE cache test results in FILE
502 --help print this message
503 --no-create do not create output files
504 --quiet, --silent do not print \`checking...' messages
505 --version print the version of autoconf that created configure
506Directory and file names:
507 --prefix=PREFIX install architecture-independent files in PREFIX
508 [$ac_default_prefix]
509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
510 [same as prefix]
511 --bindir=DIR user executables in DIR [EPREFIX/bin]
512 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
513 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
514 --datadir=DIR read-only architecture-independent data in DIR
515 [PREFIX/share]
516 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
517 --sharedstatedir=DIR modifiable architecture-independent data in DIR
518 [PREFIX/com]
519 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
520 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
521 --includedir=DIR C header files in DIR [PREFIX/include]
522 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
523 --infodir=DIR info documentation in DIR [PREFIX/info]
524 --mandir=DIR man documentation in DIR [PREFIX/man]
525 --srcdir=DIR find the sources in DIR [configure dir or ..]
526 --program-prefix=PREFIX prepend PREFIX to installed program names
527 --program-suffix=SUFFIX append SUFFIX to installed program names
528 --program-transform-name=PROGRAM
529 run sed PROGRAM on installed program names
530EOF
531 cat << EOF
532Host type:
533 --build=BUILD configure for building on BUILD [BUILD=HOST]
534 --host=HOST configure for HOST [guessed]
535 --target=TARGET configure for TARGET [TARGET=HOST]
536Features and packages:
537 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
538 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
539 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
540 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
541 --x-includes=DIR X include files are in DIR
542 --x-libraries=DIR X library files are in DIR
543EOF
544 if test -n "$ac_help"; then
545 echo "--enable and --with options recognized:$ac_help"
546 fi
547 exit 0 ;;
10f2d63a
VZ
548
549 -host | --host | --hos | --ho)
698dcdb6 550 ac_prev=host ;;
10f2d63a 551 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 552 host="$ac_optarg" ;;
10f2d63a
VZ
553
554 -includedir | --includedir | --includedi | --included | --include \
555 | --includ | --inclu | --incl | --inc)
556 ac_prev=includedir ;;
557 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
558 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 559 includedir="$ac_optarg" ;;
10f2d63a
VZ
560
561 -infodir | --infodir | --infodi | --infod | --info | --inf)
562 ac_prev=infodir ;;
563 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 564 infodir="$ac_optarg" ;;
10f2d63a
VZ
565
566 -libdir | --libdir | --libdi | --libd)
567 ac_prev=libdir ;;
568 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 569 libdir="$ac_optarg" ;;
10f2d63a
VZ
570
571 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
572 | --libexe | --libex | --libe)
573 ac_prev=libexecdir ;;
574 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
575 | --libexe=* | --libex=* | --libe=*)
698dcdb6 576 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
577
578 -localstatedir | --localstatedir | --localstatedi | --localstated \
579 | --localstate | --localstat | --localsta | --localst \
580 | --locals | --local | --loca | --loc | --lo)
581 ac_prev=localstatedir ;;
582 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
583 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
584 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 585 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
586
587 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
588 ac_prev=mandir ;;
589 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 590 mandir="$ac_optarg" ;;
10f2d63a
VZ
591
592 -nfp | --nfp | --nf)
593 # Obsolete; use --without-fp.
594 with_fp=no ;;
595
596 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
597 | --no-cr | --no-c)
598 no_create=yes ;;
599
600 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
601 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
602 no_recursion=yes ;;
603
604 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
605 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
606 | --oldin | --oldi | --old | --ol | --o)
607 ac_prev=oldincludedir ;;
608 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
609 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
610 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 611 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
612
613 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
614 ac_prev=prefix ;;
615 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 616 prefix="$ac_optarg" ;;
10f2d63a
VZ
617
618 -program-prefix | --program-prefix | --program-prefi | --program-pref \
619 | --program-pre | --program-pr | --program-p)
620 ac_prev=program_prefix ;;
621 -program-prefix=* | --program-prefix=* | --program-prefi=* \
622 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 623 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
624
625 -program-suffix | --program-suffix | --program-suffi | --program-suff \
626 | --program-suf | --program-su | --program-s)
627 ac_prev=program_suffix ;;
628 -program-suffix=* | --program-suffix=* | --program-suffi=* \
629 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 630 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
631
632 -program-transform-name | --program-transform-name \
633 | --program-transform-nam | --program-transform-na \
634 | --program-transform-n | --program-transform- \
635 | --program-transform | --program-transfor \
636 | --program-transfo | --program-transf \
637 | --program-trans | --program-tran \
638 | --progr-tra | --program-tr | --program-t)
639 ac_prev=program_transform_name ;;
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=*)
698dcdb6 647 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
648
649 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
650 | -silent | --silent | --silen | --sile | --sil)
651 silent=yes ;;
652
653 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
654 ac_prev=sbindir ;;
655 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
656 | --sbi=* | --sb=*)
698dcdb6 657 sbindir="$ac_optarg" ;;
10f2d63a
VZ
658
659 -sharedstatedir | --sharedstatedir | --sharedstatedi \
660 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
661 | --sharedst | --shareds | --shared | --share | --shar \
662 | --sha | --sh)
663 ac_prev=sharedstatedir ;;
664 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
665 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
666 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
667 | --sha=* | --sh=*)
698dcdb6 668 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
669
670 -site | --site | --sit)
671 ac_prev=site ;;
672 -site=* | --site=* | --sit=*)
698dcdb6 673 site="$ac_optarg" ;;
10f2d63a
VZ
674
675 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
676 ac_prev=srcdir ;;
677 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 678 srcdir="$ac_optarg" ;;
10f2d63a
VZ
679
680 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
681 | --syscon | --sysco | --sysc | --sys | --sy)
682 ac_prev=sysconfdir ;;
683 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
684 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 685 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
686
687 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 688 ac_prev=target ;;
10f2d63a 689 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 690 target="$ac_optarg" ;;
10f2d63a
VZ
691
692 -v | -verbose | --verbose | --verbos | --verbo | --verb)
693 verbose=yes ;;
694
698dcdb6
VZ
695 -version | --version | --versio | --versi | --vers)
696 echo "configure generated by autoconf version 2.13"
697 exit 0 ;;
10f2d63a
VZ
698
699 -with-* | --with-*)
698dcdb6 700 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 701 # Reject names that are not valid shell variable names.
698dcdb6
VZ
702 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
703 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
704 fi
10f2d63a 705 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
706 case "$ac_option" in
707 *=*) ;;
10f2d63a
VZ
708 *) ac_optarg=yes ;;
709 esac
698dcdb6 710 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
711
712 -without-* | --without-*)
698dcdb6 713 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 714 # Reject names that are not valid shell variable names.
698dcdb6
VZ
715 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
716 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
717 fi
718 ac_package=`echo $ac_package| sed 's/-/_/g'`
719 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
720
721 --x)
722 # Obsolete; use --with-x.
723 with_x=yes ;;
724
725 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
726 | --x-incl | --x-inc | --x-in | --x-i)
727 ac_prev=x_includes ;;
728 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
729 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 730 x_includes="$ac_optarg" ;;
10f2d63a
VZ
731
732 -x-libraries | --x-libraries | --x-librarie | --x-librari \
733 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
734 ac_prev=x_libraries ;;
735 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
736 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 737 x_libraries="$ac_optarg" ;;
10f2d63a 738
698dcdb6 739 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
740 ;;
741
742 *)
698dcdb6
VZ
743 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
744 echo "configure: warning: $ac_option: invalid host type" 1>&2
745 fi
746 if test "x$nonopt" != xNONE; then
747 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
748 fi
749 nonopt="$ac_option"
10f2d63a
VZ
750 ;;
751
752 esac
753done
754
755if test -n "$ac_prev"; then
698dcdb6
VZ
756 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
757fi
758
759trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
760
761# File descriptor usage:
762# 0 standard input
763# 1 file creation
764# 2 errors and warnings
765# 3 some systems may open it to /dev/tty
766# 4 used on the Kubota Titan
767# 6 checking for... messages and results
768# 5 compiler messages saved in config.log
769if test "$silent" = yes; then
770 exec 6>/dev/null
771else
772 exec 6>&1
10f2d63a 773fi
698dcdb6
VZ
774exec 5>./config.log
775
776echo "\
777This file contains any messages produced by compilers while
778running configure, to aid debugging if configure makes a mistake.
779" 1>&5
10f2d63a 780
698dcdb6
VZ
781# Strip out --no-create and --no-recursion so they do not pile up.
782# Also quote any args containing shell metacharacters.
783ac_configure_args=
784for ac_arg
10f2d63a 785do
698dcdb6
VZ
786 case "$ac_arg" in
787 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
788 | --no-cr | --no-c) ;;
789 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
790 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
791 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
792 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
793 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
794 esac
795done
796
698dcdb6
VZ
797# NLS nuisances.
798# Only set these to C if already set. These must not be set unconditionally
799# because not all systems understand e.g. LANG=C (notably SCO).
800# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
801# Non-C LC_CTYPE values break the ctype check.
802if test "${LANG+set}" = set; then LANG=C; export LANG; fi
803if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
804if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
805if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 806
698dcdb6
VZ
807# confdefs.h avoids OS command line length limits that DEFS can exceed.
808rm -rf conftest* confdefs.h
809# AIX cpp loses on an empty file, so make sure it contains at least a newline.
810echo > confdefs.h
10f2d63a 811
698dcdb6
VZ
812# A filename unique to this package, relative to the directory that
813# configure is in, which we can look for to find out if srcdir is correct.
814ac_unique_file=wx-config.in
10f2d63a
VZ
815
816# Find the source files, if location was not specified.
817if test -z "$srcdir"; then
818 ac_srcdir_defaulted=yes
819 # Try the directory containing this script, then its parent.
820 ac_prog=$0
698dcdb6 821 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
822 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
823 srcdir=$ac_confdir
824 if test ! -r $srcdir/$ac_unique_file; then
825 srcdir=..
826 fi
827else
828 ac_srcdir_defaulted=no
829fi
830if test ! -r $srcdir/$ac_unique_file; then
831 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 832 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 833 else
698dcdb6 834 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
835 fi
836fi
698dcdb6 837srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
838
839# Prefer explicitly selected file to automatically selected ones.
840if test -z "$CONFIG_SITE"; then
841 if test "x$prefix" != xNONE; then
842 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
843 else
844 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
845 fi
846fi
847for ac_site_file in $CONFIG_SITE; do
848 if test -r "$ac_site_file"; then
698dcdb6 849 echo "loading site script $ac_site_file"
10f2d63a
VZ
850 . "$ac_site_file"
851 fi
852done
853
854if test -r "$cache_file"; then
698dcdb6
VZ
855 echo "loading cache $cache_file"
856 . $cache_file
10f2d63a 857else
698dcdb6
VZ
858 echo "creating cache $cache_file"
859 > $cache_file
10f2d63a
VZ
860fi
861
862ac_ext=c
698dcdb6 863# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 864ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
865ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
866ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
867cross_compiling=$ac_cv_prog_cc_cross
868
869ac_exeext=
870ac_objext=o
871if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
872 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
873 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
874 ac_n= ac_c='
875' ac_t=' '
876 else
877 ac_n=-n ac_c= ac_t=
878 fi
10f2d63a 879else
698dcdb6 880 ac_n= ac_c='\c' ac_t=
10f2d63a 881fi
698dcdb6
VZ
882
883
10f2d63a 884
7c66a493
VZ
885ac_aux_dir=
886for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
887 if test -f $ac_dir/install-sh; then
888 ac_aux_dir=$ac_dir
889 ac_install_sh="$ac_aux_dir/install-sh -c"
890 break
891 elif test -f $ac_dir/install.sh; then
892 ac_aux_dir=$ac_dir
893 ac_install_sh="$ac_aux_dir/install.sh -c"
894 break
895 fi
896done
897if test -z "$ac_aux_dir"; then
698dcdb6 898 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 899fi
698dcdb6
VZ
900ac_config_guess=$ac_aux_dir/config.guess
901ac_config_sub=$ac_aux_dir/config.sub
902ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 903
698dcdb6
VZ
904
905# Do some error checking and defaulting for the host and target type.
906# The inputs are:
907# configure --host=HOST --target=TARGET --build=BUILD NONOPT
908#
909# The rules are:
910# 1. You are not allowed to specify --host, --target, and nonopt at the
911# same time.
912# 2. Host defaults to nonopt.
913# 3. If nonopt is not specified, then host defaults to the current host,
914# as determined by config.guess.
915# 4. Target and build default to nonopt.
916# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
917
918# The aliases save the names the user supplied, while $host etc.
919# will get canonicalized.
698dcdb6
VZ
920case $host---$target---$nonopt in
921NONE---*---* | *---NONE---* | *---*---NONE) ;;
922*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
923esac
924
925
926# Make sure we can run config.sub.
927if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
928else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
929fi
930
931echo $ac_n "checking host system type""... $ac_c" 1>&6
3e44f09d 932echo "configure:933: checking host system type" >&5
698dcdb6
VZ
933
934host_alias=$host
935case "$host_alias" in
936NONE)
937 case $nonopt in
938 NONE)
939 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
940 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
941 fi ;;
942 *) host_alias=$nonopt ;;
943 esac ;;
944esac
945
946host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
947host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
948host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
949host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
950echo "$ac_t""$host" 1>&6
951
952echo $ac_n "checking target system type""... $ac_c" 1>&6
3e44f09d 953echo "configure:954: checking target system type" >&5
698dcdb6
VZ
954
955target_alias=$target
956case "$target_alias" in
957NONE)
958 case $nonopt in
959 NONE) target_alias=$host_alias ;;
960 *) target_alias=$nonopt ;;
961 esac ;;
962esac
963
964target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
965target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
966target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
967target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
968echo "$ac_t""$target" 1>&6
969
970echo $ac_n "checking build system type""... $ac_c" 1>&6
3e44f09d 971echo "configure:972: checking build system type" >&5
698dcdb6
VZ
972
973build_alias=$build
974case "$build_alias" in
975NONE)
976 case $nonopt in
977 NONE) build_alias=$host_alias ;;
978 *) build_alias=$nonopt ;;
979 esac ;;
980esac
981
982build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
983build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
984build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
985build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
986echo "$ac_t""$build" 1>&6
987
988test "$host_alias" != "$target_alias" &&
7c66a493
VZ
989 test "$program_prefix$program_suffix$program_transform_name" = \
990 NONENONEs,x,x, &&
991 program_prefix=${target_alias}-
992
698dcdb6
VZ
993
994
10f2d63a 995WX_MAJOR_VERSION_NUMBER=2
37d403aa 996WX_MINOR_VERSION_NUMBER=3
6c01ec02 997WX_RELEASE_NUMBER=2
10f2d63a 998
10f2d63a 999WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1000WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1001
6c01ec02 1002WX_CURRENT=1
6426998c
RL
1003WX_REVISION=0
1004WX_AGE=0
1005
698dcdb6
VZ
1006
1007
10f2d63a
VZ
1008USE_UNIX=1
1009USE_WIN32=0
b12915c1 1010USE_BEOS=0
1216f52d 1011USE_MAC=0
b12915c1 1012
10f2d63a
VZ
1013USE_LINUX=
1014USE_SGI=
1015USE_HPUX=
1016USE_SYSV=
1017USE_SVR4=
1018USE_AIX=
1019USE_SUN=
1020USE_SOLARIS=
1021USE_SUNOS=
1022USE_ALPHA=
1023USE_OSF=
1024USE_BSD=
1025USE_FREEBSD=
95c8801c 1026USE_OPENBSD=
f6bcfd97 1027USE_NETBSD=
10f2d63a
VZ
1028USE_VMS=
1029USE_ULTRIX=
1030USE_CYGWIN=
1031USE_MINGW=
1032USE_DATA_GENERAL=
1033
ab9b9eab
VZ
1034NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1035
1e6feb95 1036ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
10f2d63a
VZ
1037
1038DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1039DEFAULT_wxUSE_MAC=0
1040DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1041DEFAULT_wxUSE_MOTIF=0
1042DEFAULT_wxUSE_MSW=0
e07802fc 1043DEFAULT_wxUSE_PM=0
1e6feb95 1044DEFAULT_wxUSE_WINE=0
10f2d63a
VZ
1045
1046DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1047DEFAULT_DEFAULT_wxUSE_MAC=0
1048DEFAULT_DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1049DEFAULT_DEFAULT_wxUSE_MOTIF=0
1050DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1051DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1052DEFAULT_DEFAULT_wxUSE_WINE=0
10f2d63a 1053
d6a55c4b
VZ
1054PROGRAM_EXT=
1055
10f2d63a
VZ
1056case "${host}" in
1057 *-hp-hpux* )
1058 USE_HPUX=1
1059 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1060 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
698dcdb6 1061 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1062#define __HPUX__ 1
1063EOF
1064
1065 ;;
1066 *-*-linux* )
1067 USE_LINUX=1
698dcdb6 1068 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1069#define __LINUX__ 1
1070EOF
1071
1072 TMP=`uname -m`
1073 if test "x$TMP" = "xalpha"; then
1074 USE_ALPHA=1
698dcdb6 1075 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1076#define __ALPHA__ 1
1077EOF
1078
1079 fi
1080 DEFAULT_DEFAULT_wxUSE_GTK=1
1081 ;;
1082 *-*-irix5* | *-*-irix6* )
1083 USE_SGI=1
1084 USE_SVR4=1
698dcdb6 1085 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1086#define __SGI__ 1
1087EOF
1088
698dcdb6 1089 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1090#define __SVR4__ 1
1091EOF
1092
1093 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1094 ;;
1095 *-*-solaris2* )
1096 USE_SUN=1
1097 USE_SOLARIS=1
1098 USE_SVR4=1
698dcdb6 1099 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1100#define __SUN__ 1
1101EOF
1102
698dcdb6 1103 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1104#define __SOLARIS__ 1
1105EOF
1106
698dcdb6 1107 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1108#define __SVR4__ 1
1109EOF
1110
1111 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1112 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1113 ;;
1114 *-*-sunos4* )
1115 USE_SUN=1
1116 USE_SUNOS=1
1117 USE_BSD=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 __SUNOS__ 1
1124EOF
1125
698dcdb6 1126 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1127#define __BSD__ 1
1128EOF
1129
1130 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1131 ;;
f6bcfd97 1132 *-*-freebsd*)
10f2d63a
VZ
1133 USE_BSD=1
1134 USE_FREEBSD=1
698dcdb6 1135 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1136#define __FREEBSD__ 1
1137EOF
1138
698dcdb6 1139 cat >> confdefs.h <<\EOF
10f2d63a 1140#define __BSD__ 1
95c8801c
VS
1141EOF
1142
1143 DEFAULT_DEFAULT_wxUSE_GTK=1
1144 ;;
1145 *-*-openbsd*)
1146 USE_BSD=1
1147 USE_OPENBSD=1
698dcdb6 1148 cat >> confdefs.h <<\EOF
95c8801c
VS
1149#define __FREEBSD__ 1
1150EOF
1151
698dcdb6 1152 cat >> confdefs.h <<\EOF
95c8801c 1153#define __OPENBSD__ 1
f6bcfd97
BP
1154EOF
1155
1156 DEFAULT_DEFAULT_wxUSE_GTK=1
1157 ;;
1158 *-*-netbsd*)
1159 USE_BSD=1
1160 USE_NETBSD=1
698dcdb6 1161 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1162#define __FREEBSD__ 1
1163EOF
1164
698dcdb6 1165 cat >> confdefs.h <<\EOF
f6bcfd97 1166#define __NETBSD__ 1
10f2d63a
VZ
1167EOF
1168
1169 DEFAULT_DEFAULT_wxUSE_GTK=1
1170 ;;
1171 *-*-osf* )
1172 USE_ALPHA=1
1173 USE_OSF=1
698dcdb6 1174 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1175#define __ALPHA__ 1
1176EOF
1177
698dcdb6 1178 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1179#define __OSF__ 1
1180EOF
1181
1182 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1183 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1184 ;;
1185 *-*-dgux5* )
1186 USE_ALPHA=1
1187 USE_SVR4=1
698dcdb6 1188 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1189#define __ALPHA__ 1
1190EOF
1191
698dcdb6 1192 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1193#define __SVR4__ 1
1194EOF
1195
1196 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1197 ;;
1198 *-*-sysv5* )
1199 USE_SYSV=1
1200 USE_SVR4=1
698dcdb6 1201 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1202#define __SYSV__ 1
1203EOF
1204
698dcdb6 1205 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1206#define __SVR4__ 1
1207EOF
1208
1209 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1210 ;;
1211 *-*-aix* )
1212 USE_AIX=1
1213 USE_SYSV=1
1214 USE_SVR4=1
698dcdb6 1215 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1216#define __AIX__ 1
1217EOF
1218
698dcdb6 1219 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1220#define __SYSV__ 1
1221EOF
1222
698dcdb6 1223 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1224#define __SVR4__ 1
1225EOF
1226
1227 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1228 ;;
1229
1c8183e2 1230 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1231 USE_UNIX=0
1232 USE_WIN32=1
698dcdb6 1233 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1234#define __WIN32__ 1
1235EOF
1236
698dcdb6 1237 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1238#define __WIN95__ 1
1239EOF
1240
698dcdb6 1241 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1242#define __WINDOWS__ 1
1243EOF
1244
698dcdb6 1245 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1246#define __GNUWIN32__ 1
1247EOF
1248
698dcdb6 1249 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1250#define STRICT 1
1251EOF
1252
698dcdb6 1253 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1254#define WINVER 0x0400
1255EOF
1256
cf27ef00 1257 PROGRAM_EXT=".exe"
10f2d63a
VZ
1258 DEFAULT_DEFAULT_wxUSE_MSW=1
1259 ;;
1260
1261 *-pc-os2_emx )
698dcdb6 1262 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1263#define __EMX__ 1
1264EOF
1265
cf27ef00 1266 PROGRAM_EXT=".exe"
e07802fc 1267 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1268 ;;
1269
b4085ce6
GD
1270 *-*-darwin* )
1271 USE_BSD=1
1272 USE_MAC=1
698dcdb6 1273 cat >> confdefs.h <<\EOF
b4085ce6
GD
1274#define __MAC__ 1
1275EOF
1276
698dcdb6 1277 cat >> confdefs.h <<\EOF
b4085ce6
GD
1278#define __BSD__ 1
1279EOF
1280
698dcdb6 1281 cat >> confdefs.h <<\EOF
b4085ce6
GD
1282#define __UNIX__ 1
1283EOF
1284
1285 DEFAULT_DEFAULT_wxUSE_MAC=1
1286 ;;
1287
b12915c1
VZ
1288 *-*-beos* )
1289 USE_BEOS=1
698dcdb6 1290 cat >> confdefs.h <<\EOF
b12915c1
VZ
1291#define __BEOS__ 1
1292EOF
1293
1294 ;;
1295
10f2d63a 1296 *)
698dcdb6 1297 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1298esac
1299
1300if test "$USE_UNIX" = 1 ; then
b12915c1 1301 wxUSE_UNIX=yes
698dcdb6 1302 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1303#define __UNIX__ 1
1304EOF
1305
698dcdb6 1306
b12915c1
VZ
1307 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1308 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1309fi
1310
1311if test "$USE_BEOS" = 1; then
1312 SRC_SUBDIRS="$SRC_SUBDIRS be"
1313 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1314fi
1315
1316if test "$USE_LINUX" = 1; then
698dcdb6 1317 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
3e44f09d 1318echo "configure:1319: checking for gettext in -lc" >&5
698dcdb6
VZ
1319ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1320if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1321 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 1322else
698dcdb6
VZ
1323 ac_save_LIBS="$LIBS"
1324LIBS="-lc $LIBS"
1325cat > conftest.$ac_ext <<EOF
3e44f09d 1326#line 1327 "configure"
698dcdb6
VZ
1327#include "confdefs.h"
1328/* Override any gcc2 internal prototype to avoid an error. */
1329/* We use char because int might match the return type of a gcc2
1330 builtin and then its argument prototype would still apply. */
1331char gettext();
10f2d63a 1332
698dcdb6
VZ
1333int main() {
1334gettext()
1335; return 0; }
1336EOF
3e44f09d 1337if { (eval echo configure:1338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
1338 rm -rf conftest*
1339 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 1340else
698dcdb6
VZ
1341 echo "configure: failed program was:" >&5
1342 cat conftest.$ac_ext >&5
1343 rm -rf conftest*
1344 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 1345fi
698dcdb6
VZ
1346rm -f conftest*
1347LIBS="$ac_save_LIBS"
10f2d63a
VZ
1348
1349fi
698dcdb6
VZ
1350if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1351 echo "$ac_t""yes" 1>&6
1352 cat >> confdefs.h <<\EOF
1353#define wxHAVE_GLIBC2 1
1354EOF
10f2d63a
VZ
1355
1356else
698dcdb6 1357 echo "$ac_t""no" 1>&6
10f2d63a
VZ
1358fi
1359
1360fi
1361
1e487827 1362
1e487827 1363
6232543b 1364
10f2d63a
VZ
1365 wx_arg_cache_file="configarg.cache"
1366 echo "loading argument cache $wx_arg_cache_file"
1367 rm -f ${wx_arg_cache_file}.tmp
1368 touch ${wx_arg_cache_file}.tmp
1369 touch ${wx_arg_cache_file}
698dcdb6 1370
10f2d63a
VZ
1371
1372DEBUG_CONFIGURE=0
1373if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1374 DEFAULT_wxUSE_UNIVERSAL=no
1375
10f2d63a
VZ
1376 DEFAULT_wxUSE_THREADS=yes
1377
1378 DEFAULT_wxUSE_SHARED=yes
00cf1208 1379 DEFAULT_wxUSE_BURNT_NAME=no
1e6feb95 1380 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1381 DEFAULT_wxUSE_PROFILE=no
1382 DEFAULT_wxUSE_NO_DEPS=no
1383 DEFAULT_wxUSE_NO_RTTI=no
1384 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1385 DEFAULT_wxUSE_PERMISSIVE=no
1386 DEFAULT_wxUSE_DEBUG_FLAG=yes
1387 DEFAULT_wxUSE_DEBUG_INFO=yes
1388 DEFAULT_wxUSE_DEBUG_GDB=yes
1389 DEFAULT_wxUSE_MEM_TRACING=no
1390 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1391 DEFAULT_wxUSE_DMALLOC=no
1392 DEFAULT_wxUSE_APPLE_IEEE=no
1393
1394 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1395 DEFAULT_wxUSE_LOGWINDOW=no
1396 DEFAULT_wxUSE_LOGGUI=no
10f2d63a
VZ
1397
1398 DEFAULT_wxUSE_GUI=yes
1e6feb95 1399 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1400
3e44f09d 1401 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1402 DEFAULT_wxUSE_ZLIB=no
1403 DEFAULT_wxUSE_LIBPNG=no
1404 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1405 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1406 DEFAULT_wxUSE_ODBC=no
3fed1840 1407 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1408 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1409
eb4efbdc 1410 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1411 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1412 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1413 DEFAULT_wxUSE_CMDLINE_PARSER=no
1414 DEFAULT_wxUSE_DATETIME=no
1415 DEFAULT_wxUSE_TIMEDATE=no
1416 DEFAULT_wxUSE_TIMER=no
1417 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1418 DEFAULT_wxUSE_FILE=no
1e6feb95 1419 DEFAULT_wxUSE_FFILE=no
10f2d63a 1420 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1421 DEFAULT_wxUSE_WAVE=no
1422 DEFAULT_wxUSE_INTL=no
1423 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1424 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1425 DEFAULT_wxUSE_STREAMS=no
1426 DEFAULT_wxUSE_SOCKETS=no
1427 DEFAULT_wxUSE_DIALUP_MANAGER=no
1428 DEFAULT_wxUSE_SERIAL=no
1429 DEFAULT_wxUSE_JOYSTICK=no
1430 DEFAULT_wxUSE_DYNLIB_CLASS=no
1431 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1432 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1433
1434 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1435 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1436 DEFAULT_wxUSE_POSTSCRIPT=no
1437
1438 DEFAULT_wxUSE_X_RESOURCES=no
1439 DEFAULT_wxUSE_CLIPBOARD=no
1440 DEFAULT_wxUSE_TOOLTIPS=no
1441 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1442 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1443 DEFAULT_wxUSE_SPLINES=no
1444
1445 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1446 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1447 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1448
1449 DEFAULT_wxUSE_PROLOGIO=no
1450 DEFAULT_wxUSE_RESOURCES=no
1451 DEFAULT_wxUSE_CONSTRAINTS=no
1452 DEFAULT_wxUSE_IPC=no
1453 DEFAULT_wxUSE_HELP=no
29fd3c0c 1454 DEFAULT_wxUSE_MS_HTML_HELP=no
831b3152 1455
3379ed37 1456 DEFAULT_wxUSE_WXHTML_HELP=no
10f2d63a
VZ
1457 DEFAULT_wxUSE_WXTREE=no
1458 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1459 DEFAULT_wxUSE_MIMETYPE=no
3e44f09d 1460 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1461
1462 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1463 DEFAULT_wxUSE_CHOICEDLG=no
1464 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1465 DEFAULT_wxUSE_DIRDLG=no
1e6feb95
VZ
1466 DEFAULT_wxUSE_FILEDLG=no
1467 DEFAULT_wxUSE_FONTDLG=no
1468 DEFAULT_wxUSE_MSGDLG=no
1469 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a
VZ
1470 DEFAULT_wxUSE_TEXTDLG=no
1471 DEFAULT_wxUSE_STARTUP_TIPS=no
1472 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1473 DEFAULT_wxUSE_WIZARDDLG=no
1474
1e6feb95 1475 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1476 DEFAULT_wxUSE_MINIFRAME=no
1477 DEFAULT_wxUSE_HTML=no
24528b0c 1478 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1479 DEFAULT_wxUSE_FS_INET=no
1480 DEFAULT_wxUSE_FS_ZIP=no
1481 DEFAULT_wxUSE_BUSYINFO=no
1482 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1483 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1484
1485 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1486 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1487 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1488 DEFAULT_wxUSE_CALCTRL=no
1489 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1490 DEFAULT_wxUSE_CHECKBOX=no
1491 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1492 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1493 DEFAULT_wxUSE_COMBOBOX=no
1494 DEFAULT_wxUSE_GAUGE=no
1495 DEFAULT_wxUSE_GRID=no
1496 DEFAULT_wxUSE_NEW_GRID=no
1497 DEFAULT_wxUSE_IMAGLIST=no
1498 DEFAULT_wxUSE_LISTBOX=no
1499 DEFAULT_wxUSE_LISTCTRL=no
1500 DEFAULT_wxUSE_NOTEBOOK=no
1501 DEFAULT_wxUSE_RADIOBOX=no
1502 DEFAULT_wxUSE_RADIOBTN=no
1503 DEFAULT_wxUSE_SASH=no
1504 DEFAULT_wxUSE_SCROLLBAR=no
1505 DEFAULT_wxUSE_SLIDER=no
1506 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1507 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1508 DEFAULT_wxUSE_SPLITTER=no
1509 DEFAULT_wxUSE_STATBMP=no
1510 DEFAULT_wxUSE_STATBOX=no
1511 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1512 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1513 DEFAULT_wxUSE_STATUSBAR=yes
1514 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1515 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1516 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1517 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1518 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1519 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1520 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1521 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
1522
1523 DEFAULT_wxUSE_UNICODE=no
1524 DEFAULT_wxUSE_WCSRTOMBS=no
1525
0046ff7c 1526 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1527 DEFAULT_wxUSE_GIF=no
1528 DEFAULT_wxUSE_PCX=no
1529 DEFAULT_wxUSE_PNM=no
0046ff7c 1530 DEFAULT_wxUSE_XPM=no
10f2d63a 1531else
1e6feb95
VZ
1532 DEFAULT_wxUSE_UNIVERSAL=no
1533
10f2d63a
VZ
1534 DEFAULT_wxUSE_THREADS=yes
1535
1536 DEFAULT_wxUSE_SHARED=yes
00cf1208 1537 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1538 DEFAULT_wxUSE_OPTIMISE=yes
1539 DEFAULT_wxUSE_PROFILE=no
1540 DEFAULT_wxUSE_NO_DEPS=no
1541 DEFAULT_wxUSE_NO_RTTI=no
1542 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1543 DEFAULT_wxUSE_PERMISSIVE=no
1544 DEFAULT_wxUSE_DEBUG_FLAG=no
1545 DEFAULT_wxUSE_DEBUG_INFO=no
1546 DEFAULT_wxUSE_DEBUG_GDB=no
1547 DEFAULT_wxUSE_MEM_TRACING=no
1548 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1549 DEFAULT_wxUSE_DMALLOC=no
1550 DEFAULT_wxUSE_APPLE_IEEE=yes
1551
1552 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1553 DEFAULT_wxUSE_LOGWINDOW=yes
1554 DEFAULT_wxUSE_LOGGUI=yes
10f2d63a
VZ
1555
1556 DEFAULT_wxUSE_GUI=yes
1557
831b3152 1558 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1559 DEFAULT_wxUSE_ZLIB=yes
1560 DEFAULT_wxUSE_LIBPNG=yes
1561 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1562 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1563 DEFAULT_wxUSE_ODBC=no
3fed1840 1564 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1565 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1566
eb4efbdc 1567 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1568 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1569 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1570 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1571 DEFAULT_wxUSE_DATETIME=yes
1572 DEFAULT_wxUSE_TIMEDATE=no
1573 DEFAULT_wxUSE_TIMER=yes
1574 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1575 DEFAULT_wxUSE_FILE=yes
1e6feb95 1576 DEFAULT_wxUSE_FFILE=yes
10f2d63a 1577 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1578 DEFAULT_wxUSE_WAVE=no
1579 DEFAULT_wxUSE_INTL=yes
1580 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1581 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1582 DEFAULT_wxUSE_STREAMS=yes
1583 DEFAULT_wxUSE_SOCKETS=yes
1584 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1585 DEFAULT_wxUSE_SERIAL=yes
1586 DEFAULT_wxUSE_JOYSTICK=yes
1587 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1588 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1589 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1590
1591 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1592 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1593 DEFAULT_wxUSE_POSTSCRIPT=yes
1594
1595 DEFAULT_wxUSE_X_RESOURCES=no
1596 DEFAULT_wxUSE_CLIPBOARD=yes
1597 DEFAULT_wxUSE_TOOLTIPS=yes
1598 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1599 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1600 DEFAULT_wxUSE_SPLINES=yes
1601
1602 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1603 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1604 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1605
1606 DEFAULT_wxUSE_PROLOGIO=yes
1607 DEFAULT_wxUSE_RESOURCES=yes
1608 DEFAULT_wxUSE_CONSTRAINTS=yes
1609 DEFAULT_wxUSE_IPC=yes
1610 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1611 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1612 DEFAULT_wxUSE_WXHTML_HELP=yes
10f2d63a
VZ
1613 DEFAULT_wxUSE_WXTREE=yes
1614 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1615 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1616 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1617
1618 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1619 DEFAULT_wxUSE_CHOICEDLG=yes
1620 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1621 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95
VZ
1622 DEFAULT_wxUSE_FILEDLG=yes
1623 DEFAULT_wxUSE_FONTDLG=yes
1624 DEFAULT_wxUSE_MSGDLG=yes
1625 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a
VZ
1626 DEFAULT_wxUSE_TEXTDLG=yes
1627 DEFAULT_wxUSE_STARTUP_TIPS=yes
1628 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1629 DEFAULT_wxUSE_WIZARDDLG=yes
1630
1e6feb95 1631 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1632 DEFAULT_wxUSE_MINIFRAME=yes
1633 DEFAULT_wxUSE_HTML=yes
24528b0c 1634 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1635 DEFAULT_wxUSE_FS_INET=yes
1636 DEFAULT_wxUSE_FS_ZIP=yes
1637 DEFAULT_wxUSE_BUSYINFO=yes
1638 DEFAULT_wxUSE_ZIPSTREAM=yes
1639 DEFAULT_wxUSE_VALIDATORS=yes
1640
1641 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1642 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1643 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1644 DEFAULT_wxUSE_CALCTRL=yes
1645 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1646 DEFAULT_wxUSE_CHECKBOX=yes
1647 DEFAULT_wxUSE_CHECKLST=yes
1648 DEFAULT_wxUSE_CHOICE=yes
1649 DEFAULT_wxUSE_COMBOBOX=yes
1650 DEFAULT_wxUSE_GAUGE=yes
1651 DEFAULT_wxUSE_GRID=yes
cc977e5f 1652 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1653 DEFAULT_wxUSE_IMAGLIST=yes
1654 DEFAULT_wxUSE_LISTBOX=yes
1655 DEFAULT_wxUSE_LISTCTRL=yes
1656 DEFAULT_wxUSE_NOTEBOOK=yes
1657 DEFAULT_wxUSE_RADIOBOX=yes
1658 DEFAULT_wxUSE_RADIOBTN=yes
1659 DEFAULT_wxUSE_SASH=yes
1660 DEFAULT_wxUSE_SCROLLBAR=yes
1661 DEFAULT_wxUSE_SLIDER=yes
1662 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1663 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1664 DEFAULT_wxUSE_SPLITTER=yes
1665 DEFAULT_wxUSE_STATBMP=yes
1666 DEFAULT_wxUSE_STATBOX=yes
1667 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1668 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1669 DEFAULT_wxUSE_STATUSBAR=yes
1670 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1671 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1672 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1673 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1674 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1675 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1676 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1677 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
1678
1679 DEFAULT_wxUSE_UNICODE=no
1680 DEFAULT_wxUSE_WCSRTOMBS=no
1681
0046ff7c 1682 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1683 DEFAULT_wxUSE_GIF=yes
1684 DEFAULT_wxUSE_PCX=yes
1685 DEFAULT_wxUSE_PNM=yes
0046ff7c 1686 DEFAULT_wxUSE_XPM=yes
10f2d63a
VZ
1687fi
1688
698dcdb6
VZ
1689
1690
10f2d63a
VZ
1691for toolkit in `echo $ALL_TOOLKITS`; do
1692 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1693 if test "x$LINE" != x ; then
1694 has_toolkit_in_cache=1
1695 eval "DEFAULT_$LINE"
1696 eval "CACHE_$toolkit=1"
1697 fi
1698done
1699
698dcdb6
VZ
1700
1701
1702 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
3e44f09d 1703echo "configure:1704: checking for --enable-gui" >&5
10f2d63a
VZ
1704 no_cache=0
1705 # Check whether --enable-gui or --disable-gui was given.
1706if test "${enable_gui+set}" = set; then
1707 enableval="$enable_gui"
698dcdb6 1708
10f2d63a
VZ
1709 if test "$enableval" = yes; then
1710 ac_cv_use_gui='wxUSE_GUI=yes'
1711 else
1712 ac_cv_use_gui='wxUSE_GUI=no'
1713 fi
698dcdb6 1714
10f2d63a 1715else
698dcdb6 1716
10f2d63a
VZ
1717 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1718 if test "x$LINE" != x ; then
1719 eval "DEFAULT_$LINE"
1720 else
1721 no_cache=1
1722 fi
1723
1724 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1725
1726fi
10f2d63a
VZ
1727
1728
1729 eval "$ac_cv_use_gui"
1730 if test "$no_cache" != 1; then
1731 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1732 fi
1733
1734 if test "$wxUSE_GUI" = yes; then
698dcdb6 1735 echo "$ac_t""yes" 1>&6
10f2d63a 1736 else
698dcdb6 1737 echo "$ac_t""no" 1>&6
10f2d63a 1738 fi
698dcdb6 1739
10f2d63a 1740
b12915c1 1741if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1742
1e6feb95
VZ
1743
1744 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
3e44f09d 1745echo "configure:1746: checking for --enable-universal" >&5
1e6feb95
VZ
1746 no_cache=0
1747 # Check whether --enable-universal or --disable-universal was given.
1748if test "${enable_universal+set}" = set; then
1749 enableval="$enable_universal"
1750
1751 if test "$enableval" = yes; then
1752 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1753 else
1754 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1755 fi
1756
1757else
1758
1759 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1760 if test "x$LINE" != x ; then
1761 eval "DEFAULT_$LINE"
1762 else
1763 no_cache=1
1764 fi
1765
1766 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1767
1768fi
1769
1770
1771 eval "$ac_cv_use_universal"
1772 if test "$no_cache" != 1; then
1773 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1774 fi
1775
1776 if test "$wxUSE_UNIVERSAL" = yes; then
1777 echo "$ac_t""yes" 1>&6
1778 else
1779 echo "$ac_t""no" 1>&6
1780 fi
1781
10f2d63a
VZ
1782# Check whether --with-gtk or --without-gtk was given.
1783if test "${with_gtk+set}" = set; then
1784 withval="$with_gtk"
1785 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1786fi
10f2d63a
VZ
1787
1788# Check whether --with-motif or --without-motif was given.
1789if test "${with_motif+set}" = set; then
1790 withval="$with_motif"
1791 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1792fi
10f2d63a 1793
b4085ce6
GD
1794# Check whether --with-mac or --without-mac was given.
1795if test "${with_mac+set}" = set; then
1796 withval="$with_mac"
1797 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1798fi
b4085ce6 1799
10f2d63a
VZ
1800# Check whether --with-wine or --without-wine was given.
1801if test "${with_wine+set}" = set; then
1802 withval="$with_wine"
1803 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1804fi
10f2d63a
VZ
1805
1806# Check whether --with-cygwin or --without-cygwin was given.
1807if test "${with_cygwin+set}" = set; then
1808 withval="$with_cygwin"
1809 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
698dcdb6 1810fi
10f2d63a
VZ
1811
1812# Check whether --with-mingw or --without-mingw was given.
1813if test "${with_mingw+set}" = set; then
1814 withval="$with_mingw"
1815 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
698dcdb6 1816fi
10f2d63a 1817
e07802fc
VZ
1818# Check whether --with-pm or --without-pm was given.
1819if test "${with_pm+set}" = set; then
1820 withval="$with_pm"
1821 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1822fi
1823
1e6feb95
VZ
1824# Check whether --with-mgl or --without-mgl was given.
1825if test "${with_mgl+set}" = set; then
1826 withval="$with_mgl"
1827 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1828fi
1829
10f2d63a 1830
8168de4c
VZ
1831# Check whether --enable-gtk2 or --disable-gtk2 was given.
1832if test "${enable_gtk2+set}" = set; then
1833 enableval="$enable_gtk2"
1834 wxUSE_GTK2=1
10f2d63a 1835else
8168de4c 1836 wxUSE_GTK2=0
698dcdb6
VZ
1837fi
1838
703e0a69 1839
1e487827 1840
698dcdb6 1841 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
3e44f09d 1842echo "configure:1843: checking for --with-libpng" >&5
698dcdb6
VZ
1843 no_cache=0
1844 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1845if test "${with_libpng+set}" = set; then
1846 withval="$with_libpng"
698dcdb6 1847
10f2d63a 1848 if test "$withval" = yes; then
b12915c1 1849 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1850 elif test "$withval" = no; then
b12915c1 1851 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1852 elif test "$withval" = sys; then
1853 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1854 else
698dcdb6 1855 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1856 fi
698dcdb6 1857
10f2d63a 1858else
698dcdb6 1859
b12915c1 1860 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1861 if test "x$LINE" != x ; then
1862 eval "DEFAULT_$LINE"
1863 else
1864 no_cache=1
1865 fi
1866
b12915c1 1867 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1868
1869fi
10f2d63a
VZ
1870
1871
b12915c1 1872 eval "$ac_cv_use_libpng"
10f2d63a 1873 if test "$no_cache" != 1; then
b12915c1 1874 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1875 fi
1876
b12915c1 1877 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1878 echo "$ac_t""yes" 1>&6
422107f9 1879 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1880 echo "$ac_t""no" 1>&6
422107f9 1881 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1882 echo "$ac_t""system version" 1>&6
422107f9 1883 else
698dcdb6 1884 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1885 fi
698dcdb6 1886
10f2d63a 1887
698dcdb6 1888 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
3e44f09d 1889echo "configure:1890: checking for --with-libjpeg" >&5
10f2d63a 1890 no_cache=0
698dcdb6 1891 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1892if test "${with_libjpeg+set}" = set; then
1893 withval="$with_libjpeg"
698dcdb6 1894
10f2d63a 1895 if test "$withval" = yes; then
b12915c1 1896 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1897 elif test "$withval" = no; then
b12915c1 1898 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1899 elif test "$withval" = sys; then
1900 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1901 else
698dcdb6 1902 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1903 fi
698dcdb6 1904
10f2d63a 1905else
698dcdb6 1906
b12915c1 1907 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1908 if test "x$LINE" != x ; then
1909 eval "DEFAULT_$LINE"
1910 else
1911 no_cache=1
1912 fi
1913
b12915c1 1914 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
1915
1916fi
10f2d63a
VZ
1917
1918
b12915c1 1919 eval "$ac_cv_use_libjpeg"
10f2d63a 1920 if test "$no_cache" != 1; then
b12915c1 1921 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1922 fi
1923
b12915c1 1924 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 1925 echo "$ac_t""yes" 1>&6
422107f9 1926 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 1927 echo "$ac_t""no" 1>&6
422107f9 1928 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 1929 echo "$ac_t""system version" 1>&6
422107f9 1930 else
698dcdb6 1931 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1932 fi
698dcdb6 1933
10f2d63a 1934
698dcdb6 1935 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
3e44f09d 1936echo "configure:1937: checking for --with-libtiff" >&5
10f2d63a 1937 no_cache=0
698dcdb6 1938 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
1939if test "${with_libtiff+set}" = set; then
1940 withval="$with_libtiff"
698dcdb6 1941
10f2d63a 1942 if test "$withval" = yes; then
b12915c1 1943 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1944 elif test "$withval" = no; then
b12915c1 1945 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1946 elif test "$withval" = sys; then
1947 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1948 else
698dcdb6 1949 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1950 fi
698dcdb6 1951
10f2d63a 1952else
698dcdb6 1953
b12915c1 1954 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1955 if test "x$LINE" != x ; then
1956 eval "DEFAULT_$LINE"
1957 else
1958 no_cache=1
1959 fi
1960
b12915c1 1961 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
1962
1963fi
10f2d63a
VZ
1964
1965
b12915c1 1966 eval "$ac_cv_use_libtiff"
10f2d63a 1967 if test "$no_cache" != 1; then
b12915c1 1968 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1969 fi
1970
b12915c1 1971 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 1972 echo "$ac_t""yes" 1>&6
0dcf9893 1973 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 1974 echo "$ac_t""no" 1>&6
0dcf9893 1975 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 1976 echo "$ac_t""system version" 1>&6
0dcf9893 1977 else
698dcdb6 1978 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1979 fi
698dcdb6 1980
10f2d63a 1981
698dcdb6 1982 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
3e44f09d 1983echo "configure:1984: checking for --with-freetype" >&5
3fed1840 1984 no_cache=0
698dcdb6 1985 # Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
1986if test "${with_freetype+set}" = set; then
1987 withval="$with_freetype"
698dcdb6 1988
3fed1840
RR
1989 if test "$withval" = yes; then
1990 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1991 elif test "$withval" = no; then
1992 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1993 elif test "$withval" = sys; then
1994 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1995 else
698dcdb6 1996 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 1997 fi
698dcdb6 1998
3fed1840 1999else
698dcdb6 2000
3fed1840
RR
2001 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2002 if test "x$LINE" != x ; then
2003 eval "DEFAULT_$LINE"
2004 else
2005 no_cache=1
2006 fi
2007
2008 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
698dcdb6
VZ
2009
2010fi
3fed1840
RR
2011
2012
2013 eval "$ac_cv_use_freetype"
2014 if test "$no_cache" != 1; then
2015 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2016 fi
2017
2018 if test "$wxUSE_FREETYPE" = yes; then
698dcdb6 2019 echo "$ac_t""yes" 1>&6
3fed1840 2020 elif test "$wxUSE_FREETYPE" = no; then
698dcdb6 2021 echo "$ac_t""no" 1>&6
3fed1840 2022 elif test "$wxUSE_FREETYPE" = sys; then
698dcdb6 2023 echo "$ac_t""system version" 1>&6
3fed1840 2024 else
698dcdb6 2025 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 2026 fi
698dcdb6 2027
3fed1840 2028
698dcdb6 2029 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
3e44f09d 2030echo "configure:2031: checking for --with-opengl" >&5
10f2d63a 2031 no_cache=0
698dcdb6 2032 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2033if test "${with_opengl+set}" = set; then
2034 withval="$with_opengl"
698dcdb6 2035
10f2d63a 2036 if test "$withval" = yes; then
b12915c1 2037 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2038 else
b12915c1 2039 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2040 fi
698dcdb6 2041
10f2d63a 2042else
698dcdb6 2043
b12915c1 2044 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2045 if test "x$LINE" != x ; then
2046 eval "DEFAULT_$LINE"
2047 else
2048 no_cache=1
2049 fi
2050
b12915c1 2051 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2052
2053fi
10f2d63a
VZ
2054
2055
b12915c1 2056 eval "$ac_cv_use_opengl"
10f2d63a 2057 if test "$no_cache" != 1; then
b12915c1 2058 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2059 fi
2060
b12915c1 2061 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2062 echo "$ac_t""yes" 1>&6
10f2d63a 2063 else
698dcdb6 2064 echo "$ac_t""no" 1>&6
10f2d63a 2065 fi
698dcdb6 2066
10f2d63a 2067
b12915c1
VZ
2068fi
2069
1e487827 2070
698dcdb6 2071 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
3e44f09d 2072echo "configure:2073: checking for --with-dmalloc" >&5
698dcdb6
VZ
2073 no_cache=0
2074 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2075if test "${with_dmalloc+set}" = set; then
2076 withval="$with_dmalloc"
698dcdb6 2077
c7a2bf27 2078 if test "$withval" = yes; then
b12915c1 2079 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2080 else
b12915c1 2081 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2082 fi
698dcdb6 2083
c7a2bf27 2084else
698dcdb6 2085
b12915c1 2086 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2087 if test "x$LINE" != x ; then
2088 eval "DEFAULT_$LINE"
2089 else
2090 no_cache=1
2091 fi
2092
b12915c1 2093 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2094
2095fi
c7a2bf27
RR
2096
2097
b12915c1 2098 eval "$ac_cv_use_dmalloc"
c7a2bf27 2099 if test "$no_cache" != 1; then
b12915c1 2100 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2101 fi
2102
b12915c1 2103 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2104 echo "$ac_t""yes" 1>&6
c7a2bf27 2105 else
698dcdb6 2106 echo "$ac_t""no" 1>&6
c7a2bf27 2107 fi
698dcdb6 2108
c7a2bf27 2109
3e44f09d
VZ
2110 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2111echo "configure:2112: checking for --with-regex" >&5
2112 no_cache=0
2113 # Check whether --with-regex or --without-regex was given.
2114if test "${with_regex+set}" = set; then
2115 withval="$with_regex"
2116
2117 if test "$withval" = yes; then
2118 ac_cv_use_regex='wxUSE_REGEX=yes'
2119 elif test "$withval" = no; then
2120 ac_cv_use_regex='wxUSE_REGEX=no'
2121 elif test "$withval" = sys; then
2122 ac_cv_use_regex='wxUSE_REGEX=sys'
2123 else
2124 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2125 fi
2126
2127else
2128
2129 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2130 if test "x$LINE" != x ; then
2131 eval "DEFAULT_$LINE"
2132 else
2133 no_cache=1
2134 fi
2135
2136 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2137
2138fi
2139
2140
2141 eval "$ac_cv_use_regex"
2142 if test "$no_cache" != 1; then
2143 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2144 fi
2145
2146 if test "$wxUSE_REGEX" = yes; then
2147 echo "$ac_t""yes" 1>&6
2148 elif test "$wxUSE_REGEX" = no; then
2149 echo "$ac_t""no" 1>&6
2150 elif test "$wxUSE_REGEX" = sys; then
2151 echo "$ac_t""system version" 1>&6
2152 else
2153 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2154 fi
2155
2156
698dcdb6 2157 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
3e44f09d 2158echo "configure:2159: checking for --with-zlib" >&5
10f2d63a 2159 no_cache=0
698dcdb6 2160 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2161if test "${with_zlib+set}" = set; then
2162 withval="$with_zlib"
698dcdb6 2163
10f2d63a 2164 if test "$withval" = yes; then
b12915c1 2165 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2166 elif test "$withval" = no; then
b12915c1 2167 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2168 elif test "$withval" = sys; then
2169 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2170 else
698dcdb6 2171 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2172 fi
698dcdb6 2173
10f2d63a 2174else
698dcdb6 2175
b12915c1 2176 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2177 if test "x$LINE" != x ; then
2178 eval "DEFAULT_$LINE"
2179 else
2180 no_cache=1
2181 fi
2182
b12915c1 2183 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2184
2185fi
10f2d63a
VZ
2186
2187
b12915c1 2188 eval "$ac_cv_use_zlib"
10f2d63a 2189 if test "$no_cache" != 1; then
b12915c1 2190 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2191 fi
2192
b12915c1 2193 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2194 echo "$ac_t""yes" 1>&6
422107f9 2195 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2196 echo "$ac_t""no" 1>&6
422107f9 2197 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2198 echo "$ac_t""system version" 1>&6
422107f9 2199 else
698dcdb6 2200 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2201 fi
698dcdb6 2202
10f2d63a 2203
698dcdb6 2204 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
3e44f09d 2205echo "configure:2206: checking for --with-odbc" >&5
10f2d63a 2206 no_cache=0
698dcdb6 2207 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2208if test "${with_odbc+set}" = set; then
2209 withval="$with_odbc"
698dcdb6 2210
10f2d63a
VZ
2211 if test "$withval" = yes; then
2212 ac_cv_use_odbc='wxUSE_ODBC=yes'
2213 else
2214 ac_cv_use_odbc='wxUSE_ODBC=no'
2215 fi
698dcdb6 2216
10f2d63a 2217else
698dcdb6 2218
10f2d63a
VZ
2219 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2220 if test "x$LINE" != x ; then
2221 eval "DEFAULT_$LINE"
2222 else
2223 no_cache=1
2224 fi
2225
2226 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2227
2228fi
10f2d63a
VZ
2229
2230
2231 eval "$ac_cv_use_odbc"
2232 if test "$no_cache" != 1; then
2233 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2234 fi
2235
2236 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2237 echo "$ac_t""yes" 1>&6
10f2d63a 2238 else
698dcdb6 2239 echo "$ac_t""no" 1>&6
10f2d63a 2240 fi
698dcdb6
VZ
2241
2242
10f2d63a 2243
698dcdb6
VZ
2244
2245
2246 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
3e44f09d 2247echo "configure:2248: checking for --enable-shared" >&5
10f2d63a
VZ
2248 no_cache=0
2249 # Check whether --enable-shared or --disable-shared was given.
2250if test "${enable_shared+set}" = set; then
2251 enableval="$enable_shared"
698dcdb6 2252
10f2d63a
VZ
2253 if test "$enableval" = yes; then
2254 ac_cv_use_shared='wxUSE_SHARED=yes'
2255 else
2256 ac_cv_use_shared='wxUSE_SHARED=no'
2257 fi
698dcdb6 2258
10f2d63a 2259else
698dcdb6 2260
10f2d63a
VZ
2261 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2262 if test "x$LINE" != x ; then
2263 eval "DEFAULT_$LINE"
2264 else
2265 no_cache=1
2266 fi
2267
2268 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2269
2270fi
10f2d63a
VZ
2271
2272
2273 eval "$ac_cv_use_shared"
2274 if test "$no_cache" != 1; then
2275 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2276 fi
2277
2278 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2279 echo "$ac_t""yes" 1>&6
10f2d63a 2280 else
698dcdb6 2281 echo "$ac_t""no" 1>&6
10f2d63a 2282 fi
698dcdb6 2283
10f2d63a 2284
698dcdb6 2285 echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6
3e44f09d 2286echo "configure:2287: checking for --enable-burnt_name" >&5
00cf1208
RR
2287 no_cache=0
2288 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2289if test "${enable_burnt_name+set}" = set; then
2290 enableval="$enable_burnt_name"
698dcdb6 2291
00cf1208
RR
2292 if test "$enableval" = yes; then
2293 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2294 else
2295 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2296 fi
698dcdb6 2297
00cf1208 2298else
698dcdb6 2299
00cf1208
RR
2300 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2301 if test "x$LINE" != x ; then
2302 eval "DEFAULT_$LINE"
2303 else
2304 no_cache=1
2305 fi
2306
2307 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
698dcdb6
VZ
2308
2309fi
00cf1208
RR
2310
2311
2312 eval "$ac_cv_use_burnt_name"
2313 if test "$no_cache" != 1; then
2314 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2315 fi
2316
2317 if test "$wxUSE_BURNT_NAME" = yes; then
698dcdb6 2318 echo "$ac_t""yes" 1>&6
00cf1208 2319 else
698dcdb6 2320 echo "$ac_t""no" 1>&6
00cf1208 2321 fi
698dcdb6 2322
00cf1208 2323
698dcdb6 2324 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
3e44f09d 2325echo "configure:2326: checking for --enable-optimise" >&5
10f2d63a
VZ
2326 no_cache=0
2327 # Check whether --enable-optimise or --disable-optimise was given.
2328if test "${enable_optimise+set}" = set; then
2329 enableval="$enable_optimise"
698dcdb6 2330
10f2d63a
VZ
2331 if test "$enableval" = yes; then
2332 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2333 else
2334 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2335 fi
698dcdb6 2336
10f2d63a 2337else
698dcdb6 2338
10f2d63a
VZ
2339 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2340 if test "x$LINE" != x ; then
2341 eval "DEFAULT_$LINE"
2342 else
2343 no_cache=1
2344 fi
2345
2346 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2347
2348fi
10f2d63a
VZ
2349
2350
2351 eval "$ac_cv_use_optimise"
2352 if test "$no_cache" != 1; then
2353 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2354 fi
2355
2356 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2357 echo "$ac_t""yes" 1>&6
10f2d63a 2358 else
698dcdb6 2359 echo "$ac_t""no" 1>&6
10f2d63a 2360 fi
698dcdb6 2361
10f2d63a 2362
698dcdb6 2363 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
3e44f09d 2364echo "configure:2365: checking for --enable-debug" >&5
10f2d63a
VZ
2365 no_cache=0
2366 # Check whether --enable-debug or --disable-debug was given.
2367if test "${enable_debug+set}" = set; then
2368 enableval="$enable_debug"
698dcdb6 2369
10f2d63a
VZ
2370 if test "$enableval" = yes; then
2371 ac_cv_use_debug='wxUSE_DEBUG=yes'
2372 else
2373 ac_cv_use_debug='wxUSE_DEBUG=no'
2374 fi
698dcdb6 2375
10f2d63a 2376else
698dcdb6 2377
10f2d63a
VZ
2378 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2379 if test "x$LINE" != x ; then
2380 eval "DEFAULT_$LINE"
2381 else
2382 no_cache=1
2383 fi
2384
2385 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2386
2387fi
10f2d63a
VZ
2388
2389
2390 eval "$ac_cv_use_debug"
2391 if test "$no_cache" != 1; then
2392 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2393 fi
2394
2395 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2396 echo "$ac_t""yes" 1>&6
10f2d63a 2397 else
698dcdb6 2398 echo "$ac_t""no" 1>&6
10f2d63a 2399 fi
698dcdb6 2400
10f2d63a
VZ
2401
2402if test "$wxUSE_DEBUG" = "yes"; then
2403 DEFAULT_wxUSE_DEBUG_FLAG=yes
2404 DEFAULT_wxUSE_DEBUG_INFO=yes
2405elif test "$wxUSE_DEBUG" = "no"; then
2406 DEFAULT_wxUSE_DEBUG_FLAG=no
2407 DEFAULT_wxUSE_DEBUG_INFO=no
2408fi
2409
698dcdb6
VZ
2410
2411 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
3e44f09d 2412echo "configure:2413: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2413 no_cache=0
2414 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2415if test "${enable_debug_flag+set}" = set; then
2416 enableval="$enable_debug_flag"
698dcdb6 2417
10f2d63a
VZ
2418 if test "$enableval" = yes; then
2419 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2420 else
2421 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2422 fi
698dcdb6 2423
10f2d63a 2424else
698dcdb6 2425
10f2d63a
VZ
2426 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2427 if test "x$LINE" != x ; then
2428 eval "DEFAULT_$LINE"
2429 else
2430 no_cache=1
2431 fi
2432
2433 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2434
2435fi
10f2d63a
VZ
2436
2437
2438 eval "$ac_cv_use_debug_flag"
2439 if test "$no_cache" != 1; then
2440 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2441 fi
2442
2443 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2444 echo "$ac_t""yes" 1>&6
10f2d63a 2445 else
698dcdb6 2446 echo "$ac_t""no" 1>&6
10f2d63a 2447 fi
698dcdb6 2448
10f2d63a 2449
698dcdb6 2450 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
3e44f09d 2451echo "configure:2452: checking for --enable-debug_info" >&5
10f2d63a
VZ
2452 no_cache=0
2453 # Check whether --enable-debug_info or --disable-debug_info was given.
2454if test "${enable_debug_info+set}" = set; then
2455 enableval="$enable_debug_info"
698dcdb6 2456
10f2d63a
VZ
2457 if test "$enableval" = yes; then
2458 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2459 else
2460 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2461 fi
698dcdb6 2462
10f2d63a 2463else
698dcdb6 2464
10f2d63a
VZ
2465 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2466 if test "x$LINE" != x ; then
2467 eval "DEFAULT_$LINE"
2468 else
2469 no_cache=1
2470 fi
2471
2472 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2473
2474fi
10f2d63a
VZ
2475
2476
2477 eval "$ac_cv_use_debug_info"
2478 if test "$no_cache" != 1; then
2479 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2480 fi
2481
2482 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2483 echo "$ac_t""yes" 1>&6
10f2d63a 2484 else
698dcdb6 2485 echo "$ac_t""no" 1>&6
10f2d63a 2486 fi
698dcdb6 2487
10f2d63a 2488
698dcdb6 2489 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
3e44f09d 2490echo "configure:2491: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2491 no_cache=0
2492 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2493if test "${enable_debug_gdb+set}" = set; then
2494 enableval="$enable_debug_gdb"
698dcdb6 2495
10f2d63a
VZ
2496 if test "$enableval" = yes; then
2497 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2498 else
2499 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2500 fi
698dcdb6 2501
10f2d63a 2502else
698dcdb6 2503
10f2d63a
VZ
2504 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2505 if test "x$LINE" != x ; then
2506 eval "DEFAULT_$LINE"
2507 else
2508 no_cache=1
2509 fi
2510
2511 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2512
2513fi
10f2d63a
VZ
2514
2515
2516 eval "$ac_cv_use_debug_gdb"
2517 if test "$no_cache" != 1; then
2518 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2519 fi
2520
2521 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2522 echo "$ac_t""yes" 1>&6
10f2d63a 2523 else
698dcdb6 2524 echo "$ac_t""no" 1>&6
10f2d63a 2525 fi
698dcdb6 2526
10f2d63a 2527
698dcdb6 2528 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
3e44f09d 2529echo "configure:2530: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2530 no_cache=0
2531 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2532if test "${enable_debug_cntxt+set}" = set; then
2533 enableval="$enable_debug_cntxt"
698dcdb6 2534
10f2d63a
VZ
2535 if test "$enableval" = yes; then
2536 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2537 else
2538 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2539 fi
698dcdb6 2540
10f2d63a 2541else
698dcdb6 2542
10f2d63a
VZ
2543 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2544 if test "x$LINE" != x ; then
2545 eval "DEFAULT_$LINE"
2546 else
2547 no_cache=1
2548 fi
2549
2550 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2551
2552fi
10f2d63a
VZ
2553
2554
2555 eval "$ac_cv_use_debug_cntxt"
2556 if test "$no_cache" != 1; then
2557 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2558 fi
2559
2560 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2561 echo "$ac_t""yes" 1>&6
10f2d63a 2562 else
698dcdb6 2563 echo "$ac_t""no" 1>&6
10f2d63a 2564 fi
698dcdb6 2565
10f2d63a 2566
698dcdb6 2567 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
3e44f09d 2568echo "configure:2569: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2569 no_cache=0
2570 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2571if test "${enable_mem_tracing+set}" = set; then
2572 enableval="$enable_mem_tracing"
698dcdb6 2573
10f2d63a
VZ
2574 if test "$enableval" = yes; then
2575 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2576 else
2577 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2578 fi
698dcdb6 2579
10f2d63a 2580else
698dcdb6 2581
10f2d63a
VZ
2582 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2583 if test "x$LINE" != x ; then
2584 eval "DEFAULT_$LINE"
2585 else
2586 no_cache=1
2587 fi
2588
2589 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2590
2591fi
10f2d63a
VZ
2592
2593
2594 eval "$ac_cv_use_mem_tracing"
2595 if test "$no_cache" != 1; then
2596 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2597 fi
2598
2599 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2600 echo "$ac_t""yes" 1>&6
10f2d63a 2601 else
698dcdb6 2602 echo "$ac_t""no" 1>&6
10f2d63a 2603 fi
698dcdb6 2604
10f2d63a 2605
698dcdb6 2606 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
3e44f09d 2607echo "configure:2608: checking for --enable-profile" >&5
10f2d63a
VZ
2608 no_cache=0
2609 # Check whether --enable-profile or --disable-profile was given.
2610if test "${enable_profile+set}" = set; then
2611 enableval="$enable_profile"
698dcdb6 2612
10f2d63a
VZ
2613 if test "$enableval" = yes; then
2614 ac_cv_use_profile='wxUSE_PROFILE=yes'
2615 else
2616 ac_cv_use_profile='wxUSE_PROFILE=no'
2617 fi
698dcdb6 2618
10f2d63a 2619else
698dcdb6 2620
10f2d63a
VZ
2621 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2622 if test "x$LINE" != x ; then
2623 eval "DEFAULT_$LINE"
2624 else
2625 no_cache=1
2626 fi
2627
2628 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2629
2630fi
10f2d63a
VZ
2631
2632
2633 eval "$ac_cv_use_profile"
2634 if test "$no_cache" != 1; then
2635 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2636 fi
2637
2638 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2639 echo "$ac_t""yes" 1>&6
10f2d63a 2640 else
698dcdb6 2641 echo "$ac_t""no" 1>&6
10f2d63a 2642 fi
698dcdb6 2643
10f2d63a 2644
698dcdb6 2645 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
3e44f09d 2646echo "configure:2647: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2647 no_cache=0
2648 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2649if test "${enable_no_rtti+set}" = set; then
2650 enableval="$enable_no_rtti"
698dcdb6 2651
10f2d63a
VZ
2652 if test "$enableval" = yes; then
2653 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2654 else
2655 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2656 fi
698dcdb6 2657
10f2d63a 2658else
698dcdb6 2659
10f2d63a
VZ
2660 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2661 if test "x$LINE" != x ; then
2662 eval "DEFAULT_$LINE"
2663 else
2664 no_cache=1
2665 fi
2666
2667 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2668
2669fi
10f2d63a
VZ
2670
2671
2672 eval "$ac_cv_use_no_rtti"
2673 if test "$no_cache" != 1; then
2674 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2675 fi
2676
2677 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2678 echo "$ac_t""yes" 1>&6
10f2d63a 2679 else
698dcdb6 2680 echo "$ac_t""no" 1>&6
10f2d63a 2681 fi
698dcdb6 2682
10f2d63a 2683
698dcdb6 2684 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
3e44f09d 2685echo "configure:2686: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2686 no_cache=0
2687 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2688if test "${enable_no_exceptions+set}" = set; then
2689 enableval="$enable_no_exceptions"
698dcdb6 2690
10f2d63a
VZ
2691 if test "$enableval" = yes; then
2692 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2693 else
2694 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2695 fi
698dcdb6 2696
10f2d63a 2697else
698dcdb6 2698
10f2d63a
VZ
2699 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2700 if test "x$LINE" != x ; then
2701 eval "DEFAULT_$LINE"
2702 else
2703 no_cache=1
2704 fi
2705
2706 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2707
2708fi
10f2d63a
VZ
2709
2710
2711 eval "$ac_cv_use_no_exceptions"
2712 if test "$no_cache" != 1; then
2713 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2714 fi
2715
2716 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2717 echo "$ac_t""yes" 1>&6
10f2d63a 2718 else
698dcdb6 2719 echo "$ac_t""no" 1>&6
10f2d63a 2720 fi
698dcdb6 2721
10f2d63a 2722
698dcdb6 2723 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
3e44f09d 2724echo "configure:2725: checking for --enable-permissive" >&5
10f2d63a
VZ
2725 no_cache=0
2726 # Check whether --enable-permissive or --disable-permissive was given.
2727if test "${enable_permissive+set}" = set; then
2728 enableval="$enable_permissive"
698dcdb6 2729
10f2d63a
VZ
2730 if test "$enableval" = yes; then
2731 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2732 else
2733 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2734 fi
698dcdb6 2735
10f2d63a 2736else
698dcdb6 2737
10f2d63a
VZ
2738 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2739 if test "x$LINE" != x ; then
2740 eval "DEFAULT_$LINE"
2741 else
2742 no_cache=1
2743 fi
2744
2745 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2746
2747fi
10f2d63a
VZ
2748
2749
2750 eval "$ac_cv_use_permissive"
2751 if test "$no_cache" != 1; then
2752 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2753 fi
2754
2755 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2756 echo "$ac_t""yes" 1>&6
10f2d63a 2757 else
698dcdb6 2758 echo "$ac_t""no" 1>&6
10f2d63a 2759 fi
698dcdb6 2760
10f2d63a 2761
698dcdb6 2762 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
3e44f09d 2763echo "configure:2764: checking for --enable-no_deps" >&5
10f2d63a
VZ
2764 no_cache=0
2765 # Check whether --enable-no_deps or --disable-no_deps was given.
2766if test "${enable_no_deps+set}" = set; then
2767 enableval="$enable_no_deps"
698dcdb6 2768
10f2d63a
VZ
2769 if test "$enableval" = yes; then
2770 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2771 else
2772 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2773 fi
698dcdb6 2774
10f2d63a 2775else
698dcdb6 2776
10f2d63a
VZ
2777 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2778 if test "x$LINE" != x ; then
2779 eval "DEFAULT_$LINE"
2780 else
2781 no_cache=1
2782 fi
2783
2784 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2785
2786fi
10f2d63a
VZ
2787
2788
2789 eval "$ac_cv_use_no_deps"
2790 if test "$no_cache" != 1; then
2791 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2792 fi
2793
2794 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2795 echo "$ac_t""yes" 1>&6
10f2d63a 2796 else
698dcdb6 2797 echo "$ac_t""no" 1>&6
10f2d63a 2798 fi
698dcdb6
VZ
2799
2800
10f2d63a 2801
54276ccf 2802 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
3e44f09d 2803echo "configure:2804: checking for --enable-compat20" >&5
54276ccf
VZ
2804 no_cache=0
2805 # Check whether --enable-compat20 or --disable-compat20 was given.
2806if test "${enable_compat20+set}" = set; then
2807 enableval="$enable_compat20"
2808
2809 if test "$enableval" = yes; then
2810 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2811 else
2812 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2813 fi
2814
2815else
2816
2817 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2818 if test "x$LINE" != x ; then
2819 eval "DEFAULT_$LINE"
2820 else
2821 no_cache=1
2822 fi
2823
2824 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2825
2826fi
2827
2828
2829 eval "$ac_cv_use_compat20"
2830 if test "$no_cache" != 1; then
2831 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2832 fi
2833
2834 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2835 echo "$ac_t""yes" 1>&6
2836 else
2837 echo "$ac_t""no" 1>&6
2838 fi
2839
2840
2841 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
3e44f09d 2842echo "configure:2843: checking for --enable-compat22" >&5
54276ccf
VZ
2843 no_cache=0
2844 # Check whether --enable-compat22 or --disable-compat22 was given.
2845if test "${enable_compat22+set}" = set; then
2846 enableval="$enable_compat22"
2847
2848 if test "$enableval" = yes; then
2849 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2850 else
2851 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2852 fi
2853
2854else
2855
2856 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2857 if test "x$LINE" != x ; then
2858 eval "DEFAULT_$LINE"
2859 else
2860 no_cache=1
2861 fi
2862
2863 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2864
2865fi
2866
2867
2868 eval "$ac_cv_use_compat22"
2869 if test "$no_cache" != 1; then
2870 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2871 fi
2872
2873 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2874 echo "$ac_t""yes" 1>&6
2875 else
2876 echo "$ac_t""no" 1>&6
2877 fi
2878
2879
2880
698dcdb6
VZ
2881
2882 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
3e44f09d 2883echo "configure:2884: checking for --enable-intl" >&5
10f2d63a
VZ
2884 no_cache=0
2885 # Check whether --enable-intl or --disable-intl was given.
2886if test "${enable_intl+set}" = set; then
2887 enableval="$enable_intl"
698dcdb6 2888
10f2d63a
VZ
2889 if test "$enableval" = yes; then
2890 ac_cv_use_intl='wxUSE_INTL=yes'
2891 else
2892 ac_cv_use_intl='wxUSE_INTL=no'
2893 fi
698dcdb6 2894
10f2d63a 2895else
698dcdb6 2896
10f2d63a
VZ
2897 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2898 if test "x$LINE" != x ; then
2899 eval "DEFAULT_$LINE"
2900 else
2901 no_cache=1
2902 fi
2903
2904 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
2905
2906fi
10f2d63a
VZ
2907
2908
2909 eval "$ac_cv_use_intl"
2910 if test "$no_cache" != 1; then
2911 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2912 fi
2913
2914 if test "$wxUSE_INTL" = yes; then
698dcdb6 2915 echo "$ac_t""yes" 1>&6
10f2d63a 2916 else
698dcdb6 2917 echo "$ac_t""no" 1>&6
10f2d63a 2918 fi
698dcdb6 2919
10f2d63a 2920
698dcdb6 2921 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3e44f09d 2922echo "configure:2923: checking for --enable-config" >&5
10f2d63a
VZ
2923 no_cache=0
2924 # Check whether --enable-config or --disable-config was given.
2925if test "${enable_config+set}" = set; then
2926 enableval="$enable_config"
698dcdb6 2927
10f2d63a
VZ
2928 if test "$enableval" = yes; then
2929 ac_cv_use_config='wxUSE_CONFIG=yes'
2930 else
2931 ac_cv_use_config='wxUSE_CONFIG=no'
2932 fi
698dcdb6 2933
10f2d63a 2934else
698dcdb6 2935
10f2d63a
VZ
2936 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2937 if test "x$LINE" != x ; then
2938 eval "DEFAULT_$LINE"
2939 else
2940 no_cache=1
2941 fi
2942
2943 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
2944
2945fi
10f2d63a
VZ
2946
2947
2948 eval "$ac_cv_use_config"
2949 if test "$no_cache" != 1; then
2950 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2951 fi
2952
2953 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 2954 echo "$ac_t""yes" 1>&6
10f2d63a 2955 else
698dcdb6 2956 echo "$ac_t""no" 1>&6
10f2d63a 2957 fi
698dcdb6
VZ
2958
2959
b12915c1 2960
698dcdb6 2961 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3e44f09d 2962echo "configure:2963: checking for --enable-sockets" >&5
10f2d63a
VZ
2963 no_cache=0
2964 # Check whether --enable-sockets or --disable-sockets was given.
2965if test "${enable_sockets+set}" = set; then
2966 enableval="$enable_sockets"
698dcdb6 2967
10f2d63a
VZ
2968 if test "$enableval" = yes; then
2969 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2970 else
2971 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2972 fi
698dcdb6 2973
10f2d63a 2974else
698dcdb6 2975
10f2d63a
VZ
2976 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2977 if test "x$LINE" != x ; then
2978 eval "DEFAULT_$LINE"
2979 else
2980 no_cache=1
2981 fi
2982
2983 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
2984
2985fi
10f2d63a
VZ
2986
2987
2988 eval "$ac_cv_use_sockets"
2989 if test "$no_cache" != 1; then
2990 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2991 fi
2992
2993 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 2994 echo "$ac_t""yes" 1>&6
10f2d63a 2995 else
698dcdb6 2996 echo "$ac_t""no" 1>&6
10f2d63a 2997 fi
698dcdb6 2998
b12915c1 2999
698dcdb6
VZ
3000
3001 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3e44f09d 3002echo "configure:3003: checking for --enable-ipc" >&5
10f2d63a 3003 no_cache=0
eb4efbdc
VZ
3004 # Check whether --enable-ipc or --disable-ipc was given.
3005if test "${enable_ipc+set}" = set; then
3006 enableval="$enable_ipc"
698dcdb6 3007
10f2d63a 3008 if test "$enableval" = yes; then
eb4efbdc 3009 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3010 else
eb4efbdc 3011 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3012 fi
698dcdb6 3013
10f2d63a 3014else
698dcdb6 3015
eb4efbdc 3016 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3017 if test "x$LINE" != x ; then
3018 eval "DEFAULT_$LINE"
3019 else
3020 no_cache=1
3021 fi
3022
eb4efbdc 3023 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3024
3025fi
10f2d63a
VZ
3026
3027
eb4efbdc 3028 eval "$ac_cv_use_ipc"
10f2d63a 3029 if test "$no_cache" != 1; then
eb4efbdc 3030 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3031 fi
3032
eb4efbdc 3033 if test "$wxUSE_IPC" = yes; then
698dcdb6 3034 echo "$ac_t""yes" 1>&6
10f2d63a 3035 else
698dcdb6 3036 echo "$ac_t""no" 1>&6
10f2d63a 3037 fi
698dcdb6
VZ
3038
3039
eb4efbdc 3040
1e6feb95 3041 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3e44f09d 3042echo "configure:3043: checking for --enable-cmdline" >&5
1e6feb95
VZ
3043 no_cache=0
3044 # Check whether --enable-cmdline or --disable-cmdline was given.
3045if test "${enable_cmdline+set}" = set; then
3046 enableval="$enable_cmdline"
3047
3048 if test "$enableval" = yes; then
3049 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3050 else
3051 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3052 fi
3053
3054else
3055
3056 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3057 if test "x$LINE" != x ; then
3058 eval "DEFAULT_$LINE"
3059 else
3060 no_cache=1
3061 fi
3062
3063 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3064
3065fi
3066
3067
3068 eval "$ac_cv_use_cmdline"
3069 if test "$no_cache" != 1; then
3070 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3071 fi
3072
3073 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3074 echo "$ac_t""yes" 1>&6
3075 else
3076 echo "$ac_t""no" 1>&6
3077 fi
3078
3079
3080 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3e44f09d 3081echo "configure:3082: checking for --enable-datetime" >&5
1e6feb95
VZ
3082 no_cache=0
3083 # Check whether --enable-datetime or --disable-datetime was given.
3084if test "${enable_datetime+set}" = set; then
3085 enableval="$enable_datetime"
3086
3087 if test "$enableval" = yes; then
3088 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3089 else
3090 ac_cv_use_datetime='wxUSE_DATETIME=no'
3091 fi
3092
3093else
3094
3095 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3096 if test "x$LINE" != x ; then
3097 eval "DEFAULT_$LINE"
3098 else
3099 no_cache=1
3100 fi
3101
3102 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3103
3104fi
3105
3106
3107 eval "$ac_cv_use_datetime"
3108 if test "$no_cache" != 1; then
3109 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3110 fi
3111
3112 if test "$wxUSE_DATETIME" = yes; then
3113 echo "$ac_t""yes" 1>&6
3114 else
3115 echo "$ac_t""no" 1>&6
3116 fi
3117
3118
3119 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3e44f09d 3120echo "configure:3121: checking for --enable-timedate" >&5
1e6feb95
VZ
3121 no_cache=0
3122 # Check whether --enable-timedate or --disable-timedate was given.
3123if test "${enable_timedate+set}" = set; then
3124 enableval="$enable_timedate"
3125
3126 if test "$enableval" = yes; then
3127 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3128 else
3129 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3130 fi
3131
3132else
3133
3134 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3135 if test "x$LINE" != x ; then
3136 eval "DEFAULT_$LINE"
3137 else
3138 no_cache=1
3139 fi
3140
3141 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3142
3143fi
3144
3145
3146 eval "$ac_cv_use_timedate"
3147 if test "$no_cache" != 1; then
3148 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3149 fi
3150
3151 if test "$wxUSE_TIMEDATE" = yes; then
3152 echo "$ac_t""yes" 1>&6
3153 else
3154 echo "$ac_t""no" 1>&6
3155 fi
3156
3157
3158 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3e44f09d 3159echo "configure:3160: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3160 no_cache=0
3161 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3162if test "${enable_stopwatch+set}" = set; then
3163 enableval="$enable_stopwatch"
3164
3165 if test "$enableval" = yes; then
3166 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3167 else
3168 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3169 fi
3170
3171else
3172
3173 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3174 if test "x$LINE" != x ; then
3175 eval "DEFAULT_$LINE"
3176 else
3177 no_cache=1
3178 fi
3179
3180 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3181
3182fi
3183
3184
3185 eval "$ac_cv_use_stopwatch"
3186 if test "$no_cache" != 1; then
3187 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3188 fi
3189
3190 if test "$wxUSE_STOPWATCH" = yes; then
3191 echo "$ac_t""yes" 1>&6
3192 else
3193 echo "$ac_t""no" 1>&6
3194 fi
3195
3196
698dcdb6 3197 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3e44f09d 3198echo "configure:3199: checking for --enable-dialupman" >&5
10f2d63a 3199 no_cache=0
eb4efbdc
VZ
3200 # Check whether --enable-dialupman or --disable-dialupman was given.
3201if test "${enable_dialupman+set}" = set; then
3202 enableval="$enable_dialupman"
698dcdb6 3203
10f2d63a 3204 if test "$enableval" = yes; then
eb4efbdc 3205 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3206 else
eb4efbdc 3207 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3208 fi
698dcdb6 3209
10f2d63a 3210else
698dcdb6 3211
eb4efbdc 3212 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3213 if test "x$LINE" != x ; then
3214 eval "DEFAULT_$LINE"
3215 else
3216 no_cache=1
3217 fi
3218
eb4efbdc 3219 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3220
3221fi
10f2d63a
VZ
3222
3223
eb4efbdc 3224 eval "$ac_cv_use_dialupman"
10f2d63a 3225 if test "$no_cache" != 1; then
eb4efbdc 3226 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3227 fi
3228
eb4efbdc 3229 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3230 echo "$ac_t""yes" 1>&6
10f2d63a 3231 else
698dcdb6 3232 echo "$ac_t""no" 1>&6
10f2d63a 3233 fi
698dcdb6 3234
10f2d63a 3235
698dcdb6 3236 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3e44f09d 3237echo "configure:3238: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3238 no_cache=0
3239 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3240if test "${enable_apple_ieee+set}" = set; then
3241 enableval="$enable_apple_ieee"
698dcdb6 3242
10f2d63a
VZ
3243 if test "$enableval" = yes; then
3244 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3245 else
3246 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3247 fi
698dcdb6 3248
10f2d63a 3249else
698dcdb6 3250
10f2d63a
VZ
3251 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3252 if test "x$LINE" != x ; then
3253 eval "DEFAULT_$LINE"
3254 else
3255 no_cache=1
3256 fi
3257
3258 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3259
3260fi
10f2d63a
VZ
3261
3262
3263 eval "$ac_cv_use_apple_ieee"
3264 if test "$no_cache" != 1; then
3265 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3266 fi
3267
3268 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3269 echo "$ac_t""yes" 1>&6
10f2d63a 3270 else
698dcdb6 3271 echo "$ac_t""no" 1>&6
10f2d63a 3272 fi
698dcdb6 3273
10f2d63a 3274
1e6feb95 3275 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3e44f09d 3276echo "configure:3277: checking for --enable-timer" >&5
10f2d63a 3277 no_cache=0
1e6feb95
VZ
3278 # Check whether --enable-timer or --disable-timer was given.
3279if test "${enable_timer+set}" = set; then
3280 enableval="$enable_timer"
698dcdb6 3281
10f2d63a 3282 if test "$enableval" = yes; then
1e6feb95 3283 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3284 else
1e6feb95 3285 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3286 fi
698dcdb6 3287
10f2d63a 3288else
698dcdb6 3289
1e6feb95 3290 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3291 if test "x$LINE" != x ; then
3292 eval "DEFAULT_$LINE"
3293 else
3294 no_cache=1
3295 fi
3296
1e6feb95 3297 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3298
3299fi
10f2d63a
VZ
3300
3301
1e6feb95 3302 eval "$ac_cv_use_timer"
10f2d63a 3303 if test "$no_cache" != 1; then
1e6feb95 3304 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3305 fi
3306
1e6feb95 3307 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3308 echo "$ac_t""yes" 1>&6
10f2d63a 3309 else
698dcdb6 3310 echo "$ac_t""no" 1>&6
10f2d63a 3311 fi
698dcdb6 3312
10f2d63a 3313
698dcdb6 3314 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3e44f09d 3315echo "configure:3316: checking for --enable-wave" >&5
10f2d63a
VZ
3316 no_cache=0
3317 # Check whether --enable-wave or --disable-wave was given.
3318if test "${enable_wave+set}" = set; then
3319 enableval="$enable_wave"
698dcdb6 3320
10f2d63a
VZ
3321 if test "$enableval" = yes; then
3322 ac_cv_use_wave='wxUSE_WAVE=yes'
3323 else
3324 ac_cv_use_wave='wxUSE_WAVE=no'
3325 fi
698dcdb6 3326
10f2d63a 3327else
698dcdb6 3328
10f2d63a
VZ
3329 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3330 if test "x$LINE" != x ; then
3331 eval "DEFAULT_$LINE"
3332 else
3333 no_cache=1
3334 fi
3335
3336 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3337
3338fi
10f2d63a
VZ
3339
3340
3341 eval "$ac_cv_use_wave"
3342 if test "$no_cache" != 1; then
3343 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3344 fi
3345
3346 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3347 echo "$ac_t""yes" 1>&6
10f2d63a 3348 else
698dcdb6 3349 echo "$ac_t""no" 1>&6
10f2d63a 3350 fi
698dcdb6 3351
10f2d63a 3352
698dcdb6 3353 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3e44f09d 3354echo "configure:3355: checking for --enable-fraction" >&5
10f2d63a
VZ
3355 no_cache=0
3356 # Check whether --enable-fraction or --disable-fraction was given.
3357if test "${enable_fraction+set}" = set; then
3358 enableval="$enable_fraction"
698dcdb6 3359
10f2d63a
VZ
3360 if test "$enableval" = yes; then
3361 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3362 else
3363 ac_cv_use_fraction='wxUSE_FRACTION=no'
3364 fi
698dcdb6 3365
10f2d63a 3366else
698dcdb6 3367
10f2d63a
VZ
3368 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3369 if test "x$LINE" != x ; then
3370 eval "DEFAULT_$LINE"
3371 else
3372 no_cache=1
3373 fi
3374
3375 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3376
3377fi
10f2d63a
VZ
3378
3379
3380 eval "$ac_cv_use_fraction"
3381 if test "$no_cache" != 1; then
3382 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3383 fi
3384
3385 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3386 echo "$ac_t""yes" 1>&6
10f2d63a 3387 else
698dcdb6 3388 echo "$ac_t""no" 1>&6
10f2d63a 3389 fi
698dcdb6 3390
10f2d63a 3391
698dcdb6 3392 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3e44f09d 3393echo "configure:3394: checking for --enable-dynlib" >&5
10f2d63a
VZ
3394 no_cache=0
3395 # Check whether --enable-dynlib or --disable-dynlib was given.
3396if test "${enable_dynlib+set}" = set; then
3397 enableval="$enable_dynlib"
698dcdb6 3398
10f2d63a
VZ
3399 if test "$enableval" = yes; then
3400 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3401 else
3402 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3403 fi
698dcdb6 3404
10f2d63a 3405else
698dcdb6 3406
10f2d63a
VZ
3407 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3408 if test "x$LINE" != x ; then
3409 eval "DEFAULT_$LINE"
3410 else
3411 no_cache=1
3412 fi
3413
3414 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3415
3416fi
10f2d63a
VZ
3417
3418
3419 eval "$ac_cv_use_dynlib"
3420 if test "$no_cache" != 1; then
3421 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3422 fi
3423
3424 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3425 echo "$ac_t""yes" 1>&6
10f2d63a 3426 else
698dcdb6 3427 echo "$ac_t""no" 1>&6
10f2d63a 3428 fi
698dcdb6 3429
10f2d63a 3430
698dcdb6 3431 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3e44f09d 3432echo "configure:3433: checking for --enable-longlong" >&5
10f2d63a
VZ
3433 no_cache=0
3434 # Check whether --enable-longlong or --disable-longlong was given.
3435if test "${enable_longlong+set}" = set; then
3436 enableval="$enable_longlong"
698dcdb6 3437
10f2d63a
VZ
3438 if test "$enableval" = yes; then
3439 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3440 else
3441 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3442 fi
698dcdb6 3443
10f2d63a 3444else
698dcdb6 3445
10f2d63a
VZ
3446 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3447 if test "x$LINE" != x ; then
3448 eval "DEFAULT_$LINE"
3449 else
3450 no_cache=1
3451 fi
3452
3453 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3454
3455fi
10f2d63a
VZ
3456
3457
3458 eval "$ac_cv_use_longlong"
3459 if test "$no_cache" != 1; then
3460 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3461 fi
3462
3463 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3464 echo "$ac_t""yes" 1>&6
10f2d63a 3465 else
698dcdb6 3466 echo "$ac_t""no" 1>&6
10f2d63a 3467 fi
698dcdb6 3468
10f2d63a 3469
698dcdb6 3470 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3e44f09d 3471echo "configure:3472: checking for --enable-geometry" >&5
e8f65ba6
RR
3472 no_cache=0
3473 # Check whether --enable-geometry or --disable-geometry was given.
3474if test "${enable_geometry+set}" = set; then
3475 enableval="$enable_geometry"
698dcdb6 3476
e8f65ba6
RR
3477 if test "$enableval" = yes; then
3478 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3479 else
3480 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3481 fi
698dcdb6 3482
e8f65ba6 3483else
698dcdb6 3484
e8f65ba6
RR
3485 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3486 if test "x$LINE" != x ; then
3487 eval "DEFAULT_$LINE"
3488 else
3489 no_cache=1
3490 fi
3491
3492 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3493
3494fi
e8f65ba6
RR
3495
3496
3497 eval "$ac_cv_use_geometry"
3498 if test "$no_cache" != 1; then
3499 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3500 fi
3501
3502 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3503 echo "$ac_t""yes" 1>&6
e8f65ba6 3504 else
698dcdb6 3505 echo "$ac_t""no" 1>&6
e8f65ba6 3506 fi
698dcdb6 3507
e8f65ba6 3508
698dcdb6 3509 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3e44f09d 3510echo "configure:3511: checking for --enable-log" >&5
10f2d63a
VZ
3511 no_cache=0
3512 # Check whether --enable-log or --disable-log was given.
3513if test "${enable_log+set}" = set; then
3514 enableval="$enable_log"
698dcdb6 3515
10f2d63a
VZ
3516 if test "$enableval" = yes; then
3517 ac_cv_use_log='wxUSE_LOG=yes'
3518 else
3519 ac_cv_use_log='wxUSE_LOG=no'
3520 fi
698dcdb6 3521
10f2d63a 3522else
698dcdb6 3523
10f2d63a
VZ
3524 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3525 if test "x$LINE" != x ; then
3526 eval "DEFAULT_$LINE"
3527 else
3528 no_cache=1
3529 fi
3530
3531 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3532
3533fi
10f2d63a
VZ
3534
3535
3536 eval "$ac_cv_use_log"
3537 if test "$no_cache" != 1; then
3538 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3539 fi
3540
3541 if test "$wxUSE_LOG" = yes; then
698dcdb6 3542 echo "$ac_t""yes" 1>&6
10f2d63a 3543 else
698dcdb6 3544 echo "$ac_t""no" 1>&6
10f2d63a 3545 fi
698dcdb6 3546
10f2d63a 3547
698dcdb6 3548 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3e44f09d 3549echo "configure:3550: checking for --enable-streams" >&5
10f2d63a
VZ
3550 no_cache=0
3551 # Check whether --enable-streams or --disable-streams was given.
3552if test "${enable_streams+set}" = set; then
3553 enableval="$enable_streams"
698dcdb6 3554
10f2d63a
VZ
3555 if test "$enableval" = yes; then
3556 ac_cv_use_streams='wxUSE_STREAMS=yes'
3557 else
3558 ac_cv_use_streams='wxUSE_STREAMS=no'
3559 fi
698dcdb6 3560
10f2d63a 3561else
698dcdb6 3562
10f2d63a
VZ
3563 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3564 if test "x$LINE" != x ; then
3565 eval "DEFAULT_$LINE"
3566 else
3567 no_cache=1
3568 fi
3569
3570 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3571
3572fi
10f2d63a
VZ
3573
3574
3575 eval "$ac_cv_use_streams"
3576 if test "$no_cache" != 1; then
3577 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3578 fi
3579
3580 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3581 echo "$ac_t""yes" 1>&6
10f2d63a 3582 else
698dcdb6 3583 echo "$ac_t""no" 1>&6
10f2d63a 3584 fi
698dcdb6 3585
10f2d63a 3586
698dcdb6 3587 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3e44f09d 3588echo "configure:3589: checking for --enable-file" >&5
10f2d63a
VZ
3589 no_cache=0
3590 # Check whether --enable-file or --disable-file was given.
3591if test "${enable_file+set}" = set; then
3592 enableval="$enable_file"
698dcdb6 3593
10f2d63a
VZ
3594 if test "$enableval" = yes; then
3595 ac_cv_use_file='wxUSE_FILE=yes'
3596 else
3597 ac_cv_use_file='wxUSE_FILE=no'
3598 fi
698dcdb6 3599
10f2d63a 3600else
698dcdb6 3601
10f2d63a
VZ
3602 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3603 if test "x$LINE" != x ; then
3604 eval "DEFAULT_$LINE"
3605 else
3606 no_cache=1
3607 fi
3608
3609 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3610
3611fi
10f2d63a
VZ
3612
3613
3614 eval "$ac_cv_use_file"
3615 if test "$no_cache" != 1; then
3616 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3617 fi
3618
3619 if test "$wxUSE_FILE" = yes; then
698dcdb6 3620 echo "$ac_t""yes" 1>&6
10f2d63a 3621 else
698dcdb6 3622 echo "$ac_t""no" 1>&6
10f2d63a 3623 fi
698dcdb6 3624
10f2d63a 3625
1e6feb95 3626 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3e44f09d 3627echo "configure:3628: checking for --enable-ffile" >&5
10f2d63a 3628 no_cache=0
1e6feb95
VZ
3629 # Check whether --enable-ffile or --disable-ffile was given.
3630if test "${enable_ffile+set}" = set; then
3631 enableval="$enable_ffile"
698dcdb6 3632
10f2d63a 3633 if test "$enableval" = yes; then
1e6feb95 3634 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3635 else
1e6feb95 3636 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3637 fi
698dcdb6 3638
10f2d63a 3639else
698dcdb6 3640
1e6feb95 3641 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3642 if test "x$LINE" != x ; then
3643 eval "DEFAULT_$LINE"
3644 else
3645 no_cache=1
3646 fi
3647
1e6feb95 3648 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3649
3650fi
10f2d63a
VZ
3651
3652
1e6feb95 3653 eval "$ac_cv_use_ffile"
10f2d63a 3654 if test "$no_cache" != 1; then
1e6feb95 3655 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3656 fi
3657
1e6feb95 3658 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3659 echo "$ac_t""yes" 1>&6
10f2d63a 3660 else
698dcdb6 3661 echo "$ac_t""no" 1>&6
10f2d63a 3662 fi
698dcdb6 3663
10f2d63a 3664
1e6feb95 3665 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3e44f09d 3666echo "configure:3667: checking for --enable-textfile" >&5
10f2d63a 3667 no_cache=0
1e6feb95
VZ
3668 # Check whether --enable-textfile or --disable-textfile was given.
3669if test "${enable_textfile+set}" = set; then
3670 enableval="$enable_textfile"
698dcdb6 3671
10f2d63a 3672 if test "$enableval" = yes; then
1e6feb95 3673 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 3674 else
1e6feb95 3675 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 3676 fi
698dcdb6 3677
10f2d63a 3678else
698dcdb6 3679
1e6feb95 3680 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3681 if test "x$LINE" != x ; then
3682 eval "DEFAULT_$LINE"
3683 else
3684 no_cache=1
3685 fi
3686
1e6feb95 3687 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
3688
3689fi
10f2d63a
VZ
3690
3691
1e6feb95 3692 eval "$ac_cv_use_textfile"
10f2d63a 3693 if test "$no_cache" != 1; then
1e6feb95 3694 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3695 fi
3696
1e6feb95 3697 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 3698 echo "$ac_t""yes" 1>&6
10f2d63a 3699 else
698dcdb6 3700 echo "$ac_t""no" 1>&6
10f2d63a 3701 fi
698dcdb6 3702
10f2d63a 3703
1e6feb95 3704 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3e44f09d 3705echo "configure:3706: checking for --enable-fontmap" >&5
10f2d63a 3706 no_cache=0
1e6feb95
VZ
3707 # Check whether --enable-fontmap or --disable-fontmap was given.
3708if test "${enable_fontmap+set}" = set; then
3709 enableval="$enable_fontmap"
698dcdb6 3710
10f2d63a 3711 if test "$enableval" = yes; then
1e6feb95 3712 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 3713 else
1e6feb95 3714 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 3715 fi
698dcdb6 3716
10f2d63a 3717else
698dcdb6 3718
1e6feb95 3719 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
3720 if test "x$LINE" != x ; then
3721 eval "DEFAULT_$LINE"
3722 else
3723 no_cache=1
3724 fi
3725
1e6feb95 3726 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
3727
3728fi
10f2d63a
VZ
3729
3730
1e6feb95 3731 eval "$ac_cv_use_fontmap"
10f2d63a 3732 if test "$no_cache" != 1; then
1e6feb95 3733 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3734 fi
3735
1e6feb95 3736 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 3737 echo "$ac_t""yes" 1>&6
10f2d63a 3738 else
698dcdb6 3739 echo "$ac_t""no" 1>&6
10f2d63a 3740 fi
698dcdb6 3741
10f2d63a 3742
1e6feb95 3743 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3e44f09d 3744echo "configure:3745: checking for --enable-unicode" >&5
10f2d63a 3745 no_cache=0
1e6feb95
VZ
3746 # Check whether --enable-unicode or --disable-unicode was given.
3747if test "${enable_unicode+set}" = set; then
3748 enableval="$enable_unicode"
3749
3750 if test "$enableval" = yes; then
3751 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3752 else
3753 ac_cv_use_unicode='wxUSE_UNICODE=no'
3754 fi
3755
3756else
3757
3758 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3759 if test "x$LINE" != x ; then
3760 eval "DEFAULT_$LINE"
3761 else
3762 no_cache=1
3763 fi
3764
3765 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3766
3767fi
3768
3769
3770 eval "$ac_cv_use_unicode"
3771 if test "$no_cache" != 1; then
3772 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3773 fi
3774
3775 if test "$wxUSE_UNICODE" = yes; then
3776 echo "$ac_t""yes" 1>&6
3777 else
3778 echo "$ac_t""no" 1>&6
3779 fi
3780
3781
3782 echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6
3e44f09d 3783echo "configure:3784: checking for --enable-wcsrtombs" >&5
1e6feb95
VZ
3784 no_cache=0
3785 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3786if test "${enable_wcsrtombs+set}" = set; then
3787 enableval="$enable_wcsrtombs"
3788
3789 if test "$enableval" = yes; then
3790 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3791 else
3792 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3793 fi
3794
3795else
3796
3797 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3798 if test "x$LINE" != x ; then
3799 eval "DEFAULT_$LINE"
3800 else
3801 no_cache=1
3802 fi
3803
3804 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3805
3806fi
3807
3808
3809 eval "$ac_cv_use_wcsrtombs"
3810 if test "$no_cache" != 1; then
3811 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3812 fi
3813
3814 if test "$wxUSE_WCSRTOMBS" = yes; then
3815 echo "$ac_t""yes" 1>&6
3816 else
3817 echo "$ac_t""no" 1>&6
3818 fi
3819
3820
3821 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3e44f09d 3822echo "configure:3823: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
3823 no_cache=0
3824 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3825if test "${enable_wxprintfv+set}" = set; then
3826 enableval="$enable_wxprintfv"
3827
3828 if test "$enableval" = yes; then
10f2d63a
VZ
3829 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3830 else
3831 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3832 fi
698dcdb6 3833
10f2d63a 3834else
698dcdb6 3835
10f2d63a
VZ
3836 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3837 if test "x$LINE" != x ; then
3838 eval "DEFAULT_$LINE"
3839 else
3840 no_cache=1
3841 fi
3842
3843 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
3844
3845fi
10f2d63a
VZ
3846
3847
3848 eval "$ac_cv_use_wxprintfv"
3849 if test "$no_cache" != 1; then
3850 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3851 fi
3852
3853 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 3854 echo "$ac_t""yes" 1>&6
10f2d63a 3855 else
698dcdb6 3856 echo "$ac_t""no" 1>&6
10f2d63a 3857 fi
698dcdb6 3858
10f2d63a 3859
698dcdb6 3860 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3e44f09d 3861echo "configure:3862: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
3862 no_cache=0
3863 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3864if test "${enable_std_iostreams+set}" = set; then
3865 enableval="$enable_std_iostreams"
698dcdb6 3866
10f2d63a
VZ
3867 if test "$enableval" = yes; then
3868 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3869 else
3870 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3871 fi
698dcdb6 3872
10f2d63a 3873else
698dcdb6 3874
10f2d63a
VZ
3875 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3876 if test "x$LINE" != x ; then
3877 eval "DEFAULT_$LINE"
3878 else
3879 no_cache=1
3880 fi
3881
3882 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
3883
3884fi
10f2d63a
VZ
3885
3886
3887 eval "$ac_cv_use_std_iostreams"
3888 if test "$no_cache" != 1; then
3889 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3890 fi
3891
3892 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 3893 echo "$ac_t""yes" 1>&6
10f2d63a 3894 else
698dcdb6 3895 echo "$ac_t""no" 1>&6
10f2d63a 3896 fi
698dcdb6 3897
10f2d63a 3898
698dcdb6 3899 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3e44f09d 3900echo "configure:3901: checking for --enable-filesystem" >&5
24528b0c
VS
3901 no_cache=0
3902 # Check whether --enable-filesystem or --disable-filesystem was given.
3903if test "${enable_filesystem+set}" = set; then
3904 enableval="$enable_filesystem"
698dcdb6 3905
24528b0c
VS
3906 if test "$enableval" = yes; then
3907 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3908 else
3909 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3910 fi
698dcdb6 3911
24528b0c 3912else
698dcdb6 3913
24528b0c
VS
3914 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3915 if test "x$LINE" != x ; then
3916 eval "DEFAULT_$LINE"
3917 else
3918 no_cache=1
3919 fi
3920
3921 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
3922
3923fi
24528b0c
VS
3924
3925
3926 eval "$ac_cv_use_filesystem"
3927 if test "$no_cache" != 1; then
3928 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3929 fi
3930
3931 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 3932 echo "$ac_t""yes" 1>&6
24528b0c 3933 else
698dcdb6 3934 echo "$ac_t""no" 1>&6
24528b0c 3935 fi
698dcdb6 3936
24528b0c 3937
698dcdb6 3938 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
3e44f09d 3939echo "configure:3940: checking for --enable-fs_inet" >&5
10f2d63a
VZ
3940 no_cache=0
3941 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3942if test "${enable_fs_inet+set}" = set; then
3943 enableval="$enable_fs_inet"
698dcdb6 3944
10f2d63a
VZ
3945 if test "$enableval" = yes; then
3946 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3947 else
3948 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3949 fi
698dcdb6 3950
10f2d63a 3951else
698dcdb6 3952
10f2d63a
VZ
3953 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3954 if test "x$LINE" != x ; then
3955 eval "DEFAULT_$LINE"
3956 else
3957 no_cache=1
3958 fi
3959
3960 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
3961
3962fi
10f2d63a
VZ
3963
3964
3965 eval "$ac_cv_use_fs_inet"
3966 if test "$no_cache" != 1; then
3967 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3968 fi
3969
3970 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 3971 echo "$ac_t""yes" 1>&6
10f2d63a 3972 else
698dcdb6 3973 echo "$ac_t""no" 1>&6
10f2d63a 3974 fi
698dcdb6 3975
10f2d63a 3976
698dcdb6 3977 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
3e44f09d 3978echo "configure:3979: checking for --enable-fs_zip" >&5
10f2d63a
VZ
3979 no_cache=0
3980 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3981if test "${enable_fs_zip+set}" = set; then
3982 enableval="$enable_fs_zip"
698dcdb6 3983
10f2d63a
VZ
3984 if test "$enableval" = yes; then
3985 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3986 else
3987 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3988 fi
698dcdb6 3989
10f2d63a 3990else
698dcdb6 3991
10f2d63a
VZ
3992 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3993 if test "x$LINE" != x ; then
3994 eval "DEFAULT_$LINE"
3995 else
3996 no_cache=1
3997 fi
3998
3999 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
4000
4001fi
10f2d63a
VZ
4002
4003
4004 eval "$ac_cv_use_fs_zip"
4005 if test "$no_cache" != 1; then
4006 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4007 fi
4008
4009 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 4010 echo "$ac_t""yes" 1>&6
10f2d63a 4011 else
698dcdb6 4012 echo "$ac_t""no" 1>&6
10f2d63a 4013 fi
698dcdb6 4014
10f2d63a 4015
698dcdb6 4016 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
3e44f09d 4017echo "configure:4018: checking for --enable-zipstream" >&5
10f2d63a
VZ
4018 no_cache=0
4019 # Check whether --enable-zipstream or --disable-zipstream was given.
4020if test "${enable_zipstream+set}" = set; then
4021 enableval="$enable_zipstream"
698dcdb6 4022
10f2d63a
VZ
4023 if test "$enableval" = yes; then
4024 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4025 else
4026 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4027 fi
698dcdb6 4028
10f2d63a 4029else
698dcdb6 4030
10f2d63a
VZ
4031 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4032 if test "x$LINE" != x ; then
4033 eval "DEFAULT_$LINE"
4034 else
4035 no_cache=1
4036 fi
4037
4038 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4039
4040fi
10f2d63a
VZ
4041
4042
4043 eval "$ac_cv_use_zipstream"
4044 if test "$no_cache" != 1; then
4045 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4046 fi
4047
4048 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4049 echo "$ac_t""yes" 1>&6
10f2d63a 4050 else
698dcdb6 4051 echo "$ac_t""no" 1>&6
10f2d63a 4052 fi
698dcdb6 4053
10f2d63a 4054
698dcdb6
VZ
4055
4056 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
3e44f09d 4057echo "configure:4058: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4058 no_cache=0
4059 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4060if test "${enable_catch_segvs+set}" = set; then
4061 enableval="$enable_catch_segvs"
698dcdb6 4062
eb4efbdc
VZ
4063 if test "$enableval" = yes; then
4064 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4065 else
4066 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4067 fi
698dcdb6 4068
eb4efbdc 4069else
698dcdb6 4070
eb4efbdc
VZ
4071 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4072 if test "x$LINE" != x ; then
4073 eval "DEFAULT_$LINE"
4074 else
4075 no_cache=1
4076 fi
4077
4078 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4079
4080fi
eb4efbdc
VZ
4081
4082
4083 eval "$ac_cv_use_catch_segvs"
4084 if test "$no_cache" != 1; then
4085 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4086 fi
4087
4088 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4089 echo "$ac_t""yes" 1>&6
eb4efbdc 4090 else
698dcdb6 4091 echo "$ac_t""no" 1>&6
eb4efbdc 4092 fi
698dcdb6 4093
eb4efbdc 4094
698dcdb6 4095 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
3e44f09d 4096echo "configure:4097: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4097 no_cache=0
4098 # Check whether --enable-snglinst or --disable-snglinst was given.
4099if test "${enable_snglinst+set}" = set; then
4100 enableval="$enable_snglinst"
698dcdb6 4101
4f3c5f06
VZ
4102 if test "$enableval" = yes; then
4103 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4104 else
4105 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4106 fi
698dcdb6 4107
4f3c5f06 4108else
698dcdb6 4109
4f3c5f06
VZ
4110 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4111 if test "x$LINE" != x ; then
4112 eval "DEFAULT_$LINE"
4113 else
4114 no_cache=1
4115 fi
4116
4117 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4118
4119fi
4f3c5f06
VZ
4120
4121
4122 eval "$ac_cv_use_snglinst"
4123 if test "$no_cache" != 1; then
4124 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4125 fi
4126
4127 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4128 echo "$ac_t""yes" 1>&6
4f3c5f06 4129 else
698dcdb6 4130 echo "$ac_t""no" 1>&6
4f3c5f06 4131 fi
698dcdb6
VZ
4132
4133
eb4efbdc 4134
1e6feb95 4135 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
3e44f09d 4136echo "configure:4137: checking for --enable-mimetype" >&5
1e6feb95
VZ
4137 no_cache=0
4138 # Check whether --enable-mimetype or --disable-mimetype was given.
4139if test "${enable_mimetype+set}" = set; then
4140 enableval="$enable_mimetype"
4141
4142 if test "$enableval" = yes; then
4143 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4144 else
4145 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4146 fi
4147
4148else
4149
4150 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4151 if test "x$LINE" != x ; then
4152 eval "DEFAULT_$LINE"
4153 else
4154 no_cache=1
4155 fi
4156
4157 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4158
4159fi
4160
4161
4162 eval "$ac_cv_use_mimetype"
4163 if test "$no_cache" != 1; then
4164 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4165 fi
4166
4167 if test "$wxUSE_MIMETYPE" = yes; then
4168 echo "$ac_t""yes" 1>&6
4169 else
4170 echo "$ac_t""no" 1>&6
4171 fi
4172
4173
3e44f09d
VZ
4174 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4175echo "configure:4176: checking for --enable-system_options" >&5
4176 no_cache=0
4177 # Check whether --enable-system_options or --disable-system_options was given.
4178if test "${enable_system_options+set}" = set; then
4179 enableval="$enable_system_options"
4180
4181 if test "$enableval" = yes; then
4182 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4183 else
4184 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4185 fi
4186
4187else
4188
4189 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4190 if test "x$LINE" != x ; then
4191 eval "DEFAULT_$LINE"
4192 else
4193 no_cache=1
4194 fi
4195
4196 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4197
4198fi
4199
4200
4201 eval "$ac_cv_use_system_options"
4202 if test "$no_cache" != 1; then
4203 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4204 fi
4205
4206 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4207 echo "$ac_t""yes" 1>&6
4208 else
4209 echo "$ac_t""no" 1>&6
4210 fi
4211
4212
1e6feb95 4213
698dcdb6
VZ
4214
4215 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
3e44f09d 4216echo "configure:4217: checking for --enable-threads" >&5
10f2d63a
VZ
4217 no_cache=0
4218 # Check whether --enable-threads or --disable-threads was given.
4219if test "${enable_threads+set}" = set; then
4220 enableval="$enable_threads"
698dcdb6 4221
10f2d63a
VZ
4222 if test "$enableval" = yes; then
4223 ac_cv_use_threads='wxUSE_THREADS=yes'
4224 else
4225 ac_cv_use_threads='wxUSE_THREADS=no'
4226 fi
698dcdb6 4227
10f2d63a 4228else
698dcdb6 4229
10f2d63a
VZ
4230 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4231 if test "x$LINE" != x ; then
4232 eval "DEFAULT_$LINE"
4233 else
4234 no_cache=1
4235 fi
4236
4237 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4238
4239fi
10f2d63a
VZ
4240
4241
4242 eval "$ac_cv_use_threads"
4243 if test "$no_cache" != 1; then
4244 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4245 fi
4246
4247 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4248 echo "$ac_t""yes" 1>&6
10f2d63a 4249 else
698dcdb6 4250 echo "$ac_t""no" 1>&6
10f2d63a 4251 fi
698dcdb6 4252
10f2d63a 4253
698dcdb6 4254 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
3e44f09d 4255echo "configure:4256: checking for --enable-serial" >&5
10f2d63a
VZ
4256 no_cache=0
4257 # Check whether --enable-serial or --disable-serial was given.
4258if test "${enable_serial+set}" = set; then
4259 enableval="$enable_serial"
698dcdb6 4260
10f2d63a
VZ
4261 if test "$enableval" = yes; then
4262 ac_cv_use_serial='wxUSE_SERIAL=yes'
4263 else
4264 ac_cv_use_serial='wxUSE_SERIAL=no'
4265 fi
698dcdb6 4266
10f2d63a 4267else
698dcdb6 4268
10f2d63a
VZ
4269 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4270 if test "x$LINE" != x ; then
4271 eval "DEFAULT_$LINE"
4272 else
4273 no_cache=1
4274 fi
4275
4276 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
698dcdb6
VZ
4277
4278fi
10f2d63a
VZ
4279
4280
4281 eval "$ac_cv_use_serial"
4282 if test "$no_cache" != 1; then
4283 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4284 fi
4285
4286 if test "$wxUSE_SERIAL" = yes; then
698dcdb6 4287 echo "$ac_t""yes" 1>&6
10f2d63a 4288 else
698dcdb6 4289 echo "$ac_t""no" 1>&6
10f2d63a 4290 fi
698dcdb6 4291
10f2d63a 4292
b12915c1
VZ
4293if test "$wxUSE_GUI" = "yes"; then
4294
698dcdb6
VZ
4295
4296
4297 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
3e44f09d 4298echo "configure:4299: checking for --enable-docview" >&5
10f2d63a
VZ
4299 no_cache=0
4300 # Check whether --enable-docview or --disable-docview was given.
4301if test "${enable_docview+set}" = set; then
4302 enableval="$enable_docview"
698dcdb6 4303
10f2d63a
VZ
4304 if test "$enableval" = yes; then
4305 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4306 else
4307 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4308 fi
698dcdb6 4309
10f2d63a 4310else
698dcdb6 4311
10f2d63a
VZ
4312 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4313 if test "x$LINE" != x ; then
4314 eval "DEFAULT_$LINE"
4315 else
4316 no_cache=1
4317 fi
4318
4319 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4320
4321fi
10f2d63a
VZ
4322
4323
4324 eval "$ac_cv_use_docview"
4325 if test "$no_cache" != 1; then
4326 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4327 fi
4328
4329 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4330 echo "$ac_t""yes" 1>&6
10f2d63a 4331 else
698dcdb6 4332 echo "$ac_t""no" 1>&6
10f2d63a 4333 fi
698dcdb6 4334
10f2d63a 4335
698dcdb6 4336 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
3e44f09d 4337echo "configure:4338: checking for --enable-help" >&5
10f2d63a
VZ
4338 no_cache=0
4339 # Check whether --enable-help or --disable-help was given.
4340if test "${enable_help+set}" = set; then
4341 enableval="$enable_help"
698dcdb6 4342
10f2d63a
VZ
4343 if test "$enableval" = yes; then
4344 ac_cv_use_help='wxUSE_HELP=yes'
4345 else
4346 ac_cv_use_help='wxUSE_HELP=no'
4347 fi
698dcdb6 4348
10f2d63a 4349else
698dcdb6 4350
10f2d63a
VZ
4351 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4352 if test "x$LINE" != x ; then
4353 eval "DEFAULT_$LINE"
4354 else
4355 no_cache=1
4356 fi
4357
4358 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4359
4360fi
10f2d63a
VZ
4361
4362
4363 eval "$ac_cv_use_help"
4364 if test "$no_cache" != 1; then
4365 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4366 fi
4367
4368 if test "$wxUSE_HELP" = yes; then
698dcdb6 4369 echo "$ac_t""yes" 1>&6
10f2d63a 4370 else
698dcdb6 4371 echo "$ac_t""no" 1>&6
10f2d63a 4372 fi
698dcdb6 4373
10f2d63a 4374
29fd3c0c 4375 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
3e44f09d 4376echo "configure:4377: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4377 no_cache=0
4378 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4379if test "${enable_mshtmlhelp+set}" = set; then
4380 enableval="$enable_mshtmlhelp"
4381
4382 if test "$enableval" = yes; then
4383 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4384 else
4385 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4386 fi
4387
4388else
4389
4390 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4391 if test "x$LINE" != x ; then
4392 eval "DEFAULT_$LINE"
4393 else
4394 no_cache=1
4395 fi
4396
4397 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4398
4399fi
4400
4401
4402 eval "$ac_cv_use_mshtmlhelp"
4403 if test "$no_cache" != 1; then
4404 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4405 fi
4406
4407 if test "$wxUSE_MS_HTML_HELP" = yes; then
4408 echo "$ac_t""yes" 1>&6
4409 else
4410 echo "$ac_t""no" 1>&6
4411 fi
4412
4413
3379ed37 4414 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
3e44f09d 4415echo "configure:4416: checking for --enable-html" >&5
3379ed37
VZ
4416 no_cache=0
4417 # Check whether --enable-html or --disable-html was given.
4418if test "${enable_html+set}" = set; then
4419 enableval="$enable_html"
4420
4421 if test "$enableval" = yes; then
4422 ac_cv_use_html='wxUSE_HTML=yes'
4423 else
4424 ac_cv_use_html='wxUSE_HTML=no'
4425 fi
4426
4427else
4428
4429 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4430 if test "x$LINE" != x ; then
4431 eval "DEFAULT_$LINE"
4432 else
4433 no_cache=1
4434 fi
4435
4436 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4437
4438fi
4439
4440
4441 eval "$ac_cv_use_html"
4442 if test "$no_cache" != 1; then
4443 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4444 fi
4445
4446 if test "$wxUSE_HTML" = yes; then
4447 echo "$ac_t""yes" 1>&6
4448 else
4449 echo "$ac_t""no" 1>&6
4450 fi
4451
4452
4453 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
3e44f09d 4454echo "configure:4455: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4455 no_cache=0
4456 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4457if test "${enable_htmlhelp+set}" = set; then
4458 enableval="$enable_htmlhelp"
4459
4460 if test "$enableval" = yes; then
4461 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4462 else
4463 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4464 fi
4465
4466else
4467
4468 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4469 if test "x$LINE" != x ; then
4470 eval "DEFAULT_$LINE"
4471 else
4472 no_cache=1
4473 fi
4474
4475 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4476
4477fi
4478
4479
4480 eval "$ac_cv_use_htmlhelp"
4481 if test "$no_cache" != 1; then
4482 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4483 fi
4484
4485 if test "$wxUSE_WXHTML_HELP" = yes; then
4486 echo "$ac_t""yes" 1>&6
4487 else
4488 echo "$ac_t""no" 1>&6
4489 fi
4490
4491
698dcdb6 4492 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
3e44f09d 4493echo "configure:4494: checking for --enable-constraints" >&5
10f2d63a
VZ
4494 no_cache=0
4495 # Check whether --enable-constraints or --disable-constraints was given.
4496if test "${enable_constraints+set}" = set; then
4497 enableval="$enable_constraints"
698dcdb6 4498
10f2d63a
VZ
4499 if test "$enableval" = yes; then
4500 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4501 else
4502 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4503 fi
698dcdb6 4504
10f2d63a 4505else
698dcdb6 4506
10f2d63a
VZ
4507 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4508 if test "x$LINE" != x ; then
4509 eval "DEFAULT_$LINE"
4510 else
4511 no_cache=1
4512 fi
4513
4514 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
4515
4516fi
10f2d63a
VZ
4517
4518
4519 eval "$ac_cv_use_constraints"
4520 if test "$no_cache" != 1; then
4521 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4522 fi
4523
4524 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 4525 echo "$ac_t""yes" 1>&6
10f2d63a 4526 else
698dcdb6 4527 echo "$ac_t""no" 1>&6
10f2d63a 4528 fi
698dcdb6 4529
10f2d63a 4530
698dcdb6 4531 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
3e44f09d 4532echo "configure:4533: checking for --enable-printarch" >&5
10f2d63a
VZ
4533 no_cache=0
4534 # Check whether --enable-printarch or --disable-printarch was given.
4535if test "${enable_printarch+set}" = set; then
4536 enableval="$enable_printarch"
698dcdb6 4537
10f2d63a
VZ
4538 if test "$enableval" = yes; then
4539 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4540 else
4541 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4542 fi
698dcdb6 4543
10f2d63a 4544else
698dcdb6 4545
10f2d63a
VZ
4546 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4547 if test "x$LINE" != x ; then
4548 eval "DEFAULT_$LINE"
4549 else
4550 no_cache=1
4551 fi
4552
4553 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
4554
4555fi
10f2d63a
VZ
4556
4557
4558 eval "$ac_cv_use_printarch"
4559 if test "$no_cache" != 1; then
4560 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4561 fi
4562
4563 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 4564 echo "$ac_t""yes" 1>&6
10f2d63a 4565 else
698dcdb6 4566 echo "$ac_t""no" 1>&6
10f2d63a 4567 fi
698dcdb6 4568
10f2d63a 4569
698dcdb6 4570 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
3e44f09d 4571echo "configure:4572: checking for --enable-mdi" >&5
10f2d63a
VZ
4572 no_cache=0
4573 # Check whether --enable-mdi or --disable-mdi was given.
4574if test "${enable_mdi+set}" = set; then
4575 enableval="$enable_mdi"
698dcdb6 4576
10f2d63a
VZ
4577 if test "$enableval" = yes; then
4578 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4579 else
4580 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4581 fi
698dcdb6 4582
10f2d63a 4583else
698dcdb6 4584
10f2d63a
VZ
4585 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4586 if test "x$LINE" != x ; then
4587 eval "DEFAULT_$LINE"
4588 else
4589 no_cache=1
4590 fi
4591
4592 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
4593
4594fi
10f2d63a
VZ
4595
4596
4597 eval "$ac_cv_use_mdi"
4598 if test "$no_cache" != 1; then
4599 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4600 fi
4601
4602 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 4603 echo "$ac_t""yes" 1>&6
10f2d63a 4604 else
698dcdb6 4605 echo "$ac_t""no" 1>&6
10f2d63a 4606 fi
698dcdb6
VZ
4607
4608
1e6feb95 4609 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
3e44f09d 4610echo "configure:4611: checking for --enable-loggui" >&5
1e6feb95
VZ
4611 no_cache=0
4612 # Check whether --enable-loggui or --disable-loggui was given.
4613if test "${enable_loggui+set}" = set; then
4614 enableval="$enable_loggui"
4615
4616 if test "$enableval" = yes; then
4617 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4618 else
4619 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4620 fi
4621
4622else
4623
4624 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4625 if test "x$LINE" != x ; then
4626 eval "DEFAULT_$LINE"
4627 else
4628 no_cache=1
4629 fi
4630
4631 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4632
4633fi
4634
4635
4636 eval "$ac_cv_use_loggui"
4637 if test "$no_cache" != 1; then
4638 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4639 fi
4640
4641 if test "$wxUSE_LOGGUI" = yes; then
4642 echo "$ac_t""yes" 1>&6
4643 else
4644 echo "$ac_t""no" 1>&6
4645 fi
4646
4647
4648 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
3e44f09d 4649echo "configure:4650: checking for --enable-logwin" >&5
1e6feb95
VZ
4650 no_cache=0
4651 # Check whether --enable-logwin or --disable-logwin was given.
4652if test "${enable_logwin+set}" = set; then
4653 enableval="$enable_logwin"
4654
4655 if test "$enableval" = yes; then
4656 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4657 else
4658 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4659 fi
4660
4661else
4662
4663 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4664 if test "x$LINE" != x ; then
4665 eval "DEFAULT_$LINE"
4666 else
4667 no_cache=1
4668 fi
4669
4670 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4671
4672fi
4673
4674
4675 eval "$ac_cv_use_logwin"
4676 if test "$no_cache" != 1; then
4677 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4678 fi
4679
4680 if test "$wxUSE_LOGWINDOW" = yes; then
4681 echo "$ac_t""yes" 1>&6
4682 else
4683 echo "$ac_t""no" 1>&6
4684 fi
4685
4686
10f2d63a 4687
698dcdb6 4688 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
3e44f09d 4689echo "configure:4690: checking for --enable-postscript" >&5
10f2d63a
VZ
4690 no_cache=0
4691 # Check whether --enable-postscript or --disable-postscript was given.
4692if test "${enable_postscript+set}" = set; then
4693 enableval="$enable_postscript"
698dcdb6 4694
10f2d63a
VZ
4695 if test "$enableval" = yes; then
4696 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4697 else
4698 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4699 fi
698dcdb6 4700
10f2d63a 4701else
698dcdb6 4702
10f2d63a
VZ
4703 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4704 if test "x$LINE" != x ; then
4705 eval "DEFAULT_$LINE"
4706 else
4707 no_cache=1
4708 fi
4709
4710 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
4711
4712fi
10f2d63a
VZ
4713
4714
4715 eval "$ac_cv_use_postscript"
4716 if test "$no_cache" != 1; then
4717 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4718 fi
4719
4720 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 4721 echo "$ac_t""yes" 1>&6
10f2d63a 4722 else
698dcdb6 4723 echo "$ac_t""no" 1>&6
10f2d63a 4724 fi
698dcdb6
VZ
4725
4726
4727
10f2d63a 4728
1e6feb95 4729
698dcdb6 4730 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
3e44f09d 4731echo "configure:4732: checking for --enable-prologio" >&5
10f2d63a
VZ
4732 no_cache=0
4733 # Check whether --enable-prologio or --disable-prologio was given.
4734if test "${enable_prologio+set}" = set; then
4735 enableval="$enable_prologio"
698dcdb6 4736
10f2d63a
VZ
4737 if test "$enableval" = yes; then
4738 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4739 else
4740 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4741 fi
698dcdb6 4742
10f2d63a 4743else
698dcdb6 4744
10f2d63a
VZ
4745 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4746 if test "x$LINE" != x ; then
4747 eval "DEFAULT_$LINE"
4748 else
4749 no_cache=1
4750 fi
4751
4752 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
4753
4754fi
10f2d63a
VZ
4755
4756
4757 eval "$ac_cv_use_prologio"
4758 if test "$no_cache" != 1; then
4759 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4760 fi
4761
4762 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 4763 echo "$ac_t""yes" 1>&6
10f2d63a 4764 else
698dcdb6 4765 echo "$ac_t""no" 1>&6
10f2d63a 4766 fi
698dcdb6 4767
10f2d63a 4768
698dcdb6 4769 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
3e44f09d 4770echo "configure:4771: checking for --enable-resources" >&5
10f2d63a
VZ
4771 no_cache=0
4772 # Check whether --enable-resources or --disable-resources was given.
4773if test "${enable_resources+set}" = set; then
4774 enableval="$enable_resources"
698dcdb6 4775
10f2d63a
VZ
4776 if test "$enableval" = yes; then
4777 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4778 else
4779 ac_cv_use_resources='wxUSE_RESOURCES=no'
4780 fi
698dcdb6 4781
10f2d63a 4782else
698dcdb6 4783
10f2d63a
VZ
4784 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4785 if test "x$LINE" != x ; then
4786 eval "DEFAULT_$LINE"
4787 else
4788 no_cache=1
4789 fi
4790
4791 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
4792
4793fi
10f2d63a
VZ
4794
4795
4796 eval "$ac_cv_use_resources"
4797 if test "$no_cache" != 1; then
4798 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4799 fi
4800
4801 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 4802 echo "$ac_t""yes" 1>&6
10f2d63a 4803 else
698dcdb6 4804 echo "$ac_t""no" 1>&6
10f2d63a 4805 fi
698dcdb6 4806
10f2d63a 4807
698dcdb6
VZ
4808
4809 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
3e44f09d 4810echo "configure:4811: checking for --enable-xresources" >&5
10f2d63a
VZ
4811 no_cache=0
4812 # Check whether --enable-xresources or --disable-xresources was given.
4813if test "${enable_xresources+set}" = set; then
4814 enableval="$enable_xresources"
698dcdb6 4815
10f2d63a
VZ
4816 if test "$enableval" = yes; then
4817 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4818 else
4819 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4820 fi
698dcdb6 4821
10f2d63a 4822else
698dcdb6 4823
10f2d63a
VZ
4824 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4825 if test "x$LINE" != x ; then
4826 eval "DEFAULT_$LINE"
4827 else
4828 no_cache=1
4829 fi
4830
4831 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
4832
4833fi
10f2d63a
VZ
4834
4835
4836 eval "$ac_cv_use_xresources"
4837 if test "$no_cache" != 1; then
4838 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4839 fi
4840
4841 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 4842 echo "$ac_t""yes" 1>&6
10f2d63a 4843 else
698dcdb6 4844 echo "$ac_t""no" 1>&6
10f2d63a 4845 fi
698dcdb6
VZ
4846
4847
10f2d63a 4848
698dcdb6
VZ
4849
4850 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
3e44f09d 4851echo "configure:4852: checking for --enable-clipboard" >&5
10f2d63a
VZ
4852 no_cache=0
4853 # Check whether --enable-clipboard or --disable-clipboard was given.
4854if test "${enable_clipboard+set}" = set; then
4855 enableval="$enable_clipboard"
698dcdb6 4856
10f2d63a
VZ
4857 if test "$enableval" = yes; then
4858 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4859 else
4860 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4861 fi
698dcdb6 4862
10f2d63a 4863else
698dcdb6 4864
10f2d63a
VZ
4865 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4866 if test "x$LINE" != x ; then
4867 eval "DEFAULT_$LINE"
4868 else
4869 no_cache=1
4870 fi
4871
4872 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
4873
4874fi
10f2d63a
VZ
4875
4876
4877 eval "$ac_cv_use_clipboard"
4878 if test "$no_cache" != 1; then
4879 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4880 fi
4881
4882 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 4883 echo "$ac_t""yes" 1>&6
10f2d63a 4884 else
698dcdb6 4885 echo "$ac_t""no" 1>&6
10f2d63a 4886 fi
698dcdb6 4887
10f2d63a 4888
698dcdb6 4889 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
3e44f09d 4890echo "configure:4891: checking for --enable-dnd" >&5
10f2d63a
VZ
4891 no_cache=0
4892 # Check whether --enable-dnd or --disable-dnd was given.
4893if test "${enable_dnd+set}" = set; then
4894 enableval="$enable_dnd"
698dcdb6 4895
10f2d63a
VZ
4896 if test "$enableval" = yes; then
4897 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4898 else
4899 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4900 fi
698dcdb6 4901
10f2d63a 4902else
698dcdb6 4903
10f2d63a
VZ
4904 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4905 if test "x$LINE" != x ; then
4906 eval "DEFAULT_$LINE"
4907 else
4908 no_cache=1
4909 fi
4910
4911 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
4912
4913fi
10f2d63a
VZ
4914
4915
4916 eval "$ac_cv_use_dnd"
4917 if test "$no_cache" != 1; then
4918 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4919 fi
4920
4921 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 4922 echo "$ac_t""yes" 1>&6
10f2d63a 4923 else
698dcdb6 4924 echo "$ac_t""no" 1>&6
10f2d63a 4925 fi
698dcdb6 4926
10f2d63a 4927
698dcdb6 4928 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
3e44f09d 4929echo "configure:4930: checking for --enable-metafile" >&5
b64f0a5f
RL
4930 no_cache=0
4931 # Check whether --enable-metafile or --disable-metafile was given.
4932if test "${enable_metafile+set}" = set; then
4933 enableval="$enable_metafile"
698dcdb6 4934
b64f0a5f
RL
4935 if test "$enableval" = yes; then
4936 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4937 else
4938 ac_cv_use_metafile='wxUSE_METAFILE=no'
4939 fi
698dcdb6 4940
b64f0a5f 4941else
698dcdb6 4942
b64f0a5f
RL
4943 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4944 if test "x$LINE" != x ; then
4945 eval "DEFAULT_$LINE"
4946 else
4947 no_cache=1
4948 fi
4949
4950 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
4951
4952fi
b64f0a5f
RL
4953
4954
4955 eval "$ac_cv_use_metafile"
4956 if test "$no_cache" != 1; then
4957 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4958 fi
4959
4960 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 4961 echo "$ac_t""yes" 1>&6
b64f0a5f 4962 else
698dcdb6 4963 echo "$ac_t""no" 1>&6
b64f0a5f 4964 fi
698dcdb6
VZ
4965
4966
10f2d63a 4967
698dcdb6 4968 echo $ac_n "checking for --enable-wxtree""... $ac_c" 1>&6
3e44f09d 4969echo "configure:4970: checking for --enable-wxtree" >&5
10f2d63a
VZ
4970 no_cache=0
4971 # Check whether --enable-wxtree or --disable-wxtree was given.
4972if test "${enable_wxtree+set}" = set; then
4973 enableval="$enable_wxtree"
698dcdb6 4974
10f2d63a
VZ
4975 if test "$enableval" = yes; then
4976 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
4977 else
4978 ac_cv_use_wxtree='wxUSE_WXTREE=no'
4979 fi
698dcdb6 4980
10f2d63a 4981else
698dcdb6 4982
10f2d63a
VZ
4983 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
4984 if test "x$LINE" != x ; then
4985 eval "DEFAULT_$LINE"
4986 else
4987 no_cache=1
4988 fi
4989
4990 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
698dcdb6
VZ
4991
4992fi
10f2d63a
VZ
4993
4994
4995 eval "$ac_cv_use_wxtree"
4996 if test "$no_cache" != 1; then
4997 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
4998 fi
4999
5000 if test "$wxUSE_WXTREE" = yes; then
698dcdb6 5001 echo "$ac_t""yes" 1>&6
10f2d63a 5002 else
698dcdb6 5003 echo "$ac_t""no" 1>&6
10f2d63a 5004 fi
698dcdb6 5005
10f2d63a 5006
698dcdb6
VZ
5007
5008
5009 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
3e44f09d 5010echo "configure:5011: checking for --enable-controls" >&5
10f2d63a
VZ
5011 no_cache=0
5012 # Check whether --enable-controls or --disable-controls was given.
5013if test "${enable_controls+set}" = set; then
5014 enableval="$enable_controls"
698dcdb6 5015
10f2d63a
VZ
5016 if test "$enableval" = yes; then
5017 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5018 else
5019 ac_cv_use_controls='wxUSE_CONTROLS=no'
5020 fi
698dcdb6 5021
10f2d63a 5022else
698dcdb6 5023
10f2d63a
VZ
5024 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5025 if test "x$LINE" != x ; then
5026 eval "DEFAULT_$LINE"
5027 else
5028 no_cache=1
5029 fi
5030
5031 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5032
5033fi
10f2d63a
VZ
5034
5035
5036 eval "$ac_cv_use_controls"
5037 if test "$no_cache" != 1; then
5038 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5039 fi
5040
5041 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5042 echo "$ac_t""yes" 1>&6
10f2d63a 5043 else
698dcdb6 5044 echo "$ac_t""no" 1>&6
10f2d63a 5045 fi
698dcdb6 5046
10f2d63a
VZ
5047
5048if test "$wxUSE_CONTROLS" = "yes"; then
5049 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5050 DEFAULT_wxUSE_BMPBUTTON=yes
5051 DEFAULT_wxUSE_BUTTON=yes
5052 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5053 DEFAULT_wxUSE_CARET=yes
5054 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5055 DEFAULT_wxUSE_CHECKBOX=yes
5056 DEFAULT_wxUSE_CHECKLISTBOX=yes
5057 DEFAULT_wxUSE_CHOICE=yes
5058 DEFAULT_wxUSE_GAUGE=yes
5059 DEFAULT_wxUSE_GRID=yes
cc977e5f 5060 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5061 DEFAULT_wxUSE_IMAGLIST=yes
5062 DEFAULT_wxUSE_LISTBOX=yes
5063 DEFAULT_wxUSE_LISTCTRL=yes
5064 DEFAULT_wxUSE_NOTEBOOK=yes
5065 DEFAULT_wxUSE_RADIOBOX=yes
5066 DEFAULT_wxUSE_RADIOBTN=yes
5067 DEFAULT_wxUSE_SASH=yes
5068 DEFAULT_wxUSE_SCROLLBAR=yes
5069 DEFAULT_wxUSE_SLIDER=yes
5070 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5071 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5072 DEFAULT_wxUSE_SPLITTER=yes
5073 DEFAULT_wxUSE_STATBMP=yes
5074 DEFAULT_wxUSE_STATBOX=yes
5075 DEFAULT_wxUSE_STATLINE=yes
5076 DEFAULT_wxUSE_STATUSBAR=yes
5077 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5078 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5079 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5080 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5081 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5082 DEFAULT_wxUSE_TOOLTIPS=yes
5083 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5084 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
5085elif test "$wxUSE_CONTROLS" = "no"; then
5086 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5087 DEFAULT_wxUSE_BMPBUTTON=no
5088 DEFAULT_wxUSE_BUTTON=no
5089 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5090 DEFAULT_wxUSE_CARET=no
5091 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5092 DEFAULT_wxUSE_CHECKBOX=no
5093 DEFAULT_wxUSE_CHECKLISTBOX=no
5094 DEFAULT_wxUSE_CHOICE=no
5095 DEFAULT_wxUSE_GAUGE=no
5096 DEFAULT_wxUSE_GRID=no
5097 DEFAULT_wxUSE_NEW_GRID=no
5098 DEFAULT_wxUSE_IMAGLIST=no
5099 DEFAULT_wxUSE_LISTBOX=no
5100 DEFAULT_wxUSE_LISTCTRL=no
5101 DEFAULT_wxUSE_NOTEBOOK=no
5102 DEFAULT_wxUSE_RADIOBOX=no
5103 DEFAULT_wxUSE_RADIOBTN=no
5104 DEFAULT_wxUSE_SASH=no
5105 DEFAULT_wxUSE_SCROLLBAR=no
5106 DEFAULT_wxUSE_SLIDER=no
5107 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5108 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5109 DEFAULT_wxUSE_SPLITTER=no
5110 DEFAULT_wxUSE_STATBMP=no
5111 DEFAULT_wxUSE_STATBOX=no
5112 DEFAULT_wxUSE_STATLINE=no
5113 DEFAULT_wxUSE_STATUSBAR=no
5114 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5115 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5116 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5117 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5118 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5119 DEFAULT_wxUSE_TOOLTIPS=no
5120 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5121 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
5122fi
5123
698dcdb6
VZ
5124
5125 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
3e44f09d 5126echo "configure:5127: checking for --enable-accel" >&5
10f2d63a
VZ
5127 no_cache=0
5128 # Check whether --enable-accel or --disable-accel was given.
5129if test "${enable_accel+set}" = set; then
5130 enableval="$enable_accel"
698dcdb6 5131
10f2d63a
VZ
5132 if test "$enableval" = yes; then
5133 ac_cv_use_accel='wxUSE_ACCEL=yes'
5134 else
5135 ac_cv_use_accel='wxUSE_ACCEL=no'
5136 fi
698dcdb6 5137
10f2d63a 5138else
698dcdb6 5139
10f2d63a
VZ
5140 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5141 if test "x$LINE" != x ; then
5142 eval "DEFAULT_$LINE"
5143 else
5144 no_cache=1
5145 fi
5146
5147 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5148
5149fi
10f2d63a
VZ
5150
5151
5152 eval "$ac_cv_use_accel"
5153 if test "$no_cache" != 1; then
5154 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5155 fi
5156
5157 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5158 echo "$ac_t""yes" 1>&6
10f2d63a 5159 else
698dcdb6 5160 echo "$ac_t""no" 1>&6
10f2d63a 5161 fi
698dcdb6 5162
10f2d63a 5163
1e6feb95 5164 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
3e44f09d 5165echo "configure:5166: checking for --enable-button" >&5
10f2d63a 5166 no_cache=0
1e6feb95
VZ
5167 # Check whether --enable-button or --disable-button was given.
5168if test "${enable_button+set}" = set; then
5169 enableval="$enable_button"
698dcdb6 5170
10f2d63a 5171 if test "$enableval" = yes; then
1e6feb95 5172 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5173 else
1e6feb95 5174 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5175 fi
698dcdb6 5176
10f2d63a 5177else
698dcdb6 5178
1e6feb95 5179 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5180 if test "x$LINE" != x ; then
5181 eval "DEFAULT_$LINE"
5182 else
5183 no_cache=1
5184 fi
5185
1e6feb95 5186 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5187
5188fi
10f2d63a
VZ
5189
5190
1e6feb95 5191 eval "$ac_cv_use_button"
10f2d63a 5192 if test "$no_cache" != 1; then
1e6feb95 5193 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5194 fi
5195
1e6feb95 5196 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5197 echo "$ac_t""yes" 1>&6
10f2d63a 5198 else
698dcdb6 5199 echo "$ac_t""no" 1>&6
10f2d63a 5200 fi
698dcdb6 5201
10f2d63a 5202
698dcdb6 5203 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
3e44f09d 5204echo "configure:5205: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5205 no_cache=0
5206 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5207if test "${enable_bmpbutton+set}" = set; then
5208 enableval="$enable_bmpbutton"
698dcdb6 5209
10f2d63a
VZ
5210 if test "$enableval" = yes; then
5211 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5212 else
5213 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5214 fi
698dcdb6 5215
10f2d63a 5216else
698dcdb6 5217
10f2d63a
VZ
5218 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5219 if test "x$LINE" != x ; then
5220 eval "DEFAULT_$LINE"
5221 else
5222 no_cache=1
5223 fi
5224
5225 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5226
5227fi
10f2d63a
VZ
5228
5229
5230 eval "$ac_cv_use_bmpbutton"
5231 if test "$no_cache" != 1; then
5232 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5233 fi
5234
5235 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5236 echo "$ac_t""yes" 1>&6
10f2d63a 5237 else
698dcdb6 5238 echo "$ac_t""no" 1>&6
10f2d63a 5239 fi
698dcdb6 5240
10f2d63a 5241
1e6feb95 5242 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
3e44f09d 5243echo "configure:5244: checking for --enable-calendar" >&5
1e6feb95
VZ
5244 no_cache=0
5245 # Check whether --enable-calendar or --disable-calendar was given.
5246if test "${enable_calendar+set}" = set; then
5247 enableval="$enable_calendar"
5248
5249 if test "$enableval" = yes; then
5250 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5251 else
5252 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5253 fi
5254
5255else
5256
5257 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5258 if test "x$LINE" != x ; then
5259 eval "DEFAULT_$LINE"
5260 else
5261 no_cache=1
5262 fi
5263
5264 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5265
5266fi
5267
5268
5269 eval "$ac_cv_use_calendar"
5270 if test "$no_cache" != 1; then
5271 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5272 fi
5273
5274 if test "$wxUSE_CALCTRL" = yes; then
5275 echo "$ac_t""yes" 1>&6
5276 else
5277 echo "$ac_t""no" 1>&6
5278 fi
5279
5280
5281 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
3e44f09d 5282echo "configure:5283: checking for --enable-caret" >&5
1e6feb95
VZ
5283 no_cache=0
5284 # Check whether --enable-caret or --disable-caret was given.
5285if test "${enable_caret+set}" = set; then
5286 enableval="$enable_caret"
5287
5288 if test "$enableval" = yes; then
5289 ac_cv_use_caret='wxUSE_CARET=yes'
5290 else
5291 ac_cv_use_caret='wxUSE_CARET=no'
5292 fi
5293
5294else
5295
5296 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5297 if test "x$LINE" != x ; then
5298 eval "DEFAULT_$LINE"
5299 else
5300 no_cache=1
5301 fi
5302
5303 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5304
5305fi
5306
5307
5308 eval "$ac_cv_use_caret"
5309 if test "$no_cache" != 1; then
5310 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5311 fi
5312
5313 if test "$wxUSE_CARET" = yes; then
5314 echo "$ac_t""yes" 1>&6
5315 else
5316 echo "$ac_t""no" 1>&6
5317 fi
5318
5319
698dcdb6 5320 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
3e44f09d 5321echo "configure:5322: checking for --enable-checkbox" >&5
10f2d63a
VZ
5322 no_cache=0
5323 # Check whether --enable-checkbox or --disable-checkbox was given.
5324if test "${enable_checkbox+set}" = set; then
5325 enableval="$enable_checkbox"
698dcdb6 5326
10f2d63a
VZ
5327 if test "$enableval" = yes; then
5328 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5329 else
5330 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5331 fi
698dcdb6 5332
10f2d63a 5333else
698dcdb6 5334
10f2d63a
VZ
5335 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5336 if test "x$LINE" != x ; then
5337 eval "DEFAULT_$LINE"
5338 else
5339 no_cache=1
5340 fi
5341
5342 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5343
5344fi
10f2d63a
VZ
5345
5346
5347 eval "$ac_cv_use_checkbox"
5348 if test "$no_cache" != 1; then
5349 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5350 fi
5351
5352 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5353 echo "$ac_t""yes" 1>&6
10f2d63a 5354 else
698dcdb6 5355 echo "$ac_t""no" 1>&6
10f2d63a 5356 fi
698dcdb6 5357
10f2d63a 5358
698dcdb6 5359 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
3e44f09d 5360echo "configure:5361: checking for --enable-checklst" >&5
10f2d63a
VZ
5361 no_cache=0
5362 # Check whether --enable-checklst or --disable-checklst was given.
5363if test "${enable_checklst+set}" = set; then
5364 enableval="$enable_checklst"
698dcdb6 5365
10f2d63a
VZ
5366 if test "$enableval" = yes; then
5367 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5368 else
5369 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5370 fi
698dcdb6 5371
10f2d63a 5372else
698dcdb6 5373
10f2d63a
VZ
5374 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5375 if test "x$LINE" != x ; then
5376 eval "DEFAULT_$LINE"
5377 else
5378 no_cache=1
5379 fi
5380
5381 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5382
5383fi
10f2d63a
VZ
5384
5385
5386 eval "$ac_cv_use_checklst"
5387 if test "$no_cache" != 1; then
5388 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5389 fi
5390
5391 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5392 echo "$ac_t""yes" 1>&6
10f2d63a 5393 else
698dcdb6 5394 echo "$ac_t""no" 1>&6
10f2d63a 5395 fi
698dcdb6 5396
10f2d63a 5397
698dcdb6 5398 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
3e44f09d 5399echo "configure:5400: checking for --enable-choice" >&5
10f2d63a
VZ
5400 no_cache=0
5401 # Check whether --enable-choice or --disable-choice was given.
5402if test "${enable_choice+set}" = set; then
5403 enableval="$enable_choice"
698dcdb6 5404
10f2d63a
VZ
5405 if test "$enableval" = yes; then
5406 ac_cv_use_choice='wxUSE_CHOICE=yes'
5407 else
5408 ac_cv_use_choice='wxUSE_CHOICE=no'
5409 fi
698dcdb6 5410
10f2d63a 5411else
698dcdb6 5412
10f2d63a
VZ
5413 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5414 if test "x$LINE" != x ; then
5415 eval "DEFAULT_$LINE"
5416 else
5417 no_cache=1
5418 fi
5419
5420 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5421
5422fi
10f2d63a
VZ
5423
5424
5425 eval "$ac_cv_use_choice"
5426 if test "$no_cache" != 1; then
5427 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5428 fi
5429
5430 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5431 echo "$ac_t""yes" 1>&6
10f2d63a 5432 else
698dcdb6 5433 echo "$ac_t""no" 1>&6
10f2d63a 5434 fi
698dcdb6 5435
10f2d63a 5436
698dcdb6 5437 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
3e44f09d 5438echo "configure:5439: checking for --enable-combobox" >&5
10f2d63a
VZ
5439 no_cache=0
5440 # Check whether --enable-combobox or --disable-combobox was given.
5441if test "${enable_combobox+set}" = set; then
5442 enableval="$enable_combobox"
698dcdb6 5443
10f2d63a
VZ
5444 if test "$enableval" = yes; then
5445 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5446 else
5447 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5448 fi
698dcdb6 5449
10f2d63a 5450else
698dcdb6 5451
10f2d63a
VZ
5452 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5453 if test "x$LINE" != x ; then
5454 eval "DEFAULT_$LINE"
5455 else
5456 no_cache=1
5457 fi
5458
5459 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
5460
5461fi
10f2d63a
VZ
5462
5463
5464 eval "$ac_cv_use_combobox"
5465 if test "$no_cache" != 1; then
5466 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5467 fi
5468
5469 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 5470 echo "$ac_t""yes" 1>&6
10f2d63a 5471 else
698dcdb6 5472 echo "$ac_t""no" 1>&6
10f2d63a 5473 fi
698dcdb6 5474
10f2d63a 5475
698dcdb6 5476 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
3e44f09d 5477echo "configure:5478: checking for --enable-gauge" >&5
10f2d63a
VZ
5478 no_cache=0
5479 # Check whether --enable-gauge or --disable-gauge was given.
5480if test "${enable_gauge+set}" = set; then
5481 enableval="$enable_gauge"
698dcdb6 5482
10f2d63a
VZ
5483 if test "$enableval" = yes; then
5484 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5485 else
5486 ac_cv_use_gauge='wxUSE_GAUGE=no'
5487 fi
698dcdb6 5488
10f2d63a 5489else
698dcdb6 5490
10f2d63a
VZ
5491 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5492 if test "x$LINE" != x ; then
5493 eval "DEFAULT_$LINE"
5494 else
5495 no_cache=1
5496 fi
5497
5498 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
5499
5500fi
10f2d63a
VZ
5501
5502
5503 eval "$ac_cv_use_gauge"
5504 if test "$no_cache" != 1; then
5505 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5506 fi
5507
5508 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 5509 echo "$ac_t""yes" 1>&6
10f2d63a 5510 else
698dcdb6 5511 echo "$ac_t""no" 1>&6
10f2d63a 5512 fi
698dcdb6 5513
10f2d63a 5514
698dcdb6 5515 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
3e44f09d 5516echo "configure:5517: checking for --enable-grid" >&5
10f2d63a
VZ
5517 no_cache=0
5518 # Check whether --enable-grid or --disable-grid was given.
5519if test "${enable_grid+set}" = set; then
5520 enableval="$enable_grid"
698dcdb6 5521
10f2d63a
VZ
5522 if test "$enableval" = yes; then
5523 ac_cv_use_grid='wxUSE_GRID=yes'
5524 else
5525 ac_cv_use_grid='wxUSE_GRID=no'
5526 fi
698dcdb6 5527
10f2d63a 5528else
698dcdb6 5529
10f2d63a
VZ
5530 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5531 if test "x$LINE" != x ; then
5532 eval "DEFAULT_$LINE"
5533 else
5534 no_cache=1
5535 fi
5536
5537 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
5538
5539fi
10f2d63a
VZ
5540
5541
5542 eval "$ac_cv_use_grid"
5543 if test "$no_cache" != 1; then
5544 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5545 fi
5546
5547 if test "$wxUSE_GRID" = yes; then
698dcdb6 5548 echo "$ac_t""yes" 1>&6
10f2d63a 5549 else
698dcdb6 5550 echo "$ac_t""no" 1>&6
10f2d63a 5551 fi
698dcdb6 5552
10f2d63a 5553
698dcdb6 5554 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
3e44f09d 5555echo "configure:5556: checking for --enable-newgrid" >&5
10f2d63a
VZ
5556 no_cache=0
5557 # Check whether --enable-newgrid or --disable-newgrid was given.
5558if test "${enable_newgrid+set}" = set; then
5559 enableval="$enable_newgrid"
698dcdb6 5560
10f2d63a
VZ
5561 if test "$enableval" = yes; then
5562 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5563 else
5564 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5565 fi
698dcdb6 5566
10f2d63a 5567else
698dcdb6 5568
10f2d63a
VZ
5569 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5570 if test "x$LINE" != x ; then
5571 eval "DEFAULT_$LINE"
5572 else
5573 no_cache=1
5574 fi
5575
5576 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
5577
5578fi
10f2d63a
VZ
5579
5580
5581 eval "$ac_cv_use_newgrid"
5582 if test "$no_cache" != 1; then
5583 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5584 fi
5585
5586 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 5587 echo "$ac_t""yes" 1>&6
10f2d63a 5588 else
698dcdb6 5589 echo "$ac_t""no" 1>&6
10f2d63a 5590 fi
698dcdb6 5591
10f2d63a 5592
698dcdb6 5593 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
3e44f09d 5594echo "configure:5595: checking for --enable-imaglist" >&5
10f2d63a
VZ
5595 no_cache=0
5596 # Check whether --enable-imaglist or --disable-imaglist was given.
5597if test "${enable_imaglist+set}" = set; then
5598 enableval="$enable_imaglist"
698dcdb6 5599
10f2d63a
VZ
5600 if test "$enableval" = yes; then
5601 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5602 else
5603 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5604 fi
698dcdb6 5605
10f2d63a 5606else
698dcdb6 5607
10f2d63a
VZ
5608 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5609 if test "x$LINE" != x ; then
5610 eval "DEFAULT_$LINE"
5611 else
5612 no_cache=1
5613 fi
5614
5615 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
5616
5617fi
10f2d63a
VZ
5618
5619
5620 eval "$ac_cv_use_imaglist"
5621 if test "$no_cache" != 1; then
5622 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5623 fi
5624
5625 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 5626 echo "$ac_t""yes" 1>&6
10f2d63a 5627 else
698dcdb6 5628 echo "$ac_t""no" 1>&6
10f2d63a 5629 fi
698dcdb6 5630
10f2d63a 5631
698dcdb6 5632 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
3e44f09d 5633echo "configure:5634: checking for --enable-listbox" >&5
10f2d63a
VZ
5634 no_cache=0
5635 # Check whether --enable-listbox or --disable-listbox was given.
5636if test "${enable_listbox+set}" = set; then
5637 enableval="$enable_listbox"
698dcdb6 5638
10f2d63a
VZ
5639 if test "$enableval" = yes; then
5640 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5641 else
5642 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5643 fi
698dcdb6 5644
10f2d63a 5645else
698dcdb6 5646
10f2d63a
VZ
5647 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5648 if test "x$LINE" != x ; then
5649 eval "DEFAULT_$LINE"
5650 else
5651 no_cache=1
5652 fi
5653
5654 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
5655
5656fi
10f2d63a
VZ
5657
5658
5659 eval "$ac_cv_use_listbox"
5660 if test "$no_cache" != 1; then
5661 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5662 fi
5663
5664 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 5665 echo "$ac_t""yes" 1>&6
10f2d63a 5666 else
698dcdb6 5667 echo "$ac_t""no" 1>&6
10f2d63a 5668 fi
698dcdb6 5669
10f2d63a 5670
698dcdb6 5671 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
3e44f09d 5672echo "configure:5673: checking for --enable-listctrl" >&5
10f2d63a
VZ
5673 no_cache=0
5674 # Check whether --enable-listctrl or --disable-listctrl was given.
5675if test "${enable_listctrl+set}" = set; then
5676 enableval="$enable_listctrl"
698dcdb6 5677
10f2d63a
VZ
5678 if test "$enableval" = yes; then
5679 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5680 else
5681 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5682 fi
698dcdb6 5683
10f2d63a 5684else
698dcdb6 5685
10f2d63a
VZ
5686 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5687 if test "x$LINE" != x ; then
5688 eval "DEFAULT_$LINE"
5689 else
5690 no_cache=1
5691 fi
5692
5693 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
5694
5695fi
10f2d63a
VZ
5696
5697
5698 eval "$ac_cv_use_listctrl"
5699 if test "$no_cache" != 1; then
5700 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5701 fi
5702
5703 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 5704 echo "$ac_t""yes" 1>&6
10f2d63a 5705 else
698dcdb6 5706 echo "$ac_t""no" 1>&6
10f2d63a 5707 fi
698dcdb6 5708
10f2d63a 5709
698dcdb6 5710 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
3e44f09d 5711echo "configure:5712: checking for --enable-notebook" >&5
10f2d63a
VZ
5712 no_cache=0
5713 # Check whether --enable-notebook or --disable-notebook was given.
5714if test "${enable_notebook+set}" = set; then
5715 enableval="$enable_notebook"
698dcdb6 5716
10f2d63a
VZ
5717 if test "$enableval" = yes; then
5718 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5719 else
5720 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5721 fi
698dcdb6 5722
10f2d63a 5723else
698dcdb6 5724
10f2d63a
VZ
5725 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5726 if test "x$LINE" != x ; then
5727 eval "DEFAULT_$LINE"
5728 else
5729 no_cache=1
5730 fi
5731
5732 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
5733
5734fi
10f2d63a
VZ
5735
5736
5737 eval "$ac_cv_use_notebook"
5738 if test "$no_cache" != 1; then
5739 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5740 fi
5741
5742 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 5743 echo "$ac_t""yes" 1>&6
10f2d63a 5744 else
698dcdb6 5745 echo "$ac_t""no" 1>&6
10f2d63a 5746 fi
698dcdb6 5747
10f2d63a 5748
698dcdb6 5749 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
3e44f09d 5750echo "configure:5751: checking for --enable-radiobox" >&5
10f2d63a
VZ
5751 no_cache=0
5752 # Check whether --enable-radiobox or --disable-radiobox was given.
5753if test "${enable_radiobox+set}" = set; then
5754 enableval="$enable_radiobox"
698dcdb6 5755
10f2d63a
VZ
5756 if test "$enableval" = yes; then
5757 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5758 else
5759 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5760 fi
698dcdb6 5761
10f2d63a 5762else
698dcdb6 5763
10f2d63a
VZ
5764 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5765 if test "x$LINE" != x ; then
5766 eval "DEFAULT_$LINE"
5767 else
5768 no_cache=1
5769 fi
5770
5771 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
5772
5773fi
10f2d63a
VZ
5774
5775
5776 eval "$ac_cv_use_radiobox"
5777 if test "$no_cache" != 1; then
5778 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5779 fi
5780
5781 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 5782 echo "$ac_t""yes" 1>&6
10f2d63a 5783 else
698dcdb6 5784 echo "$ac_t""no" 1>&6
10f2d63a 5785 fi
698dcdb6 5786
10f2d63a 5787
698dcdb6 5788 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
3e44f09d 5789echo "configure:5790: checking for --enable-radiobtn" >&5
10f2d63a
VZ
5790 no_cache=0
5791 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5792if test "${enable_radiobtn+set}" = set; then
5793 enableval="$enable_radiobtn"
698dcdb6 5794
10f2d63a
VZ
5795 if test "$enableval" = yes; then
5796 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5797 else
5798 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5799 fi
698dcdb6 5800
10f2d63a 5801else
698dcdb6 5802
10f2d63a
VZ
5803 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5804 if test "x$LINE" != x ; then
5805 eval "DEFAULT_$LINE"
5806 else
5807 no_cache=1
5808 fi
5809
5810 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
5811
5812fi
10f2d63a
VZ
5813
5814
5815 eval "$ac_cv_use_radiobtn"
5816 if test "$no_cache" != 1; then
5817 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5818 fi
5819
5820 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 5821 echo "$ac_t""yes" 1>&6
10f2d63a 5822 else
698dcdb6 5823 echo "$ac_t""no" 1>&6
10f2d63a 5824 fi
698dcdb6 5825
10f2d63a 5826
698dcdb6 5827 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
3e44f09d 5828echo "configure:5829: checking for --enable-sash" >&5
10f2d63a
VZ
5829 no_cache=0
5830 # Check whether --enable-sash or --disable-sash was given.
5831if test "${enable_sash+set}" = set; then
5832 enableval="$enable_sash"
698dcdb6 5833
10f2d63a
VZ
5834 if test "$enableval" = yes; then
5835 ac_cv_use_sash='wxUSE_SASH=yes'
5836 else
5837 ac_cv_use_sash='wxUSE_SASH=no'
5838 fi
698dcdb6 5839
10f2d63a 5840else
698dcdb6 5841
10f2d63a
VZ
5842 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5843 if test "x$LINE" != x ; then
5844 eval "DEFAULT_$LINE"
5845 else
5846 no_cache=1
5847 fi
5848
5849 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
5850
5851fi
10f2d63a
VZ
5852
5853
5854 eval "$ac_cv_use_sash"
5855 if test "$no_cache" != 1; then
5856 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5857 fi
5858
5859 if test "$wxUSE_SASH" = yes; then
698dcdb6 5860 echo "$ac_t""yes" 1>&6
10f2d63a 5861 else
698dcdb6 5862 echo "$ac_t""no" 1>&6
10f2d63a 5863 fi
698dcdb6 5864
10f2d63a 5865
698dcdb6 5866 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
3e44f09d 5867echo "configure:5868: checking for --enable-scrollbar" >&5
10f2d63a
VZ
5868 no_cache=0
5869 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5870if test "${enable_scrollbar+set}" = set; then
5871 enableval="$enable_scrollbar"
698dcdb6 5872
10f2d63a
VZ
5873 if test "$enableval" = yes; then
5874 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5875 else
5876 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5877 fi
698dcdb6 5878
10f2d63a 5879else
698dcdb6 5880
10f2d63a
VZ
5881 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5882 if test "x$LINE" != x ; then
5883 eval "DEFAULT_$LINE"
5884 else
5885 no_cache=1
5886 fi
5887
5888 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
5889
5890fi
10f2d63a
VZ
5891
5892
5893 eval "$ac_cv_use_scrollbar"
5894 if test "$no_cache" != 1; then
5895 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5896 fi
5897
5898 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 5899 echo "$ac_t""yes" 1>&6
10f2d63a 5900 else
698dcdb6 5901 echo "$ac_t""no" 1>&6
10f2d63a 5902 fi
698dcdb6 5903
10f2d63a 5904
698dcdb6 5905 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
3e44f09d 5906echo "configure:5907: checking for --enable-slider" >&5
10f2d63a
VZ
5907 no_cache=0
5908 # Check whether --enable-slider or --disable-slider was given.
5909if test "${enable_slider+set}" = set; then
5910 enableval="$enable_slider"
698dcdb6 5911
10f2d63a
VZ
5912 if test "$enableval" = yes; then
5913 ac_cv_use_slider='wxUSE_SLIDER=yes'
5914 else
5915 ac_cv_use_slider='wxUSE_SLIDER=no'
5916 fi
698dcdb6 5917
10f2d63a 5918else
698dcdb6 5919
10f2d63a
VZ
5920 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5921 if test "x$LINE" != x ; then
5922 eval "DEFAULT_$LINE"
5923 else
5924 no_cache=1
5925 fi
5926
5927 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
5928
5929fi
10f2d63a
VZ
5930
5931
5932 eval "$ac_cv_use_slider"
5933 if test "$no_cache" != 1; then
5934 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5935 fi
5936
5937 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 5938 echo "$ac_t""yes" 1>&6
10f2d63a 5939 else
698dcdb6 5940 echo "$ac_t""no" 1>&6
10f2d63a 5941 fi
698dcdb6 5942
10f2d63a 5943
698dcdb6 5944 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
3e44f09d 5945echo "configure:5946: checking for --enable-spinbtn" >&5
10f2d63a
VZ
5946 no_cache=0
5947 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5948if test "${enable_spinbtn+set}" = set; then
5949 enableval="$enable_spinbtn"
698dcdb6 5950
10f2d63a
VZ
5951 if test "$enableval" = yes; then
5952 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5953 else
5954 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5955 fi
698dcdb6 5956
10f2d63a 5957else
698dcdb6 5958
10f2d63a
VZ
5959 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5960 if test "x$LINE" != x ; then
5961 eval "DEFAULT_$LINE"
5962 else
5963 no_cache=1
5964 fi
5965
5966 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
5967
5968fi
10f2d63a
VZ
5969
5970
5971 eval "$ac_cv_use_spinbtn"
5972 if test "$no_cache" != 1; then
5973 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5974 fi
5975
5976 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 5977 echo "$ac_t""yes" 1>&6
10f2d63a 5978 else
698dcdb6 5979 echo "$ac_t""no" 1>&6
10f2d63a 5980 fi
698dcdb6 5981
10f2d63a 5982
698dcdb6 5983 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
3e44f09d 5984echo "configure:5985: checking for --enable-spinctrl" >&5
56cfaa52
RR
5985 no_cache=0
5986 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5987if test "${enable_spinctrl+set}" = set; then
5988 enableval="$enable_spinctrl"
698dcdb6 5989
56cfaa52
RR
5990 if test "$enableval" = yes; then
5991 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
5992 else
5993 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
5994 fi
698dcdb6 5995
56cfaa52 5996else
698dcdb6 5997
56cfaa52
RR
5998 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
5999 if test "x$LINE" != x ; then
6000 eval "DEFAULT_$LINE"
6001 else
6002 no_cache=1
6003 fi
6004
6005 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6006
6007fi
56cfaa52
RR
6008
6009
6010 eval "$ac_cv_use_spinctrl"
6011 if test "$no_cache" != 1; then
6012 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6013 fi
6014
6015 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6016 echo "$ac_t""yes" 1>&6
56cfaa52 6017 else
698dcdb6 6018 echo "$ac_t""no" 1>&6
56cfaa52 6019 fi
698dcdb6 6020
56cfaa52 6021
698dcdb6 6022 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
3e44f09d 6023echo "configure:6024: checking for --enable-splitter" >&5
10f2d63a
VZ
6024 no_cache=0
6025 # Check whether --enable-splitter or --disable-splitter was given.
6026if test "${enable_splitter+set}" = set; then
6027 enableval="$enable_splitter"
698dcdb6 6028
10f2d63a
VZ
6029 if test "$enableval" = yes; then
6030 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6031 else
6032 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6033 fi
698dcdb6 6034
10f2d63a 6035else
698dcdb6 6036
10f2d63a
VZ
6037 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6038 if test "x$LINE" != x ; then
6039 eval "DEFAULT_$LINE"
6040 else
6041 no_cache=1
6042 fi
6043
6044 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6045
6046fi
10f2d63a
VZ
6047
6048
6049 eval "$ac_cv_use_splitter"
6050 if test "$no_cache" != 1; then
6051 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6052 fi
6053
6054 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6055 echo "$ac_t""yes" 1>&6
10f2d63a 6056 else
698dcdb6 6057 echo "$ac_t""no" 1>&6
10f2d63a 6058 fi
698dcdb6 6059
10f2d63a 6060
698dcdb6 6061 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
3e44f09d 6062echo "configure:6063: checking for --enable-statbmp" >&5
10f2d63a
VZ
6063 no_cache=0
6064 # Check whether --enable-statbmp or --disable-statbmp was given.
6065if test "${enable_statbmp+set}" = set; then
6066 enableval="$enable_statbmp"
698dcdb6 6067
10f2d63a
VZ
6068 if test "$enableval" = yes; then
6069 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6070 else
6071 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6072 fi
698dcdb6 6073
10f2d63a 6074else
698dcdb6 6075
10f2d63a
VZ
6076 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6077 if test "x$LINE" != x ; then
6078 eval "DEFAULT_$LINE"
6079 else
6080 no_cache=1
6081 fi
6082
6083 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6084
6085fi
10f2d63a
VZ
6086
6087
6088 eval "$ac_cv_use_statbmp"
6089 if test "$no_cache" != 1; then
6090 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6091 fi
6092
6093 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6094 echo "$ac_t""yes" 1>&6
10f2d63a 6095 else
698dcdb6 6096 echo "$ac_t""no" 1>&6
10f2d63a 6097 fi
698dcdb6 6098
10f2d63a 6099
698dcdb6 6100 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
3e44f09d 6101echo "configure:6102: checking for --enable-statbox" >&5
10f2d63a
VZ
6102 no_cache=0
6103 # Check whether --enable-statbox or --disable-statbox was given.
6104if test "${enable_statbox+set}" = set; then
6105 enableval="$enable_statbox"
698dcdb6 6106
10f2d63a
VZ
6107 if test "$enableval" = yes; then
6108 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6109 else
6110 ac_cv_use_statbox='wxUSE_STATBOX=no'
6111 fi
698dcdb6 6112
10f2d63a 6113else
698dcdb6 6114
10f2d63a
VZ
6115 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6116 if test "x$LINE" != x ; then
6117 eval "DEFAULT_$LINE"
6118 else
6119 no_cache=1
6120 fi
6121
6122 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6123
6124fi
10f2d63a
VZ
6125
6126
6127 eval "$ac_cv_use_statbox"
6128 if test "$no_cache" != 1; then
6129 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6130 fi
6131
6132 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6133 echo "$ac_t""yes" 1>&6
10f2d63a 6134 else
698dcdb6 6135 echo "$ac_t""no" 1>&6
10f2d63a 6136 fi
698dcdb6 6137
10f2d63a 6138
698dcdb6 6139 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
3e44f09d 6140echo "configure:6141: checking for --enable-statline" >&5
10f2d63a
VZ
6141 no_cache=0
6142 # Check whether --enable-statline or --disable-statline was given.
6143if test "${enable_statline+set}" = set; then
6144 enableval="$enable_statline"
698dcdb6 6145
10f2d63a
VZ
6146 if test "$enableval" = yes; then
6147 ac_cv_use_statline='wxUSE_STATLINE=yes'
6148 else
6149 ac_cv_use_statline='wxUSE_STATLINE=no'
6150 fi
698dcdb6 6151
10f2d63a 6152else
698dcdb6 6153
10f2d63a
VZ
6154 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6155 if test "x$LINE" != x ; then
6156 eval "DEFAULT_$LINE"
6157 else
6158 no_cache=1
6159 fi
6160
6161 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6162
6163fi
10f2d63a
VZ
6164
6165
6166 eval "$ac_cv_use_statline"
6167 if test "$no_cache" != 1; then
6168 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6169 fi
6170
6171 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6172 echo "$ac_t""yes" 1>&6
10f2d63a 6173 else
698dcdb6 6174 echo "$ac_t""no" 1>&6
10f2d63a 6175 fi
698dcdb6 6176
10f2d63a 6177
1e6feb95 6178 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
3e44f09d 6179echo "configure:6180: checking for --enable-stattext" >&5
1e6feb95
VZ
6180 no_cache=0
6181 # Check whether --enable-stattext or --disable-stattext was given.
6182if test "${enable_stattext+set}" = set; then
6183 enableval="$enable_stattext"
6184
6185 if test "$enableval" = yes; then
6186 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6187 else
6188 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6189 fi
6190
6191else
6192
6193 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6194 if test "x$LINE" != x ; then
6195 eval "DEFAULT_$LINE"
6196 else
6197 no_cache=1
6198 fi
6199
6200 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6201
6202fi
6203
6204
6205 eval "$ac_cv_use_stattext"
6206 if test "$no_cache" != 1; then
6207 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6208 fi
6209
6210 if test "$wxUSE_STATTEXT" = yes; then
6211 echo "$ac_t""yes" 1>&6
6212 else
6213 echo "$ac_t""no" 1>&6
6214 fi
6215
6216
698dcdb6 6217 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
3e44f09d 6218echo "configure:6219: checking for --enable-statusbar" >&5
10f2d63a
VZ
6219 no_cache=0
6220 # Check whether --enable-statusbar or --disable-statusbar was given.
6221if test "${enable_statusbar+set}" = set; then
6222 enableval="$enable_statusbar"
698dcdb6 6223
10f2d63a
VZ
6224 if test "$enableval" = yes; then
6225 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6226 else
6227 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6228 fi
698dcdb6 6229
10f2d63a 6230else
698dcdb6 6231
10f2d63a
VZ
6232 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6233 if test "x$LINE" != x ; then
6234 eval "DEFAULT_$LINE"
6235 else
6236 no_cache=1
6237 fi
6238
6239 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6240
6241fi
10f2d63a
VZ
6242
6243
6244 eval "$ac_cv_use_statusbar"
6245 if test "$no_cache" != 1; then
6246 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6247 fi
6248
6249 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6250 echo "$ac_t""yes" 1>&6
10f2d63a 6251 else
698dcdb6 6252 echo "$ac_t""no" 1>&6
10f2d63a 6253 fi
698dcdb6 6254
10f2d63a 6255
698dcdb6 6256 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
3e44f09d 6257echo "configure:6258: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6258 no_cache=0
6259 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6260if test "${enable_tabdialog+set}" = set; then
6261 enableval="$enable_tabdialog"
698dcdb6 6262
10f2d63a
VZ
6263 if test "$enableval" = yes; then
6264 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6265 else
6266 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6267 fi
698dcdb6 6268
10f2d63a 6269else
698dcdb6 6270
10f2d63a
VZ
6271 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6272 if test "x$LINE" != x ; then
6273 eval "DEFAULT_$LINE"
6274 else
6275 no_cache=1
6276 fi
6277
6278 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6279
6280fi
10f2d63a
VZ
6281
6282
6283 eval "$ac_cv_use_tabdialog"
6284 if test "$no_cache" != 1; then
6285 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6286 fi
6287
6288 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6289 echo "$ac_t""yes" 1>&6
10f2d63a 6290 else
698dcdb6 6291 echo "$ac_t""no" 1>&6
10f2d63a 6292 fi
698dcdb6 6293
10f2d63a 6294
1e6feb95 6295 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
3e44f09d 6296echo "configure:6297: checking for --enable-textctrl" >&5
1e6feb95
VZ
6297 no_cache=0
6298 # Check whether --enable-textctrl or --disable-textctrl was given.
6299if test "${enable_textctrl+set}" = set; then
6300 enableval="$enable_textctrl"
6301
6302 if test "$enableval" = yes; then
6303 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6304 else
6305 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6306 fi
6307
6308else
6309
6310 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6311 if test "x$LINE" != x ; then
6312 eval "DEFAULT_$LINE"
6313 else
6314 no_cache=1
6315 fi
6316
6317 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6318
6319fi
6320
6321
6322 eval "$ac_cv_use_textctrl"
6323 if test "$no_cache" != 1; then
6324 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6325 fi
6326
6327 if test "$wxUSE_TEXTCTRL" = yes; then
6328 echo "$ac_t""yes" 1>&6
6329 else
6330 echo "$ac_t""no" 1>&6
6331 fi
6332
6333
698dcdb6 6334 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
3e44f09d 6335echo "configure:6336: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6336 no_cache=0
6337 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6338if test "${enable_togglebtn+set}" = set; then
6339 enableval="$enable_togglebtn"
698dcdb6 6340
1db8dc4a
VZ
6341 if test "$enableval" = yes; then
6342 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6343 else
6344 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6345 fi
698dcdb6 6346
1db8dc4a 6347else
698dcdb6 6348
1db8dc4a
VZ
6349 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6350 if test "x$LINE" != x ; then
6351 eval "DEFAULT_$LINE"
6352 else
6353 no_cache=1
6354 fi
6355
6356 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6357
6358fi
1db8dc4a
VZ
6359
6360
6361 eval "$ac_cv_use_togglebtn"
6362 if test "$no_cache" != 1; then
6363 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6364 fi
6365
6366 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6367 echo "$ac_t""yes" 1>&6
1db8dc4a 6368 else
698dcdb6 6369 echo "$ac_t""no" 1>&6
1db8dc4a 6370 fi
698dcdb6 6371
1db8dc4a 6372
698dcdb6 6373 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
3e44f09d 6374echo "configure:6375: checking for --enable-toolbar" >&5
10f2d63a
VZ
6375 no_cache=0
6376 # Check whether --enable-toolbar or --disable-toolbar was given.
6377if test "${enable_toolbar+set}" = set; then
6378 enableval="$enable_toolbar"
698dcdb6 6379
10f2d63a
VZ
6380 if test "$enableval" = yes; then
6381 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6382 else
6383 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6384 fi
698dcdb6 6385
10f2d63a 6386else
698dcdb6 6387
10f2d63a
VZ
6388 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6389 if test "x$LINE" != x ; then
6390 eval "DEFAULT_$LINE"
6391 else
6392 no_cache=1
6393 fi
6394
6395 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
6396
6397fi
10f2d63a
VZ
6398
6399
6400 eval "$ac_cv_use_toolbar"
6401 if test "$no_cache" != 1; then
6402 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6403 fi
6404
6405 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 6406 echo "$ac_t""yes" 1>&6
10f2d63a 6407 else
698dcdb6 6408 echo "$ac_t""no" 1>&6
10f2d63a 6409 fi
698dcdb6 6410
10f2d63a 6411
698dcdb6 6412 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
3e44f09d 6413echo "configure:6414: checking for --enable-tbarnative" >&5
360d6699
VZ
6414 no_cache=0
6415 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6416if test "${enable_tbarnative+set}" = set; then
6417 enableval="$enable_tbarnative"
698dcdb6 6418
360d6699
VZ
6419 if test "$enableval" = yes; then
6420 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6421 else
6422 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6423 fi
698dcdb6 6424
360d6699 6425else
698dcdb6 6426
360d6699
VZ
6427 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6428 if test "x$LINE" != x ; then
6429 eval "DEFAULT_$LINE"
6430 else
6431 no_cache=1
6432 fi
6433
6434 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
6435
6436fi
360d6699
VZ
6437
6438
6439 eval "$ac_cv_use_tbarnative"
6440 if test "$no_cache" != 1; then
6441 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6442 fi
6443
6444 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 6445 echo "$ac_t""yes" 1>&6
360d6699 6446 else
698dcdb6 6447 echo "$ac_t""no" 1>&6
360d6699 6448 fi
698dcdb6 6449
360d6699 6450
698dcdb6 6451 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
3e44f09d 6452echo "configure:6453: checking for --enable-tbarsmpl" >&5
360d6699
VZ
6453 no_cache=0
6454 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6455if test "${enable_tbarsmpl+set}" = set; then
6456 enableval="$enable_tbarsmpl"
698dcdb6 6457
360d6699
VZ
6458 if test "$enableval" = yes; then
6459 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6460 else
6461 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6462 fi
698dcdb6 6463
360d6699 6464else
698dcdb6 6465
360d6699
VZ
6466 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6467 if test "x$LINE" != x ; then
6468 eval "DEFAULT_$LINE"
6469 else
6470 no_cache=1
6471 fi
6472
6473 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
6474
6475fi
360d6699
VZ
6476
6477
6478 eval "$ac_cv_use_tbarsmpl"
6479 if test "$no_cache" != 1; then
6480 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6481 fi
6482
6483 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 6484 echo "$ac_t""yes" 1>&6
360d6699 6485 else
698dcdb6 6486 echo "$ac_t""no" 1>&6
360d6699 6487 fi
698dcdb6 6488
360d6699 6489
698dcdb6 6490 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
3e44f09d 6491echo "configure:6492: checking for --enable-treectrl" >&5
10f2d63a
VZ
6492 no_cache=0
6493 # Check whether --enable-treectrl or --disable-treectrl was given.
6494if test "${enable_treectrl+set}" = set; then
6495 enableval="$enable_treectrl"
698dcdb6 6496
10f2d63a
VZ
6497 if test "$enableval" = yes; then
6498 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6499 else
6500 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6501 fi
698dcdb6 6502
10f2d63a 6503else
698dcdb6 6504
10f2d63a
VZ
6505 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6506 if test "x$LINE" != x ; then
6507 eval "DEFAULT_$LINE"
6508 else
6509 no_cache=1
6510 fi
6511
6512 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
6513
6514fi
10f2d63a
VZ
6515
6516
1e6feb95
VZ
6517 eval "$ac_cv_use_treectrl"
6518 if test "$no_cache" != 1; then
6519 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6520 fi
6521
6522 if test "$wxUSE_TREECTRL" = yes; then
6523 echo "$ac_t""yes" 1>&6
6524 else
6525 echo "$ac_t""no" 1>&6
6526 fi
6527
6528
9f41d601 6529 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
3e44f09d 6530echo "configure:6531: checking for --enable-popupwin" >&5
9f41d601
RR
6531 no_cache=0
6532 # Check whether --enable-popupwin or --disable-popupwin was given.
6533if test "${enable_popupwin+set}" = set; then
6534 enableval="$enable_popupwin"
6535
6536 if test "$enableval" = yes; then
6537 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6538 else
6539 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6540 fi
6541
6542else
6543
6544 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6545 if test "x$LINE" != x ; then
6546 eval "DEFAULT_$LINE"
6547 else
6548 no_cache=1
6549 fi
6550
6551 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6552
6553fi
6554
6555
6556 eval "$ac_cv_use_popupwin"
6557 if test "$no_cache" != 1; then
6558 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6559 fi
6560
6561 if test "$wxUSE_POPUPWIN" = yes; then
6562 echo "$ac_t""yes" 1>&6
6563 else
6564 echo "$ac_t""no" 1>&6
6565 fi
6566
6567
1e6feb95
VZ
6568
6569
6570 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
3e44f09d 6571echo "configure:6572: checking for --enable-commondlg" >&5
1e6feb95
VZ
6572 no_cache=0
6573 # Check whether --enable-commondlg or --disable-commondlg was given.
6574if test "${enable_commondlg+set}" = set; then
6575 enableval="$enable_commondlg"
6576
6577 if test "$enableval" = yes; then
6578 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6579 else
6580 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6581 fi
6582
6583else
6584
6585 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6586 if test "x$LINE" != x ; then
6587 eval "DEFAULT_$LINE"
6588 else
6589 no_cache=1
6590 fi
6591
6592 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6593
6594fi
6595
6596
6597 eval "$ac_cv_use_commondlg"
6598 if test "$no_cache" != 1; then
6599 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6600 fi
6601
6602 if test "$wxUSE_COMMONDLGS" = yes; then
6603 echo "$ac_t""yes" 1>&6
6604 else
6605 echo "$ac_t""no" 1>&6
6606 fi
6607
6608
6609 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
3e44f09d 6610echo "configure:6611: checking for --enable-choicedlg" >&5
1e6feb95
VZ
6611 no_cache=0
6612 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6613if test "${enable_choicedlg+set}" = set; then
6614 enableval="$enable_choicedlg"
6615
6616 if test "$enableval" = yes; then
6617 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6618 else
6619 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6620 fi
6621
6622else
6623
6624 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6625 if test "x$LINE" != x ; then
6626 eval "DEFAULT_$LINE"
6627 else
6628 no_cache=1
6629 fi
6630
6631 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6632
6633fi
6634
6635
6636 eval "$ac_cv_use_choicedlg"
6637 if test "$no_cache" != 1; then
6638 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6639 fi
6640
6641 if test "$wxUSE_CHOICEDLG" = yes; then
6642 echo "$ac_t""yes" 1>&6
6643 else
6644 echo "$ac_t""no" 1>&6
6645 fi
6646
6647
6648 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
3e44f09d 6649echo "configure:6650: checking for --enable-coldlg" >&5
1e6feb95
VZ
6650 no_cache=0
6651 # Check whether --enable-coldlg or --disable-coldlg was given.
6652if test "${enable_coldlg+set}" = set; then
6653 enableval="$enable_coldlg"
6654
6655 if test "$enableval" = yes; then
6656 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6657 else
6658 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6659 fi
6660
6661else
6662
6663 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6664 if test "x$LINE" != x ; then
6665 eval "DEFAULT_$LINE"
6666 else
6667 no_cache=1
6668 fi
6669
6670 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6671
6672fi
6673
6674
6675 eval "$ac_cv_use_coldlg"
6676 if test "$no_cache" != 1; then
6677 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6678 fi
6679
6680 if test "$wxUSE_COLOURDLG" = yes; then
6681 echo "$ac_t""yes" 1>&6
6682 else
6683 echo "$ac_t""no" 1>&6
6684 fi
6685
6686
6687 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
3e44f09d 6688echo "configure:6689: checking for --enable-filedlg" >&5
1e6feb95
VZ
6689 no_cache=0
6690 # Check whether --enable-filedlg or --disable-filedlg was given.
6691if test "${enable_filedlg+set}" = set; then
6692 enableval="$enable_filedlg"
6693
6694 if test "$enableval" = yes; then
6695 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6696 else
6697 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6698 fi
6699
6700else
6701
6702 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6703 if test "x$LINE" != x ; then
6704 eval "DEFAULT_$LINE"
6705 else
6706 no_cache=1
6707 fi
6708
6709 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6710
6711fi
6712
6713
6714 eval "$ac_cv_use_filedlg"
6715 if test "$no_cache" != 1; then
6716 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6717 fi
6718
6719 if test "$wxUSE_FILEDLG" = yes; then
6720 echo "$ac_t""yes" 1>&6
6721 else
6722 echo "$ac_t""no" 1>&6
6723 fi
6724
6725
6726 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
3e44f09d 6727echo "configure:6728: checking for --enable-fontdlg" >&5
1e6feb95
VZ
6728 no_cache=0
6729 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6730if test "${enable_fontdlg+set}" = set; then
6731 enableval="$enable_fontdlg"
6732
6733 if test "$enableval" = yes; then
6734 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6735 else
6736 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6737 fi
6738
6739else
6740
6741 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6742 if test "x$LINE" != x ; then
6743 eval "DEFAULT_$LINE"
6744 else
6745 no_cache=1
6746 fi
6747
6748 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6749
6750fi
6751
6752
6753 eval "$ac_cv_use_fontdlg"
6754 if test "$no_cache" != 1; then
6755 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6756 fi
6757
6758 if test "$wxUSE_FONTDLG" = yes; then
6759 echo "$ac_t""yes" 1>&6
6760 else
6761 echo "$ac_t""no" 1>&6
6762 fi
6763
6764
6765 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
3e44f09d 6766echo "configure:6767: checking for --enable-dirdlg" >&5
1e6feb95
VZ
6767 no_cache=0
6768 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6769if test "${enable_dirdlg+set}" = set; then
6770 enableval="$enable_dirdlg"
6771
6772 if test "$enableval" = yes; then
6773 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6774 else
6775 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6776 fi
6777
6778else
6779
6780 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6781 if test "x$LINE" != x ; then
6782 eval "DEFAULT_$LINE"
6783 else
6784 no_cache=1
6785 fi
6786
6787 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6788
6789fi
6790
6791
6792 eval "$ac_cv_use_dirdlg"
10f2d63a 6793 if test "$no_cache" != 1; then
1e6feb95 6794 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6795 fi
6796
1e6feb95 6797 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 6798 echo "$ac_t""yes" 1>&6
10f2d63a 6799 else
698dcdb6 6800 echo "$ac_t""no" 1>&6
10f2d63a 6801 fi
698dcdb6
VZ
6802
6803
1e6feb95 6804 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
3e44f09d 6805echo "configure:6806: checking for --enable-msgdlg" >&5
10f2d63a 6806 no_cache=0
1e6feb95
VZ
6807 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6808if test "${enable_msgdlg+set}" = set; then
6809 enableval="$enable_msgdlg"
698dcdb6 6810
10f2d63a 6811 if test "$enableval" = yes; then
1e6feb95 6812 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 6813 else
1e6feb95 6814 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 6815 fi
698dcdb6 6816
10f2d63a 6817else
698dcdb6 6818
1e6feb95 6819 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6820 if test "x$LINE" != x ; then
6821 eval "DEFAULT_$LINE"
6822 else
6823 no_cache=1
6824 fi
6825
1e6feb95 6826 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
6827
6828fi
10f2d63a
VZ
6829
6830
1e6feb95 6831 eval "$ac_cv_use_msgdlg"
10f2d63a 6832 if test "$no_cache" != 1; then
1e6feb95 6833 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6834 fi
6835
1e6feb95 6836 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 6837 echo "$ac_t""yes" 1>&6
10f2d63a 6838 else
698dcdb6 6839 echo "$ac_t""no" 1>&6
10f2d63a 6840 fi
698dcdb6 6841
10f2d63a 6842
1e6feb95 6843 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
3e44f09d 6844echo "configure:6845: checking for --enable-numberdlg" >&5
10f2d63a 6845 no_cache=0
1e6feb95
VZ
6846 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6847if test "${enable_numberdlg+set}" = set; then
6848 enableval="$enable_numberdlg"
698dcdb6 6849
10f2d63a 6850 if test "$enableval" = yes; then
1e6feb95 6851 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 6852 else
1e6feb95 6853 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 6854 fi
698dcdb6 6855
10f2d63a 6856else
698dcdb6 6857
1e6feb95 6858 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6859 if test "x$LINE" != x ; then
6860 eval "DEFAULT_$LINE"
6861 else
6862 no_cache=1
6863 fi
6864
1e6feb95 6865 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
6866
6867fi
10f2d63a
VZ
6868
6869
1e6feb95 6870 eval "$ac_cv_use_numberdlg"
10f2d63a 6871 if test "$no_cache" != 1; then
1e6feb95 6872 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6873 fi
6874
1e6feb95 6875 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 6876 echo "$ac_t""yes" 1>&6
10f2d63a 6877 else
698dcdb6 6878 echo "$ac_t""no" 1>&6
10f2d63a 6879 fi
698dcdb6 6880
10f2d63a 6881
698dcdb6 6882 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
3e44f09d 6883echo "configure:6884: checking for --enable-textdlg" >&5
10f2d63a
VZ
6884 no_cache=0
6885 # Check whether --enable-textdlg or --disable-textdlg was given.
6886if test "${enable_textdlg+set}" = set; then
6887 enableval="$enable_textdlg"
698dcdb6 6888
10f2d63a
VZ
6889 if test "$enableval" = yes; then
6890 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6891 else
6892 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6893 fi
698dcdb6 6894
10f2d63a 6895else
698dcdb6 6896
10f2d63a
VZ
6897 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6898 if test "x$LINE" != x ; then
6899 eval "DEFAULT_$LINE"
6900 else
6901 no_cache=1
6902 fi
6903
6904 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
6905
6906fi
10f2d63a
VZ
6907
6908
6909 eval "$ac_cv_use_textdlg"
6910 if test "$no_cache" != 1; then
6911 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
6912 fi
6913
6914 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 6915 echo "$ac_t""yes" 1>&6
10f2d63a 6916 else
698dcdb6 6917 echo "$ac_t""no" 1>&6
10f2d63a 6918 fi
698dcdb6 6919
10f2d63a 6920
698dcdb6 6921 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
3e44f09d 6922echo "configure:6923: checking for --enable-tipdlg" >&5
10f2d63a
VZ
6923 no_cache=0
6924 # Check whether --enable-tipdlg or --disable-tipdlg was given.
6925if test "${enable_tipdlg+set}" = set; then
6926 enableval="$enable_tipdlg"
698dcdb6 6927
10f2d63a
VZ
6928 if test "$enableval" = yes; then
6929 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
6930 else
6931 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
6932 fi
698dcdb6 6933
10f2d63a 6934else
698dcdb6 6935
10f2d63a
VZ
6936 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
6937 if test "x$LINE" != x ; then
6938 eval "DEFAULT_$LINE"
6939 else
6940 no_cache=1
6941 fi
6942
6943 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
6944
6945fi
10f2d63a
VZ
6946
6947
6948 eval "$ac_cv_use_tipdlg"
6949 if test "$no_cache" != 1; then
6950 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
6951 fi
6952
6953 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 6954 echo "$ac_t""yes" 1>&6
10f2d63a 6955 else
698dcdb6 6956 echo "$ac_t""no" 1>&6
10f2d63a 6957 fi
698dcdb6 6958
10f2d63a 6959
698dcdb6 6960 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
3e44f09d 6961echo "configure:6962: checking for --enable-progressdlg" >&5
10f2d63a
VZ
6962 no_cache=0
6963 # Check whether --enable-progressdlg or --disable-progressdlg was given.
6964if test "${enable_progressdlg+set}" = set; then
6965 enableval="$enable_progressdlg"
698dcdb6 6966
10f2d63a
VZ
6967 if test "$enableval" = yes; then
6968 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
6969 else
6970 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
6971 fi
698dcdb6 6972
10f2d63a 6973else
698dcdb6 6974
10f2d63a
VZ
6975 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
6976 if test "x$LINE" != x ; then
6977 eval "DEFAULT_$LINE"
6978 else
6979 no_cache=1
6980 fi
6981
6982 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
6983
6984fi
10f2d63a
VZ
6985
6986
6987 eval "$ac_cv_use_progressdlg"
6988 if test "$no_cache" != 1; then
6989 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
6990 fi
6991
6992 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 6993 echo "$ac_t""yes" 1>&6
10f2d63a 6994 else
698dcdb6 6995 echo "$ac_t""no" 1>&6
10f2d63a 6996 fi
698dcdb6 6997
10f2d63a 6998
b1f5d087 6999 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
3e44f09d 7000echo "configure:7001: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7001 no_cache=0
7002 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7003if test "${enable_wizarddlg+set}" = set; then
7004 enableval="$enable_wizarddlg"
7005
7006 if test "$enableval" = yes; then
7007 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7008 else
7009 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7010 fi
7011
7012else
7013
7014 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7015 if test "x$LINE" != x ; then
7016 eval "DEFAULT_$LINE"
7017 else
7018 no_cache=1
7019 fi
7020
7021 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7022
7023fi
7024
7025
7026 eval "$ac_cv_use_wizarddlg"
7027 if test "$no_cache" != 1; then
7028 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7029 fi
7030
7031 if test "$wxUSE_WIZARDDLG" = yes; then
7032 echo "$ac_t""yes" 1>&6
7033 else
7034 echo "$ac_t""no" 1>&6
7035 fi
7036
7037
7038
7039
1e6feb95 7040 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
3e44f09d 7041echo "configure:7042: checking for --enable-menus" >&5
1e6feb95
VZ
7042 no_cache=0
7043 # Check whether --enable-menus or --disable-menus was given.
7044if test "${enable_menus+set}" = set; then
7045 enableval="$enable_menus"
7046
7047 if test "$enableval" = yes; then
7048 ac_cv_use_menus='wxUSE_MENUS=yes'
7049 else
7050 ac_cv_use_menus='wxUSE_MENUS=no'
7051 fi
7052
7053else
7054
7055 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7056 if test "x$LINE" != x ; then
7057 eval "DEFAULT_$LINE"
7058 else
7059 no_cache=1
7060 fi
7061
7062 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7063
7064fi
7065
7066
7067 eval "$ac_cv_use_menus"
7068 if test "$no_cache" != 1; then
7069 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7070 fi
7071
7072 if test "$wxUSE_MENUS" = yes; then
7073 echo "$ac_t""yes" 1>&6
7074 else
7075 echo "$ac_t""no" 1>&6
7076 fi
7077
7078
698dcdb6 7079 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
3e44f09d 7080echo "configure:7081: checking for --enable-miniframe" >&5
10f2d63a
VZ
7081 no_cache=0
7082 # Check whether --enable-miniframe or --disable-miniframe was given.
7083if test "${enable_miniframe+set}" = set; then
7084 enableval="$enable_miniframe"
698dcdb6 7085
10f2d63a
VZ
7086 if test "$enableval" = yes; then
7087 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7088 else
7089 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7090 fi
698dcdb6 7091
10f2d63a 7092else
698dcdb6 7093
10f2d63a
VZ
7094 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7095 if test "x$LINE" != x ; then
7096 eval "DEFAULT_$LINE"
7097 else
7098 no_cache=1
7099 fi
7100
7101 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7102
7103fi
10f2d63a
VZ
7104
7105
7106 eval "$ac_cv_use_miniframe"
7107 if test "$no_cache" != 1; then
7108 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7109 fi
7110
7111 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7112 echo "$ac_t""yes" 1>&6
10f2d63a 7113 else
698dcdb6 7114 echo "$ac_t""no" 1>&6
10f2d63a 7115 fi
698dcdb6 7116
10f2d63a 7117
698dcdb6 7118 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
3e44f09d 7119echo "configure:7120: checking for --enable-tooltips" >&5
10f2d63a
VZ
7120 no_cache=0
7121 # Check whether --enable-tooltips or --disable-tooltips was given.
7122if test "${enable_tooltips+set}" = set; then
7123 enableval="$enable_tooltips"
698dcdb6 7124
10f2d63a
VZ
7125 if test "$enableval" = yes; then
7126 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7127 else
7128 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7129 fi
698dcdb6 7130
10f2d63a 7131else
698dcdb6 7132
10f2d63a
VZ
7133 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7134 if test "x$LINE" != x ; then
7135 eval "DEFAULT_$LINE"
7136 else
7137 no_cache=1
7138 fi
7139
7140 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7141
7142fi
10f2d63a
VZ
7143
7144
7145 eval "$ac_cv_use_tooltips"
7146 if test "$no_cache" != 1; then
7147 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7148 fi
7149
7150 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7151 echo "$ac_t""yes" 1>&6
10f2d63a 7152 else
698dcdb6 7153 echo "$ac_t""no" 1>&6
10f2d63a 7154 fi
698dcdb6 7155
10f2d63a 7156
698dcdb6 7157 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
3e44f09d 7158echo "configure:7159: checking for --enable-splines" >&5
10f2d63a
VZ
7159 no_cache=0
7160 # Check whether --enable-splines or --disable-splines was given.
7161if test "${enable_splines+set}" = set; then
7162 enableval="$enable_splines"
698dcdb6 7163
10f2d63a
VZ
7164 if test "$enableval" = yes; then
7165 ac_cv_use_splines='wxUSE_SPLINES=yes'
7166 else
7167 ac_cv_use_splines='wxUSE_SPLINES=no'
7168 fi
698dcdb6 7169
10f2d63a 7170else
698dcdb6 7171
10f2d63a
VZ
7172 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7173 if test "x$LINE" != x ; then
7174 eval "DEFAULT_$LINE"
7175 else
7176 no_cache=1
7177 fi
7178
7179 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7180
7181fi
10f2d63a
VZ
7182
7183
7184 eval "$ac_cv_use_splines"
7185 if test "$no_cache" != 1; then
7186 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7187 fi
7188
7189 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7190 echo "$ac_t""yes" 1>&6
10f2d63a 7191 else
698dcdb6 7192 echo "$ac_t""no" 1>&6
10f2d63a 7193 fi
698dcdb6 7194
10f2d63a 7195
698dcdb6 7196 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
3e44f09d 7197echo "configure:7198: checking for --enable-validators" >&5
10f2d63a
VZ
7198 no_cache=0
7199 # Check whether --enable-validators or --disable-validators was given.
7200if test "${enable_validators+set}" = set; then
7201 enableval="$enable_validators"
698dcdb6 7202
10f2d63a
VZ
7203 if test "$enableval" = yes; then
7204 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7205 else
7206 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7207 fi
698dcdb6 7208
10f2d63a 7209else
698dcdb6 7210
10f2d63a
VZ
7211 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7212 if test "x$LINE" != x ; then
7213 eval "DEFAULT_$LINE"
7214 else
7215 no_cache=1
7216 fi
7217
7218 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7219
7220fi
10f2d63a
VZ
7221
7222
7223 eval "$ac_cv_use_validators"
7224 if test "$no_cache" != 1; then
7225 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7226 fi
7227
7228 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7229 echo "$ac_t""yes" 1>&6
10f2d63a 7230 else
698dcdb6 7231 echo "$ac_t""no" 1>&6
10f2d63a 7232 fi
698dcdb6 7233
10f2d63a 7234
698dcdb6 7235 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
3e44f09d 7236echo "configure:7237: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7237 no_cache=0
7238 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7239if test "${enable_busyinfo+set}" = set; then
7240 enableval="$enable_busyinfo"
698dcdb6 7241
10f2d63a
VZ
7242 if test "$enableval" = yes; then
7243 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7244 else
7245 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7246 fi
698dcdb6 7247
10f2d63a 7248else
698dcdb6 7249
10f2d63a
VZ
7250 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7251 if test "x$LINE" != x ; then
7252 eval "DEFAULT_$LINE"
7253 else
7254 no_cache=1
7255 fi
7256
7257 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
7258
7259fi
10f2d63a
VZ
7260
7261
7262 eval "$ac_cv_use_busyinfo"
7263 if test "$no_cache" != 1; then
7264 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7265 fi
7266
7267 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 7268 echo "$ac_t""yes" 1>&6
10f2d63a 7269 else
698dcdb6 7270 echo "$ac_t""no" 1>&6
10f2d63a 7271 fi
698dcdb6 7272
10f2d63a 7273
698dcdb6 7274 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
3e44f09d 7275echo "configure:7276: checking for --enable-joystick" >&5
f6bcfd97
BP
7276 no_cache=0
7277 # Check whether --enable-joystick or --disable-joystick was given.
7278if test "${enable_joystick+set}" = set; then
7279 enableval="$enable_joystick"
698dcdb6 7280
f6bcfd97
BP
7281 if test "$enableval" = yes; then
7282 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7283 else
7284 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7285 fi
698dcdb6 7286
f6bcfd97 7287else
698dcdb6 7288
f6bcfd97
BP
7289 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7290 if test "x$LINE" != x ; then
7291 eval "DEFAULT_$LINE"
7292 else
7293 no_cache=1
7294 fi
7295
7296 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
7297
7298fi
f6bcfd97
BP
7299
7300
7301 eval "$ac_cv_use_joystick"
7302 if test "$no_cache" != 1; then
7303 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7304 fi
7305
7306 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 7307 echo "$ac_t""yes" 1>&6
f6bcfd97 7308 else
698dcdb6 7309 echo "$ac_t""no" 1>&6
f6bcfd97 7310 fi
698dcdb6
VZ
7311
7312
1e6feb95 7313 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
3e44f09d 7314echo "configure:7315: checking for --enable-metafile" >&5
1e6feb95
VZ
7315 no_cache=0
7316 # Check whether --enable-metafile or --disable-metafile was given.
7317if test "${enable_metafile+set}" = set; then
7318 enableval="$enable_metafile"
7319
7320 if test "$enableval" = yes; then
7321 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7322 else
7323 ac_cv_use_metafile='wxUSE_METAFILE=no'
7324 fi
7325
7326else
7327
7328 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7329 if test "x$LINE" != x ; then
7330 eval "DEFAULT_$LINE"
7331 else
7332 no_cache=1
7333 fi
7334
7335 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7336
7337fi
7338
7339
7340 eval "$ac_cv_use_metafile"
7341 if test "$no_cache" != 1; then
7342 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7343 fi
7344
7345 if test "$wxUSE_METAFILE" = yes; then
7346 echo "$ac_t""yes" 1>&6
7347 else
7348 echo "$ac_t""no" 1>&6
7349 fi
7350
7351
24fd6d87 7352 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
3e44f09d 7353echo "configure:7354: checking for --enable-dragimage" >&5
24fd6d87
VZ
7354 no_cache=0
7355 # Check whether --enable-dragimage or --disable-dragimage was given.
7356if test "${enable_dragimage+set}" = set; then
7357 enableval="$enable_dragimage"
7358
7359 if test "$enableval" = yes; then
7360 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7361 else
7362 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7363 fi
7364
7365else
7366
7367 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7368 if test "x$LINE" != x ; then
7369 eval "DEFAULT_$LINE"
7370 else
7371 no_cache=1
7372 fi
7373
7374 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7375
7376fi
7377
7378
7379 eval "$ac_cv_use_dragimage"
7380 if test "$no_cache" != 1; then
7381 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7382 fi
7383
7384 if test "$wxUSE_DRAGIMAGE" = yes; then
7385 echo "$ac_t""yes" 1>&6
7386 else
7387 echo "$ac_t""no" 1>&6
7388 fi
7389
7390
10f2d63a 7391
698dcdb6
VZ
7392
7393 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
3e44f09d 7394echo "configure:7395: checking for --enable-image" >&5
0046ff7c
VS
7395 no_cache=0
7396 # Check whether --enable-image or --disable-image was given.
7397if test "${enable_image+set}" = set; then
7398 enableval="$enable_image"
698dcdb6 7399
0046ff7c
VS
7400 if test "$enableval" = yes; then
7401 ac_cv_use_image='wxUSE_IMAGE=yes'
7402 else
7403 ac_cv_use_image='wxUSE_IMAGE=no'
7404 fi
698dcdb6 7405
0046ff7c 7406else
698dcdb6 7407
0046ff7c
VS
7408 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7409 if test "x$LINE" != x ; then
7410 eval "DEFAULT_$LINE"
7411 else
7412 no_cache=1
7413 fi
7414
7415 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
7416
7417fi
0046ff7c
VS
7418
7419
7420 eval "$ac_cv_use_image"
7421 if test "$no_cache" != 1; then
7422 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7423 fi
7424
7425 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 7426 echo "$ac_t""yes" 1>&6
0046ff7c 7427 else
698dcdb6 7428 echo "$ac_t""no" 1>&6
0046ff7c 7429 fi
698dcdb6 7430
0046ff7c 7431
698dcdb6 7432 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
3e44f09d 7433echo "configure:7434: checking for --enable-gif" >&5
10f2d63a
VZ
7434 no_cache=0
7435 # Check whether --enable-gif or --disable-gif was given.
7436if test "${enable_gif+set}" = set; then
7437 enableval="$enable_gif"
698dcdb6 7438
10f2d63a
VZ
7439 if test "$enableval" = yes; then
7440 ac_cv_use_gif='wxUSE_GIF=yes'
7441 else
7442 ac_cv_use_gif='wxUSE_GIF=no'
7443 fi
698dcdb6 7444
10f2d63a 7445else
698dcdb6 7446
10f2d63a
VZ
7447 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7448 if test "x$LINE" != x ; then
7449 eval "DEFAULT_$LINE"
7450 else
7451 no_cache=1
7452 fi
7453
7454 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
7455
7456fi
10f2d63a
VZ
7457
7458
7459 eval "$ac_cv_use_gif"
7460 if test "$no_cache" != 1; then
7461 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7462 fi
7463
7464 if test "$wxUSE_GIF" = yes; then
698dcdb6 7465 echo "$ac_t""yes" 1>&6
10f2d63a 7466 else
698dcdb6 7467 echo "$ac_t""no" 1>&6
10f2d63a 7468 fi
698dcdb6 7469
10f2d63a 7470
698dcdb6 7471 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
3e44f09d 7472echo "configure:7473: checking for --enable-pcx" >&5
10f2d63a
VZ
7473 no_cache=0
7474 # Check whether --enable-pcx or --disable-pcx was given.
7475if test "${enable_pcx+set}" = set; then
7476 enableval="$enable_pcx"
698dcdb6 7477
10f2d63a
VZ
7478 if test "$enableval" = yes; then
7479 ac_cv_use_pcx='wxUSE_PCX=yes'
7480 else
7481 ac_cv_use_pcx='wxUSE_PCX=no'
7482 fi
698dcdb6 7483
10f2d63a 7484else
698dcdb6 7485
10f2d63a
VZ
7486 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7487 if test "x$LINE" != x ; then
7488 eval "DEFAULT_$LINE"
7489 else
7490 no_cache=1
7491 fi
7492
7493 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
7494
7495fi
10f2d63a
VZ
7496
7497
7498 eval "$ac_cv_use_pcx"
7499 if test "$no_cache" != 1; then
7500 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7501 fi
7502
7503 if test "$wxUSE_PCX" = yes; then
698dcdb6 7504 echo "$ac_t""yes" 1>&6
10f2d63a 7505 else
698dcdb6 7506 echo "$ac_t""no" 1>&6
10f2d63a 7507 fi
698dcdb6 7508
10f2d63a 7509
698dcdb6 7510 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
3e44f09d 7511echo "configure:7512: checking for --enable-pnm" >&5
10f2d63a
VZ
7512 no_cache=0
7513 # Check whether --enable-pnm or --disable-pnm was given.
7514if test "${enable_pnm+set}" = set; then
7515 enableval="$enable_pnm"
698dcdb6 7516
10f2d63a
VZ
7517 if test "$enableval" = yes; then
7518 ac_cv_use_pnm='wxUSE_PNM=yes'
7519 else
7520 ac_cv_use_pnm='wxUSE_PNM=no'
7521 fi
698dcdb6 7522
10f2d63a 7523else
698dcdb6 7524
10f2d63a
VZ
7525 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7526 if test "x$LINE" != x ; then
7527 eval "DEFAULT_$LINE"
7528 else
7529 no_cache=1
7530 fi
7531
7532 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
7533
7534fi
10f2d63a
VZ
7535
7536
7537 eval "$ac_cv_use_pnm"
7538 if test "$no_cache" != 1; then
7539 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7540 fi
7541
7542 if test "$wxUSE_PNM" = yes; then
698dcdb6 7543 echo "$ac_t""yes" 1>&6
10f2d63a 7544 else
698dcdb6 7545 echo "$ac_t""no" 1>&6
10f2d63a 7546 fi
698dcdb6 7547
10f2d63a 7548
698dcdb6 7549 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
3e44f09d 7550echo "configure:7551: checking for --enable-pnm" >&5
0046ff7c
VS
7551 no_cache=0
7552 # Check whether --enable-pnm or --disable-pnm was given.
7553if test "${enable_pnm+set}" = set; then
7554 enableval="$enable_pnm"
698dcdb6 7555
0046ff7c
VS
7556 if test "$enableval" = yes; then
7557 ac_cv_use_pnm='wxUSE_XPM=yes'
7558 else
7559 ac_cv_use_pnm='wxUSE_XPM=no'
7560 fi
698dcdb6 7561
0046ff7c 7562else
698dcdb6 7563
0046ff7c
VS
7564 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7565 if test "x$LINE" != x ; then
7566 eval "DEFAULT_$LINE"
7567 else
7568 no_cache=1
7569 fi
7570
7571 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
7572
7573fi
0046ff7c
VS
7574
7575
7576 eval "$ac_cv_use_pnm"
7577 if test "$no_cache" != 1; then
7578 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7579 fi
7580
7581 if test "$wxUSE_XPM" = yes; then
698dcdb6 7582 echo "$ac_t""yes" 1>&6
0046ff7c 7583 else
698dcdb6 7584 echo "$ac_t""no" 1>&6
0046ff7c 7585 fi
698dcdb6 7586
0046ff7c 7587
b12915c1
VZ
7588fi
7589
698dcdb6 7590
10f2d63a
VZ
7591 echo "saving argument cache $wx_arg_cache_file"
7592 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 7593
10f2d63a 7594
698dcdb6
VZ
7595
7596echo $ac_n "checking for toolkit""... $ac_c" 1>&6
3e44f09d 7597echo "configure:7598: checking for toolkit" >&5
10f2d63a
VZ
7598
7599if test "$wxUSE_GUI" = "yes"; then
7600
b12915c1 7601if test "$USE_BEOS" = 1; then
698dcdb6 7602 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
b12915c1
VZ
7603fi
7604
10f2d63a
VZ
7605if test "$TOOLKIT_GIVEN" = 1; then
7606 for toolkit in `echo $ALL_TOOLKITS`; do
7607 var=wxUSE_$toolkit
7608 eval "value=\$${var}"
7609 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7610 done
7611else
7612 for toolkit in `echo $ALL_TOOLKITS`; do
7613 if test "$has_toolkit_in_cache" != 1; then
7614 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7615 else
7616 var=DEFAULT_wxUSE_$toolkit
7617 fi
7618 eval "wxUSE_$toolkit=\$${var}"
7619 done
7620fi
7621
1e6feb95 7622NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}`
cf27ef00 7623
ec14dd32
VZ
7624case "${host}" in
7625 *-pc-os2_emx )
7626 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7627 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7628 LEX_STEM="lexyy"
7629 ;;
7630 *)
7631 PATH_IFS=':'
7632 LEX_STEM="lex.yy"
7633 ;;
7634esac
10f2d63a
VZ
7635
7636case "$NUM_TOOLKITS" in
7637 1)
7638 ;;
7639 0)
698dcdb6 7640 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
10f2d63a
VZ
7641 ;;
7642 *)
698dcdb6 7643 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
10f2d63a
VZ
7644esac
7645
7646for toolkit in `echo $ALL_TOOLKITS`; do
7647 var=wxUSE_$toolkit
7648 eval "value=\$${var}"
7649 if test "x$value" != x; then
7650 cache_var=CACHE_$toolkit
7651 eval "cache=\$${cache_var}"
7652 if test "$cache" = 1; then
7653 echo "$var=$value" >> ${wx_arg_cache_file}
7654 fi
7655 if test "$value" = 1; then
8168de4c
VZ
7656 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7657 echo "$ac_t""$toolkit_echo" 1>&6
10f2d63a
VZ
7658 fi
7659 fi
7660done
7661
7662else
cf27ef00 7663 PATH_IFS=':'
698dcdb6 7664 echo "$ac_t""base only" 1>&6
10f2d63a
VZ
7665fi
7666
698dcdb6
VZ
7667
7668cat > confcache <<\EOF
10f2d63a
VZ
7669# This file is a shell script that caches the results of configure
7670# tests run on this system so they can be shared between configure
698dcdb6
VZ
7671# scripts and configure runs. It is not useful on other systems.
7672# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 7673#
698dcdb6
VZ
7674# By default, configure uses ./config.cache as the cache file,
7675# creating it if it does not exist already. You can give configure
7676# the --cache-file=FILE option to use a different cache file; that is
7677# what configure does when it calls configure scripts in
7678# subdirectories, so they share the cache.
7679# Giving --cache-file=/dev/null disables caching, for debugging configure.
7680# config.status only pays attention to the cache file if you give it the
7681# --recheck option to rerun configure.
10f2d63a 7682#
698dcdb6 7683EOF
10f2d63a
VZ
7684# The following way of writing the cache mishandles newlines in values,
7685# but we know of no workaround that is simple, portable, and efficient.
7686# So, don't put newlines in cache variables' values.
7687# Ultrix sh set writes to stderr and can't be redirected directly,
7688# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
7689(set) 2>&1 |
7690 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7691 *ac_space=\ *)
7692 # `set' does not quote correctly, so add quotes (double-quote substitution
7693 # turns \\\\ into \\, and sed turns \\ into \).
7694 sed -n \
7695 -e "s/'/'\\\\''/g" \
7696 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7697 ;;
7698 *)
7699 # `set' quotes correctly as required by POSIX, so do not add quotes.
7700 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7701 ;;
7702 esac >> confcache
7703if cmp -s $cache_file confcache; then
7704 :
7705else
10f2d63a 7706 if test -w $cache_file; then
698dcdb6
VZ
7707 echo "updating cache $cache_file"
7708 cat confcache > $cache_file
10f2d63a
VZ
7709 else
7710 echo "not updating unwritable cache $cache_file"
7711 fi
7712fi
7713rm -f confcache
7714
698dcdb6 7715
e59890c3 7716if test "$build" != "$host" ; then
10f2d63a
VZ
7717 CC=$host_alias-gcc
7718 CXX=$host_alias-c++
7719 AR=$host_alias-ar
7720 RANLIB=$host_alias-ranlib
7721 DLLTOOL=$host_alias-dlltool
32832908 7722 RESCOMP=$host_alias-windres
10f2d63a
VZ
7723 LD=$host_alias-ld
7724 NM=$host_alias-nm
7725 STRIP=$host_alias-strip
10f2d63a
VZ
7726fi
7727
698dcdb6 7728# Extract the first word of "gcc", so it can be a program name with args.
1e487827 7729set dummy gcc; ac_word=$2
698dcdb6 7730echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3e44f09d 7731echo "configure:7732: checking for $ac_word" >&5
698dcdb6
VZ
7732if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7733 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
7734else
7735 if test -n "$CC"; then
7736 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 7737else
698dcdb6
VZ
7738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7739 ac_dummy="$PATH"
7740 for ac_dir in $ac_dummy; do
7741 test -z "$ac_dir" && ac_dir=.
7742 if test -f $ac_dir/$ac_word; then
7743 ac_cv_prog_CC="gcc"
7744 break
7745 fi
7746 done
7747 IFS="$ac_save_ifs"
10f2d63a 7748fi
6232543b 7749fi
698dcdb6 7750CC="$ac_cv_prog_CC"
6232543b 7751if test -n "$CC"; then
698dcdb6 7752 echo "$ac_t""$CC" 1>&6
1e487827 7753else
698dcdb6 7754 echo "$ac_t""no" 1>&6
1e487827 7755fi
6232543b 7756
1e487827
VS
7757if test -z "$CC"; then
7758 # Extract the first word of "cc", so it can be a program name with args.
7759set dummy cc; ac_word=$2
698dcdb6 7760echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3e44f09d 7761echo "configure:7762: checking for $ac_word" >&5
698dcdb6
VZ
7762if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7763 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7764else
7765 if test -n "$CC"; then
7766 ac_cv_prog_CC="$CC" # Let the user override the test.
7767else
698dcdb6 7768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 7769 ac_prog_rejected=no
698dcdb6
VZ
7770 ac_dummy="$PATH"
7771 for ac_dir in $ac_dummy; do
7772 test -z "$ac_dir" && ac_dir=.
7773 if test -f $ac_dir/$ac_word; then
7774 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7775 ac_prog_rejected=yes
7776 continue
7777 fi
7778 ac_cv_prog_CC="cc"
7779 break
7780 fi
7781 done
7782 IFS="$ac_save_ifs"
1e487827
VS
7783if test $ac_prog_rejected = yes; then
7784 # We found a bogon in the path, so make sure we never use it.
7785 set dummy $ac_cv_prog_CC
7786 shift
698dcdb6 7787 if test $# -gt 0; then
1e487827
VS
7788 # We chose a different compiler from the bogus one.
7789 # However, it has the same basename, so the bogon will be chosen
7790 # first if we set CC to just the basename; use the full file name.
7791 shift
698dcdb6 7792 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
7793 shift
7794 ac_cv_prog_CC="$@"
703e0a69 7795 fi
1e487827
VS
7796fi
7797fi
7798fi
698dcdb6 7799CC="$ac_cv_prog_CC"
1e487827 7800if test -n "$CC"; then
698dcdb6 7801 echo "$ac_t""$CC" 1>&6
703e0a69 7802else
698dcdb6 7803 echo "$ac_t""no" 1>&6
703e0a69 7804fi
1e487827 7805
698dcdb6
VZ
7806 if test -z "$CC"; then
7807 case "`uname -s`" in
7808 *win32* | *WIN32*)
7809 # Extract the first word of "cl", so it can be a program name with args.
7810set dummy cl; ac_word=$2
7811echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3e44f09d 7812echo "configure:7813: checking for $ac_word" >&5
698dcdb6
VZ
7813if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7814 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7815else
7816 if test -n "$CC"; then
7817 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 7818else
698dcdb6
VZ
7819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7820 ac_dummy="$PATH"
7821 for ac_dir in $ac_dummy; do
7822 test -z "$ac_dir" && ac_dir=.
7823 if test -f $ac_dir/$ac_word; then
7824 ac_cv_prog_CC="cl"
7825 break
7826 fi
7827 done
7828 IFS="$ac_save_ifs"
703e0a69 7829fi
1e487827 7830fi
698dcdb6 7831CC="$ac_cv_prog_CC"
1e487827 7832if test -n "$CC"; then
698dcdb6 7833 echo "$ac_t""$CC" 1>&6
1e487827 7834else
698dcdb6 7835 echo "$ac_t""no" 1>&6
1e487827 7836fi
698dcdb6
VZ
7837 ;;
7838 esac
7839 fi
7840 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
7841fi
7842
698dcdb6 7843echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3e44f09d 7844echo "configure:7845: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 7845
698dcdb6
VZ
7846ac_ext=c
7847# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7848ac_cpp='$CPP $CPPFLAGS'
7849ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7850ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7851cross_compiling=$ac_cv_prog_cc_cross
6232543b 7852
698dcdb6 7853cat > conftest.$ac_ext << EOF
1e487827 7854
3e44f09d 7855#line 7856 "configure"
1e487827
VS
7856#include "confdefs.h"
7857
698dcdb6
VZ
7858main(){return(0);}
7859EOF
3e44f09d 7860if { (eval echo configure:7861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
7861 ac_cv_prog_cc_works=yes
7862 # If we can't run a trivial program, we are probably using a cross compiler.
7863 if (./conftest; exit) 2>/dev/null; then
7864 ac_cv_prog_cc_cross=no
7865 else
7866 ac_cv_prog_cc_cross=yes
7867 fi
7868else
7869 echo "configure: failed program was:" >&5
7870 cat conftest.$ac_ext >&5
7871 ac_cv_prog_cc_works=no
7872fi
7873rm -fr conftest*
7874ac_ext=c
7875# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7876ac_cpp='$CPP $CPPFLAGS'
7877ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7878ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7879cross_compiling=$ac_cv_prog_cc_cross
7880
7881echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
7882if test $ac_cv_prog_cc_works = no; then
7883 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
7884fi
7885echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3e44f09d 7886echo "configure:7887: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
7887echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
7888cross_compiling=$ac_cv_prog_cc_cross
7889
7890echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3e44f09d 7891echo "configure:7892: checking whether we are using GNU C" >&5
698dcdb6
VZ
7892if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
7893 echo $ac_n "(cached) $ac_c" 1>&6
7894else
7895 cat > conftest.c <<EOF
7896#ifdef __GNUC__
7897 yes;
1e487827 7898#endif
698dcdb6 7899EOF
3e44f09d 7900if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
7901 ac_cv_prog_gcc=yes
7902else
7903 ac_cv_prog_gcc=no
7904fi
7905fi
1e487827 7906
698dcdb6 7907echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 7908
698dcdb6
VZ
7909if test $ac_cv_prog_gcc = yes; then
7910 GCC=yes
7911else
7912 GCC=
7913fi
1e487827 7914
698dcdb6
VZ
7915ac_test_CFLAGS="${CFLAGS+set}"
7916ac_save_CFLAGS="$CFLAGS"
7917CFLAGS=
7918echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3e44f09d 7919echo "configure:7920: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
7920if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
7921 echo $ac_n "(cached) $ac_c" 1>&6
7922else
7923 echo 'void f(){}' > conftest.c
7924if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
7925 ac_cv_prog_cc_g=yes
7926else
698dcdb6 7927 ac_cv_prog_cc_g=no
10f2d63a 7928fi
698dcdb6
VZ
7929rm -f conftest*
7930
10f2d63a 7931fi
698dcdb6
VZ
7932
7933echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 7934if test "$ac_test_CFLAGS" = set; then
698dcdb6 7935 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
7936elif test $ac_cv_prog_cc_g = yes; then
7937 if test "$GCC" = yes; then
7938 CFLAGS="-g -O2"
7939 else
7940 CFLAGS="-g"
7941 fi
7942else
7943 if test "$GCC" = yes; then
7944 CFLAGS="-O2"
7945 else
7946 CFLAGS=
7947 fi
7948fi
7949
7950
7951CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
7952
698dcdb6 7953echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3e44f09d 7954echo "configure:7955: checking how to run the C preprocessor" >&5
10f2d63a
VZ
7955# On Suns, sometimes $CPP names a directory.
7956if test -n "$CPP" && test -d "$CPP"; then
7957 CPP=
7958fi
7959if test -z "$CPP"; then
698dcdb6
VZ
7960if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
7961 echo $ac_n "(cached) $ac_c" 1>&6
7962else
7963 # This must be in double quotes, not single quotes, because CPP may get
7964 # substituted into the Makefile and "${CC-cc}" will confuse make.
7965 CPP="${CC-cc} -E"
10f2d63a 7966 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
7967 # not just through cpp.
7968 cat > conftest.$ac_ext <<EOF
3e44f09d 7969#line 7970 "configure"
10f2d63a
VZ
7970#include "confdefs.h"
7971#include <assert.h>
698dcdb6
VZ
7972Syntax Error
7973EOF
7974ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3e44f09d 7975{ (eval echo configure:7976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
7976ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7977if test -z "$ac_err"; then
10f2d63a
VZ
7978 :
7979else
698dcdb6
VZ
7980 echo "$ac_err" >&5
7981 echo "configure: failed program was:" >&5
10f2d63a 7982 cat conftest.$ac_ext >&5
698dcdb6
VZ
7983 rm -rf conftest*
7984 CPP="${CC-cc} -E -traditional-cpp"
7985 cat > conftest.$ac_ext <<EOF
3e44f09d 7986#line 7987 "configure"
10f2d63a 7987#include "confdefs.h"
698dcdb6
VZ
7988#include <assert.h>
7989Syntax Error
7990EOF
7991ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3e44f09d 7992{ (eval echo configure:7993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
7993ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7994if test -z "$ac_err"; then
7995 :
10f2d63a 7996else
698dcdb6
VZ
7997 echo "$ac_err" >&5
7998 echo "configure: failed program was:" >&5
10f2d63a 7999 cat conftest.$ac_ext >&5
698dcdb6
VZ
8000 rm -rf conftest*
8001 CPP="${CC-cc} -nologo -E"
8002 cat > conftest.$ac_ext <<EOF
3e44f09d 8003#line 8004 "configure"
10f2d63a
VZ
8004#include "confdefs.h"
8005#include <assert.h>
698dcdb6
VZ
8006Syntax Error
8007EOF
8008ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3e44f09d 8009{ (eval echo configure:8010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8010ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8011if test -z "$ac_err"; then
10f2d63a
VZ
8012 :
8013else
698dcdb6
VZ
8014 echo "$ac_err" >&5
8015 echo "configure: failed program was:" >&5
10f2d63a 8016 cat conftest.$ac_ext >&5
698dcdb6
VZ
8017 rm -rf conftest*
8018 CPP=/lib/cpp
10f2d63a 8019fi
698dcdb6 8020rm -f conftest*
10f2d63a 8021fi
698dcdb6 8022rm -f conftest*
703e0a69 8023fi
698dcdb6
VZ
8024rm -f conftest*
8025 ac_cv_prog_CPP="$CPP"
8026fi
8027 CPP="$ac_cv_prog_CPP"
10f2d63a 8028else
698dcdb6 8029 ac_cv_prog_CPP="$CPP"
10f2d63a 8030fi
698dcdb6 8031echo "$ac_t""$CPP" 1>&6
10f2d63a
VZ
8032
8033
698dcdb6
VZ
8034if test $ac_cv_prog_gcc = yes; then
8035 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
3e44f09d 8036echo "configure:8037: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8037if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8038 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8039else
8040 ac_pattern="Autoconf.*'x'"
698dcdb6 8041 cat > conftest.$ac_ext <<EOF
3e44f09d 8042#line 8043 "configure"
10f2d63a
VZ
8043#include "confdefs.h"
8044#include <sgtty.h>
8045Autoconf TIOCGETP
698dcdb6 8046EOF
10f2d63a
VZ
8047if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8048 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8049 rm -rf conftest*
10f2d63a
VZ
8050 ac_cv_prog_gcc_traditional=yes
8051else
698dcdb6 8052 rm -rf conftest*
10f2d63a
VZ
8053 ac_cv_prog_gcc_traditional=no
8054fi
8055rm -f conftest*
8056
698dcdb6 8057
10f2d63a 8058 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8059 cat > conftest.$ac_ext <<EOF
3e44f09d 8060#line 8061 "configure"
10f2d63a
VZ
8061#include "confdefs.h"
8062#include <termio.h>
8063Autoconf TCGETA
698dcdb6 8064EOF
10f2d63a
VZ
8065if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8066 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8067 rm -rf conftest*
10f2d63a
VZ
8068 ac_cv_prog_gcc_traditional=yes
8069fi
8070rm -f conftest*
8071
8072 fi
8073fi
698dcdb6
VZ
8074
8075echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8076 if test $ac_cv_prog_gcc_traditional = yes; then
8077 CC="$CC -traditional"
8078 fi
8079fi
8080
703e0a69 8081
698dcdb6
VZ
8082
8083ac_ext=C
8084# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8085ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8086ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8087ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8088cross_compiling=$ac_cv_prog_cxx_cross
8089
8090
8091for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8092do
8093# Extract the first word of "$ac_prog", so it can be a program name with args.
8094set dummy $ac_prog; ac_word=$2
8095echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3e44f09d 8096echo "configure:8097: checking for $ac_word" >&5
698dcdb6
VZ
8097if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8098 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8099else
8100 if test -n "$CXX"; then
8101 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8102else
698dcdb6
VZ
8103 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8104 ac_dummy="$PATH"
8105 for ac_dir in $ac_dummy; do
8106 test -z "$ac_dir" && ac_dir=.
8107 if test -f $ac_dir/$ac_word; then
8108 ac_cv_prog_CXX="$ac_prog"
8109 break
8110 fi
8111 done
8112 IFS="$ac_save_ifs"
10f2d63a
VZ
8113fi
8114fi
698dcdb6 8115CXX="$ac_cv_prog_CXX"
10f2d63a 8116if test -n "$CXX"; then
698dcdb6 8117 echo "$ac_t""$CXX" 1>&6
10f2d63a 8118else
698dcdb6 8119 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8120fi
8121
698dcdb6 8122test -n "$CXX" && break
10f2d63a 8123done
698dcdb6 8124test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
8125
8126
698dcdb6 8127echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3e44f09d 8128echo "configure:8129: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 8129
698dcdb6
VZ
8130ac_ext=C
8131# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8132ac_cpp='$CXXCPP $CPPFLAGS'
8133ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8134ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8135cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 8136
698dcdb6
VZ
8137cat > conftest.$ac_ext << EOF
8138
3e44f09d 8139#line 8140 "configure"
10f2d63a
VZ
8140#include "confdefs.h"
8141
698dcdb6
VZ
8142int main(){return(0);}
8143EOF
3e44f09d 8144if { (eval echo configure:8145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8145 ac_cv_prog_cxx_works=yes
8146 # If we can't run a trivial program, we are probably using a cross compiler.
8147 if (./conftest; exit) 2>/dev/null; then
8148 ac_cv_prog_cxx_cross=no
8149 else
8150 ac_cv_prog_cxx_cross=yes
8151 fi
8152else
8153 echo "configure: failed program was:" >&5
8154 cat conftest.$ac_ext >&5
8155 ac_cv_prog_cxx_works=no
8156fi
8157rm -fr conftest*
8158ac_ext=C
8159# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8160ac_cpp='$CXXCPP $CPPFLAGS'
8161ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8162ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8163cross_compiling=$ac_cv_prog_cxx_cross
8164
8165echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8166if test $ac_cv_prog_cxx_works = no; then
8167 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8168fi
8169echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3e44f09d 8170echo "configure:8171: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8171echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8172cross_compiling=$ac_cv_prog_cxx_cross
8173
8174echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
3e44f09d 8175echo "configure:8176: checking whether we are using GNU C++" >&5
698dcdb6
VZ
8176if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8177 echo $ac_n "(cached) $ac_c" 1>&6
8178else
8179 cat > conftest.C <<EOF
8180#ifdef __GNUC__
8181 yes;
10f2d63a 8182#endif
698dcdb6 8183EOF
3e44f09d 8184if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8185 ac_cv_prog_gxx=yes
8186else
8187 ac_cv_prog_gxx=no
8188fi
8189fi
10f2d63a 8190
698dcdb6 8191echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 8192
698dcdb6
VZ
8193if test $ac_cv_prog_gxx = yes; then
8194 GXX=yes
8195else
8196 GXX=
8197fi
10f2d63a 8198
698dcdb6
VZ
8199ac_test_CXXFLAGS="${CXXFLAGS+set}"
8200ac_save_CXXFLAGS="$CXXFLAGS"
8201CXXFLAGS=
8202echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
3e44f09d 8203echo "configure:8204: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
8204if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8205 echo $ac_n "(cached) $ac_c" 1>&6
8206else
8207 echo 'void f(){}' > conftest.cc
8208if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
8209 ac_cv_prog_cxx_g=yes
8210else
698dcdb6 8211 ac_cv_prog_cxx_g=no
10f2d63a 8212fi
698dcdb6
VZ
8213rm -f conftest*
8214
10f2d63a 8215fi
698dcdb6
VZ
8216
8217echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 8218if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 8219 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
8220elif test $ac_cv_prog_cxx_g = yes; then
8221 if test "$GXX" = yes; then
8222 CXXFLAGS="-g -O2"
8223 else
8224 CXXFLAGS="-g"
8225 fi
8226else
8227 if test "$GXX" = yes; then
8228 CXXFLAGS="-O2"
8229 else
8230 CXXFLAGS=
8231 fi
8232fi
8233
8234
698dcdb6 8235echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
3e44f09d 8236echo "configure:8237: checking how to run the C++ preprocessor" >&5
1e487827 8237if test -z "$CXXCPP"; then
698dcdb6
VZ
8238if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
8239 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 8240else
698dcdb6
VZ
8241 ac_ext=C
8242# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8243ac_cpp='$CXXCPP $CPPFLAGS'
8244ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8245ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8246cross_compiling=$ac_cv_prog_cxx_cross
8247 CXXCPP="${CXX-g++} -E"
8248 cat > conftest.$ac_ext <<EOF
3e44f09d 8249#line 8250 "configure"
1e487827 8250#include "confdefs.h"
698dcdb6
VZ
8251#include <stdlib.h>
8252EOF
8253ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3e44f09d 8254{ (eval echo configure:8255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8255ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8256if test -z "$ac_err"; then
1e487827
VS
8257 :
8258else
698dcdb6
VZ
8259 echo "$ac_err" >&5
8260 echo "configure: failed program was:" >&5
1e487827 8261 cat conftest.$ac_ext >&5
698dcdb6
VZ
8262 rm -rf conftest*
8263 CXXCPP=/lib/cpp
1e487827 8264fi
698dcdb6
VZ
8265rm -f conftest*
8266 ac_cv_prog_CXXCPP="$CXXCPP"
8267ac_ext=C
8268# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8269ac_cpp='$CXXCPP $CPPFLAGS'
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
1e487827 8273fi
1e487827 8274fi
698dcdb6
VZ
8275CXXCPP="$ac_cv_prog_CXXCPP"
8276echo "$ac_t""$CXXCPP" 1>&6
1e487827 8277
10f2d63a
VZ
8278
8279CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8280
8281ac_ext=c
698dcdb6 8282# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 8283ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
8284ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8285ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8286cross_compiling=$ac_cv_prog_cc_cross
8287
8288
8289# Extract the first word of "ranlib", so it can be a program name with args.
8290set dummy ranlib; ac_word=$2
8291echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3e44f09d 8292echo "configure:8293: checking for $ac_word" >&5
698dcdb6
VZ
8293if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8294 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8295else
8296 if test -n "$RANLIB"; then
8297 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8298else
698dcdb6
VZ
8299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8300 ac_dummy="$PATH"
8301 for ac_dir in $ac_dummy; do
8302 test -z "$ac_dir" && ac_dir=.
8303 if test -f $ac_dir/$ac_word; then
8304 ac_cv_prog_RANLIB="ranlib"
8305 break
8306 fi
8307 done
8308 IFS="$ac_save_ifs"
8309 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
8310fi
8311fi
698dcdb6 8312RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 8313if test -n "$RANLIB"; then
698dcdb6 8314 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 8315else
698dcdb6 8316 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8317fi
8318
8319
8320# Extract the first word of "ar", so it can be a program name with args.
8321set dummy ar; ac_word=$2
698dcdb6 8322echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3e44f09d 8323echo "configure:8324: checking for $ac_word" >&5
698dcdb6
VZ
8324if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8325 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8326else
8327 if test -n "$AR"; then
8328 ac_cv_prog_AR="$AR" # Let the user override the test.
8329else
698dcdb6
VZ
8330 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8331 ac_dummy="$PATH"
8332 for ac_dir in $ac_dummy; do
8333 test -z "$ac_dir" && ac_dir=.
8334 if test -f $ac_dir/$ac_word; then
8335 ac_cv_prog_AR="ar"
8336 break
8337 fi
8338 done
8339 IFS="$ac_save_ifs"
10f2d63a
VZ
8340 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8341fi
8342fi
698dcdb6 8343AR="$ac_cv_prog_AR"
10f2d63a 8344if test -n "$AR"; then
698dcdb6 8345 echo "$ac_t""$AR" 1>&6
10f2d63a 8346else
698dcdb6 8347 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8348fi
8349
698dcdb6 8350
10f2d63a
VZ
8351# Find a good install program. We prefer a C program (faster),
8352# so one script is as good as another. But avoid the broken or
8353# incompatible versions:
8354# SysV /etc/install, /usr/sbin/install
8355# SunOS /usr/etc/install
8356# IRIX /sbin/install
8357# AIX /bin/install
8358# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8359# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8360# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8361# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 8362echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3e44f09d 8363echo "configure:8364: checking for a BSD compatible install" >&5
10f2d63a 8364if test -z "$INSTALL"; then
698dcdb6
VZ
8365if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8366 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8367else
698dcdb6 8368 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
8369 for ac_dir in $PATH; do
8370 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
8371 case "$ac_dir/" in
8372 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
8373 *)
8374 # OSF1 and SCO ODT 3.0 have their own names for install.
8375 # Don't use installbsd from OSF since it installs stuff as root
8376 # by default.
8377 for ac_prog in ginstall scoinst install; do
698dcdb6 8378 if test -f $ac_dir/$ac_prog; then
10f2d63a 8379 if test $ac_prog = install &&
698dcdb6 8380 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
8381 # AIX install. It has an incompatible calling convention.
8382 :
8383 else
8384 ac_cv_path_install="$ac_dir/$ac_prog -c"
8385 break 2
8386 fi
8387 fi
8388 done
8389 ;;
8390 esac
8391 done
698dcdb6 8392 IFS="$ac_save_IFS"
10f2d63a
VZ
8393
8394fi
8395 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 8396 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
8397 else
8398 # As a last resort, use the slow shell script. We don't cache a
8399 # path for INSTALL within a source directory, because that will
8400 # break other packages using the cache if that directory is
8401 # removed, or if the path is relative.
698dcdb6 8402 INSTALL="$ac_install_sh"
10f2d63a
VZ
8403 fi
8404fi
698dcdb6 8405echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
8406
8407# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8408# It thinks the first close brace ends the variable substitution.
8409test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8410
698dcdb6 8411test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
8412
8413test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8414
698dcdb6 8415
10f2d63a
VZ
8416# Extract the first word of "strip", so it can be a program name with args.
8417set dummy strip; ac_word=$2
698dcdb6 8418echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3e44f09d 8419echo "configure:8420: checking for $ac_word" >&5
698dcdb6
VZ
8420if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8421 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8422else
8423 if test -n "$STRIP"; then
8424 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8425else
698dcdb6
VZ
8426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8427 ac_dummy="$PATH"
8428 for ac_dir in $ac_dummy; do
8429 test -z "$ac_dir" && ac_dir=.
8430 if test -f $ac_dir/$ac_word; then
8431 ac_cv_prog_STRIP="strip"
8432 break
8433 fi
8434 done
8435 IFS="$ac_save_ifs"
10f2d63a
VZ
8436 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8437fi
8438fi
698dcdb6 8439STRIP="$ac_cv_prog_STRIP"
10f2d63a 8440if test -n "$STRIP"; then
698dcdb6 8441 echo "$ac_t""$STRIP" 1>&6
10f2d63a 8442else
698dcdb6 8443 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8444fi
8445
698dcdb6
VZ
8446
8447echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
3e44f09d 8448echo "configure:8449: checking make for VPATH support" >&5
10f2d63a
VZ
8449cat - << EOF > confMake
8450check : file
8451 cp \$? \$@
8452 cp \$? final_file
8453EOF
8454
8455if test ! -d sub ; then
8456 mkdir sub
8457fi
8458echo dummy > sub/file
f6bcfd97 8459${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
8460RESULT=$?
8461rm -f sub/file check final_file confMake
8462rmdir sub
8463if test "$RESULT" = 0; then
698dcdb6 8464 echo "$ac_t""yes" 1>&6
10f2d63a 8465else
698dcdb6
VZ
8466 echo "$ac_t""no" 1>&6
8467 { echo "configure: error:
1e487827
VS
8468You need a make-utility that is able to use the variable
8469VPATH correctly.
8470If your version of make does not support VPATH correctly,
8471please install GNU-make (possibly as gmake), and start
8472configure with the following command:
8473export MAKE=gmake; ./configure for sh-type shells
8474setenv MAKE gmake; ./configure for csh-type shells
8475Also please do remember to use gmake in this case every time
8476you are trying to compile.
698dcdb6 8477" 1>&2; exit 1; }
10f2d63a
VZ
8478fi
8479
8480for ac_prog in 'bison -y' byacc
8481do
698dcdb6 8482# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 8483set dummy $ac_prog; ac_word=$2
698dcdb6 8484echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3e44f09d 8485echo "configure:8486: checking for $ac_word" >&5
698dcdb6
VZ
8486if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8487 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8488else
8489 if test -n "$YACC"; then
8490 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8491else
698dcdb6
VZ
8492 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8493 ac_dummy="$PATH"
8494 for ac_dir in $ac_dummy; do
8495 test -z "$ac_dir" && ac_dir=.
8496 if test -f $ac_dir/$ac_word; then
8497 ac_cv_prog_YACC="$ac_prog"
8498 break
8499 fi
8500 done
8501 IFS="$ac_save_ifs"
10f2d63a
VZ
8502fi
8503fi
698dcdb6 8504YACC="$ac_cv_prog_YACC"
10f2d63a 8505if test -n "$YACC"; then
698dcdb6 8506 echo "$ac_t""$YACC" 1>&6
10f2d63a 8507else
698dcdb6 8508 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8509fi
8510
698dcdb6 8511test -n "$YACC" && break
10f2d63a
VZ
8512done
8513test -n "$YACC" || YACC="yacc"
8514
698dcdb6
VZ
8515
8516# Extract the first word of "flex", so it can be a program name with args.
8517set dummy flex; ac_word=$2
8518echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3e44f09d 8519echo "configure:8520: checking for $ac_word" >&5
698dcdb6
VZ
8520if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8521 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8522else
8523 if test -n "$LEX"; then
8524 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8525else
698dcdb6
VZ
8526 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8527 ac_dummy="$PATH"
8528 for ac_dir in $ac_dummy; do
8529 test -z "$ac_dir" && ac_dir=.
8530 if test -f $ac_dir/$ac_word; then
8531 ac_cv_prog_LEX="flex"
8532 break
8533 fi
8534 done
8535 IFS="$ac_save_ifs"
8536 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
8537fi
8538fi
698dcdb6 8539LEX="$ac_cv_prog_LEX"
10f2d63a 8540if test -n "$LEX"; then
698dcdb6 8541 echo "$ac_t""$LEX" 1>&6
10f2d63a 8542else
698dcdb6 8543 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8544fi
8545
8546if test -z "$LEXLIB"
8547then
698dcdb6
VZ
8548 case "$LEX" in
8549 flex*) ac_lib=fl ;;
8550 *) ac_lib=l ;;
8551 esac
8552 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
3e44f09d 8553echo "configure:8554: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
8554ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8555if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8556 echo $ac_n "(cached) $ac_c" 1>&6
8557else
8558 ac_save_LIBS="$LIBS"
8559LIBS="-l$ac_lib $LIBS"
8560cat > conftest.$ac_ext <<EOF
3e44f09d 8561#line 8562 "configure"
10f2d63a
VZ
8562#include "confdefs.h"
8563/* Override any gcc2 internal prototype to avoid an error. */
8564/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
8565 builtin and then its argument prototype would still apply. */
8566char yywrap();
10f2d63a 8567
698dcdb6
VZ
8568int main() {
8569yywrap()
8570; return 0; }
8571EOF
3e44f09d 8572if { (eval echo configure:8573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8573 rm -rf conftest*
8574 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 8575else
698dcdb6
VZ
8576 echo "configure: failed program was:" >&5
8577 cat conftest.$ac_ext >&5
8578 rm -rf conftest*
8579 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 8580fi
698dcdb6
VZ
8581rm -f conftest*
8582LIBS="$ac_save_LIBS"
8583
10f2d63a 8584fi
698dcdb6
VZ
8585if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8586 echo "$ac_t""yes" 1>&6
8587 LEXLIB="-l$ac_lib"
8588else
8589 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8590fi
8591
8592fi
8593
8594
698dcdb6 8595echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3e44f09d 8596echo "configure:8597: checking whether ln -s works" >&5
698dcdb6
VZ
8597if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8598 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8599else
698dcdb6
VZ
8600 rm -f conftestdata
8601if ln -s X conftestdata 2>/dev/null
8602then
8603 rm -f conftestdata
8604 ac_cv_prog_LN_S="ln -s"
10f2d63a 8605else
698dcdb6 8606 ac_cv_prog_LN_S=ln
10f2d63a
VZ
8607fi
8608fi
698dcdb6
VZ
8609LN_S="$ac_cv_prog_LN_S"
8610if test "$ac_cv_prog_LN_S" = "ln -s"; then
8611 echo "$ac_t""yes" 1>&6
10f2d63a 8612else
698dcdb6 8613 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8614fi
8615
8616
8617
8618SEARCH_INCLUDE="\
8619 /usr/local/include \
8620 \
8621 /usr/Motif-1.2/include \
8622 /usr/Motif-2.1/include \
8623 \
8624 /usr/include/Motif1.2 \
8625 /opt/xpm/include/X11 \
8626 /opt/GBxpm/include/ \
8627 /opt/GBxpm/X11/include/ \
8628 \
8629 /usr/Motif1.2/include \
8630 /usr/dt/include \
afc31813
VZ
8631 /usr/openwin/include \
8632 \
10f2d63a
VZ
8633 /usr/include/Xm \
8634 \
8635 /usr/X11R6/include \
afc31813 8636 /usr/X11R6.4/include \
10f2d63a
VZ
8637 /usr/X11R5/include \
8638 /usr/X11R4/include \
8639 \
10f2d63a
VZ
8640 /usr/include/X11R6 \
8641 /usr/include/X11R5 \
8642 /usr/include/X11R4 \
8643 \
8644 /usr/local/X11R6/include \
8645 /usr/local/X11R5/include \
8646 /usr/local/X11R4/include \
8647 \
8648 /usr/local/include/X11R6 \
8649 /usr/local/include/X11R5 \
8650 /usr/local/include/X11R4 \
8651 \
8652 /usr/X11/include \
8653 /usr/include/X11 \
8654 /usr/local/X11/include \
8655 /usr/local/include/X11 \
8656 \
8657 /usr/X386/include \
8658 /usr/x386/include \
8659 /usr/XFree86/include/X11 \
8660 \
cf27ef00 8661 X:/XFree86/include \
ec14dd32
VZ
8662 X:/XFree86/include/X11 \
8663 \
10f2d63a
VZ
8664 /usr/include/gtk \
8665 /usr/local/include/gtk \
8666 /usr/include/glib \
8667 /usr/local/include/glib \
8668 \
8669 /usr/include/qt \
8670 /usr/local/include/qt \
8671 \
8672 /usr/include/windows \
8673 /usr/include/wine \
8674 /usr/local/include/wine \
8675 \
8676 /usr/unsupported/include \
8677 /usr/athena/include \
8678 /usr/local/x11r5/include \
8679 /usr/lpp/Xamples/include \
8680 \
10f2d63a 8681 /usr/openwin/share/include \
928b5c08
VZ
8682 \
8683 /usr/include"
10f2d63a
VZ
8684
8685SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8686
698dcdb6
VZ
8687
8688cat > confcache <<\EOF
10f2d63a
VZ
8689# This file is a shell script that caches the results of configure
8690# tests run on this system so they can be shared between configure
698dcdb6
VZ
8691# scripts and configure runs. It is not useful on other systems.
8692# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8693#
698dcdb6
VZ
8694# By default, configure uses ./config.cache as the cache file,
8695# creating it if it does not exist already. You can give configure
8696# the --cache-file=FILE option to use a different cache file; that is
8697# what configure does when it calls configure scripts in
8698# subdirectories, so they share the cache.
8699# Giving --cache-file=/dev/null disables caching, for debugging configure.
8700# config.status only pays attention to the cache file if you give it the
8701# --recheck option to rerun configure.
10f2d63a 8702#
698dcdb6 8703EOF
10f2d63a
VZ
8704# The following way of writing the cache mishandles newlines in values,
8705# but we know of no workaround that is simple, portable, and efficient.
8706# So, don't put newlines in cache variables' values.
8707# Ultrix sh set writes to stderr and can't be redirected directly,
8708# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8709(set) 2>&1 |
8710 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8711 *ac_space=\ *)
8712 # `set' does not quote correctly, so add quotes (double-quote substitution
8713 # turns \\\\ into \\, and sed turns \\ into \).
8714 sed -n \
8715 -e "s/'/'\\\\''/g" \
8716 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8717 ;;
8718 *)
8719 # `set' quotes correctly as required by POSIX, so do not add quotes.
8720 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8721 ;;
8722 esac >> confcache
8723if cmp -s $cache_file confcache; then
8724 :
8725else
10f2d63a 8726 if test -w $cache_file; then
698dcdb6
VZ
8727 echo "updating cache $cache_file"
8728 cat confcache > $cache_file
10f2d63a
VZ
8729 else
8730 echo "not updating unwritable cache $cache_file"
8731 fi
8732fi
8733rm -f confcache
8734
698dcdb6
VZ
8735
8736
dad6c0ea
VZ
8737AFMINSTALL=
8738
10f2d63a 8739if test "$wxUSE_GUI" = "yes"; then
1e6feb95 8740 USE_GUI=1
10f2d63a 8741
1e6feb95
VZ
8742 TOOLKIT=
8743 TOOLKIT_INCLUDE=
10f2d63a 8744
1e6feb95
VZ
8745 GUI_TK_LIBRARY=
8746 GUI_TK_LINK=
10f2d63a 8747
1e6feb95
VZ
8748 WXGTK12=
8749 WXGTK127=
8750 WXGTK20=
10f2d63a 8751
1e6feb95 8752 WXWINE=
10f2d63a 8753
1e6feb95 8754 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
29fd3c0c
VS
8755 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
8756echo $ac_n "checking for windows.h""... $ac_c" 1>&6
3e44f09d 8757echo "configure:8758: checking for windows.h" >&5
d4158b5d
VS
8758if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8759 echo $ac_n "(cached) $ac_c" 1>&6
8760else
8761 cat > conftest.$ac_ext <<EOF
3e44f09d 8762#line 8763 "configure"
d4158b5d 8763#include "confdefs.h"
29fd3c0c 8764#include <windows.h>
d4158b5d
VS
8765EOF
8766ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3e44f09d 8767{ (eval echo configure:8768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4158b5d
VS
8768ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8769if test -z "$ac_err"; then
8770 rm -rf conftest*
8771 eval "ac_cv_header_$ac_safe=yes"
8772else
8773 echo "$ac_err" >&5
8774 echo "configure: failed program was:" >&5
8775 cat conftest.$ac_ext >&5
8776 rm -rf conftest*
8777 eval "ac_cv_header_$ac_safe=no"
8778fi
8779rm -f conftest*
8780fi
8781if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8782 echo "$ac_t""yes" 1>&6
29fd3c0c 8783 :
d4158b5d
VS
8784else
8785 echo "$ac_t""no" 1>&6
d4158b5d 8786
29fd3c0c
VS
8787 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
8788
8789fi
10f2d63a 8790
29fd3c0c 8791
1e6feb95
VZ
8792 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
8793 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
f6bcfd97 8794
1e6feb95
VZ
8795 if test "$wxUSE_ODBC" = "yes" ; then
8796 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
8797 fi
10f2d63a 8798
1e6feb95
VZ
8799 if test "$wxUSE_MINGW" = 1; then
8800 LDFLAGS="$LDFLAGS -mwindows"
8801 fi
32832908 8802
1e6feb95
VZ
8803 TOOLKIT=MSW
8804 GUIDIST=MSW_DIST
32832908 8805
1e6feb95
VZ
8806 RCINCSWITCH="--include-dir"
8807 RCDEFSWITCH="--define"
8808 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
8809 RCINPUTSWITCH="-i"
8810 RCOUTPUTSWITCH="-o"
8811 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
32832908 8812
1e6feb95
VZ
8813 RESPROGRAM="\$(RES_PROGRAM)"
8814 fi
10f2d63a 8815
1e6feb95 8816 if test "$wxUSE_GTK" = 1; then
8168de4c 8817 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
3e44f09d 8818echo "configure:8819: checking for GTK+ version" >&5
8168de4c
VZ
8819
8820 gtk_version_cached=1
8821 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
8822 echo $ac_n "(cached) $ac_c" 1>&6
8823else
8824
8825 gtk_version_cached=0
8826 echo "$ac_t""""" 1>&6
8827
8828 wx_cv_lib_gtk=
8829 if test "x$wxUSE_GTK2" = "xyes"; then
8830 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6f72b082
OK
8831if test "${with_gtk_prefix+set}" = set; then
8832 withval="$with_gtk_prefix"
8833 gtk_config_prefix="$withval"
8834else
8835 gtk_config_prefix=""
698dcdb6 8836fi
6f72b082
OK
8837
8838# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
8839if test "${with_gtk_exec_prefix+set}" = set; then
8840 withval="$with_gtk_exec_prefix"
8841 gtk_config_exec_prefix="$withval"
8842else
8843 gtk_config_exec_prefix=""
698dcdb6
VZ
8844fi
8845
6f72b082
OK
8846# Check whether --enable-gtktest or --disable-gtktest was given.
8847if test "${enable_gtktest+set}" = set; then
8848 enableval="$enable_gtktest"
698dcdb6 8849 :
6f72b082
OK
8850else
8851 enable_gtktest=yes
698dcdb6
VZ
8852fi
8853
6f72b082 8854
8168de4c 8855 for module in .
6f72b082
OK
8856 do
8857 case "$module" in
8168de4c 8858 gthread)
6f72b082
OK
8859 gtk_config_args="$gtk_config_args gthread"
8860 ;;
8861 esac
8862 done
8863
8864 if test x$gtk_config_exec_prefix != x ; then
8865 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8866 if test x${GTK_CONFIG_2_0+set} != xset ; then
8867 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
8868 fi
8869 fi
8870 if test x$gtk_config_prefix != x ; then
8871 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8872 if test x${GTK_CONFIG_2_0+set} != xset ; then
8873 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
8874 fi
8875 fi
8876
8877 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
8878set dummy gtk-config-2.0; ac_word=$2
698dcdb6 8879echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3e44f09d 8880echo "configure:8881: checking for $ac_word" >&5
698dcdb6
VZ
8881if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
8882 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 8883else
698dcdb6
VZ
8884 case "$GTK_CONFIG_2_0" in
8885 /*)
6f72b082
OK
8886 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
8887 ;;
698dcdb6
VZ
8888 ?:/*)
8889 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
8890 ;;
6f72b082 8891 *)
698dcdb6
VZ
8892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8893 ac_dummy="$PATH"
8894 for ac_dir in $ac_dummy; do
8895 test -z "$ac_dir" && ac_dir=.
8896 if test -f $ac_dir/$ac_word; then
8897 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
8898 break
8899 fi
8900 done
8901 IFS="$ac_save_ifs"
6f72b082
OK
8902 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
8903 ;;
8904esac
8905fi
698dcdb6 8906GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 8907if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 8908 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 8909else
698dcdb6 8910 echo "$ac_t""no" 1>&6
6f72b082
OK
8911fi
8912
8913 min_gtk_version=1.3.1
698dcdb6 8914 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
3e44f09d 8915echo "configure:8916: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
8916 no_gtk=""
8917 if test "$GTK_CONFIG_2_0" = "no" ; then
8918 no_gtk=yes
8919 else
8920 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
8921 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
8922 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8923 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8924 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8925 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8926 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8927 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8928 if test "x$enable_gtktest" = "xyes" ; then
8929 ac_save_CFLAGS="$CFLAGS"
8930 ac_save_LIBS="$LIBS"
8931 CFLAGS="$CFLAGS $GTK_CFLAGS"
8932 LIBS="$GTK_LIBS $LIBS"
8933 rm -f conf.gtktest
8934 if test "$cross_compiling" = yes; then
8935 echo $ac_n "cross compiling; assumed OK... $ac_c"
8936else
698dcdb6 8937 cat > conftest.$ac_ext <<EOF
3e44f09d 8938#line 8939 "configure"
6f72b082
OK
8939#include "confdefs.h"
8940
8941#include <gtk/gtk.h>
8942#include <stdio.h>
8943#include <stdlib.h>
8944
8168de4c 8945int
6f72b082
OK
8946main ()
8947{
8948 int major, minor, micro;
8949 char *tmp_version;
8950
8951 system ("touch conf.gtktest");
8952
8953 /* HP/UX 9 (%@#!) writes to sscanf strings */
8954 tmp_version = g_strdup("$min_gtk_version");
8955 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8956 printf("%s, bad version string\n", "$min_gtk_version");
8957 exit(1);
8958 }
8959
8960 if ((gtk_major_version != $gtk_config_major_version) ||
8961 (gtk_minor_version != $gtk_config_minor_version) ||
8962 (gtk_micro_version != $gtk_config_micro_version))
8963 {
8168de4c 8964 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
8965 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
8966 gtk_major_version, gtk_minor_version, gtk_micro_version);
8967 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
8968 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
8969 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8970 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8971 printf("*** required on your system.\n");
8972 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
8973 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
8974 printf("*** before re-running configure\n");
8168de4c 8975 }
6f72b082
OK
8976#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
8977 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8168de4c 8978 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
8979 (gtk_micro_version != GTK_MICRO_VERSION))
8980 {
8981 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8168de4c 8982 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 8983 printf("*** library (version %d.%d.%d)\n",
8168de4c 8984 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082
OK
8985 }
8986#endif /* defined (GTK_MAJOR_VERSION) ... */
8987 else
8988 {
8989 if ((gtk_major_version > major) ||
8990 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8991 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
8992 {
8993 return 0;
8994 }
8995 else
8996 {
8997 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
8998 gtk_major_version, gtk_minor_version, gtk_micro_version);
8999 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8168de4c 9000 major, minor, micro);
6f72b082
OK
9001 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9002 printf("***\n");
9003 printf("*** If you have already installed a sufficiently new version, this error\n");
9004 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9005 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9006 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9007 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9008 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9009 printf("*** so that the correct libraries are found at run-time))\n");
9010 }
9011 }
9012 return 1;
9013}
9014
698dcdb6 9015EOF
3e44f09d 9016if { (eval echo configure:9017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9017then
6f72b082
OK
9018 :
9019else
698dcdb6
VZ
9020 echo "configure: failed program was:" >&5
9021 cat conftest.$ac_ext >&5
9022 rm -fr conftest*
9023 no_gtk=yes
6f72b082 9024fi
698dcdb6 9025rm -fr conftest*
6f72b082 9026fi
698dcdb6 9027
6f72b082
OK
9028 CFLAGS="$ac_save_CFLAGS"
9029 LIBS="$ac_save_LIBS"
9030 fi
9031 fi
9032 if test "x$no_gtk" = x ; then
698dcdb6 9033 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8168de4c 9034 wx_cv_lib_gtk=2.0
6f72b082 9035 else
698dcdb6 9036 echo "$ac_t""no" 1>&6
6f72b082
OK
9037 if test "$GTK_CONFIG_2_0" = "no" ; then
9038 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9039 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9040 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9041 echo "*** full path to gtk-config-2.0."
9042 else
9043 if test -f conf.gtktest ; then
9044 :
9045 else
9046 echo "*** Could not run GTK test program, checking why..."
9047 CFLAGS="$CFLAGS $GTK_CFLAGS"
9048 LIBS="$LIBS $GTK_LIBS"
698dcdb6 9049 cat > conftest.$ac_ext <<EOF
3e44f09d 9050#line 9051 "configure"
6f72b082
OK
9051#include "confdefs.h"
9052
9053#include <gtk/gtk.h>
9054#include <stdio.h>
9055
698dcdb6
VZ
9056int main() {
9057 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9058; return 0; }
9059EOF
3e44f09d 9060if { (eval echo configure:9061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9061 rm -rf conftest*
6f72b082
OK
9062 echo "*** The test program compiled, but did not run. This usually means"
9063 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9064 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9065 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9066 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9067 echo "*** is required on your system"
8168de4c 9068 echo "***"
6f72b082
OK
9069 echo "*** If you have an old version installed, it is best to remove it, although"
9070 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9071 echo "***"
9072 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9073 echo "*** came with the system with the command"
9074 echo "***"
698dcdb6 9075 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 9076else
698dcdb6
VZ
9077 echo "configure: failed program was:" >&5
9078 cat conftest.$ac_ext >&5
9079 rm -rf conftest*
9080 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
9081 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9082 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
698dcdb6 9083 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 9084fi
698dcdb6 9085rm -f conftest*
6f72b082
OK
9086 CFLAGS="$ac_save_CFLAGS"
9087 LIBS="$ac_save_LIBS"
9088 fi
9089 fi
9090 GTK_CFLAGS=""
9091 GTK_LIBS=""
8168de4c
VZ
9092 gthread
9093 fi
9094
9095
9096 rm -f conf.gtktest
9097
9098 fi
9099
9100 if test -z "$wx_cv_lib_gtk"; then
9101
10f2d63a
VZ
9102 if test x$gtk_config_exec_prefix != x ; then
9103 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9104 if test x${GTK_CONFIG+set} != xset ; then
9105 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9106 fi
9107 fi
9108 if test x$gtk_config_prefix != x ; then
9109 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9110 if test x${GTK_CONFIG+set} != xset ; then
9111 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9112 fi
9113 fi
9114
9115 # Extract the first word of "gtk-config", so it can be a program name with args.
9116set dummy gtk-config; ac_word=$2
698dcdb6 9117echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3e44f09d 9118echo "configure:9119: checking for $ac_word" >&5
698dcdb6
VZ
9119if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9120 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 9121else
698dcdb6
VZ
9122 case "$GTK_CONFIG" in
9123 /*)
f6bcfd97
BP
9124 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9125 ;;
698dcdb6
VZ
9126 ?:/*)
9127 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9128 ;;
f6bcfd97 9129 *)
698dcdb6
VZ
9130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9131 ac_dummy="$PATH"
9132 for ac_dir in $ac_dummy; do
9133 test -z "$ac_dir" && ac_dir=.
9134 if test -f $ac_dir/$ac_word; then
9135 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9136 break
9137 fi
9138 done
9139 IFS="$ac_save_ifs"
f6bcfd97
BP
9140 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9141 ;;
9142esac
9143fi
698dcdb6 9144GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 9145if test -n "$GTK_CONFIG"; then
698dcdb6 9146 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 9147else
698dcdb6 9148 echo "$ac_t""no" 1>&6
f6bcfd97
BP
9149fi
9150
9151 min_gtk_version=1.2.7
698dcdb6 9152 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
3e44f09d 9153echo "configure:9154: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
9154 no_gtk=""
9155 if test "$GTK_CONFIG" != "no" ; then
9156 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9157 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9158 ac_save_CFLAGS="$CFLAGS"
9159 ac_save_LIBS="$LIBS"
9160 CFLAGS="$CFLAGS $GTK_CFLAGS"
9161 LIBS="$LIBS $GTK_LIBS"
9162 if test "$cross_compiling" = yes; then
9163 echo $ac_n "cross compiling; assumed OK... $ac_c"
9164else
698dcdb6 9165 cat > conftest.$ac_ext <<EOF
3e44f09d 9166#line 9167 "configure"
f6bcfd97
BP
9167#include "confdefs.h"
9168
9169#include <gtk/gtk.h>
9170#include <gtk/gtkfeatures.h>
9171#include <stdio.h>
9172#include <stdlib.h>
9173
9174int
9175main ()
9176{
9177 int major, minor, micro;
9178
9179 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9180 printf("%s, bad version string\n", "$min_gtk_version");
9181 exit(1);
9182 }
9183
9184 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9185 (GTK_MINOR_VERSION != gtk_minor_version) ||
9186 (GTK_MICRO_VERSION != gtk_micro_version)) {
9187 printf("Headers vs. library version mismatch!\n");
9188 exit(1);
9189 }
9190
9191 if (gtk_minor_version == 1) return FALSE;
9192
9193 return !((gtk_major_version > major) ||
9194 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9195 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9196}
9197
698dcdb6 9198EOF
3e44f09d 9199if { (eval echo configure:9200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9200then
f6bcfd97
BP
9201 :
9202else
698dcdb6
VZ
9203 echo "configure: failed program was:" >&5
9204 cat conftest.$ac_ext >&5
9205 rm -fr conftest*
9206 no_gtk=yes
f6bcfd97 9207fi
698dcdb6 9208rm -fr conftest*
f6bcfd97 9209fi
698dcdb6 9210
f6bcfd97
BP
9211 CFLAGS="$ac_save_CFLAGS"
9212 LIBS="$ac_save_LIBS"
9213 else
9214 no_gtk=yes
9215 fi
9216 if test "x$no_gtk" = x ; then
698dcdb6 9217 echo "$ac_t""yes" 1>&6
8168de4c 9218 wx_cv_lib_gtk=1.2.7
f6bcfd97 9219 else
698dcdb6 9220 echo "$ac_t""no" 1>&6
f6bcfd97
BP
9221 GTK_CFLAGS=""
9222 GTK_LIBS=""
9223 :
9224 fi
698dcdb6
VZ
9225
9226
f6bcfd97 9227
8168de4c
VZ
9228 fi
9229
9230 if test -z "$wx_cv_lib_gtk"; then
9231
f6bcfd97
BP
9232 if test x$gtk_config_exec_prefix != x ; then
9233 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9234 if test x${GTK_CONFIG+set} != xset ; then
9235 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9236 fi
9237 fi
9238 if test x$gtk_config_prefix != x ; then
9239 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9240 if test x${GTK_CONFIG+set} != xset ; then
9241 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9242 fi
9243 fi
9244
9245 # Extract the first word of "gtk-config", so it can be a program name with args.
9246set dummy gtk-config; ac_word=$2
698dcdb6 9247echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3e44f09d 9248echo "configure:9249: checking for $ac_word" >&5
698dcdb6
VZ
9249if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9250 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9251else
698dcdb6
VZ
9252 case "$GTK_CONFIG" in
9253 /*)
10f2d63a
VZ
9254 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9255 ;;
698dcdb6
VZ
9256 ?:/*)
9257 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9258 ;;
10f2d63a 9259 *)
698dcdb6
VZ
9260 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9261 ac_dummy="$PATH"
9262 for ac_dir in $ac_dummy; do
9263 test -z "$ac_dir" && ac_dir=.
9264 if test -f $ac_dir/$ac_word; then
9265 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9266 break
9267 fi
9268 done
9269 IFS="$ac_save_ifs"
10f2d63a
VZ
9270 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9271 ;;
9272esac
9273fi
698dcdb6 9274GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 9275if test -n "$GTK_CONFIG"; then
698dcdb6 9276 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 9277else
698dcdb6 9278 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9279fi
9280
04165bec 9281 min_gtk_version=1.2.3
698dcdb6 9282 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
3e44f09d 9283echo "configure:9284: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
9284 no_gtk=""
9285 if test "$GTK_CONFIG" != "no" ; then
9286 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 9287 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
9288 ac_save_CFLAGS="$CFLAGS"
9289 ac_save_LIBS="$LIBS"
9290 CFLAGS="$CFLAGS $GTK_CFLAGS"
9291 LIBS="$LIBS $GTK_LIBS"
9292 if test "$cross_compiling" = yes; then
9293 echo $ac_n "cross compiling; assumed OK... $ac_c"
9294else
698dcdb6 9295 cat > conftest.$ac_ext <<EOF
3e44f09d 9296#line 9297 "configure"
10f2d63a
VZ
9297#include "confdefs.h"
9298
9299#include <gtk/gtk.h>
f49f2b0c 9300#include <gtk/gtkfeatures.h>
10f2d63a 9301#include <stdio.h>
32832908 9302#include <stdlib.h>
10f2d63a
VZ
9303
9304int
9305main ()
9306{
9307 int major, minor, micro;
9308
9309 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9310 printf("%s, bad version string\n", "$min_gtk_version");
9311 exit(1);
9312 }
9313
f49f2b0c
RR
9314 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9315 (GTK_MINOR_VERSION != gtk_minor_version) ||
9316 (GTK_MICRO_VERSION != gtk_micro_version)) {
9317 printf("Headers vs. library version mismatch!\n");
9318 exit(1);
9319 }
9320
10f2d63a
VZ
9321 if (gtk_minor_version == 1) return FALSE;
9322
9323 return !((gtk_major_version > major) ||
9324 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9325 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9326}
9327
698dcdb6 9328EOF
3e44f09d 9329if { (eval echo configure:9330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9330then
10f2d63a
VZ
9331 :
9332else
698dcdb6
VZ
9333 echo "configure: failed program was:" >&5
9334 cat conftest.$ac_ext >&5
9335 rm -fr conftest*
9336 no_gtk=yes
10f2d63a 9337fi
698dcdb6 9338rm -fr conftest*
10f2d63a 9339fi
698dcdb6 9340
10f2d63a
VZ
9341 CFLAGS="$ac_save_CFLAGS"
9342 LIBS="$ac_save_LIBS"
9343 else
9344 no_gtk=yes
9345 fi
9346 if test "x$no_gtk" = x ; then
698dcdb6 9347 echo "$ac_t""yes" 1>&6
8168de4c 9348 wx_cv_lib_gtk=1.2.3
10f2d63a 9349 else
698dcdb6 9350 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9351 GTK_CFLAGS=""
9352 GTK_LIBS=""
7e99ad86 9353 :
10f2d63a 9354 fi
698dcdb6
VZ
9355
9356
10f2d63a 9357
8168de4c
VZ
9358 fi
9359
9360 if test -z "$wx_cv_lib_gtk"; then
9361 wx_cv_lib_gtk=none
138be253
VZ
9362 else
9363 wx_cv_cflags_gtk=$GTK_CFLAGS
9364 wx_cv_libs_gtk=$GTK_LIBS
8168de4c
VZ
9365 fi
9366
1e6feb95 9367
8168de4c 9368fi
703e0a69 9369
698dcdb6 9370
8168de4c
VZ
9371 if test "$gtk_version_cached" = 1; then
9372 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
1e6feb95 9373 fi
698dcdb6 9374
8168de4c
VZ
9375 case "$wx_cv_lib_gtk" in
9376 2.0) WXGTK20=1
9377 ;;
9378 1.2.7) WXGTK127=1
d1a8d972 9379 WXGTK12=1
8168de4c
VZ
9380 ;;
9381 1.2.3) WXGTK12=1
9382 ;;
9383 *) { echo "configure: error:
9384Please check that gtk-config is in path, the directory
9385where GTK+ libraries are installed (returned by
9386'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9387equivalent variable and GTK+ is version 1.2.3 or above.
9388 " 1>&2; exit 1; }
9389 ;;
9390 esac
2224580a 9391
138be253 9392 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11dfaa5f 9393 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
698dcdb6 9394
1e6feb95
VZ
9395 AFMINSTALL=afminstall
9396 TOOLKIT=GTK
9397 GUIDIST=GTK_DIST
7ec2881a 9398
1e6feb95 9399 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
3e44f09d 9400echo "configure:9401: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
9401ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9402if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9403 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 9404else
698dcdb6 9405 ac_save_LIBS="$LIBS"
7ec2881a 9406LIBS="-lgdk $LIBS"
698dcdb6 9407cat > conftest.$ac_ext <<EOF
3e44f09d 9408#line 9409 "configure"
7ec2881a
RR
9409#include "confdefs.h"
9410/* Override any gcc2 internal prototype to avoid an error. */
9411/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9412 builtin and then its argument prototype would still apply. */
9413char gdk_im_open();
9414
9415int main() {
9416gdk_im_open()
9417; return 0; }
9418EOF
3e44f09d 9419if { (eval echo configure:9420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9420 rm -rf conftest*
9421 eval "ac_cv_lib_$ac_lib_var=yes"
9422else
9423 echo "configure: failed program was:" >&5
9424 cat conftest.$ac_ext >&5
9425 rm -rf conftest*
9426 eval "ac_cv_lib_$ac_lib_var=no"
9427fi
9428rm -f conftest*
9429LIBS="$ac_save_LIBS"
9430
9431fi
9432if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9433 echo "$ac_t""yes" 1>&6
9434 cat >> confdefs.h <<\EOF
7ec2881a
RR
9435#define HAVE_XIM 1
9436EOF
9437
698dcdb6
VZ
9438else
9439 echo "$ac_t""no" 1>&6
7ec2881a
RR
9440fi
9441
1e6feb95 9442 fi
10f2d63a 9443
1e6feb95
VZ
9444 if test "$wxUSE_MGL" = 1; then
9445
9446 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
3e44f09d 9447echo "configure:9448: checking for SciTech MGL library" >&5
1e6feb95
VZ
9448 if test "x$MGL_ROOT" = x ; then
9449 echo "$ac_t""not found" 1>&6
9450 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9451 else
9452 echo "$ac_t""$MGL_ROOT" 1>&6
9453 fi
9454
9455 MGL_OS=linux/gcc/glibc
9456 MGL_LIB_TYPE=""
9457
9458 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9459 if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then
9460 MGL_LIB_TYPE=debug
9461 fi
9462 fi
9463 if test "x$MGL_LIB_TYPE" = x ; then
9464 if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then
9465 MGL_LIB_TYPE=release
9466 else
9467 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9468 fi
9469 fi
9470
9471 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9472 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm"
9473
9474 AFMINSTALL=afminstall
9475 TOOLKIT=MGL
9476 GUIDIST=MGL_DIST
9477 fi
9478
9479 if test "$wxUSE_WINE" = 1; then
9480 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
3e44f09d 9481echo "configure:9482: checking for WINE includes" >&5
1e6feb95 9482
10f2d63a
VZ
9483ac_find_includes=
9484for ac_dir in $SEARCH_INCLUDE;
9485 do
9486 if test -f "$ac_dir/windows.h"; then
9487 ac_find_includes=$ac_dir
9488 break
9489 fi
9490 done
9491
1e6feb95
VZ
9492 if test "$ac_find_includes" != "" ; then
9493 echo "$ac_t""found $ac_find_includes" 1>&6
9494 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
9495 else
9496 echo "$ac_t""no" 1>&6
9497 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9498 fi
10f2d63a 9499
1e6feb95
VZ
9500 XPM_LINK=""
9501 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
3e44f09d 9502echo "configure:9503: checking for Xpm library" >&5
1e6feb95 9503
10f2d63a
VZ
9504ac_find_libraries=
9505for ac_dir in $SEARCH_LIB;
9506 do
9507 for ac_extension in a so sl; do
9508 if test -f "$ac_dir/libXpm.$ac_extension"; then
9509 ac_find_libraries=$ac_dir
9510 break 2
9511 fi
9512 done
9513 done
9514
1e6feb95
VZ
9515 if test "$ac_find_libraries" != "" ; then
9516 GUI_TK_LIBRARY="-L$ac_find_libraries"
9517 XPM_LINK="-lXpm"
9518 cat >> confdefs.h <<\EOF
10f2d63a
VZ
9519#define wxHAVE_LIB_XPM 1
9520EOF
9521
1e6feb95
VZ
9522 echo "$ac_t""found at $ac_find_libraries" 1>&6
9523 else
9524 echo "$ac_t""no" 1>&6
9525 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9526 fi
10f2d63a 9527
1e6feb95
VZ
9528 MESA_LINK=""
9529 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
3e44f09d 9530echo "configure:9531: checking for Mesa library" >&5
1e6feb95 9531
10f2d63a
VZ
9532ac_find_libraries=
9533for ac_dir in $SEARCH_LIB;
9534 do
9535 for ac_extension in a so sl; do
9536 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9537 ac_find_libraries=$ac_dir
9538 break 2
9539 fi
9540 done
9541 done
9542
1e6feb95
VZ
9543 if test "$ac_find_libraries" != "" ; then
9544 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9545 MESA_LINK="-lMesaGL"
9546 echo "$ac_t""found at $ac_find_libraries" 1>&6
9547 else
9548 { echo "configure: error: no" 1>&2; exit 1; }
9549 fi
10f2d63a 9550
1e6feb95
VZ
9551 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9552 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9553 WXWINE=1
9554 TOOLKIT=MSW
9555 GUIDIST=MSW_DIST
9556 fi
698dcdb6 9557
1e6feb95
VZ
9558
9559 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
9560# paths, otherwise set no_x=yes.
9561# Uses ac_ vars as temps to allow command line to override cache and checks.
9562# --without-x overrides everything else, but does not touch the cache.
9563echo $ac_n "checking for X""... $ac_c" 1>&6
3e44f09d 9564echo "configure:9565: checking for X" >&5
ab9b9eab
VZ
9565
9566# Check whether --with-x or --without-x was given.
9567if test "${with_x+set}" = set; then
9568 withval="$with_x"
698dcdb6
VZ
9569 :
9570fi
ba337fe7 9571
ab9b9eab
VZ
9572# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9573if test "x$with_x" = xno; then
9574 # The user explicitly disabled X.
9575 have_x=disabled
9576else
9577 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9578 # Both variables are already set.
9579 have_x=yes
9580 else
698dcdb6
VZ
9581if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9582 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
9583else
9584 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
9585ac_x_includes=NO ac_x_libraries=NO
9586rm -fr conftestdir
9587if mkdir conftestdir; then
9588 cd conftestdir
ab9b9eab 9589 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 9590 cat > Imakefile <<'EOF'
ab9b9eab
VZ
9591acfindx:
9592 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9593EOF
9594 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9595 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9596 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9597 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 9598 for ac_extension in a so sl; do
ab9b9eab 9599 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 9600 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 9601 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
9602 fi
9603 done
ab9b9eab
VZ
9604 # Screen out bogus values from the imake configuration. They are
9605 # bogus both because they are the default anyway, and because
9606 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 9607 case "$ac_im_incroot" in
ab9b9eab 9608 /usr/include) ;;
698dcdb6 9609 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 9610 esac
698dcdb6 9611 case "$ac_im_usrlibdir" in
ab9b9eab 9612 /usr/lib | /lib) ;;
698dcdb6 9613 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 9614 esac
ba337fe7 9615 fi
ab9b9eab 9616 cd ..
698dcdb6 9617 rm -fr conftestdir
ab9b9eab 9618fi
10f2d63a 9619
698dcdb6
VZ
9620if test "$ac_x_includes" = NO; then
9621 # Guess where to find include files, by looking for this one X11 .h file.
9622 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9623
ab9b9eab 9624 # First, try using that file with no special directory specified.
698dcdb6 9625cat > conftest.$ac_ext <<EOF
3e44f09d 9626#line 9627 "configure"
ab9b9eab 9627#include "confdefs.h"
698dcdb6
VZ
9628#include <$x_direct_test_include>
9629EOF
9630ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3e44f09d 9631{ (eval echo configure:9632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
9632ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9633if test -z "$ac_err"; then
9634 rm -rf conftest*
ab9b9eab
VZ
9635 # We can compile using X headers with no special include directory.
9636ac_x_includes=
9637else
698dcdb6
VZ
9638 echo "$ac_err" >&5
9639 echo "configure: failed program was:" >&5
ab9b9eab 9640 cat conftest.$ac_ext >&5
698dcdb6
VZ
9641 rm -rf conftest*
9642 # Look for the header file in a standard set of common directories.
9643# Check X11 before X11Rn because it is often a symlink to the current release.
9644 for ac_dir in \
9645 /usr/X11/include \
9646 /usr/X11R6/include \
9647 /usr/X11R5/include \
9648 /usr/X11R4/include \
9649 \
9650 /usr/include/X11 \
9651 /usr/include/X11R6 \
9652 /usr/include/X11R5 \
9653 /usr/include/X11R4 \
9654 \
9655 /usr/local/X11/include \
9656 /usr/local/X11R6/include \
9657 /usr/local/X11R5/include \
9658 /usr/local/X11R4/include \
9659 \
9660 /usr/local/include/X11 \
9661 /usr/local/include/X11R6 \
9662 /usr/local/include/X11R5 \
9663 /usr/local/include/X11R4 \
9664 \
9665 /usr/X386/include \
9666 /usr/x386/include \
9667 /usr/XFree86/include/X11 \
9668 \
9669 /usr/include \
9670 /usr/local/include \
9671 /usr/unsupported/include \
9672 /usr/athena/include \
9673 /usr/local/x11r5/include \
9674 /usr/lpp/Xamples/include \
9675 \
9676 /usr/openwin/include \
9677 /usr/openwin/share/include \
9678 ; \
9679 do
9680 if test -r "$ac_dir/$x_direct_test_include"; then
9681 ac_x_includes=$ac_dir
9682 break
9683 fi
9684 done
ab9b9eab 9685fi
698dcdb6
VZ
9686rm -f conftest*
9687fi # $ac_x_includes = NO
10f2d63a 9688
698dcdb6 9689if test "$ac_x_libraries" = NO; then
ab9b9eab 9690 # Check for the libraries.
698dcdb6
VZ
9691
9692 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9693 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9694
ab9b9eab
VZ
9695 # See if we find them without any special options.
9696 # Don't add to $LIBS permanently.
698dcdb6
VZ
9697 ac_save_LIBS="$LIBS"
9698 LIBS="-l$x_direct_test_library $LIBS"
9699cat > conftest.$ac_ext <<EOF
3e44f09d 9700#line 9701 "configure"
ab9b9eab 9701#include "confdefs.h"
698dcdb6
VZ
9702
9703int main() {
9704${x_direct_test_function}()
9705; return 0; }
9706EOF
3e44f09d 9707if { (eval echo configure:9708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9708 rm -rf conftest*
9709 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
9710# We can link X programs with no special library path.
9711ac_x_libraries=
9712else
698dcdb6
VZ
9713 echo "configure: failed program was:" >&5
9714 cat conftest.$ac_ext >&5
9715 rm -rf conftest*
9716 LIBS="$ac_save_LIBS"
9717# First see if replacing the include by lib works.
9718# Check X11 before X11Rn because it is often a symlink to the current release.
9719for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9720 /usr/X11/lib \
9721 /usr/X11R6/lib \
9722 /usr/X11R5/lib \
9723 /usr/X11R4/lib \
9724 \
9725 /usr/lib/X11 \
9726 /usr/lib/X11R6 \
9727 /usr/lib/X11R5 \
9728 /usr/lib/X11R4 \
9729 \
9730 /usr/local/X11/lib \
9731 /usr/local/X11R6/lib \
9732 /usr/local/X11R5/lib \
9733 /usr/local/X11R4/lib \
9734 \
9735 /usr/local/lib/X11 \
9736 /usr/local/lib/X11R6 \
9737 /usr/local/lib/X11R5 \
9738 /usr/local/lib/X11R4 \
9739 \
9740 /usr/X386/lib \
9741 /usr/x386/lib \
9742 /usr/XFree86/lib/X11 \
9743 \
9744 /usr/lib \
9745 /usr/local/lib \
9746 /usr/unsupported/lib \
9747 /usr/athena/lib \
9748 /usr/local/x11r5/lib \
9749 /usr/lpp/Xamples/lib \
9750 /lib/usr/lib/X11 \
9751 \
9752 /usr/openwin/lib \
9753 /usr/openwin/share/lib \
9754 ; \
ab9b9eab
VZ
9755do
9756 for ac_extension in a so sl; do
698dcdb6 9757 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
9758 ac_x_libraries=$ac_dir
9759 break 2
10f2d63a 9760 fi
10f2d63a 9761 done
ab9b9eab
VZ
9762done
9763fi
698dcdb6
VZ
9764rm -f conftest*
9765fi # $ac_x_libraries = NO
10f2d63a 9766
698dcdb6 9767if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
9768 # Didn't find X anywhere. Cache the known absence of X.
9769 ac_cv_have_x="have_x=no"
9770else
9771 # Record where we found X for the cache.
9772 ac_cv_have_x="have_x=yes \
9773 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9774fi
9775fi
10f2d63a 9776 fi
ab9b9eab
VZ
9777 eval "$ac_cv_have_x"
9778fi # $with_x != no
10f2d63a 9779
ab9b9eab 9780if test "$have_x" != yes; then
698dcdb6 9781 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
9782 no_x=yes
9783else
9784 # If each of the values was on the command line, it overrides each guess.
9785 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9786 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9787 # Update the cache value to reflect the command line values.
9788 ac_cv_have_x="have_x=yes \
9789 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 9790 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 9791fi
10f2d63a 9792
ab9b9eab
VZ
9793if test "$no_x" = yes; then
9794 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 9795 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
9796#define X_DISPLAY_MISSING 1
9797EOF
10f2d63a 9798
ab9b9eab
VZ
9799 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9800else
9801 if test -n "$x_includes"; then
9802 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
9803 fi
9804
ab9b9eab
VZ
9805 # It would also be nice to do this for all -L options, not just this one.
9806 if test -n "$x_libraries"; then
9807 X_LIBS="$X_LIBS -L$x_libraries"
9808 # For Solaris; some versions of Sun CC require a space after -R and
9809 # others require no space. Words are not sufficient . . . .
698dcdb6 9810 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 9811 "SunOS 5"*)
698dcdb6 9812 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3e44f09d 9813echo "configure:9814: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
9814 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
9815 cat > conftest.$ac_ext <<EOF
3e44f09d 9816#line 9817 "configure"
ab9b9eab 9817#include "confdefs.h"
10f2d63a 9818
698dcdb6 9819int main() {
788deba1 9820
698dcdb6
VZ
9821; return 0; }
9822EOF
3e44f09d 9823if { (eval echo configure:9824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9824 rm -rf conftest*
ab9b9eab
VZ
9825 ac_R_nospace=yes
9826else
698dcdb6
VZ
9827 echo "configure: failed program was:" >&5
9828 cat conftest.$ac_ext >&5
9829 rm -rf conftest*
9830 ac_R_nospace=no
ab9b9eab 9831fi
698dcdb6 9832rm -f conftest*
ab9b9eab 9833 if test $ac_R_nospace = yes; then
698dcdb6 9834 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9835 X_LIBS="$X_LIBS -R$x_libraries"
9836 else
9837 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 9838 cat > conftest.$ac_ext <<EOF
3e44f09d 9839#line 9840 "configure"
ab9b9eab 9840#include "confdefs.h"
788deba1 9841
698dcdb6 9842int main() {
ab9b9eab 9843
698dcdb6
VZ
9844; return 0; }
9845EOF
3e44f09d 9846if { (eval echo configure:9847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9847 rm -rf conftest*
ab9b9eab
VZ
9848 ac_R_space=yes
9849else
698dcdb6
VZ
9850 echo "configure: failed program was:" >&5
9851 cat conftest.$ac_ext >&5
9852 rm -rf conftest*
9853 ac_R_space=no
ab9b9eab 9854fi
698dcdb6 9855rm -f conftest*
ab9b9eab 9856 if test $ac_R_space = yes; then
698dcdb6 9857 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
9858 X_LIBS="$X_LIBS -R $x_libraries"
9859 else
698dcdb6 9860 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
9861 fi
9862 fi
698dcdb6 9863 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
9864 esac
9865 fi
9866
9867 # Check for system-dependent libraries X programs must link with.
9868 # Do this before checking for the system-independent R6 libraries
9869 # (-lICE), since we may need -lsocket or whatever for X linking.
9870
9871 if test "$ISC" = yes; then
9872 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9873 else
698dcdb6
VZ
9874 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
9875 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 9876 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 9877 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3e44f09d 9878echo "configure:9879: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
9879ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9880if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9881 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9882else
698dcdb6 9883 ac_save_LIBS="$LIBS"
ab9b9eab 9884LIBS="-ldnet $LIBS"
698dcdb6 9885cat > conftest.$ac_ext <<EOF
3e44f09d 9886#line 9887 "configure"
ab9b9eab
VZ
9887#include "confdefs.h"
9888/* Override any gcc2 internal prototype to avoid an error. */
9889/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9890 builtin and then its argument prototype would still apply. */
9891char dnet_ntoa();
9892
9893int main() {
9894dnet_ntoa()
9895; return 0; }
9896EOF
3e44f09d 9897if { (eval echo configure:9898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9898 rm -rf conftest*
9899 eval "ac_cv_lib_$ac_lib_var=yes"
9900else
9901 echo "configure: failed program was:" >&5
9902 cat conftest.$ac_ext >&5
9903 rm -rf conftest*
9904 eval "ac_cv_lib_$ac_lib_var=no"
9905fi
9906rm -f conftest*
9907LIBS="$ac_save_LIBS"
9908
9909fi
9910if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9911 echo "$ac_t""yes" 1>&6
ab9b9eab 9912 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
9913else
9914 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9915fi
9916
9917 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 9918 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3e44f09d 9919echo "configure:9920: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
9920ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9921if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9922 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9923else
698dcdb6 9924 ac_save_LIBS="$LIBS"
ab9b9eab 9925LIBS="-ldnet_stub $LIBS"
698dcdb6 9926cat > conftest.$ac_ext <<EOF
3e44f09d 9927#line 9928 "configure"
ab9b9eab
VZ
9928#include "confdefs.h"
9929/* Override any gcc2 internal prototype to avoid an error. */
9930/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9931 builtin and then its argument prototype would still apply. */
9932char dnet_ntoa();
9933
9934int main() {
9935dnet_ntoa()
9936; return 0; }
9937EOF
3e44f09d 9938if { (eval echo configure:9939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9939 rm -rf conftest*
9940 eval "ac_cv_lib_$ac_lib_var=yes"
9941else
9942 echo "configure: failed program was:" >&5
9943 cat conftest.$ac_ext >&5
9944 rm -rf conftest*
9945 eval "ac_cv_lib_$ac_lib_var=no"
9946fi
9947rm -f conftest*
9948LIBS="$ac_save_LIBS"
9949
9950fi
9951if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9952 echo "$ac_t""yes" 1>&6
ab9b9eab 9953 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
9954else
9955 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9956fi
9957
9958 fi
9959
9960 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9961 # to get the SysV transport functions.
698dcdb6 9962 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
9963 # needs -lnsl.
9964 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
9965 # on Irix 5.2, according to dickey@clark.net.
9966 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3e44f09d 9967echo "configure:9968: checking for gethostbyname" >&5
698dcdb6
VZ
9968if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
9969 echo $ac_n "(cached) $ac_c" 1>&6
9970else
9971 cat > conftest.$ac_ext <<EOF
3e44f09d 9972#line 9973 "configure"
ab9b9eab
VZ
9973#include "confdefs.h"
9974/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 9975 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
9976#include <assert.h>
9977/* Override any gcc2 internal prototype to avoid an error. */
9978/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9979 builtin and then its argument prototype would still apply. */
9980char gethostbyname();
9981
9982int main() {
ab9b9eab
VZ
9983
9984/* The GNU C library defines this for functions which it implements
9985 to always fail with ENOSYS. Some functions are actually named
9986 something starting with __ and the normal name is an alias. */
9987#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9988choke me
9989#else
698dcdb6 9990gethostbyname();
ab9b9eab
VZ
9991#endif
9992
698dcdb6
VZ
9993; return 0; }
9994EOF
3e44f09d 9995if { (eval echo configure:9996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9996 rm -rf conftest*
9997 eval "ac_cv_func_gethostbyname=yes"
9998else
9999 echo "configure: failed program was:" >&5
10000 cat conftest.$ac_ext >&5
10001 rm -rf conftest*
10002 eval "ac_cv_func_gethostbyname=no"
10003fi
10004rm -f conftest*
10005fi
10006
10007if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10008 echo "$ac_t""yes" 1>&6
10009 :
10010else
10011 echo "$ac_t""no" 1>&6
10012fi
ab9b9eab
VZ
10013
10014 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 10015 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3e44f09d 10016echo "configure:10017: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
10017ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10018if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10019 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10020else
698dcdb6 10021 ac_save_LIBS="$LIBS"
ab9b9eab 10022LIBS="-lnsl $LIBS"
698dcdb6 10023cat > conftest.$ac_ext <<EOF
3e44f09d 10024#line 10025 "configure"
ab9b9eab
VZ
10025#include "confdefs.h"
10026/* Override any gcc2 internal prototype to avoid an error. */
10027/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10028 builtin and then its argument prototype would still apply. */
10029char gethostbyname();
6232543b 10030
698dcdb6
VZ
10031int main() {
10032gethostbyname()
10033; return 0; }
10034EOF
3e44f09d 10035if { (eval echo configure:10036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10036 rm -rf conftest*
10037 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 10038else
698dcdb6
VZ
10039 echo "configure: failed program was:" >&5
10040 cat conftest.$ac_ext >&5
10041 rm -rf conftest*
10042 eval "ac_cv_lib_$ac_lib_var=no"
10043fi
10044rm -f conftest*
10045LIBS="$ac_save_LIBS"
1e487827 10046
698dcdb6
VZ
10047fi
10048if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10049 echo "$ac_t""yes" 1>&6
10050 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10051else
10052 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10053fi
10054
10055 fi
10056
10057 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10058 # socket/setsockopt and other routines are undefined under SCO ODT
10059 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
10060 # on later versions), says simon@lia.di.epfl.ch: it contains
10061 # gethostby* variants that don't use the nameserver (or something).
10062 # -lsocket must be given before -lnsl if both are needed.
10063 # We assume that if connect needs -lnsl, so does gethostbyname.
10064 echo $ac_n "checking for connect""... $ac_c" 1>&6
3e44f09d 10065echo "configure:10066: checking for connect" >&5
698dcdb6
VZ
10066if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
10067 echo $ac_n "(cached) $ac_c" 1>&6
10068else
10069 cat > conftest.$ac_ext <<EOF
3e44f09d 10070#line 10071 "configure"
ab9b9eab
VZ
10071#include "confdefs.h"
10072/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10073 which can conflict with char connect(); below. */
ab9b9eab
VZ
10074#include <assert.h>
10075/* Override any gcc2 internal prototype to avoid an error. */
10076/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10077 builtin and then its argument prototype would still apply. */
10078char connect();
10079
10080int main() {
ab9b9eab
VZ
10081
10082/* The GNU C library defines this for functions which it implements
10083 to always fail with ENOSYS. Some functions are actually named
10084 something starting with __ and the normal name is an alias. */
10085#if defined (__stub_connect) || defined (__stub___connect)
10086choke me
10087#else
698dcdb6 10088connect();
ab9b9eab
VZ
10089#endif
10090
698dcdb6
VZ
10091; return 0; }
10092EOF
3e44f09d 10093if { (eval echo configure:10094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10094 rm -rf conftest*
10095 eval "ac_cv_func_connect=yes"
10096else
10097 echo "configure: failed program was:" >&5
10098 cat conftest.$ac_ext >&5
10099 rm -rf conftest*
10100 eval "ac_cv_func_connect=no"
10101fi
10102rm -f conftest*
10103fi
10104
10105if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
10106 echo "$ac_t""yes" 1>&6
10107 :
10108else
10109 echo "$ac_t""no" 1>&6
10110fi
ab9b9eab
VZ
10111
10112 if test $ac_cv_func_connect = no; then
698dcdb6 10113 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3e44f09d 10114echo "configure:10115: checking for connect in -lsocket" >&5
698dcdb6
VZ
10115ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
10116if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10117 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10118else
698dcdb6 10119 ac_save_LIBS="$LIBS"
ab9b9eab 10120LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 10121cat > conftest.$ac_ext <<EOF
3e44f09d 10122#line 10123 "configure"
ab9b9eab
VZ
10123#include "confdefs.h"
10124/* Override any gcc2 internal prototype to avoid an error. */
10125/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10126 builtin and then its argument prototype would still apply. */
10127char connect();
10128
10129int main() {
10130connect()
10131; return 0; }
10132EOF
3e44f09d 10133if { (eval echo configure:10134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10134 rm -rf conftest*
10135 eval "ac_cv_lib_$ac_lib_var=yes"
10136else
10137 echo "configure: failed program was:" >&5
10138 cat conftest.$ac_ext >&5
10139 rm -rf conftest*
10140 eval "ac_cv_lib_$ac_lib_var=no"
10141fi
10142rm -f conftest*
10143LIBS="$ac_save_LIBS"
10144
10145fi
10146if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10147 echo "$ac_t""yes" 1>&6
ab9b9eab 10148 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
10149else
10150 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10151fi
10152
10153 fi
10154
698dcdb6
VZ
10155 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
10156 echo $ac_n "checking for remove""... $ac_c" 1>&6
3e44f09d 10157echo "configure:10158: checking for remove" >&5
698dcdb6
VZ
10158if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
10159 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10160else
698dcdb6 10161 cat > conftest.$ac_ext <<EOF
3e44f09d 10162#line 10163 "configure"
ab9b9eab
VZ
10163#include "confdefs.h"
10164/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10165 which can conflict with char remove(); below. */
ab9b9eab
VZ
10166#include <assert.h>
10167/* Override any gcc2 internal prototype to avoid an error. */
10168/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10169 builtin and then its argument prototype would still apply. */
10170char remove();
10171
10172int main() {
ab9b9eab
VZ
10173
10174/* The GNU C library defines this for functions which it implements
10175 to always fail with ENOSYS. Some functions are actually named
10176 something starting with __ and the normal name is an alias. */
10177#if defined (__stub_remove) || defined (__stub___remove)
10178choke me
10179#else
698dcdb6 10180remove();
ab9b9eab
VZ
10181#endif
10182
698dcdb6
VZ
10183; return 0; }
10184EOF
3e44f09d 10185if { (eval echo configure:10186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10186 rm -rf conftest*
10187 eval "ac_cv_func_remove=yes"
10188else
10189 echo "configure: failed program was:" >&5
10190 cat conftest.$ac_ext >&5
10191 rm -rf conftest*
10192 eval "ac_cv_func_remove=no"
10193fi
10194rm -f conftest*
10195fi
10196
10197if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
10198 echo "$ac_t""yes" 1>&6
10199 :
10200else
10201 echo "$ac_t""no" 1>&6
10202fi
ab9b9eab
VZ
10203
10204 if test $ac_cv_func_remove = no; then
698dcdb6 10205 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3e44f09d 10206echo "configure:10207: checking for remove in -lposix" >&5
698dcdb6
VZ
10207ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
10208if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10209 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10210else
698dcdb6 10211 ac_save_LIBS="$LIBS"
ab9b9eab 10212LIBS="-lposix $LIBS"
698dcdb6 10213cat > conftest.$ac_ext <<EOF
3e44f09d 10214#line 10215 "configure"
ab9b9eab
VZ
10215#include "confdefs.h"
10216/* Override any gcc2 internal prototype to avoid an error. */
10217/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10218 builtin and then its argument prototype would still apply. */
10219char remove();
10220
10221int main() {
10222remove()
10223; return 0; }
10224EOF
3e44f09d 10225if { (eval echo configure:10226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10226 rm -rf conftest*
10227 eval "ac_cv_lib_$ac_lib_var=yes"
10228else
10229 echo "configure: failed program was:" >&5
10230 cat conftest.$ac_ext >&5
10231 rm -rf conftest*
10232 eval "ac_cv_lib_$ac_lib_var=no"
10233fi
10234rm -f conftest*
10235LIBS="$ac_save_LIBS"
10236
10237fi
10238if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10239 echo "$ac_t""yes" 1>&6
ab9b9eab 10240 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
10241else
10242 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10243fi
10244
10245 fi
10246
10247 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 10248 echo $ac_n "checking for shmat""... $ac_c" 1>&6
3e44f09d 10249echo "configure:10250: checking for shmat" >&5
698dcdb6
VZ
10250if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
10251 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10252else
698dcdb6 10253 cat > conftest.$ac_ext <<EOF
3e44f09d 10254#line 10255 "configure"
ab9b9eab
VZ
10255#include "confdefs.h"
10256/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10257 which can conflict with char shmat(); below. */
ab9b9eab
VZ
10258#include <assert.h>
10259/* Override any gcc2 internal prototype to avoid an error. */
10260/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10261 builtin and then its argument prototype would still apply. */
10262char shmat();
10263
10264int main() {
ab9b9eab
VZ
10265
10266/* The GNU C library defines this for functions which it implements
10267 to always fail with ENOSYS. Some functions are actually named
10268 something starting with __ and the normal name is an alias. */
10269#if defined (__stub_shmat) || defined (__stub___shmat)
10270choke me
10271#else
698dcdb6 10272shmat();
ab9b9eab
VZ
10273#endif
10274
698dcdb6
VZ
10275; return 0; }
10276EOF
3e44f09d 10277if { (eval echo configure:10278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10278 rm -rf conftest*
10279 eval "ac_cv_func_shmat=yes"
10280else
10281 echo "configure: failed program was:" >&5
10282 cat conftest.$ac_ext >&5
10283 rm -rf conftest*
10284 eval "ac_cv_func_shmat=no"
10285fi
10286rm -f conftest*
10287fi
10288
10289if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
10290 echo "$ac_t""yes" 1>&6
10291 :
10292else
10293 echo "$ac_t""no" 1>&6
10294fi
ab9b9eab
VZ
10295
10296 if test $ac_cv_func_shmat = no; then
698dcdb6 10297 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
3e44f09d 10298echo "configure:10299: checking for shmat in -lipc" >&5
698dcdb6
VZ
10299ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
10300if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10301 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10302else
698dcdb6 10303 ac_save_LIBS="$LIBS"
ab9b9eab 10304LIBS="-lipc $LIBS"
698dcdb6 10305cat > conftest.$ac_ext <<EOF
3e44f09d 10306#line 10307 "configure"
ab9b9eab
VZ
10307#include "confdefs.h"
10308/* Override any gcc2 internal prototype to avoid an error. */
10309/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10310 builtin and then its argument prototype would still apply. */
10311char shmat();
10312
10313int main() {
10314shmat()
10315; return 0; }
10316EOF
3e44f09d 10317if { (eval echo configure:10318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10318 rm -rf conftest*
10319 eval "ac_cv_lib_$ac_lib_var=yes"
10320else
10321 echo "configure: failed program was:" >&5
10322 cat conftest.$ac_ext >&5
10323 rm -rf conftest*
10324 eval "ac_cv_lib_$ac_lib_var=no"
10325fi
10326rm -f conftest*
10327LIBS="$ac_save_LIBS"
10328
10329fi
10330if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10331 echo "$ac_t""yes" 1>&6
ab9b9eab 10332 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
10333else
10334 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10335fi
10336
10337 fi
10338 fi
10339
10340 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 10341 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
10342 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10343 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10344 # check for ICE first), but we must link in the order -lSM -lICE or
10345 # we get undefined symbols. So assume we have SM if we have ICE.
10346 # These have to be linked with before -lX11, unlike the other
10347 # libraries we check for below, so use a different variable.
698dcdb6
VZ
10348 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10349 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3e44f09d 10350echo "configure:10351: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
10351ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10352if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10353 echo $ac_n "(cached) $ac_c" 1>&6
10354else
10355 ac_save_LIBS="$LIBS"
ab9b9eab 10356LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 10357cat > conftest.$ac_ext <<EOF
3e44f09d 10358#line 10359 "configure"
ab9b9eab
VZ
10359#include "confdefs.h"
10360/* Override any gcc2 internal prototype to avoid an error. */
10361/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10362 builtin and then its argument prototype would still apply. */
10363char IceConnectionNumber();
10364
10365int main() {
10366IceConnectionNumber()
10367; return 0; }
10368EOF
3e44f09d 10369if { (eval echo configure:10370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10370 rm -rf conftest*
10371 eval "ac_cv_lib_$ac_lib_var=yes"
10372else
10373 echo "configure: failed program was:" >&5
10374 cat conftest.$ac_ext >&5
10375 rm -rf conftest*
10376 eval "ac_cv_lib_$ac_lib_var=no"
10377fi
10378rm -f conftest*
10379LIBS="$ac_save_LIBS"
10380
10381fi
10382if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10383 echo "$ac_t""yes" 1>&6
ab9b9eab 10384 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
10385else
10386 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10387fi
10388
698dcdb6 10389 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
10390
10391fi
10392
1e6feb95
VZ
10393 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10394 LDFLAGS="$LDFLAGS $X_LIBS"
ab9b9eab 10395
1e6feb95
VZ
10396 if test "$wxUSE_MOTIF" = 1; then
10397 if test "$no_x" = "yes"; then
10398 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10399 fi
ab9b9eab 10400
1e6feb95
VZ
10401 GUI_TK_LIBRARY="$X_LIBS"
10402 TOOLKIT_INCLUDE="$X_CFLAGS"
ab9b9eab 10403
1e6feb95 10404 AFMINSTALL=afminstall
dad6c0ea 10405
1e6feb95
VZ
10406
10407 COMPILED_X_PROGRAM=0
cd6d6d5b 10408
1e6feb95 10409 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
3e44f09d 10410echo "configure:10411: checking for Motif/Lesstif headers" >&5
1e6feb95 10411
ab9b9eab
VZ
10412ac_find_includes=
10413for ac_dir in $SEARCH_INCLUDE;
10414 do
10415 if test -f "$ac_dir/Xm/Xm.h"; then
10416 ac_find_includes=$ac_dir
10417 break
10418 fi
10419 done
10420
1e6feb95
VZ
10421 if test "$ac_find_includes" != "" ; then
10422 echo "$ac_t""found $ac_find_includes" 1>&6
10423 else
10424 cat > conftest.$ac_ext <<EOF
3e44f09d 10425#line 10426 "configure"
cd6d6d5b
VZ
10426#include "confdefs.h"
10427
1e6feb95
VZ
10428 #include <Xm/Xm.h>
10429
698dcdb6 10430int main() {
cd6d6d5b 10431
1e6feb95 10432 int version;
cd6d6d5b 10433
1e6feb95
VZ
10434 version = xmUseVersion;
10435
698dcdb6
VZ
10436; return 0; }
10437EOF
3e44f09d 10438if { (eval echo configure:10439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10439 rm -rf conftest*
10440
1e6feb95
VZ
10441 echo "$ac_t""found in default search path" 1>&6
10442 COMPILED_X_PROGRAM=1
10443
cd6d6d5b 10444else
698dcdb6
VZ
10445 echo "configure: failed program was:" >&5
10446 cat conftest.$ac_ext >&5
10447 rm -rf conftest*
10448
1e6feb95
VZ
10449 echo "$ac_t""no" 1>&6
10450 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10451
698dcdb6 10452
cd6d6d5b 10453fi
698dcdb6 10454rm -f conftest*
1e6feb95 10455 fi
ab9b9eab 10456
1e6feb95
VZ
10457 if test "$COMPILED_X_PROGRAM" = 0; then
10458 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
3e44f09d 10459echo "configure:10460: checking for Motif/Lesstif library" >&5
1e6feb95 10460
ab9b9eab
VZ
10461ac_find_libraries=
10462for ac_dir in $SEARCH_LIB;
10463 do
10464 for ac_extension in a so sl; do
10465 if test -f "$ac_dir/libXm.$ac_extension"; then
10466 ac_find_libraries=$ac_dir
10467 break 2
10468 fi
10469 done
10470 done
10471
1e6feb95
VZ
10472 if test "$ac_find_libraries" != "" ; then
10473
ab9b9eab
VZ
10474 ac_path_to_include=$ac_find_includes
10475 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10476 result=$?
10477 if test $result = 0; then
10478 ac_path_to_include=""
10479 else
10480 ac_path_to_include="-I$ac_find_includes"
10481 fi
10482
1e6feb95 10483
ab9b9eab
VZ
10484 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10485 result=$?
10486 if test $result = 0; then
10487 ac_path_to_link=""
10488 else
10489 ac_path_to_link="-L$ac_find_libraries"
10490 fi
10491
698dcdb6 10492
1e6feb95
VZ
10493 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10494 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10495 echo "$ac_t""found at $ac_find_libraries" 1>&6
10496 else
10497 cat > conftest.$ac_ext <<EOF
3e44f09d 10498#line 10499 "configure"
cd6d6d5b 10499#include "confdefs.h"
ab9b9eab 10500
1e6feb95
VZ
10501 #include <Xm/Xm.h>
10502
698dcdb6 10503int main() {
ab9b9eab 10504
1e6feb95 10505 int version;
ab9b9eab 10506
1e6feb95
VZ
10507 version = xmUseVersion;
10508
698dcdb6
VZ
10509; return 0; }
10510EOF
3e44f09d 10511if { (eval echo configure:10512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10512 rm -rf conftest*
10513
1e6feb95
VZ
10514 echo "$ac_t""found in default search path" 1>&6
10515 COMPILED_X_PROGRAM=1
10516
cd6d6d5b 10517else
698dcdb6
VZ
10518 echo "configure: failed program was:" >&5
10519 cat conftest.$ac_ext >&5
10520 rm -rf conftest*
10521
1e6feb95
VZ
10522 echo "$ac_t""no" 1>&6
10523 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10524
698dcdb6 10525
cd6d6d5b 10526fi
698dcdb6 10527rm -f conftest*
1e6feb95 10528 fi
cd6d6d5b 10529 fi
ab9b9eab 10530
1e6feb95
VZ
10531
10532 XPM_LINK=""
10533 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
3e44f09d 10534echo "configure:10535: checking for Xpm library" >&5
1e6feb95 10535
ab9b9eab
VZ
10536ac_find_libraries=
10537for ac_dir in $SEARCH_LIB;
10538 do
10539 for ac_extension in a so sl; do
10540 if test -f "$ac_dir/libXpm.$ac_extension"; then
10541 ac_find_libraries=$ac_dir
10542 break 2
10543 fi
10544 done
10545 done
10546
1e6feb95
VZ
10547 if test "$ac_find_libraries" != "" ; then
10548
ab9b9eab
VZ
10549 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10550 result=$?
10551 if test $result = 0; then
10552 ac_path_to_link=""
10553 else
10554 ac_path_to_link="-L$ac_find_libraries"
10555 fi
10556
1e6feb95
VZ
10557 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10558 XPM_LINK="-lXpm "
10559 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
10560#define wxHAVE_LIB_XPM 1
10561EOF
10562
1e6feb95
VZ
10563 echo "$ac_t""found at $ac_find_libraries" 1>&6
10564 else
10565 cat > conftest.$ac_ext <<EOF
3e44f09d 10566#line 10567 "configure"
cd6d6d5b
VZ
10567#include "confdefs.h"
10568
1e6feb95
VZ
10569 #include <X11/xpm.h>
10570
698dcdb6 10571int main() {
cd6d6d5b 10572
1e6feb95 10573 int version;
cd6d6d5b 10574
1e6feb95
VZ
10575 version = XpmLibraryVersion();
10576
698dcdb6
VZ
10577; return 0; }
10578EOF
3e44f09d 10579if { (eval echo configure:10580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10580 rm -rf conftest*
10581
1e6feb95
VZ
10582 XPM_LINK="-lXpm "
10583 cat >> confdefs.h <<\EOF
3ace2e6d
SN
10584#define wxHAVE_LIB_XPM 1
10585EOF
10586
1e6feb95
VZ
10587 echo "$ac_t""found in default search path" 1>&6
10588 COMPILED_X_PROGRAM=0
10589
cd6d6d5b 10590else
698dcdb6
VZ
10591 echo "configure: failed program was:" >&5
10592 cat conftest.$ac_ext >&5
10593 rm -rf conftest*
10594
1e6feb95
VZ
10595 echo "$ac_t""no" 1>&6
10596 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10597
698dcdb6 10598
cd6d6d5b 10599fi
698dcdb6 10600rm -f conftest*
1e6feb95
VZ
10601 fi
10602
10603 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
10604 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
10605 TOOLKIT=MOTIF
10606 GUIDIST=MOTIF_DIST
ab9b9eab
VZ
10607 fi
10608
1e6feb95
VZ
10609 if test "$wxUSE_MAC" = 1; then
10610 TOOLKIT=MAC
10611 GUIDIST=MACX_DIST
10612 fi
10f2d63a 10613
1e6feb95
VZ
10614 if test "$wxUSE_PM" = 1; then
10615 TOOLKIT=PM
10616 GUIDIST=GTK_DIST
10617 fi
b4085ce6 10618
1e6feb95
VZ
10619 if test "$TOOLKIT" != "PM" ; then
10620 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10621 else
10622 TOOLKIT_DIR="os2"
10623 fi
e07802fc 10624
1e6feb95 10625 TOOLKIT_NAME="${TOOLKIT_DIR}"
10f2d63a 10626
1e6feb95
VZ
10627 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10628
10629 if test "$TOOLKIT_NAME" = "motif"; then
10630 TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10631 fi
10632
10633 if test "$wxUSE_UNIVERSAL" = "yes"; then
10634 TOOLKIT_NAME="${TOOLKIT_NAME}univ"
10635 UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
10636 TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}"
10637 SETUPH_DIR="univ"
f6bcfd97 10638 else
1e6feb95
VZ
10639 SETUPH_DIR="${TOOLKIT_DIR}"
10640 fi
10641
10642 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10643 TOOLKIT_NAME="${TOOLKIT_NAME}d"
f6bcfd97
BP
10644 fi
10645
2224580a 10646 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
1e6feb95
VZ
10647 if test "$wxUSE_UNIVERSAL" = "yes"; then
10648 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__"
10649 fi
10f2d63a 10650
f6bcfd97 10651 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10f2d63a 10652
1e6feb95
VZ
10653 if test "$wxUSE_UNIVERSAL" = "yes"; then
10654 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10655 else
10656 ALL_OBJECTS="\$(GUIOBJS)"
10657 fi
10658
10659 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10660
10661 if test "$TOOLKIT" != "MSW"; then
10662 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10663 fi
10664
10665 if test "$wxUSE_HTML" = "yes"; then
10666 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10667 fi
3fcdd07b 10668
1e6feb95
VZ
10669 if test "$TOOLKIT" != "MSW"; then
10670 if test "$wxUSE_ODBC" = "yes" ; then
10671 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10672 fi
3fcdd07b
VZ
10673 fi
10674
831b3152
VZ
10675 if test "x$REGEX_INCLUDE" != "x" ; then
10676 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10677 fi
10678
d9d8273d 10679 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 10680 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
10681 fi
10682 if test "$wxUSE_LIBTIFF" = "yes" ; then
10683 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10684 fi
10685 if test "$wxUSE_LIBPNG" = "yes" ; then
10686 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10687 fi
10688 if test "$wxUSE_ZLIB" = "yes" ; then
10689 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10690 fi
3fed1840
RR
10691 if test "$wxUSE_FREETYPE" = "yes" ; then
10692 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10693 fi
2224580a 10694
1e6feb95
VZ
10695 if test "$wxUSE_UNIVERSAL" = "yes"; then
10696 ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)"
10697 else
10698 ALL_DEPFILES="\$(GUIDEPS)"
10699 fi
10700
10701 ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)"
10702
10703 if test "$TOOLKIT" != "MSW"; then
10704 ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)"
10705 fi
10706
10707 if test "$wxUSE_HTML" = "yes"; then
10708 ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)"
10709 fi
10710
879df073 10711 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
1e6feb95 10712 if test "$wxUSE_UNIVERSAL" = "yes"; then
879df073 10713 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
1e6feb95 10714 fi
2224580a
VZ
10715 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10716 RPM_SPEC="wx\$(TOOLKIT).spec"
10717
10718 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10719 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 10720else
dad6c0ea
VZ
10721 USE_GUI=0
10722
f6bcfd97
BP
10723 TOOLKIT_DIR="base"
10724
10725 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10726 TOOLKIT_NAME="${TOOLKIT_DIR}d"
10727 else
10728 TOOLKIT_NAME="${TOOLKIT_DIR}"
10729 fi
10730
07eb77a6
RL
10731 TOOLKIT_DEF="-D__WXBASE__"
10732
b4085ce6
GD
10733 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
10734 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10f2d63a 10735
a20b6d3a
VZ
10736 if test "$wxUSE_ZLIB" = "yes" ; then
10737 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10738 fi
10739
f6bcfd97 10740 WX_LIBRARY="wx_${TOOLKIT_NAME}"
2224580a 10741
831b3152 10742 PORT_FILES="\${top_srcdir}/src/files.lst"
2224580a
VZ
10743 RPM_FILES="src/rpmfiles.lst"
10744 RPM_SPEC="wxBase.spec"
10745
10746 GUIDIST="BASE_DIST"
10747 DISTDIR="wxBase"
10f2d63a
VZ
10748fi
10749
10750WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
bdad4e7e 10751WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10f2d63a
VZ
10752
10753WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
bdad4e7e 10754WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10f2d63a
VZ
10755
10756WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
bdad4e7e 10757WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10f2d63a
VZ
10758
10759WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
10760WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
10761WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
bdad4e7e
RR
10762WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
10763WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
10764WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10f2d63a
VZ
10765
10766SHARED_LD=
10767PIC_FLAG=
10768WX_ALL=
10769WX_ALL_INSTALLED=
1d62a8b4 10770BURNT_LIBRARY_NAME=
f6bcfd97 10771WX_TARGET_LIBRARY_SONAME=
10f2d63a 10772
698dcdb6 10773
10f2d63a
VZ
10774if test "$wxUSE_SHARED" = "yes"; then
10775 case "${host}" in
10776 *-hp-hpux* )
10777 if test "$GCC" = yes ; then
69ffe1d2 10778 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
10779 PIC_FLAG="-fPIC"
10780 else
f6bcfd97
BP
10781 LDFLAGS="-L/usr/lib"
10782
10f2d63a
VZ
10783 SHARED_LD="${CXX} -b -o"
10784 PIC_FLAG="+Z"
10785 fi
f6bcfd97
BP
10786 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
10787 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
c661ecca 10788 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 10789 WX_ALL_INSTALLED="preinstall_gl"
c661ecca
RR
10790 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
10791 else
10792 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
10793 fi
10f2d63a 10794 ;;
b12915c1
VZ
10795
10796 *-*-linux* )
10f2d63a
VZ
10797 SHARED_LD="${CC} -shared -o"
10798 PIC_FLAG="-fPIC"
00cf1208 10799 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 10800 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
bdad4e7e 10801 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 10802 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 10803 fi
c661ecca
RR
10804 if test "$wxUSE_OPENGL" = "yes"; then
10805 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10806 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10807 else
10808 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10809 WX_ALL="CREATE_LINKS"
422107f9 10810 fi
00cf1208 10811 ;;
10f2d63a
VZ
10812 *-*-irix5* | *-*-irix6* )
10813 if test "$GCC" = yes ; then
10814 SHARED_LD="${CC} -shared -o"
10815 PIC_FLAG="-fPIC"
10816 else
10817 SHARED_LD="${CXX} -shared -o"
10818 fi
c661ecca
RR
10819 if test "$wxUSE_OPENGL" = "yes"; then
10820 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10821 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10822 else
10823 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10824 WX_ALL="CREATE_LINKS"
422107f9 10825 fi
10f2d63a
VZ
10826 ;;
10827 *-*-solaris2* )
10828 if test "$GCC" = yes ; then
10829 SHARED_LD="${CC} -shared -o"
10830 PIC_FLAG="-fPIC"
f6bcfd97
BP
10831
10832 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
10833 else
10834 SHARED_LD="${CXX} -G -o"
10835 PIC_FLAG="-KPIC"
10836 fi
c661ecca
RR
10837 if test "$wxUSE_OPENGL" = "yes"; then
10838 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10839 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10840 else
10841 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10842 WX_ALL="CREATE_LINKS"
10843 fi
10f2d63a
VZ
10844 ;;
10845 *-*-sunos4* )
10846 SHARED_LD="${CC} -shared -o"
10847 PIC_FLAG="-fPIC"
10848 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10849 WX_ALL="CREATE_LINKS"
10850 ;;
95c8801c 10851 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
10f2d63a
VZ
10852 SHARED_LD="${CC} -shared -o"
10853 PIC_FLAG="-fPIC"
37d403aa
JS
10854 if test "$wxUSE_OPENGL" = "yes"; then
10855 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10856 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10857 else
10858 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10859 WX_ALL="CREATE_LINKS"
10860 fi
10f2d63a 10861 ;;
b4085ce6 10862 *-*-darwin* )
ea5999b9
GD
10863 SHARED_LD="${CXX} -dynamiclib -o"
10864 PIC_FLAG="-dynamic -fPIC"
b4085ce6
GD
10865 if test "$wxUSE_OPENGL" = "yes"; then
10866 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10867 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10868 else
10869 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10870 WX_ALL="CREATE_LINKS"
10871 fi
1e6feb95
VZ
10872 WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
10873 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10874 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10875 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
10876 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
10877 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
10878 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
10879 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
10880 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
b4085ce6 10881 ;;
10f2d63a
VZ
10882 *-*-osf* )
10883 SHARED_LD="${CXX} -shared -o"
10884 PIC_FLAG="-fPIC"
10885 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10886 WX_ALL="CREATE_LINKS"
10887 ;;
10888 *-*-dgux5* )
10889 SHARED_LD="${CXX} -shared -o"
10890 PIC_FLAG="-fPIC"
10891 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10892 WX_ALL="CREATE_LINKS"
10893 ;;
10894 *-*-sysv5* )
10895 SHARED_LD="${CC} -shared -o"
10896 PIC_FLAG="-fPIC"
10897 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10898 WX_ALL="CREATE_LINKS"
10899 ;;
10900 *-*-aix* )
10901 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10902 WX_ALL=${WX_LIBRARY_NAME_SHARED}
10903 ;;
1c8183e2 10904 *-*-cygwin* )
10f2d63a 10905 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 10906 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
10907 if test "$wxUSE_OPENGL" = "yes"; then
10908 WX_ALL_INSTALLED="preinstall_gl"
10909 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10910 else
10911 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10912 fi
10f2d63a 10913 ;;
b12915c1 10914 *-*-mingw32* )
10f2d63a 10915 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 10916 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
10917 if test "$wxUSE_OPENGL" = "yes"; then
10918 WX_ALL_INSTALLED="preinstall_gl"
10919 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10920 else
10921 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10922 fi
10f2d63a
VZ
10923 ;;
10924 *-pc-os2_emx )
e07802fc
VZ
10925 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10926 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 10927 ;;
b12915c1 10928 *-*-beos* )
e2b8b066 10929 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
10930 PIC_FLAG="-fPIC"
10931 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10932 WX_ALL="CREATE_LINKS"
10933 ;;
10f2d63a 10934 *)
698dcdb6 10935 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
10936 esac
10937
10938 if test "x$WX_TARGET_LIBRARY" = "x"; then
10939 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 10940 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 10941 fi
3711412e 10942 WX_TARGET_LIBRARY_TYPE="so"
10f2d63a
VZ
10943else
10944 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 10945 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
10946
10947 if test "$wxUSE_OPENGL" = "yes"; then
10948 WX_ALL_INSTALLED="preinstall_gl"
10949 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10950 else
10951 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10952 fi
10953
10954 if test "$wxUSE_GUI" = "no"; then
10955 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
10956 fi
10957
3711412e 10958 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a
VZ
10959fi
10960
698dcdb6
VZ
10961
10962for ac_hdr in strings.h
10f2d63a 10963do
698dcdb6
VZ
10964ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10965echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
831b3152 10966echo "configure:10967: checking for $ac_hdr" >&5
698dcdb6
VZ
10967if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10968 echo $ac_n "(cached) $ac_c" 1>&6
10969else
10970 cat > conftest.$ac_ext <<EOF
831b3152 10971#line 10972 "configure"
10f2d63a 10972#include "confdefs.h"
698dcdb6
VZ
10973#include <$ac_hdr>
10974EOF
10975ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
831b3152 10976{ (eval echo configure:10977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10977ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10978if test -z "$ac_err"; then
10979 rm -rf conftest*
10980 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 10981else
698dcdb6
VZ
10982 echo "$ac_err" >&5
10983 echo "configure: failed program was:" >&5
10f2d63a 10984 cat conftest.$ac_ext >&5
698dcdb6
VZ
10985 rm -rf conftest*
10986 eval "ac_cv_header_$ac_safe=no"
10f2d63a 10987fi
698dcdb6 10988rm -f conftest*
10f2d63a 10989fi
698dcdb6
VZ
10990if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10991 echo "$ac_t""yes" 1>&6
10992 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10993 cat >> confdefs.h <<EOF
10994#define $ac_tr_hdr 1
10f2d63a 10995EOF
698dcdb6
VZ
10996
10997else
10998 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10999fi
11000done
11001
698dcdb6 11002for ac_hdr in stdlib.h
9cfadba2 11003do
698dcdb6
VZ
11004ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11005echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
831b3152 11006echo "configure:11007: checking for $ac_hdr" >&5
698dcdb6
VZ
11007if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11008 echo $ac_n "(cached) $ac_c" 1>&6
11009else
11010 cat > conftest.$ac_ext <<EOF
831b3152 11011#line 11012 "configure"
9cfadba2 11012#include "confdefs.h"
698dcdb6
VZ
11013#include <$ac_hdr>
11014EOF
11015ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
831b3152 11016{ (eval echo configure:11017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11017ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11018if test -z "$ac_err"; then
11019 rm -rf conftest*
11020 eval "ac_cv_header_$ac_safe=yes"
6232543b 11021else
698dcdb6
VZ
11022 echo "$ac_err" >&5
11023 echo "configure: failed program was:" >&5
9cfadba2 11024 cat conftest.$ac_ext >&5
698dcdb6
VZ
11025 rm -rf conftest*
11026 eval "ac_cv_header_$ac_safe=no"
9cfadba2 11027fi
698dcdb6 11028rm -f conftest*
9cfadba2 11029fi
698dcdb6
VZ
11030if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11031 echo "$ac_t""yes" 1>&6
11032 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11033 cat >> confdefs.h <<EOF
11034#define $ac_tr_hdr 1
9cfadba2 11035EOF
698dcdb6
VZ
11036
11037else
11038 echo "$ac_t""no" 1>&6
9cfadba2
VZ
11039fi
11040done
10f2d63a 11041
698dcdb6 11042for ac_hdr in unistd.h
10f2d63a 11043do
698dcdb6
VZ
11044ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11045echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
831b3152 11046echo "configure:11047: checking for $ac_hdr" >&5
698dcdb6
VZ
11047if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11048 echo $ac_n "(cached) $ac_c" 1>&6
11049else
11050 cat > conftest.$ac_ext <<EOF
831b3152 11051#line 11052 "configure"
10f2d63a 11052#include "confdefs.h"
698dcdb6
VZ
11053#include <$ac_hdr>
11054EOF
11055ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
831b3152 11056{ (eval echo configure:11057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11057ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11058if test -z "$ac_err"; then
11059 rm -rf conftest*
11060 eval "ac_cv_header_$ac_safe=yes"
6232543b 11061else
698dcdb6
VZ
11062 echo "$ac_err" >&5
11063 echo "configure: failed program was:" >&5
10f2d63a 11064 cat conftest.$ac_ext >&5
698dcdb6
VZ
11065 rm -rf conftest*
11066 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11067fi
698dcdb6 11068rm -f conftest*
10f2d63a 11069fi
698dcdb6
VZ
11070if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11071 echo "$ac_t""yes" 1>&6
11072 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11073 cat >> confdefs.h <<EOF
11074#define $ac_tr_hdr 1
10f2d63a 11075EOF
698dcdb6
VZ
11076
11077else
11078 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11079fi
11080done
11081
698dcdb6 11082for ac_hdr in wchar.h
10f2d63a 11083do
698dcdb6
VZ
11084ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11085echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
831b3152 11086echo "configure:11087: checking for $ac_hdr" >&5
698dcdb6
VZ
11087if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11088 echo $ac_n "(cached) $ac_c" 1>&6
11089else
11090 cat > conftest.$ac_ext <<EOF
831b3152 11091#line 11092 "configure"
10f2d63a 11092#include "confdefs.h"
698dcdb6
VZ
11093#include <$ac_hdr>
11094EOF
11095ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
831b3152 11096{ (eval echo configure:11097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11097ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11098if test -z "$ac_err"; then
11099 rm -rf conftest*
11100 eval "ac_cv_header_$ac_safe=yes"
6f72b082 11101else
698dcdb6
VZ
11102 echo "$ac_err" >&5
11103 echo "configure: failed program was:" >&5
6f72b082 11104 cat conftest.$ac_ext >&5
698dcdb6
VZ
11105 rm -rf conftest*
11106 eval "ac_cv_header_$ac_safe=no"
6f72b082 11107fi
698dcdb6 11108rm -f conftest*
6f72b082 11109fi
698dcdb6
VZ
11110if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11111 echo "$ac_t""yes" 1>&6
11112 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11113 cat >> confdefs.h <<EOF
11114#define $ac_tr_hdr 1
6f72b082 11115EOF
698dcdb6
VZ
11116
11117else
11118 echo "$ac_t""no" 1>&6
6f72b082
OK
11119fi
11120done
11121
698dcdb6 11122for ac_hdr in wcstr.h
6f72b082 11123do
698dcdb6
VZ
11124ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11125echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
831b3152 11126echo "configure:11127: checking for $ac_hdr" >&5
698dcdb6
VZ
11127if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11128 echo $ac_n "(cached) $ac_c" 1>&6
11129else
11130 cat > conftest.$ac_ext <<EOF
831b3152 11131#line 11132 "configure"
6f72b082 11132#include "confdefs.h"
698dcdb6
VZ
11133#include <$ac_hdr>
11134EOF
11135ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
831b3152 11136{ (eval echo configure:11137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11137ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11138if test -z "$ac_err"; then
11139 rm -rf conftest*
11140 eval "ac_cv_header_$ac_safe=yes"
6f72b082 11141else
698dcdb6
VZ
11142 echo "$ac_err" >&5
11143 echo "configure: failed program was:" >&5
6f72b082 11144 cat conftest.$ac_ext >&5
698dcdb6
VZ
11145 rm -rf conftest*
11146 eval "ac_cv_header_$ac_safe=no"
6f72b082 11147fi
698dcdb6 11148rm -f conftest*
6f72b082 11149fi
698dcdb6
VZ
11150if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11151 echo "$ac_t""yes" 1>&6
11152 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11153 cat >> confdefs.h <<EOF
11154#define $ac_tr_hdr 1
6f72b082 11155EOF
698dcdb6
VZ
11156
11157else
11158 echo "$ac_t""no" 1>&6
6f72b082
OK
11159fi
11160done
11161
698dcdb6 11162for ac_hdr in fnmatch.h
6f72b082 11163do
698dcdb6
VZ
11164ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11165echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
831b3152 11166echo "configure:11167: checking for $ac_hdr" >&5
698dcdb6
VZ
11167if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11168 echo $ac_n "(cached) $ac_c" 1>&6
11169else
11170 cat > conftest.$ac_ext <<EOF
831b3152 11171#line 11172 "configure"
6f72b082 11172#include "confdefs.h"
698dcdb6
VZ
11173#include <$ac_hdr>
11174EOF
11175ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
831b3152 11176{ (eval echo configure:11177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11177ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11178if test -z "$ac_err"; then
11179 rm -rf conftest*
11180 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11181else
698dcdb6
VZ
11182 echo "$ac_err" >&5
11183 echo "configure: failed program was:" >&5
10f2d63a 11184 cat conftest.$ac_ext >&5
698dcdb6
VZ
11185 rm -rf conftest*
11186 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11187fi
698dcdb6 11188rm -f conftest*
10f2d63a 11189fi
698dcdb6
VZ
11190if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11191 echo "$ac_t""yes" 1>&6
11192 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11193 cat >> confdefs.h <<EOF
11194#define $ac_tr_hdr 1
10f2d63a 11195EOF
698dcdb6
VZ
11196
11197else
11198 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11199fi
11200done
11201
698dcdb6 11202for ac_hdr in iconv.h
0fb0dd83 11203do
698dcdb6
VZ
11204ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11205echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
831b3152 11206echo "configure:11207: checking for $ac_hdr" >&5
698dcdb6
VZ
11207if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11208 echo $ac_n "(cached) $ac_c" 1>&6
11209else
11210 cat > conftest.$ac_ext <<EOF
831b3152 11211#line 11212 "configure"
0fb0dd83 11212#include "confdefs.h"
698dcdb6
VZ
11213#include <$ac_hdr>
11214EOF
11215ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
831b3152 11216{ (eval echo configure:11217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11217ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11218if test -z "$ac_err"; then
11219 rm -rf conftest*
11220 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 11221else
698dcdb6
VZ
11222 echo "$ac_err" >&5
11223 echo "configure: failed program was:" >&5
0fb0dd83 11224 cat conftest.$ac_ext >&5
698dcdb6
VZ
11225 rm -rf conftest*
11226 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 11227fi
698dcdb6 11228rm -f conftest*
0fb0dd83 11229fi
698dcdb6
VZ
11230if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11231 echo "$ac_t""yes" 1>&6
11232 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11233 cat >> confdefs.h <<EOF
11234#define $ac_tr_hdr 1
0fb0dd83 11235EOF
698dcdb6
VZ
11236
11237else
11238 echo "$ac_t""no" 1>&6
0fb0dd83
RR
11239fi
11240done
11241
698dcdb6 11242for ac_hdr in langinfo.h
1f8ae82f 11243do
698dcdb6
VZ
11244ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11245echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
831b3152 11246echo "configure:11247: checking for $ac_hdr" >&5
698dcdb6
VZ
11247if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11248 echo $ac_n "(cached) $ac_c" 1>&6
11249else
11250 cat > conftest.$ac_ext <<EOF
831b3152 11251#line 11252 "configure"
1f8ae82f 11252#include "confdefs.h"
698dcdb6
VZ
11253#include <$ac_hdr>
11254EOF
11255ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
831b3152 11256{ (eval echo configure:11257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11257ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11258if test -z "$ac_err"; then
11259 rm -rf conftest*
11260 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 11261else
698dcdb6
VZ
11262 echo "$ac_err" >&5
11263 echo "configure: failed program was:" >&5
1f8ae82f 11264 cat conftest.$ac_ext >&5
698dcdb6
VZ
11265 rm -rf conftest*
11266 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 11267fi
698dcdb6 11268rm -f conftest*
1f8ae82f 11269fi
698dcdb6
VZ
11270if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11271 echo "$ac_t""yes" 1>&6
11272 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11273 cat >> confdefs.h <<EOF
11274#define $ac_tr_hdr 1
1f8ae82f 11275EOF
698dcdb6
VZ
11276
11277else
11278 echo "$ac_t""no" 1>&6
1f8ae82f
GD
11279fi
11280done
11281
698dcdb6 11282
73fd4a60
VZ
11283if test "$wxUSE_GUI" = "yes"; then
11284 if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 11285 for ac_hdr in X11/XKBlib.h
10f2d63a 11286do
698dcdb6
VZ
11287ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11288echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
831b3152 11289echo "configure:11290: checking for $ac_hdr" >&5
698dcdb6
VZ
11290if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11291 echo $ac_n "(cached) $ac_c" 1>&6
11292else
11293 cat > conftest.$ac_ext <<EOF
831b3152 11294#line 11295 "configure"
10f2d63a 11295#include "confdefs.h"
698dcdb6
VZ
11296#include <$ac_hdr>
11297EOF
11298ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
831b3152 11299{ (eval echo configure:11300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11300ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11301if test -z "$ac_err"; then
11302 rm -rf conftest*
11303 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11304else
698dcdb6
VZ
11305 echo "$ac_err" >&5
11306 echo "configure: failed program was:" >&5
10f2d63a 11307 cat conftest.$ac_ext >&5
698dcdb6
VZ
11308 rm -rf conftest*
11309 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11310fi
698dcdb6 11311rm -f conftest*
10f2d63a 11312fi
698dcdb6
VZ
11313if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11314 echo "$ac_t""yes" 1>&6
11315 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11316 cat >> confdefs.h <<EOF
11317#define $ac_tr_hdr 1
10f2d63a 11318EOF
698dcdb6
VZ
11319
11320else
11321 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11322fi
11323done
11324
73fd4a60 11325 fi
10f2d63a
VZ
11326fi
11327
3e44f09d 11328if test "$USE_WIN32" = 1; then
29fd3c0c
VS
11329 for ac_hdr in w32api.h
11330do
11331ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11332echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
831b3152 11333echo "configure:11334: checking for $ac_hdr" >&5
29fd3c0c
VS
11334if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11335 echo $ac_n "(cached) $ac_c" 1>&6
11336else
11337 cat > conftest.$ac_ext <<EOF
831b3152 11338#line 11339 "configure"
29fd3c0c
VS
11339#include "confdefs.h"
11340#include <$ac_hdr>
11341EOF
11342ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
831b3152 11343{ (eval echo configure:11344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
11344ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11345if test -z "$ac_err"; then
11346 rm -rf conftest*
11347 eval "ac_cv_header_$ac_safe=yes"
11348else
11349 echo "$ac_err" >&5
11350 echo "configure: failed program was:" >&5
11351 cat conftest.$ac_ext >&5
11352 rm -rf conftest*
11353 eval "ac_cv_header_$ac_safe=no"
11354fi
11355rm -f conftest*
11356fi
11357if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11358 echo "$ac_t""yes" 1>&6
11359 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11360 cat >> confdefs.h <<EOF
11361#define $ac_tr_hdr 1
11362EOF
11363
11364else
11365 echo "$ac_t""no" 1>&6
11366fi
11367done
11368
11369fi
11370
698dcdb6
VZ
11371
11372echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
831b3152 11373echo "configure:11374: checking for ANSI C header files" >&5
698dcdb6
VZ
11374if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11375 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11376else
698dcdb6 11377 cat > conftest.$ac_ext <<EOF
831b3152 11378#line 11379 "configure"
10f2d63a
VZ
11379#include "confdefs.h"
11380#include <stdlib.h>
11381#include <stdarg.h>
11382#include <string.h>
11383#include <float.h>
698dcdb6
VZ
11384EOF
11385ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
831b3152 11386{ (eval echo configure:11387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11387ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11388if test -z "$ac_err"; then
11389 rm -rf conftest*
10f2d63a
VZ
11390 ac_cv_header_stdc=yes
11391else
698dcdb6
VZ
11392 echo "$ac_err" >&5
11393 echo "configure: failed program was:" >&5
10f2d63a 11394 cat conftest.$ac_ext >&5
698dcdb6 11395 rm -rf conftest*
10f2d63a
VZ
11396 ac_cv_header_stdc=no
11397fi
698dcdb6 11398rm -f conftest*
10f2d63a
VZ
11399
11400if test $ac_cv_header_stdc = yes; then
11401 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 11402cat > conftest.$ac_ext <<EOF
831b3152 11403#line 11404 "configure"
10f2d63a
VZ
11404#include "confdefs.h"
11405#include <string.h>
698dcdb6 11406EOF
10f2d63a
VZ
11407if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11408 egrep "memchr" >/dev/null 2>&1; then
11409 :
11410else
698dcdb6 11411 rm -rf conftest*
10f2d63a
VZ
11412 ac_cv_header_stdc=no
11413fi
11414rm -f conftest*
11415
11416fi
11417
11418if test $ac_cv_header_stdc = yes; then
11419 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 11420cat > conftest.$ac_ext <<EOF
831b3152 11421#line 11422 "configure"
10f2d63a
VZ
11422#include "confdefs.h"
11423#include <stdlib.h>
698dcdb6 11424EOF
10f2d63a
VZ
11425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11426 egrep "free" >/dev/null 2>&1; then
11427 :
11428else
698dcdb6 11429 rm -rf conftest*
10f2d63a
VZ
11430 ac_cv_header_stdc=no
11431fi
11432rm -f conftest*
11433
11434fi
11435
11436if test $ac_cv_header_stdc = yes; then
11437 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 11438if test "$cross_compiling" = yes; then
10f2d63a
VZ
11439 :
11440else
698dcdb6 11441 cat > conftest.$ac_ext <<EOF
831b3152 11442#line 11443 "configure"
10f2d63a
VZ
11443#include "confdefs.h"
11444#include <ctype.h>
698dcdb6
VZ
11445#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11446#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 11447#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
11448int main () { int i; for (i = 0; i < 256; i++)
11449if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11450exit (0); }
11451
11452EOF
831b3152 11453if { (eval echo configure:11454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 11454then
10f2d63a
VZ
11455 :
11456else
698dcdb6
VZ
11457 echo "configure: failed program was:" >&5
11458 cat conftest.$ac_ext >&5
11459 rm -fr conftest*
11460 ac_cv_header_stdc=no
10f2d63a 11461fi
698dcdb6 11462rm -fr conftest*
10f2d63a 11463fi
698dcdb6 11464
10f2d63a
VZ
11465fi
11466fi
1e487827 11467
698dcdb6
VZ
11468echo "$ac_t""$ac_cv_header_stdc" 1>&6
11469if test $ac_cv_header_stdc = yes; then
11470 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11471#define STDC_HEADERS 1
11472EOF
11473
11474fi
11475
698dcdb6 11476echo $ac_n "checking for mode_t""... $ac_c" 1>&6
831b3152 11477echo "configure:11478: checking for mode_t" >&5
698dcdb6
VZ
11478if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11479 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 11480else
698dcdb6 11481 cat > conftest.$ac_ext <<EOF
831b3152 11482#line 11483 "configure"
1e487827 11483#include "confdefs.h"
698dcdb6
VZ
11484#include <sys/types.h>
11485#if STDC_HEADERS
11486#include <stdlib.h>
11487#include <stddef.h>
11488#endif
11489EOF
11490if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11491 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11492 rm -rf conftest*
10f2d63a
VZ
11493 ac_cv_type_mode_t=yes
11494else
698dcdb6
VZ
11495 rm -rf conftest*
11496 ac_cv_type_mode_t=no
703e0a69 11497fi
698dcdb6 11498rm -f conftest*
1e487827 11499
698dcdb6
VZ
11500fi
11501echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11502if test $ac_cv_type_mode_t = no; then
11503 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11504#define mode_t int
11505EOF
11506
11507fi
11508
698dcdb6 11509echo $ac_n "checking for off_t""... $ac_c" 1>&6
831b3152 11510echo "configure:11511: checking for off_t" >&5
698dcdb6
VZ
11511if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11512 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11513else
698dcdb6 11514 cat > conftest.$ac_ext <<EOF
831b3152 11515#line 11516 "configure"
10f2d63a 11516#include "confdefs.h"
698dcdb6
VZ
11517#include <sys/types.h>
11518#if STDC_HEADERS
11519#include <stdlib.h>
11520#include <stddef.h>
11521#endif
11522EOF
11523if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11524 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11525 rm -rf conftest*
10f2d63a
VZ
11526 ac_cv_type_off_t=yes
11527else
698dcdb6
VZ
11528 rm -rf conftest*
11529 ac_cv_type_off_t=no
703e0a69 11530fi
698dcdb6 11531rm -f conftest*
1e487827 11532
698dcdb6
VZ
11533fi
11534echo "$ac_t""$ac_cv_type_off_t" 1>&6
11535if test $ac_cv_type_off_t = no; then
11536 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11537#define off_t long
11538EOF
11539
11540fi
11541
698dcdb6 11542echo $ac_n "checking for pid_t""... $ac_c" 1>&6
831b3152 11543echo "configure:11544: checking for pid_t" >&5
698dcdb6
VZ
11544if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11545 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11546else
698dcdb6 11547 cat > conftest.$ac_ext <<EOF
831b3152 11548#line 11549 "configure"
10f2d63a 11549#include "confdefs.h"
698dcdb6
VZ
11550#include <sys/types.h>
11551#if STDC_HEADERS
11552#include <stdlib.h>
11553#include <stddef.h>
11554#endif
11555EOF
11556if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11557 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11558 rm -rf conftest*
10f2d63a
VZ
11559 ac_cv_type_pid_t=yes
11560else
698dcdb6
VZ
11561 rm -rf conftest*
11562 ac_cv_type_pid_t=no
703e0a69 11563fi
698dcdb6 11564rm -f conftest*
1e487827 11565
698dcdb6
VZ
11566fi
11567echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11568if test $ac_cv_type_pid_t = no; then
11569 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11570#define pid_t int
11571EOF
11572
11573fi
11574
698dcdb6 11575echo $ac_n "checking for size_t""... $ac_c" 1>&6
831b3152 11576echo "configure:11577: checking for size_t" >&5
698dcdb6
VZ
11577if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11578 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11579else
698dcdb6 11580 cat > conftest.$ac_ext <<EOF
831b3152 11581#line 11582 "configure"
10f2d63a 11582#include "confdefs.h"
698dcdb6
VZ
11583#include <sys/types.h>
11584#if STDC_HEADERS
11585#include <stdlib.h>
11586#include <stddef.h>
11587#endif
11588EOF
11589if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11590 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11591 rm -rf conftest*
10f2d63a
VZ
11592 ac_cv_type_size_t=yes
11593else
698dcdb6
VZ
11594 rm -rf conftest*
11595 ac_cv_type_size_t=no
703e0a69 11596fi
698dcdb6 11597rm -f conftest*
1e487827 11598
698dcdb6
VZ
11599fi
11600echo "$ac_t""$ac_cv_type_size_t" 1>&6
11601if test $ac_cv_type_size_t = no; then
11602 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11603#define size_t unsigned
11604EOF
11605
11606fi
11607
698dcdb6 11608echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
831b3152 11609echo "configure:11610: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
11610if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
11611 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11612else
698dcdb6 11613 cat > conftest.$ac_ext <<EOF
831b3152 11614#line 11615 "configure"
10f2d63a
VZ
11615#include "confdefs.h"
11616#include <sys/types.h>
698dcdb6 11617EOF
10f2d63a
VZ
11618if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11619 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 11620 rm -rf conftest*
10f2d63a
VZ
11621 ac_cv_type_uid_t=yes
11622else
698dcdb6 11623 rm -rf conftest*
10f2d63a
VZ
11624 ac_cv_type_uid_t=no
11625fi
11626rm -f conftest*
11627
11628fi
1e487827 11629
698dcdb6
VZ
11630echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11631if test $ac_cv_type_uid_t = no; then
11632 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11633#define uid_t int
11634EOF
11635
698dcdb6 11636 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11637#define gid_t int
11638EOF
11639
11640fi
11641
1e487827 11642
698dcdb6 11643echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
831b3152 11644echo "configure:11645: checking for wchar_t" >&5
698dcdb6
VZ
11645if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
11646 echo $ac_n "(cached) $ac_c" 1>&6
11647else
11648
11649 cat > conftest.$ac_ext <<EOF
831b3152 11650#line 11651 "configure"
0046ff7c
VS
11651#include "confdefs.h"
11652#include <wchar.h>
698dcdb6 11653int main() {
0046ff7c 11654
d836ee96
VZ
11655 wchar_t wc, *ws;
11656 wc = L'a';
11657 ws = L"Hello, world!";
698dcdb6
VZ
11658
11659; return 0; }
11660EOF
831b3152 11661if { (eval echo configure:11662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11662 rm -rf conftest*
1f8ae82f
GD
11663 wx_cv_type_wchar_t=yes
11664else
698dcdb6
VZ
11665 echo "configure: failed program was:" >&5
11666 cat conftest.$ac_ext >&5
11667 rm -rf conftest*
11668 cat > conftest.$ac_ext <<EOF
831b3152 11669#line 11670 "configure"
1f8ae82f
GD
11670#include "confdefs.h"
11671#include <stdlib.h>
698dcdb6 11672int main() {
1f8ae82f 11673
d836ee96
VZ
11674 wchar_t wc, *ws;
11675 wc = L'a';
11676 ws = L"Hello, world!";
698dcdb6
VZ
11677
11678; return 0; }
11679EOF
831b3152 11680if { (eval echo configure:11681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11681 rm -rf conftest*
0046ff7c
VS
11682 wx_cv_type_wchar_t=yes
11683else
698dcdb6
VZ
11684 echo "configure: failed program was:" >&5
11685 cat conftest.$ac_ext >&5
11686 rm -rf conftest*
11687 wx_cv_type_wchar_t=no
0046ff7c 11688fi
698dcdb6 11689rm -f conftest*
d836ee96 11690
6232543b 11691fi
698dcdb6 11692rm -f conftest*
703e0a69 11693
1e487827 11694fi
698dcdb6
VZ
11695
11696echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
11697
11698if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 11699 cat >> confdefs.h <<\EOF
0046ff7c
VS
11700#define wxUSE_WCHAR_T 1
11701EOF
11702
11703fi
11704
19af3b06
VZ
11705
11706ac_ext=C
11707# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11708ac_cpp='$CXXCPP $CPPFLAGS'
11709ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11710ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11711cross_compiling=$ac_cv_prog_cxx_cross
11712
d836ee96 11713echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
831b3152 11714echo "configure:11715: checking if size_t is unsigned int" >&5
d836ee96
VZ
11715if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
11716 echo $ac_n "(cached) $ac_c" 1>&6
11717else
dd2c8b7c 11718 cat > conftest.$ac_ext <<EOF
831b3152 11719#line 11720 "configure"
d836ee96
VZ
11720#include "confdefs.h"
11721#include <stddef.h>
11722int main() {
11723
dd2c8b7c
VZ
11724 return 0; }
11725
d836ee96 11726 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
11727
11728 int bar() {
d836ee96
VZ
11729
11730; return 0; }
11731EOF
831b3152 11732if { (eval echo configure:11733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
11733 rm -rf conftest*
11734 wx_cv_size_t_is_uint=no
11735else
11736 echo "configure: failed program was:" >&5
11737 cat conftest.$ac_ext >&5
11738 rm -rf conftest*
11739 wx_cv_size_t_is_uint=yes
11740
11741fi
11742rm -f conftest*
11743
11744fi
11745
11746echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
11747
11748if test "$wx_cv_size_t_is_uint" = "yes"; then
11749 cat >> confdefs.h <<\EOF
11750#define wxSIZE_T_IS_UINT 1
11751EOF
11752
11753else
11754 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
831b3152 11755echo "configure:11756: checking if size_t is unsigned long" >&5
d836ee96
VZ
11756if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
11757 echo $ac_n "(cached) $ac_c" 1>&6
11758else
11759 cat > conftest.$ac_ext <<EOF
831b3152 11760#line 11761 "configure"
d836ee96
VZ
11761#include "confdefs.h"
11762#include <stddef.h>
11763int main() {
11764
dd2c8b7c
VZ
11765 return 0; }
11766
d836ee96 11767 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
11768
11769 int bar() {
d836ee96
VZ
11770
11771; return 0; }
11772EOF
831b3152 11773if { (eval echo configure:11774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
11774 rm -rf conftest*
11775 wx_cv_size_t_is_ulong=no
11776else
11777 echo "configure: failed program was:" >&5
11778 cat conftest.$ac_ext >&5
11779 rm -rf conftest*
11780 wx_cv_size_t_is_ulong=yes
11781
11782fi
11783rm -f conftest*
11784
11785fi
11786
11787echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
11788
11789 if test "$wx_cv_size_t_is_ulong" = "yes"; then
11790 cat >> confdefs.h <<\EOF
11791#define wxSIZE_T_IS_ULONG 1
11792EOF
11793
11794 fi
11795fi
11796
19af3b06
VZ
11797ac_ext=c
11798# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11799ac_cpp='$CPP $CPPFLAGS'
11800ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11801ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11802cross_compiling=$ac_cv_prog_cc_cross
11803
11804
1e487827 11805
698dcdb6 11806echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
831b3152 11807echo "configure:11808: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
11808if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
11809 echo $ac_n "(cached) $ac_c" 1>&6
11810else
11811
11812 cat > conftest.$ac_ext <<EOF
831b3152 11813#line 11814 "configure"
b12915c1
VZ
11814#include "confdefs.h"
11815#include <pwd.h>
698dcdb6 11816int main() {
b12915c1
VZ
11817
11818 char *p;
11819 struct passwd *pw;
11820 p = pw->pw_gecos;
698dcdb6
VZ
11821
11822; return 0; }
11823EOF
831b3152 11824if { (eval echo configure:11825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
11825 rm -rf conftest*
11826
b12915c1 11827 wx_cv_struct_pw_gecos=yes
698dcdb6 11828
b12915c1 11829else
698dcdb6
VZ
11830 echo "configure: failed program was:" >&5
11831 cat conftest.$ac_ext >&5
11832 rm -rf conftest*
11833
b12915c1 11834 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
11835
11836
6232543b 11837fi
698dcdb6
VZ
11838rm -f conftest*
11839
703e0a69 11840
1e487827 11841fi
698dcdb6
VZ
11842
11843echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 11844
bd3277fe 11845if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 11846 cat >> confdefs.h <<\EOF
bd3277fe
VZ
11847#define HAVE_PW_GECOS 1
11848EOF
11849
11850fi
11851
698dcdb6
VZ
11852
11853echo $ac_n "checking for working const""... $ac_c" 1>&6
831b3152 11854echo "configure:11855: checking for working const" >&5
698dcdb6
VZ
11855if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
11856 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11857else
698dcdb6 11858 cat > conftest.$ac_ext <<EOF
831b3152 11859#line 11860 "configure"
10f2d63a 11860#include "confdefs.h"
698dcdb6
VZ
11861
11862int main() {
11863
11864/* Ultrix mips cc rejects this. */
11865typedef int charset[2]; const charset x;
11866/* SunOS 4.1.1 cc rejects this. */
11867char const *const *ccp;
11868char **p;
11869/* NEC SVR4.0.2 mips cc rejects this. */
11870struct point {int x, y;};
11871static struct point const zero = {0,0};
11872/* AIX XL C 1.02.0.0 rejects this.
11873 It does not let you subtract one const X* pointer from another in an arm
11874 of an if-expression whose if-part is not a constant expression */
11875const char *g = "string";
11876ccp = &g + (g ? g-g : 0);
11877/* HPUX 7.0 cc rejects these. */
11878++ccp;
11879p = (char**) ccp;
11880ccp = (char const *const *) p;
11881{ /* SCO 3.2v4 cc rejects this. */
11882 char *t;
11883 char const *s = 0 ? (char *) 0 : (char const *) 0;
11884
11885 *t++ = 0;
10f2d63a 11886}
698dcdb6
VZ
11887{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11888 int x[] = {25, 17};
11889 const int *foo = &x[0];
11890 ++foo;
703e0a69 11891}
698dcdb6
VZ
11892{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11893 typedef const int *iptr;
11894 iptr p = 0;
11895 ++p;
6232543b 11896}
698dcdb6
VZ
11897{ /* AIX XL C 1.02.0.0 rejects this saying
11898 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11899 struct s { int j; const int *ap[3]; };
11900 struct s *b; b->j = 5;
1e487827 11901}
698dcdb6
VZ
11902{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11903 const int foo = 10;
11904}
11905
11906; return 0; }
11907EOF
831b3152 11908if { (eval echo configure:11909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11909 rm -rf conftest*
10f2d63a
VZ
11910 ac_cv_c_const=yes
11911else
698dcdb6
VZ
11912 echo "configure: failed program was:" >&5
11913 cat conftest.$ac_ext >&5
11914 rm -rf conftest*
11915 ac_cv_c_const=no
10f2d63a 11916fi
698dcdb6 11917rm -f conftest*
10f2d63a 11918fi
1e487827 11919
698dcdb6
VZ
11920echo "$ac_t""$ac_cv_c_const" 1>&6
11921if test $ac_cv_c_const = no; then
11922 cat >> confdefs.h <<\EOF
11923#define const
10f2d63a
VZ
11924EOF
11925
11926fi
11927
698dcdb6 11928echo $ac_n "checking for inline""... $ac_c" 1>&6
831b3152 11929echo "configure:11930: checking for inline" >&5
698dcdb6
VZ
11930if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
11931 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
11932else
11933 ac_cv_c_inline=no
11934for ac_kw in inline __inline__ __inline; do
698dcdb6 11935 cat > conftest.$ac_ext <<EOF
831b3152 11936#line 11937 "configure"
10f2d63a
VZ
11937#include "confdefs.h"
11938
698dcdb6
VZ
11939int main() {
11940} $ac_kw foo() {
11941; return 0; }
11942EOF
831b3152 11943if { (eval echo configure:11944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11944 rm -rf conftest*
10f2d63a
VZ
11945 ac_cv_c_inline=$ac_kw; break
11946else
698dcdb6
VZ
11947 echo "configure: failed program was:" >&5
11948 cat conftest.$ac_ext >&5
10f2d63a 11949fi
698dcdb6 11950rm -f conftest*
10f2d63a
VZ
11951done
11952
11953fi
698dcdb6
VZ
11954
11955echo "$ac_t""$ac_cv_c_inline" 1>&6
11956case "$ac_cv_c_inline" in
10f2d63a 11957 inline | yes) ;;
698dcdb6
VZ
11958 no) cat >> confdefs.h <<\EOF
11959#define inline
10f2d63a
VZ
11960EOF
11961 ;;
698dcdb6 11962 *) cat >> confdefs.h <<EOF
10f2d63a
VZ
11963#define inline $ac_cv_c_inline
11964EOF
11965 ;;
11966esac
11967
698dcdb6
VZ
11968
11969echo $ac_n "checking size of char""... $ac_c" 1>&6
831b3152 11970echo "configure:11971: checking size of char" >&5
698dcdb6
VZ
11971if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
11972 echo $ac_n "(cached) $ac_c" 1>&6
6232543b 11973else
1e487827 11974 if test "$cross_compiling" = yes; then
698dcdb6 11975 ac_cv_sizeof_char=1
1e487827 11976else
698dcdb6 11977 cat > conftest.$ac_ext <<EOF
831b3152 11978#line 11979 "configure"
1e487827 11979#include "confdefs.h"
698dcdb6
VZ
11980#include <stdio.h>
11981main()
1e487827 11982{
698dcdb6
VZ
11983 FILE *f=fopen("conftestval", "w");
11984 if (!f) exit(1);
11985 fprintf(f, "%d\n", sizeof(char));
11986 exit(0);
1e487827 11987}
698dcdb6 11988EOF
831b3152 11989if { (eval echo configure:11990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11990then
11991 ac_cv_sizeof_char=`cat conftestval`
1e487827 11992else
698dcdb6
VZ
11993 echo "configure: failed program was:" >&5
11994 cat conftest.$ac_ext >&5
11995 rm -fr conftest*
1e487827
VS
11996 ac_cv_sizeof_char=0
11997fi
698dcdb6 11998rm -fr conftest*
1e487827 11999fi
10f2d63a 12000
1e487827 12001fi
698dcdb6
VZ
12002echo "$ac_t""$ac_cv_sizeof_char" 1>&6
12003cat >> confdefs.h <<EOF
12004#define SIZEOF_CHAR $ac_cv_sizeof_char
1e487827 12005EOF
6232543b 12006
703e0a69 12007
698dcdb6 12008echo $ac_n "checking size of short""... $ac_c" 1>&6
831b3152 12009echo "configure:12010: checking size of short" >&5
698dcdb6
VZ
12010if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
12011 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 12012else
1e487827 12013 if test "$cross_compiling" = yes; then
698dcdb6 12014 ac_cv_sizeof_short=2
1e487827 12015else
698dcdb6 12016 cat > conftest.$ac_ext <<EOF
831b3152 12017#line 12018 "configure"
1e487827 12018#include "confdefs.h"
698dcdb6
VZ
12019#include <stdio.h>
12020main()
1e487827 12021{
698dcdb6
VZ
12022 FILE *f=fopen("conftestval", "w");
12023 if (!f) exit(1);
12024 fprintf(f, "%d\n", sizeof(short));
12025 exit(0);
1e487827 12026}
698dcdb6 12027EOF
831b3152 12028if { (eval echo configure:12029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12029then
12030 ac_cv_sizeof_short=`cat conftestval`
1e487827 12031else
698dcdb6
VZ
12032 echo "configure: failed program was:" >&5
12033 cat conftest.$ac_ext >&5
12034 rm -fr conftest*
12035 ac_cv_sizeof_short=0
1e487827 12036fi
698dcdb6 12037rm -fr conftest*
1e487827 12038fi
698dcdb6 12039
1e487827 12040fi
698dcdb6
VZ
12041echo "$ac_t""$ac_cv_sizeof_short" 1>&6
12042cat >> confdefs.h <<EOF
12043#define SIZEOF_SHORT $ac_cv_sizeof_short
12044EOF
12045
12046
12047echo $ac_n "checking size of int *""... $ac_c" 1>&6
831b3152 12048echo "configure:12049: checking size of int *" >&5
698dcdb6
VZ
12049if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
12050 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12051else
12052 if test "$cross_compiling" = yes; then
698dcdb6 12053 ac_cv_sizeof_int_p=4
10f2d63a 12054else
698dcdb6 12055 cat > conftest.$ac_ext <<EOF
831b3152 12056#line 12057 "configure"
10f2d63a 12057#include "confdefs.h"
698dcdb6
VZ
12058#include <stdio.h>
12059main()
10f2d63a 12060{
698dcdb6
VZ
12061 FILE *f=fopen("conftestval", "w");
12062 if (!f) exit(1);
12063 fprintf(f, "%d\n", sizeof(int *));
12064 exit(0);
10f2d63a 12065}
698dcdb6 12066EOF
831b3152 12067if { (eval echo configure:12068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12068then
12069 ac_cv_sizeof_int_p=`cat conftestval`
10f2d63a 12070else
698dcdb6
VZ
12071 echo "configure: failed program was:" >&5
12072 cat conftest.$ac_ext >&5
12073 rm -fr conftest*
12074 ac_cv_sizeof_int_p=0
6232543b 12075fi
698dcdb6 12076rm -fr conftest*
1e487827 12077fi
698dcdb6 12078
1e487827 12079fi
698dcdb6
VZ
12080echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
12081cat >> confdefs.h <<EOF
12082#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
12083EOF
12084
698dcdb6
VZ
12085
12086echo $ac_n "checking size of int""... $ac_c" 1>&6
831b3152 12087echo "configure:12088: checking size of int" >&5
698dcdb6
VZ
12088if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
12089 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12090else
12091 if test "$cross_compiling" = yes; then
698dcdb6 12092 ac_cv_sizeof_int=4
703e0a69 12093else
698dcdb6 12094 cat > conftest.$ac_ext <<EOF
831b3152 12095#line 12096 "configure"
1e487827 12096#include "confdefs.h"
698dcdb6
VZ
12097#include <stdio.h>
12098main()
1e487827 12099{
698dcdb6
VZ
12100 FILE *f=fopen("conftestval", "w");
12101 if (!f) exit(1);
12102 fprintf(f, "%d\n", sizeof(int));
12103 exit(0);
1e487827 12104}
698dcdb6 12105EOF
831b3152 12106if { (eval echo configure:12107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12107then
12108 ac_cv_sizeof_int=`cat conftestval`
12109else
12110 echo "configure: failed program was:" >&5
12111 cat conftest.$ac_ext >&5
12112 rm -fr conftest*
12113 ac_cv_sizeof_int=0
703e0a69 12114fi
698dcdb6
VZ
12115rm -fr conftest*
12116fi
12117
12118fi
12119echo "$ac_t""$ac_cv_sizeof_int" 1>&6
12120cat >> confdefs.h <<EOF
12121#define SIZEOF_INT $ac_cv_sizeof_int
12122EOF
12123
12124
12125echo $ac_n "checking size of long""... $ac_c" 1>&6
831b3152 12126echo "configure:12127: checking size of long" >&5
698dcdb6
VZ
12127if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
12128 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12129else
12130 if test "$cross_compiling" = yes; then
698dcdb6 12131 ac_cv_sizeof_long=4
10f2d63a 12132else
698dcdb6 12133 cat > conftest.$ac_ext <<EOF
831b3152 12134#line 12135 "configure"
10f2d63a 12135#include "confdefs.h"
698dcdb6
VZ
12136#include <stdio.h>
12137main()
10f2d63a 12138{
698dcdb6
VZ
12139 FILE *f=fopen("conftestval", "w");
12140 if (!f) exit(1);
12141 fprintf(f, "%d\n", sizeof(long));
12142 exit(0);
10f2d63a 12143}
698dcdb6 12144EOF
831b3152 12145if { (eval echo configure:12146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12146then
12147 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 12148else
698dcdb6
VZ
12149 echo "configure: failed program was:" >&5
12150 cat conftest.$ac_ext >&5
12151 rm -fr conftest*
12152 ac_cv_sizeof_long=0
10f2d63a 12153fi
698dcdb6 12154rm -fr conftest*
10f2d63a 12155fi
698dcdb6 12156
10f2d63a 12157fi
698dcdb6
VZ
12158echo "$ac_t""$ac_cv_sizeof_long" 1>&6
12159cat >> confdefs.h <<EOF
12160#define SIZEOF_LONG $ac_cv_sizeof_long
12161EOF
12162
12163
12164echo $ac_n "checking size of long long""... $ac_c" 1>&6
831b3152 12165echo "configure:12166: checking size of long long" >&5
698dcdb6
VZ
12166if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
12167 echo $ac_n "(cached) $ac_c" 1>&6
12168else
12169 if test "$cross_compiling" = yes; then
12170 ac_cv_sizeof_long_long=0
12171else
12172 cat > conftest.$ac_ext <<EOF
831b3152 12173#line 12174 "configure"
698dcdb6
VZ
12174#include "confdefs.h"
12175#include <stdio.h>
12176main()
12177{
12178 FILE *f=fopen("conftestval", "w");
12179 if (!f) exit(1);
12180 fprintf(f, "%d\n", sizeof(long long));
12181 exit(0);
12182}
12183EOF
831b3152 12184if { (eval echo configure:12185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12185then
12186 ac_cv_sizeof_long_long=`cat conftestval`
6232543b 12187else
698dcdb6
VZ
12188 echo "configure: failed program was:" >&5
12189 cat conftest.$ac_ext >&5
12190 rm -fr conftest*
6232543b
VS
12191 ac_cv_sizeof_long_long=0
12192fi
698dcdb6
VZ
12193rm -fr conftest*
12194fi
12195
703e0a69 12196fi
698dcdb6
VZ
12197echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
12198cat >> confdefs.h <<EOF
10f2d63a
VZ
12199#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12200EOF
12201
1e487827 12202
698dcdb6
VZ
12203
12204echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
831b3152 12205echo "configure:12206: checking size of wchar_t" >&5
698dcdb6
VZ
12206if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
12207 echo $ac_n "(cached) $ac_c" 1>&6
12208else
12209
b93d0d08
VS
12210 if test "$cross_compiling" = yes; then
12211 wx_cv_sizeof_wchar_t=4
1e6feb95 12212
b93d0d08 12213else
698dcdb6 12214 cat > conftest.$ac_ext <<EOF
831b3152 12215#line 12216 "configure"
b93d0d08
VS
12216#include "confdefs.h"
12217
1e6feb95
VZ
12218 #ifdef HAVE_WCHAR_H
12219 # include <wchar.h>
12220 #endif
12221 #ifdef HAVE_STDLIB_H
12222 # include <stdlib.h>
12223 #endif
12224 #include <stdio.h>
12225 int main()
12226 {
12227 FILE *f=fopen("conftestval", "w");
12228 if (!f) exit(1);
12229 fprintf(f, "%i", sizeof(wchar_t));
12230 exit(0);
12231 }
698dcdb6
VZ
12232
12233EOF
831b3152 12234if { (eval echo configure:12235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12235then
b93d0d08
VS
12236 wx_cv_sizeof_wchar_t=`cat conftestval`
12237else
698dcdb6
VZ
12238 echo "configure: failed program was:" >&5
12239 cat conftest.$ac_ext >&5
12240 rm -fr conftest*
12241 wx_cv_sizeof_wchar_t=0
b93d0d08 12242fi
698dcdb6 12243rm -fr conftest*
b93d0d08
VS
12244fi
12245
698dcdb6 12246
b93d0d08
VS
12247fi
12248
698dcdb6
VZ
12249echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
12250
12251cat >> confdefs.h <<EOF
28c6addc 12252#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
b93d0d08
VS
12253EOF
12254
698dcdb6 12255
698dcdb6 12256echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
831b3152 12257echo "configure:12258: checking whether byte ordering is bigendian" >&5
698dcdb6
VZ
12258if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
12259 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12260else
12261 ac_cv_c_bigendian=unknown
12262# See if sys/param.h defines the BYTE_ORDER macro.
698dcdb6 12263cat > conftest.$ac_ext <<EOF
831b3152 12264#line 12265 "configure"
10f2d63a
VZ
12265#include "confdefs.h"
12266#include <sys/types.h>
12267#include <sys/param.h>
698dcdb6 12268int main() {
10f2d63a
VZ
12269
12270#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12271 bogus endian macros
12272#endif
698dcdb6
VZ
12273; return 0; }
12274EOF
831b3152 12275if { (eval echo configure:12276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12276 rm -rf conftest*
10f2d63a 12277 # It does; now see whether it defined to BIG_ENDIAN or not.
698dcdb6 12278cat > conftest.$ac_ext <<EOF
831b3152 12279#line 12280 "configure"
10f2d63a
VZ
12280#include "confdefs.h"
12281#include <sys/types.h>
12282#include <sys/param.h>
698dcdb6 12283int main() {
10f2d63a
VZ
12284
12285#if BYTE_ORDER != BIG_ENDIAN
12286 not big endian
12287#endif
698dcdb6
VZ
12288; return 0; }
12289EOF
831b3152 12290if { (eval echo configure:12291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12291 rm -rf conftest*
10f2d63a
VZ
12292 ac_cv_c_bigendian=yes
12293else
698dcdb6
VZ
12294 echo "configure: failed program was:" >&5
12295 cat conftest.$ac_ext >&5
12296 rm -rf conftest*
12297 ac_cv_c_bigendian=no
10f2d63a 12298fi
698dcdb6 12299rm -f conftest*
10f2d63a 12300else
698dcdb6
VZ
12301 echo "configure: failed program was:" >&5
12302 cat conftest.$ac_ext >&5
10f2d63a 12303fi
698dcdb6 12304rm -f conftest*
10f2d63a
VZ
12305if test $ac_cv_c_bigendian = unknown; then
12306if test "$cross_compiling" = yes; then
12307 ac_cv_c_bigendian=unknown
12308else
698dcdb6 12309 cat > conftest.$ac_ext <<EOF
831b3152 12310#line 12311 "configure"
10f2d63a
VZ
12311#include "confdefs.h"
12312main () {
12313 /* Are we little or big endian? From Harbison&Steele. */
12314 union
12315 {
12316 long l;
12317 char c[sizeof (long)];
12318 } u;
12319 u.l = 1;
12320 exit (u.c[sizeof (long) - 1] == 1);
12321}
698dcdb6 12322EOF
831b3152 12323if { (eval echo configure:12324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12324then
10f2d63a
VZ
12325 ac_cv_c_bigendian=no
12326else
698dcdb6
VZ
12327 echo "configure: failed program was:" >&5
12328 cat conftest.$ac_ext >&5
12329 rm -fr conftest*
12330 ac_cv_c_bigendian=yes
10f2d63a 12331fi
698dcdb6 12332rm -fr conftest*
10f2d63a 12333fi
698dcdb6 12334
10f2d63a
VZ
12335fi
12336fi
698dcdb6
VZ
12337
12338echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10f2d63a 12339if test $ac_cv_c_bigendian = unknown; then
698dcdb6 12340 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
12341fi
12342if test $ac_cv_c_bigendian = yes; then
698dcdb6 12343 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12344#define WORDS_BIGENDIAN 1
12345EOF
12346
12347fi
12348
698dcdb6
VZ
12349
12350
10f2d63a 12351 if test "$cross_compiling" = "yes"; then
698dcdb6 12352 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12353#define wxUSE_IOSTREAMH 1
12354EOF
12355
12356 else
698dcdb6
VZ
12357
12358 ac_ext=C
12359# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12360ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12361ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12362ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12363cross_compiling=$ac_cv_prog_cxx_cross
12364
703e0a69 12365
698dcdb6 12366 for ac_hdr in iostream
10f2d63a 12367do
698dcdb6
VZ
12368ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12369echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
831b3152 12370echo "configure:12371: checking for $ac_hdr" >&5
698dcdb6
VZ
12371if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12372 echo $ac_n "(cached) $ac_c" 1>&6
12373else
12374 cat > conftest.$ac_ext <<EOF
831b3152 12375#line 12376 "configure"
10f2d63a 12376#include "confdefs.h"
698dcdb6
VZ
12377#include <$ac_hdr>
12378EOF
12379ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
831b3152 12380{ (eval echo configure:12381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12381ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12382if test -z "$ac_err"; then
12383 rm -rf conftest*
12384 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12385else
698dcdb6
VZ
12386 echo "$ac_err" >&5
12387 echo "configure: failed program was:" >&5
10f2d63a 12388 cat conftest.$ac_ext >&5
698dcdb6
VZ
12389 rm -rf conftest*
12390 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12391fi
698dcdb6 12392rm -f conftest*
10f2d63a 12393fi
698dcdb6
VZ
12394if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12395 echo "$ac_t""yes" 1>&6
12396 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12397 cat >> confdefs.h <<EOF
12398#define $ac_tr_hdr 1
10f2d63a 12399EOF
698dcdb6
VZ
12400
12401else
12402 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12403fi
12404done
12405
698dcdb6 12406
57fe5ed0
VZ
12407 if test "$ac_cv_header_iostream" = "yes" ; then
12408 :
12409 else
698dcdb6 12410 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12411#define wxUSE_IOSTREAMH 1
12412EOF
12413
10f2d63a
VZ
12414 fi
12415
12416 ac_ext=c
698dcdb6 12417# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12418ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12419ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12420ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12421cross_compiling=$ac_cv_prog_cc_cross
10f2d63a
VZ
12422
12423 fi
12424
703e0a69 12425
698dcdb6
VZ
12426
12427 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
831b3152 12428echo "configure:12429: checking if C++ compiler supports bool" >&5
698dcdb6
VZ
12429if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12430 echo $ac_n "(cached) $ac_c" 1>&6
12431else
12432
12433
12434 ac_ext=C
12435# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12436ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12437ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12438ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12439cross_compiling=$ac_cv_prog_cxx_cross
10f2d63a 12440
698dcdb6
VZ
12441
12442 cat > conftest.$ac_ext <<EOF
831b3152 12443#line 12444 "configure"
10f2d63a
VZ
12444#include "confdefs.h"
12445
698dcdb6
VZ
12446
12447int main() {
10f2d63a
VZ
12448
12449 bool b = true;
12450
12451 return 0;
698dcdb6
VZ
12452
12453; return 0; }
12454EOF
831b3152 12455if { (eval echo configure:12456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12456 rm -rf conftest*
12457
10f2d63a 12458 wx_cv_cpp_bool=yes
698dcdb6 12459
10f2d63a 12460else
698dcdb6
VZ
12461 echo "configure: failed program was:" >&5
12462 cat conftest.$ac_ext >&5
12463 rm -rf conftest*
12464
10f2d63a 12465 wx_cv_cpp_bool=no
698dcdb6
VZ
12466
12467
10f2d63a 12468fi
698dcdb6 12469rm -f conftest*
10f2d63a
VZ
12470
12471 ac_ext=c
698dcdb6 12472# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12473ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12474ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12475ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12476cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 12477
698dcdb6 12478
10f2d63a 12479fi
698dcdb6
VZ
12480
12481echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10f2d63a
VZ
12482
12483 if test "$wx_cv_cpp_bool" = "yes"; then
698dcdb6 12484 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12485#define HAVE_BOOL 1
12486EOF
12487
12488 fi
12489
1e487827 12490
698dcdb6 12491
698dcdb6 12492echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
831b3152 12493echo "configure:12494: checking for wcslen in -lc" >&5
698dcdb6
VZ
12494ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12495if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12496 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12497else
698dcdb6 12498 ac_save_LIBS="$LIBS"
10f2d63a 12499LIBS="-lc $LIBS"
698dcdb6 12500cat > conftest.$ac_ext <<EOF
831b3152 12501#line 12502 "configure"
10f2d63a
VZ
12502#include "confdefs.h"
12503/* Override any gcc2 internal prototype to avoid an error. */
12504/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12505 builtin and then its argument prototype would still apply. */
12506char wcslen();
12507
12508int main() {
12509wcslen()
12510; return 0; }
12511EOF
831b3152 12512if { (eval echo configure:12513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12513 rm -rf conftest*
12514 eval "ac_cv_lib_$ac_lib_var=yes"
12515else
12516 echo "configure: failed program was:" >&5
12517 cat conftest.$ac_ext >&5
12518 rm -rf conftest*
12519 eval "ac_cv_lib_$ac_lib_var=no"
12520fi
12521rm -f conftest*
12522LIBS="$ac_save_LIBS"
12523
12524fi
12525if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12526 echo "$ac_t""yes" 1>&6
12527
12528 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12529#define HAVE_WCSLEN 1
12530EOF
12531
12532 WCHAR_LINK=""
698dcdb6 12533
10f2d63a 12534else
698dcdb6 12535 echo "$ac_t""no" 1>&6
10f2d63a 12536
698dcdb6 12537 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
831b3152 12538echo "configure:12539: checking for wcslen in -lw" >&5
698dcdb6
VZ
12539ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12540if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12541 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12542else
698dcdb6 12543 ac_save_LIBS="$LIBS"
10f2d63a 12544LIBS="-lw $LIBS"
698dcdb6 12545cat > conftest.$ac_ext <<EOF
831b3152 12546#line 12547 "configure"
10f2d63a
VZ
12547#include "confdefs.h"
12548/* Override any gcc2 internal prototype to avoid an error. */
12549/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12550 builtin and then its argument prototype would still apply. */
12551char wcslen();
12552
12553int main() {
12554wcslen()
12555; return 0; }
12556EOF
831b3152 12557if { (eval echo configure:12558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12558 rm -rf conftest*
12559 eval "ac_cv_lib_$ac_lib_var=yes"
12560else
12561 echo "configure: failed program was:" >&5
12562 cat conftest.$ac_ext >&5
12563 rm -rf conftest*
12564 eval "ac_cv_lib_$ac_lib_var=no"
12565fi
12566rm -f conftest*
12567LIBS="$ac_save_LIBS"
12568
12569fi
12570if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12571 echo "$ac_t""yes" 1>&6
12572
12573 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12574#define HAVE_WCSLEN 1
12575EOF
12576
12577 WCHAR_LINK="-lw"
698dcdb6
VZ
12578
12579else
12580 echo "$ac_t""no" 1>&6
6232543b 12581fi
10f2d63a 12582
698dcdb6 12583
1e487827 12584fi
703e0a69 12585
698dcdb6
VZ
12586
12587echo $ac_n "checking for vprintf""... $ac_c" 1>&6
831b3152 12588echo "configure:12589: checking for vprintf" >&5
698dcdb6
VZ
12589if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
12590 echo $ac_n "(cached) $ac_c" 1>&6
12591else
12592 cat > conftest.$ac_ext <<EOF
831b3152 12593#line 12594 "configure"
10f2d63a
VZ
12594#include "confdefs.h"
12595/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12596 which can conflict with char vprintf(); below. */
10f2d63a
VZ
12597#include <assert.h>
12598/* Override any gcc2 internal prototype to avoid an error. */
12599/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12600 builtin and then its argument prototype would still apply. */
12601char vprintf();
12602
12603int main() {
10f2d63a
VZ
12604
12605/* The GNU C library defines this for functions which it implements
12606 to always fail with ENOSYS. Some functions are actually named
12607 something starting with __ and the normal name is an alias. */
698dcdb6 12608#if defined (__stub_vprintf) || defined (__stub___vprintf)
10f2d63a
VZ
12609choke me
12610#else
698dcdb6 12611vprintf();
10f2d63a
VZ
12612#endif
12613
698dcdb6
VZ
12614; return 0; }
12615EOF
831b3152 12616if { (eval echo configure:12617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12617 rm -rf conftest*
12618 eval "ac_cv_func_vprintf=yes"
12619else
12620 echo "configure: failed program was:" >&5
12621 cat conftest.$ac_ext >&5
12622 rm -rf conftest*
12623 eval "ac_cv_func_vprintf=no"
12624fi
12625rm -f conftest*
12626fi
12627
12628if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12629 echo "$ac_t""yes" 1>&6
12630 cat >> confdefs.h <<\EOF
12631#define HAVE_VPRINTF 1
12632EOF
12633
12634else
12635 echo "$ac_t""no" 1>&6
12636fi
12637
12638if test "$ac_cv_func_vprintf" != yes; then
12639echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
831b3152 12640echo "configure:12641: checking for _doprnt" >&5
698dcdb6
VZ
12641if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
12642 echo $ac_n "(cached) $ac_c" 1>&6
12643else
12644 cat > conftest.$ac_ext <<EOF
831b3152 12645#line 12646 "configure"
10f2d63a
VZ
12646#include "confdefs.h"
12647/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12648 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
12649#include <assert.h>
12650/* Override any gcc2 internal prototype to avoid an error. */
12651/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12652 builtin and then its argument prototype would still apply. */
12653char _doprnt();
12654
12655int main() {
10f2d63a
VZ
12656
12657/* The GNU C library defines this for functions which it implements
12658 to always fail with ENOSYS. Some functions are actually named
12659 something starting with __ and the normal name is an alias. */
12660#if defined (__stub__doprnt) || defined (__stub____doprnt)
12661choke me
12662#else
698dcdb6 12663_doprnt();
10f2d63a
VZ
12664#endif
12665
698dcdb6
VZ
12666; return 0; }
12667EOF
831b3152 12668if { (eval echo configure:12669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12669 rm -rf conftest*
12670 eval "ac_cv_func__doprnt=yes"
12671else
12672 echo "configure: failed program was:" >&5
12673 cat conftest.$ac_ext >&5
12674 rm -rf conftest*
12675 eval "ac_cv_func__doprnt=no"
12676fi
12677rm -f conftest*
12678fi
12679
12680if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12681 echo "$ac_t""yes" 1>&6
12682 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12683#define HAVE_DOPRNT 1
12684EOF
12685
698dcdb6
VZ
12686else
12687 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12688fi
12689
12690fi
12691
1e487827 12692
698dcdb6
VZ
12693
12694
12695
12696
12697
12698echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
831b3152 12699echo "configure:12700: checking for vsnprintf" >&5
698dcdb6
VZ
12700if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
12701 echo $ac_n "(cached) $ac_c" 1>&6
12702else
12703
12704 cat > conftest.$ac_ext <<EOF
831b3152 12705#line 12706 "configure"
f6bcfd97
BP
12706#include "confdefs.h"
12707
12708 #include <stdio.h>
698dcdb6
VZ
12709 #include <stdarg.h>
12710
12711int main() {
10f2d63a 12712
f6bcfd97 12713 int wx_test_vsnprintf(const char *, ...);
10f2d63a 12714
f6bcfd97
BP
12715 wx_test_vsnprintf("%s");
12716 return 0;
12717 }
12718
12719 int wx_test_vsnprintf(const char *fmt, ...)
12720 {
12721 char *s;
12722
12723 va_list argp;
12724 va_start(argp, fmt);
12725 vsnprintf(s, 42, fmt, argp);
12726 va_end(argp);
698dcdb6
VZ
12727
12728; return 0; }
12729EOF
831b3152 12730if { (eval echo configure:12731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12731 rm -rf conftest*
12732
f6bcfd97 12733 wx_cv_func_vsnprintf=yes
698dcdb6 12734
10f2d63a 12735else
698dcdb6
VZ
12736 echo "configure: failed program was:" >&5
12737 cat conftest.$ac_ext >&5
12738 rm -rf conftest*
12739
12740 cat > conftest.$ac_ext <<EOF
831b3152 12741#line 12742 "configure"
c521c494
RL
12742#include "confdefs.h"
12743
12744 #include <stdio.h>
12745 #include <stdarg.h>
698dcdb6
VZ
12746
12747int main() {
c521c494
RL
12748
12749 int wx_test_vsnprintf(const char *, ...);
12750
12751 wx_test_vsnprintf("%s");
12752 return 0;
12753 }
12754
12755 int wx_test_vsnprintf(const char *fmt, ...)
12756 {
12757 char *s;
12758
12759 va_list argp;
12760 va_start(argp, fmt);
12761 _vsnprintf(s, 42, fmt, argp);
12762 va_end(argp);
698dcdb6
VZ
12763
12764; return 0; }
12765EOF
831b3152 12766if { (eval echo configure:12767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12767 rm -rf conftest*
12768
c521c494 12769 wx_cv_func_vsnprintf=yes
698dcdb6 12770
c521c494 12771else
698dcdb6
VZ
12772 echo "configure: failed program was:" >&5
12773 cat conftest.$ac_ext >&5
12774 rm -rf conftest*
12775
c521c494 12776 wx_cv_func_vsnprintf=no
698dcdb6 12777
10f2d63a 12778fi
698dcdb6
VZ
12779rm -f conftest*
12780
6232543b 12781fi
698dcdb6 12782rm -f conftest*
703e0a69 12783
1e487827 12784fi
698dcdb6
VZ
12785
12786echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
10f2d63a 12787
9d8deca0 12788if test "$wx_cv_func_vsnprintf" = yes; then
698dcdb6 12789 cat >> confdefs.h <<\EOF
9d8deca0
VZ
12790#define HAVE_VSNPRINTF 1
12791EOF
12792
12793else
698dcdb6 12794 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9d8deca0
VZ
12795fi
12796
698dcdb6 12797echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
831b3152 12798echo "configure:12799: checking for vsscanf" >&5
698dcdb6
VZ
12799if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
12800 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12801else
698dcdb6
VZ
12802
12803 cat > conftest.$ac_ext <<EOF
831b3152 12804#line 12805 "configure"
10f2d63a 12805#include "confdefs.h"
10f2d63a 12806
f6bcfd97
BP
12807 #include <stdio.h>
12808 #include <stdarg.h>
698dcdb6
VZ
12809
12810int main() {
10f2d63a 12811
f6bcfd97 12812 int wx_test_vsscanf(const char *, ...);
10f2d63a 12813
f6bcfd97
BP
12814 wx_test_vsscanf("%d");
12815 return 0;
10f2d63a
VZ
12816 }
12817
f6bcfd97 12818 int wx_test_vsscanf(const char *fmt, ...)
10f2d63a 12819 {
f6bcfd97
BP
12820 va_list argp;
12821 va_start(argp, fmt);
12822 vsscanf("42", fmt, argp);
12823 va_end(argp);
698dcdb6
VZ
12824
12825; return 0; }
12826EOF
831b3152 12827if { (eval echo configure:12828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12828 rm -rf conftest*
12829
f6bcfd97 12830 wx_cv_func_vsscanf=yes
698dcdb6 12831
10f2d63a 12832else
698dcdb6
VZ
12833 echo "configure: failed program was:" >&5
12834 cat conftest.$ac_ext >&5
12835 rm -rf conftest*
12836
f6bcfd97 12837 wx_cv_func_vsscanf=no
698dcdb6 12838
6232543b 12839fi
698dcdb6 12840rm -f conftest*
703e0a69 12841
1e487827 12842fi
698dcdb6
VZ
12843
12844echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10f2d63a 12845
9d8deca0 12846if test "$wx_cv_func_vsscanf" = yes; then
698dcdb6 12847 cat >> confdefs.h <<\EOF
9d8deca0
VZ
12848#define HAVE_VSSCANF 1
12849EOF
12850
12851fi
12852
95c8801c
VS
12853if test "$TOOLKIT" != "MSW"; then
12854
12855
12856
698dcdb6
VZ
12857ac_ext=C
12858# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12859ac_cpp='$CXXCPP $CPPFLAGS'
12860ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12861ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12862cross_compiling=$ac_cv_prog_cxx_cross
12863
12864echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
831b3152 12865echo "configure:12866: checking if iconv() takes char**" >&5
698dcdb6
VZ
12866if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
12867 echo $ac_n "(cached) $ac_c" 1>&6
12868else
12869
12870 cat > conftest.$ac_ext <<EOF
831b3152 12871#line 12872 "configure"
95c8801c
VS
12872#include "confdefs.h"
12873#include <iconv.h>
698dcdb6 12874int main() {
95c8801c
VS
12875
12876 char **inbuf, **outbuf;
19af3b06
VZ
12877 iconv_t cd;
12878 size_t insz, outsz;
12879 iconv(cd, inbuf, &insz, outbuf, &outsz);
698dcdb6
VZ
12880
12881; return 0; }
12882EOF
831b3152 12883if { (eval echo configure:12884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12884 rm -rf conftest*
95c8801c
VS
12885 wx_cv_iconv_takes_char=yes
12886else
698dcdb6
VZ
12887 echo "configure: failed program was:" >&5
12888 cat conftest.$ac_ext >&5
12889 rm -rf conftest*
12890 wx_cv_iconv_takes_char=no
95c8801c 12891fi
698dcdb6 12892rm -f conftest*
95c8801c
VS
12893
12894fi
698dcdb6
VZ
12895
12896echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
10f2d63a 12897ac_ext=c
698dcdb6 12898# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12899ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12900ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12901ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12902cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 12903
95c8801c 12904if test "$wx_cv_iconv_takes_char" = yes ; then
698dcdb6 12905 cat >> confdefs.h <<\EOF
95c8801c
VS
12906#define WX_ICONV_TAKES_CHAR 1
12907EOF
12908
12909fi
10f2d63a 12910
1e487827 12911
698dcdb6
VZ
12912if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
12913 for ac_func in sigaction
eb4efbdc 12914do
698dcdb6 12915echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
831b3152 12916echo "configure:12917: checking for $ac_func" >&5
698dcdb6
VZ
12917if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12918 echo $ac_n "(cached) $ac_c" 1>&6
12919else
12920 cat > conftest.$ac_ext <<EOF
831b3152 12921#line 12922 "configure"
eb4efbdc
VZ
12922#include "confdefs.h"
12923/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12924 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
12925#include <assert.h>
12926/* Override any gcc2 internal prototype to avoid an error. */
12927/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12928 builtin and then its argument prototype would still apply. */
12929char $ac_func();
12930
12931int main() {
eb4efbdc
VZ
12932
12933/* The GNU C library defines this for functions which it implements
12934 to always fail with ENOSYS. Some functions are actually named
12935 something starting with __ and the normal name is an alias. */
12936#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12937choke me
12938#else
698dcdb6 12939$ac_func();
eb4efbdc
VZ
12940#endif
12941
698dcdb6 12942; return 0; }
eb4efbdc 12943EOF
831b3152 12944if { (eval echo configure:12945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12945 rm -rf conftest*
12946 eval "ac_cv_func_$ac_func=yes"
12947else
12948 echo "configure: failed program was:" >&5
12949 cat conftest.$ac_ext >&5
12950 rm -rf conftest*
12951 eval "ac_cv_func_$ac_func=no"
12952fi
12953rm -f conftest*
12954fi
eb4efbdc 12955
698dcdb6
VZ
12956if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12957 echo "$ac_t""yes" 1>&6
12958 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12959 cat >> confdefs.h <<EOF
12960#define $ac_tr_func 1
12961EOF
12962
12963else
12964 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
12965fi
12966done
12967
698dcdb6 12968
eb4efbdc 12969 if test "$ac_cv_func_sigaction" = "no"; then
698dcdb6 12970 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
eb4efbdc
VZ
12971 wxUSE_ON_FATAL_EXCEPTION=no
12972 fi
f6bcfd97
BP
12973
12974 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6
VZ
12975
12976 ac_ext=C
12977# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12978ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12979ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12980ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12981cross_compiling=$ac_cv_prog_cxx_cross
6232543b 12982
1e487827 12983
698dcdb6 12984 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
831b3152 12985echo "configure:12986: checking for sa_handler type" >&5
698dcdb6
VZ
12986if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
12987 echo $ac_n "(cached) $ac_c" 1>&6
12988else
12989
12990 cat > conftest.$ac_ext <<EOF
831b3152 12991#line 12992 "configure"
f6bcfd97
BP
12992#include "confdefs.h"
12993#include <signal.h>
698dcdb6 12994int main() {
f6bcfd97
BP
12995
12996 extern void testSigHandler(int);
12997
12998 struct sigaction sa;
12999 sa.sa_handler = testSigHandler;
698dcdb6
VZ
13000
13001; return 0; }
13002EOF
831b3152 13003if { (eval echo configure:13004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13004 rm -rf conftest*
13005
f6bcfd97 13006 wx_cv_type_sa_handler=int
698dcdb6 13007
f6bcfd97 13008else
698dcdb6
VZ
13009 echo "configure: failed program was:" >&5
13010 cat conftest.$ac_ext >&5
13011 rm -rf conftest*
13012
f6bcfd97 13013 wx_cv_type_sa_handler=void
698dcdb6 13014
6232543b 13015fi
698dcdb6
VZ
13016rm -f conftest*
13017
1e487827 13018fi
698dcdb6
VZ
13019
13020echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
f6bcfd97
BP
13021
13022 ac_ext=c
698dcdb6 13023# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
f6bcfd97 13024ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13025ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13026ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13027cross_compiling=$ac_cv_prog_cc_cross
13028
703e0a69 13029
698dcdb6 13030 cat >> confdefs.h <<EOF
f6bcfd97
BP
13031#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
13032EOF
13033
13034 fi
eb4efbdc
VZ
13035fi
13036
10f2d63a
VZ
13037for ac_func in vfork
13038do
698dcdb6 13039echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
831b3152 13040echo "configure:13041: checking for $ac_func" >&5
698dcdb6
VZ
13041if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13042 echo $ac_n "(cached) $ac_c" 1>&6
13043else
13044 cat > conftest.$ac_ext <<EOF
831b3152 13045#line 13046 "configure"
10f2d63a
VZ
13046#include "confdefs.h"
13047/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13048 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13049#include <assert.h>
13050/* Override any gcc2 internal prototype to avoid an error. */
13051/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13052 builtin and then its argument prototype would still apply. */
13053char $ac_func();
13054
13055int main() {
10f2d63a
VZ
13056
13057/* The GNU C library defines this for functions which it implements
13058 to always fail with ENOSYS. Some functions are actually named
13059 something starting with __ and the normal name is an alias. */
13060#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13061choke me
13062#else
698dcdb6 13063$ac_func();
10f2d63a
VZ
13064#endif
13065
698dcdb6 13066; return 0; }
10f2d63a 13067EOF
831b3152 13068if { (eval echo configure:13069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13069 rm -rf conftest*
13070 eval "ac_cv_func_$ac_func=yes"
13071else
13072 echo "configure: failed program was:" >&5
13073 cat conftest.$ac_ext >&5
13074 rm -rf conftest*
13075 eval "ac_cv_func_$ac_func=no"
13076fi
13077rm -f conftest*
13078fi
270a909e 13079
698dcdb6
VZ
13080if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13081 echo "$ac_t""yes" 1>&6
13082 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13083 cat >> confdefs.h <<EOF
13084#define $ac_tr_func 1
13085EOF
13086
13087else
13088 echo "$ac_t""no" 1>&6
270a909e
VZ
13089fi
13090done
13091
1e487827 13092
698dcdb6
VZ
13093if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
13094 for ac_func in fcntl flock
4f3c5f06 13095do
698dcdb6 13096echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
831b3152 13097echo "configure:13098: checking for $ac_func" >&5
698dcdb6
VZ
13098if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13099 echo $ac_n "(cached) $ac_c" 1>&6
13100else
13101 cat > conftest.$ac_ext <<EOF
831b3152 13102#line 13103 "configure"
4f3c5f06
VZ
13103#include "confdefs.h"
13104/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13105 which can conflict with char $ac_func(); below. */
4f3c5f06
VZ
13106#include <assert.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
698dcdb6
VZ
13109 builtin and then its argument prototype would still apply. */
13110char $ac_func();
13111
13112int main() {
4f3c5f06
VZ
13113
13114/* The GNU C library defines this for functions which it implements
13115 to always fail with ENOSYS. Some functions are actually named
13116 something starting with __ and the normal name is an alias. */
13117#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13118choke me
13119#else
698dcdb6 13120$ac_func();
4f3c5f06
VZ
13121#endif
13122
698dcdb6
VZ
13123; return 0; }
13124EOF
831b3152 13125if { (eval echo configure:13126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13126 rm -rf conftest*
13127 eval "ac_cv_func_$ac_func=yes"
13128else
13129 echo "configure: failed program was:" >&5
13130 cat conftest.$ac_ext >&5
13131 rm -rf conftest*
13132 eval "ac_cv_func_$ac_func=no"
13133fi
13134rm -f conftest*
13135fi
13136
13137if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13138 echo "$ac_t""yes" 1>&6
13139 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13140 cat >> confdefs.h <<EOF
13141#define $ac_tr_func 1
4f3c5f06
VZ
13142EOF
13143 break
698dcdb6
VZ
13144else
13145 echo "$ac_t""no" 1>&6
4f3c5f06
VZ
13146fi
13147done
13148
698dcdb6 13149
4f3c5f06 13150 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
698dcdb6 13151 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f3c5f06
VZ
13152 wxUSE_SNGLINST_CHECKER=no
13153 fi
13154fi
13155
270a909e
VZ
13156for ac_func in timegm
13157do
698dcdb6 13158echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
831b3152 13159echo "configure:13160: checking for $ac_func" >&5
698dcdb6
VZ
13160if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13161 echo $ac_n "(cached) $ac_c" 1>&6
13162else
13163 cat > conftest.$ac_ext <<EOF
831b3152 13164#line 13165 "configure"
270a909e
VZ
13165#include "confdefs.h"
13166/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13167 which can conflict with char $ac_func(); below. */
270a909e
VZ
13168#include <assert.h>
13169/* Override any gcc2 internal prototype to avoid an error. */
13170/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13171 builtin and then its argument prototype would still apply. */
13172char $ac_func();
13173
13174int main() {
270a909e
VZ
13175
13176/* The GNU C library defines this for functions which it implements
13177 to always fail with ENOSYS. Some functions are actually named
13178 something starting with __ and the normal name is an alias. */
13179#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13180choke me
13181#else
698dcdb6 13182$ac_func();
270a909e
VZ
13183#endif
13184
698dcdb6 13185; return 0; }
270a909e 13186EOF
831b3152 13187if { (eval echo configure:13188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13188 rm -rf conftest*
13189 eval "ac_cv_func_$ac_func=yes"
13190else
13191 echo "configure: failed program was:" >&5
13192 cat conftest.$ac_ext >&5
13193 rm -rf conftest*
13194 eval "ac_cv_func_$ac_func=no"
13195fi
13196rm -f conftest*
13197fi
10f2d63a 13198
698dcdb6
VZ
13199if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13200 echo "$ac_t""yes" 1>&6
13201 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13202 cat >> confdefs.h <<EOF
13203#define $ac_tr_func 1
13204EOF
13205
13206else
13207 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13208fi
13209done
13210
698dcdb6 13211
8fd0d89b
VZ
13212for ac_func in putenv setenv
13213do
698dcdb6 13214echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
831b3152 13215echo "configure:13216: checking for $ac_func" >&5
698dcdb6
VZ
13216if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13217 echo $ac_n "(cached) $ac_c" 1>&6
13218else
13219 cat > conftest.$ac_ext <<EOF
831b3152 13220#line 13221 "configure"
8fd0d89b
VZ
13221#include "confdefs.h"
13222/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13223 which can conflict with char $ac_func(); below. */
8fd0d89b
VZ
13224#include <assert.h>
13225/* Override any gcc2 internal prototype to avoid an error. */
13226/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13227 builtin and then its argument prototype would still apply. */
13228char $ac_func();
13229
13230int main() {
8fd0d89b
VZ
13231
13232/* The GNU C library defines this for functions which it implements
13233 to always fail with ENOSYS. Some functions are actually named
13234 something starting with __ and the normal name is an alias. */
13235#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13236choke me
13237#else
698dcdb6 13238$ac_func();
8fd0d89b
VZ
13239#endif
13240
698dcdb6
VZ
13241; return 0; }
13242EOF
831b3152 13243if { (eval echo configure:13244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13244 rm -rf conftest*
13245 eval "ac_cv_func_$ac_func=yes"
13246else
13247 echo "configure: failed program was:" >&5
13248 cat conftest.$ac_ext >&5
13249 rm -rf conftest*
13250 eval "ac_cv_func_$ac_func=no"
13251fi
13252rm -f conftest*
13253fi
13254
13255if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13256 echo "$ac_t""yes" 1>&6
13257 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13258 cat >> confdefs.h <<EOF
13259#define $ac_tr_func 1
8fd0d89b
VZ
13260EOF
13261 break
698dcdb6
VZ
13262else
13263 echo "$ac_t""no" 1>&6
8fd0d89b
VZ
13264fi
13265done
13266
698dcdb6 13267
b12915c1
VZ
13268HAVE_SOME_SLEEP_FUNC=0
13269if test "$USE_BEOS" = 1; then
698dcdb6 13270 cat >> confdefs.h <<\EOF
b12915c1
VZ
13271#define HAVE_SLEEP 1
13272EOF
13273
13274 HAVE_SOME_SLEEP_FUNC=1
13275fi
13276
b4085ce6 13277if test "$USE_MAC" = 1; then
698dcdb6 13278 cat >> confdefs.h <<\EOF
b4085ce6
GD
13279#define HAVE_USLEEP 1
13280EOF
13281
13282 HAVE_SOME_SLEEP_FUNC=1
13283fi
13284
b12915c1
VZ
13285if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
13286 POSIX4_LINK=
698dcdb6 13287 for ac_func in nanosleep
10f2d63a 13288do
698dcdb6 13289echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
831b3152 13290echo "configure:13291: checking for $ac_func" >&5
698dcdb6
VZ
13291if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13292 echo $ac_n "(cached) $ac_c" 1>&6
13293else
13294 cat > conftest.$ac_ext <<EOF
831b3152 13295#line 13296 "configure"
10f2d63a
VZ
13296#include "confdefs.h"
13297/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13298 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13299#include <assert.h>
13300/* Override any gcc2 internal prototype to avoid an error. */
13301/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13302 builtin and then its argument prototype would still apply. */
13303char $ac_func();
13304
13305int main() {
10f2d63a
VZ
13306
13307/* The GNU C library defines this for functions which it implements
13308 to always fail with ENOSYS. Some functions are actually named
13309 something starting with __ and the normal name is an alias. */
13310#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13311choke me
13312#else
698dcdb6 13313$ac_func();
10f2d63a
VZ
13314#endif
13315
698dcdb6
VZ
13316; return 0; }
13317EOF
831b3152 13318if { (eval echo configure:13319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13319 rm -rf conftest*
13320 eval "ac_cv_func_$ac_func=yes"
13321else
13322 echo "configure: failed program was:" >&5
13323 cat conftest.$ac_ext >&5
13324 rm -rf conftest*
13325 eval "ac_cv_func_$ac_func=no"
13326fi
13327rm -f conftest*
13328fi
13329
13330if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13331 echo "$ac_t""yes" 1>&6
13332 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13333 cat >> confdefs.h <<EOF
13334#define $ac_tr_func 1
13335EOF
13336 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13337#define HAVE_NANOSLEEP 1
13338EOF
13339
13340else
698dcdb6
VZ
13341 echo "$ac_t""no" 1>&6
13342echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
831b3152 13343echo "configure:13344: checking for nanosleep in -lposix4" >&5
698dcdb6
VZ
13344ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
13345if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13346 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13347else
698dcdb6 13348 ac_save_LIBS="$LIBS"
10f2d63a 13349LIBS="-lposix4 $LIBS"
698dcdb6 13350cat > conftest.$ac_ext <<EOF
831b3152 13351#line 13352 "configure"
10f2d63a
VZ
13352#include "confdefs.h"
13353/* Override any gcc2 internal prototype to avoid an error. */
13354/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13355 builtin and then its argument prototype would still apply. */
13356char nanosleep();
13357
13358int main() {
13359nanosleep()
13360; return 0; }
13361EOF
831b3152 13362if { (eval echo configure:13363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13363 rm -rf conftest*
13364 eval "ac_cv_lib_$ac_lib_var=yes"
13365else
13366 echo "configure: failed program was:" >&5
13367 cat conftest.$ac_ext >&5
13368 rm -rf conftest*
13369 eval "ac_cv_lib_$ac_lib_var=no"
13370fi
13371rm -f conftest*
13372LIBS="$ac_save_LIBS"
13373
13374fi
13375if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13376 echo "$ac_t""yes" 1>&6
13377
13378 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13379#define HAVE_NANOSLEEP 1
13380EOF
13381
b12915c1 13382 POSIX4_LINK="-lposix4"
698dcdb6 13383
10f2d63a 13384else
698dcdb6 13385 echo "$ac_t""no" 1>&6
10f2d63a 13386
698dcdb6 13387 for ac_func in usleep
10f2d63a 13388do
698dcdb6 13389echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
831b3152 13390echo "configure:13391: checking for $ac_func" >&5
698dcdb6
VZ
13391if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13392 echo $ac_n "(cached) $ac_c" 1>&6
13393else
13394 cat > conftest.$ac_ext <<EOF
831b3152 13395#line 13396 "configure"
10f2d63a
VZ
13396#include "confdefs.h"
13397/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13398 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13399#include <assert.h>
13400/* Override any gcc2 internal prototype to avoid an error. */
13401/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13402 builtin and then its argument prototype would still apply. */
13403char $ac_func();
13404
13405int main() {
10f2d63a
VZ
13406
13407/* The GNU C library defines this for functions which it implements
13408 to always fail with ENOSYS. Some functions are actually named
13409 something starting with __ and the normal name is an alias. */
13410#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13411choke me
13412#else
698dcdb6 13413$ac_func();
10f2d63a
VZ
13414#endif
13415
698dcdb6
VZ
13416; return 0; }
13417EOF
831b3152 13418if { (eval echo configure:13419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13419 rm -rf conftest*
13420 eval "ac_cv_func_$ac_func=yes"
13421else
13422 echo "configure: failed program was:" >&5
13423 cat conftest.$ac_ext >&5
13424 rm -rf conftest*
13425 eval "ac_cv_func_$ac_func=no"
13426fi
13427rm -f conftest*
13428fi
13429
13430if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13431 echo "$ac_t""yes" 1>&6
13432 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13433 cat >> confdefs.h <<EOF
13434#define $ac_tr_func 1
13435EOF
13436 cat >> confdefs.h <<\EOF
b4085ce6
GD
13437#define HAVE_USLEEP 1
13438EOF
13439
10f2d63a 13440else
698dcdb6
VZ
13441 echo "$ac_t""no" 1>&6
13442echo "configure: warning: wxSleep() function will not work" 1>&2
13443
10f2d63a
VZ
13444fi
13445done
13446
698dcdb6
VZ
13447
13448
10f2d63a
VZ
13449fi
13450
698dcdb6
VZ
13451
13452
10f2d63a
VZ
13453fi
13454done
13455
b12915c1 13456fi
10f2d63a
VZ
13457
13458for ac_func in uname gethostname
13459do
698dcdb6 13460echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
831b3152 13461echo "configure:13462: checking for $ac_func" >&5
698dcdb6
VZ
13462if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13463 echo $ac_n "(cached) $ac_c" 1>&6
13464else
13465 cat > conftest.$ac_ext <<EOF
831b3152 13466#line 13467 "configure"
10f2d63a
VZ
13467#include "confdefs.h"
13468/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13469 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13470#include <assert.h>
13471/* Override any gcc2 internal prototype to avoid an error. */
13472/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13473 builtin and then its argument prototype would still apply. */
13474char $ac_func();
13475
13476int main() {
10f2d63a
VZ
13477
13478/* The GNU C library defines this for functions which it implements
13479 to always fail with ENOSYS. Some functions are actually named
13480 something starting with __ and the normal name is an alias. */
13481#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13482choke me
13483#else
698dcdb6 13484$ac_func();
10f2d63a
VZ
13485#endif
13486
698dcdb6
VZ
13487; return 0; }
13488EOF
831b3152 13489if { (eval echo configure:13490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13490 rm -rf conftest*
13491 eval "ac_cv_func_$ac_func=yes"
13492else
13493 echo "configure: failed program was:" >&5
13494 cat conftest.$ac_ext >&5
13495 rm -rf conftest*
13496 eval "ac_cv_func_$ac_func=no"
13497fi
13498rm -f conftest*
13499fi
13500
13501if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13502 echo "$ac_t""yes" 1>&6
13503 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13504 cat >> confdefs.h <<EOF
13505#define $ac_tr_func 1
10f2d63a
VZ
13506EOF
13507 break
698dcdb6
VZ
13508else
13509 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13510fi
13511done
13512
698dcdb6
VZ
13513
13514
13515ac_ext=C
13516# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 13517ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
13518ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13519ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13520cross_compiling=$ac_cv_prog_cxx_cross
13521
6098c7f9 13522
10f2d63a
VZ
13523for ac_func in strtok_r
13524do
698dcdb6 13525echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
831b3152 13526echo "configure:13527: checking for $ac_func" >&5
698dcdb6
VZ
13527if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13528 echo $ac_n "(cached) $ac_c" 1>&6
13529else
13530 cat > conftest.$ac_ext <<EOF
831b3152 13531#line 13532 "configure"
10f2d63a
VZ
13532#include "confdefs.h"
13533/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13534 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13535#include <assert.h>
13536/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
13537#ifdef __cplusplus
13538extern "C"
13539#endif
10f2d63a 13540/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13541 builtin and then its argument prototype would still apply. */
13542char $ac_func();
13543
13544int main() {
10f2d63a
VZ
13545
13546/* The GNU C library defines this for functions which it implements
13547 to always fail with ENOSYS. Some functions are actually named
13548 something starting with __ and the normal name is an alias. */
13549#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13550choke me
13551#else
698dcdb6 13552$ac_func();
10f2d63a
VZ
13553#endif
13554
698dcdb6 13555; return 0; }
10f2d63a 13556EOF
831b3152 13557if { (eval echo configure:13558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13558 rm -rf conftest*
13559 eval "ac_cv_func_$ac_func=yes"
13560else
13561 echo "configure: failed program was:" >&5
13562 cat conftest.$ac_ext >&5
13563 rm -rf conftest*
13564 eval "ac_cv_func_$ac_func=no"
13565fi
13566rm -f conftest*
13567fi
10f2d63a 13568
698dcdb6
VZ
13569if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13570 echo "$ac_t""yes" 1>&6
13571 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13572 cat >> confdefs.h <<EOF
13573#define $ac_tr_func 1
13574EOF
13575
13576else
13577 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13578fi
13579done
13580
698dcdb6 13581
6098c7f9 13582ac_ext=c
698dcdb6 13583# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 13584ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13585ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13586ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13587cross_compiling=$ac_cv_prog_cc_cross
6232543b 13588
1e487827 13589
698dcdb6 13590INET_LINK=
10f2d63a
VZ
13591for ac_func in inet_addr
13592do
698dcdb6 13593echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
831b3152 13594echo "configure:13595: checking for $ac_func" >&5
698dcdb6
VZ
13595if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13596 echo $ac_n "(cached) $ac_c" 1>&6
13597else
13598 cat > conftest.$ac_ext <<EOF
831b3152 13599#line 13600 "configure"
10f2d63a
VZ
13600#include "confdefs.h"
13601/* System header to define __stub macros and hopefully few prototypes,
698dcdb6
VZ
13602 which can conflict with char $ac_func(); below. */
13603#include <assert.h>
13604/* Override any gcc2 internal prototype to avoid an error. */
10f2d63a 13605/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13606 builtin and then its argument prototype would still apply. */
13607char $ac_func();
13608
13609int main() {
10f2d63a
VZ
13610
13611/* The GNU C library defines this for functions which it implements
13612 to always fail with ENOSYS. Some functions are actually named
1e487827
VS
13613 something starting with __ and the normal name is an alias. */
13614#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13615choke me
13616#else
698dcdb6 13617$ac_func();
1e487827 13618#endif
703e0a69 13619
698dcdb6
VZ
13620; return 0; }
13621EOF
831b3152 13622if { (eval echo configure:13623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13623 rm -rf conftest*
13624 eval "ac_cv_func_$ac_func=yes"
13625else
13626 echo "configure: failed program was:" >&5
13627 cat conftest.$ac_ext >&5
13628 rm -rf conftest*
13629 eval "ac_cv_func_$ac_func=no"
13630fi
13631rm -f conftest*
13632fi
13633
13634if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13635 echo "$ac_t""yes" 1>&6
13636 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13637 cat >> confdefs.h <<EOF
13638#define $ac_tr_func 1
13639EOF
13640 cat >> confdefs.h <<\EOF
c63c7106
VZ
13641#define HAVE_INET_ADDR 1
13642EOF
13643
10f2d63a 13644else
698dcdb6
VZ
13645 echo "$ac_t""no" 1>&6
13646echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
831b3152 13647echo "configure:13648: checking for inet_addr in -lnsl" >&5
698dcdb6
VZ
13648ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
13649if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13650 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 13651else
698dcdb6 13652 ac_save_LIBS="$LIBS"
c63c7106 13653LIBS="-lnsl $LIBS"
698dcdb6 13654cat > conftest.$ac_ext <<EOF
831b3152 13655#line 13656 "configure"
c63c7106
VZ
13656#include "confdefs.h"
13657/* Override any gcc2 internal prototype to avoid an error. */
13658/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13659 builtin and then its argument prototype would still apply. */
13660char inet_addr();
13661
13662int main() {
13663inet_addr()
13664; return 0; }
13665EOF
831b3152 13666if { (eval echo configure:13667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13667 rm -rf conftest*
13668 eval "ac_cv_lib_$ac_lib_var=yes"
13669else
13670 echo "configure: failed program was:" >&5
13671 cat conftest.$ac_ext >&5
13672 rm -rf conftest*
13673 eval "ac_cv_lib_$ac_lib_var=no"
13674fi
13675rm -f conftest*
13676LIBS="$ac_save_LIBS"
13677
13678fi
13679if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13680 echo "$ac_t""yes" 1>&6
c63c7106
VZ
13681 INET_LINK="nsl"
13682else
698dcdb6
VZ
13683 echo "$ac_t""no" 1>&6
13684echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
831b3152 13685echo "configure:13686: checking for inet_addr in -lresolv" >&5
698dcdb6
VZ
13686ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
13687if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13688 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 13689else
698dcdb6 13690 ac_save_LIBS="$LIBS"
c63c7106 13691LIBS="-lresolv $LIBS"
698dcdb6 13692cat > conftest.$ac_ext <<EOF
831b3152 13693#line 13694 "configure"
c63c7106
VZ
13694#include "confdefs.h"
13695/* Override any gcc2 internal prototype to avoid an error. */
13696/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13697 builtin and then its argument prototype would still apply. */
13698char inet_addr();
13699
13700int main() {
13701inet_addr()
13702; return 0; }
13703EOF
831b3152 13704if { (eval echo configure:13705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13705 rm -rf conftest*
13706 eval "ac_cv_lib_$ac_lib_var=yes"
13707else
13708 echo "configure: failed program was:" >&5
13709 cat conftest.$ac_ext >&5
13710 rm -rf conftest*
13711 eval "ac_cv_lib_$ac_lib_var=no"
13712fi
13713rm -f conftest*
13714LIBS="$ac_save_LIBS"
c63c7106 13715
6232543b 13716fi
698dcdb6
VZ
13717if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13718 echo "$ac_t""yes" 1>&6
13719 INET_LINK="resolv"
13720
13721else
13722 echo "$ac_t""no" 1>&6
13723fi
c63c7106 13724
698dcdb6 13725
1e487827 13726fi
703e0a69 13727
698dcdb6
VZ
13728
13729
10f2d63a
VZ
13730fi
13731done
13732
698dcdb6 13733
10f2d63a
VZ
13734for ac_func in inet_aton
13735do
698dcdb6 13736echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
831b3152 13737echo "configure:13738: checking for $ac_func" >&5
698dcdb6
VZ
13738if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13739 echo $ac_n "(cached) $ac_c" 1>&6
13740else
13741 cat > conftest.$ac_ext <<EOF
831b3152 13742#line 13743 "configure"
10f2d63a
VZ
13743#include "confdefs.h"
13744/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13745 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13746#include <assert.h>
13747/* Override any gcc2 internal prototype to avoid an error. */
13748/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13749 builtin and then its argument prototype would still apply. */
13750char $ac_func();
13751
13752int main() {
10f2d63a
VZ
13753
13754/* The GNU C library defines this for functions which it implements
13755 to always fail with ENOSYS. Some functions are actually named
13756 something starting with __ and the normal name is an alias. */
13757#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13758choke me
13759#else
698dcdb6 13760$ac_func();
10f2d63a
VZ
13761#endif
13762
698dcdb6
VZ
13763; return 0; }
13764EOF
831b3152 13765if { (eval echo configure:13766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13766 rm -rf conftest*
13767 eval "ac_cv_func_$ac_func=yes"
13768else
13769 echo "configure: failed program was:" >&5
13770 cat conftest.$ac_ext >&5
13771 rm -rf conftest*
13772 eval "ac_cv_func_$ac_func=no"
13773fi
13774rm -f conftest*
13775fi
13776
13777if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13778 echo "$ac_t""yes" 1>&6
13779 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13780 cat >> confdefs.h <<EOF
13781#define $ac_tr_func 1
13782EOF
13783 cat >> confdefs.h <<\EOF
c63c7106
VZ
13784#define HAVE_INET_ATON 1
13785EOF
13786
10f2d63a 13787else
698dcdb6
VZ
13788 echo "$ac_t""no" 1>&6
13789 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
831b3152 13790echo "configure:13791: checking for inet_aton in -l$INET_LINK" >&5
698dcdb6
VZ
13791ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
13792if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13793 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13794else
698dcdb6 13795 ac_save_LIBS="$LIBS"
c63c7106 13796LIBS="-l$INET_LINK $LIBS"
698dcdb6 13797cat > conftest.$ac_ext <<EOF
831b3152 13798#line 13799 "configure"
10f2d63a
VZ
13799#include "confdefs.h"
13800/* Override any gcc2 internal prototype to avoid an error. */
13801/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13802 builtin and then its argument prototype would still apply. */
13803char inet_aton();
13804
13805int main() {
13806inet_aton()
13807; return 0; }
13808EOF
831b3152 13809if { (eval echo configure:13810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13810 rm -rf conftest*
13811 eval "ac_cv_lib_$ac_lib_var=yes"
13812else
13813 echo "configure: failed program was:" >&5
13814 cat conftest.$ac_ext >&5
13815 rm -rf conftest*
13816 eval "ac_cv_lib_$ac_lib_var=no"
13817fi
13818rm -f conftest*
13819LIBS="$ac_save_LIBS"
13820
13821fi
13822if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13823 echo "$ac_t""yes" 1>&6
13824 cat >> confdefs.h <<\EOF
c63c7106 13825#define HAVE_INET_ATON 1
10f2d63a
VZ
13826EOF
13827
698dcdb6
VZ
13828else
13829 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13830fi
13831
698dcdb6 13832
c63c7106
VZ
13833fi
13834done
13835
698dcdb6 13836
c63c7106 13837if test "x$INET_LINK" != "x"; then
698dcdb6 13838 cat >> confdefs.h <<\EOF
c63c7106
VZ
13839#define HAVE_INET_ADDR 1
13840EOF
13841
13842 INET_LINK="-l$INET_LINK"
13843fi
10f2d63a
VZ
13844
13845fi
13846
698dcdb6
VZ
13847
13848cat > confcache <<\EOF
10f2d63a
VZ
13849# This file is a shell script that caches the results of configure
13850# tests run on this system so they can be shared between configure
698dcdb6
VZ
13851# scripts and configure runs. It is not useful on other systems.
13852# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 13853#
698dcdb6
VZ
13854# By default, configure uses ./config.cache as the cache file,
13855# creating it if it does not exist already. You can give configure
13856# the --cache-file=FILE option to use a different cache file; that is
13857# what configure does when it calls configure scripts in
13858# subdirectories, so they share the cache.
13859# Giving --cache-file=/dev/null disables caching, for debugging configure.
13860# config.status only pays attention to the cache file if you give it the
13861# --recheck option to rerun configure.
10f2d63a 13862#
698dcdb6 13863EOF
10f2d63a
VZ
13864# The following way of writing the cache mishandles newlines in values,
13865# but we know of no workaround that is simple, portable, and efficient.
13866# So, don't put newlines in cache variables' values.
13867# Ultrix sh set writes to stderr and can't be redirected directly,
13868# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
13869(set) 2>&1 |
13870 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13871 *ac_space=\ *)
13872 # `set' does not quote correctly, so add quotes (double-quote substitution
13873 # turns \\\\ into \\, and sed turns \\ into \).
13874 sed -n \
13875 -e "s/'/'\\\\''/g" \
13876 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13877 ;;
13878 *)
13879 # `set' quotes correctly as required by POSIX, so do not add quotes.
13880 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13881 ;;
13882 esac >> confcache
13883if cmp -s $cache_file confcache; then
13884 :
13885else
10f2d63a 13886 if test -w $cache_file; then
698dcdb6
VZ
13887 echo "updating cache $cache_file"
13888 cat confcache > $cache_file
10f2d63a
VZ
13889 else
13890 echo "not updating unwritable cache $cache_file"
13891 fi
13892fi
13893rm -f confcache
13894
698dcdb6
VZ
13895
13896
b089607b 13897if test "$TOOLKIT" != "MSW"; then
10f2d63a 13898
698dcdb6 13899
10f2d63a
VZ
13900THREADS_LINK=""
13901THREADS_OBJ=""
13902
13903if test "$wxUSE_THREADS" = "yes" ; then
13904 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 13905 echo "configure: warning: Threads are not supported under WINE" 1>&2
10f2d63a 13906 wxUSE_THREADS="no"
b12915c1 13907 elif test "$USE_BEOS" = 1; then
698dcdb6 13908 echo "configure: warning: BeOS threads are not yet supported" 1>&2
b12915c1 13909 wxUSE_THREADS="no"
10f2d63a
VZ
13910 fi
13911fi
13912
13913if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 13914
186837b0 13915 if test "$USE_AIX" = 1; then
f6bcfd97
BP
13916 THREADS_LIB=pthreads
13917 else
13918 THREADS_LIB=pthread
13919 fi
13920
698dcdb6 13921 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
831b3152 13922echo "configure:13923: checking for pthread_create in -l$THREADS_LIB" >&5
698dcdb6
VZ
13923ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
13924if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13925 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13926else
698dcdb6 13927 ac_save_LIBS="$LIBS"
f6bcfd97 13928LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 13929cat > conftest.$ac_ext <<EOF
831b3152 13930#line 13931 "configure"
10f2d63a
VZ
13931#include "confdefs.h"
13932/* Override any gcc2 internal prototype to avoid an error. */
13933/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13934 builtin and then its argument prototype would still apply. */
13935char pthread_create();
13936
13937int main() {
13938pthread_create()
13939; return 0; }
13940EOF
831b3152 13941if { (eval echo configure:13942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13942 rm -rf conftest*
13943 eval "ac_cv_lib_$ac_lib_var=yes"
13944else
13945 echo "configure: failed program was:" >&5
13946 cat conftest.$ac_ext >&5
13947 rm -rf conftest*
13948 eval "ac_cv_lib_$ac_lib_var=no"
13949fi
13950rm -f conftest*
13951LIBS="$ac_save_LIBS"
10f2d63a 13952
698dcdb6
VZ
13953fi
13954if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13955 echo "$ac_t""yes" 1>&6
13956
10f2d63a 13957 THREADS_OBJ="threadpsx.lo"
f6bcfd97 13958 THREADS_LINK=$THREADS_LIB
698dcdb6 13959
10f2d63a 13960else
698dcdb6 13961 echo "$ac_t""no" 1>&6
10f2d63a 13962
698dcdb6 13963 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
831b3152 13964echo "configure:13965: checking for pthread_create in -lc_r" >&5
698dcdb6
VZ
13965ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
13966if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13967 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13968else
698dcdb6 13969 ac_save_LIBS="$LIBS"
10f2d63a 13970LIBS="-lc_r $LIBS"
698dcdb6 13971cat > conftest.$ac_ext <<EOF
831b3152 13972#line 13973 "configure"
10f2d63a
VZ
13973#include "confdefs.h"
13974/* Override any gcc2 internal prototype to avoid an error. */
13975/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13976 builtin and then its argument prototype would still apply. */
13977char pthread_create();
13978
13979int main() {
13980pthread_create()
13981; return 0; }
13982EOF
831b3152 13983if { (eval echo configure:13984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13984 rm -rf conftest*
13985 eval "ac_cv_lib_$ac_lib_var=yes"
13986else
13987 echo "configure: failed program was:" >&5
13988 cat conftest.$ac_ext >&5
13989 rm -rf conftest*
13990 eval "ac_cv_lib_$ac_lib_var=no"
13991fi
13992rm -f conftest*
13993LIBS="$ac_save_LIBS"
10f2d63a 13994
698dcdb6
VZ
13995fi
13996if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13997 echo "$ac_t""yes" 1>&6
13998
10f2d63a
VZ
13999 THREADS_OBJ="threadpsx.lo"
14000 THREADS_LINK="c_r"
698dcdb6 14001
10f2d63a 14002else
698dcdb6 14003 echo "$ac_t""no" 1>&6
10f2d63a 14004
698dcdb6
VZ
14005 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
14006echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
831b3152 14007echo "configure:14008: checking for sys/prctl.h" >&5
698dcdb6
VZ
14008if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14009 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14010else
698dcdb6 14011 cat > conftest.$ac_ext <<EOF
831b3152 14012#line 14013 "configure"
10f2d63a
VZ
14013#include "confdefs.h"
14014#include <sys/prctl.h>
698dcdb6
VZ
14015EOF
14016ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
831b3152 14017{ (eval echo configure:14018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14018ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14019if test -z "$ac_err"; then
14020 rm -rf conftest*
14021 eval "ac_cv_header_$ac_safe=yes"
1e487827 14022else
698dcdb6
VZ
14023 echo "$ac_err" >&5
14024 echo "configure: failed program was:" >&5
10f2d63a 14025 cat conftest.$ac_ext >&5
698dcdb6
VZ
14026 rm -rf conftest*
14027 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14028fi
698dcdb6 14029rm -f conftest*
10f2d63a 14030fi
698dcdb6
VZ
14031if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14032 echo "$ac_t""yes" 1>&6
14033
1f8ae82f 14034 THREADS_OBJ="threadsgi.lo"
698dcdb6
VZ
14035
14036else
14037 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14038fi
14039
698dcdb6 14040
6232543b 14041fi
10f2d63a 14042
698dcdb6 14043
1e487827 14044fi
703e0a69 14045
698dcdb6 14046
10f2d63a
VZ
14047 if test -z "$THREADS_OBJ" ; then
14048 wxUSE_THREADS=no
698dcdb6 14049 echo "configure: warning: No thread support on this system" 1>&2
10f2d63a
VZ
14050 fi
14051fi
14052
14053if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 14054 for ac_func in thr_setconcurrency
70846f0a 14055do
698dcdb6 14056echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
831b3152 14057echo "configure:14058: checking for $ac_func" >&5
698dcdb6
VZ
14058if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14059 echo $ac_n "(cached) $ac_c" 1>&6
14060else
14061 cat > conftest.$ac_ext <<EOF
831b3152 14062#line 14063 "configure"
70846f0a
VZ
14063#include "confdefs.h"
14064/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14065 which can conflict with char $ac_func(); below. */
70846f0a
VZ
14066#include <assert.h>
14067/* Override any gcc2 internal prototype to avoid an error. */
14068/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14069 builtin and then its argument prototype would still apply. */
14070char $ac_func();
14071
14072int main() {
70846f0a
VZ
14073
14074/* The GNU C library defines this for functions which it implements
14075 to always fail with ENOSYS. Some functions are actually named
14076 something starting with __ and the normal name is an alias. */
14077#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14078choke me
14079#else
698dcdb6 14080$ac_func();
70846f0a
VZ
14081#endif
14082
698dcdb6 14083; return 0; }
70846f0a 14084EOF
831b3152 14085if { (eval echo configure:14086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14086 rm -rf conftest*
14087 eval "ac_cv_func_$ac_func=yes"
14088else
14089 echo "configure: failed program was:" >&5
14090 cat conftest.$ac_ext >&5
14091 rm -rf conftest*
14092 eval "ac_cv_func_$ac_func=no"
14093fi
14094rm -f conftest*
14095fi
70846f0a 14096
698dcdb6
VZ
14097if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14098 echo "$ac_t""yes" 1>&6
14099 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14100 cat >> confdefs.h <<EOF
14101#define $ac_tr_func 1
14102EOF
14103
14104else
14105 echo "$ac_t""no" 1>&6
70846f0a
VZ
14106fi
14107done
14108
698dcdb6
VZ
14109
14110
14111 for ac_hdr in sched.h
10f2d63a 14112do
698dcdb6
VZ
14113ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14114echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
831b3152 14115echo "configure:14116: checking for $ac_hdr" >&5
698dcdb6
VZ
14116if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14117 echo $ac_n "(cached) $ac_c" 1>&6
14118else
14119 cat > conftest.$ac_ext <<EOF
831b3152 14120#line 14121 "configure"
10f2d63a 14121#include "confdefs.h"
698dcdb6
VZ
14122#include <$ac_hdr>
14123EOF
14124ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
831b3152 14125{ (eval echo configure:14126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14126ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14127if test -z "$ac_err"; then
14128 rm -rf conftest*
14129 eval "ac_cv_header_$ac_safe=yes"
1e487827 14130else
698dcdb6
VZ
14131 echo "$ac_err" >&5
14132 echo "configure: failed program was:" >&5
10f2d63a 14133 cat conftest.$ac_ext >&5
698dcdb6
VZ
14134 rm -rf conftest*
14135 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14136fi
698dcdb6 14137rm -f conftest*
10f2d63a 14138fi
698dcdb6
VZ
14139if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14140 echo "$ac_t""yes" 1>&6
14141 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14142 cat >> confdefs.h <<EOF
14143#define $ac_tr_hdr 1
10f2d63a 14144EOF
698dcdb6
VZ
14145
14146else
14147 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14148fi
14149done
14150
698dcdb6
VZ
14151
14152 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
831b3152 14153echo "configure:14154: checking for sched_yield in -l$THREADS_LINK" >&5
698dcdb6
VZ
14154ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
14155if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14156 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14157else
698dcdb6 14158 ac_save_LIBS="$LIBS"
10f2d63a 14159LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14160cat > conftest.$ac_ext <<EOF
831b3152 14161#line 14162 "configure"
10f2d63a
VZ
14162#include "confdefs.h"
14163/* Override any gcc2 internal prototype to avoid an error. */
14164/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14165 builtin and then its argument prototype would still apply. */
14166char sched_yield();
14167
14168int main() {
14169sched_yield()
14170; return 0; }
14171EOF
831b3152 14172if { (eval echo configure:14173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14173 rm -rf conftest*
14174 eval "ac_cv_lib_$ac_lib_var=yes"
14175else
14176 echo "configure: failed program was:" >&5
14177 cat conftest.$ac_ext >&5
14178 rm -rf conftest*
14179 eval "ac_cv_lib_$ac_lib_var=no"
14180fi
14181rm -f conftest*
14182LIBS="$ac_save_LIBS"
14183
14184fi
14185if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14186 echo "$ac_t""yes" 1>&6
14187 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14188#define HAVE_SCHED_YIELD 1
14189EOF
14190
14191else
698dcdb6
VZ
14192 echo "$ac_t""no" 1>&6
14193echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
831b3152 14194echo "configure:14195: checking for sched_yield in -lposix4" >&5
698dcdb6
VZ
14195ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
14196if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14197 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14198else
698dcdb6 14199 ac_save_LIBS="$LIBS"
1e487827 14200LIBS="-lposix4 $LIBS"
698dcdb6 14201cat > conftest.$ac_ext <<EOF
831b3152 14202#line 14203 "configure"
10f2d63a
VZ
14203#include "confdefs.h"
14204/* Override any gcc2 internal prototype to avoid an error. */
14205/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14206 builtin and then its argument prototype would still apply. */
14207char sched_yield();
14208
14209int main() {
14210sched_yield()
14211; return 0; }
14212EOF
831b3152 14213if { (eval echo configure:14214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14214 rm -rf conftest*
14215 eval "ac_cv_lib_$ac_lib_var=yes"
14216else
14217 echo "configure: failed program was:" >&5
14218 cat conftest.$ac_ext >&5
14219 rm -rf conftest*
14220 eval "ac_cv_lib_$ac_lib_var=no"
14221fi
14222rm -f conftest*
14223LIBS="$ac_save_LIBS"
14224
14225fi
14226if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14227 echo "$ac_t""yes" 1>&6
14228 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14229#define HAVE_SCHED_YIELD 1
14230EOF
14231 POSIX4_LINK="-lposix4"
14232else
698dcdb6
VZ
14233 echo "$ac_t""no" 1>&6
14234echo "configure: warning: wxThread::Yield will not work properly" 1>&2
14235
6232543b 14236fi
10f2d63a 14237
698dcdb6 14238
1e487827 14239fi
703e0a69 14240
698dcdb6 14241
f6bcfd97 14242 HAVE_PRIOR_FUNCS=0
698dcdb6 14243 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
831b3152 14244echo "configure:14245: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
698dcdb6
VZ
14245ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
14246if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14247 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14248else
698dcdb6 14249 ac_save_LIBS="$LIBS"
10f2d63a 14250LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14251cat > conftest.$ac_ext <<EOF
831b3152 14252#line 14253 "configure"
10f2d63a
VZ
14253#include "confdefs.h"
14254/* Override any gcc2 internal prototype to avoid an error. */
14255/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14256 builtin and then its argument prototype would still apply. */
14257char pthread_attr_getschedpolicy();
14258
14259int main() {
14260pthread_attr_getschedpolicy()
14261; return 0; }
14262EOF
831b3152 14263if { (eval echo configure:14264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14264 rm -rf conftest*
14265 eval "ac_cv_lib_$ac_lib_var=yes"
14266else
14267 echo "configure: failed program was:" >&5
14268 cat conftest.$ac_ext >&5
14269 rm -rf conftest*
14270 eval "ac_cv_lib_$ac_lib_var=no"
14271fi
14272rm -f conftest*
14273LIBS="$ac_save_LIBS"
14274
14275fi
14276if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14277 echo "$ac_t""yes" 1>&6
14278 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
831b3152 14279echo "configure:14280: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
698dcdb6
VZ
14280ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
14281if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14282 echo $ac_n "(cached) $ac_c" 1>&6
14283else
14284 ac_save_LIBS="$LIBS"
f6bcfd97 14285LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14286cat > conftest.$ac_ext <<EOF
831b3152 14287#line 14288 "configure"
f6bcfd97
BP
14288#include "confdefs.h"
14289/* Override any gcc2 internal prototype to avoid an error. */
14290/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14291 builtin and then its argument prototype would still apply. */
14292char pthread_attr_setschedparam();
14293
14294int main() {
14295pthread_attr_setschedparam()
14296; return 0; }
14297EOF
831b3152 14298if { (eval echo configure:14299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14299 rm -rf conftest*
14300 eval "ac_cv_lib_$ac_lib_var=yes"
14301else
14302 echo "configure: failed program was:" >&5
14303 cat conftest.$ac_ext >&5
14304 rm -rf conftest*
14305 eval "ac_cv_lib_$ac_lib_var=no"
14306fi
14307rm -f conftest*
14308LIBS="$ac_save_LIBS"
14309
14310fi
14311if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14312 echo "$ac_t""yes" 1>&6
14313 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
831b3152 14314echo "configure:14315: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
698dcdb6
VZ
14315ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14316if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14317 echo $ac_n "(cached) $ac_c" 1>&6
14318else
14319 ac_save_LIBS="$LIBS"
f6bcfd97 14320LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14321cat > conftest.$ac_ext <<EOF
831b3152 14322#line 14323 "configure"
f6bcfd97
BP
14323#include "confdefs.h"
14324/* Override any gcc2 internal prototype to avoid an error. */
14325/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14326 builtin and then its argument prototype would still apply. */
14327char sched_get_priority_max();
14328
14329int main() {
14330sched_get_priority_max()
14331; return 0; }
14332EOF
831b3152 14333if { (eval echo configure:14334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14334 rm -rf conftest*
14335 eval "ac_cv_lib_$ac_lib_var=yes"
14336else
14337 echo "configure: failed program was:" >&5
14338 cat conftest.$ac_ext >&5
14339 rm -rf conftest*
14340 eval "ac_cv_lib_$ac_lib_var=no"
14341fi
14342rm -f conftest*
14343LIBS="$ac_save_LIBS"
14344
14345fi
14346if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14347 echo "$ac_t""yes" 1>&6
f6bcfd97 14348 HAVE_PRIOR_FUNCS=1
10f2d63a 14349else
698dcdb6
VZ
14350 echo "$ac_t""no" 1>&6
14351echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
831b3152 14352echo "configure:14353: checking for sched_get_priority_max in -lposix4" >&5
698dcdb6
VZ
14353ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14354if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14355 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 14356else
698dcdb6 14357 ac_save_LIBS="$LIBS"
1e487827 14358LIBS="-lposix4 $LIBS"
698dcdb6 14359cat > conftest.$ac_ext <<EOF
831b3152 14360#line 14361 "configure"
10f2d63a 14361#include "confdefs.h"
6232543b 14362/* Override any gcc2 internal prototype to avoid an error. */
6232543b 14363/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14364 builtin and then its argument prototype would still apply. */
14365char sched_get_priority_max();
14366
14367int main() {
14368sched_get_priority_max()
14369; return 0; }
14370EOF
831b3152 14371if { (eval echo configure:14372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14372 rm -rf conftest*
14373 eval "ac_cv_lib_$ac_lib_var=yes"
14374else
14375 echo "configure: failed program was:" >&5
14376 cat conftest.$ac_ext >&5
14377 rm -rf conftest*
14378 eval "ac_cv_lib_$ac_lib_var=no"
14379fi
14380rm -f conftest*
14381LIBS="$ac_save_LIBS"
10f2d63a 14382
698dcdb6
VZ
14383fi
14384if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14385 echo "$ac_t""yes" 1>&6
14386
f6bcfd97
BP
14387 HAVE_PRIOR_FUNCS=1
14388 POSIX4_LINK="-lposix4"
698dcdb6
VZ
14389
14390else
14391 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14392fi
14393
698dcdb6 14394
10f2d63a
VZ
14395fi
14396
698dcdb6
VZ
14397
14398else
14399 echo "$ac_t""no" 1>&6
6232543b 14400fi
10f2d63a 14401
698dcdb6
VZ
14402
14403else
14404 echo "$ac_t""no" 1>&6
1e487827 14405fi
703e0a69 14406
698dcdb6 14407
f6bcfd97 14408 if test "$HAVE_PRIOR_FUNCS" = 1; then
698dcdb6 14409 cat >> confdefs.h <<\EOF
f6bcfd97
BP
14410#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
14411EOF
14412
14413 else
698dcdb6 14414 echo "configure: warning: Setting thread priority will not work" 1>&2
f6bcfd97
BP
14415 fi
14416
698dcdb6 14417 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
831b3152 14418echo "configure:14419: checking for pthread_cancel in -l$THREADS_LINK" >&5
698dcdb6
VZ
14419ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
14420if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14421 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14422else
698dcdb6 14423 ac_save_LIBS="$LIBS"
10f2d63a 14424LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14425cat > conftest.$ac_ext <<EOF
831b3152 14426#line 14427 "configure"
10f2d63a
VZ
14427#include "confdefs.h"
14428/* Override any gcc2 internal prototype to avoid an error. */
14429/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14430 builtin and then its argument prototype would still apply. */
14431char pthread_cancel();
14432
14433int main() {
14434pthread_cancel()
14435; return 0; }
14436EOF
831b3152 14437if { (eval echo configure:14438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14438 rm -rf conftest*
14439 eval "ac_cv_lib_$ac_lib_var=yes"
14440else
14441 echo "configure: failed program was:" >&5
14442 cat conftest.$ac_ext >&5
14443 rm -rf conftest*
14444 eval "ac_cv_lib_$ac_lib_var=no"
14445fi
14446rm -f conftest*
14447LIBS="$ac_save_LIBS"
14448
14449fi
14450if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14451 echo "$ac_t""yes" 1>&6
14452 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14453#define HAVE_PTHREAD_CANCEL 1
14454EOF
14455
14456else
698dcdb6
VZ
14457 echo "$ac_t""no" 1>&6
14458echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10f2d63a
VZ
14459fi
14460
1e487827 14461
698dcdb6 14462 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
831b3152 14463echo "configure:14464: checking for pthread_cleanup_push/pop" >&5
698dcdb6
VZ
14464if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
14465 echo $ac_n "(cached) $ac_c" 1>&6
14466else
14467
14468 cat > conftest.$ac_ext <<EOF
831b3152 14469#line 14470 "configure"
10f2d63a
VZ
14470#include "confdefs.h"
14471#include <pthread.h>
698dcdb6 14472int main() {
10f2d63a
VZ
14473
14474 pthread_cleanup_push(NULL, NULL);
14475 pthread_cleanup_pop(0);
698dcdb6
VZ
14476
14477; return 0; }
14478EOF
831b3152 14479if { (eval echo configure:14480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14480 rm -rf conftest*
14481
10f2d63a 14482 wx_cv_func_pthread_cleanup_push=yes
698dcdb6 14483
10f2d63a 14484else
698dcdb6
VZ
14485 echo "configure: failed program was:" >&5
14486 cat conftest.$ac_ext >&5
14487 rm -rf conftest*
14488
10f2d63a 14489 wx_cv_func_pthread_cleanup_push=no
698dcdb6 14490
6232543b 14491fi
698dcdb6
VZ
14492rm -f conftest*
14493
1e487827 14494fi
698dcdb6
VZ
14495
14496echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
10f2d63a 14497
d9b9876f 14498 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
698dcdb6 14499 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14500#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
14501EOF
14502
14503 fi
14504
698dcdb6
VZ
14505
14506 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
831b3152 14507echo "configure:14508: checking for pthread_mutexattr_t" >&5
698dcdb6
VZ
14508if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
14509 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 14510else
698dcdb6
VZ
14511
14512 cat > conftest.$ac_ext <<EOF
831b3152 14513#line 14514 "configure"
d9b9876f
VZ
14514#include "confdefs.h"
14515#include <pthread.h>
698dcdb6 14516int main() {
d9b9876f
VZ
14517
14518 pthread_mutexattr_t attr;
14519 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
698dcdb6
VZ
14520
14521; return 0; }
14522EOF
831b3152 14523if { (eval echo configure:14524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14524 rm -rf conftest*
14525
d9b9876f 14526 wx_cv_type_pthread_mutexattr_t=yes
698dcdb6 14527
d9b9876f 14528else
698dcdb6
VZ
14529 echo "configure: failed program was:" >&5
14530 cat conftest.$ac_ext >&5
14531 rm -rf conftest*
14532
d9b9876f 14533 wx_cv_type_pthread_mutexattr_t=no
698dcdb6
VZ
14534
14535
6232543b 14536fi
698dcdb6
VZ
14537rm -f conftest*
14538
1e487827 14539fi
698dcdb6
VZ
14540
14541echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
d9b9876f
VZ
14542
14543 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
698dcdb6 14544 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14545#define HAVE_PTHREAD_MUTEXATTR_T 1
14546EOF
14547
14548 else
698dcdb6 14549 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
831b3152 14550echo "configure:14551: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
698dcdb6
VZ
14551if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
14552 echo $ac_n "(cached) $ac_c" 1>&6
14553else
14554
14555 cat > conftest.$ac_ext <<EOF
831b3152 14556#line 14557 "configure"
d9b9876f
VZ
14557#include "confdefs.h"
14558#include <pthread.h>
698dcdb6 14559int main() {
d9b9876f
VZ
14560
14561 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
698dcdb6
VZ
14562
14563; return 0; }
14564EOF
831b3152 14565if { (eval echo configure:14566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14566 rm -rf conftest*
14567
d9b9876f 14568 wx_cv_type_pthread_rec_mutex_init=yes
698dcdb6 14569
d9b9876f 14570else
698dcdb6
VZ
14571 echo "configure: failed program was:" >&5
14572 cat conftest.$ac_ext >&5
14573 rm -rf conftest*
14574
d9b9876f 14575 wx_cv_type_pthread_rec_mutex_init=no
698dcdb6
VZ
14576
14577
6232543b 14578fi
698dcdb6
VZ
14579rm -f conftest*
14580
1e487827 14581fi
698dcdb6
VZ
14582
14583echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
3765e936 14584 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
698dcdb6 14585 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14586#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
14587EOF
14588
14589 else
698dcdb6 14590 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
d9b9876f
VZ
14591 fi
14592 fi
14593
10f2d63a 14594 THREADS_LINK="-l$THREADS_LINK"
186837b0
VZ
14595
14596 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
14597 CFLAGS="${CFLAGS} -mt"
14598 CXXFLAGS="${CXXFLAGS} -mt"
14599 LDFLAGS="${LDFLAGS} -mt"
14600 fi
10f2d63a
VZ
14601fi
14602
14603fi
14604
14605if test "$wxUSE_THREADS" = "yes"; then
698dcdb6 14606 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14607#define wxUSE_THREADS 1
14608EOF
14609
698dcdb6 14610
2c6025bc 14611 if test "$wxUSE_MAC" = "0"; then
10f2d63a 14612 CFLAGS="${CFLAGS} -D_REENTRANT"
2c6025bc
GD
14613 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14614 fi
10f2d63a
VZ
14615
14616 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
14617else
14618 if test "$ac_cv_func_strtok_r" = "yes"; then
698dcdb6 14619 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
831b3152 14620echo "configure:14621: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
14621 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
14622 CFLAGS="${CFLAGS} -D_REENTRANT"
14623 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
698dcdb6 14624 echo "$ac_t""yes" 1>&6
ab9b9eab 14625 else
698dcdb6 14626 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14627 fi
14628 fi
14629fi
14630
6f72b082 14631if test "$WXGTK20" = 1 ; then
698dcdb6 14632 cat >> confdefs.h <<EOF
6f72b082 14633#define __WXGTK20__ $WXGTK20
13111b2a
VZ
14634EOF
14635
14636 WXGTK12=1
14637fi
14638
10f2d63a 14639if test "$WXGTK12" = 1 ; then
698dcdb6 14640 cat >> confdefs.h <<EOF
10f2d63a
VZ
14641#define __WXGTK12__ $WXGTK12
14642EOF
14643
14644fi
14645
f6bcfd97 14646if test "$WXGTK127" = 1 ; then
698dcdb6 14647 cat >> confdefs.h <<EOF
f6bcfd97
BP
14648#define __WXGTK127__ $WXGTK127
14649EOF
14650
14651fi
14652
10f2d63a
VZ
14653if test "$WXWINE" = 1 ; then
14654 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
14655fi
14656
b4085ce6 14657if test "$wxUSE_MAC" = 1 ; then
2c6025bc 14658 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON"
ea5999b9 14659 CFLAGS="${CFLAGS} -fno-common -fpascal-strings"
0c451ef3 14660 CPPFLAGS="${CPPFLAGS} -cpp-precomp -fno-common -fpascal-strings"
2f51a9ec
GD
14661 # Extract the first word of "Rez", so it can be a program name with args.
14662set dummy Rez; ac_word=$2
698dcdb6 14663echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
831b3152 14664echo "configure:14665: checking for $ac_word" >&5
698dcdb6
VZ
14665if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then
14666 echo $ac_n "(cached) $ac_c" 1>&6
2f51a9ec
GD
14667else
14668 if test -n "$REZ"; then
14669 ac_cv_prog_REZ="$REZ" # Let the user override the test.
14670else
698dcdb6
VZ
14671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14672 ac_dummy="$PATH"
14673 for ac_dir in $ac_dummy; do
14674 test -z "$ac_dir" && ac_dir=.
14675 if test -f $ac_dir/$ac_word; then
14676 ac_cv_prog_REZ="Rez"
14677 break
14678 fi
14679 done
14680 IFS="$ac_save_ifs"
2f51a9ec
GD
14681 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
14682fi
14683fi
698dcdb6 14684REZ="$ac_cv_prog_REZ"
2f51a9ec 14685if test -n "$REZ"; then
698dcdb6 14686 echo "$ac_t""$REZ" 1>&6
2f51a9ec 14687else
698dcdb6 14688 echo "$ac_t""no" 1>&6
2f51a9ec
GD
14689fi
14690
14691 # Extract the first word of "Derez", so it can be a program name with args.
14692set dummy Derez; ac_word=$2
698dcdb6 14693echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
831b3152 14694echo "configure:14695: checking for $ac_word" >&5
698dcdb6
VZ
14695if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
14696 echo $ac_n "(cached) $ac_c" 1>&6
2f51a9ec
GD
14697else
14698 if test -n "$DEREZ"; then
14699 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
14700else
698dcdb6
VZ
14701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14702 ac_dummy="$PATH"
14703 for ac_dir in $ac_dummy; do
14704 test -z "$ac_dir" && ac_dir=.
14705 if test -f $ac_dir/$ac_word; then
14706 ac_cv_prog_DEREZ="Derez"
14707 break
14708 fi
14709 done
14710 IFS="$ac_save_ifs"
2f51a9ec
GD
14711 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
14712fi
14713fi
698dcdb6 14714DEREZ="$ac_cv_prog_DEREZ"
2f51a9ec 14715if test -n "$DEREZ"; then
698dcdb6 14716 echo "$ac_t""$DEREZ" 1>&6
2f51a9ec 14717else
698dcdb6 14718 echo "$ac_t""no" 1>&6
2f51a9ec
GD
14719fi
14720
14721 RESCOMP=${REZ}
14722 REZFLAGS="-d __UNIX__ -useDF"
14723 DEREZFLAGS="Carbon.r -useDF"
14724 RESFLAGS="Carbon.r -t APPL"
14725 LIBWXMACRES="\$(LIBWX_MACRES)"
14726 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
b4085ce6
GD
14727fi
14728
10f2d63a
VZ
14729if test "$wxUSE_CYGWIN" = 1 ; then
14730 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
14731fi
14732
14733WXDEBUG=
14734
14735if test "$wxUSE_DEBUG_INFO" = "yes" ; then
14736 WXDEBUG="-g"
14737 wxUSE_OPTIMISE=no
14738fi
14739
14740if test "$wxUSE_DEBUG_GDB" = "yes" ; then
14741 wxUSE_DEBUG_INFO=yes
14742 WXDEBUG="-ggdb"
14743fi
14744
14745if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
698dcdb6 14746 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14747#define WXDEBUG 1
14748EOF
14749
14750 WXDEBUG_DEFINE="-D__WXDEBUG__"
14751else
14752 if test "$wxUSE_GTK" = 1 ; then
14753 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
14754 fi
14755fi
14756
14757if test "$wxUSE_MEM_TRACING" = "yes" ; then
698dcdb6 14758 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14759#define wxUSE_MEMORY_TRACING 1
14760EOF
14761
698dcdb6 14762 cat >> confdefs.h <<\EOF
10f2d63a 14763#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
14764EOF
14765
698dcdb6 14766 cat >> confdefs.h <<\EOF
47c13eb7 14767#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
14768EOF
14769
14770 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
14771fi
14772
14773if test "$wxUSE_DMALLOC" = "yes" ; then
14774 DMALLOC_LINK="-ldmalloc"
14775fi
14776
14777PROFILE=
14778if test "$wxUSE_PROFILE" = "yes" ; then
14779 PROFILE="-pg"
14780fi
14781
14782DEP_INFO_FLAGS=
caa2c79b 14783CODE_GEN_FLAGS=
0f3f1cbc 14784CODE_GEN_FLAGS_CXX=
10f2d63a
VZ
14785if test "$GCC" = yes ; then
14786 if test "$wxUSE_NO_RTTI" = "yes" ; then
0f3f1cbc 14787 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
14788 fi
14789 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
0f3f1cbc 14790 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
14791 fi
14792 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 14793 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
14794 fi
14795 if test "$wxUSE_NO_DEPS" = "no" ; then
14796 DEP_INFO_FLAGS="-MMD"
14797 fi
14798fi
14799
698dcdb6 14800
10f2d63a
VZ
14801CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
14802CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
14803if test "$wxUSE_OPTIMISE" = "no" ; then
14804 OPTIMISE=
14805else
14806 if test "$GCC" = yes ; then
14807 OPTIMISE="-O2"
14808 case "${host}" in
14809 i586-*-*|i686-*-* )
14810 OPTIMISE="${OPTIMISE} "
14811 ;;
14812 esac
14813 else
14814 OPTIMISE="-O"
14815 fi
14816fi
14817
54276ccf
VZ
14818if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
14819 cat >> confdefs.h <<\EOF
14820#define WXWIN_COMPATIBILITY_2 1
14821EOF
14822
14823
14824 WXWIN_COMPATIBILITY_2_2="yes"
14825fi
14826
14827if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
14828 cat >> confdefs.h <<\EOF
14829#define WXWIN_COMPATIBILITY_2_2 1
14830EOF
14831
14832fi
14833
698dcdb6 14834
3e44f09d
VZ
14835REGEX_INCLUDE=
14836if test "$wxUSE_REGEX" != "no"; then
14837 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
14838echo $ac_n "checking for regex.h""... $ac_c" 1>&6
831b3152 14839echo "configure:14840: checking for regex.h" >&5
3e44f09d
VZ
14840if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14841 echo $ac_n "(cached) $ac_c" 1>&6
14842else
14843 cat > conftest.$ac_ext <<EOF
831b3152 14844#line 14845 "configure"
3e44f09d
VZ
14845#include "confdefs.h"
14846#include <regex.h>
14847EOF
14848ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
831b3152 14849{ (eval echo configure:14850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3e44f09d
VZ
14850ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14851if test -z "$ac_err"; then
14852 rm -rf conftest*
14853 eval "ac_cv_header_$ac_safe=yes"
14854else
14855 echo "$ac_err" >&5
14856 echo "configure: failed program was:" >&5
14857 cat conftest.$ac_ext >&5
14858 rm -rf conftest*
14859 eval "ac_cv_header_$ac_safe=no"
14860fi
14861rm -f conftest*
14862fi
14863if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14864 echo "$ac_t""yes" 1>&6
14865 for ac_func in regcomp
14866do
14867echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
831b3152 14868echo "configure:14869: checking for $ac_func" >&5
3e44f09d
VZ
14869if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14870 echo $ac_n "(cached) $ac_c" 1>&6
14871else
14872 cat > conftest.$ac_ext <<EOF
831b3152 14873#line 14874 "configure"
3e44f09d
VZ
14874#include "confdefs.h"
14875/* System header to define __stub macros and hopefully few prototypes,
14876 which can conflict with char $ac_func(); below. */
14877#include <assert.h>
14878/* Override any gcc2 internal prototype to avoid an error. */
14879/* We use char because int might match the return type of a gcc2
14880 builtin and then its argument prototype would still apply. */
14881char $ac_func();
14882
14883int main() {
14884
14885/* The GNU C library defines this for functions which it implements
14886 to always fail with ENOSYS. Some functions are actually named
14887 something starting with __ and the normal name is an alias. */
14888#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14889choke me
14890#else
14891$ac_func();
14892#endif
14893
14894; return 0; }
14895EOF
831b3152 14896if { (eval echo configure:14897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3e44f09d
VZ
14897 rm -rf conftest*
14898 eval "ac_cv_func_$ac_func=yes"
14899else
14900 echo "configure: failed program was:" >&5
14901 cat conftest.$ac_ext >&5
14902 rm -rf conftest*
14903 eval "ac_cv_func_$ac_func=no"
14904fi
14905rm -f conftest*
14906fi
14907
14908if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14909 echo "$ac_t""yes" 1>&6
14910 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14911 cat >> confdefs.h <<EOF
14912#define $ac_tr_func 1
14913EOF
14914
14915else
14916 echo "$ac_t""no" 1>&6
14917fi
14918done
14919
14920else
14921 echo "$ac_t""no" 1>&6
14922fi
14923
14924
14925 if test "x$ac_cv_func_regcomp" != "xyes"; then
14926 if test "$wxUSE_REGEX" = "sys"; then
14927 { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; }
14928 fi
14929
14930 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
14931 fi
14932
14933 cat >> confdefs.h <<\EOF
14934#define wxUSE_REGEX 1
14935EOF
14936
14937fi
14938
10f2d63a 14939ZLIB_INCLUDE=
422107f9 14940if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
698dcdb6 14941 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14942#define wxUSE_ZLIB 1
14943EOF
14944
422107f9
VZ
14945 if test "$wxUSE_ZLIB" = "yes" ; then
14946 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
14947 else
14948 ZLIB_LINK=
698dcdb6
VZ
14949 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
14950echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
831b3152 14951echo "configure:14952: checking for zlib.h" >&5
698dcdb6
VZ
14952if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14953 echo $ac_n "(cached) $ac_c" 1>&6
14954else
14955 cat > conftest.$ac_ext <<EOF
831b3152 14956#line 14957 "configure"
422107f9
VZ
14957#include "confdefs.h"
14958#include <zlib.h>
698dcdb6
VZ
14959EOF
14960ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
831b3152 14961{ (eval echo configure:14962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14962ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14963if test -z "$ac_err"; then
14964 rm -rf conftest*
14965 eval "ac_cv_header_$ac_safe=yes"
422107f9 14966else
698dcdb6
VZ
14967 echo "$ac_err" >&5
14968 echo "configure: failed program was:" >&5
422107f9 14969 cat conftest.$ac_ext >&5
698dcdb6
VZ
14970 rm -rf conftest*
14971 eval "ac_cv_header_$ac_safe=no"
422107f9 14972fi
698dcdb6 14973rm -f conftest*
422107f9 14974fi
698dcdb6
VZ
14975if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14976 echo "$ac_t""yes" 1>&6
14977 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
831b3152 14978echo "configure:14979: checking for deflate in -lz" >&5
698dcdb6
VZ
14979ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
14980if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14981 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 14982else
698dcdb6 14983 ac_save_LIBS="$LIBS"
422107f9 14984LIBS="-lz $LIBS"
698dcdb6 14985cat > conftest.$ac_ext <<EOF
831b3152 14986#line 14987 "configure"
422107f9
VZ
14987#include "confdefs.h"
14988/* Override any gcc2 internal prototype to avoid an error. */
14989/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14990 builtin and then its argument prototype would still apply. */
14991char deflate();
14992
14993int main() {
14994deflate()
14995; return 0; }
14996EOF
831b3152 14997if { (eval echo configure:14998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14998 rm -rf conftest*
14999 eval "ac_cv_lib_$ac_lib_var=yes"
15000else
15001 echo "configure: failed program was:" >&5
15002 cat conftest.$ac_ext >&5
15003 rm -rf conftest*
15004 eval "ac_cv_lib_$ac_lib_var=no"
15005fi
15006rm -f conftest*
15007LIBS="$ac_save_LIBS"
15008
15009fi
15010if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15011 echo "$ac_t""yes" 1>&6
422107f9 15012 ZLIB_LINK="-lz"
698dcdb6
VZ
15013else
15014 echo "$ac_t""no" 1>&6
422107f9
VZ
15015fi
15016
698dcdb6
VZ
15017else
15018 echo "$ac_t""no" 1>&6
422107f9
VZ
15019fi
15020
15021 if test "x$ZLIB_LINK" = "x" ; then
698dcdb6 15022 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
422107f9
VZ
15023 fi
15024 fi
10f2d63a
VZ
15025fi
15026
15027PNG_INCLUDE=
422107f9 15028if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
698dcdb6 15029 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15030#define wxUSE_LIBPNG 1
15031EOF
15032
41fd4136 15033 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
698dcdb6 15034 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
422107f9
VZ
15035 wxUSE_LIBPNG=yes
15036 fi
15037
15038 if test "$wxUSE_LIBPNG" = "yes" ; then
15039 PNG_INCLUDE="-I\${top_srcdir}/src/png"
15040 else
15041 PNG_LINK=
698dcdb6
VZ
15042 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
15043echo $ac_n "checking for png.h""... $ac_c" 1>&6
831b3152 15044echo "configure:15045: checking for png.h" >&5
698dcdb6
VZ
15045if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15046 echo $ac_n "(cached) $ac_c" 1>&6
15047else
15048 cat > conftest.$ac_ext <<EOF
831b3152 15049#line 15050 "configure"
422107f9
VZ
15050#include "confdefs.h"
15051#include <png.h>
698dcdb6
VZ
15052EOF
15053ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
831b3152 15054{ (eval echo configure:15055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15055ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15056if test -z "$ac_err"; then
15057 rm -rf conftest*
15058 eval "ac_cv_header_$ac_safe=yes"
422107f9 15059else
698dcdb6
VZ
15060 echo "$ac_err" >&5
15061 echo "configure: failed program was:" >&5
422107f9 15062 cat conftest.$ac_ext >&5
698dcdb6
VZ
15063 rm -rf conftest*
15064 eval "ac_cv_header_$ac_safe=no"
422107f9 15065fi
698dcdb6 15066rm -f conftest*
422107f9 15067fi
698dcdb6
VZ
15068if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15069 echo "$ac_t""yes" 1>&6
15070 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
831b3152 15071echo "configure:15072: checking for png_check_sig in -lpng" >&5
698dcdb6
VZ
15072ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
15073if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15074 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15075else
698dcdb6 15076 ac_save_LIBS="$LIBS"
422107f9 15077LIBS="-lpng -lz -lm $LIBS"
698dcdb6 15078cat > conftest.$ac_ext <<EOF
831b3152 15079#line 15080 "configure"
422107f9
VZ
15080#include "confdefs.h"
15081/* Override any gcc2 internal prototype to avoid an error. */
15082/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15083 builtin and then its argument prototype would still apply. */
15084char png_check_sig();
15085
15086int main() {
15087png_check_sig()
15088; return 0; }
15089EOF
831b3152 15090if { (eval echo configure:15091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15091 rm -rf conftest*
15092 eval "ac_cv_lib_$ac_lib_var=yes"
15093else
15094 echo "configure: failed program was:" >&5
15095 cat conftest.$ac_ext >&5
15096 rm -rf conftest*
15097 eval "ac_cv_lib_$ac_lib_var=no"
15098fi
15099rm -f conftest*
15100LIBS="$ac_save_LIBS"
15101
15102fi
15103if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15104 echo "$ac_t""yes" 1>&6
422107f9 15105 PNG_LINK="-lpng"
698dcdb6
VZ
15106else
15107 echo "$ac_t""no" 1>&6
422107f9
VZ
15108fi
15109
698dcdb6
VZ
15110
15111else
15112 echo "$ac_t""no" 1>&6
422107f9
VZ
15113fi
15114
15115 if test "x$PNG_LINK" = "x" ; then
698dcdb6 15116 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
15117 fi
15118 fi
15119
10f2d63a
VZ
15120 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
15121fi
15122
15123JPEG_INCLUDE=
422107f9 15124if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
698dcdb6 15125 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15126#define wxUSE_LIBJPEG 1
15127EOF
15128
422107f9
VZ
15129 if test "$wxUSE_LIBJPEG" = "yes" ; then
15130 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
15131 else
15132 JPEG_LINK=
463abc64 15133 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
831b3152 15134echo "configure:15135: checking for jpeglib.h" >&5
463abc64 15135 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
698dcdb6
VZ
15136 echo $ac_n "(cached) $ac_c" 1>&6
15137else
15138 cat > conftest.$ac_ext <<EOF
831b3152 15139#line 15140 "configure"
422107f9 15140#include "confdefs.h"
463abc64
VZ
15141
15142 #undef HAVE_STDLIB_H
15143 #include <stdio.h>
15144 #include <jpeglib.h>
15145
15146int main() {
15147
15148
15149; return 0; }
698dcdb6 15150EOF
831b3152 15151if { (eval echo configure:15152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15152 rm -rf conftest*
463abc64 15153 ac_cv_header_jpeglib_h=yes
6232543b 15154else
698dcdb6 15155 echo "configure: failed program was:" >&5
422107f9 15156 cat conftest.$ac_ext >&5
698dcdb6 15157 rm -rf conftest*
463abc64
VZ
15158 ac_cv_header_jpeglib_h=no
15159
422107f9 15160fi
698dcdb6 15161rm -f conftest*
463abc64 15162
422107f9 15163fi
463abc64
VZ
15164
15165 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
15166
15167 if test "$ac_cv_header_jpeglib_h" = "yes"; then
15168 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
831b3152 15169echo "configure:15170: checking for jpeg_read_header in -ljpeg" >&5
698dcdb6
VZ
15170ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
15171if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15172 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15173else
698dcdb6 15174 ac_save_LIBS="$LIBS"
422107f9 15175LIBS="-ljpeg $LIBS"
698dcdb6 15176cat > conftest.$ac_ext <<EOF
831b3152 15177#line 15178 "configure"
422107f9
VZ
15178#include "confdefs.h"
15179/* Override any gcc2 internal prototype to avoid an error. */
15180/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15181 builtin and then its argument prototype would still apply. */
15182char jpeg_read_header();
15183
15184int main() {
15185jpeg_read_header()
15186; return 0; }
15187EOF
831b3152 15188if { (eval echo configure:15189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15189 rm -rf conftest*
15190 eval "ac_cv_lib_$ac_lib_var=yes"
15191else
15192 echo "configure: failed program was:" >&5
15193 cat conftest.$ac_ext >&5
15194 rm -rf conftest*
15195 eval "ac_cv_lib_$ac_lib_var=no"
15196fi
15197rm -f conftest*
15198LIBS="$ac_save_LIBS"
15199
15200fi
15201if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15202 echo "$ac_t""yes" 1>&6
422107f9 15203 JPEG_LINK="-ljpeg"
698dcdb6
VZ
15204else
15205 echo "$ac_t""no" 1>&6
422107f9
VZ
15206fi
15207
463abc64 15208 fi
422107f9
VZ
15209
15210 if test "x$JPEG_LINK" = "x" ; then
698dcdb6 15211 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
15212 fi
15213 fi
10f2d63a
VZ
15214fi
15215
c7a2bf27 15216TIFF_INCLUDE=
0dcf9893 15217if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
698dcdb6 15218 cat >> confdefs.h <<\EOF
c7a2bf27
RR
15219#define wxUSE_LIBTIFF 1
15220EOF
15221
665bbe97 15222 if test "$wxUSE_LIBTIFF" = "yes" ; then
0dcf9893
VZ
15223 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
15224 else
15225 TIFF_LINK=
698dcdb6
VZ
15226 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
15227echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
831b3152 15228echo "configure:15229: checking for tiffio.h" >&5
698dcdb6
VZ
15229if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15230 echo $ac_n "(cached) $ac_c" 1>&6
15231else
15232 cat > conftest.$ac_ext <<EOF
831b3152 15233#line 15234 "configure"
0dcf9893
VZ
15234#include "confdefs.h"
15235#include <tiffio.h>
698dcdb6
VZ
15236EOF
15237ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
831b3152 15238{ (eval echo configure:15239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15239ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15240if test -z "$ac_err"; then
15241 rm -rf conftest*
15242 eval "ac_cv_header_$ac_safe=yes"
1e487827 15243else
698dcdb6
VZ
15244 echo "$ac_err" >&5
15245 echo "configure: failed program was:" >&5
0dcf9893 15246 cat conftest.$ac_ext >&5
698dcdb6
VZ
15247 rm -rf conftest*
15248 eval "ac_cv_header_$ac_safe=no"
0dcf9893 15249fi
698dcdb6 15250rm -f conftest*
0dcf9893 15251fi
698dcdb6
VZ
15252if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15253 echo "$ac_t""yes" 1>&6
15254 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
831b3152 15255echo "configure:15256: checking for TIFFError in -ltiff" >&5
698dcdb6
VZ
15256ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
15257if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15258 echo $ac_n "(cached) $ac_c" 1>&6
0dcf9893 15259else
698dcdb6 15260 ac_save_LIBS="$LIBS"
0dcf9893 15261LIBS="-ltiff -lm $LIBS"
698dcdb6 15262cat > conftest.$ac_ext <<EOF
831b3152 15263#line 15264 "configure"
0dcf9893
VZ
15264#include "confdefs.h"
15265/* Override any gcc2 internal prototype to avoid an error. */
15266/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15267 builtin and then its argument prototype would still apply. */
15268char TIFFError();
15269
15270int main() {
15271TIFFError()
15272; return 0; }
15273EOF
831b3152 15274if { (eval echo configure:15275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15275 rm -rf conftest*
15276 eval "ac_cv_lib_$ac_lib_var=yes"
15277else
15278 echo "configure: failed program was:" >&5
15279 cat conftest.$ac_ext >&5
15280 rm -rf conftest*
15281 eval "ac_cv_lib_$ac_lib_var=no"
15282fi
15283rm -f conftest*
15284LIBS="$ac_save_LIBS"
15285
15286fi
15287if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15288 echo "$ac_t""yes" 1>&6
0dcf9893 15289 TIFF_LINK="-ltiff"
698dcdb6
VZ
15290else
15291 echo "$ac_t""no" 1>&6
0dcf9893
VZ
15292fi
15293
698dcdb6
VZ
15294else
15295 echo "$ac_t""no" 1>&6
0dcf9893
VZ
15296fi
15297
15298 if test "x$TIFF_LINK" = "x" ; then
698dcdb6 15299 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
0dcf9893
VZ
15300 fi
15301 fi
c7a2bf27
RR
15302fi
15303
3fed1840
RR
15304FREETYPE_INCLUDE=
15305if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
698dcdb6 15306 cat >> confdefs.h <<\EOF
3fed1840
RR
15307#define wxUSE_FREETYPE 1
15308EOF
15309
15310 if test "$wxUSE_FREETYPE" = "yes" ; then
15311 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
15312 else
15313 FREETYPE_LINK=
698dcdb6
VZ
15314 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
15315echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
831b3152 15316echo "configure:15317: checking for freetype.h" >&5
698dcdb6
VZ
15317if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15318 echo $ac_n "(cached) $ac_c" 1>&6
15319else
15320 cat > conftest.$ac_ext <<EOF
831b3152 15321#line 15322 "configure"
3fed1840
RR
15322#include "confdefs.h"
15323#include <freetype.h>
698dcdb6
VZ
15324EOF
15325ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
831b3152 15326{ (eval echo configure:15327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15327ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15328if test -z "$ac_err"; then
15329 rm -rf conftest*
15330 eval "ac_cv_header_$ac_safe=yes"
3fed1840 15331else
698dcdb6
VZ
15332 echo "$ac_err" >&5
15333 echo "configure: failed program was:" >&5
3fed1840 15334 cat conftest.$ac_ext >&5
698dcdb6
VZ
15335 rm -rf conftest*
15336 eval "ac_cv_header_$ac_safe=no"
3fed1840 15337fi
698dcdb6 15338rm -f conftest*
3fed1840 15339fi
698dcdb6
VZ
15340if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15341 echo "$ac_t""yes" 1>&6
15342 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
831b3152 15343echo "configure:15344: checking for FT_Render_Glyph in -lfreetype" >&5
698dcdb6
VZ
15344ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
15345if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15346 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 15347else
698dcdb6 15348 ac_save_LIBS="$LIBS"
3fed1840 15349LIBS="-lfreetype -lm $LIBS"
698dcdb6 15350cat > conftest.$ac_ext <<EOF
831b3152 15351#line 15352 "configure"
3fed1840
RR
15352#include "confdefs.h"
15353/* Override any gcc2 internal prototype to avoid an error. */
15354/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15355 builtin and then its argument prototype would still apply. */
15356char FT_Render_Glyph();
15357
15358int main() {
15359FT_Render_Glyph()
15360; return 0; }
15361EOF
831b3152 15362if { (eval echo configure:15363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15363 rm -rf conftest*
15364 eval "ac_cv_lib_$ac_lib_var=yes"
15365else
15366 echo "configure: failed program was:" >&5
15367 cat conftest.$ac_ext >&5
15368 rm -rf conftest*
15369 eval "ac_cv_lib_$ac_lib_var=no"
15370fi
15371rm -f conftest*
15372LIBS="$ac_save_LIBS"
15373
15374fi
15375if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15376 echo "$ac_t""yes" 1>&6
3fed1840 15377 FREETYPE_LINK="-lfreetype"
698dcdb6
VZ
15378else
15379 echo "$ac_t""no" 1>&6
3fed1840
RR
15380fi
15381
698dcdb6
VZ
15382
15383else
15384 echo "$ac_t""no" 1>&6
3fed1840
RR
15385fi
15386
15387 if test "x$FREETYPE_LINK" = "x" ; then
698dcdb6 15388 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
3fed1840
RR
15389 fi
15390 fi
15391fi
15392
10f2d63a 15393if test "$wxUSE_OPENGL" = "yes"; then
698dcdb6
VZ
15394 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15395echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
831b3152 15396echo "configure:15397: checking for GL/gl.h" >&5
698dcdb6
VZ
15397if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15398 echo $ac_n "(cached) $ac_c" 1>&6
15399else
15400 cat > conftest.$ac_ext <<EOF
831b3152 15401#line 15402 "configure"
10f2d63a
VZ
15402#include "confdefs.h"
15403#include <GL/gl.h>
698dcdb6
VZ
15404EOF
15405ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
831b3152 15406{ (eval echo configure:15407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15407ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15408if test -z "$ac_err"; then
15409 rm -rf conftest*
15410 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 15411else
698dcdb6
VZ
15412 echo "$ac_err" >&5
15413 echo "configure: failed program was:" >&5
10f2d63a 15414 cat conftest.$ac_ext >&5
698dcdb6
VZ
15415 rm -rf conftest*
15416 eval "ac_cv_header_$ac_safe=no"
10f2d63a 15417fi
698dcdb6 15418rm -f conftest*
10f2d63a 15419fi
698dcdb6
VZ
15420if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15421 echo "$ac_t""yes" 1>&6
15422
15423 cat >> confdefs.h <<\EOF
bdad4e7e
RR
15424#define wxUSE_OPENGL 1
15425EOF
15426
698dcdb6 15427 cat >> confdefs.h <<\EOF
bdad4e7e
RR
15428#define wxUSE_GLCANVAS 1
15429EOF
15430
698dcdb6 15431 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
831b3152 15432echo "configure:15433: checking for glFlush in -lGL" >&5
698dcdb6
VZ
15433ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
15434if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15435 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15436else
698dcdb6 15437 ac_save_LIBS="$LIBS"
bdad4e7e 15438LIBS="-lGL $LIBS"
698dcdb6 15439cat > conftest.$ac_ext <<EOF
831b3152 15440#line 15441 "configure"
10f2d63a
VZ
15441#include "confdefs.h"
15442/* Override any gcc2 internal prototype to avoid an error. */
15443/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15444 builtin and then its argument prototype would still apply. */
15445char glFlush();
6232543b 15446
698dcdb6
VZ
15447int main() {
15448glFlush()
15449; return 0; }
15450EOF
831b3152 15451if { (eval echo configure:15452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15452 rm -rf conftest*
15453 eval "ac_cv_lib_$ac_lib_var=yes"
15454else
15455 echo "configure: failed program was:" >&5
15456 cat conftest.$ac_ext >&5
15457 rm -rf conftest*
15458 eval "ac_cv_lib_$ac_lib_var=no"
15459fi
15460rm -f conftest*
15461LIBS="$ac_save_LIBS"
1e487827 15462
698dcdb6
VZ
15463fi
15464if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15465 echo "$ac_t""yes" 1>&6
15466
15467 OPENGL_LINK="-lGL -lGLU"
15468
10f2d63a 15469else
698dcdb6 15470 echo "$ac_t""no" 1>&6
10f2d63a 15471
698dcdb6 15472 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
831b3152 15473echo "configure:15474: checking for glFlush in -lMesaGL" >&5
698dcdb6
VZ
15474ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
15475if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15476 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15477else
698dcdb6 15478 ac_save_LIBS="$LIBS"
10f2d63a 15479LIBS="-lMesaGL $LIBS"
698dcdb6 15480cat > conftest.$ac_ext <<EOF
831b3152 15481#line 15482 "configure"
10f2d63a
VZ
15482#include "confdefs.h"
15483/* Override any gcc2 internal prototype to avoid an error. */
15484/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15485 builtin and then its argument prototype would still apply. */
15486char glFlush();
15487
15488int main() {
15489glFlush()
15490; return 0; }
15491EOF
831b3152 15492if { (eval echo configure:15493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15493 rm -rf conftest*
15494 eval "ac_cv_lib_$ac_lib_var=yes"
15495else
15496 echo "configure: failed program was:" >&5
15497 cat conftest.$ac_ext >&5
15498 rm -rf conftest*
15499 eval "ac_cv_lib_$ac_lib_var=no"
15500fi
15501rm -f conftest*
15502LIBS="$ac_save_LIBS"
10f2d63a 15503
698dcdb6
VZ
15504fi
15505if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15506 echo "$ac_t""yes" 1>&6
15507
f6bcfd97 15508 OPENGL_LINK="-lMesaGL -lMesaGLU"
698dcdb6
VZ
15509
15510else
15511 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15512fi
15513
698dcdb6 15514
10f2d63a
VZ
15515fi
15516
698dcdb6 15517
10f2d63a 15518else
698dcdb6
VZ
15519 echo "$ac_t""no" 1>&6
15520wxUSE_OPENGL=0
10f2d63a
VZ
15521fi
15522
15523fi
15524
698dcdb6 15525
10f2d63a 15526if test "$wxUSE_GUI" = "yes"; then
698dcdb6 15527 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15528#define wxUSE_GUI 1
15529EOF
15530
698dcdb6 15531
10f2d63a 15532 else
698dcdb6 15533 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15534#define wxUSE_NOGUI 1
15535EOF
15536
15537fi
15538
698dcdb6 15539
10f2d63a 15540if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 15541 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15542#define wxUSE_UNIX 1
15543EOF
15544
15545fi
15546
698dcdb6 15547
10f2d63a 15548if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 15549 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15550#define wxUSE_APPLE_IEEE 1
15551EOF
15552
15553fi
15554
1e6feb95
VZ
15555if test "$wxUSE_TIMER" = "yes"; then
15556 cat >> confdefs.h <<\EOF
15557#define wxUSE_TIMER 1
15558EOF
15559
15560fi
15561
10f2d63a 15562if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 15563 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15564#define wxUSE_WAVE 1
15565EOF
15566
15567fi
15568
1e6feb95
VZ
15569if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15570 cat >> confdefs.h <<\EOF
15571#define wxUSE_CMDLINE_PARSER 1
15572EOF
15573
15574fi
15575
15576if test "$wxUSE_STOPWATCH" = "yes"; then
15577 cat >> confdefs.h <<\EOF
15578#define wxUSE_STOPWATCH 1
15579EOF
15580
15581fi
15582
15583if test "$wxUSE_DATETIME" = "yes"; then
15584 cat >> confdefs.h <<\EOF
15585#define wxUSE_DATETIME 1
15586EOF
15587
15588fi
15589
15590if test "$wxUSE_TIMEDATE" = "yes"; then
15591 cat >> confdefs.h <<\EOF
15592#define wxUSE_TIMEDATE 1
15593EOF
15594
15595fi
15596
10f2d63a 15597if test "$wxUSE_FILE" = "yes"; then
698dcdb6 15598 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15599#define wxUSE_FILE 1
15600EOF
15601
15602fi
15603
1e6feb95
VZ
15604if test "$wxUSE_FFILE" = "yes"; then
15605 cat >> confdefs.h <<\EOF
15606#define wxUSE_FFILE 1
15607EOF
15608
15609fi
15610
24528b0c 15611if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 15612 cat >> confdefs.h <<\EOF
24528b0c
VS
15613#define wxUSE_FILESYSTEM 1
15614EOF
15615
15616fi
15617
10f2d63a 15618if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 15619 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15620#define wxUSE_FS_INET 1
15621EOF
15622
15623fi
15624
15625if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 15626 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15627#define wxUSE_FS_ZIP 1
15628EOF
15629
15630fi
15631
15632if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 15633 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15634#define wxUSE_ZIPSTREAM 1
15635EOF
15636
15637fi
15638
eb4efbdc 15639if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 15640 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
15641#define wxUSE_ON_FATAL_EXCEPTION 1
15642EOF
15643
15644fi
15645
4f3c5f06 15646if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 15647 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
15648#define wxUSE_SNGLINST_CHECKER 1
15649EOF
15650
15651fi
15652
10f2d63a 15653if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 15654 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15655#define wxUSE_BUSYINFO 1
15656EOF
15657
15658fi
15659
15660if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 15661 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15662#define wxUSE_STD_IOSTREAM 1
15663EOF
15664
15665fi
15666
15667if test "$wxUSE_TEXTFILE" = "yes"; then
15668 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15669 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 15670 else
698dcdb6 15671 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15672#define wxUSE_TEXTFILE 1
15673EOF
15674
15675 fi
15676fi
15677
15678if test "$wxUSE_CONFIG" = "yes" ; then
15679 if test "$wxUSE_TEXTFILE" != "yes"; then
698dcdb6 15680 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
10f2d63a 15681 else
698dcdb6 15682 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15683#define wxUSE_CONFIG 1
15684EOF
15685
15686 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15687 fi
15688fi
15689
15690if test "$wxUSE_INTL" = "yes" ; then
15691 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15692 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 15693 else
698dcdb6 15694 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15695#define wxUSE_INTL 1
15696EOF
15697
15698 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 15699 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
15700 fi
15701fi
15702
15703if test "$wxUSE_LOG" = "yes"; then
698dcdb6 15704 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15705#define wxUSE_LOG 1
15706EOF
15707
d73be714
VZ
15708
15709 if test "$wxUSE_LOGGUI" = "yes"; then
15710 cat >> confdefs.h <<\EOF
15711#define wxUSE_LOGGUI 1
15712EOF
15713
15714 fi
15715
15716 if test "$wxUSE_LOGWINDOW" = "yes"; then
15717 cat >> confdefs.h <<\EOF
15718#define wxUSE_LOGWINDOW 1
15719EOF
15720
15721 fi
10f2d63a
VZ
15722fi
15723
15724if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 15725 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15726#define wxUSE_LONGLONG 1
15727EOF
15728
15729fi
15730
e8f65ba6 15731if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 15732 cat >> confdefs.h <<\EOF
e8f65ba6
RR
15733#define wxUSE_GEOMETRY 1
15734EOF
15735
15736fi
15737
10f2d63a 15738if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 15739 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15740#define wxUSE_DIALUP_MANAGER 1
15741EOF
15742
70f7a477 15743 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
15744fi
15745
15746if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 15747 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15748#define wxUSE_STREAMS 1
15749EOF
15750
15751fi
15752
1e487827 15753
1e6feb95 15754if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 15755 for ac_func in strptime
83307f33 15756do
698dcdb6 15757echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
831b3152 15758echo "configure:15759: checking for $ac_func" >&5
698dcdb6
VZ
15759if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15760 echo $ac_n "(cached) $ac_c" 1>&6
15761else
15762 cat > conftest.$ac_ext <<EOF
831b3152 15763#line 15764 "configure"
83307f33
VZ
15764#include "confdefs.h"
15765/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15766 which can conflict with char $ac_func(); below. */
83307f33
VZ
15767#include <assert.h>
15768/* Override any gcc2 internal prototype to avoid an error. */
15769/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15770 builtin and then its argument prototype would still apply. */
15771char $ac_func();
15772
15773int main() {
83307f33
VZ
15774
15775/* The GNU C library defines this for functions which it implements
15776 to always fail with ENOSYS. Some functions are actually named
15777 something starting with __ and the normal name is an alias. */
15778#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15779choke me
15780#else
698dcdb6 15781$ac_func();
83307f33
VZ
15782#endif
15783
698dcdb6 15784; return 0; }
83307f33 15785EOF
831b3152 15786if { (eval echo configure:15787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15787 rm -rf conftest*
15788 eval "ac_cv_func_$ac_func=yes"
15789else
15790 echo "configure: failed program was:" >&5
15791 cat conftest.$ac_ext >&5
15792 rm -rf conftest*
15793 eval "ac_cv_func_$ac_func=no"
15794fi
15795rm -f conftest*
15796fi
83307f33 15797
698dcdb6
VZ
15798if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15799 echo "$ac_t""yes" 1>&6
15800 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15801 cat >> confdefs.h <<EOF
15802#define $ac_tr_func 1
15803EOF
15804
15805else
15806 echo "$ac_t""no" 1>&6
83307f33
VZ
15807fi
15808done
15809
1e487827 15810
698dcdb6 15811 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
831b3152 15812echo "configure:15813: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
15813if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
15814 echo $ac_n "(cached) $ac_c" 1>&6
15815else
15816
15817 cat > conftest.$ac_ext <<EOF
831b3152 15818#line 15819 "configure"
360d6699
VZ
15819#include "confdefs.h"
15820
b4085ce6 15821 #include <time.h>
698dcdb6
VZ
15822
15823int main() {
360d6699
VZ
15824
15825 int tz;
4f11a343 15826 tz = timezone;
698dcdb6
VZ
15827
15828; return 0; }
15829EOF
831b3152 15830if { (eval echo configure:15831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15831 rm -rf conftest*
15832
4f11a343 15833 wx_cv_var_timezone=timezone
698dcdb6 15834
360d6699 15835else
698dcdb6
VZ
15836 echo "configure: failed program was:" >&5
15837 cat conftest.$ac_ext >&5
15838 rm -rf conftest*
15839
15840 cat > conftest.$ac_ext <<EOF
831b3152 15841#line 15842 "configure"
360d6699
VZ
15842#include "confdefs.h"
15843
b4085ce6 15844 #include <time.h>
698dcdb6
VZ
15845
15846int main() {
360d6699
VZ
15847
15848 int tz;
15849 tz = _timezone;
698dcdb6
VZ
15850
15851; return 0; }
15852EOF
831b3152 15853if { (eval echo configure:15854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15854 rm -rf conftest*
15855
360d6699 15856 wx_cv_var_timezone=_timezone
698dcdb6 15857
5357c8e8 15858else
698dcdb6
VZ
15859 echo "configure: failed program was:" >&5
15860 cat conftest.$ac_ext >&5
15861 rm -rf conftest*
15862
15863 cat > conftest.$ac_ext <<EOF
831b3152 15864#line 15865 "configure"
5357c8e8
VZ
15865#include "confdefs.h"
15866
b4085ce6 15867 #include <time.h>
698dcdb6
VZ
15868
15869int main() {
5357c8e8
VZ
15870
15871 int tz;
4f11a343 15872 tz = __timezone;
698dcdb6
VZ
15873
15874; return 0; }
15875EOF
831b3152 15876if { (eval echo configure:15877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15877 rm -rf conftest*
15878
4f11a343 15879 wx_cv_var_timezone=__timezone
698dcdb6 15880
360d6699 15881else
698dcdb6
VZ
15882 echo "configure: failed program was:" >&5
15883 cat conftest.$ac_ext >&5
15884 rm -rf conftest*
15885 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
15886
360d6699 15887fi
698dcdb6
VZ
15888rm -f conftest*
15889
15890
360d6699 15891fi
698dcdb6
VZ
15892rm -f conftest*
15893
15894
6232543b 15895fi
698dcdb6
VZ
15896rm -f conftest*
15897
15898
1e487827 15899fi
703e0a69 15900
698dcdb6
VZ
15901echo "$ac_t""$wx_cv_var_timezone" 1>&6
15902
15903 cat >> confdefs.h <<EOF
360d6699
VZ
15904#define WX_TIMEZONE $wx_cv_var_timezone
15905EOF
15906
698dcdb6
VZ
15907
15908 for ac_func in localtime
afc31813 15909do
698dcdb6 15910echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
831b3152 15911echo "configure:15912: checking for $ac_func" >&5
698dcdb6
VZ
15912if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15913 echo $ac_n "(cached) $ac_c" 1>&6
15914else
15915 cat > conftest.$ac_ext <<EOF
831b3152 15916#line 15917 "configure"
10f2d63a 15917#include "confdefs.h"
afc31813 15918/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15919 which can conflict with char $ac_func(); below. */
afc31813
VZ
15920#include <assert.h>
15921/* Override any gcc2 internal prototype to avoid an error. */
15922/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15923 builtin and then its argument prototype would still apply. */
15924char $ac_func();
15925
15926int main() {
afc31813
VZ
15927
15928/* The GNU C library defines this for functions which it implements
15929 to always fail with ENOSYS. Some functions are actually named
15930 something starting with __ and the normal name is an alias. */
15931#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15932choke me
15933#else
698dcdb6 15934$ac_func();
afc31813
VZ
15935#endif
15936
698dcdb6 15937; return 0; }
10f2d63a 15938EOF
831b3152 15939if { (eval echo configure:15940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15940 rm -rf conftest*
15941 eval "ac_cv_func_$ac_func=yes"
15942else
15943 echo "configure: failed program was:" >&5
15944 cat conftest.$ac_ext >&5
15945 rm -rf conftest*
15946 eval "ac_cv_func_$ac_func=no"
15947fi
15948rm -f conftest*
15949fi
afc31813 15950
698dcdb6
VZ
15951if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15952 echo "$ac_t""yes" 1>&6
15953 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15954 cat >> confdefs.h <<EOF
15955#define $ac_tr_func 1
15956EOF
15957
15958else
15959 echo "$ac_t""no" 1>&6
afc31813
VZ
15960fi
15961done
15962
1e487827 15963
698dcdb6
VZ
15964 if test "$ac_cv_func_localtime" = "yes"; then
15965 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
831b3152 15966echo "configure:15967: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
15967if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
15968 echo $ac_n "(cached) $ac_c" 1>&6
15969else
15970
15971 cat > conftest.$ac_ext <<EOF
831b3152 15972#line 15973 "configure"
0470b1e6
VZ
15973#include "confdefs.h"
15974
b4085ce6 15975 #include <time.h>
698dcdb6
VZ
15976
15977int main() {
0470b1e6
VZ
15978
15979 struct tm tm;
15980 tm.tm_gmtoff++;
698dcdb6
VZ
15981
15982; return 0; }
15983EOF
831b3152 15984if { (eval echo configure:15985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15985 rm -rf conftest*
15986
f03a98d8 15987 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 15988
0470b1e6 15989else
698dcdb6
VZ
15990 echo "configure: failed program was:" >&5
15991 cat conftest.$ac_ext >&5
15992 rm -rf conftest*
15993 wx_cv_struct_tm_has_gmtoff=no
15994
0470b1e6 15995fi
698dcdb6
VZ
15996rm -f conftest*
15997
1e487827 15998fi
698dcdb6
VZ
15999
16000echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
16001 fi
16002
16003 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 16004 cat >> confdefs.h <<\EOF
6232543b
VS
16005#define WX_GMTOFF_IN_TM 1
16006EOF
0470b1e6 16007
3fcdd07b
VZ
16008 fi
16009
698dcdb6 16010 for ac_func in gettimeofday ftime
3fcdd07b 16011do
698dcdb6 16012echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
831b3152 16013echo "configure:16014: checking for $ac_func" >&5
698dcdb6
VZ
16014if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16015 echo $ac_n "(cached) $ac_c" 1>&6
16016else
16017 cat > conftest.$ac_ext <<EOF
831b3152 16018#line 16019 "configure"
3fcdd07b
VZ
16019#include "confdefs.h"
16020/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16021 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
16022#include <assert.h>
16023/* Override any gcc2 internal prototype to avoid an error. */
16024/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16025 builtin and then its argument prototype would still apply. */
16026char $ac_func();
16027
16028int main() {
3fcdd07b
VZ
16029
16030/* The GNU C library defines this for functions which it implements
16031 to always fail with ENOSYS. Some functions are actually named
16032 something starting with __ and the normal name is an alias. */
16033#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16034choke me
16035#else
698dcdb6 16036$ac_func();
3fcdd07b
VZ
16037#endif
16038
698dcdb6
VZ
16039; return 0; }
16040EOF
831b3152 16041if { (eval echo configure:16042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16042 rm -rf conftest*
16043 eval "ac_cv_func_$ac_func=yes"
16044else
16045 echo "configure: failed program was:" >&5
16046 cat conftest.$ac_ext >&5
16047 rm -rf conftest*
16048 eval "ac_cv_func_$ac_func=no"
16049fi
16050rm -f conftest*
16051fi
16052
16053if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16054 echo "$ac_t""yes" 1>&6
16055 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16056 cat >> confdefs.h <<EOF
16057#define $ac_tr_func 1
3fcdd07b
VZ
16058EOF
16059 break
698dcdb6
VZ
16060else
16061 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
16062fi
16063done
16064
afc31813 16065
698dcdb6
VZ
16066 if test "$ac_cv_func_gettimeofday" = "yes"; then
16067 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
831b3152 16068echo "configure:16069: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
16069if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16070 echo $ac_n "(cached) $ac_c" 1>&6
16071else
16072
16073
16074 ac_ext=C
16075# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16076ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16077ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16078ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16079cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16080
698dcdb6
VZ
16081
16082 cat > conftest.$ac_ext <<EOF
831b3152 16083#line 16084 "configure"
10f2d63a 16084#include "confdefs.h"
afc31813
VZ
16085
16086 #include <sys/time.h>
16087 #include <unistd.h>
698dcdb6
VZ
16088
16089int main() {
afc31813
VZ
16090
16091 struct timeval tv;
16092 struct timezone tz;
16093 gettimeofday(&tv, &tz);
698dcdb6
VZ
16094
16095; return 0; }
16096EOF
831b3152 16097if { (eval echo configure:16098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16098 rm -rf conftest*
afc31813 16099 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 16100else
698dcdb6
VZ
16101 echo "configure: failed program was:" >&5
16102 cat conftest.$ac_ext >&5
16103 rm -rf conftest*
16104 cat > conftest.$ac_ext <<EOF
831b3152 16105#line 16106 "configure"
10f2d63a 16106#include "confdefs.h"
afc31813
VZ
16107
16108 #include <sys/time.h>
16109 #include <unistd.h>
698dcdb6
VZ
16110
16111int main() {
afc31813
VZ
16112
16113 struct timeval tv;
16114 gettimeofday(&tv);
698dcdb6
VZ
16115
16116; return 0; }
16117EOF
831b3152 16118if { (eval echo configure:16119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16119 rm -rf conftest*
afc31813 16120 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 16121else
698dcdb6
VZ
16122 echo "configure: failed program was:" >&5
16123 cat conftest.$ac_ext >&5
16124 rm -rf conftest*
16125 wx_cv_func_gettimeofday_has_2_args=unknown
16126
10f2d63a 16127fi
698dcdb6
VZ
16128rm -f conftest*
16129
10f2d63a 16130fi
698dcdb6 16131rm -f conftest*
afc31813 16132 ac_ext=c
698dcdb6 16133# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 16134ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16135ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16136ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16137cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 16138
698dcdb6 16139
afc31813 16140fi
698dcdb6
VZ
16141
16142echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 16143
afc31813 16144 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 16145 cat >> confdefs.h <<\EOF
afc31813
VZ
16146#define WX_GETTIMEOFDAY_NO_TZ 1
16147EOF
16148
16149 fi
16150 fi
16151
698dcdb6 16152 cat >> confdefs.h <<\EOF
afc31813
VZ
16153#define wxUSE_TIMEDATE 1
16154EOF
16155
16156 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16157fi
16158
698dcdb6 16159
b089607b
VZ
16160if test "$TOOLKIT" != "MSW"; then
16161
afc31813 16162if test "$wxUSE_SOCKETS" = "yes"; then
698dcdb6 16163 echo $ac_n "checking for socket""... $ac_c" 1>&6
831b3152 16164echo "configure:16165: checking for socket" >&5
698dcdb6
VZ
16165if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16166 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16167else
698dcdb6 16168 cat > conftest.$ac_ext <<EOF
831b3152 16169#line 16170 "configure"
c63c7106
VZ
16170#include "confdefs.h"
16171/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16172 which can conflict with char socket(); below. */
c63c7106
VZ
16173#include <assert.h>
16174/* Override any gcc2 internal prototype to avoid an error. */
16175/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16176 builtin and then its argument prototype would still apply. */
16177char socket();
16178
16179int main() {
c63c7106
VZ
16180
16181/* The GNU C library defines this for functions which it implements
16182 to always fail with ENOSYS. Some functions are actually named
16183 something starting with __ and the normal name is an alias. */
16184#if defined (__stub_socket) || defined (__stub___socket)
16185choke me
16186#else
698dcdb6 16187socket();
c63c7106
VZ
16188#endif
16189
698dcdb6
VZ
16190; return 0; }
16191EOF
831b3152 16192if { (eval echo configure:16193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16193 rm -rf conftest*
16194 eval "ac_cv_func_socket=yes"
16195else
16196 echo "configure: failed program was:" >&5
16197 cat conftest.$ac_ext >&5
16198 rm -rf conftest*
16199 eval "ac_cv_func_socket=no"
16200fi
16201rm -f conftest*
16202fi
16203
16204if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16205 echo "$ac_t""yes" 1>&6
c63c7106
VZ
16206 :
16207else
698dcdb6
VZ
16208 echo "$ac_t""no" 1>&6
16209echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
831b3152 16210echo "configure:16211: checking for socket in -lsocket" >&5
698dcdb6
VZ
16211ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16212if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16213 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16214else
698dcdb6 16215 ac_save_LIBS="$LIBS"
c63c7106 16216LIBS="-lsocket $LIBS"
698dcdb6 16217cat > conftest.$ac_ext <<EOF
831b3152 16218#line 16219 "configure"
c63c7106
VZ
16219#include "confdefs.h"
16220/* Override any gcc2 internal prototype to avoid an error. */
16221/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16222 builtin and then its argument prototype would still apply. */
16223char socket();
16224
16225int main() {
16226socket()
16227; return 0; }
16228EOF
831b3152 16229if { (eval echo configure:16230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16230 rm -rf conftest*
16231 eval "ac_cv_lib_$ac_lib_var=yes"
16232else
16233 echo "configure: failed program was:" >&5
16234 cat conftest.$ac_ext >&5
16235 rm -rf conftest*
16236 eval "ac_cv_lib_$ac_lib_var=no"
16237fi
16238rm -f conftest*
16239LIBS="$ac_save_LIBS"
16240
16241fi
16242if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16243 echo "$ac_t""yes" 1>&6
c63c7106 16244 INET_LINK="$INET_LINK -lsocket"
c63c7106 16245else
698dcdb6 16246 echo "$ac_t""no" 1>&6
afc31813 16247
698dcdb6 16248 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
afc31813 16249 wxUSE_SOCKETS=no
698dcdb6
VZ
16250
16251
10f2d63a
VZ
16252fi
16253
698dcdb6 16254
6232543b 16255fi
b089607b 16256
1e487827 16257fi
afc31813 16258
51a9faba 16259
698dcdb6
VZ
16260if test "$wxUSE_SOCKETS" = "yes" ; then
16261 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
831b3152 16262echo "configure:16263: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
16263if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16264 echo $ac_n "(cached) $ac_c" 1>&6
16265else
16266
16267
16268 ac_ext=C
16269# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16270ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16271ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16272ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16273cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16274
698dcdb6
VZ
16275
16276 cat > conftest.$ac_ext <<EOF
831b3152 16277#line 16278 "configure"
afc31813 16278#include "confdefs.h"
51a9faba 16279
3ace2e6d 16280 #include <sys/types.h>
51a9faba 16281 #include <sys/socket.h>
698dcdb6
VZ
16282
16283int main() {
51a9faba
VZ
16284
16285 socklen_t len;
16286 getsockname(0, 0, &len);
698dcdb6
VZ
16287
16288; return 0; }
16289EOF
831b3152 16290if { (eval echo configure:16291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16291 rm -rf conftest*
51a9faba 16292 wx_cv_type_getsockname3=socklen_t
afc31813 16293else
698dcdb6
VZ
16294 echo "configure: failed program was:" >&5
16295 cat conftest.$ac_ext >&5
16296 rm -rf conftest*
16297 cat > conftest.$ac_ext <<EOF
831b3152 16298#line 16299 "configure"
afc31813 16299#include "confdefs.h"
51a9faba 16300
3ace2e6d 16301 #include <sys/types.h>
51a9faba 16302 #include <sys/socket.h>
698dcdb6
VZ
16303
16304int main() {
51a9faba
VZ
16305
16306 size_t len;
16307 getsockname(0, 0, &len);
698dcdb6
VZ
16308
16309; return 0; }
16310EOF
831b3152 16311if { (eval echo configure:16312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16312 rm -rf conftest*
51a9faba 16313 wx_cv_type_getsockname3=size_t
afc31813 16314else
698dcdb6
VZ
16315 echo "configure: failed program was:" >&5
16316 cat conftest.$ac_ext >&5
16317 rm -rf conftest*
16318 cat > conftest.$ac_ext <<EOF
831b3152 16319#line 16320 "configure"
afc31813 16320#include "confdefs.h"
51a9faba 16321
3ace2e6d 16322 #include <sys/types.h>
51a9faba 16323 #include <sys/socket.h>
698dcdb6
VZ
16324
16325int main() {
51a9faba
VZ
16326
16327 int len;
16328 getsockname(0, 0, &len);
698dcdb6
VZ
16329
16330; return 0; }
16331EOF
831b3152 16332if { (eval echo configure:16333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16333 rm -rf conftest*
51a9faba 16334 wx_cv_type_getsockname3=int
afc31813 16335else
698dcdb6
VZ
16336 echo "configure: failed program was:" >&5
16337 cat conftest.$ac_ext >&5
16338 rm -rf conftest*
16339 wx_cv_type_getsockname3=unknown
16340
afc31813 16341fi
698dcdb6
VZ
16342rm -f conftest*
16343
afc31813 16344fi
698dcdb6
VZ
16345rm -f conftest*
16346
afc31813 16347fi
698dcdb6 16348rm -f conftest*
51a9faba
VZ
16349
16350 ac_ext=c
698dcdb6 16351# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 16352ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16353ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16354ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16355cross_compiling=$ac_cv_prog_cc_cross
afc31813 16356
698dcdb6 16357
51a9faba 16358fi
698dcdb6
VZ
16359
16360echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba
VZ
16361
16362 if test "$wx_cv_type_getsockname3" = "unknown"; then
16363 wxUSE_SOCKETS=no
698dcdb6 16364 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
51a9faba 16365 else
698dcdb6 16366 cat >> confdefs.h <<EOF
51a9faba
VZ
16367#define SOCKLEN_T $wx_cv_type_getsockname3
16368EOF
16369
16370 fi
16371fi
afc31813 16372
c521c494
RL
16373fi
16374
51a9faba 16375if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 16376 cat >> confdefs.h <<\EOF
afc31813
VZ
16377#define wxUSE_SOCKETS 1
16378EOF
16379
70f7a477 16380 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
16381 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
16382fi
16383
698dcdb6 16384
dc3d889d
VZ
16385if test "$wxUSE_GUI" = "yes"; then
16386
b089607b
VZ
16387if test "$TOOLKIT" != "MSW"; then
16388
ceded8b9 16389if test "$wxUSE_JOYSTICK" = "yes"; then
698dcdb6 16390 for ac_hdr in linux/joystick.h
10f2d63a 16391do
698dcdb6
VZ
16392ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16393echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
831b3152 16394echo "configure:16395: checking for $ac_hdr" >&5
698dcdb6
VZ
16395if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16396 echo $ac_n "(cached) $ac_c" 1>&6
16397else
16398 cat > conftest.$ac_ext <<EOF
831b3152 16399#line 16400 "configure"
10f2d63a 16400#include "confdefs.h"
698dcdb6
VZ
16401#include <$ac_hdr>
16402EOF
16403ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
831b3152 16404{ (eval echo configure:16405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
16405ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16406if test -z "$ac_err"; then
16407 rm -rf conftest*
16408 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 16409else
698dcdb6
VZ
16410 echo "$ac_err" >&5
16411 echo "configure: failed program was:" >&5
10f2d63a 16412 cat conftest.$ac_ext >&5
698dcdb6
VZ
16413 rm -rf conftest*
16414 eval "ac_cv_header_$ac_safe=no"
10f2d63a 16415fi
698dcdb6 16416rm -f conftest*
10f2d63a 16417fi
698dcdb6
VZ
16418if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16419 echo "$ac_t""yes" 1>&6
16420 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16421 cat >> confdefs.h <<EOF
16422#define $ac_tr_hdr 1
10f2d63a 16423EOF
698dcdb6
VZ
16424
16425else
16426 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16427fi
16428done
16429
b089607b 16430 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
ceded8b9 16431 wxUSE_JOYSTICK=no
698dcdb6 16432 echo "configure: warning: Joystick not supported by this system" 1>&2
b089607b
VZ
16433 fi
16434fi
16435
16436fi
16437
ceded8b9 16438if test "$wxUSE_JOYSTICK" = "yes"; then
698dcdb6 16439 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16440#define wxUSE_JOYSTICK 1
16441EOF
16442
16443 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
16444fi
16445
dc3d889d
VZ
16446fi
16447
698dcdb6 16448
b089607b
VZ
16449if test "$TOOLKIT" != "MSW"; then
16450
10f2d63a
VZ
16451HAVE_DL_FUNCS=0
16452HAVE_SHL_FUNCS=0
16453if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
b4085ce6
GD
16454 if test "$USE_MAC" = 1; then
16455 HAVE_DL_FUNCS=1
16456 else
698dcdb6 16457 for ac_func in dlopen
10f2d63a 16458do
698dcdb6 16459echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
831b3152 16460echo "configure:16461: checking for $ac_func" >&5
698dcdb6
VZ
16461if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16462 echo $ac_n "(cached) $ac_c" 1>&6
16463else
16464 cat > conftest.$ac_ext <<EOF
831b3152 16465#line 16466 "configure"
10f2d63a
VZ
16466#include "confdefs.h"
16467/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16468 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16469#include <assert.h>
16470/* Override any gcc2 internal prototype to avoid an error. */
16471/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16472 builtin and then its argument prototype would still apply. */
16473char $ac_func();
16474
16475int main() {
10f2d63a
VZ
16476
16477/* The GNU C library defines this for functions which it implements
16478 to always fail with ENOSYS. Some functions are actually named
16479 something starting with __ and the normal name is an alias. */
16480#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16481choke me
16482#else
698dcdb6 16483$ac_func();
10f2d63a
VZ
16484#endif
16485
698dcdb6
VZ
16486; return 0; }
16487EOF
831b3152 16488if { (eval echo configure:16489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16489 rm -rf conftest*
16490 eval "ac_cv_func_$ac_func=yes"
16491else
16492 echo "configure: failed program was:" >&5
16493 cat conftest.$ac_ext >&5
16494 rm -rf conftest*
16495 eval "ac_cv_func_$ac_func=no"
16496fi
16497rm -f conftest*
16498fi
16499
16500if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16501 echo "$ac_t""yes" 1>&6
16502 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16503 cat >> confdefs.h <<EOF
16504#define $ac_tr_func 1
16505EOF
16506
16507 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16508#define HAVE_DLOPEN 1
16509EOF
16510
16511 HAVE_DL_FUNCS=1
698dcdb6 16512
10f2d63a 16513else
698dcdb6
VZ
16514 echo "$ac_t""no" 1>&6
16515echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
831b3152 16516echo "configure:16517: checking for dlopen in -ldl" >&5
698dcdb6
VZ
16517ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16518if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16519 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16520else
698dcdb6 16521 ac_save_LIBS="$LIBS"
10f2d63a 16522LIBS="-ldl $LIBS"
698dcdb6 16523cat > conftest.$ac_ext <<EOF
831b3152 16524#line 16525 "configure"
10f2d63a
VZ
16525#include "confdefs.h"
16526/* Override any gcc2 internal prototype to avoid an error. */
16527/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16528 builtin and then its argument prototype would still apply. */
16529char dlopen();
16530
16531int main() {
16532dlopen()
16533; return 0; }
16534EOF
831b3152 16535if { (eval echo configure:16536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16536 rm -rf conftest*
16537 eval "ac_cv_lib_$ac_lib_var=yes"
16538else
16539 echo "configure: failed program was:" >&5
16540 cat conftest.$ac_ext >&5
16541 rm -rf conftest*
16542 eval "ac_cv_lib_$ac_lib_var=no"
16543fi
16544rm -f conftest*
16545LIBS="$ac_save_LIBS"
16546
16547fi
16548if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16549 echo "$ac_t""yes" 1>&6
16550
16551 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16552#define HAVE_DLOPEN 1
16553EOF
16554
16555 HAVE_DL_FUNCS=1
16556 LIBS="$LIBS -ldl"
698dcdb6 16557
10f2d63a 16558else
698dcdb6 16559 echo "$ac_t""no" 1>&6
10f2d63a 16560
698dcdb6 16561 for ac_func in shl_load
10f2d63a 16562do
698dcdb6 16563echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
831b3152 16564echo "configure:16565: checking for $ac_func" >&5
698dcdb6
VZ
16565if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16566 echo $ac_n "(cached) $ac_c" 1>&6
16567else
16568 cat > conftest.$ac_ext <<EOF
831b3152 16569#line 16570 "configure"
10f2d63a
VZ
16570#include "confdefs.h"
16571/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16572 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16573#include <assert.h>
16574/* Override any gcc2 internal prototype to avoid an error. */
16575/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16576 builtin and then its argument prototype would still apply. */
16577char $ac_func();
16578
16579int main() {
10f2d63a
VZ
16580
16581/* The GNU C library defines this for functions which it implements
16582 to always fail with ENOSYS. Some functions are actually named
16583 something starting with __ and the normal name is an alias. */
16584#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16585choke me
16586#else
698dcdb6 16587$ac_func();
10f2d63a
VZ
16588#endif
16589
698dcdb6
VZ
16590; return 0; }
16591EOF
831b3152 16592if { (eval echo configure:16593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16593 rm -rf conftest*
16594 eval "ac_cv_func_$ac_func=yes"
16595else
16596 echo "configure: failed program was:" >&5
16597 cat conftest.$ac_ext >&5
16598 rm -rf conftest*
16599 eval "ac_cv_func_$ac_func=no"
16600fi
16601rm -f conftest*
16602fi
16603
16604if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16605 echo "$ac_t""yes" 1>&6
16606 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16607 cat >> confdefs.h <<EOF
16608#define $ac_tr_func 1
16609EOF
16610
16611 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16612#define HAVE_SHL_LOAD 1
16613EOF
16614
16615 HAVE_SHL_FUNCS=1
698dcdb6 16616
10f2d63a 16617else
698dcdb6
VZ
16618 echo "$ac_t""no" 1>&6
16619echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
831b3152 16620echo "configure:16621: checking for dld in -lshl_load" >&5
698dcdb6
VZ
16621ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16622if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16623 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16624else
698dcdb6 16625 ac_save_LIBS="$LIBS"
f6bcfd97 16626LIBS="-lshl_load $LIBS"
698dcdb6 16627cat > conftest.$ac_ext <<EOF
831b3152 16628#line 16629 "configure"
f6bcfd97
BP
16629#include "confdefs.h"
16630/* Override any gcc2 internal prototype to avoid an error. */
16631/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16632 builtin and then its argument prototype would still apply. */
16633char dld();
16634
16635int main() {
16636dld()
16637; return 0; }
16638EOF
831b3152 16639if { (eval echo configure:16640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16640 rm -rf conftest*
16641 eval "ac_cv_lib_$ac_lib_var=yes"
16642else
16643 echo "configure: failed program was:" >&5
16644 cat conftest.$ac_ext >&5
16645 rm -rf conftest*
16646 eval "ac_cv_lib_$ac_lib_var=no"
16647fi
16648rm -f conftest*
16649LIBS="$ac_save_LIBS"
f6bcfd97 16650
698dcdb6
VZ
16651fi
16652if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16653 echo "$ac_t""yes" 1>&6
16654
f6bcfd97
BP
16655 HAVE_SHL_FUNCS=1
16656 LIBS="$LIBS -ldld"
698dcdb6
VZ
16657
16658else
16659 echo "$ac_t""no" 1>&6
f6bcfd97
BP
16660fi
16661
698dcdb6 16662
10f2d63a
VZ
16663fi
16664done
16665
698dcdb6 16666
10f2d63a
VZ
16667fi
16668
698dcdb6 16669
10f2d63a
VZ
16670fi
16671done
16672
1e487827 16673
698dcdb6
VZ
16674 if test "$HAVE_DL_FUNCS" = 1; then
16675 for ac_func in dlerror
f6bcfd97 16676do
698dcdb6 16677echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
831b3152 16678echo "configure:16679: checking for $ac_func" >&5
698dcdb6
VZ
16679if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16680 echo $ac_n "(cached) $ac_c" 1>&6
16681else
16682 cat > conftest.$ac_ext <<EOF
831b3152 16683#line 16684 "configure"
f6bcfd97
BP
16684#include "confdefs.h"
16685/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16686 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
16687#include <assert.h>
16688/* Override any gcc2 internal prototype to avoid an error. */
16689/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16690 builtin and then its argument prototype would still apply. */
16691char $ac_func();
16692
16693int main() {
f6bcfd97
BP
16694
16695/* The GNU C library defines this for functions which it implements
16696 to always fail with ENOSYS. Some functions are actually named
16697 something starting with __ and the normal name is an alias. */
16698#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16699choke me
16700#else
698dcdb6 16701$ac_func();
f6bcfd97
BP
16702#endif
16703
698dcdb6
VZ
16704; return 0; }
16705EOF
831b3152 16706if { (eval echo configure:16707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16707 rm -rf conftest*
16708 eval "ac_cv_func_$ac_func=yes"
16709else
16710 echo "configure: failed program was:" >&5
16711 cat conftest.$ac_ext >&5
16712 rm -rf conftest*
16713 eval "ac_cv_func_$ac_func=no"
16714fi
16715rm -f conftest*
16716fi
16717
16718if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16719 echo "$ac_t""yes" 1>&6
16720 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16721 cat >> confdefs.h <<EOF
16722#define $ac_tr_func 1
16723EOF
16724 cat >> confdefs.h <<\EOF
f6bcfd97
BP
16725#define HAVE_DLERROR 1
16726EOF
16727
16728else
698dcdb6
VZ
16729 echo "$ac_t""no" 1>&6
16730echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
831b3152 16731echo "configure:16732: checking for dlerror in -ldl" >&5
698dcdb6
VZ
16732ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
16733if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16734 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16735else
698dcdb6 16736 ac_save_LIBS="$LIBS"
f6bcfd97 16737LIBS="-ldl $LIBS"
698dcdb6 16738cat > conftest.$ac_ext <<EOF
831b3152 16739#line 16740 "configure"
f6bcfd97
BP
16740#include "confdefs.h"
16741/* Override any gcc2 internal prototype to avoid an error. */
16742/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16743 builtin and then its argument prototype would still apply. */
16744char dlerror();
16745
16746int main() {
16747dlerror()
16748; return 0; }
16749EOF
831b3152 16750if { (eval echo configure:16751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16751 rm -rf conftest*
16752 eval "ac_cv_lib_$ac_lib_var=yes"
16753else
16754 echo "configure: failed program was:" >&5
16755 cat conftest.$ac_ext >&5
16756 rm -rf conftest*
16757 eval "ac_cv_lib_$ac_lib_var=no"
16758fi
16759rm -f conftest*
16760LIBS="$ac_save_LIBS"
16761
16762fi
16763if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16764 echo "$ac_t""yes" 1>&6
16765 cat >> confdefs.h <<\EOF
f6bcfd97
BP
16766#define HAVE_DLERROR 1
16767EOF
16768
698dcdb6
VZ
16769else
16770 echo "$ac_t""no" 1>&6
f6bcfd97
BP
16771fi
16772
16773fi
16774done
16775
16776 fi
b4085ce6 16777 fi
f6bcfd97 16778
10f2d63a
VZ
16779 if test "$HAVE_DL_FUNCS" = 0; then
16780 if test "$HAVE_SHL_FUNCS" = 0; then
16781 if test "$USE_UNIX" = 1; then
698dcdb6 16782 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
16783 wxUSE_DYNLIB_CLASS=no
16784 else
698dcdb6 16785 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
16786 fi
16787 fi
16788 fi
16789fi
16790
b089607b
VZ
16791fi
16792
10f2d63a 16793if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 16794 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16795#define wxUSE_DYNLIB_CLASS 1
16796EOF
16797
b12915c1
VZ
16798else
16799 wxUSE_ODBC=no
16800 wxUSE_SERIAL=no
10f2d63a
VZ
16801fi
16802
698dcdb6 16803
1e6feb95
VZ
16804if test "$wxUSE_FONTMAP" = "yes" ; then
16805 cat >> confdefs.h <<\EOF
16806#define wxUSE_FONTMAP 1
16807EOF
16808
16809fi
16810
10f2d63a 16811if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 16812 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16813#define wxUSE_UNICODE 1
16814EOF
16815
16816fi
16817
16818if test "$wxUSE_WCSRTOMBS" = "yes" ; then
698dcdb6 16819 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16820#define wxUSE_WCSRTOMBS 1
16821EOF
16822
16823fi
16824
16825if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 16826 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16827#define wxUSE_EXPERIMENTAL_PRINTF 1
16828EOF
16829
16830fi
16831
698dcdb6 16832
b12915c1 16833if test "$wxUSE_SERIAL" = "yes" ; then
698dcdb6 16834 cat >> confdefs.h <<\EOF
b12915c1
VZ
16835#define wxUSE_SERIAL 1
16836EOF
16837
16838fi
16839
698dcdb6 16840
10f2d63a
VZ
16841IODBC_C_SRC=""
16842if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 16843 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16844#define wxUSE_ODBC 1
16845EOF
16846
16847 WXODBCFLAG="-D_IODBC_"
16848 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
16849fi
16850
698dcdb6 16851
10f2d63a 16852if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 16853 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16854#define wxUSE_POSTSCRIPT 1
16855EOF
16856
16857fi
16858
698dcdb6 16859cat >> confdefs.h <<\EOF
10f2d63a
VZ
16860#define wxUSE_AFM_FOR_POSTSCRIPT 1
16861EOF
16862
698dcdb6
VZ
16863
16864cat >> confdefs.h <<\EOF
10f2d63a
VZ
16865#define wxUSE_NORMALIZED_PS_FONTS 1
16866EOF
16867
698dcdb6
VZ
16868
16869
10f2d63a 16870if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 16871 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16872#define wxUSE_CONSTRAINTS 1
16873EOF
16874
16875 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
16876fi
16877
16878if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
698dcdb6 16879 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16880#define wxUSE_MDI_ARCHITECTURE 1
16881EOF
16882
16883 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
16884fi
16885
16886if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 16887 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16888#define wxUSE_DOC_VIEW_ARCHITECTURE 1
16889EOF
16890
16891 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
16892 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
16893 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
16894 fi
16895fi
16896
16897if test "$wxUSE_HELP" = "yes"; then
698dcdb6 16898 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16899#define wxUSE_HELP 1
16900EOF
16901
16902 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 16903
3e44f09d
VZ
16904 if test "$USE_WIN32" = 1; then
16905 if test "$wxUSE_WXHTML_HELP" = "yes"; then
3379ed37
VZ
16906 cat >> confdefs.h <<\EOF
16907#define wxUSE_WXHTML_HELP 1
16908EOF
16909
29fd3c0c
VS
16910 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
16911echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
831b3152 16912echo "configure:16913: checking for htmlhelp.h" >&5
29fd3c0c
VS
16913if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16914 echo $ac_n "(cached) $ac_c" 1>&6
16915else
16916 cat > conftest.$ac_ext <<EOF
831b3152 16917#line 16918 "configure"
29fd3c0c
VS
16918#include "confdefs.h"
16919#include <htmlhelp.h>
16920EOF
16921ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
831b3152 16922{ (eval echo configure:16923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
16923ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16924if test -z "$ac_err"; then
16925 rm -rf conftest*
16926 eval "ac_cv_header_$ac_safe=yes"
16927else
16928 echo "$ac_err" >&5
16929 echo "configure: failed program was:" >&5
16930 cat conftest.$ac_ext >&5
16931 rm -rf conftest*
16932 eval "ac_cv_header_$ac_safe=no"
16933fi
16934rm -f conftest*
16935fi
16936if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16937 echo "$ac_t""yes" 1>&6
16938
16939 cat >> confdefs.h <<\EOF
16940#define wxUSE_MS_HTML_HELP 1
16941EOF
16942
16943
16944else
16945 echo "$ac_t""no" 1>&6
16946
16947 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h so it won't be compiled without it" 1>&2
16948 wxUSE_MS_HTML_HELP=no
16949
16950fi
16951
3e44f09d 16952 fi
3379ed37 16953 fi
10f2d63a
VZ
16954fi
16955
16956if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
16957 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 16958 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 16959 else
698dcdb6 16960 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16961#define wxUSE_PRINTING_ARCHITECTURE 1
16962EOF
16963
16964 fi
16965 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
16966fi
16967
16968if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 16969 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16970#define wxUSE_PROLOGIO 1
16971EOF
16972
16973fi
16974
16975if test "$wxUSE_RESOURCES" = "yes" ; then
3379ed37 16976 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16977#define wxUSE_RESOURCES 1
16978EOF
16979
3379ed37 16980 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
10f2d63a
VZ
16981fi
16982
16983if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 16984 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16985#define wxUSE_X_RESOURCES 1
16986EOF
16987
16988fi
16989
698dcdb6 16990
10f2d63a 16991if test "$wxUSE_IPC" = "yes"; then
eb4efbdc 16992 if test "$wxUSE_SOCKETS" != "yes"; then
698dcdb6 16993 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
eb4efbdc
VZ
16994 fi
16995
698dcdb6 16996 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16997#define wxUSE_IPC 1
16998EOF
16999
17000fi
17001
17002if test "$wxUSE_CLIPBOARD" = "yes"; then
698dcdb6 17003 cat >> confdefs.h <<\EOF
10f2d63a 17004#define wxUSE_CLIPBOARD 1
1e6feb95
VZ
17005EOF
17006
17007 cat >> confdefs.h <<\EOF
17008#define wxUSE_DATAOBJ 1
10f2d63a
VZ
17009EOF
17010
17011fi
17012
17013if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17014 if test "$wxUSE_GTK" = 1; then
17015 if test "$WXGTK12" != 1; then
698dcdb6 17016 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
10f2d63a
VZ
17017 wxUSE_DRAG_AND_DROP=no
17018 fi
17019 fi
17020
17021 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 17022 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
10f2d63a
VZ
17023 wxUSE_DRAG_AND_DROP=no
17024 fi
17025
2c6025bc 17026 if test "$wxUSE_MAC" = 1; then
698dcdb6 17027 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
2c6025bc
GD
17028 wxUSE_DRAG_AND_DROP=no
17029 fi
17030
10f2d63a 17031 if test "$USE_WIN32" = 1; then
698dcdb6
VZ
17032
17033 for ac_hdr in ole2.h
10f2d63a 17034do
698dcdb6
VZ
17035ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17036echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
831b3152 17037echo "configure:17038: checking for $ac_hdr" >&5
698dcdb6
VZ
17038if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17039 echo $ac_n "(cached) $ac_c" 1>&6
17040else
17041 cat > conftest.$ac_ext <<EOF
831b3152 17042#line 17043 "configure"
10f2d63a 17043#include "confdefs.h"
698dcdb6
VZ
17044#include <$ac_hdr>
17045EOF
17046ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
831b3152 17047{ (eval echo configure:17048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
17048ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17049if test -z "$ac_err"; then
17050 rm -rf conftest*
17051 eval "ac_cv_header_$ac_safe=yes"
1e487827 17052else
698dcdb6
VZ
17053 echo "$ac_err" >&5
17054 echo "configure: failed program was:" >&5
10f2d63a 17055 cat conftest.$ac_ext >&5
698dcdb6
VZ
17056 rm -rf conftest*
17057 eval "ac_cv_header_$ac_safe=no"
10f2d63a 17058fi
698dcdb6 17059rm -f conftest*
10f2d63a 17060fi
698dcdb6
VZ
17061if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17062 echo "$ac_t""yes" 1>&6
17063 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17064 cat >> confdefs.h <<EOF
17065#define $ac_tr_hdr 1
10f2d63a 17066EOF
698dcdb6
VZ
17067
17068else
17069 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17070fi
17071done
17072
698dcdb6 17073
57fe5ed0 17074 if test "$ac_cv_header_ole2_h" = "yes" ; then
c521c494 17075 if test "$GCC" = yes ; then
b64f0a5f
RL
17076 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
17077 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
c521c494 17078 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
b64f0a5f 17079 LIBS="$LIBS -lole32 -luuid"
4f11a343
VS
17080 cat >> confdefs.h <<\EOF
17081#define wxUSE_OLE 1
17082EOF
17083
b64f0a5f
RL
17084
17085 if test "$wxUSE_METAFILE" = "yes"; then
698dcdb6 17086 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17087#define wxUSE_METAFILE 1
17088EOF
17089
698dcdb6 17090 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17091#define wxUSE_ENH_METAFILE 1
17092EOF
17093
17094 fi
c521c494
RL
17095 fi
17096 else
698dcdb6 17097 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
10f2d63a
VZ
17098 wxUSE_DRAG_AND_DROP=no
17099 fi
17100 fi
17101
17102 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 17103 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17104#define wxUSE_DRAG_AND_DROP 1
17105EOF
17106
17107 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17108 fi
17109
17110fi
17111
17112if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 17113 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17114#define wxUSE_SPLINES 1
17115EOF
17116
17117fi
17118
698dcdb6 17119
1e6feb95
VZ
17120USES_CONTROLS=0
17121if test "$wxUSE_CONTROLS" = "yes"; then
17122 USES_CONTROLS=1
17123fi
17124
10f2d63a 17125if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 17126 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17127#define wxUSE_ACCEL 1
17128EOF
17129
1e6feb95
VZ
17130 USES_CONTROLS=1
17131fi
17132
17133if test "$wxUSE_BUTTON" = "yes"; then
17134 cat >> confdefs.h <<\EOF
17135#define wxUSE_BUTTON 1
17136EOF
17137
17138 USES_CONTROLS=1
17139fi
17140
17141if test "$wxUSE_BMPBUTTON" = "yes"; then
17142 cat >> confdefs.h <<\EOF
17143#define wxUSE_BMPBUTTON 1
17144EOF
17145
17146 USES_CONTROLS=1
17147fi
17148
17149if test "$wxUSE_CALCTRL" = "yes"; then
17150 cat >> confdefs.h <<\EOF
17151#define wxUSE_CALENDARCTRL 1
17152EOF
17153
17154 USES_CONTROLS=1
17155 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
17156fi
17157
17158if test "$wxUSE_CARET" = "yes"; then
698dcdb6 17159 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17160#define wxUSE_CARET 1
17161EOF
17162
1e6feb95 17163 USES_CONTROLS=1
10f2d63a
VZ
17164 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17165fi
17166
17167if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 17168 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17169#define wxUSE_COMBOBOX 1
17170EOF
17171
1e6feb95 17172 USES_CONTROLS=1
10f2d63a
VZ
17173fi
17174
17175if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 17176 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17177#define wxUSE_CHOICE 1
17178EOF
17179
1e6feb95 17180 USES_CONTROLS=1
10f2d63a
VZ
17181fi
17182
17183if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 17184 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17185#define wxUSE_CHECKBOX 1
17186EOF
17187
1e6feb95 17188 USES_CONTROLS=1
10f2d63a
VZ
17189fi
17190
17191if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 17192 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17193#define wxUSE_CHECKLISTBOX 1
17194EOF
17195
1e6feb95 17196 USES_CONTROLS=1
10f2d63a
VZ
17197 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17198fi
17199
17200if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 17201 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17202#define wxUSE_GAUGE 1
17203EOF
17204
1e6feb95 17205 USES_CONTROLS=1
10f2d63a
VZ
17206fi
17207
d6a55c4b
VZ
17208if test "$wxUSE_NEW_GRID" = "yes"; then
17209 wxUSE_GRID="yes"
698dcdb6 17210 cat >> confdefs.h <<\EOF
d6a55c4b 17211#define wxUSE_NEW_GRID 1
10f2d63a
VZ
17212EOF
17213
1e6feb95 17214 USES_CONTROLS=1
d6a55c4b 17215 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
17216fi
17217
d6a55c4b 17218if test "$wxUSE_GRID" = "yes"; then
698dcdb6 17219 cat >> confdefs.h <<\EOF
d6a55c4b 17220#define wxUSE_GRID 1
10f2d63a
VZ
17221EOF
17222
1e6feb95 17223 USES_CONTROLS=1
d6a55c4b 17224 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
17225fi
17226
17227if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17228 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17229#define wxUSE_IMAGLIST 1
17230EOF
17231
17232fi
17233
17234if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 17235 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17236#define wxUSE_LISTBOX 1
17237EOF
17238
1e6feb95 17239 USES_CONTROLS=1
10f2d63a
VZ
17240fi
17241
17242if test "$wxUSE_LISTCTRL" = "yes"; then
17243 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17244 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17245#define wxUSE_LISTCTRL 1
17246EOF
17247
1e6feb95 17248 USES_CONTROLS=1
10f2d63a
VZ
17249 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17250 else
698dcdb6 17251 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17252 fi
17253fi
17254
17255if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 17256 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17257#define wxUSE_NOTEBOOK 1
17258EOF
17259
1e6feb95 17260 USES_CONTROLS=1
10f2d63a
VZ
17261 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17262fi
17263
17264if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 17265 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17266#define wxUSE_RADIOBOX 1
17267EOF
17268
1e6feb95 17269 USES_CONTROLS=1
10f2d63a
VZ
17270fi
17271
17272if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 17273 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17274#define wxUSE_RADIOBTN 1
17275EOF
17276
1e6feb95 17277 USES_CONTROLS=1
10f2d63a
VZ
17278fi
17279
17280if test "$wxUSE_SASH" = "yes"; then
698dcdb6 17281 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17282#define wxUSE_SASH 1
17283EOF
17284
17285 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17286fi
17287
17288if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 17289 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17290#define wxUSE_SCROLLBAR 1
17291EOF
17292
1e6feb95 17293 USES_CONTROLS=1
741a9306 17294 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
17295fi
17296
17297if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 17298 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17299#define wxUSE_SLIDER 1
17300EOF
17301
1e6feb95 17302 USES_CONTROLS=1
10f2d63a
VZ
17303fi
17304
17305if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 17306 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17307#define wxUSE_SPINBTN 1
17308EOF
17309
1e6feb95 17310 USES_CONTROLS=1
10f2d63a
VZ
17311fi
17312
56cfaa52 17313if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 17314 cat >> confdefs.h <<\EOF
56cfaa52
RR
17315#define wxUSE_SPINCTRL 1
17316EOF
17317
1e6feb95 17318 USES_CONTROLS=1
56cfaa52
RR
17319fi
17320
10f2d63a 17321if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 17322 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17323#define wxUSE_SPLITTER 1
17324EOF
17325
17326 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17327fi
17328
17329if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 17330 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17331#define wxUSE_STATBMP 1
17332EOF
17333
1e6feb95 17334 USES_CONTROLS=1
10f2d63a
VZ
17335fi
17336
17337if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 17338 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17339#define wxUSE_STATBOX 1
17340EOF
17341
1e6feb95
VZ
17342 USES_CONTROLS=1
17343fi
17344
17345if test "$wxUSE_STATTEXT" = "yes"; then
17346 cat >> confdefs.h <<\EOF
17347#define wxUSE_STATTEXT 1
17348EOF
17349
17350 USES_CONTROLS=1
10f2d63a
VZ
17351fi
17352
17353if test "$wxUSE_STATLINE" = "yes"; then
17354 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 17355 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 17356 else
698dcdb6 17357 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17358#define wxUSE_STATLINE 1
17359EOF
17360
1e6feb95 17361 USES_CONTROLS=1
10f2d63a
VZ
17362 fi
17363fi
17364
17365if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 17366 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17367#define wxUSE_STATUSBAR 1
17368EOF
17369
1e6feb95 17370 USES_CONTROLS=1
698dcdb6 17371
2286341c 17372 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
17373fi
17374
17375if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 17376 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17377#define wxUSE_TAB_DIALOG 1
17378EOF
17379
17380 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17381fi
17382
1e6feb95
VZ
17383if test "$wxUSE_TEXTCTRL" = "yes"; then
17384 cat >> confdefs.h <<\EOF
17385#define wxUSE_TEXTCTRL 1
17386EOF
17387
17388 USES_CONTROLS=1
17389 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17390fi
17391
1db8dc4a 17392if test "$wxUSE_TOGGLEBTN" = "yes"; then
a45d7ab7
GD
17393 if test "$wxUSE_MAC" = 1; then
17394 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
17395 wxUSE_TOGGLEBTN=no
17396 fi
17397
17398 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17399 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
17400#define wxUSE_TOGGLEBTN 1
17401EOF
17402
1e6feb95 17403 USES_CONTROLS=1
a45d7ab7 17404 fi
1db8dc4a
VZ
17405fi
17406
360d6699 17407if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 17408 cat >> confdefs.h <<\EOF
360d6699
VZ
17409#define wxUSE_TOOLBAR_SIMPLE 1
17410EOF
17411
17412 wxUSE_TOOLBAR="yes"
1e6feb95 17413 USES_CONTROLS=1
360d6699
VZ
17414fi
17415
10f2d63a 17416if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 17417 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17418#define wxUSE_TOOLBAR 1
17419EOF
17420
1e6feb95 17421 USES_CONTROLS=1
698dcdb6 17422
360d6699
VZ
17423 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17424 wxUSE_TOOLBAR_NATIVE="yes"
17425 fi
17426
1e6feb95
VZ
17427 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17428 cat >> confdefs.h <<\EOF
360d6699
VZ
17429#define wxUSE_TOOLBAR_NATIVE 1
17430EOF
17431
1e6feb95
VZ
17432 USES_CONTROLS=1
17433 fi
17434
17435 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
17436fi
17437
10f2d63a
VZ
17438if test "$wxUSE_TOOLTIPS" = "yes"; then
17439 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 17440 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
10f2d63a
VZ
17441 else
17442 if test "$wxUSE_WINE" = 1; then
698dcdb6 17443 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
10f2d63a 17444 else
698dcdb6 17445 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17446#define wxUSE_TOOLTIPS 1
17447EOF
17448
17449 fi
17450 fi
17451fi
17452
17453if test "$wxUSE_TREECTRL" = "yes"; then
17454 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17455 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17456#define wxUSE_TREECTRL 1
17457EOF
17458
1e6feb95 17459 USES_CONTROLS=1
10f2d63a
VZ
17460 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17461 else
698dcdb6 17462 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17463 fi
17464fi
17465
9f41d601 17466if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65
GD
17467 if test "$wxUSE_MAC" = 1; then
17468 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
17469 else
17470 cat >> confdefs.h <<\EOF
9f41d601
RR
17471#define wxUSE_POPUPWIN 1
17472EOF
17473
6abe4b65
GD
17474 USES_CONTROLS=1
17475 fi
9f41d601
RR
17476fi
17477
1e6feb95
VZ
17478if test "$USES_CONTROLS" = 1; then
17479 cat >> confdefs.h <<\EOF
17480#define wxUSE_CONTROLS 1
10f2d63a
VZ
17481EOF
17482
10f2d63a
VZ
17483fi
17484
1e6feb95
VZ
17485
17486
24fd6d87
VZ
17487if test "$wxUSE_DRAGIMAGE" = "yes"; then
17488 cat >> confdefs.h <<\EOF
17489#define wxUSE_DRAGIMAGE 1
17490EOF
17491
17492 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
17493fi
17494
1e6feb95 17495if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 17496 cat >> confdefs.h <<\EOF
1e6feb95 17497#define wxUSE_MENUS 1
10f2d63a
VZ
17498EOF
17499
1e6feb95 17500 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
17501fi
17502
1e6feb95
VZ
17503if test "$wxUSE_METAFILE" = "yes"; then
17504 cat >> confdefs.h <<\EOF
17505#define wxUSE_METAFILE 1
10f2d63a
VZ
17506EOF
17507
10f2d63a
VZ
17508fi
17509
1e6feb95
VZ
17510if test "$wxUSE_MIMETYPE" = "yes"; then
17511 cat >> confdefs.h <<\EOF
17512#define wxUSE_MIMETYPE 1
10f2d63a
VZ
17513EOF
17514
10f2d63a
VZ
17515fi
17516
3e44f09d
VZ
17517if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
17518 cat >> confdefs.h <<\EOF
17519#define wxUSE_SYSTEM_OPTIONS 1
17520EOF
17521
17522fi
17523
10f2d63a 17524if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 17525 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17526#define wxUSE_MINIFRAME 1
17527EOF
17528
17529 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
17530fi
17531
17532if test "$wxUSE_HTML" = "yes"; then
698dcdb6 17533 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17534#define wxUSE_HTML 1
17535EOF
17536
17537 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
17538 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
17539fi
17540
17541if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 17542 cat >> confdefs.h <<\EOF
1e487827
VS
17543#define wxUSE_VALIDATORS 1
17544EOF
703e0a69 17545
698dcdb6
VZ
17546 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
17547fi
17548
17549if test "$wxUSE_IMAGE" = "yes" ; then
17550 cat >> confdefs.h <<\EOF
17551#define wxUSE_IMAGE 1
17552EOF
17553
17554fi
17555
17556if test "$wxUSE_GIF" = "yes" ; then
17557 cat >> confdefs.h <<\EOF
17558#define wxUSE_GIF 1
17559EOF
17560
17561fi
17562
17563if test "$wxUSE_PCX" = "yes" ; then
17564 cat >> confdefs.h <<\EOF
17565#define wxUSE_PCX 1
17566EOF
17567
17568fi
17569
17570if test "$wxUSE_PNM" = "yes" ; then
17571 cat >> confdefs.h <<\EOF
17572#define wxUSE_PNM 1
17573EOF
17574
17575fi
17576
17577if test "$wxUSE_XPM" = "yes" ; then
17578 cat >> confdefs.h <<\EOF
17579#define wxUSE_XPM 1
17580EOF
17581
17582fi
17583
17584
1e6feb95
VZ
17585if test "$wxUSE_CHOICEDLG" = "yes"; then
17586 cat >> confdefs.h <<\EOF
17587#define wxUSE_CHOICEDLG 1
17588EOF
17589
17590fi
17591
17592if test "$wxUSE_COLOURDLG" = "yes"; then
17593 cat >> confdefs.h <<\EOF
17594#define wxUSE_COLOURDLG 1
17595EOF
17596
17597fi
17598
17599if test "$wxUSE_FILEDLG" = "yes"; then
17600 cat >> confdefs.h <<\EOF
17601#define wxUSE_FILEDLG 1
17602EOF
17603
17604fi
17605
17606if test "$wxUSE_FONTDLG" = "yes"; then
17607 cat >> confdefs.h <<\EOF
17608#define wxUSE_FONTDLG 1
17609EOF
17610
17611fi
17612
17613if test "$wxUSE_DIRDLG" = "yes"; then
17614 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17615 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
17616 else
17617 if test "$wxUSE_TREECTRL" != "yes"; then
17618 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
17619 else
17620 cat >> confdefs.h <<\EOF
17621#define wxUSE_DIRDLG 1
17622EOF
17623
17624 fi
17625 fi
17626fi
17627
17628if test "$wxUSE_MSGDLG" = "yes"; then
17629 cat >> confdefs.h <<\EOF
17630#define wxUSE_MSGDLG 1
17631EOF
17632
17633fi
17634
17635if test "$wxUSE_NUMBERDLG" = "yes"; then
17636 cat >> confdefs.h <<\EOF
17637#define wxUSE_NUMBERDLG 1
17638EOF
17639
17640fi
17641
17642if test "$wxUSE_PROGRESSDLG" = "yes"; then
17643 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17644 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
17645 else
17646 cat >> confdefs.h <<\EOF
17647#define wxUSE_PROGRESSDLG 1
17648EOF
17649
17650 fi
17651fi
17652
17653if test "$wxUSE_STARTUP_TIPS" = "yes"; then
17654 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17655 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
17656 else
17657 cat >> confdefs.h <<\EOF
17658#define wxUSE_STARTUP_TIPS 1
17659EOF
17660
17661 fi
17662fi
17663
17664if test "$wxUSE_TEXTDLG" = "yes"; then
17665 cat >> confdefs.h <<\EOF
17666#define wxUSE_TEXTDLG 1
17667EOF
17668
17669fi
17670
b1f5d087
VZ
17671if test "$wxUSE_WIZARDDLG" = "yes"; then
17672 cat >> confdefs.h <<\EOF
17673#define wxUSE_WIZARDDLG 1
17674EOF
17675
17676 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
17677fi
17678
1e6feb95 17679
698dcdb6
VZ
17680if test "$cross_compiling" = "yes"; then
17681 OSINFO="\"$host\""
17682else
17683 OSINFO=`uname -s -r -m`
17684 OSINFO="\"$OSINFO\""
17685fi
17686
17687cat >> confdefs.h <<EOF
17688#define WXWIN_OS_DESCRIPTION $OSINFO
17689EOF
17690
17691
17692
17693GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
17694OPENGL_LIBS="$OPENGL_LINK"
17695
17696EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
17697if test "$USE_MAC" = 1 ; then
17698 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
17699fi
17700if test "$wxUSE_GUI" = "yes"; then
17701 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
17702fi
17703
17704LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
17705
3e44f09d
VZ
17706INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include \
17707$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
17708$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
698dcdb6
VZ
17709
17710if test "$wxUSE_GTK" = 1; then
17711 WXCONFIG_INCLUDE=""
17712else
17713 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
17714fi
17715
17716if test "$GXX" = yes ; then
17717 CXXWARNINGS="-Wall"
17718 fi
17719EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
17720
17721CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
17722CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
17723
17724LDFLAGS="$LDFLAGS $PROFILE"
17725
17726if test "$wxUSE_GUI" = "yes"; then
17727
24fd6d87 17728 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
1e6feb95
VZ
17729 drawing dynamic event font fractal image \
17730 minimal richedit widgets"
17731
17732 if test "$wxUSE_UNIVERSAL" = "yes" ; then
17733 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
17734 fi
698dcdb6
VZ
17735
17736 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
17737else
17738 SAMPLES_SUBDIRS=""
17739fi
17740
17741SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
32832908
VZ
17809
17810
17811
17812
17813
17814
17815
2224580a 17816
dad6c0ea 17817
f6bcfd97
BP
17818
17819
17820
2f51a9ec
GD
17821
17822
17823
17824
17825
17826
f6bcfd97 17827
dad6c0ea 17828
caa2c79b 17829
3711412e 17830
1e6feb95
VZ
17831
17832
0f3f1cbc 17833
10f2d63a
VZ
17834
17835
698dcdb6 17836echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
831b3152 17837echo "configure:17838: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
17838set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
17839if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
17840 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17841else
698dcdb6 17842 cat > conftestmake <<\EOF
10f2d63a
VZ
17843all:
17844 @echo 'ac_maketemp="${MAKE}"'
17845EOF
17846# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 17847eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
17848if test -n "$ac_maketemp"; then
17849 eval ac_cv_prog_make_${ac_make}_set=yes
17850else
17851 eval ac_cv_prog_make_${ac_make}_set=no
17852fi
698dcdb6 17853rm -f conftestmake
10f2d63a
VZ
17854fi
17855if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 17856 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
17857 SET_MAKE=
17858else
698dcdb6 17859 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17860 SET_MAKE="MAKE=${MAKE-make}"
17861fi
17862
698dcdb6 17863
00cf1208
RR
17864if test -d include; then
17865 if test -d include/wx; then
1e6feb95
VZ
17866 if test -d include/wx/${SETUPH_DIR}; then
17867 if test -f include/wx/${SETUPH_DIR}/setup.h; then
17868 mv -f include/wx/${SETUPH_DIR}/setup.h setup.h
00cf1208
RR
17869 fi
17870 fi
17871 fi
17872fi
665bbe97 17873
698dcdb6 17874
10f2d63a 17875
2224580a 17876if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 17877 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
17878 wx_cv_path_ifs=$PATH_IFS
17879 wx_cv_program_ext=$PROGRAM_EXT
17880 wx_cv_target_library=$WX_TARGET_LIBRARY
3711412e 17881 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
93a20a27
VS
17882 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
17883 wx_cv_target_library wx_cv_target_libtype
698dcdb6 17884 subdirs="demos samples utils contrib"
2224580a
VZ
17885
17886fi
10f2d63a 17887
698dcdb6
VZ
17888trap '' 1 2 15
17889cat > confcache <<\EOF
10f2d63a
VZ
17890# This file is a shell script that caches the results of configure
17891# tests run on this system so they can be shared between configure
698dcdb6
VZ
17892# scripts and configure runs. It is not useful on other systems.
17893# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 17894#
698dcdb6
VZ
17895# By default, configure uses ./config.cache as the cache file,
17896# creating it if it does not exist already. You can give configure
17897# the --cache-file=FILE option to use a different cache file; that is
17898# what configure does when it calls configure scripts in
17899# subdirectories, so they share the cache.
17900# Giving --cache-file=/dev/null disables caching, for debugging configure.
17901# config.status only pays attention to the cache file if you give it the
17902# --recheck option to rerun configure.
10f2d63a 17903#
698dcdb6 17904EOF
10f2d63a
VZ
17905# The following way of writing the cache mishandles newlines in values,
17906# but we know of no workaround that is simple, portable, and efficient.
17907# So, don't put newlines in cache variables' values.
17908# Ultrix sh set writes to stderr and can't be redirected directly,
17909# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
17910(set) 2>&1 |
17911 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17912 *ac_space=\ *)
17913 # `set' does not quote correctly, so add quotes (double-quote substitution
17914 # turns \\\\ into \\, and sed turns \\ into \).
17915 sed -n \
17916 -e "s/'/'\\\\''/g" \
17917 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17918 ;;
17919 *)
17920 # `set' quotes correctly as required by POSIX, so do not add quotes.
17921 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17922 ;;
17923 esac >> confcache
17924if cmp -s $cache_file confcache; then
17925 :
17926else
10f2d63a 17927 if test -w $cache_file; then
698dcdb6
VZ
17928 echo "updating cache $cache_file"
17929 cat confcache > $cache_file
10f2d63a
VZ
17930 else
17931 echo "not updating unwritable cache $cache_file"
17932 fi
17933fi
17934rm -f confcache
17935
698dcdb6
VZ
17936trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17937
10f2d63a
VZ
17938test "x$prefix" = xNONE && prefix=$ac_default_prefix
17939# Let make expand exec_prefix.
17940test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17941
698dcdb6
VZ
17942# Any assignment to VPATH causes Sun make to only execute
17943# the first set of double-colon rules, so remove it if not needed.
17944# If there is a colon in the path, we need to keep it.
10f2d63a 17945if test "x$srcdir" = x.; then
698dcdb6 17946 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
17947fi
17948
698dcdb6
VZ
17949trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17950
10f2d63a
VZ
17951DEFS=-DHAVE_CONFIG_H
17952
698dcdb6 17953# Without the "./", some shells look in PATH for config.status.
10f2d63a 17954: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
17955
17956echo creating $CONFIG_STATUS
17957rm -f $CONFIG_STATUS
17958cat > $CONFIG_STATUS <<EOF
17959#! /bin/sh
10f2d63a
VZ
17960# Generated automatically by configure.
17961# Run this file to recreate the current configuration.
698dcdb6
VZ
17962# This directory was configured as follows,
17963# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17964#
17965# $0 $ac_configure_args
17966#
10f2d63a 17967# Compiler output produced by configure, useful for debugging
698dcdb6 17968# configure, is in ./config.log if it exists.
1e487827 17969
698dcdb6
VZ
17970ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17971for ac_option
10f2d63a 17972do
698dcdb6 17973 case "\$ac_option" in
10f2d63a 17974 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
17975 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17976 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17977 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17978 echo "$CONFIG_STATUS generated by autoconf version 2.13"
17979 exit 0 ;;
17980 -help | --help | --hel | --he | --h)
17981 echo "\$ac_cs_usage"; exit 0 ;;
17982 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
17983 esac
17984done
17985
698dcdb6
VZ
17986ac_given_srcdir=$srcdir
17987ac_given_INSTALL="$INSTALL"
703e0a69 17988
698dcdb6
VZ
17989trap 'rm -fr `echo "
17990 wx-config
17991 src/make.env
17992 src/makeprog.env
17993 src/makelib.env
17994 Makefile
17995 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 17996EOF
698dcdb6 17997cat >> $CONFIG_STATUS <<EOF
1e487827 17998
698dcdb6
VZ
17999# Protect against being on the right side of a sed subst in config.status.
18000sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18001 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18002$ac_vpsub
18003$extrasub
18004s%@SHELL@%$SHELL%g
18005s%@CFLAGS@%$CFLAGS%g
18006s%@CPPFLAGS@%$CPPFLAGS%g
18007s%@CXXFLAGS@%$CXXFLAGS%g
18008s%@FFLAGS@%$FFLAGS%g
18009s%@DEFS@%$DEFS%g
18010s%@LDFLAGS@%$LDFLAGS%g
18011s%@LIBS@%$LIBS%g
18012s%@exec_prefix@%$exec_prefix%g
18013s%@prefix@%$prefix%g
18014s%@program_transform_name@%$program_transform_name%g
18015s%@bindir@%$bindir%g
18016s%@sbindir@%$sbindir%g
18017s%@libexecdir@%$libexecdir%g
18018s%@datadir@%$datadir%g
18019s%@sysconfdir@%$sysconfdir%g
18020s%@sharedstatedir@%$sharedstatedir%g
18021s%@localstatedir@%$localstatedir%g
18022s%@libdir@%$libdir%g
18023s%@includedir@%$includedir%g
18024s%@oldincludedir@%$oldincludedir%g
18025s%@infodir@%$infodir%g
18026s%@mandir@%$mandir%g
18027s%@host@%$host%g
18028s%@host_alias@%$host_alias%g
18029s%@host_cpu@%$host_cpu%g
18030s%@host_vendor@%$host_vendor%g
18031s%@host_os@%$host_os%g
18032s%@target@%$target%g
18033s%@target_alias@%$target_alias%g
18034s%@target_cpu@%$target_cpu%g
18035s%@target_vendor@%$target_vendor%g
18036s%@target_os@%$target_os%g
18037s%@build@%$build%g
18038s%@build_alias@%$build_alias%g
18039s%@build_cpu@%$build_cpu%g
18040s%@build_vendor@%$build_vendor%g
18041s%@build_os@%$build_os%g
18042s%@CC@%$CC%g
18043s%@CPP@%$CPP%g
18044s%@CXX@%$CXX%g
18045s%@CXXCPP@%$CXXCPP%g
18046s%@RANLIB@%$RANLIB%g
18047s%@AR@%$AR%g
18048s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18049s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18050s%@INSTALL_DATA@%$INSTALL_DATA%g
18051s%@STRIP@%$STRIP%g
18052s%@YACC@%$YACC%g
18053s%@LEX@%$LEX%g
18054s%@LEXLIB@%$LEXLIB%g
18055s%@LN_S@%$LN_S%g
18056s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
698dcdb6
VZ
18057s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18058s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 18059s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
18060s%@X_CFLAGS@%$X_CFLAGS%g
18061s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18062s%@X_LIBS@%$X_LIBS%g
18063s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
18064s%@REZ@%$REZ%g
18065s%@DEREZ@%$DEREZ%g
18066s%@LEX_STEM@%$LEX_STEM%g
18067s%@PATH_IFS@%$PATH_IFS%g
18068s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18069s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18070s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
18071s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
18072s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18073s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
18074s%@WX_LIBRARY@%$WX_LIBRARY%g
18075s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18076s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18077s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
18078s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
18079s%@PROGRAM_EXT@%$PROGRAM_EXT%g
18080s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
18081s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18082s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
18083s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
18084s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18085s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18086s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
18087s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
18088s%@WX_ALL@%$WX_ALL%g
18089s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18090s%@SHARED_LD@%$SHARED_LD%g
18091s%@PIC_FLAG@%$PIC_FLAG%g
18092s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
18093s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18094s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
18095s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
18096s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
18097s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18098s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18099s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18100s%@USE_GUI@%$USE_GUI%g
18101s%@AFMINSTALL@%$AFMINSTALL%g
1e6feb95 18102s%@SETUPH_DIR@%$SETUPH_DIR%g
698dcdb6
VZ
18103s%@TOOLKIT@%$TOOLKIT%g
18104s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
18105s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
18106s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
18107s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
1e6feb95 18108s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
698dcdb6
VZ
18109s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18110s%@ALL_OBJECTS@%$ALL_OBJECTS%g
18111s%@ALL_DEPFILES@%$ALL_DEPFILES%g
18112s%@GUIDIST@%$GUIDIST%g
18113s%@PORT_FILES@%$PORT_FILES%g
18114s%@DISTDIR@%$DISTDIR%g
18115s%@RPM_SPEC@%$RPM_SPEC%g
18116s%@RPM_FILES@%$RPM_FILES%g
18117s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
18118s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
18119s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
18120s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
18121s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
18122s%@USER_SUBDIRS@%$USER_SUBDIRS%g
18123s%@EXTRA_LIBS@%$EXTRA_LIBS%g
18124s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18125s%@EXTRADEFS@%$EXTRADEFS%g
18126s%@LD_LIBS@%$LD_LIBS%g
18127s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
18128s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
18129s%@RESPROGRAM@%$RESPROGRAM%g
18130s%@RESCOMP@%$RESCOMP%g
18131s%@RESFLAGS@%$RESFLAGS%g
18132s%@REZFLAGS@%$REZFLAGS%g
18133s%@DEREZFLAGS@%$DEREZFLAGS%g
18134s%@LIBWXMACRES@%$LIBWXMACRES%g
18135s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18136s%@DLLTOOL@%$DLLTOOL%g
18137s%@AS@%$AS%g
18138s%@NM@%$NM%g
18139s%@LD@%$LD%g
18140s%@MAKEINFO@%$MAKEINFO%g
18141s%@SET_MAKE@%$SET_MAKE%g
18142s%@subdirs@%$subdirs%g
1e487827 18143
1e487827 18144CEOF
1e487827
VS
18145EOF
18146
698dcdb6
VZ
18147cat >> $CONFIG_STATUS <<\EOF
18148
18149# Split the substitutions into bite-sized pieces for seds with
18150# small command number limits, like on Digital OSF/1 and HP-UX.
18151ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18152ac_file=1 # Number of current file.
18153ac_beg=1 # First line for current file.
18154ac_end=$ac_max_sed_cmds # Line after last line for current file.
18155ac_more_lines=:
18156ac_sed_cmds=""
18157while $ac_more_lines; do
18158 if test $ac_beg -gt 1; then
18159 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18160 else
18161 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18162 fi
18163 if test ! -s conftest.s$ac_file; then
18164 ac_more_lines=false
18165 rm -f conftest.s$ac_file
18166 else
18167 if test -z "$ac_sed_cmds"; then
18168 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 18169 else
698dcdb6 18170 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 18171 fi
698dcdb6
VZ
18172 ac_file=`expr $ac_file + 1`
18173 ac_beg=$ac_end
18174 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 18175 fi
698dcdb6
VZ
18176done
18177if test -z "$ac_sed_cmds"; then
18178 ac_sed_cmds=cat
18179fi
18180EOF
10f2d63a 18181
698dcdb6
VZ
18182cat >> $CONFIG_STATUS <<EOF
18183
18184CONFIG_FILES=\${CONFIG_FILES-"wx-config
18185 src/make.env
18186 src/makeprog.env
18187 src/makelib.env
18188 Makefile
18189 "}
10f2d63a 18190EOF
698dcdb6
VZ
18191cat >> $CONFIG_STATUS <<\EOF
18192for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 18193 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
18194 case "$ac_file" in
18195 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18196 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18197 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
18198 esac
18199
698dcdb6 18200 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 18201
698dcdb6
VZ
18202 # Remove last slash and all that follows it. Not all systems have dirname.
18203 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18204 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18205 # The file is in a subdirectory.
18206 test ! -d "$ac_dir" && mkdir "$ac_dir"
18207 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 18208 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 18209 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
18210 else
18211 ac_dir_suffix= ac_dots=
18212 fi
18213
698dcdb6
VZ
18214 case "$ac_given_srcdir" in
18215 .) srcdir=.
18216 if test -z "$ac_dots"; then top_srcdir=.
18217 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18218 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 18219 *) # Relative path.
698dcdb6
VZ
18220 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18221 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
18222 esac
18223
698dcdb6
VZ
18224 case "$ac_given_INSTALL" in
18225 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18226 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
18227 esac
18228
698dcdb6
VZ
18229 echo creating "$ac_file"
18230 rm -f "$ac_file"
18231 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18232 case "$ac_file" in
18233 *Makefile*) ac_comsub="1i\\
18234# $configure_input" ;;
18235 *) ac_comsub= ;;
18236 esac
10f2d63a 18237
698dcdb6
VZ
18238 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18239 sed -e "$ac_comsub
18240s%@configure_input@%$configure_input%g
18241s%@srcdir@%$srcdir%g
18242s%@top_srcdir@%$top_srcdir%g
18243s%@INSTALL@%$INSTALL%g
18244" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18245fi; done
18246rm -f conftest.s*
10f2d63a
VZ
18247
18248# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18249# NAME is the cpp macro being defined and VALUE is the value it is being given.
18250#
18251# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
18252ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18253ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18254ac_dC='\3'
18255ac_dD='%g'
18256# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18257ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18258ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 18259ac_uC=' '
698dcdb6
VZ
18260ac_uD='\4%g'
18261# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18262ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18263ac_eB='$%\1#\2define\3'
18264ac_eC=' '
18265ac_eD='%g'
10f2d63a 18266
698dcdb6
VZ
18267if test "${CONFIG_HEADERS+set}" != set; then
18268EOF
18269cat >> $CONFIG_STATUS <<EOF
18270 CONFIG_HEADERS="setup.h:setup.h.in"
18271EOF
18272cat >> $CONFIG_STATUS <<\EOF
18273fi
18274for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 18275 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
18276 case "$ac_file" in
18277 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18278 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18279 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
18280 esac
18281
698dcdb6
VZ
18282 echo creating $ac_file
18283
18284 rm -f conftest.frag conftest.in conftest.out
18285 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18286 cat $ac_file_inputs > conftest.in
18287
18288EOF
18289
18290# Transform confdefs.h into a sed script conftest.vals that substitutes
18291# the proper values into config.h.in to produce config.h. And first:
18292# Protect against being on the right side of a sed subst in config.status.
18293# Protect against being in an unquoted here document in config.status.
18294rm -f conftest.vals
18295cat > conftest.hdr <<\EOF
18296s/[\\&%]/\\&/g
18297s%[\\$`]%\\&%g
18298s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18299s%ac_d%ac_u%gp
18300s%ac_u%ac_e%gp
18301EOF
18302sed -n -f conftest.hdr confdefs.h > conftest.vals
18303rm -f conftest.hdr
10f2d63a
VZ
18304
18305# This sed command replaces #undef with comments. This is necessary, for
18306# example, in the case of _POSIX_SOURCE, which is predefined and required
18307# on some systems where configure will not decide to define it.
698dcdb6
VZ
18308cat >> conftest.vals <<\EOF
18309s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
18310EOF
18311
698dcdb6
VZ
18312# Break up conftest.vals because some shells have a limit on
18313# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
18314
18315rm -f conftest.tail
698dcdb6 18316while :
10f2d63a 18317do
698dcdb6
VZ
18318 ac_lines=`grep -c . conftest.vals`
18319 # grep -c gives empty output for an empty file on some AIX systems.
18320 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18321 # Write a limited-size here document to conftest.frag.
18322 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18323 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 18324 echo 'CEOF
698dcdb6
VZ
18325 sed -f conftest.frag conftest.in > conftest.out
18326 rm -f conftest.in
18327 mv conftest.out conftest.in
18328' >> $CONFIG_STATUS
18329 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18330 rm -f conftest.vals
18331 mv conftest.tail conftest.vals
10f2d63a 18332done
698dcdb6
VZ
18333rm -f conftest.vals
18334
18335cat >> $CONFIG_STATUS <<\EOF
18336 rm -f conftest.frag conftest.h
18337 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18338 cat conftest.in >> conftest.h
18339 rm -f conftest.in
18340 if cmp -s $ac_file conftest.h 2>/dev/null; then
18341 echo "$ac_file is unchanged"
18342 rm -f conftest.h
10f2d63a 18343 else
698dcdb6
VZ
18344 # Remove last slash and all that follows it. Not all systems have dirname.
18345 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 18346 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
18347 # The file is in a subdirectory.
18348 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 18349 fi
698dcdb6
VZ
18350 rm -f $ac_file
18351 mv conftest.h $ac_file
10f2d63a 18352 fi
698dcdb6
VZ
18353fi; done
18354
10f2d63a 18355EOF
698dcdb6 18356cat >> $CONFIG_STATUS <<EOF
10f2d63a 18357
1e6feb95 18358 SETUPH_DIR="${SETUPH_DIR}"
698dcdb6
VZ
18359 TOOLKIT_NAME="${TOOLKIT_NAME}"
18360 LN_S="${LN_S}"
18361
18362
18363EOF
18364cat >> $CONFIG_STATUS <<\EOF
10f2d63a 18365
6ef41520 18366 if test ! -f wx${TOOLKIT_NAME}-config; then
991a5759
VZ
18367 chmod +x wx-config
18368 mv wx-config wx${TOOLKIT_NAME}-config
18369 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
18370 fi
665bbe97 18371
698dcdb6 18372
00cf1208
RR
18373 if test ! -d lib; then
18374 mkdir lib
18375 fi
18376 if test ! -d lib/wx; then
18377 mkdir lib/wx
18378 fi
18379 if test ! -d lib/wx/include; then
18380 mkdir lib/wx/include
18381 fi
18382 if test ! -d lib/wx/include/wx; then
18383 mkdir lib/wx/include/wx
18384 fi
f6bcfd97
BP
18385 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
18386 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
00cf1208
RR
18387 fi
18388 if test -f setup.h; then
066b00aa 18389 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
00cf1208 18390 fi
07eb77a6 18391
698dcdb6 18392
10f2d63a
VZ
18393 if test ! -d include; then
18394 mkdir include
18395 fi
18396 if test ! -d include/wx; then
18397 mkdir include/wx
18398 fi
1e6feb95
VZ
18399 if test ! -d include/wx/${SETUPH_DIR}; then
18400 mkdir include/wx/${SETUPH_DIR}
10f2d63a 18401 fi
afc31813 18402 if test -f setup.h; then
1e6feb95 18403 cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h
afc31813 18404 fi
665bbe97 18405
698dcdb6
VZ
18406
18407exit 0
10f2d63a
VZ
18408EOF
18409chmod +x $CONFIG_STATUS
698dcdb6
VZ
18410rm -fr confdefs* $ac_clean_files
18411test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 18412
2224580a
VZ
18413if test "$no_recursion" != yes; then
18414
18415 # Remove --cache-file and --srcdir arguments so they do not pile up.
18416 ac_sub_configure_args=
18417 ac_prev=
18418 for ac_arg in $ac_configure_args; do
18419 if test -n "$ac_prev"; then
18420 ac_prev=
18421 continue
18422 fi
698dcdb6 18423 case "$ac_arg" in
2224580a
VZ
18424 -cache-file | --cache-file | --cache-fil | --cache-fi \
18425 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18426 ac_prev=cache_file ;;
18427 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 18428 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
18429 ;;
18430 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18431 ac_prev=srcdir ;;
18432 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18433 ;;
18434 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18435 esac
18436 done
18437
698dcdb6 18438 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
18439
18440 # Do not complain, so a configure script can configure whichever
18441 # parts of a large source tree are present.
698dcdb6
VZ
18442 if test ! -d $srcdir/$ac_config_dir; then
18443 continue
18444 fi
18445
18446 echo configuring in $ac_config_dir
2224580a 18447
698dcdb6 18448 case "$srcdir" in
2224580a
VZ
18449 .) ;;
18450 *)
698dcdb6
VZ
18451 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18452 else
18453 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18454 fi
18455 ;;
2224580a
VZ
18456 esac
18457
18458 ac_popdir=`pwd`
698dcdb6 18459 cd $ac_config_dir
2224580a 18460
698dcdb6
VZ
18461 # A "../" for each directory in /$ac_config_dir.
18462 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 18463
698dcdb6 18464 case "$srcdir" in
2224580a
VZ
18465 .) # No --srcdir option. We are building in place.
18466 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
18467 /*) # Absolute path.
18468 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 18469 *) # Relative path.
698dcdb6 18470 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
18471 esac
18472
18473 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
18474 if test -f $ac_sub_srcdir/configure; then
18475 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
18476 elif test -f $ac_sub_srcdir/configure.in; then
18477 ac_sub_configure=$ac_configure
18478 else
698dcdb6 18479 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
18480 ac_sub_configure=
18481 fi
18482
18483 # The recursion is here.
18484 if test -n "$ac_sub_configure"; then
698dcdb6 18485
2224580a 18486 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
18487 case "$cache_file" in
18488 /*) ac_sub_cache_file=$cache_file ;;
2224580a 18489 *) # Relative path.
698dcdb6 18490 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 18491 esac
698dcdb6
VZ
18492 case "$ac_given_INSTALL" in
18493 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18494 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18495 esac
2224580a 18496
698dcdb6 18497 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 18498 # The eval makes quoting arguments work.
698dcdb6
VZ
18499 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
18500 then :
18501 else
18502 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
18503 fi
2224580a
VZ
18504 fi
18505
18506 cd $ac_popdir
18507 done
18508fi
18509
698dcdb6 18510