]> git.saurik.com Git - wxWidgets.git/blame - configure
1. added --enable-gtk2 option, check for GTK+ 2.0 disabled by default
[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)"
698dcdb6 92ac_help="$ac_help
8168de4c 93 --with-zlib use zlib for LZW compression"
698dcdb6 94ac_help="$ac_help
8168de4c 95 --with-odbc use the IODBC and wxODBC classes"
698dcdb6 96ac_help="$ac_help
8168de4c 97 --enable-shared create shared library code"
698dcdb6 98ac_help="$ac_help
8168de4c 99 --enable-burnt_name create set name in shared library "
698dcdb6 100ac_help="$ac_help
8168de4c 101 --enable-optimise create optimised code"
698dcdb6 102ac_help="$ac_help
8168de4c 103 --enable-debug same as debug_flag and debug_info"
698dcdb6 104ac_help="$ac_help
8168de4c 105 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
698dcdb6 106ac_help="$ac_help
8168de4c 107 --enable-debug_info create code with debugging information"
698dcdb6 108ac_help="$ac_help
8168de4c 109 --enable-debug_gdb create code with extra GDB debugging information"
698dcdb6 110ac_help="$ac_help
8168de4c 111 --enable-debug_cntxt use wxDebugContext"
698dcdb6 112ac_help="$ac_help
8168de4c 113 --enable-mem_tracing create code with memory tracing"
698dcdb6 114ac_help="$ac_help
8168de4c 115 --enable-profile create code with profiling information"
698dcdb6 116ac_help="$ac_help
8168de4c 117 --enable-no_rtti create code without RTTI information"
698dcdb6 118ac_help="$ac_help
8168de4c 119 --enable-no_exceptions create code without exceptions information"
698dcdb6 120ac_help="$ac_help
8168de4c 121 --enable-permissive compile code disregarding strict ANSI"
698dcdb6 122ac_help="$ac_help
8168de4c 123 --enable-no_deps create code without dependency information"
698dcdb6 124ac_help="$ac_help
8168de4c 125 --enable-intl use internationalization system"
698dcdb6 126ac_help="$ac_help
8168de4c 127 --enable-config use wxConfig (and derived) classes"
698dcdb6 128ac_help="$ac_help
8168de4c 129 --enable-sockets use socket/network classes"
698dcdb6 130ac_help="$ac_help
8168de4c 131 --enable-ipc use interprocess communication (wxSocket etc.)"
698dcdb6 132ac_help="$ac_help
8168de4c 133 --enable-cmdline use wxCmdLineParser class"
1e6feb95 134ac_help="$ac_help
8168de4c 135 --enable-datetime use wxDateTime class"
1e6feb95 136ac_help="$ac_help
8168de4c 137 --enable-timedate use obsolete wxDate/wxTime classes"
1e6feb95 138ac_help="$ac_help
8168de4c 139 --enable-stopwatch use wxStopWatch class"
1e6feb95 140ac_help="$ac_help
8168de4c 141 --enable-dialupman use dialup network classes"
698dcdb6 142ac_help="$ac_help
8168de4c 143 --enable-apple_ieee use the Apple IEEE codec"
698dcdb6 144ac_help="$ac_help
8168de4c 145 --enable-timer use wxTimer class"
698dcdb6 146ac_help="$ac_help
8168de4c 147 --enable-wave use wxWave class"
698dcdb6 148ac_help="$ac_help
8168de4c 149 --enable-fraction use wxFraction class"
698dcdb6 150ac_help="$ac_help
8168de4c 151 --enable-dynlib use wxLibrary class for DLL loading"
698dcdb6 152ac_help="$ac_help
8168de4c 153 --enable-longlong use wxLongLong class"
698dcdb6 154ac_help="$ac_help
8168de4c 155 --enable-geometry use geometry class"
698dcdb6 156ac_help="$ac_help
8168de4c 157 --enable-log use logging system"
698dcdb6 158ac_help="$ac_help
8168de4c 159 --enable-streams use wxStream etc classes"
698dcdb6 160ac_help="$ac_help
8168de4c 161 --enable-file use wxFile classes"
698dcdb6 162ac_help="$ac_help
8168de4c 163 --enable-ffile use wxFFile classes"
1e6feb95 164ac_help="$ac_help
8168de4c 165 --enable-textfile use wxTextFile classes"
698dcdb6 166ac_help="$ac_help
8168de4c 167 --enable-fontmap use font encodings conversion classes"
1e6feb95 168ac_help="$ac_help
8168de4c 169 --enable-unicode compile wxString with Unicode support"
698dcdb6 170ac_help="$ac_help
8168de4c 171 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
698dcdb6 172ac_help="$ac_help
8168de4c 173 --enable-wxprintfv use wxWindows implementation of vprintf()"
698dcdb6 174ac_help="$ac_help
8168de4c 175 --enable-std_iostreams use standard C++ stream classes"
698dcdb6 176ac_help="$ac_help
8168de4c 177 --enable-filesystem use virtual file systems classes"
698dcdb6 178ac_help="$ac_help
8168de4c 179 --enable-fs_inet use virtual HTTP/FTP filesystems"
698dcdb6 180ac_help="$ac_help
8168de4c 181 --enable-fs_zip use virtual ZIP filesystems"
698dcdb6 182ac_help="$ac_help
8168de4c 183 --enable-zipstream use wxZipInputStream"
698dcdb6 184ac_help="$ac_help
8168de4c 185 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
698dcdb6 186ac_help="$ac_help
8168de4c 187 --enable-snglinst use wxSingleInstanceChecker class"
698dcdb6 188ac_help="$ac_help
8168de4c 189 --enable-mimetypes use wxMimeTypesManager"
1e6feb95 190ac_help="$ac_help
8168de4c 191 --enable-threads use threads"
698dcdb6 192ac_help="$ac_help
8168de4c 193 --enable-serial use class serialization"
698dcdb6 194ac_help="$ac_help
8168de4c 195 --enable-docview use document view architecture"
698dcdb6 196ac_help="$ac_help
8168de4c 197 --enable-help use help (using external browser at present)"
698dcdb6 198ac_help="$ac_help
8168de4c 199 --enable-constraints use layout-constraints system"
698dcdb6 200ac_help="$ac_help
8168de4c 201 --enable-printarch use printing architecture"
698dcdb6 202ac_help="$ac_help
8168de4c 203 --enable-mdi use multiple document interface architecture"
698dcdb6 204ac_help="$ac_help
8168de4c 205 --enable-loggui use standard GUI logger"
1e6feb95 206ac_help="$ac_help
8168de4c 207 --enable-logwin use wxLogWindow"
1e6feb95 208ac_help="$ac_help
8168de4c 209 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 210ac_help="$ac_help
8168de4c 211 --enable-prologio use Prolog IO library"
698dcdb6 212ac_help="$ac_help
8168de4c 213 --enable-resources use wxWindows resources"
698dcdb6 214ac_help="$ac_help
8168de4c 215 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 216ac_help="$ac_help
8168de4c 217 --enable-clipboard use wxClipboard classes"
698dcdb6 218ac_help="$ac_help
8168de4c 219 --enable-dnd use Drag'n'Drop classes"
698dcdb6 220ac_help="$ac_help
8168de4c 221 --enable-metafile use win32 metafiles"
698dcdb6 222ac_help="$ac_help
8168de4c 223 --enable-wxtree make wxTree library"
698dcdb6 224ac_help="$ac_help
8168de4c 225 --enable-controls use all usual controls"
698dcdb6 226ac_help="$ac_help
8168de4c 227 --enable-accel use accelerators"
698dcdb6 228ac_help="$ac_help
8168de4c 229 --enable-button use wxButton class"
698dcdb6 230ac_help="$ac_help
8168de4c 231 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 232ac_help="$ac_help
8168de4c 233 --enable-calendar use wxCalendarCtrl class"
1e6feb95 234ac_help="$ac_help
8168de4c 235 --enable-caret use wxCaret class"
1e6feb95 236ac_help="$ac_help
8168de4c 237 --enable-checkbox use wxCheckBox class"
698dcdb6 238ac_help="$ac_help
8168de4c 239 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 240ac_help="$ac_help
8168de4c 241 --enable-choice use wxChoice class"
698dcdb6 242ac_help="$ac_help
8168de4c 243 --enable-combobox use wxComboBox classes"
698dcdb6 244ac_help="$ac_help
8168de4c 245 --enable-gauge use wxGauge class"
698dcdb6 246ac_help="$ac_help
8168de4c 247 --enable-grid use wxGrid class"
698dcdb6 248ac_help="$ac_help
8168de4c 249 --enable-newgrid use new wxGrid class"
698dcdb6 250ac_help="$ac_help
8168de4c 251 --enable-imaglist use wxImageList class"
698dcdb6 252ac_help="$ac_help
8168de4c 253 --enable-listbox use wxListBox class"
698dcdb6 254ac_help="$ac_help
8168de4c 255 --enable-listctrl use wxListCtrl class"
698dcdb6 256ac_help="$ac_help
8168de4c 257 --enable-notebook use wxNotebook class"
698dcdb6 258ac_help="$ac_help
8168de4c 259 --enable-radiobox use wxRadioBox class"
698dcdb6 260ac_help="$ac_help
8168de4c 261 --enable-radiobtn use wxRadioButton class"
698dcdb6 262ac_help="$ac_help
8168de4c 263 --enable-sash use wxSashWindow class"
698dcdb6 264ac_help="$ac_help
8168de4c 265 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 266ac_help="$ac_help
8168de4c 267 --enable-slider use wxSlider class"
698dcdb6 268ac_help="$ac_help
8168de4c 269 --enable-spinbtn use wxSpinButton class"
698dcdb6 270ac_help="$ac_help
8168de4c 271 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 272ac_help="$ac_help
8168de4c 273 --enable-splitter use wxSplitterWindow class"
698dcdb6 274ac_help="$ac_help
8168de4c 275 --enable-statbmp use wxStaticBitmap class"
698dcdb6 276ac_help="$ac_help
8168de4c 277 --enable-statbox use wxStaticBox class"
698dcdb6 278ac_help="$ac_help
8168de4c 279 --enable-statline use wxStaticLine class"
698dcdb6 280ac_help="$ac_help
8168de4c 281 --enable-stattext use wxStaticText class"
1e6feb95 282ac_help="$ac_help
8168de4c 283 --enable-statusbar use wxStatusBar class"
698dcdb6 284ac_help="$ac_help
8168de4c 285 --enable-tabdialog use wxTabControl class"
698dcdb6 286ac_help="$ac_help
8168de4c 287 --enable-textctrl use wxTextCtrl class"
1e6feb95 288ac_help="$ac_help
8168de4c 289 --enable-togglebtn use wxToggleButton class"
698dcdb6 290ac_help="$ac_help
8168de4c 291 --enable-toolbar use wxToolBar class"
698dcdb6 292ac_help="$ac_help
8168de4c 293 --enable-tbarnative use native wxToolBar class"
698dcdb6 294ac_help="$ac_help
8168de4c 295 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 296ac_help="$ac_help
8168de4c 297 --enable-treectrl use wxTreeCtrl class"
698dcdb6 298ac_help="$ac_help
8168de4c 299 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
698dcdb6 300ac_help="$ac_help
8168de4c 301 --enable-choicedlg use wxChoiceDialog"
1e6feb95 302ac_help="$ac_help
8168de4c 303 --enable-coldlg use wxColourDialog"
1e6feb95 304ac_help="$ac_help
8168de4c 305 --enable-filedlg use wxFileDialog"
1e6feb95 306ac_help="$ac_help
8168de4c 307 --enable-fontdlg use wxFontDialog"
1e6feb95 308ac_help="$ac_help
8168de4c 309 --enable-dirdlg use wxDirDialog"
698dcdb6 310ac_help="$ac_help
8168de4c 311 --enable-msgdlg use wxMessageDialog"
1e6feb95 312ac_help="$ac_help
8168de4c 313 --enable-numberdlg use wxNumberEntryDialog"
1e6feb95 314ac_help="$ac_help
8168de4c 315 --enable-textdlg use wxTextDialog"
698dcdb6 316ac_help="$ac_help
8168de4c 317 --enable-tipdlg use startup tips"
698dcdb6 318ac_help="$ac_help
8168de4c 319 --enable-progressdlg use wxProgressDialog"
698dcdb6 320ac_help="$ac_help
8168de4c 321 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 322ac_help="$ac_help
8168de4c 323 --enable-miniframe use wxMiniFrame class"
698dcdb6 324ac_help="$ac_help
8168de4c 325 --enable-html use wxHTML sub-library"
698dcdb6 326ac_help="$ac_help
8168de4c 327 --enable-tooltips use wxToolTip class"
698dcdb6 328ac_help="$ac_help
8168de4c 329 --enable-splines use spline drawing code"
698dcdb6 330ac_help="$ac_help
8168de4c 331 --enable-validators use wxValidator and derived classes"
698dcdb6 332ac_help="$ac_help
8168de4c 333 --enable-busyinfo use wxBusyInfo"
698dcdb6 334ac_help="$ac_help
8168de4c 335 --enable-joystick compile in joystick support (Linux only)"
698dcdb6 336ac_help="$ac_help
8168de4c 337 --enable-metafiles use wxMetaFile (Windows only)"
1e6feb95 338ac_help="$ac_help
8168de4c 339 --enable-image use wxImage class"
698dcdb6 340ac_help="$ac_help
8168de4c 341 --enable-gif use gif images (GIF file format)"
698dcdb6 342ac_help="$ac_help
8168de4c 343 --enable-pcx use pcx images (PCX file format)"
698dcdb6 344ac_help="$ac_help
8168de4c 345 --enable-pnm use pnm images (PNM file format)"
698dcdb6 346ac_help="$ac_help
8168de4c 347 --enable-xpm use xpm images (XPM file format)"
698dcdb6
VZ
348ac_help="$ac_help
349 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
350ac_help="$ac_help
351 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
352ac_help="$ac_help
353 --disable-gtktest Do not try to compile and run a test GTK program"
354ac_help="$ac_help
355 --with-x use the X Window System"
10f2d63a
VZ
356
357# Initialize some variables set by options.
358# The variables have the same names as the options, with
359# dashes changed to underlines.
698dcdb6
VZ
360build=NONE
361cache_file=./config.cache
10f2d63a 362exec_prefix=NONE
698dcdb6 363host=NONE
10f2d63a 364no_create=
698dcdb6 365nonopt=NONE
10f2d63a
VZ
366no_recursion=
367prefix=NONE
368program_prefix=NONE
369program_suffix=NONE
370program_transform_name=s,x,x,
371silent=
372site=
373srcdir=
698dcdb6 374target=NONE
10f2d63a
VZ
375verbose=
376x_includes=NONE
377x_libraries=NONE
378bindir='${exec_prefix}/bin'
379sbindir='${exec_prefix}/sbin'
380libexecdir='${exec_prefix}/libexec'
381datadir='${prefix}/share'
382sysconfdir='${prefix}/etc'
383sharedstatedir='${prefix}/com'
384localstatedir='${prefix}/var'
385libdir='${exec_prefix}/lib'
386includedir='${prefix}/include'
387oldincludedir='/usr/include'
388infodir='${prefix}/info'
389mandir='${prefix}/man'
390
698dcdb6
VZ
391# Initialize some other variables.
392subdirs=
393MFLAGS= MAKEFLAGS=
394SHELL=${CONFIG_SHELL-/bin/sh}
395# Maximum number of lines to put in a shell here document.
396ac_max_here_lines=12
10f2d63a
VZ
397
398ac_prev=
399for ac_option
400do
698dcdb6 401
10f2d63a
VZ
402 # If the previous option needs an argument, assign it.
403 if test -n "$ac_prev"; then
404 eval "$ac_prev=\$ac_option"
405 ac_prev=
406 continue
407 fi
408
698dcdb6
VZ
409 case "$ac_option" in
410 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
411 *) ac_optarg= ;;
412 esac
10f2d63a
VZ
413
414 # Accept the important Cygnus configure options, so we can diagnose typos.
415
698dcdb6 416 case "$ac_option" in
10f2d63a
VZ
417
418 -bindir | --bindir | --bindi | --bind | --bin | --bi)
419 ac_prev=bindir ;;
420 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 421 bindir="$ac_optarg" ;;
10f2d63a
VZ
422
423 -build | --build | --buil | --bui | --bu)
698dcdb6 424 ac_prev=build ;;
10f2d63a 425 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 426 build="$ac_optarg" ;;
10f2d63a
VZ
427
428 -cache-file | --cache-file | --cache-fil | --cache-fi \
429 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
430 ac_prev=cache_file ;;
431 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
432 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 433 cache_file="$ac_optarg" ;;
10f2d63a
VZ
434
435 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
436 ac_prev=datadir ;;
437 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
438 | --da=*)
698dcdb6 439 datadir="$ac_optarg" ;;
10f2d63a
VZ
440
441 -disable-* | --disable-*)
698dcdb6 442 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 443 # Reject names that are not valid shell variable names.
698dcdb6
VZ
444 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
445 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
446 fi
447 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
448 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
449
450 -enable-* | --enable-*)
698dcdb6 451 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 452 # Reject names that are not valid shell variable names.
698dcdb6
VZ
453 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
454 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
455 fi
456 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
457 case "$ac_option" in
458 *=*) ;;
10f2d63a
VZ
459 *) ac_optarg=yes ;;
460 esac
698dcdb6 461 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
462
463 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
464 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
465 | --exec | --exe | --ex)
466 ac_prev=exec_prefix ;;
467 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
468 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
469 | --exec=* | --exe=* | --ex=*)
698dcdb6 470 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
471
472 -gas | --gas | --ga | --g)
473 # Obsolete; use --with-gas.
474 with_gas=yes ;;
475
698dcdb6
VZ
476 -help | --help | --hel | --he)
477 # Omit some internal or obsolete options to make the list less imposing.
478 # This message is too long to be a string in the A/UX 3.1 sh.
479 cat << EOF
480Usage: configure [options] [host]
481Options: [defaults in brackets after descriptions]
482Configuration:
483 --cache-file=FILE cache test results in FILE
484 --help print this message
485 --no-create do not create output files
486 --quiet, --silent do not print \`checking...' messages
487 --version print the version of autoconf that created configure
488Directory and file names:
489 --prefix=PREFIX install architecture-independent files in PREFIX
490 [$ac_default_prefix]
491 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
492 [same as prefix]
493 --bindir=DIR user executables in DIR [EPREFIX/bin]
494 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
495 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
496 --datadir=DIR read-only architecture-independent data in DIR
497 [PREFIX/share]
498 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
499 --sharedstatedir=DIR modifiable architecture-independent data in DIR
500 [PREFIX/com]
501 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
502 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
503 --includedir=DIR C header files in DIR [PREFIX/include]
504 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
505 --infodir=DIR info documentation in DIR [PREFIX/info]
506 --mandir=DIR man documentation in DIR [PREFIX/man]
507 --srcdir=DIR find the sources in DIR [configure dir or ..]
508 --program-prefix=PREFIX prepend PREFIX to installed program names
509 --program-suffix=SUFFIX append SUFFIX to installed program names
510 --program-transform-name=PROGRAM
511 run sed PROGRAM on installed program names
512EOF
513 cat << EOF
514Host type:
515 --build=BUILD configure for building on BUILD [BUILD=HOST]
516 --host=HOST configure for HOST [guessed]
517 --target=TARGET configure for TARGET [TARGET=HOST]
518Features and packages:
519 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
520 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
521 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
522 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
523 --x-includes=DIR X include files are in DIR
524 --x-libraries=DIR X library files are in DIR
525EOF
526 if test -n "$ac_help"; then
527 echo "--enable and --with options recognized:$ac_help"
528 fi
529 exit 0 ;;
10f2d63a
VZ
530
531 -host | --host | --hos | --ho)
698dcdb6 532 ac_prev=host ;;
10f2d63a 533 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 534 host="$ac_optarg" ;;
10f2d63a
VZ
535
536 -includedir | --includedir | --includedi | --included | --include \
537 | --includ | --inclu | --incl | --inc)
538 ac_prev=includedir ;;
539 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
540 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 541 includedir="$ac_optarg" ;;
10f2d63a
VZ
542
543 -infodir | --infodir | --infodi | --infod | --info | --inf)
544 ac_prev=infodir ;;
545 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 546 infodir="$ac_optarg" ;;
10f2d63a
VZ
547
548 -libdir | --libdir | --libdi | --libd)
549 ac_prev=libdir ;;
550 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 551 libdir="$ac_optarg" ;;
10f2d63a
VZ
552
553 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
554 | --libexe | --libex | --libe)
555 ac_prev=libexecdir ;;
556 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
557 | --libexe=* | --libex=* | --libe=*)
698dcdb6 558 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
559
560 -localstatedir | --localstatedir | --localstatedi | --localstated \
561 | --localstate | --localstat | --localsta | --localst \
562 | --locals | --local | --loca | --loc | --lo)
563 ac_prev=localstatedir ;;
564 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
565 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
566 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 567 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
568
569 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
570 ac_prev=mandir ;;
571 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 572 mandir="$ac_optarg" ;;
10f2d63a
VZ
573
574 -nfp | --nfp | --nf)
575 # Obsolete; use --without-fp.
576 with_fp=no ;;
577
578 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
579 | --no-cr | --no-c)
580 no_create=yes ;;
581
582 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
583 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
584 no_recursion=yes ;;
585
586 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
587 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
588 | --oldin | --oldi | --old | --ol | --o)
589 ac_prev=oldincludedir ;;
590 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
591 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
592 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 593 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
594
595 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
596 ac_prev=prefix ;;
597 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 598 prefix="$ac_optarg" ;;
10f2d63a
VZ
599
600 -program-prefix | --program-prefix | --program-prefi | --program-pref \
601 | --program-pre | --program-pr | --program-p)
602 ac_prev=program_prefix ;;
603 -program-prefix=* | --program-prefix=* | --program-prefi=* \
604 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 605 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
606
607 -program-suffix | --program-suffix | --program-suffi | --program-suff \
608 | --program-suf | --program-su | --program-s)
609 ac_prev=program_suffix ;;
610 -program-suffix=* | --program-suffix=* | --program-suffi=* \
611 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 612 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
613
614 -program-transform-name | --program-transform-name \
615 | --program-transform-nam | --program-transform-na \
616 | --program-transform-n | --program-transform- \
617 | --program-transform | --program-transfor \
618 | --program-transfo | --program-transf \
619 | --program-trans | --program-tran \
620 | --progr-tra | --program-tr | --program-t)
621 ac_prev=program_transform_name ;;
622 -program-transform-name=* | --program-transform-name=* \
623 | --program-transform-nam=* | --program-transform-na=* \
624 | --program-transform-n=* | --program-transform-=* \
625 | --program-transform=* | --program-transfor=* \
626 | --program-transfo=* | --program-transf=* \
627 | --program-trans=* | --program-tran=* \
628 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 629 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
630
631 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
632 | -silent | --silent | --silen | --sile | --sil)
633 silent=yes ;;
634
635 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
636 ac_prev=sbindir ;;
637 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
638 | --sbi=* | --sb=*)
698dcdb6 639 sbindir="$ac_optarg" ;;
10f2d63a
VZ
640
641 -sharedstatedir | --sharedstatedir | --sharedstatedi \
642 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
643 | --sharedst | --shareds | --shared | --share | --shar \
644 | --sha | --sh)
645 ac_prev=sharedstatedir ;;
646 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
647 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
648 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
649 | --sha=* | --sh=*)
698dcdb6 650 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
651
652 -site | --site | --sit)
653 ac_prev=site ;;
654 -site=* | --site=* | --sit=*)
698dcdb6 655 site="$ac_optarg" ;;
10f2d63a
VZ
656
657 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
658 ac_prev=srcdir ;;
659 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 660 srcdir="$ac_optarg" ;;
10f2d63a
VZ
661
662 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
663 | --syscon | --sysco | --sysc | --sys | --sy)
664 ac_prev=sysconfdir ;;
665 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
666 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 667 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
668
669 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 670 ac_prev=target ;;
10f2d63a 671 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 672 target="$ac_optarg" ;;
10f2d63a
VZ
673
674 -v | -verbose | --verbose | --verbos | --verbo | --verb)
675 verbose=yes ;;
676
698dcdb6
VZ
677 -version | --version | --versio | --versi | --vers)
678 echo "configure generated by autoconf version 2.13"
679 exit 0 ;;
10f2d63a
VZ
680
681 -with-* | --with-*)
698dcdb6 682 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 683 # Reject names that are not valid shell variable names.
698dcdb6
VZ
684 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
685 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
686 fi
10f2d63a 687 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
688 case "$ac_option" in
689 *=*) ;;
10f2d63a
VZ
690 *) ac_optarg=yes ;;
691 esac
698dcdb6 692 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
693
694 -without-* | --without-*)
698dcdb6 695 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 696 # Reject names that are not valid shell variable names.
698dcdb6
VZ
697 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
698 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
699 fi
700 ac_package=`echo $ac_package| sed 's/-/_/g'`
701 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
702
703 --x)
704 # Obsolete; use --with-x.
705 with_x=yes ;;
706
707 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
708 | --x-incl | --x-inc | --x-in | --x-i)
709 ac_prev=x_includes ;;
710 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
711 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 712 x_includes="$ac_optarg" ;;
10f2d63a
VZ
713
714 -x-libraries | --x-libraries | --x-librarie | --x-librari \
715 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
716 ac_prev=x_libraries ;;
717 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
718 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 719 x_libraries="$ac_optarg" ;;
10f2d63a 720
698dcdb6 721 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
722 ;;
723
724 *)
698dcdb6
VZ
725 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
726 echo "configure: warning: $ac_option: invalid host type" 1>&2
727 fi
728 if test "x$nonopt" != xNONE; then
729 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
730 fi
731 nonopt="$ac_option"
10f2d63a
VZ
732 ;;
733
734 esac
735done
736
737if test -n "$ac_prev"; then
698dcdb6
VZ
738 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
739fi
740
741trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
742
743# File descriptor usage:
744# 0 standard input
745# 1 file creation
746# 2 errors and warnings
747# 3 some systems may open it to /dev/tty
748# 4 used on the Kubota Titan
749# 6 checking for... messages and results
750# 5 compiler messages saved in config.log
751if test "$silent" = yes; then
752 exec 6>/dev/null
753else
754 exec 6>&1
10f2d63a 755fi
698dcdb6
VZ
756exec 5>./config.log
757
758echo "\
759This file contains any messages produced by compilers while
760running configure, to aid debugging if configure makes a mistake.
761" 1>&5
10f2d63a 762
698dcdb6
VZ
763# Strip out --no-create and --no-recursion so they do not pile up.
764# Also quote any args containing shell metacharacters.
765ac_configure_args=
766for ac_arg
10f2d63a 767do
698dcdb6
VZ
768 case "$ac_arg" in
769 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
770 | --no-cr | --no-c) ;;
771 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
772 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
773 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
774 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
775 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
776 esac
777done
778
698dcdb6
VZ
779# NLS nuisances.
780# Only set these to C if already set. These must not be set unconditionally
781# because not all systems understand e.g. LANG=C (notably SCO).
782# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
783# Non-C LC_CTYPE values break the ctype check.
784if test "${LANG+set}" = set; then LANG=C; export LANG; fi
785if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
786if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
787if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 788
698dcdb6
VZ
789# confdefs.h avoids OS command line length limits that DEFS can exceed.
790rm -rf conftest* confdefs.h
791# AIX cpp loses on an empty file, so make sure it contains at least a newline.
792echo > confdefs.h
10f2d63a 793
698dcdb6
VZ
794# A filename unique to this package, relative to the directory that
795# configure is in, which we can look for to find out if srcdir is correct.
796ac_unique_file=wx-config.in
10f2d63a
VZ
797
798# Find the source files, if location was not specified.
799if test -z "$srcdir"; then
800 ac_srcdir_defaulted=yes
801 # Try the directory containing this script, then its parent.
802 ac_prog=$0
698dcdb6 803 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
804 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
805 srcdir=$ac_confdir
806 if test ! -r $srcdir/$ac_unique_file; then
807 srcdir=..
808 fi
809else
810 ac_srcdir_defaulted=no
811fi
812if test ! -r $srcdir/$ac_unique_file; then
813 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 814 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 815 else
698dcdb6 816 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
817 fi
818fi
698dcdb6 819srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
820
821# Prefer explicitly selected file to automatically selected ones.
822if test -z "$CONFIG_SITE"; then
823 if test "x$prefix" != xNONE; then
824 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
825 else
826 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
827 fi
828fi
829for ac_site_file in $CONFIG_SITE; do
830 if test -r "$ac_site_file"; then
698dcdb6 831 echo "loading site script $ac_site_file"
10f2d63a
VZ
832 . "$ac_site_file"
833 fi
834done
835
836if test -r "$cache_file"; then
698dcdb6
VZ
837 echo "loading cache $cache_file"
838 . $cache_file
10f2d63a 839else
698dcdb6
VZ
840 echo "creating cache $cache_file"
841 > $cache_file
10f2d63a
VZ
842fi
843
844ac_ext=c
698dcdb6 845# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 846ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
847ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
848ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
849cross_compiling=$ac_cv_prog_cc_cross
850
851ac_exeext=
852ac_objext=o
853if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
854 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
855 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
856 ac_n= ac_c='
857' ac_t=' '
858 else
859 ac_n=-n ac_c= ac_t=
860 fi
10f2d63a 861else
698dcdb6 862 ac_n= ac_c='\c' ac_t=
10f2d63a 863fi
698dcdb6
VZ
864
865
10f2d63a 866
7c66a493
VZ
867ac_aux_dir=
868for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
869 if test -f $ac_dir/install-sh; then
870 ac_aux_dir=$ac_dir
871 ac_install_sh="$ac_aux_dir/install-sh -c"
872 break
873 elif test -f $ac_dir/install.sh; then
874 ac_aux_dir=$ac_dir
875 ac_install_sh="$ac_aux_dir/install.sh -c"
876 break
877 fi
878done
879if test -z "$ac_aux_dir"; then
698dcdb6 880 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 881fi
698dcdb6
VZ
882ac_config_guess=$ac_aux_dir/config.guess
883ac_config_sub=$ac_aux_dir/config.sub
884ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 885
698dcdb6
VZ
886
887# Do some error checking and defaulting for the host and target type.
888# The inputs are:
889# configure --host=HOST --target=TARGET --build=BUILD NONOPT
890#
891# The rules are:
892# 1. You are not allowed to specify --host, --target, and nonopt at the
893# same time.
894# 2. Host defaults to nonopt.
895# 3. If nonopt is not specified, then host defaults to the current host,
896# as determined by config.guess.
897# 4. Target and build default to nonopt.
898# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
899
900# The aliases save the names the user supplied, while $host etc.
901# will get canonicalized.
698dcdb6
VZ
902case $host---$target---$nonopt in
903NONE---*---* | *---NONE---* | *---*---NONE) ;;
904*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
905esac
906
907
908# Make sure we can run config.sub.
909if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
910else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
911fi
912
913echo $ac_n "checking host system type""... $ac_c" 1>&6
8168de4c 914echo "configure:915: checking host system type" >&5
698dcdb6
VZ
915
916host_alias=$host
917case "$host_alias" in
918NONE)
919 case $nonopt in
920 NONE)
921 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
922 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
923 fi ;;
924 *) host_alias=$nonopt ;;
925 esac ;;
926esac
927
928host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
929host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
930host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
931host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
932echo "$ac_t""$host" 1>&6
933
934echo $ac_n "checking target system type""... $ac_c" 1>&6
8168de4c 935echo "configure:936: checking target system type" >&5
698dcdb6
VZ
936
937target_alias=$target
938case "$target_alias" in
939NONE)
940 case $nonopt in
941 NONE) target_alias=$host_alias ;;
942 *) target_alias=$nonopt ;;
943 esac ;;
944esac
945
946target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
947target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
948target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
949target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
950echo "$ac_t""$target" 1>&6
951
952echo $ac_n "checking build system type""... $ac_c" 1>&6
8168de4c 953echo "configure:954: checking build system type" >&5
698dcdb6
VZ
954
955build_alias=$build
956case "$build_alias" in
957NONE)
958 case $nonopt in
959 NONE) build_alias=$host_alias ;;
960 *) build_alias=$nonopt ;;
961 esac ;;
962esac
963
964build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
965build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
966build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
967build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
968echo "$ac_t""$build" 1>&6
969
970test "$host_alias" != "$target_alias" &&
7c66a493
VZ
971 test "$program_prefix$program_suffix$program_transform_name" = \
972 NONENONEs,x,x, &&
973 program_prefix=${target_alias}-
974
698dcdb6
VZ
975
976
10f2d63a 977WX_MAJOR_VERSION_NUMBER=2
37d403aa 978WX_MINOR_VERSION_NUMBER=3
665bbe97 979WX_RELEASE_NUMBER=1
10f2d63a 980
10f2d63a 981WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 982WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c
RL
983
984WX_CURRENT=0
985WX_REVISION=0
986WX_AGE=0
987
698dcdb6
VZ
988
989
10f2d63a
VZ
990USE_UNIX=1
991USE_WIN32=0
b12915c1 992USE_BEOS=0
1216f52d 993USE_MAC=0
b12915c1 994
10f2d63a
VZ
995USE_LINUX=
996USE_SGI=
997USE_HPUX=
998USE_SYSV=
999USE_SVR4=
1000USE_AIX=
1001USE_SUN=
1002USE_SOLARIS=
1003USE_SUNOS=
1004USE_ALPHA=
1005USE_OSF=
1006USE_BSD=
1007USE_FREEBSD=
95c8801c 1008USE_OPENBSD=
f6bcfd97 1009USE_NETBSD=
10f2d63a
VZ
1010USE_VMS=
1011USE_ULTRIX=
1012USE_CYGWIN=
1013USE_MINGW=
1014USE_DATA_GENERAL=
1015
ab9b9eab
VZ
1016NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1017
1e6feb95 1018ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
10f2d63a
VZ
1019
1020DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1021DEFAULT_wxUSE_MAC=0
1022DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1023DEFAULT_wxUSE_MOTIF=0
1024DEFAULT_wxUSE_MSW=0
e07802fc 1025DEFAULT_wxUSE_PM=0
1e6feb95 1026DEFAULT_wxUSE_WINE=0
10f2d63a
VZ
1027
1028DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1029DEFAULT_DEFAULT_wxUSE_MAC=0
1030DEFAULT_DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1031DEFAULT_DEFAULT_wxUSE_MOTIF=0
1032DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1033DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1034DEFAULT_DEFAULT_wxUSE_WINE=0
10f2d63a 1035
d6a55c4b
VZ
1036PROGRAM_EXT=
1037
10f2d63a
VZ
1038case "${host}" in
1039 *-hp-hpux* )
1040 USE_HPUX=1
1041 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1042 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
698dcdb6 1043 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1044#define __HPUX__ 1
1045EOF
1046
1047 ;;
1048 *-*-linux* )
1049 USE_LINUX=1
698dcdb6 1050 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1051#define __LINUX__ 1
1052EOF
1053
1054 TMP=`uname -m`
1055 if test "x$TMP" = "xalpha"; then
1056 USE_ALPHA=1
698dcdb6 1057 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1058#define __ALPHA__ 1
1059EOF
1060
1061 fi
1062 DEFAULT_DEFAULT_wxUSE_GTK=1
1063 ;;
1064 *-*-irix5* | *-*-irix6* )
1065 USE_SGI=1
1066 USE_SVR4=1
698dcdb6 1067 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1068#define __SGI__ 1
1069EOF
1070
698dcdb6 1071 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1072#define __SVR4__ 1
1073EOF
1074
1075 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1076 ;;
1077 *-*-solaris2* )
1078 USE_SUN=1
1079 USE_SOLARIS=1
1080 USE_SVR4=1
698dcdb6 1081 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1082#define __SUN__ 1
1083EOF
1084
698dcdb6 1085 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1086#define __SOLARIS__ 1
1087EOF
1088
698dcdb6 1089 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1090#define __SVR4__ 1
1091EOF
1092
1093 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1094 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1095 ;;
1096 *-*-sunos4* )
1097 USE_SUN=1
1098 USE_SUNOS=1
1099 USE_BSD=1
698dcdb6 1100 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1101#define __SUN__ 1
1102EOF
1103
698dcdb6 1104 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1105#define __SUNOS__ 1
1106EOF
1107
698dcdb6 1108 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1109#define __BSD__ 1
1110EOF
1111
1112 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1113 ;;
f6bcfd97 1114 *-*-freebsd*)
10f2d63a
VZ
1115 USE_BSD=1
1116 USE_FREEBSD=1
698dcdb6 1117 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1118#define __FREEBSD__ 1
1119EOF
1120
698dcdb6 1121 cat >> confdefs.h <<\EOF
10f2d63a 1122#define __BSD__ 1
95c8801c
VS
1123EOF
1124
1125 DEFAULT_DEFAULT_wxUSE_GTK=1
1126 ;;
1127 *-*-openbsd*)
1128 USE_BSD=1
1129 USE_OPENBSD=1
698dcdb6 1130 cat >> confdefs.h <<\EOF
95c8801c
VS
1131#define __FREEBSD__ 1
1132EOF
1133
698dcdb6 1134 cat >> confdefs.h <<\EOF
95c8801c 1135#define __OPENBSD__ 1
f6bcfd97
BP
1136EOF
1137
1138 DEFAULT_DEFAULT_wxUSE_GTK=1
1139 ;;
1140 *-*-netbsd*)
1141 USE_BSD=1
1142 USE_NETBSD=1
698dcdb6 1143 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1144#define __FREEBSD__ 1
1145EOF
1146
698dcdb6 1147 cat >> confdefs.h <<\EOF
f6bcfd97 1148#define __NETBSD__ 1
10f2d63a
VZ
1149EOF
1150
1151 DEFAULT_DEFAULT_wxUSE_GTK=1
1152 ;;
1153 *-*-osf* )
1154 USE_ALPHA=1
1155 USE_OSF=1
698dcdb6 1156 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1157#define __ALPHA__ 1
1158EOF
1159
698dcdb6 1160 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1161#define __OSF__ 1
1162EOF
1163
1164 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1165 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1166 ;;
1167 *-*-dgux5* )
1168 USE_ALPHA=1
1169 USE_SVR4=1
698dcdb6 1170 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1171#define __ALPHA__ 1
1172EOF
1173
698dcdb6 1174 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1175#define __SVR4__ 1
1176EOF
1177
1178 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1179 ;;
1180 *-*-sysv5* )
1181 USE_SYSV=1
1182 USE_SVR4=1
698dcdb6 1183 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1184#define __SYSV__ 1
1185EOF
1186
698dcdb6 1187 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1188#define __SVR4__ 1
1189EOF
1190
1191 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1192 ;;
1193 *-*-aix* )
1194 USE_AIX=1
1195 USE_SYSV=1
1196 USE_SVR4=1
698dcdb6 1197 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1198#define __AIX__ 1
1199EOF
1200
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
1c8183e2 1212 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1213 USE_UNIX=0
1214 USE_WIN32=1
698dcdb6 1215 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1216#define __WIN32__ 1
1217EOF
1218
698dcdb6 1219 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1220#define __WIN95__ 1
1221EOF
1222
698dcdb6 1223 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1224#define __WINDOWS__ 1
1225EOF
1226
698dcdb6 1227 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1228#define __GNUWIN32__ 1
1229EOF
1230
698dcdb6 1231 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1232#define STRICT 1
1233EOF
1234
698dcdb6 1235 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1236#define WINVER 0x0400
1237EOF
1238
cf27ef00 1239 PROGRAM_EXT=".exe"
10f2d63a
VZ
1240 DEFAULT_DEFAULT_wxUSE_MSW=1
1241 ;;
1242
1243 *-pc-os2_emx )
698dcdb6 1244 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1245#define __EMX__ 1
1246EOF
1247
cf27ef00 1248 PROGRAM_EXT=".exe"
e07802fc 1249 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1250 ;;
1251
b4085ce6
GD
1252 *-*-darwin* )
1253 USE_BSD=1
1254 USE_MAC=1
698dcdb6 1255 cat >> confdefs.h <<\EOF
b4085ce6
GD
1256#define __MAC__ 1
1257EOF
1258
698dcdb6 1259 cat >> confdefs.h <<\EOF
b4085ce6
GD
1260#define __BSD__ 1
1261EOF
1262
698dcdb6 1263 cat >> confdefs.h <<\EOF
b4085ce6
GD
1264#define __UNIX__ 1
1265EOF
1266
1267 DEFAULT_DEFAULT_wxUSE_MAC=1
1268 ;;
1269
b12915c1
VZ
1270 *-*-beos* )
1271 USE_BEOS=1
698dcdb6 1272 cat >> confdefs.h <<\EOF
b12915c1
VZ
1273#define __BEOS__ 1
1274EOF
1275
1276 ;;
1277
10f2d63a 1278 *)
698dcdb6 1279 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1280esac
1281
1282if test "$USE_UNIX" = 1 ; then
b12915c1 1283 wxUSE_UNIX=yes
698dcdb6 1284 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1285#define __UNIX__ 1
1286EOF
1287
698dcdb6 1288
b12915c1
VZ
1289 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1290 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1291fi
1292
1293if test "$USE_BEOS" = 1; then
1294 SRC_SUBDIRS="$SRC_SUBDIRS be"
1295 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1296fi
1297
1298if test "$USE_LINUX" = 1; then
698dcdb6 1299 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
8168de4c 1300echo "configure:1301: checking for gettext in -lc" >&5
698dcdb6
VZ
1301ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1302if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 1304else
698dcdb6
VZ
1305 ac_save_LIBS="$LIBS"
1306LIBS="-lc $LIBS"
1307cat > conftest.$ac_ext <<EOF
8168de4c 1308#line 1309 "configure"
698dcdb6
VZ
1309#include "confdefs.h"
1310/* Override any gcc2 internal prototype to avoid an error. */
1311/* We use char because int might match the return type of a gcc2
1312 builtin and then its argument prototype would still apply. */
1313char gettext();
10f2d63a 1314
698dcdb6
VZ
1315int main() {
1316gettext()
1317; return 0; }
1318EOF
8168de4c 1319if { (eval echo configure:1320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
1320 rm -rf conftest*
1321 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 1322else
698dcdb6
VZ
1323 echo "configure: failed program was:" >&5
1324 cat conftest.$ac_ext >&5
1325 rm -rf conftest*
1326 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 1327fi
698dcdb6
VZ
1328rm -f conftest*
1329LIBS="$ac_save_LIBS"
10f2d63a
VZ
1330
1331fi
698dcdb6
VZ
1332if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1333 echo "$ac_t""yes" 1>&6
1334 cat >> confdefs.h <<\EOF
1335#define wxHAVE_GLIBC2 1
1336EOF
10f2d63a
VZ
1337
1338else
698dcdb6 1339 echo "$ac_t""no" 1>&6
10f2d63a
VZ
1340fi
1341
1342fi
1343
1e487827 1344
1e487827 1345
6232543b 1346
10f2d63a
VZ
1347 wx_arg_cache_file="configarg.cache"
1348 echo "loading argument cache $wx_arg_cache_file"
1349 rm -f ${wx_arg_cache_file}.tmp
1350 touch ${wx_arg_cache_file}.tmp
1351 touch ${wx_arg_cache_file}
698dcdb6 1352
10f2d63a
VZ
1353
1354DEBUG_CONFIGURE=0
1355if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1356 DEFAULT_wxUSE_UNIVERSAL=no
1357
10f2d63a
VZ
1358 DEFAULT_wxUSE_THREADS=yes
1359
1360 DEFAULT_wxUSE_SHARED=yes
00cf1208 1361 DEFAULT_wxUSE_BURNT_NAME=no
1e6feb95 1362 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1363 DEFAULT_wxUSE_PROFILE=no
1364 DEFAULT_wxUSE_NO_DEPS=no
1365 DEFAULT_wxUSE_NO_RTTI=no
1366 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1367 DEFAULT_wxUSE_PERMISSIVE=no
1368 DEFAULT_wxUSE_DEBUG_FLAG=yes
1369 DEFAULT_wxUSE_DEBUG_INFO=yes
1370 DEFAULT_wxUSE_DEBUG_GDB=yes
1371 DEFAULT_wxUSE_MEM_TRACING=no
1372 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1373 DEFAULT_wxUSE_DMALLOC=no
1374 DEFAULT_wxUSE_APPLE_IEEE=no
1375
1376 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1377 DEFAULT_wxUSE_LOGWINDOW=no
1378 DEFAULT_wxUSE_LOGGUI=no
10f2d63a
VZ
1379
1380 DEFAULT_wxUSE_GUI=yes
1e6feb95 1381 DEFAULT_wxUSE_CONTROLS=no
10f2d63a
VZ
1382
1383 DEFAULT_wxUSE_ZLIB=no
1384 DEFAULT_wxUSE_LIBPNG=no
1385 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1386 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1387 DEFAULT_wxUSE_ODBC=no
3fed1840 1388 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1389 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1390
eb4efbdc 1391 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1392 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1393 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1394 DEFAULT_wxUSE_CMDLINE_PARSER=no
1395 DEFAULT_wxUSE_DATETIME=no
1396 DEFAULT_wxUSE_TIMEDATE=no
1397 DEFAULT_wxUSE_TIMER=no
1398 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1399 DEFAULT_wxUSE_FILE=no
1e6feb95 1400 DEFAULT_wxUSE_FFILE=no
10f2d63a 1401 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1402 DEFAULT_wxUSE_WAVE=no
1403 DEFAULT_wxUSE_INTL=no
1404 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1405 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1406 DEFAULT_wxUSE_STREAMS=no
1407 DEFAULT_wxUSE_SOCKETS=no
1408 DEFAULT_wxUSE_DIALUP_MANAGER=no
1409 DEFAULT_wxUSE_SERIAL=no
1410 DEFAULT_wxUSE_JOYSTICK=no
1411 DEFAULT_wxUSE_DYNLIB_CLASS=no
1412 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1413 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1414
1415 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1416 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1417 DEFAULT_wxUSE_POSTSCRIPT=no
1418
1419 DEFAULT_wxUSE_X_RESOURCES=no
1420 DEFAULT_wxUSE_CLIPBOARD=no
1421 DEFAULT_wxUSE_TOOLTIPS=no
1422 DEFAULT_wxUSE_DRAG_AND_DROP=no
1423 DEFAULT_wxUSE_SPLINES=no
1424
1425 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1426 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1427 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1428
1429 DEFAULT_wxUSE_PROLOGIO=no
1430 DEFAULT_wxUSE_RESOURCES=no
1431 DEFAULT_wxUSE_CONSTRAINTS=no
1432 DEFAULT_wxUSE_IPC=no
1433 DEFAULT_wxUSE_HELP=no
1434 DEFAULT_wxUSE_WXTREE=no
1435 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1436 DEFAULT_wxUSE_MIMETYPE=no
10f2d63a
VZ
1437
1438 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1439 DEFAULT_wxUSE_CHOICEDLG=no
1440 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1441 DEFAULT_wxUSE_DIRDLG=no
1e6feb95
VZ
1442 DEFAULT_wxUSE_FILEDLG=no
1443 DEFAULT_wxUSE_FONTDLG=no
1444 DEFAULT_wxUSE_MSGDLG=no
1445 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a
VZ
1446 DEFAULT_wxUSE_TEXTDLG=no
1447 DEFAULT_wxUSE_STARTUP_TIPS=no
1448 DEFAULT_wxUSE_PROGRESSDLG=no
1e6feb95 1449 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1450 DEFAULT_wxUSE_MINIFRAME=no
1451 DEFAULT_wxUSE_HTML=no
24528b0c 1452 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1453 DEFAULT_wxUSE_FS_INET=no
1454 DEFAULT_wxUSE_FS_ZIP=no
1455 DEFAULT_wxUSE_BUSYINFO=no
1456 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1457 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1458
1459 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1460 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1461 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1462 DEFAULT_wxUSE_CALCTRL=no
1463 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1464 DEFAULT_wxUSE_CHECKBOX=no
1465 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1466 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1467 DEFAULT_wxUSE_COMBOBOX=no
1468 DEFAULT_wxUSE_GAUGE=no
1469 DEFAULT_wxUSE_GRID=no
1470 DEFAULT_wxUSE_NEW_GRID=no
1471 DEFAULT_wxUSE_IMAGLIST=no
1472 DEFAULT_wxUSE_LISTBOX=no
1473 DEFAULT_wxUSE_LISTCTRL=no
1474 DEFAULT_wxUSE_NOTEBOOK=no
1475 DEFAULT_wxUSE_RADIOBOX=no
1476 DEFAULT_wxUSE_RADIOBTN=no
1477 DEFAULT_wxUSE_SASH=no
1478 DEFAULT_wxUSE_SCROLLBAR=no
1479 DEFAULT_wxUSE_SLIDER=no
1480 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1481 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1482 DEFAULT_wxUSE_SPLITTER=no
1483 DEFAULT_wxUSE_STATBMP=no
1484 DEFAULT_wxUSE_STATBOX=no
1485 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1486 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1487 DEFAULT_wxUSE_STATUSBAR=yes
1488 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1489 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1490 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1491 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1492 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1493 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
1494 DEFAULT_wxUSE_TREECTRL=no
1495
1496 DEFAULT_wxUSE_UNICODE=no
1497 DEFAULT_wxUSE_WCSRTOMBS=no
1498
0046ff7c 1499 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1500 DEFAULT_wxUSE_GIF=no
1501 DEFAULT_wxUSE_PCX=no
1502 DEFAULT_wxUSE_PNM=no
0046ff7c 1503 DEFAULT_wxUSE_XPM=no
10f2d63a 1504else
1e6feb95
VZ
1505 DEFAULT_wxUSE_UNIVERSAL=no
1506
10f2d63a
VZ
1507 DEFAULT_wxUSE_THREADS=yes
1508
1509 DEFAULT_wxUSE_SHARED=yes
00cf1208 1510 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1511 DEFAULT_wxUSE_OPTIMISE=yes
1512 DEFAULT_wxUSE_PROFILE=no
1513 DEFAULT_wxUSE_NO_DEPS=no
1514 DEFAULT_wxUSE_NO_RTTI=no
1515 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1516 DEFAULT_wxUSE_PERMISSIVE=no
1517 DEFAULT_wxUSE_DEBUG_FLAG=no
1518 DEFAULT_wxUSE_DEBUG_INFO=no
1519 DEFAULT_wxUSE_DEBUG_GDB=no
1520 DEFAULT_wxUSE_MEM_TRACING=no
1521 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1522 DEFAULT_wxUSE_DMALLOC=no
1523 DEFAULT_wxUSE_APPLE_IEEE=yes
1524
1525 DEFAULT_wxUSE_LOG=yes
1526
1527 DEFAULT_wxUSE_GUI=yes
1528
1529 DEFAULT_wxUSE_ZLIB=yes
1530 DEFAULT_wxUSE_LIBPNG=yes
1531 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1532 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1533 DEFAULT_wxUSE_ODBC=no
3fed1840 1534 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1535 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1536
eb4efbdc 1537 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1538 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1539 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1540 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1541 DEFAULT_wxUSE_DATETIME=yes
1542 DEFAULT_wxUSE_TIMEDATE=no
1543 DEFAULT_wxUSE_TIMER=yes
1544 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1545 DEFAULT_wxUSE_FILE=yes
1e6feb95 1546 DEFAULT_wxUSE_FFILE=yes
10f2d63a 1547 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1548 DEFAULT_wxUSE_WAVE=no
1549 DEFAULT_wxUSE_INTL=yes
1550 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1551 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1552 DEFAULT_wxUSE_STREAMS=yes
1553 DEFAULT_wxUSE_SOCKETS=yes
1554 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1555 DEFAULT_wxUSE_SERIAL=yes
1556 DEFAULT_wxUSE_JOYSTICK=yes
1557 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1558 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1559 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1560
1561 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1562 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1563 DEFAULT_wxUSE_POSTSCRIPT=yes
1564
1565 DEFAULT_wxUSE_X_RESOURCES=no
1566 DEFAULT_wxUSE_CLIPBOARD=yes
1567 DEFAULT_wxUSE_TOOLTIPS=yes
1568 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1569 DEFAULT_wxUSE_SPLINES=yes
1570
1571 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1572 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1573 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1574
1575 DEFAULT_wxUSE_PROLOGIO=yes
1576 DEFAULT_wxUSE_RESOURCES=yes
1577 DEFAULT_wxUSE_CONSTRAINTS=yes
1578 DEFAULT_wxUSE_IPC=yes
1579 DEFAULT_wxUSE_HELP=yes
1580 DEFAULT_wxUSE_WXTREE=yes
1581 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1582 DEFAULT_wxUSE_MIMETYPE=yes
10f2d63a
VZ
1583
1584 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1585 DEFAULT_wxUSE_CHOICEDLG=yes
1586 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1587 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95
VZ
1588 DEFAULT_wxUSE_FILEDLG=yes
1589 DEFAULT_wxUSE_FONTDLG=yes
1590 DEFAULT_wxUSE_MSGDLG=yes
1591 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a
VZ
1592 DEFAULT_wxUSE_TEXTDLG=yes
1593 DEFAULT_wxUSE_STARTUP_TIPS=yes
1594 DEFAULT_wxUSE_PROGRESSDLG=yes
1e6feb95 1595 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1596 DEFAULT_wxUSE_MINIFRAME=yes
1597 DEFAULT_wxUSE_HTML=yes
24528b0c 1598 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1599 DEFAULT_wxUSE_FS_INET=yes
1600 DEFAULT_wxUSE_FS_ZIP=yes
1601 DEFAULT_wxUSE_BUSYINFO=yes
1602 DEFAULT_wxUSE_ZIPSTREAM=yes
1603 DEFAULT_wxUSE_VALIDATORS=yes
1604
1605 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1606 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1607 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1608 DEFAULT_wxUSE_CALCTRL=yes
1609 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1610 DEFAULT_wxUSE_CHECKBOX=yes
1611 DEFAULT_wxUSE_CHECKLST=yes
1612 DEFAULT_wxUSE_CHOICE=yes
1613 DEFAULT_wxUSE_COMBOBOX=yes
1614 DEFAULT_wxUSE_GAUGE=yes
1615 DEFAULT_wxUSE_GRID=yes
cc977e5f 1616 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1617 DEFAULT_wxUSE_IMAGLIST=yes
1618 DEFAULT_wxUSE_LISTBOX=yes
1619 DEFAULT_wxUSE_LISTCTRL=yes
1620 DEFAULT_wxUSE_NOTEBOOK=yes
1621 DEFAULT_wxUSE_RADIOBOX=yes
1622 DEFAULT_wxUSE_RADIOBTN=yes
1623 DEFAULT_wxUSE_SASH=yes
1624 DEFAULT_wxUSE_SCROLLBAR=yes
1625 DEFAULT_wxUSE_SLIDER=yes
1626 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1627 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1628 DEFAULT_wxUSE_SPLITTER=yes
1629 DEFAULT_wxUSE_STATBMP=yes
1630 DEFAULT_wxUSE_STATBOX=yes
1631 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1632 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1633 DEFAULT_wxUSE_STATUSBAR=yes
1634 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1635 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1636 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1637 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1638 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1639 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
1640 DEFAULT_wxUSE_TREECTRL=yes
1641
1642 DEFAULT_wxUSE_UNICODE=no
1643 DEFAULT_wxUSE_WCSRTOMBS=no
1644
0046ff7c 1645 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1646 DEFAULT_wxUSE_GIF=yes
1647 DEFAULT_wxUSE_PCX=yes
1648 DEFAULT_wxUSE_PNM=yes
0046ff7c 1649 DEFAULT_wxUSE_XPM=yes
10f2d63a
VZ
1650fi
1651
698dcdb6
VZ
1652
1653
10f2d63a
VZ
1654for toolkit in `echo $ALL_TOOLKITS`; do
1655 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1656 if test "x$LINE" != x ; then
1657 has_toolkit_in_cache=1
1658 eval "DEFAULT_$LINE"
1659 eval "CACHE_$toolkit=1"
1660 fi
1661done
1662
698dcdb6
VZ
1663
1664
1665 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
8168de4c 1666echo "configure:1667: checking for --enable-gui" >&5
10f2d63a
VZ
1667 no_cache=0
1668 # Check whether --enable-gui or --disable-gui was given.
1669if test "${enable_gui+set}" = set; then
1670 enableval="$enable_gui"
698dcdb6 1671
10f2d63a
VZ
1672 if test "$enableval" = yes; then
1673 ac_cv_use_gui='wxUSE_GUI=yes'
1674 else
1675 ac_cv_use_gui='wxUSE_GUI=no'
1676 fi
698dcdb6 1677
10f2d63a 1678else
698dcdb6 1679
10f2d63a
VZ
1680 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1681 if test "x$LINE" != x ; then
1682 eval "DEFAULT_$LINE"
1683 else
1684 no_cache=1
1685 fi
1686
1687 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1688
1689fi
10f2d63a
VZ
1690
1691
1692 eval "$ac_cv_use_gui"
1693 if test "$no_cache" != 1; then
1694 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1695 fi
1696
1697 if test "$wxUSE_GUI" = yes; then
698dcdb6 1698 echo "$ac_t""yes" 1>&6
10f2d63a 1699 else
698dcdb6 1700 echo "$ac_t""no" 1>&6
10f2d63a 1701 fi
698dcdb6 1702
10f2d63a 1703
b12915c1 1704if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1705
1e6feb95
VZ
1706
1707 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
8168de4c 1708echo "configure:1709: checking for --enable-universal" >&5
1e6feb95
VZ
1709 no_cache=0
1710 # Check whether --enable-universal or --disable-universal was given.
1711if test "${enable_universal+set}" = set; then
1712 enableval="$enable_universal"
1713
1714 if test "$enableval" = yes; then
1715 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1716 else
1717 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1718 fi
1719
1720else
1721
1722 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1723 if test "x$LINE" != x ; then
1724 eval "DEFAULT_$LINE"
1725 else
1726 no_cache=1
1727 fi
1728
1729 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1730
1731fi
1732
1733
1734 eval "$ac_cv_use_universal"
1735 if test "$no_cache" != 1; then
1736 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1737 fi
1738
1739 if test "$wxUSE_UNIVERSAL" = yes; then
1740 echo "$ac_t""yes" 1>&6
1741 else
1742 echo "$ac_t""no" 1>&6
1743 fi
1744
10f2d63a
VZ
1745# Check whether --with-gtk or --without-gtk was given.
1746if test "${with_gtk+set}" = set; then
1747 withval="$with_gtk"
1748 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1749fi
10f2d63a
VZ
1750
1751# Check whether --with-motif or --without-motif was given.
1752if test "${with_motif+set}" = set; then
1753 withval="$with_motif"
1754 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1755fi
10f2d63a 1756
b4085ce6
GD
1757# Check whether --with-mac or --without-mac was given.
1758if test "${with_mac+set}" = set; then
1759 withval="$with_mac"
1760 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1761fi
b4085ce6 1762
10f2d63a
VZ
1763# Check whether --with-wine or --without-wine was given.
1764if test "${with_wine+set}" = set; then
1765 withval="$with_wine"
1766 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1767fi
10f2d63a
VZ
1768
1769# Check whether --with-cygwin or --without-cygwin was given.
1770if test "${with_cygwin+set}" = set; then
1771 withval="$with_cygwin"
1772 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
698dcdb6 1773fi
10f2d63a
VZ
1774
1775# Check whether --with-mingw or --without-mingw was given.
1776if test "${with_mingw+set}" = set; then
1777 withval="$with_mingw"
1778 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
698dcdb6 1779fi
10f2d63a 1780
e07802fc
VZ
1781# Check whether --with-pm or --without-pm was given.
1782if test "${with_pm+set}" = set; then
1783 withval="$with_pm"
1784 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1785fi
1786
1e6feb95
VZ
1787# Check whether --with-mgl or --without-mgl was given.
1788if test "${with_mgl+set}" = set; then
1789 withval="$with_mgl"
1790 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1791fi
1792
10f2d63a 1793
8168de4c
VZ
1794# Check whether --enable-gtk2 or --disable-gtk2 was given.
1795if test "${enable_gtk2+set}" = set; then
1796 enableval="$enable_gtk2"
1797 wxUSE_GTK2=1
10f2d63a 1798else
8168de4c 1799 wxUSE_GTK2=0
698dcdb6
VZ
1800fi
1801
703e0a69 1802
1e487827 1803
698dcdb6 1804 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
8168de4c 1805echo "configure:1806: checking for --with-libpng" >&5
698dcdb6
VZ
1806 no_cache=0
1807 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1808if test "${with_libpng+set}" = set; then
1809 withval="$with_libpng"
698dcdb6 1810
10f2d63a 1811 if test "$withval" = yes; then
b12915c1 1812 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1813 elif test "$withval" = no; then
b12915c1 1814 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1815 elif test "$withval" = sys; then
1816 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1817 else
698dcdb6 1818 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1819 fi
698dcdb6 1820
10f2d63a 1821else
698dcdb6 1822
b12915c1 1823 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1824 if test "x$LINE" != x ; then
1825 eval "DEFAULT_$LINE"
1826 else
1827 no_cache=1
1828 fi
1829
b12915c1 1830 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1831
1832fi
10f2d63a
VZ
1833
1834
b12915c1 1835 eval "$ac_cv_use_libpng"
10f2d63a 1836 if test "$no_cache" != 1; then
b12915c1 1837 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1838 fi
1839
b12915c1 1840 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1841 echo "$ac_t""yes" 1>&6
422107f9 1842 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1843 echo "$ac_t""no" 1>&6
422107f9 1844 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1845 echo "$ac_t""system version" 1>&6
422107f9 1846 else
698dcdb6 1847 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1848 fi
698dcdb6 1849
10f2d63a 1850
698dcdb6 1851 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
8168de4c 1852echo "configure:1853: checking for --with-libjpeg" >&5
10f2d63a 1853 no_cache=0
698dcdb6 1854 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1855if test "${with_libjpeg+set}" = set; then
1856 withval="$with_libjpeg"
698dcdb6 1857
10f2d63a 1858 if test "$withval" = yes; then
b12915c1 1859 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1860 elif test "$withval" = no; then
b12915c1 1861 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1862 elif test "$withval" = sys; then
1863 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1864 else
698dcdb6 1865 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1866 fi
698dcdb6 1867
10f2d63a 1868else
698dcdb6 1869
b12915c1 1870 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1871 if test "x$LINE" != x ; then
1872 eval "DEFAULT_$LINE"
1873 else
1874 no_cache=1
1875 fi
1876
b12915c1 1877 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
1878
1879fi
10f2d63a
VZ
1880
1881
b12915c1 1882 eval "$ac_cv_use_libjpeg"
10f2d63a 1883 if test "$no_cache" != 1; then
b12915c1 1884 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1885 fi
1886
b12915c1 1887 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 1888 echo "$ac_t""yes" 1>&6
422107f9 1889 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 1890 echo "$ac_t""no" 1>&6
422107f9 1891 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 1892 echo "$ac_t""system version" 1>&6
422107f9 1893 else
698dcdb6 1894 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1895 fi
698dcdb6 1896
10f2d63a 1897
698dcdb6 1898 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
8168de4c 1899echo "configure:1900: checking for --with-libtiff" >&5
10f2d63a 1900 no_cache=0
698dcdb6 1901 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
1902if test "${with_libtiff+set}" = set; then
1903 withval="$with_libtiff"
698dcdb6 1904
10f2d63a 1905 if test "$withval" = yes; then
b12915c1 1906 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1907 elif test "$withval" = no; then
b12915c1 1908 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1909 elif test "$withval" = sys; then
1910 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1911 else
698dcdb6 1912 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1913 fi
698dcdb6 1914
10f2d63a 1915else
698dcdb6 1916
b12915c1 1917 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1918 if test "x$LINE" != x ; then
1919 eval "DEFAULT_$LINE"
1920 else
1921 no_cache=1
1922 fi
1923
b12915c1 1924 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
1925
1926fi
10f2d63a
VZ
1927
1928
b12915c1 1929 eval "$ac_cv_use_libtiff"
10f2d63a 1930 if test "$no_cache" != 1; then
b12915c1 1931 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1932 fi
1933
b12915c1 1934 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 1935 echo "$ac_t""yes" 1>&6
0dcf9893 1936 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 1937 echo "$ac_t""no" 1>&6
0dcf9893 1938 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 1939 echo "$ac_t""system version" 1>&6
0dcf9893 1940 else
698dcdb6 1941 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1942 fi
698dcdb6 1943
10f2d63a 1944
698dcdb6 1945 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
8168de4c 1946echo "configure:1947: checking for --with-freetype" >&5
3fed1840 1947 no_cache=0
698dcdb6 1948 # Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
1949if test "${with_freetype+set}" = set; then
1950 withval="$with_freetype"
698dcdb6 1951
3fed1840
RR
1952 if test "$withval" = yes; then
1953 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1954 elif test "$withval" = no; then
1955 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1956 elif test "$withval" = sys; then
1957 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1958 else
698dcdb6 1959 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 1960 fi
698dcdb6 1961
3fed1840 1962else
698dcdb6 1963
3fed1840
RR
1964 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
1965 if test "x$LINE" != x ; then
1966 eval "DEFAULT_$LINE"
1967 else
1968 no_cache=1
1969 fi
1970
1971 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
698dcdb6
VZ
1972
1973fi
3fed1840
RR
1974
1975
1976 eval "$ac_cv_use_freetype"
1977 if test "$no_cache" != 1; then
1978 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
1979 fi
1980
1981 if test "$wxUSE_FREETYPE" = yes; then
698dcdb6 1982 echo "$ac_t""yes" 1>&6
3fed1840 1983 elif test "$wxUSE_FREETYPE" = no; then
698dcdb6 1984 echo "$ac_t""no" 1>&6
3fed1840 1985 elif test "$wxUSE_FREETYPE" = sys; then
698dcdb6 1986 echo "$ac_t""system version" 1>&6
3fed1840 1987 else
698dcdb6 1988 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 1989 fi
698dcdb6 1990
3fed1840 1991
698dcdb6 1992 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
8168de4c 1993echo "configure:1994: checking for --with-opengl" >&5
10f2d63a 1994 no_cache=0
698dcdb6 1995 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
1996if test "${with_opengl+set}" = set; then
1997 withval="$with_opengl"
698dcdb6 1998
10f2d63a 1999 if test "$withval" = yes; then
b12915c1 2000 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2001 else
b12915c1 2002 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2003 fi
698dcdb6 2004
10f2d63a 2005else
698dcdb6 2006
b12915c1 2007 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2008 if test "x$LINE" != x ; then
2009 eval "DEFAULT_$LINE"
2010 else
2011 no_cache=1
2012 fi
2013
b12915c1 2014 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2015
2016fi
10f2d63a
VZ
2017
2018
b12915c1 2019 eval "$ac_cv_use_opengl"
10f2d63a 2020 if test "$no_cache" != 1; then
b12915c1 2021 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2022 fi
2023
b12915c1 2024 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2025 echo "$ac_t""yes" 1>&6
10f2d63a 2026 else
698dcdb6 2027 echo "$ac_t""no" 1>&6
10f2d63a 2028 fi
698dcdb6 2029
10f2d63a 2030
b12915c1
VZ
2031fi
2032
1e487827 2033
698dcdb6 2034 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
8168de4c 2035echo "configure:2036: checking for --with-dmalloc" >&5
698dcdb6
VZ
2036 no_cache=0
2037 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2038if test "${with_dmalloc+set}" = set; then
2039 withval="$with_dmalloc"
698dcdb6 2040
c7a2bf27 2041 if test "$withval" = yes; then
b12915c1 2042 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2043 else
b12915c1 2044 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2045 fi
698dcdb6 2046
c7a2bf27 2047else
698dcdb6 2048
b12915c1 2049 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2050 if test "x$LINE" != x ; then
2051 eval "DEFAULT_$LINE"
2052 else
2053 no_cache=1
2054 fi
2055
b12915c1 2056 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2057
2058fi
c7a2bf27
RR
2059
2060
b12915c1 2061 eval "$ac_cv_use_dmalloc"
c7a2bf27 2062 if test "$no_cache" != 1; then
b12915c1 2063 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2064 fi
2065
b12915c1 2066 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2067 echo "$ac_t""yes" 1>&6
c7a2bf27 2068 else
698dcdb6 2069 echo "$ac_t""no" 1>&6
c7a2bf27 2070 fi
698dcdb6 2071
c7a2bf27 2072
698dcdb6 2073 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
8168de4c 2074echo "configure:2075: checking for --with-zlib" >&5
10f2d63a 2075 no_cache=0
698dcdb6 2076 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2077if test "${with_zlib+set}" = set; then
2078 withval="$with_zlib"
698dcdb6 2079
10f2d63a 2080 if test "$withval" = yes; then
b12915c1 2081 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2082 elif test "$withval" = no; then
b12915c1 2083 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2084 elif test "$withval" = sys; then
2085 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2086 else
698dcdb6 2087 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2088 fi
698dcdb6 2089
10f2d63a 2090else
698dcdb6 2091
b12915c1 2092 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2093 if test "x$LINE" != x ; then
2094 eval "DEFAULT_$LINE"
2095 else
2096 no_cache=1
2097 fi
2098
b12915c1 2099 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2100
2101fi
10f2d63a
VZ
2102
2103
b12915c1 2104 eval "$ac_cv_use_zlib"
10f2d63a 2105 if test "$no_cache" != 1; then
b12915c1 2106 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2107 fi
2108
b12915c1 2109 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2110 echo "$ac_t""yes" 1>&6
422107f9 2111 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2112 echo "$ac_t""no" 1>&6
422107f9 2113 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2114 echo "$ac_t""system version" 1>&6
422107f9 2115 else
698dcdb6 2116 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2117 fi
698dcdb6 2118
10f2d63a 2119
698dcdb6 2120 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
8168de4c 2121echo "configure:2122: checking for --with-odbc" >&5
10f2d63a 2122 no_cache=0
698dcdb6 2123 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2124if test "${with_odbc+set}" = set; then
2125 withval="$with_odbc"
698dcdb6 2126
10f2d63a
VZ
2127 if test "$withval" = yes; then
2128 ac_cv_use_odbc='wxUSE_ODBC=yes'
2129 else
2130 ac_cv_use_odbc='wxUSE_ODBC=no'
2131 fi
698dcdb6 2132
10f2d63a 2133else
698dcdb6 2134
10f2d63a
VZ
2135 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2136 if test "x$LINE" != x ; then
2137 eval "DEFAULT_$LINE"
2138 else
2139 no_cache=1
2140 fi
2141
2142 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2143
2144fi
10f2d63a
VZ
2145
2146
2147 eval "$ac_cv_use_odbc"
2148 if test "$no_cache" != 1; then
2149 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2150 fi
2151
2152 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2153 echo "$ac_t""yes" 1>&6
10f2d63a 2154 else
698dcdb6 2155 echo "$ac_t""no" 1>&6
10f2d63a 2156 fi
698dcdb6
VZ
2157
2158
10f2d63a 2159
698dcdb6
VZ
2160
2161
2162 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
8168de4c 2163echo "configure:2164: checking for --enable-shared" >&5
10f2d63a
VZ
2164 no_cache=0
2165 # Check whether --enable-shared or --disable-shared was given.
2166if test "${enable_shared+set}" = set; then
2167 enableval="$enable_shared"
698dcdb6 2168
10f2d63a
VZ
2169 if test "$enableval" = yes; then
2170 ac_cv_use_shared='wxUSE_SHARED=yes'
2171 else
2172 ac_cv_use_shared='wxUSE_SHARED=no'
2173 fi
698dcdb6 2174
10f2d63a 2175else
698dcdb6 2176
10f2d63a
VZ
2177 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2178 if test "x$LINE" != x ; then
2179 eval "DEFAULT_$LINE"
2180 else
2181 no_cache=1
2182 fi
2183
2184 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2185
2186fi
10f2d63a
VZ
2187
2188
2189 eval "$ac_cv_use_shared"
2190 if test "$no_cache" != 1; then
2191 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2192 fi
2193
2194 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2195 echo "$ac_t""yes" 1>&6
10f2d63a 2196 else
698dcdb6 2197 echo "$ac_t""no" 1>&6
10f2d63a 2198 fi
698dcdb6 2199
10f2d63a 2200
698dcdb6 2201 echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6
8168de4c 2202echo "configure:2203: checking for --enable-burnt_name" >&5
00cf1208
RR
2203 no_cache=0
2204 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2205if test "${enable_burnt_name+set}" = set; then
2206 enableval="$enable_burnt_name"
698dcdb6 2207
00cf1208
RR
2208 if test "$enableval" = yes; then
2209 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2210 else
2211 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2212 fi
698dcdb6 2213
00cf1208 2214else
698dcdb6 2215
00cf1208
RR
2216 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2217 if test "x$LINE" != x ; then
2218 eval "DEFAULT_$LINE"
2219 else
2220 no_cache=1
2221 fi
2222
2223 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
698dcdb6
VZ
2224
2225fi
00cf1208
RR
2226
2227
2228 eval "$ac_cv_use_burnt_name"
2229 if test "$no_cache" != 1; then
2230 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2231 fi
2232
2233 if test "$wxUSE_BURNT_NAME" = yes; then
698dcdb6 2234 echo "$ac_t""yes" 1>&6
00cf1208 2235 else
698dcdb6 2236 echo "$ac_t""no" 1>&6
00cf1208 2237 fi
698dcdb6 2238
00cf1208 2239
698dcdb6 2240 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
8168de4c 2241echo "configure:2242: checking for --enable-optimise" >&5
10f2d63a
VZ
2242 no_cache=0
2243 # Check whether --enable-optimise or --disable-optimise was given.
2244if test "${enable_optimise+set}" = set; then
2245 enableval="$enable_optimise"
698dcdb6 2246
10f2d63a
VZ
2247 if test "$enableval" = yes; then
2248 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2249 else
2250 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2251 fi
698dcdb6 2252
10f2d63a 2253else
698dcdb6 2254
10f2d63a
VZ
2255 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2256 if test "x$LINE" != x ; then
2257 eval "DEFAULT_$LINE"
2258 else
2259 no_cache=1
2260 fi
2261
2262 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2263
2264fi
10f2d63a
VZ
2265
2266
2267 eval "$ac_cv_use_optimise"
2268 if test "$no_cache" != 1; then
2269 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2270 fi
2271
2272 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2273 echo "$ac_t""yes" 1>&6
10f2d63a 2274 else
698dcdb6 2275 echo "$ac_t""no" 1>&6
10f2d63a 2276 fi
698dcdb6 2277
10f2d63a 2278
698dcdb6 2279 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
8168de4c 2280echo "configure:2281: checking for --enable-debug" >&5
10f2d63a
VZ
2281 no_cache=0
2282 # Check whether --enable-debug or --disable-debug was given.
2283if test "${enable_debug+set}" = set; then
2284 enableval="$enable_debug"
698dcdb6 2285
10f2d63a
VZ
2286 if test "$enableval" = yes; then
2287 ac_cv_use_debug='wxUSE_DEBUG=yes'
2288 else
2289 ac_cv_use_debug='wxUSE_DEBUG=no'
2290 fi
698dcdb6 2291
10f2d63a 2292else
698dcdb6 2293
10f2d63a
VZ
2294 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2295 if test "x$LINE" != x ; then
2296 eval "DEFAULT_$LINE"
2297 else
2298 no_cache=1
2299 fi
2300
2301 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2302
2303fi
10f2d63a
VZ
2304
2305
2306 eval "$ac_cv_use_debug"
2307 if test "$no_cache" != 1; then
2308 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2309 fi
2310
2311 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2312 echo "$ac_t""yes" 1>&6
10f2d63a 2313 else
698dcdb6 2314 echo "$ac_t""no" 1>&6
10f2d63a 2315 fi
698dcdb6 2316
10f2d63a
VZ
2317
2318if test "$wxUSE_DEBUG" = "yes"; then
2319 DEFAULT_wxUSE_DEBUG_FLAG=yes
2320 DEFAULT_wxUSE_DEBUG_INFO=yes
2321elif test "$wxUSE_DEBUG" = "no"; then
2322 DEFAULT_wxUSE_DEBUG_FLAG=no
2323 DEFAULT_wxUSE_DEBUG_INFO=no
2324fi
2325
698dcdb6
VZ
2326
2327 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
8168de4c 2328echo "configure:2329: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2329 no_cache=0
2330 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2331if test "${enable_debug_flag+set}" = set; then
2332 enableval="$enable_debug_flag"
698dcdb6 2333
10f2d63a
VZ
2334 if test "$enableval" = yes; then
2335 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2336 else
2337 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2338 fi
698dcdb6 2339
10f2d63a 2340else
698dcdb6 2341
10f2d63a
VZ
2342 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2343 if test "x$LINE" != x ; then
2344 eval "DEFAULT_$LINE"
2345 else
2346 no_cache=1
2347 fi
2348
2349 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2350
2351fi
10f2d63a
VZ
2352
2353
2354 eval "$ac_cv_use_debug_flag"
2355 if test "$no_cache" != 1; then
2356 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2357 fi
2358
2359 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2360 echo "$ac_t""yes" 1>&6
10f2d63a 2361 else
698dcdb6 2362 echo "$ac_t""no" 1>&6
10f2d63a 2363 fi
698dcdb6 2364
10f2d63a 2365
698dcdb6 2366 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
8168de4c 2367echo "configure:2368: checking for --enable-debug_info" >&5
10f2d63a
VZ
2368 no_cache=0
2369 # Check whether --enable-debug_info or --disable-debug_info was given.
2370if test "${enable_debug_info+set}" = set; then
2371 enableval="$enable_debug_info"
698dcdb6 2372
10f2d63a
VZ
2373 if test "$enableval" = yes; then
2374 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2375 else
2376 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2377 fi
698dcdb6 2378
10f2d63a 2379else
698dcdb6 2380
10f2d63a
VZ
2381 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2382 if test "x$LINE" != x ; then
2383 eval "DEFAULT_$LINE"
2384 else
2385 no_cache=1
2386 fi
2387
2388 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2389
2390fi
10f2d63a
VZ
2391
2392
2393 eval "$ac_cv_use_debug_info"
2394 if test "$no_cache" != 1; then
2395 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2396 fi
2397
2398 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2399 echo "$ac_t""yes" 1>&6
10f2d63a 2400 else
698dcdb6 2401 echo "$ac_t""no" 1>&6
10f2d63a 2402 fi
698dcdb6 2403
10f2d63a 2404
698dcdb6 2405 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
8168de4c 2406echo "configure:2407: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2407 no_cache=0
2408 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2409if test "${enable_debug_gdb+set}" = set; then
2410 enableval="$enable_debug_gdb"
698dcdb6 2411
10f2d63a
VZ
2412 if test "$enableval" = yes; then
2413 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2414 else
2415 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2416 fi
698dcdb6 2417
10f2d63a 2418else
698dcdb6 2419
10f2d63a
VZ
2420 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2421 if test "x$LINE" != x ; then
2422 eval "DEFAULT_$LINE"
2423 else
2424 no_cache=1
2425 fi
2426
2427 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2428
2429fi
10f2d63a
VZ
2430
2431
2432 eval "$ac_cv_use_debug_gdb"
2433 if test "$no_cache" != 1; then
2434 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2435 fi
2436
2437 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2438 echo "$ac_t""yes" 1>&6
10f2d63a 2439 else
698dcdb6 2440 echo "$ac_t""no" 1>&6
10f2d63a 2441 fi
698dcdb6 2442
10f2d63a 2443
698dcdb6 2444 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
8168de4c 2445echo "configure:2446: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2446 no_cache=0
2447 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2448if test "${enable_debug_cntxt+set}" = set; then
2449 enableval="$enable_debug_cntxt"
698dcdb6 2450
10f2d63a
VZ
2451 if test "$enableval" = yes; then
2452 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2453 else
2454 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2455 fi
698dcdb6 2456
10f2d63a 2457else
698dcdb6 2458
10f2d63a
VZ
2459 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2460 if test "x$LINE" != x ; then
2461 eval "DEFAULT_$LINE"
2462 else
2463 no_cache=1
2464 fi
2465
2466 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2467
2468fi
10f2d63a
VZ
2469
2470
2471 eval "$ac_cv_use_debug_cntxt"
2472 if test "$no_cache" != 1; then
2473 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2474 fi
2475
2476 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2477 echo "$ac_t""yes" 1>&6
10f2d63a 2478 else
698dcdb6 2479 echo "$ac_t""no" 1>&6
10f2d63a 2480 fi
698dcdb6 2481
10f2d63a 2482
698dcdb6 2483 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
8168de4c 2484echo "configure:2485: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2485 no_cache=0
2486 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2487if test "${enable_mem_tracing+set}" = set; then
2488 enableval="$enable_mem_tracing"
698dcdb6 2489
10f2d63a
VZ
2490 if test "$enableval" = yes; then
2491 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2492 else
2493 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2494 fi
698dcdb6 2495
10f2d63a 2496else
698dcdb6 2497
10f2d63a
VZ
2498 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2499 if test "x$LINE" != x ; then
2500 eval "DEFAULT_$LINE"
2501 else
2502 no_cache=1
2503 fi
2504
2505 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2506
2507fi
10f2d63a
VZ
2508
2509
2510 eval "$ac_cv_use_mem_tracing"
2511 if test "$no_cache" != 1; then
2512 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2513 fi
2514
2515 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2516 echo "$ac_t""yes" 1>&6
10f2d63a 2517 else
698dcdb6 2518 echo "$ac_t""no" 1>&6
10f2d63a 2519 fi
698dcdb6 2520
10f2d63a 2521
698dcdb6 2522 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
8168de4c 2523echo "configure:2524: checking for --enable-profile" >&5
10f2d63a
VZ
2524 no_cache=0
2525 # Check whether --enable-profile or --disable-profile was given.
2526if test "${enable_profile+set}" = set; then
2527 enableval="$enable_profile"
698dcdb6 2528
10f2d63a
VZ
2529 if test "$enableval" = yes; then
2530 ac_cv_use_profile='wxUSE_PROFILE=yes'
2531 else
2532 ac_cv_use_profile='wxUSE_PROFILE=no'
2533 fi
698dcdb6 2534
10f2d63a 2535else
698dcdb6 2536
10f2d63a
VZ
2537 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2538 if test "x$LINE" != x ; then
2539 eval "DEFAULT_$LINE"
2540 else
2541 no_cache=1
2542 fi
2543
2544 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2545
2546fi
10f2d63a
VZ
2547
2548
2549 eval "$ac_cv_use_profile"
2550 if test "$no_cache" != 1; then
2551 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2552 fi
2553
2554 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2555 echo "$ac_t""yes" 1>&6
10f2d63a 2556 else
698dcdb6 2557 echo "$ac_t""no" 1>&6
10f2d63a 2558 fi
698dcdb6 2559
10f2d63a 2560
698dcdb6 2561 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
8168de4c 2562echo "configure:2563: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2563 no_cache=0
2564 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2565if test "${enable_no_rtti+set}" = set; then
2566 enableval="$enable_no_rtti"
698dcdb6 2567
10f2d63a
VZ
2568 if test "$enableval" = yes; then
2569 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2570 else
2571 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2572 fi
698dcdb6 2573
10f2d63a 2574else
698dcdb6 2575
10f2d63a
VZ
2576 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2577 if test "x$LINE" != x ; then
2578 eval "DEFAULT_$LINE"
2579 else
2580 no_cache=1
2581 fi
2582
2583 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2584
2585fi
10f2d63a
VZ
2586
2587
2588 eval "$ac_cv_use_no_rtti"
2589 if test "$no_cache" != 1; then
2590 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2591 fi
2592
2593 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2594 echo "$ac_t""yes" 1>&6
10f2d63a 2595 else
698dcdb6 2596 echo "$ac_t""no" 1>&6
10f2d63a 2597 fi
698dcdb6 2598
10f2d63a 2599
698dcdb6 2600 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
8168de4c 2601echo "configure:2602: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2602 no_cache=0
2603 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2604if test "${enable_no_exceptions+set}" = set; then
2605 enableval="$enable_no_exceptions"
698dcdb6 2606
10f2d63a
VZ
2607 if test "$enableval" = yes; then
2608 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2609 else
2610 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2611 fi
698dcdb6 2612
10f2d63a 2613else
698dcdb6 2614
10f2d63a
VZ
2615 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2616 if test "x$LINE" != x ; then
2617 eval "DEFAULT_$LINE"
2618 else
2619 no_cache=1
2620 fi
2621
2622 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2623
2624fi
10f2d63a
VZ
2625
2626
2627 eval "$ac_cv_use_no_exceptions"
2628 if test "$no_cache" != 1; then
2629 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2630 fi
2631
2632 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2633 echo "$ac_t""yes" 1>&6
10f2d63a 2634 else
698dcdb6 2635 echo "$ac_t""no" 1>&6
10f2d63a 2636 fi
698dcdb6 2637
10f2d63a 2638
698dcdb6 2639 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
8168de4c 2640echo "configure:2641: checking for --enable-permissive" >&5
10f2d63a
VZ
2641 no_cache=0
2642 # Check whether --enable-permissive or --disable-permissive was given.
2643if test "${enable_permissive+set}" = set; then
2644 enableval="$enable_permissive"
698dcdb6 2645
10f2d63a
VZ
2646 if test "$enableval" = yes; then
2647 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2648 else
2649 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2650 fi
698dcdb6 2651
10f2d63a 2652else
698dcdb6 2653
10f2d63a
VZ
2654 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2655 if test "x$LINE" != x ; then
2656 eval "DEFAULT_$LINE"
2657 else
2658 no_cache=1
2659 fi
2660
2661 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2662
2663fi
10f2d63a
VZ
2664
2665
2666 eval "$ac_cv_use_permissive"
2667 if test "$no_cache" != 1; then
2668 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2669 fi
2670
2671 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2672 echo "$ac_t""yes" 1>&6
10f2d63a 2673 else
698dcdb6 2674 echo "$ac_t""no" 1>&6
10f2d63a 2675 fi
698dcdb6 2676
10f2d63a 2677
698dcdb6 2678 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
8168de4c 2679echo "configure:2680: checking for --enable-no_deps" >&5
10f2d63a
VZ
2680 no_cache=0
2681 # Check whether --enable-no_deps or --disable-no_deps was given.
2682if test "${enable_no_deps+set}" = set; then
2683 enableval="$enable_no_deps"
698dcdb6 2684
10f2d63a
VZ
2685 if test "$enableval" = yes; then
2686 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2687 else
2688 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2689 fi
698dcdb6 2690
10f2d63a 2691else
698dcdb6 2692
10f2d63a
VZ
2693 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2694 if test "x$LINE" != x ; then
2695 eval "DEFAULT_$LINE"
2696 else
2697 no_cache=1
2698 fi
2699
2700 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2701
2702fi
10f2d63a
VZ
2703
2704
2705 eval "$ac_cv_use_no_deps"
2706 if test "$no_cache" != 1; then
2707 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2708 fi
2709
2710 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2711 echo "$ac_t""yes" 1>&6
10f2d63a 2712 else
698dcdb6 2713 echo "$ac_t""no" 1>&6
10f2d63a 2714 fi
698dcdb6
VZ
2715
2716
10f2d63a 2717
698dcdb6
VZ
2718
2719 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
8168de4c 2720echo "configure:2721: checking for --enable-intl" >&5
10f2d63a
VZ
2721 no_cache=0
2722 # Check whether --enable-intl or --disable-intl was given.
2723if test "${enable_intl+set}" = set; then
2724 enableval="$enable_intl"
698dcdb6 2725
10f2d63a
VZ
2726 if test "$enableval" = yes; then
2727 ac_cv_use_intl='wxUSE_INTL=yes'
2728 else
2729 ac_cv_use_intl='wxUSE_INTL=no'
2730 fi
698dcdb6 2731
10f2d63a 2732else
698dcdb6 2733
10f2d63a
VZ
2734 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2735 if test "x$LINE" != x ; then
2736 eval "DEFAULT_$LINE"
2737 else
2738 no_cache=1
2739 fi
2740
2741 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
2742
2743fi
10f2d63a
VZ
2744
2745
2746 eval "$ac_cv_use_intl"
2747 if test "$no_cache" != 1; then
2748 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2749 fi
2750
2751 if test "$wxUSE_INTL" = yes; then
698dcdb6 2752 echo "$ac_t""yes" 1>&6
10f2d63a 2753 else
698dcdb6 2754 echo "$ac_t""no" 1>&6
10f2d63a 2755 fi
698dcdb6 2756
10f2d63a 2757
698dcdb6 2758 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
8168de4c 2759echo "configure:2760: checking for --enable-config" >&5
10f2d63a
VZ
2760 no_cache=0
2761 # Check whether --enable-config or --disable-config was given.
2762if test "${enable_config+set}" = set; then
2763 enableval="$enable_config"
698dcdb6 2764
10f2d63a
VZ
2765 if test "$enableval" = yes; then
2766 ac_cv_use_config='wxUSE_CONFIG=yes'
2767 else
2768 ac_cv_use_config='wxUSE_CONFIG=no'
2769 fi
698dcdb6 2770
10f2d63a 2771else
698dcdb6 2772
10f2d63a
VZ
2773 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2774 if test "x$LINE" != x ; then
2775 eval "DEFAULT_$LINE"
2776 else
2777 no_cache=1
2778 fi
2779
2780 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
2781
2782fi
10f2d63a
VZ
2783
2784
2785 eval "$ac_cv_use_config"
2786 if test "$no_cache" != 1; then
2787 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2788 fi
2789
2790 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 2791 echo "$ac_t""yes" 1>&6
10f2d63a 2792 else
698dcdb6 2793 echo "$ac_t""no" 1>&6
10f2d63a 2794 fi
698dcdb6
VZ
2795
2796
b12915c1 2797
698dcdb6 2798 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
8168de4c 2799echo "configure:2800: checking for --enable-sockets" >&5
10f2d63a
VZ
2800 no_cache=0
2801 # Check whether --enable-sockets or --disable-sockets was given.
2802if test "${enable_sockets+set}" = set; then
2803 enableval="$enable_sockets"
698dcdb6 2804
10f2d63a
VZ
2805 if test "$enableval" = yes; then
2806 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2807 else
2808 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2809 fi
698dcdb6 2810
10f2d63a 2811else
698dcdb6 2812
10f2d63a
VZ
2813 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2814 if test "x$LINE" != x ; then
2815 eval "DEFAULT_$LINE"
2816 else
2817 no_cache=1
2818 fi
2819
2820 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
2821
2822fi
10f2d63a
VZ
2823
2824
2825 eval "$ac_cv_use_sockets"
2826 if test "$no_cache" != 1; then
2827 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2828 fi
2829
2830 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 2831 echo "$ac_t""yes" 1>&6
10f2d63a 2832 else
698dcdb6 2833 echo "$ac_t""no" 1>&6
10f2d63a 2834 fi
698dcdb6 2835
b12915c1 2836
698dcdb6
VZ
2837
2838 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
8168de4c 2839echo "configure:2840: checking for --enable-ipc" >&5
10f2d63a 2840 no_cache=0
eb4efbdc
VZ
2841 # Check whether --enable-ipc or --disable-ipc was given.
2842if test "${enable_ipc+set}" = set; then
2843 enableval="$enable_ipc"
698dcdb6 2844
10f2d63a 2845 if test "$enableval" = yes; then
eb4efbdc 2846 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 2847 else
eb4efbdc 2848 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 2849 fi
698dcdb6 2850
10f2d63a 2851else
698dcdb6 2852
eb4efbdc 2853 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
2854 if test "x$LINE" != x ; then
2855 eval "DEFAULT_$LINE"
2856 else
2857 no_cache=1
2858 fi
2859
eb4efbdc 2860 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
2861
2862fi
10f2d63a
VZ
2863
2864
eb4efbdc 2865 eval "$ac_cv_use_ipc"
10f2d63a 2866 if test "$no_cache" != 1; then
eb4efbdc 2867 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2868 fi
2869
eb4efbdc 2870 if test "$wxUSE_IPC" = yes; then
698dcdb6 2871 echo "$ac_t""yes" 1>&6
10f2d63a 2872 else
698dcdb6 2873 echo "$ac_t""no" 1>&6
10f2d63a 2874 fi
698dcdb6
VZ
2875
2876
eb4efbdc 2877
1e6feb95 2878 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
8168de4c 2879echo "configure:2880: checking for --enable-cmdline" >&5
1e6feb95
VZ
2880 no_cache=0
2881 # Check whether --enable-cmdline or --disable-cmdline was given.
2882if test "${enable_cmdline+set}" = set; then
2883 enableval="$enable_cmdline"
2884
2885 if test "$enableval" = yes; then
2886 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
2887 else
2888 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
2889 fi
2890
2891else
2892
2893 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
2894 if test "x$LINE" != x ; then
2895 eval "DEFAULT_$LINE"
2896 else
2897 no_cache=1
2898 fi
2899
2900 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
2901
2902fi
2903
2904
2905 eval "$ac_cv_use_cmdline"
2906 if test "$no_cache" != 1; then
2907 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
2908 fi
2909
2910 if test "$wxUSE_CMDLINE_PARSER" = yes; then
2911 echo "$ac_t""yes" 1>&6
2912 else
2913 echo "$ac_t""no" 1>&6
2914 fi
2915
2916
2917 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
8168de4c 2918echo "configure:2919: checking for --enable-datetime" >&5
1e6feb95
VZ
2919 no_cache=0
2920 # Check whether --enable-datetime or --disable-datetime was given.
2921if test "${enable_datetime+set}" = set; then
2922 enableval="$enable_datetime"
2923
2924 if test "$enableval" = yes; then
2925 ac_cv_use_datetime='wxUSE_DATETIME=yes'
2926 else
2927 ac_cv_use_datetime='wxUSE_DATETIME=no'
2928 fi
2929
2930else
2931
2932 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
2933 if test "x$LINE" != x ; then
2934 eval "DEFAULT_$LINE"
2935 else
2936 no_cache=1
2937 fi
2938
2939 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
2940
2941fi
2942
2943
2944 eval "$ac_cv_use_datetime"
2945 if test "$no_cache" != 1; then
2946 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
2947 fi
2948
2949 if test "$wxUSE_DATETIME" = yes; then
2950 echo "$ac_t""yes" 1>&6
2951 else
2952 echo "$ac_t""no" 1>&6
2953 fi
2954
2955
2956 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
8168de4c 2957echo "configure:2958: checking for --enable-timedate" >&5
1e6feb95
VZ
2958 no_cache=0
2959 # Check whether --enable-timedate or --disable-timedate was given.
2960if test "${enable_timedate+set}" = set; then
2961 enableval="$enable_timedate"
2962
2963 if test "$enableval" = yes; then
2964 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2965 else
2966 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2967 fi
2968
2969else
2970
2971 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2972 if test "x$LINE" != x ; then
2973 eval "DEFAULT_$LINE"
2974 else
2975 no_cache=1
2976 fi
2977
2978 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2979
2980fi
2981
2982
2983 eval "$ac_cv_use_timedate"
2984 if test "$no_cache" != 1; then
2985 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2986 fi
2987
2988 if test "$wxUSE_TIMEDATE" = yes; then
2989 echo "$ac_t""yes" 1>&6
2990 else
2991 echo "$ac_t""no" 1>&6
2992 fi
2993
2994
2995 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
8168de4c 2996echo "configure:2997: checking for --enable-stopwatch" >&5
1e6feb95
VZ
2997 no_cache=0
2998 # Check whether --enable-stopwatch or --disable-stopwatch was given.
2999if test "${enable_stopwatch+set}" = set; then
3000 enableval="$enable_stopwatch"
3001
3002 if test "$enableval" = yes; then
3003 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3004 else
3005 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3006 fi
3007
3008else
3009
3010 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3011 if test "x$LINE" != x ; then
3012 eval "DEFAULT_$LINE"
3013 else
3014 no_cache=1
3015 fi
3016
3017 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3018
3019fi
3020
3021
3022 eval "$ac_cv_use_stopwatch"
3023 if test "$no_cache" != 1; then
3024 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3025 fi
3026
3027 if test "$wxUSE_STOPWATCH" = yes; then
3028 echo "$ac_t""yes" 1>&6
3029 else
3030 echo "$ac_t""no" 1>&6
3031 fi
3032
3033
698dcdb6 3034 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
8168de4c 3035echo "configure:3036: checking for --enable-dialupman" >&5
10f2d63a 3036 no_cache=0
eb4efbdc
VZ
3037 # Check whether --enable-dialupman or --disable-dialupman was given.
3038if test "${enable_dialupman+set}" = set; then
3039 enableval="$enable_dialupman"
698dcdb6 3040
10f2d63a 3041 if test "$enableval" = yes; then
eb4efbdc 3042 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3043 else
eb4efbdc 3044 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3045 fi
698dcdb6 3046
10f2d63a 3047else
698dcdb6 3048
eb4efbdc 3049 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3050 if test "x$LINE" != x ; then
3051 eval "DEFAULT_$LINE"
3052 else
3053 no_cache=1
3054 fi
3055
eb4efbdc 3056 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3057
3058fi
10f2d63a
VZ
3059
3060
eb4efbdc 3061 eval "$ac_cv_use_dialupman"
10f2d63a 3062 if test "$no_cache" != 1; then
eb4efbdc 3063 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3064 fi
3065
eb4efbdc 3066 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3067 echo "$ac_t""yes" 1>&6
10f2d63a 3068 else
698dcdb6 3069 echo "$ac_t""no" 1>&6
10f2d63a 3070 fi
698dcdb6 3071
10f2d63a 3072
698dcdb6 3073 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
8168de4c 3074echo "configure:3075: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3075 no_cache=0
3076 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3077if test "${enable_apple_ieee+set}" = set; then
3078 enableval="$enable_apple_ieee"
698dcdb6 3079
10f2d63a
VZ
3080 if test "$enableval" = yes; then
3081 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3082 else
3083 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3084 fi
698dcdb6 3085
10f2d63a 3086else
698dcdb6 3087
10f2d63a
VZ
3088 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3089 if test "x$LINE" != x ; then
3090 eval "DEFAULT_$LINE"
3091 else
3092 no_cache=1
3093 fi
3094
3095 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3096
3097fi
10f2d63a
VZ
3098
3099
3100 eval "$ac_cv_use_apple_ieee"
3101 if test "$no_cache" != 1; then
3102 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3103 fi
3104
3105 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3106 echo "$ac_t""yes" 1>&6
10f2d63a 3107 else
698dcdb6 3108 echo "$ac_t""no" 1>&6
10f2d63a 3109 fi
698dcdb6 3110
10f2d63a 3111
1e6feb95 3112 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
8168de4c 3113echo "configure:3114: checking for --enable-timer" >&5
10f2d63a 3114 no_cache=0
1e6feb95
VZ
3115 # Check whether --enable-timer or --disable-timer was given.
3116if test "${enable_timer+set}" = set; then
3117 enableval="$enable_timer"
698dcdb6 3118
10f2d63a 3119 if test "$enableval" = yes; then
1e6feb95 3120 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3121 else
1e6feb95 3122 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3123 fi
698dcdb6 3124
10f2d63a 3125else
698dcdb6 3126
1e6feb95 3127 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3128 if test "x$LINE" != x ; then
3129 eval "DEFAULT_$LINE"
3130 else
3131 no_cache=1
3132 fi
3133
1e6feb95 3134 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3135
3136fi
10f2d63a
VZ
3137
3138
1e6feb95 3139 eval "$ac_cv_use_timer"
10f2d63a 3140 if test "$no_cache" != 1; then
1e6feb95 3141 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3142 fi
3143
1e6feb95 3144 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3145 echo "$ac_t""yes" 1>&6
10f2d63a 3146 else
698dcdb6 3147 echo "$ac_t""no" 1>&6
10f2d63a 3148 fi
698dcdb6 3149
10f2d63a 3150
698dcdb6 3151 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
8168de4c 3152echo "configure:3153: checking for --enable-wave" >&5
10f2d63a
VZ
3153 no_cache=0
3154 # Check whether --enable-wave or --disable-wave was given.
3155if test "${enable_wave+set}" = set; then
3156 enableval="$enable_wave"
698dcdb6 3157
10f2d63a
VZ
3158 if test "$enableval" = yes; then
3159 ac_cv_use_wave='wxUSE_WAVE=yes'
3160 else
3161 ac_cv_use_wave='wxUSE_WAVE=no'
3162 fi
698dcdb6 3163
10f2d63a 3164else
698dcdb6 3165
10f2d63a
VZ
3166 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3167 if test "x$LINE" != x ; then
3168 eval "DEFAULT_$LINE"
3169 else
3170 no_cache=1
3171 fi
3172
3173 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3174
3175fi
10f2d63a
VZ
3176
3177
3178 eval "$ac_cv_use_wave"
3179 if test "$no_cache" != 1; then
3180 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3181 fi
3182
3183 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3184 echo "$ac_t""yes" 1>&6
10f2d63a 3185 else
698dcdb6 3186 echo "$ac_t""no" 1>&6
10f2d63a 3187 fi
698dcdb6 3188
10f2d63a 3189
698dcdb6 3190 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
8168de4c 3191echo "configure:3192: checking for --enable-fraction" >&5
10f2d63a
VZ
3192 no_cache=0
3193 # Check whether --enable-fraction or --disable-fraction was given.
3194if test "${enable_fraction+set}" = set; then
3195 enableval="$enable_fraction"
698dcdb6 3196
10f2d63a
VZ
3197 if test "$enableval" = yes; then
3198 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3199 else
3200 ac_cv_use_fraction='wxUSE_FRACTION=no'
3201 fi
698dcdb6 3202
10f2d63a 3203else
698dcdb6 3204
10f2d63a
VZ
3205 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3206 if test "x$LINE" != x ; then
3207 eval "DEFAULT_$LINE"
3208 else
3209 no_cache=1
3210 fi
3211
3212 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3213
3214fi
10f2d63a
VZ
3215
3216
3217 eval "$ac_cv_use_fraction"
3218 if test "$no_cache" != 1; then
3219 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3220 fi
3221
3222 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3223 echo "$ac_t""yes" 1>&6
10f2d63a 3224 else
698dcdb6 3225 echo "$ac_t""no" 1>&6
10f2d63a 3226 fi
698dcdb6 3227
10f2d63a 3228
698dcdb6 3229 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
8168de4c 3230echo "configure:3231: checking for --enable-dynlib" >&5
10f2d63a
VZ
3231 no_cache=0
3232 # Check whether --enable-dynlib or --disable-dynlib was given.
3233if test "${enable_dynlib+set}" = set; then
3234 enableval="$enable_dynlib"
698dcdb6 3235
10f2d63a
VZ
3236 if test "$enableval" = yes; then
3237 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3238 else
3239 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3240 fi
698dcdb6 3241
10f2d63a 3242else
698dcdb6 3243
10f2d63a
VZ
3244 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3245 if test "x$LINE" != x ; then
3246 eval "DEFAULT_$LINE"
3247 else
3248 no_cache=1
3249 fi
3250
3251 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3252
3253fi
10f2d63a
VZ
3254
3255
3256 eval "$ac_cv_use_dynlib"
3257 if test "$no_cache" != 1; then
3258 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3259 fi
3260
3261 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3262 echo "$ac_t""yes" 1>&6
10f2d63a 3263 else
698dcdb6 3264 echo "$ac_t""no" 1>&6
10f2d63a 3265 fi
698dcdb6 3266
10f2d63a 3267
698dcdb6 3268 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
8168de4c 3269echo "configure:3270: checking for --enable-longlong" >&5
10f2d63a
VZ
3270 no_cache=0
3271 # Check whether --enable-longlong or --disable-longlong was given.
3272if test "${enable_longlong+set}" = set; then
3273 enableval="$enable_longlong"
698dcdb6 3274
10f2d63a
VZ
3275 if test "$enableval" = yes; then
3276 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3277 else
3278 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3279 fi
698dcdb6 3280
10f2d63a 3281else
698dcdb6 3282
10f2d63a
VZ
3283 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3284 if test "x$LINE" != x ; then
3285 eval "DEFAULT_$LINE"
3286 else
3287 no_cache=1
3288 fi
3289
3290 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3291
3292fi
10f2d63a
VZ
3293
3294
3295 eval "$ac_cv_use_longlong"
3296 if test "$no_cache" != 1; then
3297 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3298 fi
3299
3300 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3301 echo "$ac_t""yes" 1>&6
10f2d63a 3302 else
698dcdb6 3303 echo "$ac_t""no" 1>&6
10f2d63a 3304 fi
698dcdb6 3305
10f2d63a 3306
698dcdb6 3307 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
8168de4c 3308echo "configure:3309: checking for --enable-geometry" >&5
e8f65ba6
RR
3309 no_cache=0
3310 # Check whether --enable-geometry or --disable-geometry was given.
3311if test "${enable_geometry+set}" = set; then
3312 enableval="$enable_geometry"
698dcdb6 3313
e8f65ba6
RR
3314 if test "$enableval" = yes; then
3315 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3316 else
3317 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3318 fi
698dcdb6 3319
e8f65ba6 3320else
698dcdb6 3321
e8f65ba6
RR
3322 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3323 if test "x$LINE" != x ; then
3324 eval "DEFAULT_$LINE"
3325 else
3326 no_cache=1
3327 fi
3328
3329 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3330
3331fi
e8f65ba6
RR
3332
3333
3334 eval "$ac_cv_use_geometry"
3335 if test "$no_cache" != 1; then
3336 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3337 fi
3338
3339 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3340 echo "$ac_t""yes" 1>&6
e8f65ba6 3341 else
698dcdb6 3342 echo "$ac_t""no" 1>&6
e8f65ba6 3343 fi
698dcdb6 3344
e8f65ba6 3345
698dcdb6 3346 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
8168de4c 3347echo "configure:3348: checking for --enable-log" >&5
10f2d63a
VZ
3348 no_cache=0
3349 # Check whether --enable-log or --disable-log was given.
3350if test "${enable_log+set}" = set; then
3351 enableval="$enable_log"
698dcdb6 3352
10f2d63a
VZ
3353 if test "$enableval" = yes; then
3354 ac_cv_use_log='wxUSE_LOG=yes'
3355 else
3356 ac_cv_use_log='wxUSE_LOG=no'
3357 fi
698dcdb6 3358
10f2d63a 3359else
698dcdb6 3360
10f2d63a
VZ
3361 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3362 if test "x$LINE" != x ; then
3363 eval "DEFAULT_$LINE"
3364 else
3365 no_cache=1
3366 fi
3367
3368 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3369
3370fi
10f2d63a
VZ
3371
3372
3373 eval "$ac_cv_use_log"
3374 if test "$no_cache" != 1; then
3375 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3376 fi
3377
3378 if test "$wxUSE_LOG" = yes; then
698dcdb6 3379 echo "$ac_t""yes" 1>&6
10f2d63a 3380 else
698dcdb6 3381 echo "$ac_t""no" 1>&6
10f2d63a 3382 fi
698dcdb6 3383
10f2d63a 3384
698dcdb6 3385 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
8168de4c 3386echo "configure:3387: checking for --enable-streams" >&5
10f2d63a
VZ
3387 no_cache=0
3388 # Check whether --enable-streams or --disable-streams was given.
3389if test "${enable_streams+set}" = set; then
3390 enableval="$enable_streams"
698dcdb6 3391
10f2d63a
VZ
3392 if test "$enableval" = yes; then
3393 ac_cv_use_streams='wxUSE_STREAMS=yes'
3394 else
3395 ac_cv_use_streams='wxUSE_STREAMS=no'
3396 fi
698dcdb6 3397
10f2d63a 3398else
698dcdb6 3399
10f2d63a
VZ
3400 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3401 if test "x$LINE" != x ; then
3402 eval "DEFAULT_$LINE"
3403 else
3404 no_cache=1
3405 fi
3406
3407 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3408
3409fi
10f2d63a
VZ
3410
3411
3412 eval "$ac_cv_use_streams"
3413 if test "$no_cache" != 1; then
3414 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3415 fi
3416
3417 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3418 echo "$ac_t""yes" 1>&6
10f2d63a 3419 else
698dcdb6 3420 echo "$ac_t""no" 1>&6
10f2d63a 3421 fi
698dcdb6 3422
10f2d63a 3423
698dcdb6 3424 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
8168de4c 3425echo "configure:3426: checking for --enable-file" >&5
10f2d63a
VZ
3426 no_cache=0
3427 # Check whether --enable-file or --disable-file was given.
3428if test "${enable_file+set}" = set; then
3429 enableval="$enable_file"
698dcdb6 3430
10f2d63a
VZ
3431 if test "$enableval" = yes; then
3432 ac_cv_use_file='wxUSE_FILE=yes'
3433 else
3434 ac_cv_use_file='wxUSE_FILE=no'
3435 fi
698dcdb6 3436
10f2d63a 3437else
698dcdb6 3438
10f2d63a
VZ
3439 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3440 if test "x$LINE" != x ; then
3441 eval "DEFAULT_$LINE"
3442 else
3443 no_cache=1
3444 fi
3445
3446 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3447
3448fi
10f2d63a
VZ
3449
3450
3451 eval "$ac_cv_use_file"
3452 if test "$no_cache" != 1; then
3453 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3454 fi
3455
3456 if test "$wxUSE_FILE" = yes; then
698dcdb6 3457 echo "$ac_t""yes" 1>&6
10f2d63a 3458 else
698dcdb6 3459 echo "$ac_t""no" 1>&6
10f2d63a 3460 fi
698dcdb6 3461
10f2d63a 3462
1e6feb95 3463 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
8168de4c 3464echo "configure:3465: checking for --enable-ffile" >&5
10f2d63a 3465 no_cache=0
1e6feb95
VZ
3466 # Check whether --enable-ffile or --disable-ffile was given.
3467if test "${enable_ffile+set}" = set; then
3468 enableval="$enable_ffile"
698dcdb6 3469
10f2d63a 3470 if test "$enableval" = yes; then
1e6feb95 3471 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3472 else
1e6feb95 3473 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3474 fi
698dcdb6 3475
10f2d63a 3476else
698dcdb6 3477
1e6feb95 3478 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3479 if test "x$LINE" != x ; then
3480 eval "DEFAULT_$LINE"
3481 else
3482 no_cache=1
3483 fi
3484
1e6feb95 3485 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3486
3487fi
10f2d63a
VZ
3488
3489
1e6feb95 3490 eval "$ac_cv_use_ffile"
10f2d63a 3491 if test "$no_cache" != 1; then
1e6feb95 3492 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3493 fi
3494
1e6feb95 3495 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3496 echo "$ac_t""yes" 1>&6
10f2d63a 3497 else
698dcdb6 3498 echo "$ac_t""no" 1>&6
10f2d63a 3499 fi
698dcdb6 3500
10f2d63a 3501
1e6feb95 3502 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
8168de4c 3503echo "configure:3504: checking for --enable-textfile" >&5
10f2d63a 3504 no_cache=0
1e6feb95
VZ
3505 # Check whether --enable-textfile or --disable-textfile was given.
3506if test "${enable_textfile+set}" = set; then
3507 enableval="$enable_textfile"
698dcdb6 3508
10f2d63a 3509 if test "$enableval" = yes; then
1e6feb95 3510 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 3511 else
1e6feb95 3512 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 3513 fi
698dcdb6 3514
10f2d63a 3515else
698dcdb6 3516
1e6feb95 3517 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3518 if test "x$LINE" != x ; then
3519 eval "DEFAULT_$LINE"
3520 else
3521 no_cache=1
3522 fi
3523
1e6feb95 3524 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
3525
3526fi
10f2d63a
VZ
3527
3528
1e6feb95 3529 eval "$ac_cv_use_textfile"
10f2d63a 3530 if test "$no_cache" != 1; then
1e6feb95 3531 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3532 fi
3533
1e6feb95 3534 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 3535 echo "$ac_t""yes" 1>&6
10f2d63a 3536 else
698dcdb6 3537 echo "$ac_t""no" 1>&6
10f2d63a 3538 fi
698dcdb6 3539
10f2d63a 3540
1e6feb95 3541 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
8168de4c 3542echo "configure:3543: checking for --enable-fontmap" >&5
10f2d63a 3543 no_cache=0
1e6feb95
VZ
3544 # Check whether --enable-fontmap or --disable-fontmap was given.
3545if test "${enable_fontmap+set}" = set; then
3546 enableval="$enable_fontmap"
698dcdb6 3547
10f2d63a 3548 if test "$enableval" = yes; then
1e6feb95 3549 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 3550 else
1e6feb95 3551 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 3552 fi
698dcdb6 3553
10f2d63a 3554else
698dcdb6 3555
1e6feb95 3556 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
3557 if test "x$LINE" != x ; then
3558 eval "DEFAULT_$LINE"
3559 else
3560 no_cache=1
3561 fi
3562
1e6feb95 3563 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
3564
3565fi
10f2d63a
VZ
3566
3567
1e6feb95 3568 eval "$ac_cv_use_fontmap"
10f2d63a 3569 if test "$no_cache" != 1; then
1e6feb95 3570 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3571 fi
3572
1e6feb95 3573 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 3574 echo "$ac_t""yes" 1>&6
10f2d63a 3575 else
698dcdb6 3576 echo "$ac_t""no" 1>&6
10f2d63a 3577 fi
698dcdb6 3578
10f2d63a 3579
1e6feb95 3580 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
8168de4c 3581echo "configure:3582: checking for --enable-unicode" >&5
10f2d63a 3582 no_cache=0
1e6feb95
VZ
3583 # Check whether --enable-unicode or --disable-unicode was given.
3584if test "${enable_unicode+set}" = set; then
3585 enableval="$enable_unicode"
3586
3587 if test "$enableval" = yes; then
3588 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3589 else
3590 ac_cv_use_unicode='wxUSE_UNICODE=no'
3591 fi
3592
3593else
3594
3595 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3596 if test "x$LINE" != x ; then
3597 eval "DEFAULT_$LINE"
3598 else
3599 no_cache=1
3600 fi
3601
3602 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3603
3604fi
3605
3606
3607 eval "$ac_cv_use_unicode"
3608 if test "$no_cache" != 1; then
3609 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3610 fi
3611
3612 if test "$wxUSE_UNICODE" = yes; then
3613 echo "$ac_t""yes" 1>&6
3614 else
3615 echo "$ac_t""no" 1>&6
3616 fi
3617
3618
3619 echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6
8168de4c 3620echo "configure:3621: checking for --enable-wcsrtombs" >&5
1e6feb95
VZ
3621 no_cache=0
3622 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3623if test "${enable_wcsrtombs+set}" = set; then
3624 enableval="$enable_wcsrtombs"
3625
3626 if test "$enableval" = yes; then
3627 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3628 else
3629 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3630 fi
3631
3632else
3633
3634 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3635 if test "x$LINE" != x ; then
3636 eval "DEFAULT_$LINE"
3637 else
3638 no_cache=1
3639 fi
3640
3641 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3642
3643fi
3644
3645
3646 eval "$ac_cv_use_wcsrtombs"
3647 if test "$no_cache" != 1; then
3648 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3649 fi
3650
3651 if test "$wxUSE_WCSRTOMBS" = yes; then
3652 echo "$ac_t""yes" 1>&6
3653 else
3654 echo "$ac_t""no" 1>&6
3655 fi
3656
3657
3658 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
8168de4c 3659echo "configure:3660: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
3660 no_cache=0
3661 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3662if test "${enable_wxprintfv+set}" = set; then
3663 enableval="$enable_wxprintfv"
3664
3665 if test "$enableval" = yes; then
10f2d63a
VZ
3666 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3667 else
3668 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3669 fi
698dcdb6 3670
10f2d63a 3671else
698dcdb6 3672
10f2d63a
VZ
3673 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3674 if test "x$LINE" != x ; then
3675 eval "DEFAULT_$LINE"
3676 else
3677 no_cache=1
3678 fi
3679
3680 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
3681
3682fi
10f2d63a
VZ
3683
3684
3685 eval "$ac_cv_use_wxprintfv"
3686 if test "$no_cache" != 1; then
3687 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3688 fi
3689
3690 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 3691 echo "$ac_t""yes" 1>&6
10f2d63a 3692 else
698dcdb6 3693 echo "$ac_t""no" 1>&6
10f2d63a 3694 fi
698dcdb6 3695
10f2d63a 3696
698dcdb6 3697 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
8168de4c 3698echo "configure:3699: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
3699 no_cache=0
3700 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3701if test "${enable_std_iostreams+set}" = set; then
3702 enableval="$enable_std_iostreams"
698dcdb6 3703
10f2d63a
VZ
3704 if test "$enableval" = yes; then
3705 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3706 else
3707 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3708 fi
698dcdb6 3709
10f2d63a 3710else
698dcdb6 3711
10f2d63a
VZ
3712 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3713 if test "x$LINE" != x ; then
3714 eval "DEFAULT_$LINE"
3715 else
3716 no_cache=1
3717 fi
3718
3719 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
3720
3721fi
10f2d63a
VZ
3722
3723
3724 eval "$ac_cv_use_std_iostreams"
3725 if test "$no_cache" != 1; then
3726 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3727 fi
3728
3729 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 3730 echo "$ac_t""yes" 1>&6
10f2d63a 3731 else
698dcdb6 3732 echo "$ac_t""no" 1>&6
10f2d63a 3733 fi
698dcdb6 3734
10f2d63a 3735
698dcdb6 3736 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
8168de4c 3737echo "configure:3738: checking for --enable-filesystem" >&5
24528b0c
VS
3738 no_cache=0
3739 # Check whether --enable-filesystem or --disable-filesystem was given.
3740if test "${enable_filesystem+set}" = set; then
3741 enableval="$enable_filesystem"
698dcdb6 3742
24528b0c
VS
3743 if test "$enableval" = yes; then
3744 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3745 else
3746 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3747 fi
698dcdb6 3748
24528b0c 3749else
698dcdb6 3750
24528b0c
VS
3751 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3752 if test "x$LINE" != x ; then
3753 eval "DEFAULT_$LINE"
3754 else
3755 no_cache=1
3756 fi
3757
3758 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
3759
3760fi
24528b0c
VS
3761
3762
3763 eval "$ac_cv_use_filesystem"
3764 if test "$no_cache" != 1; then
3765 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3766 fi
3767
3768 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 3769 echo "$ac_t""yes" 1>&6
24528b0c 3770 else
698dcdb6 3771 echo "$ac_t""no" 1>&6
24528b0c 3772 fi
698dcdb6 3773
24528b0c 3774
698dcdb6 3775 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
8168de4c 3776echo "configure:3777: checking for --enable-fs_inet" >&5
10f2d63a
VZ
3777 no_cache=0
3778 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3779if test "${enable_fs_inet+set}" = set; then
3780 enableval="$enable_fs_inet"
698dcdb6 3781
10f2d63a
VZ
3782 if test "$enableval" = yes; then
3783 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3784 else
3785 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3786 fi
698dcdb6 3787
10f2d63a 3788else
698dcdb6 3789
10f2d63a
VZ
3790 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3791 if test "x$LINE" != x ; then
3792 eval "DEFAULT_$LINE"
3793 else
3794 no_cache=1
3795 fi
3796
3797 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
3798
3799fi
10f2d63a
VZ
3800
3801
3802 eval "$ac_cv_use_fs_inet"
3803 if test "$no_cache" != 1; then
3804 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3805 fi
3806
3807 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 3808 echo "$ac_t""yes" 1>&6
10f2d63a 3809 else
698dcdb6 3810 echo "$ac_t""no" 1>&6
10f2d63a 3811 fi
698dcdb6 3812
10f2d63a 3813
698dcdb6 3814 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
8168de4c 3815echo "configure:3816: checking for --enable-fs_zip" >&5
10f2d63a
VZ
3816 no_cache=0
3817 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3818if test "${enable_fs_zip+set}" = set; then
3819 enableval="$enable_fs_zip"
698dcdb6 3820
10f2d63a
VZ
3821 if test "$enableval" = yes; then
3822 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3823 else
3824 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3825 fi
698dcdb6 3826
10f2d63a 3827else
698dcdb6 3828
10f2d63a
VZ
3829 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3830 if test "x$LINE" != x ; then
3831 eval "DEFAULT_$LINE"
3832 else
3833 no_cache=1
3834 fi
3835
3836 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
3837
3838fi
10f2d63a
VZ
3839
3840
3841 eval "$ac_cv_use_fs_zip"
3842 if test "$no_cache" != 1; then
3843 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3844 fi
3845
3846 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 3847 echo "$ac_t""yes" 1>&6
10f2d63a 3848 else
698dcdb6 3849 echo "$ac_t""no" 1>&6
10f2d63a 3850 fi
698dcdb6 3851
10f2d63a 3852
698dcdb6 3853 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
8168de4c 3854echo "configure:3855: checking for --enable-zipstream" >&5
10f2d63a
VZ
3855 no_cache=0
3856 # Check whether --enable-zipstream or --disable-zipstream was given.
3857if test "${enable_zipstream+set}" = set; then
3858 enableval="$enable_zipstream"
698dcdb6 3859
10f2d63a
VZ
3860 if test "$enableval" = yes; then
3861 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3862 else
3863 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3864 fi
698dcdb6 3865
10f2d63a 3866else
698dcdb6 3867
10f2d63a
VZ
3868 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3869 if test "x$LINE" != x ; then
3870 eval "DEFAULT_$LINE"
3871 else
3872 no_cache=1
3873 fi
3874
3875 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
3876
3877fi
10f2d63a
VZ
3878
3879
3880 eval "$ac_cv_use_zipstream"
3881 if test "$no_cache" != 1; then
3882 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3883 fi
3884
3885 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 3886 echo "$ac_t""yes" 1>&6
10f2d63a 3887 else
698dcdb6 3888 echo "$ac_t""no" 1>&6
10f2d63a 3889 fi
698dcdb6 3890
10f2d63a 3891
698dcdb6
VZ
3892
3893 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
8168de4c 3894echo "configure:3895: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
3895 no_cache=0
3896 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
3897if test "${enable_catch_segvs+set}" = set; then
3898 enableval="$enable_catch_segvs"
698dcdb6 3899
eb4efbdc
VZ
3900 if test "$enableval" = yes; then
3901 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
3902 else
3903 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
3904 fi
698dcdb6 3905
eb4efbdc 3906else
698dcdb6 3907
eb4efbdc
VZ
3908 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
3909 if test "x$LINE" != x ; then
3910 eval "DEFAULT_$LINE"
3911 else
3912 no_cache=1
3913 fi
3914
3915 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
3916
3917fi
eb4efbdc
VZ
3918
3919
3920 eval "$ac_cv_use_catch_segvs"
3921 if test "$no_cache" != 1; then
3922 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
3923 fi
3924
3925 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 3926 echo "$ac_t""yes" 1>&6
eb4efbdc 3927 else
698dcdb6 3928 echo "$ac_t""no" 1>&6
eb4efbdc 3929 fi
698dcdb6 3930
eb4efbdc 3931
698dcdb6 3932 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
8168de4c 3933echo "configure:3934: checking for --enable-snglinst" >&5
4f3c5f06
VZ
3934 no_cache=0
3935 # Check whether --enable-snglinst or --disable-snglinst was given.
3936if test "${enable_snglinst+set}" = set; then
3937 enableval="$enable_snglinst"
698dcdb6 3938
4f3c5f06
VZ
3939 if test "$enableval" = yes; then
3940 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
3941 else
3942 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
3943 fi
698dcdb6 3944
4f3c5f06 3945else
698dcdb6 3946
4f3c5f06
VZ
3947 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
3948 if test "x$LINE" != x ; then
3949 eval "DEFAULT_$LINE"
3950 else
3951 no_cache=1
3952 fi
3953
3954 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
3955
3956fi
4f3c5f06
VZ
3957
3958
3959 eval "$ac_cv_use_snglinst"
3960 if test "$no_cache" != 1; then
3961 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
3962 fi
3963
3964 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 3965 echo "$ac_t""yes" 1>&6
4f3c5f06 3966 else
698dcdb6 3967 echo "$ac_t""no" 1>&6
4f3c5f06 3968 fi
698dcdb6
VZ
3969
3970
eb4efbdc 3971
1e6feb95 3972 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
8168de4c 3973echo "configure:3974: checking for --enable-mimetype" >&5
1e6feb95
VZ
3974 no_cache=0
3975 # Check whether --enable-mimetype or --disable-mimetype was given.
3976if test "${enable_mimetype+set}" = set; then
3977 enableval="$enable_mimetype"
3978
3979 if test "$enableval" = yes; then
3980 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
3981 else
3982 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
3983 fi
3984
3985else
3986
3987 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
3988 if test "x$LINE" != x ; then
3989 eval "DEFAULT_$LINE"
3990 else
3991 no_cache=1
3992 fi
3993
3994 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
3995
3996fi
3997
3998
3999 eval "$ac_cv_use_mimetype"
4000 if test "$no_cache" != 1; then
4001 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4002 fi
4003
4004 if test "$wxUSE_MIMETYPE" = yes; then
4005 echo "$ac_t""yes" 1>&6
4006 else
4007 echo "$ac_t""no" 1>&6
4008 fi
4009
4010
4011
698dcdb6
VZ
4012
4013 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
8168de4c 4014echo "configure:4015: checking for --enable-threads" >&5
10f2d63a
VZ
4015 no_cache=0
4016 # Check whether --enable-threads or --disable-threads was given.
4017if test "${enable_threads+set}" = set; then
4018 enableval="$enable_threads"
698dcdb6 4019
10f2d63a
VZ
4020 if test "$enableval" = yes; then
4021 ac_cv_use_threads='wxUSE_THREADS=yes'
4022 else
4023 ac_cv_use_threads='wxUSE_THREADS=no'
4024 fi
698dcdb6 4025
10f2d63a 4026else
698dcdb6 4027
10f2d63a
VZ
4028 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4029 if test "x$LINE" != x ; then
4030 eval "DEFAULT_$LINE"
4031 else
4032 no_cache=1
4033 fi
4034
4035 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4036
4037fi
10f2d63a
VZ
4038
4039
4040 eval "$ac_cv_use_threads"
4041 if test "$no_cache" != 1; then
4042 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4043 fi
4044
4045 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4046 echo "$ac_t""yes" 1>&6
10f2d63a 4047 else
698dcdb6 4048 echo "$ac_t""no" 1>&6
10f2d63a 4049 fi
698dcdb6 4050
10f2d63a 4051
698dcdb6 4052 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
8168de4c 4053echo "configure:4054: checking for --enable-serial" >&5
10f2d63a
VZ
4054 no_cache=0
4055 # Check whether --enable-serial or --disable-serial was given.
4056if test "${enable_serial+set}" = set; then
4057 enableval="$enable_serial"
698dcdb6 4058
10f2d63a
VZ
4059 if test "$enableval" = yes; then
4060 ac_cv_use_serial='wxUSE_SERIAL=yes'
4061 else
4062 ac_cv_use_serial='wxUSE_SERIAL=no'
4063 fi
698dcdb6 4064
10f2d63a 4065else
698dcdb6 4066
10f2d63a
VZ
4067 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4068 if test "x$LINE" != x ; then
4069 eval "DEFAULT_$LINE"
4070 else
4071 no_cache=1
4072 fi
4073
4074 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
698dcdb6
VZ
4075
4076fi
10f2d63a
VZ
4077
4078
4079 eval "$ac_cv_use_serial"
4080 if test "$no_cache" != 1; then
4081 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4082 fi
4083
4084 if test "$wxUSE_SERIAL" = yes; then
698dcdb6 4085 echo "$ac_t""yes" 1>&6
10f2d63a 4086 else
698dcdb6 4087 echo "$ac_t""no" 1>&6
10f2d63a 4088 fi
698dcdb6 4089
10f2d63a 4090
b12915c1
VZ
4091if test "$wxUSE_GUI" = "yes"; then
4092
698dcdb6
VZ
4093
4094
4095 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
8168de4c 4096echo "configure:4097: checking for --enable-docview" >&5
10f2d63a
VZ
4097 no_cache=0
4098 # Check whether --enable-docview or --disable-docview was given.
4099if test "${enable_docview+set}" = set; then
4100 enableval="$enable_docview"
698dcdb6 4101
10f2d63a
VZ
4102 if test "$enableval" = yes; then
4103 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4104 else
4105 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4106 fi
698dcdb6 4107
10f2d63a 4108else
698dcdb6 4109
10f2d63a
VZ
4110 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${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_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4118
4119fi
10f2d63a
VZ
4120
4121
4122 eval "$ac_cv_use_docview"
4123 if test "$no_cache" != 1; then
4124 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4125 fi
4126
4127 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4128 echo "$ac_t""yes" 1>&6
10f2d63a 4129 else
698dcdb6 4130 echo "$ac_t""no" 1>&6
10f2d63a 4131 fi
698dcdb6 4132
10f2d63a 4133
698dcdb6 4134 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
8168de4c 4135echo "configure:4136: checking for --enable-help" >&5
10f2d63a
VZ
4136 no_cache=0
4137 # Check whether --enable-help or --disable-help was given.
4138if test "${enable_help+set}" = set; then
4139 enableval="$enable_help"
698dcdb6 4140
10f2d63a
VZ
4141 if test "$enableval" = yes; then
4142 ac_cv_use_help='wxUSE_HELP=yes'
4143 else
4144 ac_cv_use_help='wxUSE_HELP=no'
4145 fi
698dcdb6 4146
10f2d63a 4147else
698dcdb6 4148
10f2d63a
VZ
4149 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4150 if test "x$LINE" != x ; then
4151 eval "DEFAULT_$LINE"
4152 else
4153 no_cache=1
4154 fi
4155
4156 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4157
4158fi
10f2d63a
VZ
4159
4160
4161 eval "$ac_cv_use_help"
4162 if test "$no_cache" != 1; then
4163 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4164 fi
4165
4166 if test "$wxUSE_HELP" = yes; then
698dcdb6 4167 echo "$ac_t""yes" 1>&6
10f2d63a 4168 else
698dcdb6 4169 echo "$ac_t""no" 1>&6
10f2d63a 4170 fi
698dcdb6 4171
10f2d63a 4172
698dcdb6 4173 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
8168de4c 4174echo "configure:4175: checking for --enable-constraints" >&5
10f2d63a
VZ
4175 no_cache=0
4176 # Check whether --enable-constraints or --disable-constraints was given.
4177if test "${enable_constraints+set}" = set; then
4178 enableval="$enable_constraints"
698dcdb6 4179
10f2d63a
VZ
4180 if test "$enableval" = yes; then
4181 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4182 else
4183 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4184 fi
698dcdb6 4185
10f2d63a 4186else
698dcdb6 4187
10f2d63a
VZ
4188 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4189 if test "x$LINE" != x ; then
4190 eval "DEFAULT_$LINE"
4191 else
4192 no_cache=1
4193 fi
4194
4195 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
4196
4197fi
10f2d63a
VZ
4198
4199
4200 eval "$ac_cv_use_constraints"
4201 if test "$no_cache" != 1; then
4202 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4203 fi
4204
4205 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 4206 echo "$ac_t""yes" 1>&6
10f2d63a 4207 else
698dcdb6 4208 echo "$ac_t""no" 1>&6
10f2d63a 4209 fi
698dcdb6 4210
10f2d63a 4211
698dcdb6 4212 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
8168de4c 4213echo "configure:4214: checking for --enable-printarch" >&5
10f2d63a
VZ
4214 no_cache=0
4215 # Check whether --enable-printarch or --disable-printarch was given.
4216if test "${enable_printarch+set}" = set; then
4217 enableval="$enable_printarch"
698dcdb6 4218
10f2d63a
VZ
4219 if test "$enableval" = yes; then
4220 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4221 else
4222 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4223 fi
698dcdb6 4224
10f2d63a 4225else
698dcdb6 4226
10f2d63a
VZ
4227 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4228 if test "x$LINE" != x ; then
4229 eval "DEFAULT_$LINE"
4230 else
4231 no_cache=1
4232 fi
4233
4234 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
4235
4236fi
10f2d63a
VZ
4237
4238
4239 eval "$ac_cv_use_printarch"
4240 if test "$no_cache" != 1; then
4241 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4242 fi
4243
4244 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 4245 echo "$ac_t""yes" 1>&6
10f2d63a 4246 else
698dcdb6 4247 echo "$ac_t""no" 1>&6
10f2d63a 4248 fi
698dcdb6 4249
10f2d63a 4250
698dcdb6 4251 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
8168de4c 4252echo "configure:4253: checking for --enable-mdi" >&5
10f2d63a
VZ
4253 no_cache=0
4254 # Check whether --enable-mdi or --disable-mdi was given.
4255if test "${enable_mdi+set}" = set; then
4256 enableval="$enable_mdi"
698dcdb6 4257
10f2d63a
VZ
4258 if test "$enableval" = yes; then
4259 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4260 else
4261 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4262 fi
698dcdb6 4263
10f2d63a 4264else
698dcdb6 4265
10f2d63a
VZ
4266 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4267 if test "x$LINE" != x ; then
4268 eval "DEFAULT_$LINE"
4269 else
4270 no_cache=1
4271 fi
4272
4273 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
4274
4275fi
10f2d63a
VZ
4276
4277
4278 eval "$ac_cv_use_mdi"
4279 if test "$no_cache" != 1; then
4280 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4281 fi
4282
4283 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 4284 echo "$ac_t""yes" 1>&6
10f2d63a 4285 else
698dcdb6 4286 echo "$ac_t""no" 1>&6
10f2d63a 4287 fi
698dcdb6
VZ
4288
4289
1e6feb95 4290 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
8168de4c 4291echo "configure:4292: checking for --enable-loggui" >&5
1e6feb95
VZ
4292 no_cache=0
4293 # Check whether --enable-loggui or --disable-loggui was given.
4294if test "${enable_loggui+set}" = set; then
4295 enableval="$enable_loggui"
4296
4297 if test "$enableval" = yes; then
4298 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4299 else
4300 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4301 fi
4302
4303else
4304
4305 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4306 if test "x$LINE" != x ; then
4307 eval "DEFAULT_$LINE"
4308 else
4309 no_cache=1
4310 fi
4311
4312 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4313
4314fi
4315
4316
4317 eval "$ac_cv_use_loggui"
4318 if test "$no_cache" != 1; then
4319 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4320 fi
4321
4322 if test "$wxUSE_LOGGUI" = yes; then
4323 echo "$ac_t""yes" 1>&6
4324 else
4325 echo "$ac_t""no" 1>&6
4326 fi
4327
4328
4329 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
8168de4c 4330echo "configure:4331: checking for --enable-logwin" >&5
1e6feb95
VZ
4331 no_cache=0
4332 # Check whether --enable-logwin or --disable-logwin was given.
4333if test "${enable_logwin+set}" = set; then
4334 enableval="$enable_logwin"
4335
4336 if test "$enableval" = yes; then
4337 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4338 else
4339 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4340 fi
4341
4342else
4343
4344 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4345 if test "x$LINE" != x ; then
4346 eval "DEFAULT_$LINE"
4347 else
4348 no_cache=1
4349 fi
4350
4351 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4352
4353fi
4354
4355
4356 eval "$ac_cv_use_logwin"
4357 if test "$no_cache" != 1; then
4358 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4359 fi
4360
4361 if test "$wxUSE_LOGWINDOW" = yes; then
4362 echo "$ac_t""yes" 1>&6
4363 else
4364 echo "$ac_t""no" 1>&6
4365 fi
4366
4367
10f2d63a 4368
698dcdb6 4369 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
8168de4c 4370echo "configure:4371: checking for --enable-postscript" >&5
10f2d63a
VZ
4371 no_cache=0
4372 # Check whether --enable-postscript or --disable-postscript was given.
4373if test "${enable_postscript+set}" = set; then
4374 enableval="$enable_postscript"
698dcdb6 4375
10f2d63a
VZ
4376 if test "$enableval" = yes; then
4377 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4378 else
4379 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4380 fi
698dcdb6 4381
10f2d63a 4382else
698dcdb6 4383
10f2d63a
VZ
4384 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4385 if test "x$LINE" != x ; then
4386 eval "DEFAULT_$LINE"
4387 else
4388 no_cache=1
4389 fi
4390
4391 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
4392
4393fi
10f2d63a
VZ
4394
4395
4396 eval "$ac_cv_use_postscript"
4397 if test "$no_cache" != 1; then
4398 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4399 fi
4400
4401 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 4402 echo "$ac_t""yes" 1>&6
10f2d63a 4403 else
698dcdb6 4404 echo "$ac_t""no" 1>&6
10f2d63a 4405 fi
698dcdb6
VZ
4406
4407
4408
10f2d63a 4409
1e6feb95 4410
698dcdb6 4411 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
8168de4c 4412echo "configure:4413: checking for --enable-prologio" >&5
10f2d63a
VZ
4413 no_cache=0
4414 # Check whether --enable-prologio or --disable-prologio was given.
4415if test "${enable_prologio+set}" = set; then
4416 enableval="$enable_prologio"
698dcdb6 4417
10f2d63a
VZ
4418 if test "$enableval" = yes; then
4419 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4420 else
4421 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4422 fi
698dcdb6 4423
10f2d63a 4424else
698dcdb6 4425
10f2d63a
VZ
4426 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4427 if test "x$LINE" != x ; then
4428 eval "DEFAULT_$LINE"
4429 else
4430 no_cache=1
4431 fi
4432
4433 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
4434
4435fi
10f2d63a
VZ
4436
4437
4438 eval "$ac_cv_use_prologio"
4439 if test "$no_cache" != 1; then
4440 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4441 fi
4442
4443 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 4444 echo "$ac_t""yes" 1>&6
10f2d63a 4445 else
698dcdb6 4446 echo "$ac_t""no" 1>&6
10f2d63a 4447 fi
698dcdb6 4448
10f2d63a 4449
698dcdb6 4450 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
8168de4c 4451echo "configure:4452: checking for --enable-resources" >&5
10f2d63a
VZ
4452 no_cache=0
4453 # Check whether --enable-resources or --disable-resources was given.
4454if test "${enable_resources+set}" = set; then
4455 enableval="$enable_resources"
698dcdb6 4456
10f2d63a
VZ
4457 if test "$enableval" = yes; then
4458 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4459 else
4460 ac_cv_use_resources='wxUSE_RESOURCES=no'
4461 fi
698dcdb6 4462
10f2d63a 4463else
698dcdb6 4464
10f2d63a
VZ
4465 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4466 if test "x$LINE" != x ; then
4467 eval "DEFAULT_$LINE"
4468 else
4469 no_cache=1
4470 fi
4471
4472 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
4473
4474fi
10f2d63a
VZ
4475
4476
4477 eval "$ac_cv_use_resources"
4478 if test "$no_cache" != 1; then
4479 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4480 fi
4481
4482 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 4483 echo "$ac_t""yes" 1>&6
10f2d63a 4484 else
698dcdb6 4485 echo "$ac_t""no" 1>&6
10f2d63a 4486 fi
698dcdb6 4487
10f2d63a 4488
698dcdb6
VZ
4489
4490 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
8168de4c 4491echo "configure:4492: checking for --enable-xresources" >&5
10f2d63a
VZ
4492 no_cache=0
4493 # Check whether --enable-xresources or --disable-xresources was given.
4494if test "${enable_xresources+set}" = set; then
4495 enableval="$enable_xresources"
698dcdb6 4496
10f2d63a
VZ
4497 if test "$enableval" = yes; then
4498 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4499 else
4500 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4501 fi
698dcdb6 4502
10f2d63a 4503else
698dcdb6 4504
10f2d63a
VZ
4505 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4506 if test "x$LINE" != x ; then
4507 eval "DEFAULT_$LINE"
4508 else
4509 no_cache=1
4510 fi
4511
4512 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
4513
4514fi
10f2d63a
VZ
4515
4516
4517 eval "$ac_cv_use_xresources"
4518 if test "$no_cache" != 1; then
4519 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4520 fi
4521
4522 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 4523 echo "$ac_t""yes" 1>&6
10f2d63a 4524 else
698dcdb6 4525 echo "$ac_t""no" 1>&6
10f2d63a 4526 fi
698dcdb6
VZ
4527
4528
10f2d63a 4529
698dcdb6
VZ
4530
4531 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
8168de4c 4532echo "configure:4533: checking for --enable-clipboard" >&5
10f2d63a
VZ
4533 no_cache=0
4534 # Check whether --enable-clipboard or --disable-clipboard was given.
4535if test "${enable_clipboard+set}" = set; then
4536 enableval="$enable_clipboard"
698dcdb6 4537
10f2d63a
VZ
4538 if test "$enableval" = yes; then
4539 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4540 else
4541 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4542 fi
698dcdb6 4543
10f2d63a 4544else
698dcdb6 4545
10f2d63a
VZ
4546 LINE=`grep "wxUSE_CLIPBOARD" ${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_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
4554
4555fi
10f2d63a
VZ
4556
4557
4558 eval "$ac_cv_use_clipboard"
4559 if test "$no_cache" != 1; then
4560 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4561 fi
4562
4563 if test "$wxUSE_CLIPBOARD" = 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-dnd""... $ac_c" 1>&6
8168de4c 4571echo "configure:4572: checking for --enable-dnd" >&5
10f2d63a
VZ
4572 no_cache=0
4573 # Check whether --enable-dnd or --disable-dnd was given.
4574if test "${enable_dnd+set}" = set; then
4575 enableval="$enable_dnd"
698dcdb6 4576
10f2d63a
VZ
4577 if test "$enableval" = yes; then
4578 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4579 else
4580 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4581 fi
698dcdb6 4582
10f2d63a 4583else
698dcdb6 4584
10f2d63a
VZ
4585 LINE=`grep "wxUSE_DRAG_AND_DROP" ${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_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
4593
4594fi
10f2d63a
VZ
4595
4596
4597 eval "$ac_cv_use_dnd"
4598 if test "$no_cache" != 1; then
4599 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4600 fi
4601
4602 if test "$wxUSE_DRAG_AND_DROP" = 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 4607
10f2d63a 4608
698dcdb6 4609 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
8168de4c 4610echo "configure:4611: checking for --enable-metafile" >&5
b64f0a5f
RL
4611 no_cache=0
4612 # Check whether --enable-metafile or --disable-metafile was given.
4613if test "${enable_metafile+set}" = set; then
4614 enableval="$enable_metafile"
698dcdb6 4615
b64f0a5f
RL
4616 if test "$enableval" = yes; then
4617 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4618 else
4619 ac_cv_use_metafile='wxUSE_METAFILE=no'
4620 fi
698dcdb6 4621
b64f0a5f 4622else
698dcdb6 4623
b64f0a5f
RL
4624 LINE=`grep "wxUSE_METAFILE" ${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_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
4632
4633fi
b64f0a5f
RL
4634
4635
4636 eval "$ac_cv_use_metafile"
4637 if test "$no_cache" != 1; then
4638 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4639 fi
4640
4641 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 4642 echo "$ac_t""yes" 1>&6
b64f0a5f 4643 else
698dcdb6 4644 echo "$ac_t""no" 1>&6
b64f0a5f 4645 fi
698dcdb6
VZ
4646
4647
10f2d63a 4648
698dcdb6 4649 echo $ac_n "checking for --enable-wxtree""... $ac_c" 1>&6
8168de4c 4650echo "configure:4651: checking for --enable-wxtree" >&5
10f2d63a
VZ
4651 no_cache=0
4652 # Check whether --enable-wxtree or --disable-wxtree was given.
4653if test "${enable_wxtree+set}" = set; then
4654 enableval="$enable_wxtree"
698dcdb6 4655
10f2d63a
VZ
4656 if test "$enableval" = yes; then
4657 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
4658 else
4659 ac_cv_use_wxtree='wxUSE_WXTREE=no'
4660 fi
698dcdb6 4661
10f2d63a 4662else
698dcdb6 4663
10f2d63a
VZ
4664 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
4665 if test "x$LINE" != x ; then
4666 eval "DEFAULT_$LINE"
4667 else
4668 no_cache=1
4669 fi
4670
4671 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
698dcdb6
VZ
4672
4673fi
10f2d63a
VZ
4674
4675
4676 eval "$ac_cv_use_wxtree"
4677 if test "$no_cache" != 1; then
4678 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
4679 fi
4680
4681 if test "$wxUSE_WXTREE" = yes; then
698dcdb6 4682 echo "$ac_t""yes" 1>&6
10f2d63a 4683 else
698dcdb6 4684 echo "$ac_t""no" 1>&6
10f2d63a 4685 fi
698dcdb6 4686
10f2d63a 4687
698dcdb6
VZ
4688
4689
4690 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
8168de4c 4691echo "configure:4692: checking for --enable-controls" >&5
10f2d63a
VZ
4692 no_cache=0
4693 # Check whether --enable-controls or --disable-controls was given.
4694if test "${enable_controls+set}" = set; then
4695 enableval="$enable_controls"
698dcdb6 4696
10f2d63a
VZ
4697 if test "$enableval" = yes; then
4698 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4699 else
4700 ac_cv_use_controls='wxUSE_CONTROLS=no'
4701 fi
698dcdb6 4702
10f2d63a 4703else
698dcdb6 4704
10f2d63a
VZ
4705 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4706 if test "x$LINE" != x ; then
4707 eval "DEFAULT_$LINE"
4708 else
4709 no_cache=1
4710 fi
4711
4712 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
4713
4714fi
10f2d63a
VZ
4715
4716
4717 eval "$ac_cv_use_controls"
4718 if test "$no_cache" != 1; then
4719 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
4720 fi
4721
4722 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 4723 echo "$ac_t""yes" 1>&6
10f2d63a 4724 else
698dcdb6 4725 echo "$ac_t""no" 1>&6
10f2d63a 4726 fi
698dcdb6 4727
10f2d63a
VZ
4728
4729if test "$wxUSE_CONTROLS" = "yes"; then
4730 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
4731 DEFAULT_wxUSE_BMPBUTTON=yes
4732 DEFAULT_wxUSE_BUTTON=yes
4733 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
4734 DEFAULT_wxUSE_CARET=yes
4735 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
4736 DEFAULT_wxUSE_CHECKBOX=yes
4737 DEFAULT_wxUSE_CHECKLISTBOX=yes
4738 DEFAULT_wxUSE_CHOICE=yes
4739 DEFAULT_wxUSE_GAUGE=yes
4740 DEFAULT_wxUSE_GRID=yes
cc977e5f 4741 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
4742 DEFAULT_wxUSE_IMAGLIST=yes
4743 DEFAULT_wxUSE_LISTBOX=yes
4744 DEFAULT_wxUSE_LISTCTRL=yes
4745 DEFAULT_wxUSE_NOTEBOOK=yes
4746 DEFAULT_wxUSE_RADIOBOX=yes
4747 DEFAULT_wxUSE_RADIOBTN=yes
4748 DEFAULT_wxUSE_SASH=yes
4749 DEFAULT_wxUSE_SCROLLBAR=yes
4750 DEFAULT_wxUSE_SLIDER=yes
4751 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 4752 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
4753 DEFAULT_wxUSE_SPLITTER=yes
4754 DEFAULT_wxUSE_STATBMP=yes
4755 DEFAULT_wxUSE_STATBOX=yes
4756 DEFAULT_wxUSE_STATLINE=yes
4757 DEFAULT_wxUSE_STATUSBAR=yes
4758 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 4759 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 4760 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
4761 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4762 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
4763 DEFAULT_wxUSE_TOOLTIPS=yes
4764 DEFAULT_wxUSE_TREECTRL=yes
4765elif test "$wxUSE_CONTROLS" = "no"; then
4766 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
4767 DEFAULT_wxUSE_BMPBUTTON=no
4768 DEFAULT_wxUSE_BUTTON=no
4769 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
4770 DEFAULT_wxUSE_CARET=no
4771 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
4772 DEFAULT_wxUSE_CHECKBOX=no
4773 DEFAULT_wxUSE_CHECKLISTBOX=no
4774 DEFAULT_wxUSE_CHOICE=no
4775 DEFAULT_wxUSE_GAUGE=no
4776 DEFAULT_wxUSE_GRID=no
4777 DEFAULT_wxUSE_NEW_GRID=no
4778 DEFAULT_wxUSE_IMAGLIST=no
4779 DEFAULT_wxUSE_LISTBOX=no
4780 DEFAULT_wxUSE_LISTCTRL=no
4781 DEFAULT_wxUSE_NOTEBOOK=no
4782 DEFAULT_wxUSE_RADIOBOX=no
4783 DEFAULT_wxUSE_RADIOBTN=no
4784 DEFAULT_wxUSE_SASH=no
4785 DEFAULT_wxUSE_SCROLLBAR=no
4786 DEFAULT_wxUSE_SLIDER=no
4787 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 4788 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
4789 DEFAULT_wxUSE_SPLITTER=no
4790 DEFAULT_wxUSE_STATBMP=no
4791 DEFAULT_wxUSE_STATBOX=no
4792 DEFAULT_wxUSE_STATLINE=no
4793 DEFAULT_wxUSE_STATUSBAR=no
4794 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 4795 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 4796 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
4797 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4798 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
4799 DEFAULT_wxUSE_TOOLTIPS=no
4800 DEFAULT_wxUSE_TREECTRL=no
4801fi
4802
698dcdb6
VZ
4803
4804 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
8168de4c 4805echo "configure:4806: checking for --enable-accel" >&5
10f2d63a
VZ
4806 no_cache=0
4807 # Check whether --enable-accel or --disable-accel was given.
4808if test "${enable_accel+set}" = set; then
4809 enableval="$enable_accel"
698dcdb6 4810
10f2d63a
VZ
4811 if test "$enableval" = yes; then
4812 ac_cv_use_accel='wxUSE_ACCEL=yes'
4813 else
4814 ac_cv_use_accel='wxUSE_ACCEL=no'
4815 fi
698dcdb6 4816
10f2d63a 4817else
698dcdb6 4818
10f2d63a
VZ
4819 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4820 if test "x$LINE" != x ; then
4821 eval "DEFAULT_$LINE"
4822 else
4823 no_cache=1
4824 fi
4825
4826 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
4827
4828fi
10f2d63a
VZ
4829
4830
4831 eval "$ac_cv_use_accel"
4832 if test "$no_cache" != 1; then
4833 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4834 fi
4835
4836 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 4837 echo "$ac_t""yes" 1>&6
10f2d63a 4838 else
698dcdb6 4839 echo "$ac_t""no" 1>&6
10f2d63a 4840 fi
698dcdb6 4841
10f2d63a 4842
1e6feb95 4843 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
8168de4c 4844echo "configure:4845: checking for --enable-button" >&5
10f2d63a 4845 no_cache=0
1e6feb95
VZ
4846 # Check whether --enable-button or --disable-button was given.
4847if test "${enable_button+set}" = set; then
4848 enableval="$enable_button"
698dcdb6 4849
10f2d63a 4850 if test "$enableval" = yes; then
1e6feb95 4851 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 4852 else
1e6feb95 4853 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 4854 fi
698dcdb6 4855
10f2d63a 4856else
698dcdb6 4857
1e6feb95 4858 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
4859 if test "x$LINE" != x ; then
4860 eval "DEFAULT_$LINE"
4861 else
4862 no_cache=1
4863 fi
4864
1e6feb95 4865 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
4866
4867fi
10f2d63a
VZ
4868
4869
1e6feb95 4870 eval "$ac_cv_use_button"
10f2d63a 4871 if test "$no_cache" != 1; then
1e6feb95 4872 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4873 fi
4874
1e6feb95 4875 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 4876 echo "$ac_t""yes" 1>&6
10f2d63a 4877 else
698dcdb6 4878 echo "$ac_t""no" 1>&6
10f2d63a 4879 fi
698dcdb6 4880
10f2d63a 4881
698dcdb6 4882 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
8168de4c 4883echo "configure:4884: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
4884 no_cache=0
4885 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4886if test "${enable_bmpbutton+set}" = set; then
4887 enableval="$enable_bmpbutton"
698dcdb6 4888
10f2d63a
VZ
4889 if test "$enableval" = yes; then
4890 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4891 else
4892 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4893 fi
698dcdb6 4894
10f2d63a 4895else
698dcdb6 4896
10f2d63a
VZ
4897 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4898 if test "x$LINE" != x ; then
4899 eval "DEFAULT_$LINE"
4900 else
4901 no_cache=1
4902 fi
4903
4904 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
4905
4906fi
10f2d63a
VZ
4907
4908
4909 eval "$ac_cv_use_bmpbutton"
4910 if test "$no_cache" != 1; then
4911 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4912 fi
4913
4914 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 4915 echo "$ac_t""yes" 1>&6
10f2d63a 4916 else
698dcdb6 4917 echo "$ac_t""no" 1>&6
10f2d63a 4918 fi
698dcdb6 4919
10f2d63a 4920
1e6feb95 4921 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
8168de4c 4922echo "configure:4923: checking for --enable-calendar" >&5
1e6feb95
VZ
4923 no_cache=0
4924 # Check whether --enable-calendar or --disable-calendar was given.
4925if test "${enable_calendar+set}" = set; then
4926 enableval="$enable_calendar"
4927
4928 if test "$enableval" = yes; then
4929 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
4930 else
4931 ac_cv_use_calendar='wxUSE_CALCTRL=no'
4932 fi
4933
4934else
4935
4936 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
4937 if test "x$LINE" != x ; then
4938 eval "DEFAULT_$LINE"
4939 else
4940 no_cache=1
4941 fi
4942
4943 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
4944
4945fi
4946
4947
4948 eval "$ac_cv_use_calendar"
4949 if test "$no_cache" != 1; then
4950 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
4951 fi
4952
4953 if test "$wxUSE_CALCTRL" = yes; then
4954 echo "$ac_t""yes" 1>&6
4955 else
4956 echo "$ac_t""no" 1>&6
4957 fi
4958
4959
4960 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
8168de4c 4961echo "configure:4962: checking for --enable-caret" >&5
1e6feb95
VZ
4962 no_cache=0
4963 # Check whether --enable-caret or --disable-caret was given.
4964if test "${enable_caret+set}" = set; then
4965 enableval="$enable_caret"
4966
4967 if test "$enableval" = yes; then
4968 ac_cv_use_caret='wxUSE_CARET=yes'
4969 else
4970 ac_cv_use_caret='wxUSE_CARET=no'
4971 fi
4972
4973else
4974
4975 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4976 if test "x$LINE" != x ; then
4977 eval "DEFAULT_$LINE"
4978 else
4979 no_cache=1
4980 fi
4981
4982 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4983
4984fi
4985
4986
4987 eval "$ac_cv_use_caret"
4988 if test "$no_cache" != 1; then
4989 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4990 fi
4991
4992 if test "$wxUSE_CARET" = yes; then
4993 echo "$ac_t""yes" 1>&6
4994 else
4995 echo "$ac_t""no" 1>&6
4996 fi
4997
4998
698dcdb6 4999 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
8168de4c 5000echo "configure:5001: checking for --enable-checkbox" >&5
10f2d63a
VZ
5001 no_cache=0
5002 # Check whether --enable-checkbox or --disable-checkbox was given.
5003if test "${enable_checkbox+set}" = set; then
5004 enableval="$enable_checkbox"
698dcdb6 5005
10f2d63a
VZ
5006 if test "$enableval" = yes; then
5007 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5008 else
5009 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5010 fi
698dcdb6 5011
10f2d63a 5012else
698dcdb6 5013
10f2d63a
VZ
5014 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5015 if test "x$LINE" != x ; then
5016 eval "DEFAULT_$LINE"
5017 else
5018 no_cache=1
5019 fi
5020
5021 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5022
5023fi
10f2d63a
VZ
5024
5025
5026 eval "$ac_cv_use_checkbox"
5027 if test "$no_cache" != 1; then
5028 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5029 fi
5030
5031 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5032 echo "$ac_t""yes" 1>&6
10f2d63a 5033 else
698dcdb6 5034 echo "$ac_t""no" 1>&6
10f2d63a 5035 fi
698dcdb6 5036
10f2d63a 5037
698dcdb6 5038 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
8168de4c 5039echo "configure:5040: checking for --enable-checklst" >&5
10f2d63a
VZ
5040 no_cache=0
5041 # Check whether --enable-checklst or --disable-checklst was given.
5042if test "${enable_checklst+set}" = set; then
5043 enableval="$enable_checklst"
698dcdb6 5044
10f2d63a
VZ
5045 if test "$enableval" = yes; then
5046 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5047 else
5048 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5049 fi
698dcdb6 5050
10f2d63a 5051else
698dcdb6 5052
10f2d63a
VZ
5053 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5054 if test "x$LINE" != x ; then
5055 eval "DEFAULT_$LINE"
5056 else
5057 no_cache=1
5058 fi
5059
5060 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5061
5062fi
10f2d63a
VZ
5063
5064
5065 eval "$ac_cv_use_checklst"
5066 if test "$no_cache" != 1; then
5067 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5068 fi
5069
5070 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5071 echo "$ac_t""yes" 1>&6
10f2d63a 5072 else
698dcdb6 5073 echo "$ac_t""no" 1>&6
10f2d63a 5074 fi
698dcdb6 5075
10f2d63a 5076
698dcdb6 5077 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
8168de4c 5078echo "configure:5079: checking for --enable-choice" >&5
10f2d63a
VZ
5079 no_cache=0
5080 # Check whether --enable-choice or --disable-choice was given.
5081if test "${enable_choice+set}" = set; then
5082 enableval="$enable_choice"
698dcdb6 5083
10f2d63a
VZ
5084 if test "$enableval" = yes; then
5085 ac_cv_use_choice='wxUSE_CHOICE=yes'
5086 else
5087 ac_cv_use_choice='wxUSE_CHOICE=no'
5088 fi
698dcdb6 5089
10f2d63a 5090else
698dcdb6 5091
10f2d63a
VZ
5092 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5093 if test "x$LINE" != x ; then
5094 eval "DEFAULT_$LINE"
5095 else
5096 no_cache=1
5097 fi
5098
5099 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5100
5101fi
10f2d63a
VZ
5102
5103
5104 eval "$ac_cv_use_choice"
5105 if test "$no_cache" != 1; then
5106 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5107 fi
5108
5109 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5110 echo "$ac_t""yes" 1>&6
10f2d63a 5111 else
698dcdb6 5112 echo "$ac_t""no" 1>&6
10f2d63a 5113 fi
698dcdb6 5114
10f2d63a 5115
698dcdb6 5116 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
8168de4c 5117echo "configure:5118: checking for --enable-combobox" >&5
10f2d63a
VZ
5118 no_cache=0
5119 # Check whether --enable-combobox or --disable-combobox was given.
5120if test "${enable_combobox+set}" = set; then
5121 enableval="$enable_combobox"
698dcdb6 5122
10f2d63a
VZ
5123 if test "$enableval" = yes; then
5124 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5125 else
5126 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5127 fi
698dcdb6 5128
10f2d63a 5129else
698dcdb6 5130
10f2d63a
VZ
5131 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5132 if test "x$LINE" != x ; then
5133 eval "DEFAULT_$LINE"
5134 else
5135 no_cache=1
5136 fi
5137
5138 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
5139
5140fi
10f2d63a
VZ
5141
5142
5143 eval "$ac_cv_use_combobox"
5144 if test "$no_cache" != 1; then
5145 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5146 fi
5147
5148 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 5149 echo "$ac_t""yes" 1>&6
10f2d63a 5150 else
698dcdb6 5151 echo "$ac_t""no" 1>&6
10f2d63a 5152 fi
698dcdb6 5153
10f2d63a 5154
698dcdb6 5155 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
8168de4c 5156echo "configure:5157: checking for --enable-gauge" >&5
10f2d63a
VZ
5157 no_cache=0
5158 # Check whether --enable-gauge or --disable-gauge was given.
5159if test "${enable_gauge+set}" = set; then
5160 enableval="$enable_gauge"
698dcdb6 5161
10f2d63a
VZ
5162 if test "$enableval" = yes; then
5163 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5164 else
5165 ac_cv_use_gauge='wxUSE_GAUGE=no'
5166 fi
698dcdb6 5167
10f2d63a 5168else
698dcdb6 5169
10f2d63a
VZ
5170 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5171 if test "x$LINE" != x ; then
5172 eval "DEFAULT_$LINE"
5173 else
5174 no_cache=1
5175 fi
5176
5177 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
5178
5179fi
10f2d63a
VZ
5180
5181
5182 eval "$ac_cv_use_gauge"
5183 if test "$no_cache" != 1; then
5184 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5185 fi
5186
5187 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 5188 echo "$ac_t""yes" 1>&6
10f2d63a 5189 else
698dcdb6 5190 echo "$ac_t""no" 1>&6
10f2d63a 5191 fi
698dcdb6 5192
10f2d63a 5193
698dcdb6 5194 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
8168de4c 5195echo "configure:5196: checking for --enable-grid" >&5
10f2d63a
VZ
5196 no_cache=0
5197 # Check whether --enable-grid or --disable-grid was given.
5198if test "${enable_grid+set}" = set; then
5199 enableval="$enable_grid"
698dcdb6 5200
10f2d63a
VZ
5201 if test "$enableval" = yes; then
5202 ac_cv_use_grid='wxUSE_GRID=yes'
5203 else
5204 ac_cv_use_grid='wxUSE_GRID=no'
5205 fi
698dcdb6 5206
10f2d63a 5207else
698dcdb6 5208
10f2d63a
VZ
5209 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5210 if test "x$LINE" != x ; then
5211 eval "DEFAULT_$LINE"
5212 else
5213 no_cache=1
5214 fi
5215
5216 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
5217
5218fi
10f2d63a
VZ
5219
5220
5221 eval "$ac_cv_use_grid"
5222 if test "$no_cache" != 1; then
5223 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5224 fi
5225
5226 if test "$wxUSE_GRID" = yes; then
698dcdb6 5227 echo "$ac_t""yes" 1>&6
10f2d63a 5228 else
698dcdb6 5229 echo "$ac_t""no" 1>&6
10f2d63a 5230 fi
698dcdb6 5231
10f2d63a 5232
698dcdb6 5233 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
8168de4c 5234echo "configure:5235: checking for --enable-newgrid" >&5
10f2d63a
VZ
5235 no_cache=0
5236 # Check whether --enable-newgrid or --disable-newgrid was given.
5237if test "${enable_newgrid+set}" = set; then
5238 enableval="$enable_newgrid"
698dcdb6 5239
10f2d63a
VZ
5240 if test "$enableval" = yes; then
5241 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5242 else
5243 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5244 fi
698dcdb6 5245
10f2d63a 5246else
698dcdb6 5247
10f2d63a
VZ
5248 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5249 if test "x$LINE" != x ; then
5250 eval "DEFAULT_$LINE"
5251 else
5252 no_cache=1
5253 fi
5254
5255 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
5256
5257fi
10f2d63a
VZ
5258
5259
5260 eval "$ac_cv_use_newgrid"
5261 if test "$no_cache" != 1; then
5262 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5263 fi
5264
5265 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 5266 echo "$ac_t""yes" 1>&6
10f2d63a 5267 else
698dcdb6 5268 echo "$ac_t""no" 1>&6
10f2d63a 5269 fi
698dcdb6 5270
10f2d63a 5271
698dcdb6 5272 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
8168de4c 5273echo "configure:5274: checking for --enable-imaglist" >&5
10f2d63a
VZ
5274 no_cache=0
5275 # Check whether --enable-imaglist or --disable-imaglist was given.
5276if test "${enable_imaglist+set}" = set; then
5277 enableval="$enable_imaglist"
698dcdb6 5278
10f2d63a
VZ
5279 if test "$enableval" = yes; then
5280 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5281 else
5282 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5283 fi
698dcdb6 5284
10f2d63a 5285else
698dcdb6 5286
10f2d63a
VZ
5287 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5288 if test "x$LINE" != x ; then
5289 eval "DEFAULT_$LINE"
5290 else
5291 no_cache=1
5292 fi
5293
5294 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
5295
5296fi
10f2d63a
VZ
5297
5298
5299 eval "$ac_cv_use_imaglist"
5300 if test "$no_cache" != 1; then
5301 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5302 fi
5303
5304 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 5305 echo "$ac_t""yes" 1>&6
10f2d63a 5306 else
698dcdb6 5307 echo "$ac_t""no" 1>&6
10f2d63a 5308 fi
698dcdb6 5309
10f2d63a 5310
698dcdb6 5311 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
8168de4c 5312echo "configure:5313: checking for --enable-listbox" >&5
10f2d63a
VZ
5313 no_cache=0
5314 # Check whether --enable-listbox or --disable-listbox was given.
5315if test "${enable_listbox+set}" = set; then
5316 enableval="$enable_listbox"
698dcdb6 5317
10f2d63a
VZ
5318 if test "$enableval" = yes; then
5319 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5320 else
5321 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5322 fi
698dcdb6 5323
10f2d63a 5324else
698dcdb6 5325
10f2d63a
VZ
5326 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5327 if test "x$LINE" != x ; then
5328 eval "DEFAULT_$LINE"
5329 else
5330 no_cache=1
5331 fi
5332
5333 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
5334
5335fi
10f2d63a
VZ
5336
5337
5338 eval "$ac_cv_use_listbox"
5339 if test "$no_cache" != 1; then
5340 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5341 fi
5342
5343 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 5344 echo "$ac_t""yes" 1>&6
10f2d63a 5345 else
698dcdb6 5346 echo "$ac_t""no" 1>&6
10f2d63a 5347 fi
698dcdb6 5348
10f2d63a 5349
698dcdb6 5350 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
8168de4c 5351echo "configure:5352: checking for --enable-listctrl" >&5
10f2d63a
VZ
5352 no_cache=0
5353 # Check whether --enable-listctrl or --disable-listctrl was given.
5354if test "${enable_listctrl+set}" = set; then
5355 enableval="$enable_listctrl"
698dcdb6 5356
10f2d63a
VZ
5357 if test "$enableval" = yes; then
5358 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5359 else
5360 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5361 fi
698dcdb6 5362
10f2d63a 5363else
698dcdb6 5364
10f2d63a
VZ
5365 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5366 if test "x$LINE" != x ; then
5367 eval "DEFAULT_$LINE"
5368 else
5369 no_cache=1
5370 fi
5371
5372 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
5373
5374fi
10f2d63a
VZ
5375
5376
5377 eval "$ac_cv_use_listctrl"
5378 if test "$no_cache" != 1; then
5379 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5380 fi
5381
5382 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 5383 echo "$ac_t""yes" 1>&6
10f2d63a 5384 else
698dcdb6 5385 echo "$ac_t""no" 1>&6
10f2d63a 5386 fi
698dcdb6 5387
10f2d63a 5388
698dcdb6 5389 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
8168de4c 5390echo "configure:5391: checking for --enable-notebook" >&5
10f2d63a
VZ
5391 no_cache=0
5392 # Check whether --enable-notebook or --disable-notebook was given.
5393if test "${enable_notebook+set}" = set; then
5394 enableval="$enable_notebook"
698dcdb6 5395
10f2d63a
VZ
5396 if test "$enableval" = yes; then
5397 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5398 else
5399 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5400 fi
698dcdb6 5401
10f2d63a 5402else
698dcdb6 5403
10f2d63a
VZ
5404 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5405 if test "x$LINE" != x ; then
5406 eval "DEFAULT_$LINE"
5407 else
5408 no_cache=1
5409 fi
5410
5411 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
5412
5413fi
10f2d63a
VZ
5414
5415
5416 eval "$ac_cv_use_notebook"
5417 if test "$no_cache" != 1; then
5418 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5419 fi
5420
5421 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 5422 echo "$ac_t""yes" 1>&6
10f2d63a 5423 else
698dcdb6 5424 echo "$ac_t""no" 1>&6
10f2d63a 5425 fi
698dcdb6 5426
10f2d63a 5427
698dcdb6 5428 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
8168de4c 5429echo "configure:5430: checking for --enable-radiobox" >&5
10f2d63a
VZ
5430 no_cache=0
5431 # Check whether --enable-radiobox or --disable-radiobox was given.
5432if test "${enable_radiobox+set}" = set; then
5433 enableval="$enable_radiobox"
698dcdb6 5434
10f2d63a
VZ
5435 if test "$enableval" = yes; then
5436 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5437 else
5438 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5439 fi
698dcdb6 5440
10f2d63a 5441else
698dcdb6 5442
10f2d63a
VZ
5443 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5444 if test "x$LINE" != x ; then
5445 eval "DEFAULT_$LINE"
5446 else
5447 no_cache=1
5448 fi
5449
5450 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
5451
5452fi
10f2d63a
VZ
5453
5454
5455 eval "$ac_cv_use_radiobox"
5456 if test "$no_cache" != 1; then
5457 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5458 fi
5459
5460 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 5461 echo "$ac_t""yes" 1>&6
10f2d63a 5462 else
698dcdb6 5463 echo "$ac_t""no" 1>&6
10f2d63a 5464 fi
698dcdb6 5465
10f2d63a 5466
698dcdb6 5467 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
8168de4c 5468echo "configure:5469: checking for --enable-radiobtn" >&5
10f2d63a
VZ
5469 no_cache=0
5470 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5471if test "${enable_radiobtn+set}" = set; then
5472 enableval="$enable_radiobtn"
698dcdb6 5473
10f2d63a
VZ
5474 if test "$enableval" = yes; then
5475 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5476 else
5477 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5478 fi
698dcdb6 5479
10f2d63a 5480else
698dcdb6 5481
10f2d63a
VZ
5482 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5483 if test "x$LINE" != x ; then
5484 eval "DEFAULT_$LINE"
5485 else
5486 no_cache=1
5487 fi
5488
5489 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
5490
5491fi
10f2d63a
VZ
5492
5493
5494 eval "$ac_cv_use_radiobtn"
5495 if test "$no_cache" != 1; then
5496 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5497 fi
5498
5499 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 5500 echo "$ac_t""yes" 1>&6
10f2d63a 5501 else
698dcdb6 5502 echo "$ac_t""no" 1>&6
10f2d63a 5503 fi
698dcdb6 5504
10f2d63a 5505
698dcdb6 5506 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
8168de4c 5507echo "configure:5508: checking for --enable-sash" >&5
10f2d63a
VZ
5508 no_cache=0
5509 # Check whether --enable-sash or --disable-sash was given.
5510if test "${enable_sash+set}" = set; then
5511 enableval="$enable_sash"
698dcdb6 5512
10f2d63a
VZ
5513 if test "$enableval" = yes; then
5514 ac_cv_use_sash='wxUSE_SASH=yes'
5515 else
5516 ac_cv_use_sash='wxUSE_SASH=no'
5517 fi
698dcdb6 5518
10f2d63a 5519else
698dcdb6 5520
10f2d63a
VZ
5521 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5522 if test "x$LINE" != x ; then
5523 eval "DEFAULT_$LINE"
5524 else
5525 no_cache=1
5526 fi
5527
5528 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
5529
5530fi
10f2d63a
VZ
5531
5532
5533 eval "$ac_cv_use_sash"
5534 if test "$no_cache" != 1; then
5535 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5536 fi
5537
5538 if test "$wxUSE_SASH" = yes; then
698dcdb6 5539 echo "$ac_t""yes" 1>&6
10f2d63a 5540 else
698dcdb6 5541 echo "$ac_t""no" 1>&6
10f2d63a 5542 fi
698dcdb6 5543
10f2d63a 5544
698dcdb6 5545 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
8168de4c 5546echo "configure:5547: checking for --enable-scrollbar" >&5
10f2d63a
VZ
5547 no_cache=0
5548 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5549if test "${enable_scrollbar+set}" = set; then
5550 enableval="$enable_scrollbar"
698dcdb6 5551
10f2d63a
VZ
5552 if test "$enableval" = yes; then
5553 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5554 else
5555 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5556 fi
698dcdb6 5557
10f2d63a 5558else
698dcdb6 5559
10f2d63a
VZ
5560 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5561 if test "x$LINE" != x ; then
5562 eval "DEFAULT_$LINE"
5563 else
5564 no_cache=1
5565 fi
5566
5567 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
5568
5569fi
10f2d63a
VZ
5570
5571
5572 eval "$ac_cv_use_scrollbar"
5573 if test "$no_cache" != 1; then
5574 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5575 fi
5576
5577 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 5578 echo "$ac_t""yes" 1>&6
10f2d63a 5579 else
698dcdb6 5580 echo "$ac_t""no" 1>&6
10f2d63a 5581 fi
698dcdb6 5582
10f2d63a 5583
698dcdb6 5584 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
8168de4c 5585echo "configure:5586: checking for --enable-slider" >&5
10f2d63a
VZ
5586 no_cache=0
5587 # Check whether --enable-slider or --disable-slider was given.
5588if test "${enable_slider+set}" = set; then
5589 enableval="$enable_slider"
698dcdb6 5590
10f2d63a
VZ
5591 if test "$enableval" = yes; then
5592 ac_cv_use_slider='wxUSE_SLIDER=yes'
5593 else
5594 ac_cv_use_slider='wxUSE_SLIDER=no'
5595 fi
698dcdb6 5596
10f2d63a 5597else
698dcdb6 5598
10f2d63a
VZ
5599 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5600 if test "x$LINE" != x ; then
5601 eval "DEFAULT_$LINE"
5602 else
5603 no_cache=1
5604 fi
5605
5606 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
5607
5608fi
10f2d63a
VZ
5609
5610
5611 eval "$ac_cv_use_slider"
5612 if test "$no_cache" != 1; then
5613 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5614 fi
5615
5616 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 5617 echo "$ac_t""yes" 1>&6
10f2d63a 5618 else
698dcdb6 5619 echo "$ac_t""no" 1>&6
10f2d63a 5620 fi
698dcdb6 5621
10f2d63a 5622
698dcdb6 5623 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
8168de4c 5624echo "configure:5625: checking for --enable-spinbtn" >&5
10f2d63a
VZ
5625 no_cache=0
5626 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5627if test "${enable_spinbtn+set}" = set; then
5628 enableval="$enable_spinbtn"
698dcdb6 5629
10f2d63a
VZ
5630 if test "$enableval" = yes; then
5631 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5632 else
5633 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5634 fi
698dcdb6 5635
10f2d63a 5636else
698dcdb6 5637
10f2d63a
VZ
5638 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5639 if test "x$LINE" != x ; then
5640 eval "DEFAULT_$LINE"
5641 else
5642 no_cache=1
5643 fi
5644
5645 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
5646
5647fi
10f2d63a
VZ
5648
5649
5650 eval "$ac_cv_use_spinbtn"
5651 if test "$no_cache" != 1; then
5652 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5653 fi
5654
5655 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 5656 echo "$ac_t""yes" 1>&6
10f2d63a 5657 else
698dcdb6 5658 echo "$ac_t""no" 1>&6
10f2d63a 5659 fi
698dcdb6 5660
10f2d63a 5661
698dcdb6 5662 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
8168de4c 5663echo "configure:5664: checking for --enable-spinctrl" >&5
56cfaa52
RR
5664 no_cache=0
5665 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5666if test "${enable_spinctrl+set}" = set; then
5667 enableval="$enable_spinctrl"
698dcdb6 5668
56cfaa52
RR
5669 if test "$enableval" = yes; then
5670 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
5671 else
5672 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
5673 fi
698dcdb6 5674
56cfaa52 5675else
698dcdb6 5676
56cfaa52
RR
5677 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
5678 if test "x$LINE" != x ; then
5679 eval "DEFAULT_$LINE"
5680 else
5681 no_cache=1
5682 fi
5683
5684 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
5685
5686fi
56cfaa52
RR
5687
5688
5689 eval "$ac_cv_use_spinctrl"
5690 if test "$no_cache" != 1; then
5691 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
5692 fi
5693
5694 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 5695 echo "$ac_t""yes" 1>&6
56cfaa52 5696 else
698dcdb6 5697 echo "$ac_t""no" 1>&6
56cfaa52 5698 fi
698dcdb6 5699
56cfaa52 5700
698dcdb6 5701 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
8168de4c 5702echo "configure:5703: checking for --enable-splitter" >&5
10f2d63a
VZ
5703 no_cache=0
5704 # Check whether --enable-splitter or --disable-splitter was given.
5705if test "${enable_splitter+set}" = set; then
5706 enableval="$enable_splitter"
698dcdb6 5707
10f2d63a
VZ
5708 if test "$enableval" = yes; then
5709 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
5710 else
5711 ac_cv_use_splitter='wxUSE_SPLITTER=no'
5712 fi
698dcdb6 5713
10f2d63a 5714else
698dcdb6 5715
10f2d63a
VZ
5716 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
5717 if test "x$LINE" != x ; then
5718 eval "DEFAULT_$LINE"
5719 else
5720 no_cache=1
5721 fi
5722
5723 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
5724
5725fi
10f2d63a
VZ
5726
5727
5728 eval "$ac_cv_use_splitter"
5729 if test "$no_cache" != 1; then
5730 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
5731 fi
5732
5733 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 5734 echo "$ac_t""yes" 1>&6
10f2d63a 5735 else
698dcdb6 5736 echo "$ac_t""no" 1>&6
10f2d63a 5737 fi
698dcdb6 5738
10f2d63a 5739
698dcdb6 5740 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
8168de4c 5741echo "configure:5742: checking for --enable-statbmp" >&5
10f2d63a
VZ
5742 no_cache=0
5743 # Check whether --enable-statbmp or --disable-statbmp was given.
5744if test "${enable_statbmp+set}" = set; then
5745 enableval="$enable_statbmp"
698dcdb6 5746
10f2d63a
VZ
5747 if test "$enableval" = yes; then
5748 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
5749 else
5750 ac_cv_use_statbmp='wxUSE_STATBMP=no'
5751 fi
698dcdb6 5752
10f2d63a 5753else
698dcdb6 5754
10f2d63a
VZ
5755 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
5756 if test "x$LINE" != x ; then
5757 eval "DEFAULT_$LINE"
5758 else
5759 no_cache=1
5760 fi
5761
5762 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
5763
5764fi
10f2d63a
VZ
5765
5766
5767 eval "$ac_cv_use_statbmp"
5768 if test "$no_cache" != 1; then
5769 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
5770 fi
5771
5772 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 5773 echo "$ac_t""yes" 1>&6
10f2d63a 5774 else
698dcdb6 5775 echo "$ac_t""no" 1>&6
10f2d63a 5776 fi
698dcdb6 5777
10f2d63a 5778
698dcdb6 5779 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
8168de4c 5780echo "configure:5781: checking for --enable-statbox" >&5
10f2d63a
VZ
5781 no_cache=0
5782 # Check whether --enable-statbox or --disable-statbox was given.
5783if test "${enable_statbox+set}" = set; then
5784 enableval="$enable_statbox"
698dcdb6 5785
10f2d63a
VZ
5786 if test "$enableval" = yes; then
5787 ac_cv_use_statbox='wxUSE_STATBOX=yes'
5788 else
5789 ac_cv_use_statbox='wxUSE_STATBOX=no'
5790 fi
698dcdb6 5791
10f2d63a 5792else
698dcdb6 5793
10f2d63a
VZ
5794 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
5795 if test "x$LINE" != x ; then
5796 eval "DEFAULT_$LINE"
5797 else
5798 no_cache=1
5799 fi
5800
5801 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
5802
5803fi
10f2d63a
VZ
5804
5805
5806 eval "$ac_cv_use_statbox"
5807 if test "$no_cache" != 1; then
5808 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
5809 fi
5810
5811 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 5812 echo "$ac_t""yes" 1>&6
10f2d63a 5813 else
698dcdb6 5814 echo "$ac_t""no" 1>&6
10f2d63a 5815 fi
698dcdb6 5816
10f2d63a 5817
698dcdb6 5818 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
8168de4c 5819echo "configure:5820: checking for --enable-statline" >&5
10f2d63a
VZ
5820 no_cache=0
5821 # Check whether --enable-statline or --disable-statline was given.
5822if test "${enable_statline+set}" = set; then
5823 enableval="$enable_statline"
698dcdb6 5824
10f2d63a
VZ
5825 if test "$enableval" = yes; then
5826 ac_cv_use_statline='wxUSE_STATLINE=yes'
5827 else
5828 ac_cv_use_statline='wxUSE_STATLINE=no'
5829 fi
698dcdb6 5830
10f2d63a 5831else
698dcdb6 5832
10f2d63a
VZ
5833 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5834 if test "x$LINE" != x ; then
5835 eval "DEFAULT_$LINE"
5836 else
5837 no_cache=1
5838 fi
5839
5840 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
5841
5842fi
10f2d63a
VZ
5843
5844
5845 eval "$ac_cv_use_statline"
5846 if test "$no_cache" != 1; then
5847 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5848 fi
5849
5850 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 5851 echo "$ac_t""yes" 1>&6
10f2d63a 5852 else
698dcdb6 5853 echo "$ac_t""no" 1>&6
10f2d63a 5854 fi
698dcdb6 5855
10f2d63a 5856
1e6feb95 5857 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
8168de4c 5858echo "configure:5859: checking for --enable-stattext" >&5
1e6feb95
VZ
5859 no_cache=0
5860 # Check whether --enable-stattext or --disable-stattext was given.
5861if test "${enable_stattext+set}" = set; then
5862 enableval="$enable_stattext"
5863
5864 if test "$enableval" = yes; then
5865 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
5866 else
5867 ac_cv_use_stattext='wxUSE_STATTEXT=no'
5868 fi
5869
5870else
5871
5872 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
5873 if test "x$LINE" != x ; then
5874 eval "DEFAULT_$LINE"
5875 else
5876 no_cache=1
5877 fi
5878
5879 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
5880
5881fi
5882
5883
5884 eval "$ac_cv_use_stattext"
5885 if test "$no_cache" != 1; then
5886 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
5887 fi
5888
5889 if test "$wxUSE_STATTEXT" = yes; then
5890 echo "$ac_t""yes" 1>&6
5891 else
5892 echo "$ac_t""no" 1>&6
5893 fi
5894
5895
698dcdb6 5896 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
8168de4c 5897echo "configure:5898: checking for --enable-statusbar" >&5
10f2d63a
VZ
5898 no_cache=0
5899 # Check whether --enable-statusbar or --disable-statusbar was given.
5900if test "${enable_statusbar+set}" = set; then
5901 enableval="$enable_statusbar"
698dcdb6 5902
10f2d63a
VZ
5903 if test "$enableval" = yes; then
5904 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5905 else
5906 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5907 fi
698dcdb6 5908
10f2d63a 5909else
698dcdb6 5910
10f2d63a
VZ
5911 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5912 if test "x$LINE" != x ; then
5913 eval "DEFAULT_$LINE"
5914 else
5915 no_cache=1
5916 fi
5917
5918 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
5919
5920fi
10f2d63a
VZ
5921
5922
5923 eval "$ac_cv_use_statusbar"
5924 if test "$no_cache" != 1; then
5925 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5926 fi
5927
5928 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 5929 echo "$ac_t""yes" 1>&6
10f2d63a 5930 else
698dcdb6 5931 echo "$ac_t""no" 1>&6
10f2d63a 5932 fi
698dcdb6 5933
10f2d63a 5934
698dcdb6 5935 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
8168de4c 5936echo "configure:5937: checking for --enable-tabdialog" >&5
10f2d63a
VZ
5937 no_cache=0
5938 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5939if test "${enable_tabdialog+set}" = set; then
5940 enableval="$enable_tabdialog"
698dcdb6 5941
10f2d63a
VZ
5942 if test "$enableval" = yes; then
5943 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5944 else
5945 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5946 fi
698dcdb6 5947
10f2d63a 5948else
698dcdb6 5949
10f2d63a
VZ
5950 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5951 if test "x$LINE" != x ; then
5952 eval "DEFAULT_$LINE"
5953 else
5954 no_cache=1
5955 fi
5956
5957 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
5958
5959fi
10f2d63a
VZ
5960
5961
5962 eval "$ac_cv_use_tabdialog"
5963 if test "$no_cache" != 1; then
5964 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5965 fi
5966
5967 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 5968 echo "$ac_t""yes" 1>&6
10f2d63a 5969 else
698dcdb6 5970 echo "$ac_t""no" 1>&6
10f2d63a 5971 fi
698dcdb6 5972
10f2d63a 5973
1e6feb95 5974 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
8168de4c 5975echo "configure:5976: checking for --enable-textctrl" >&5
1e6feb95
VZ
5976 no_cache=0
5977 # Check whether --enable-textctrl or --disable-textctrl was given.
5978if test "${enable_textctrl+set}" = set; then
5979 enableval="$enable_textctrl"
5980
5981 if test "$enableval" = yes; then
5982 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
5983 else
5984 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
5985 fi
5986
5987else
5988
5989 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
5990 if test "x$LINE" != x ; then
5991 eval "DEFAULT_$LINE"
5992 else
5993 no_cache=1
5994 fi
5995
5996 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
5997
5998fi
5999
6000
6001 eval "$ac_cv_use_textctrl"
6002 if test "$no_cache" != 1; then
6003 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6004 fi
6005
6006 if test "$wxUSE_TEXTCTRL" = yes; then
6007 echo "$ac_t""yes" 1>&6
6008 else
6009 echo "$ac_t""no" 1>&6
6010 fi
6011
6012
698dcdb6 6013 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
8168de4c 6014echo "configure:6015: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6015 no_cache=0
6016 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6017if test "${enable_togglebtn+set}" = set; then
6018 enableval="$enable_togglebtn"
698dcdb6 6019
1db8dc4a
VZ
6020 if test "$enableval" = yes; then
6021 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6022 else
6023 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6024 fi
698dcdb6 6025
1db8dc4a 6026else
698dcdb6 6027
1db8dc4a
VZ
6028 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6029 if test "x$LINE" != x ; then
6030 eval "DEFAULT_$LINE"
6031 else
6032 no_cache=1
6033 fi
6034
6035 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6036
6037fi
1db8dc4a
VZ
6038
6039
6040 eval "$ac_cv_use_togglebtn"
6041 if test "$no_cache" != 1; then
6042 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6043 fi
6044
6045 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6046 echo "$ac_t""yes" 1>&6
1db8dc4a 6047 else
698dcdb6 6048 echo "$ac_t""no" 1>&6
1db8dc4a 6049 fi
698dcdb6 6050
1db8dc4a 6051
698dcdb6 6052 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
8168de4c 6053echo "configure:6054: checking for --enable-toolbar" >&5
10f2d63a
VZ
6054 no_cache=0
6055 # Check whether --enable-toolbar or --disable-toolbar was given.
6056if test "${enable_toolbar+set}" = set; then
6057 enableval="$enable_toolbar"
698dcdb6 6058
10f2d63a
VZ
6059 if test "$enableval" = yes; then
6060 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6061 else
6062 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6063 fi
698dcdb6 6064
10f2d63a 6065else
698dcdb6 6066
10f2d63a
VZ
6067 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6068 if test "x$LINE" != x ; then
6069 eval "DEFAULT_$LINE"
6070 else
6071 no_cache=1
6072 fi
6073
6074 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
6075
6076fi
10f2d63a
VZ
6077
6078
6079 eval "$ac_cv_use_toolbar"
6080 if test "$no_cache" != 1; then
6081 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6082 fi
6083
6084 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 6085 echo "$ac_t""yes" 1>&6
10f2d63a 6086 else
698dcdb6 6087 echo "$ac_t""no" 1>&6
10f2d63a 6088 fi
698dcdb6 6089
10f2d63a 6090
698dcdb6 6091 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
8168de4c 6092echo "configure:6093: checking for --enable-tbarnative" >&5
360d6699
VZ
6093 no_cache=0
6094 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6095if test "${enable_tbarnative+set}" = set; then
6096 enableval="$enable_tbarnative"
698dcdb6 6097
360d6699
VZ
6098 if test "$enableval" = yes; then
6099 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6100 else
6101 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6102 fi
698dcdb6 6103
360d6699 6104else
698dcdb6 6105
360d6699
VZ
6106 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6107 if test "x$LINE" != x ; then
6108 eval "DEFAULT_$LINE"
6109 else
6110 no_cache=1
6111 fi
6112
6113 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
6114
6115fi
360d6699
VZ
6116
6117
6118 eval "$ac_cv_use_tbarnative"
6119 if test "$no_cache" != 1; then
6120 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6121 fi
6122
6123 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 6124 echo "$ac_t""yes" 1>&6
360d6699 6125 else
698dcdb6 6126 echo "$ac_t""no" 1>&6
360d6699 6127 fi
698dcdb6 6128
360d6699 6129
698dcdb6 6130 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
8168de4c 6131echo "configure:6132: checking for --enable-tbarsmpl" >&5
360d6699
VZ
6132 no_cache=0
6133 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6134if test "${enable_tbarsmpl+set}" = set; then
6135 enableval="$enable_tbarsmpl"
698dcdb6 6136
360d6699
VZ
6137 if test "$enableval" = yes; then
6138 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6139 else
6140 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6141 fi
698dcdb6 6142
360d6699 6143else
698dcdb6 6144
360d6699
VZ
6145 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6146 if test "x$LINE" != x ; then
6147 eval "DEFAULT_$LINE"
6148 else
6149 no_cache=1
6150 fi
6151
6152 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
6153
6154fi
360d6699
VZ
6155
6156
6157 eval "$ac_cv_use_tbarsmpl"
6158 if test "$no_cache" != 1; then
6159 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6160 fi
6161
6162 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 6163 echo "$ac_t""yes" 1>&6
360d6699 6164 else
698dcdb6 6165 echo "$ac_t""no" 1>&6
360d6699 6166 fi
698dcdb6 6167
360d6699 6168
698dcdb6 6169 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
8168de4c 6170echo "configure:6171: checking for --enable-treectrl" >&5
10f2d63a
VZ
6171 no_cache=0
6172 # Check whether --enable-treectrl or --disable-treectrl was given.
6173if test "${enable_treectrl+set}" = set; then
6174 enableval="$enable_treectrl"
698dcdb6 6175
10f2d63a
VZ
6176 if test "$enableval" = yes; then
6177 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6178 else
6179 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6180 fi
698dcdb6 6181
10f2d63a 6182else
698dcdb6 6183
10f2d63a
VZ
6184 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6185 if test "x$LINE" != x ; then
6186 eval "DEFAULT_$LINE"
6187 else
6188 no_cache=1
6189 fi
6190
6191 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
6192
6193fi
10f2d63a
VZ
6194
6195
1e6feb95
VZ
6196 eval "$ac_cv_use_treectrl"
6197 if test "$no_cache" != 1; then
6198 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6199 fi
6200
6201 if test "$wxUSE_TREECTRL" = yes; then
6202 echo "$ac_t""yes" 1>&6
6203 else
6204 echo "$ac_t""no" 1>&6
6205 fi
6206
6207
6208
6209
6210 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
8168de4c 6211echo "configure:6212: checking for --enable-commondlg" >&5
1e6feb95
VZ
6212 no_cache=0
6213 # Check whether --enable-commondlg or --disable-commondlg was given.
6214if test "${enable_commondlg+set}" = set; then
6215 enableval="$enable_commondlg"
6216
6217 if test "$enableval" = yes; then
6218 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6219 else
6220 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6221 fi
6222
6223else
6224
6225 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6226 if test "x$LINE" != x ; then
6227 eval "DEFAULT_$LINE"
6228 else
6229 no_cache=1
6230 fi
6231
6232 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6233
6234fi
6235
6236
6237 eval "$ac_cv_use_commondlg"
6238 if test "$no_cache" != 1; then
6239 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6240 fi
6241
6242 if test "$wxUSE_COMMONDLGS" = yes; then
6243 echo "$ac_t""yes" 1>&6
6244 else
6245 echo "$ac_t""no" 1>&6
6246 fi
6247
6248
6249 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
8168de4c 6250echo "configure:6251: checking for --enable-choicedlg" >&5
1e6feb95
VZ
6251 no_cache=0
6252 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6253if test "${enable_choicedlg+set}" = set; then
6254 enableval="$enable_choicedlg"
6255
6256 if test "$enableval" = yes; then
6257 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6258 else
6259 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6260 fi
6261
6262else
6263
6264 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6265 if test "x$LINE" != x ; then
6266 eval "DEFAULT_$LINE"
6267 else
6268 no_cache=1
6269 fi
6270
6271 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6272
6273fi
6274
6275
6276 eval "$ac_cv_use_choicedlg"
6277 if test "$no_cache" != 1; then
6278 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6279 fi
6280
6281 if test "$wxUSE_CHOICEDLG" = yes; then
6282 echo "$ac_t""yes" 1>&6
6283 else
6284 echo "$ac_t""no" 1>&6
6285 fi
6286
6287
6288 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
8168de4c 6289echo "configure:6290: checking for --enable-coldlg" >&5
1e6feb95
VZ
6290 no_cache=0
6291 # Check whether --enable-coldlg or --disable-coldlg was given.
6292if test "${enable_coldlg+set}" = set; then
6293 enableval="$enable_coldlg"
6294
6295 if test "$enableval" = yes; then
6296 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6297 else
6298 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6299 fi
6300
6301else
6302
6303 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6304 if test "x$LINE" != x ; then
6305 eval "DEFAULT_$LINE"
6306 else
6307 no_cache=1
6308 fi
6309
6310 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6311
6312fi
6313
6314
6315 eval "$ac_cv_use_coldlg"
6316 if test "$no_cache" != 1; then
6317 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6318 fi
6319
6320 if test "$wxUSE_COLOURDLG" = yes; then
6321 echo "$ac_t""yes" 1>&6
6322 else
6323 echo "$ac_t""no" 1>&6
6324 fi
6325
6326
6327 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
8168de4c 6328echo "configure:6329: checking for --enable-filedlg" >&5
1e6feb95
VZ
6329 no_cache=0
6330 # Check whether --enable-filedlg or --disable-filedlg was given.
6331if test "${enable_filedlg+set}" = set; then
6332 enableval="$enable_filedlg"
6333
6334 if test "$enableval" = yes; then
6335 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6336 else
6337 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6338 fi
6339
6340else
6341
6342 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6343 if test "x$LINE" != x ; then
6344 eval "DEFAULT_$LINE"
6345 else
6346 no_cache=1
6347 fi
6348
6349 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6350
6351fi
6352
6353
6354 eval "$ac_cv_use_filedlg"
6355 if test "$no_cache" != 1; then
6356 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6357 fi
6358
6359 if test "$wxUSE_FILEDLG" = yes; then
6360 echo "$ac_t""yes" 1>&6
6361 else
6362 echo "$ac_t""no" 1>&6
6363 fi
6364
6365
6366 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
8168de4c 6367echo "configure:6368: checking for --enable-fontdlg" >&5
1e6feb95
VZ
6368 no_cache=0
6369 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6370if test "${enable_fontdlg+set}" = set; then
6371 enableval="$enable_fontdlg"
6372
6373 if test "$enableval" = yes; then
6374 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6375 else
6376 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6377 fi
6378
6379else
6380
6381 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6382 if test "x$LINE" != x ; then
6383 eval "DEFAULT_$LINE"
6384 else
6385 no_cache=1
6386 fi
6387
6388 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6389
6390fi
6391
6392
6393 eval "$ac_cv_use_fontdlg"
6394 if test "$no_cache" != 1; then
6395 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6396 fi
6397
6398 if test "$wxUSE_FONTDLG" = yes; then
6399 echo "$ac_t""yes" 1>&6
6400 else
6401 echo "$ac_t""no" 1>&6
6402 fi
6403
6404
6405 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
8168de4c 6406echo "configure:6407: checking for --enable-dirdlg" >&5
1e6feb95
VZ
6407 no_cache=0
6408 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6409if test "${enable_dirdlg+set}" = set; then
6410 enableval="$enable_dirdlg"
6411
6412 if test "$enableval" = yes; then
6413 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6414 else
6415 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6416 fi
6417
6418else
6419
6420 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6421 if test "x$LINE" != x ; then
6422 eval "DEFAULT_$LINE"
6423 else
6424 no_cache=1
6425 fi
6426
6427 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6428
6429fi
6430
6431
6432 eval "$ac_cv_use_dirdlg"
10f2d63a 6433 if test "$no_cache" != 1; then
1e6feb95 6434 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6435 fi
6436
1e6feb95 6437 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 6438 echo "$ac_t""yes" 1>&6
10f2d63a 6439 else
698dcdb6 6440 echo "$ac_t""no" 1>&6
10f2d63a 6441 fi
698dcdb6
VZ
6442
6443
1e6feb95 6444 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
8168de4c 6445echo "configure:6446: checking for --enable-msgdlg" >&5
10f2d63a 6446 no_cache=0
1e6feb95
VZ
6447 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6448if test "${enable_msgdlg+set}" = set; then
6449 enableval="$enable_msgdlg"
698dcdb6 6450
10f2d63a 6451 if test "$enableval" = yes; then
1e6feb95 6452 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 6453 else
1e6feb95 6454 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 6455 fi
698dcdb6 6456
10f2d63a 6457else
698dcdb6 6458
1e6feb95 6459 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6460 if test "x$LINE" != x ; then
6461 eval "DEFAULT_$LINE"
6462 else
6463 no_cache=1
6464 fi
6465
1e6feb95 6466 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
6467
6468fi
10f2d63a
VZ
6469
6470
1e6feb95 6471 eval "$ac_cv_use_msgdlg"
10f2d63a 6472 if test "$no_cache" != 1; then
1e6feb95 6473 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6474 fi
6475
1e6feb95 6476 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 6477 echo "$ac_t""yes" 1>&6
10f2d63a 6478 else
698dcdb6 6479 echo "$ac_t""no" 1>&6
10f2d63a 6480 fi
698dcdb6 6481
10f2d63a 6482
1e6feb95 6483 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
8168de4c 6484echo "configure:6485: checking for --enable-numberdlg" >&5
10f2d63a 6485 no_cache=0
1e6feb95
VZ
6486 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6487if test "${enable_numberdlg+set}" = set; then
6488 enableval="$enable_numberdlg"
698dcdb6 6489
10f2d63a 6490 if test "$enableval" = yes; then
1e6feb95 6491 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 6492 else
1e6feb95 6493 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 6494 fi
698dcdb6 6495
10f2d63a 6496else
698dcdb6 6497
1e6feb95 6498 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6499 if test "x$LINE" != x ; then
6500 eval "DEFAULT_$LINE"
6501 else
6502 no_cache=1
6503 fi
6504
1e6feb95 6505 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
6506
6507fi
10f2d63a
VZ
6508
6509
1e6feb95 6510 eval "$ac_cv_use_numberdlg"
10f2d63a 6511 if test "$no_cache" != 1; then
1e6feb95 6512 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6513 fi
6514
1e6feb95 6515 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 6516 echo "$ac_t""yes" 1>&6
10f2d63a 6517 else
698dcdb6 6518 echo "$ac_t""no" 1>&6
10f2d63a 6519 fi
698dcdb6 6520
10f2d63a 6521
698dcdb6 6522 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
8168de4c 6523echo "configure:6524: checking for --enable-textdlg" >&5
10f2d63a
VZ
6524 no_cache=0
6525 # Check whether --enable-textdlg or --disable-textdlg was given.
6526if test "${enable_textdlg+set}" = set; then
6527 enableval="$enable_textdlg"
698dcdb6 6528
10f2d63a
VZ
6529 if test "$enableval" = yes; then
6530 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6531 else
6532 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6533 fi
698dcdb6 6534
10f2d63a 6535else
698dcdb6 6536
10f2d63a
VZ
6537 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6538 if test "x$LINE" != x ; then
6539 eval "DEFAULT_$LINE"
6540 else
6541 no_cache=1
6542 fi
6543
6544 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
6545
6546fi
10f2d63a
VZ
6547
6548
6549 eval "$ac_cv_use_textdlg"
6550 if test "$no_cache" != 1; then
6551 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
6552 fi
6553
6554 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 6555 echo "$ac_t""yes" 1>&6
10f2d63a 6556 else
698dcdb6 6557 echo "$ac_t""no" 1>&6
10f2d63a 6558 fi
698dcdb6 6559
10f2d63a 6560
698dcdb6 6561 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
8168de4c 6562echo "configure:6563: checking for --enable-tipdlg" >&5
10f2d63a
VZ
6563 no_cache=0
6564 # Check whether --enable-tipdlg or --disable-tipdlg was given.
6565if test "${enable_tipdlg+set}" = set; then
6566 enableval="$enable_tipdlg"
698dcdb6 6567
10f2d63a
VZ
6568 if test "$enableval" = yes; then
6569 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
6570 else
6571 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
6572 fi
698dcdb6 6573
10f2d63a 6574else
698dcdb6 6575
10f2d63a
VZ
6576 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
6577 if test "x$LINE" != x ; then
6578 eval "DEFAULT_$LINE"
6579 else
6580 no_cache=1
6581 fi
6582
6583 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
6584
6585fi
10f2d63a
VZ
6586
6587
6588 eval "$ac_cv_use_tipdlg"
6589 if test "$no_cache" != 1; then
6590 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
6591 fi
6592
6593 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 6594 echo "$ac_t""yes" 1>&6
10f2d63a 6595 else
698dcdb6 6596 echo "$ac_t""no" 1>&6
10f2d63a 6597 fi
698dcdb6 6598
10f2d63a 6599
698dcdb6 6600 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
8168de4c 6601echo "configure:6602: checking for --enable-progressdlg" >&5
10f2d63a
VZ
6602 no_cache=0
6603 # Check whether --enable-progressdlg or --disable-progressdlg was given.
6604if test "${enable_progressdlg+set}" = set; then
6605 enableval="$enable_progressdlg"
698dcdb6 6606
10f2d63a
VZ
6607 if test "$enableval" = yes; then
6608 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
6609 else
6610 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
6611 fi
698dcdb6 6612
10f2d63a 6613else
698dcdb6 6614
10f2d63a
VZ
6615 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
6616 if test "x$LINE" != x ; then
6617 eval "DEFAULT_$LINE"
6618 else
6619 no_cache=1
6620 fi
6621
6622 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
6623
6624fi
10f2d63a
VZ
6625
6626
6627 eval "$ac_cv_use_progressdlg"
6628 if test "$no_cache" != 1; then
6629 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
6630 fi
6631
6632 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 6633 echo "$ac_t""yes" 1>&6
10f2d63a 6634 else
698dcdb6 6635 echo "$ac_t""no" 1>&6
10f2d63a 6636 fi
698dcdb6 6637
10f2d63a 6638
1e6feb95 6639 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
8168de4c 6640echo "configure:6641: checking for --enable-menus" >&5
1e6feb95
VZ
6641 no_cache=0
6642 # Check whether --enable-menus or --disable-menus was given.
6643if test "${enable_menus+set}" = set; then
6644 enableval="$enable_menus"
6645
6646 if test "$enableval" = yes; then
6647 ac_cv_use_menus='wxUSE_MENUS=yes'
6648 else
6649 ac_cv_use_menus='wxUSE_MENUS=no'
6650 fi
6651
6652else
6653
6654 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
6655 if test "x$LINE" != x ; then
6656 eval "DEFAULT_$LINE"
6657 else
6658 no_cache=1
6659 fi
6660
6661 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
6662
6663fi
6664
6665
6666 eval "$ac_cv_use_menus"
6667 if test "$no_cache" != 1; then
6668 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
6669 fi
6670
6671 if test "$wxUSE_MENUS" = yes; then
6672 echo "$ac_t""yes" 1>&6
6673 else
6674 echo "$ac_t""no" 1>&6
6675 fi
6676
6677
698dcdb6 6678 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
8168de4c 6679echo "configure:6680: checking for --enable-miniframe" >&5
10f2d63a
VZ
6680 no_cache=0
6681 # Check whether --enable-miniframe or --disable-miniframe was given.
6682if test "${enable_miniframe+set}" = set; then
6683 enableval="$enable_miniframe"
698dcdb6 6684
10f2d63a
VZ
6685 if test "$enableval" = yes; then
6686 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
6687 else
6688 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
6689 fi
698dcdb6 6690
10f2d63a 6691else
698dcdb6 6692
10f2d63a
VZ
6693 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
6694 if test "x$LINE" != x ; then
6695 eval "DEFAULT_$LINE"
6696 else
6697 no_cache=1
6698 fi
6699
6700 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
6701
6702fi
10f2d63a
VZ
6703
6704
6705 eval "$ac_cv_use_miniframe"
6706 if test "$no_cache" != 1; then
6707 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
6708 fi
6709
6710 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 6711 echo "$ac_t""yes" 1>&6
10f2d63a 6712 else
698dcdb6 6713 echo "$ac_t""no" 1>&6
10f2d63a 6714 fi
698dcdb6 6715
10f2d63a 6716
698dcdb6 6717 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
8168de4c 6718echo "configure:6719: checking for --enable-html" >&5
10f2d63a
VZ
6719 no_cache=0
6720 # Check whether --enable-html or --disable-html was given.
6721if test "${enable_html+set}" = set; then
6722 enableval="$enable_html"
698dcdb6 6723
10f2d63a
VZ
6724 if test "$enableval" = yes; then
6725 ac_cv_use_html='wxUSE_HTML=yes'
6726 else
6727 ac_cv_use_html='wxUSE_HTML=no'
6728 fi
698dcdb6 6729
10f2d63a 6730else
698dcdb6 6731
10f2d63a
VZ
6732 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6733 if test "x$LINE" != x ; then
6734 eval "DEFAULT_$LINE"
6735 else
6736 no_cache=1
6737 fi
6738
6739 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
698dcdb6
VZ
6740
6741fi
10f2d63a
VZ
6742
6743
6744 eval "$ac_cv_use_html"
6745 if test "$no_cache" != 1; then
6746 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6747 fi
6748
6749 if test "$wxUSE_HTML" = yes; then
698dcdb6 6750 echo "$ac_t""yes" 1>&6
10f2d63a 6751 else
698dcdb6 6752 echo "$ac_t""no" 1>&6
10f2d63a 6753 fi
698dcdb6 6754
10f2d63a 6755
698dcdb6 6756 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
8168de4c 6757echo "configure:6758: checking for --enable-tooltips" >&5
10f2d63a
VZ
6758 no_cache=0
6759 # Check whether --enable-tooltips or --disable-tooltips was given.
6760if test "${enable_tooltips+set}" = set; then
6761 enableval="$enable_tooltips"
698dcdb6 6762
10f2d63a
VZ
6763 if test "$enableval" = yes; then
6764 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
6765 else
6766 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
6767 fi
698dcdb6 6768
10f2d63a 6769else
698dcdb6 6770
10f2d63a
VZ
6771 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
6772 if test "x$LINE" != x ; then
6773 eval "DEFAULT_$LINE"
6774 else
6775 no_cache=1
6776 fi
6777
6778 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
6779
6780fi
10f2d63a
VZ
6781
6782
6783 eval "$ac_cv_use_tooltips"
6784 if test "$no_cache" != 1; then
6785 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
6786 fi
6787
6788 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 6789 echo "$ac_t""yes" 1>&6
10f2d63a 6790 else
698dcdb6 6791 echo "$ac_t""no" 1>&6
10f2d63a 6792 fi
698dcdb6 6793
10f2d63a 6794
698dcdb6 6795 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
8168de4c 6796echo "configure:6797: checking for --enable-splines" >&5
10f2d63a
VZ
6797 no_cache=0
6798 # Check whether --enable-splines or --disable-splines was given.
6799if test "${enable_splines+set}" = set; then
6800 enableval="$enable_splines"
698dcdb6 6801
10f2d63a
VZ
6802 if test "$enableval" = yes; then
6803 ac_cv_use_splines='wxUSE_SPLINES=yes'
6804 else
6805 ac_cv_use_splines='wxUSE_SPLINES=no'
6806 fi
698dcdb6 6807
10f2d63a 6808else
698dcdb6 6809
10f2d63a
VZ
6810 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
6811 if test "x$LINE" != x ; then
6812 eval "DEFAULT_$LINE"
6813 else
6814 no_cache=1
6815 fi
6816
6817 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
6818
6819fi
10f2d63a
VZ
6820
6821
6822 eval "$ac_cv_use_splines"
6823 if test "$no_cache" != 1; then
6824 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
6825 fi
6826
6827 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 6828 echo "$ac_t""yes" 1>&6
10f2d63a 6829 else
698dcdb6 6830 echo "$ac_t""no" 1>&6
10f2d63a 6831 fi
698dcdb6 6832
10f2d63a 6833
698dcdb6 6834 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
8168de4c 6835echo "configure:6836: checking for --enable-validators" >&5
10f2d63a
VZ
6836 no_cache=0
6837 # Check whether --enable-validators or --disable-validators was given.
6838if test "${enable_validators+set}" = set; then
6839 enableval="$enable_validators"
698dcdb6 6840
10f2d63a
VZ
6841 if test "$enableval" = yes; then
6842 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
6843 else
6844 ac_cv_use_validators='wxUSE_VALIDATORS=no'
6845 fi
698dcdb6 6846
10f2d63a 6847else
698dcdb6 6848
10f2d63a
VZ
6849 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
6850 if test "x$LINE" != x ; then
6851 eval "DEFAULT_$LINE"
6852 else
6853 no_cache=1
6854 fi
6855
6856 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
6857
6858fi
10f2d63a
VZ
6859
6860
6861 eval "$ac_cv_use_validators"
6862 if test "$no_cache" != 1; then
6863 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
6864 fi
6865
6866 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 6867 echo "$ac_t""yes" 1>&6
10f2d63a 6868 else
698dcdb6 6869 echo "$ac_t""no" 1>&6
10f2d63a 6870 fi
698dcdb6 6871
10f2d63a 6872
698dcdb6 6873 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
8168de4c 6874echo "configure:6875: checking for --enable-busyinfo" >&5
10f2d63a
VZ
6875 no_cache=0
6876 # Check whether --enable-busyinfo or --disable-busyinfo was given.
6877if test "${enable_busyinfo+set}" = set; then
6878 enableval="$enable_busyinfo"
698dcdb6 6879
10f2d63a
VZ
6880 if test "$enableval" = yes; then
6881 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
6882 else
6883 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
6884 fi
698dcdb6 6885
10f2d63a 6886else
698dcdb6 6887
10f2d63a
VZ
6888 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
6889 if test "x$LINE" != x ; then
6890 eval "DEFAULT_$LINE"
6891 else
6892 no_cache=1
6893 fi
6894
6895 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
6896
6897fi
10f2d63a
VZ
6898
6899
6900 eval "$ac_cv_use_busyinfo"
6901 if test "$no_cache" != 1; then
6902 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
6903 fi
6904
6905 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 6906 echo "$ac_t""yes" 1>&6
10f2d63a 6907 else
698dcdb6 6908 echo "$ac_t""no" 1>&6
10f2d63a 6909 fi
698dcdb6 6910
10f2d63a 6911
698dcdb6 6912 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
8168de4c 6913echo "configure:6914: checking for --enable-joystick" >&5
f6bcfd97
BP
6914 no_cache=0
6915 # Check whether --enable-joystick or --disable-joystick was given.
6916if test "${enable_joystick+set}" = set; then
6917 enableval="$enable_joystick"
698dcdb6 6918
f6bcfd97
BP
6919 if test "$enableval" = yes; then
6920 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
6921 else
6922 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
6923 fi
698dcdb6 6924
f6bcfd97 6925else
698dcdb6 6926
f6bcfd97
BP
6927 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
6928 if test "x$LINE" != x ; then
6929 eval "DEFAULT_$LINE"
6930 else
6931 no_cache=1
6932 fi
6933
6934 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
6935
6936fi
f6bcfd97
BP
6937
6938
6939 eval "$ac_cv_use_joystick"
6940 if test "$no_cache" != 1; then
6941 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
6942 fi
6943
6944 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 6945 echo "$ac_t""yes" 1>&6
f6bcfd97 6946 else
698dcdb6 6947 echo "$ac_t""no" 1>&6
f6bcfd97 6948 fi
698dcdb6
VZ
6949
6950
1e6feb95 6951 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
8168de4c 6952echo "configure:6953: checking for --enable-metafile" >&5
1e6feb95
VZ
6953 no_cache=0
6954 # Check whether --enable-metafile or --disable-metafile was given.
6955if test "${enable_metafile+set}" = set; then
6956 enableval="$enable_metafile"
6957
6958 if test "$enableval" = yes; then
6959 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6960 else
6961 ac_cv_use_metafile='wxUSE_METAFILE=no'
6962 fi
6963
6964else
6965
6966 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6967 if test "x$LINE" != x ; then
6968 eval "DEFAULT_$LINE"
6969 else
6970 no_cache=1
6971 fi
6972
6973 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6974
6975fi
6976
6977
6978 eval "$ac_cv_use_metafile"
6979 if test "$no_cache" != 1; then
6980 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6981 fi
6982
6983 if test "$wxUSE_METAFILE" = yes; then
6984 echo "$ac_t""yes" 1>&6
6985 else
6986 echo "$ac_t""no" 1>&6
6987 fi
6988
6989
10f2d63a 6990
698dcdb6
VZ
6991
6992 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
8168de4c 6993echo "configure:6994: checking for --enable-image" >&5
0046ff7c
VS
6994 no_cache=0
6995 # Check whether --enable-image or --disable-image was given.
6996if test "${enable_image+set}" = set; then
6997 enableval="$enable_image"
698dcdb6 6998
0046ff7c
VS
6999 if test "$enableval" = yes; then
7000 ac_cv_use_image='wxUSE_IMAGE=yes'
7001 else
7002 ac_cv_use_image='wxUSE_IMAGE=no'
7003 fi
698dcdb6 7004
0046ff7c 7005else
698dcdb6 7006
0046ff7c
VS
7007 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7008 if test "x$LINE" != x ; then
7009 eval "DEFAULT_$LINE"
7010 else
7011 no_cache=1
7012 fi
7013
7014 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
7015
7016fi
0046ff7c
VS
7017
7018
7019 eval "$ac_cv_use_image"
7020 if test "$no_cache" != 1; then
7021 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7022 fi
7023
7024 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 7025 echo "$ac_t""yes" 1>&6
0046ff7c 7026 else
698dcdb6 7027 echo "$ac_t""no" 1>&6
0046ff7c 7028 fi
698dcdb6 7029
0046ff7c 7030
698dcdb6 7031 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
8168de4c 7032echo "configure:7033: checking for --enable-gif" >&5
10f2d63a
VZ
7033 no_cache=0
7034 # Check whether --enable-gif or --disable-gif was given.
7035if test "${enable_gif+set}" = set; then
7036 enableval="$enable_gif"
698dcdb6 7037
10f2d63a
VZ
7038 if test "$enableval" = yes; then
7039 ac_cv_use_gif='wxUSE_GIF=yes'
7040 else
7041 ac_cv_use_gif='wxUSE_GIF=no'
7042 fi
698dcdb6 7043
10f2d63a 7044else
698dcdb6 7045
10f2d63a
VZ
7046 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7047 if test "x$LINE" != x ; then
7048 eval "DEFAULT_$LINE"
7049 else
7050 no_cache=1
7051 fi
7052
7053 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
7054
7055fi
10f2d63a
VZ
7056
7057
7058 eval "$ac_cv_use_gif"
7059 if test "$no_cache" != 1; then
7060 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7061 fi
7062
7063 if test "$wxUSE_GIF" = yes; then
698dcdb6 7064 echo "$ac_t""yes" 1>&6
10f2d63a 7065 else
698dcdb6 7066 echo "$ac_t""no" 1>&6
10f2d63a 7067 fi
698dcdb6 7068
10f2d63a 7069
698dcdb6 7070 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
8168de4c 7071echo "configure:7072: checking for --enable-pcx" >&5
10f2d63a
VZ
7072 no_cache=0
7073 # Check whether --enable-pcx or --disable-pcx was given.
7074if test "${enable_pcx+set}" = set; then
7075 enableval="$enable_pcx"
698dcdb6 7076
10f2d63a
VZ
7077 if test "$enableval" = yes; then
7078 ac_cv_use_pcx='wxUSE_PCX=yes'
7079 else
7080 ac_cv_use_pcx='wxUSE_PCX=no'
7081 fi
698dcdb6 7082
10f2d63a 7083else
698dcdb6 7084
10f2d63a
VZ
7085 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7086 if test "x$LINE" != x ; then
7087 eval "DEFAULT_$LINE"
7088 else
7089 no_cache=1
7090 fi
7091
7092 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
7093
7094fi
10f2d63a
VZ
7095
7096
7097 eval "$ac_cv_use_pcx"
7098 if test "$no_cache" != 1; then
7099 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7100 fi
7101
7102 if test "$wxUSE_PCX" = yes; then
698dcdb6 7103 echo "$ac_t""yes" 1>&6
10f2d63a 7104 else
698dcdb6 7105 echo "$ac_t""no" 1>&6
10f2d63a 7106 fi
698dcdb6 7107
10f2d63a 7108
698dcdb6 7109 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
8168de4c 7110echo "configure:7111: checking for --enable-pnm" >&5
10f2d63a
VZ
7111 no_cache=0
7112 # Check whether --enable-pnm or --disable-pnm was given.
7113if test "${enable_pnm+set}" = set; then
7114 enableval="$enable_pnm"
698dcdb6 7115
10f2d63a
VZ
7116 if test "$enableval" = yes; then
7117 ac_cv_use_pnm='wxUSE_PNM=yes'
7118 else
7119 ac_cv_use_pnm='wxUSE_PNM=no'
7120 fi
698dcdb6 7121
10f2d63a 7122else
698dcdb6 7123
10f2d63a
VZ
7124 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7125 if test "x$LINE" != x ; then
7126 eval "DEFAULT_$LINE"
7127 else
7128 no_cache=1
7129 fi
7130
7131 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
7132
7133fi
10f2d63a
VZ
7134
7135
7136 eval "$ac_cv_use_pnm"
7137 if test "$no_cache" != 1; then
7138 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7139 fi
7140
7141 if test "$wxUSE_PNM" = yes; then
698dcdb6 7142 echo "$ac_t""yes" 1>&6
10f2d63a 7143 else
698dcdb6 7144 echo "$ac_t""no" 1>&6
10f2d63a 7145 fi
698dcdb6 7146
10f2d63a 7147
698dcdb6 7148 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
8168de4c 7149echo "configure:7150: checking for --enable-pnm" >&5
0046ff7c
VS
7150 no_cache=0
7151 # Check whether --enable-pnm or --disable-pnm was given.
7152if test "${enable_pnm+set}" = set; then
7153 enableval="$enable_pnm"
698dcdb6 7154
0046ff7c
VS
7155 if test "$enableval" = yes; then
7156 ac_cv_use_pnm='wxUSE_XPM=yes'
7157 else
7158 ac_cv_use_pnm='wxUSE_XPM=no'
7159 fi
698dcdb6 7160
0046ff7c 7161else
698dcdb6 7162
0046ff7c
VS
7163 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7164 if test "x$LINE" != x ; then
7165 eval "DEFAULT_$LINE"
7166 else
7167 no_cache=1
7168 fi
7169
7170 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
7171
7172fi
0046ff7c
VS
7173
7174
7175 eval "$ac_cv_use_pnm"
7176 if test "$no_cache" != 1; then
7177 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7178 fi
7179
7180 if test "$wxUSE_XPM" = yes; then
698dcdb6 7181 echo "$ac_t""yes" 1>&6
0046ff7c 7182 else
698dcdb6 7183 echo "$ac_t""no" 1>&6
0046ff7c 7184 fi
698dcdb6 7185
0046ff7c 7186
b12915c1
VZ
7187fi
7188
698dcdb6 7189
10f2d63a
VZ
7190 echo "saving argument cache $wx_arg_cache_file"
7191 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 7192
10f2d63a 7193
698dcdb6
VZ
7194
7195echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8168de4c 7196echo "configure:7197: checking for toolkit" >&5
10f2d63a
VZ
7197
7198if test "$wxUSE_GUI" = "yes"; then
7199
b12915c1 7200if test "$USE_BEOS" = 1; then
698dcdb6 7201 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
b12915c1
VZ
7202fi
7203
10f2d63a
VZ
7204if test "$TOOLKIT_GIVEN" = 1; then
7205 for toolkit in `echo $ALL_TOOLKITS`; do
7206 var=wxUSE_$toolkit
7207 eval "value=\$${var}"
7208 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7209 done
7210else
7211 for toolkit in `echo $ALL_TOOLKITS`; do
7212 if test "$has_toolkit_in_cache" != 1; then
7213 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7214 else
7215 var=DEFAULT_wxUSE_$toolkit
7216 fi
7217 eval "wxUSE_$toolkit=\$${var}"
7218 done
7219fi
7220
1e6feb95 7221NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}`
cf27ef00 7222
ec14dd32
VZ
7223case "${host}" in
7224 *-pc-os2_emx )
7225 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7226 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7227 LEX_STEM="lexyy"
7228 ;;
7229 *)
7230 PATH_IFS=':'
7231 LEX_STEM="lex.yy"
7232 ;;
7233esac
10f2d63a
VZ
7234
7235case "$NUM_TOOLKITS" in
7236 1)
7237 ;;
7238 0)
698dcdb6 7239 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
10f2d63a
VZ
7240 ;;
7241 *)
698dcdb6 7242 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
10f2d63a
VZ
7243esac
7244
7245for toolkit in `echo $ALL_TOOLKITS`; do
7246 var=wxUSE_$toolkit
7247 eval "value=\$${var}"
7248 if test "x$value" != x; then
7249 cache_var=CACHE_$toolkit
7250 eval "cache=\$${cache_var}"
7251 if test "$cache" = 1; then
7252 echo "$var=$value" >> ${wx_arg_cache_file}
7253 fi
7254 if test "$value" = 1; then
8168de4c
VZ
7255 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7256 echo "$ac_t""$toolkit_echo" 1>&6
10f2d63a
VZ
7257 fi
7258 fi
7259done
7260
7261else
cf27ef00 7262 PATH_IFS=':'
698dcdb6 7263 echo "$ac_t""base only" 1>&6
10f2d63a
VZ
7264fi
7265
698dcdb6
VZ
7266
7267cat > confcache <<\EOF
10f2d63a
VZ
7268# This file is a shell script that caches the results of configure
7269# tests run on this system so they can be shared between configure
698dcdb6
VZ
7270# scripts and configure runs. It is not useful on other systems.
7271# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 7272#
698dcdb6
VZ
7273# By default, configure uses ./config.cache as the cache file,
7274# creating it if it does not exist already. You can give configure
7275# the --cache-file=FILE option to use a different cache file; that is
7276# what configure does when it calls configure scripts in
7277# subdirectories, so they share the cache.
7278# Giving --cache-file=/dev/null disables caching, for debugging configure.
7279# config.status only pays attention to the cache file if you give it the
7280# --recheck option to rerun configure.
10f2d63a 7281#
698dcdb6 7282EOF
10f2d63a
VZ
7283# The following way of writing the cache mishandles newlines in values,
7284# but we know of no workaround that is simple, portable, and efficient.
7285# So, don't put newlines in cache variables' values.
7286# Ultrix sh set writes to stderr and can't be redirected directly,
7287# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
7288(set) 2>&1 |
7289 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7290 *ac_space=\ *)
7291 # `set' does not quote correctly, so add quotes (double-quote substitution
7292 # turns \\\\ into \\, and sed turns \\ into \).
7293 sed -n \
7294 -e "s/'/'\\\\''/g" \
7295 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7296 ;;
7297 *)
7298 # `set' quotes correctly as required by POSIX, so do not add quotes.
7299 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7300 ;;
7301 esac >> confcache
7302if cmp -s $cache_file confcache; then
7303 :
7304else
10f2d63a 7305 if test -w $cache_file; then
698dcdb6
VZ
7306 echo "updating cache $cache_file"
7307 cat confcache > $cache_file
10f2d63a
VZ
7308 else
7309 echo "not updating unwritable cache $cache_file"
7310 fi
7311fi
7312rm -f confcache
7313
698dcdb6 7314
e59890c3 7315if test "$build" != "$host" ; then
10f2d63a
VZ
7316 CC=$host_alias-gcc
7317 CXX=$host_alias-c++
7318 AR=$host_alias-ar
7319 RANLIB=$host_alias-ranlib
7320 DLLTOOL=$host_alias-dlltool
32832908 7321 RESCOMP=$host_alias-windres
10f2d63a
VZ
7322 LD=$host_alias-ld
7323 NM=$host_alias-nm
7324 STRIP=$host_alias-strip
10f2d63a
VZ
7325fi
7326
698dcdb6 7327# Extract the first word of "gcc", so it can be a program name with args.
1e487827 7328set dummy gcc; ac_word=$2
698dcdb6 7329echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8168de4c 7330echo "configure:7331: checking for $ac_word" >&5
698dcdb6
VZ
7331if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7332 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
7333else
7334 if test -n "$CC"; then
7335 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 7336else
698dcdb6
VZ
7337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7338 ac_dummy="$PATH"
7339 for ac_dir in $ac_dummy; do
7340 test -z "$ac_dir" && ac_dir=.
7341 if test -f $ac_dir/$ac_word; then
7342 ac_cv_prog_CC="gcc"
7343 break
7344 fi
7345 done
7346 IFS="$ac_save_ifs"
10f2d63a 7347fi
6232543b 7348fi
698dcdb6 7349CC="$ac_cv_prog_CC"
6232543b 7350if test -n "$CC"; then
698dcdb6 7351 echo "$ac_t""$CC" 1>&6
1e487827 7352else
698dcdb6 7353 echo "$ac_t""no" 1>&6
1e487827 7354fi
6232543b 7355
1e487827
VS
7356if test -z "$CC"; then
7357 # Extract the first word of "cc", so it can be a program name with args.
7358set dummy cc; ac_word=$2
698dcdb6 7359echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8168de4c 7360echo "configure:7361: checking for $ac_word" >&5
698dcdb6
VZ
7361if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7362 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7363else
7364 if test -n "$CC"; then
7365 ac_cv_prog_CC="$CC" # Let the user override the test.
7366else
698dcdb6 7367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 7368 ac_prog_rejected=no
698dcdb6
VZ
7369 ac_dummy="$PATH"
7370 for ac_dir in $ac_dummy; do
7371 test -z "$ac_dir" && ac_dir=.
7372 if test -f $ac_dir/$ac_word; then
7373 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7374 ac_prog_rejected=yes
7375 continue
7376 fi
7377 ac_cv_prog_CC="cc"
7378 break
7379 fi
7380 done
7381 IFS="$ac_save_ifs"
1e487827
VS
7382if test $ac_prog_rejected = yes; then
7383 # We found a bogon in the path, so make sure we never use it.
7384 set dummy $ac_cv_prog_CC
7385 shift
698dcdb6 7386 if test $# -gt 0; then
1e487827
VS
7387 # We chose a different compiler from the bogus one.
7388 # However, it has the same basename, so the bogon will be chosen
7389 # first if we set CC to just the basename; use the full file name.
7390 shift
698dcdb6 7391 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
7392 shift
7393 ac_cv_prog_CC="$@"
703e0a69 7394 fi
1e487827
VS
7395fi
7396fi
7397fi
698dcdb6 7398CC="$ac_cv_prog_CC"
1e487827 7399if test -n "$CC"; then
698dcdb6 7400 echo "$ac_t""$CC" 1>&6
703e0a69 7401else
698dcdb6 7402 echo "$ac_t""no" 1>&6
703e0a69 7403fi
1e487827 7404
698dcdb6
VZ
7405 if test -z "$CC"; then
7406 case "`uname -s`" in
7407 *win32* | *WIN32*)
7408 # Extract the first word of "cl", so it can be a program name with args.
7409set dummy cl; ac_word=$2
7410echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8168de4c 7411echo "configure:7412: checking for $ac_word" >&5
698dcdb6
VZ
7412if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7413 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7414else
7415 if test -n "$CC"; then
7416 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 7417else
698dcdb6
VZ
7418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7419 ac_dummy="$PATH"
7420 for ac_dir in $ac_dummy; do
7421 test -z "$ac_dir" && ac_dir=.
7422 if test -f $ac_dir/$ac_word; then
7423 ac_cv_prog_CC="cl"
7424 break
7425 fi
7426 done
7427 IFS="$ac_save_ifs"
703e0a69 7428fi
1e487827 7429fi
698dcdb6 7430CC="$ac_cv_prog_CC"
1e487827 7431if test -n "$CC"; then
698dcdb6 7432 echo "$ac_t""$CC" 1>&6
1e487827 7433else
698dcdb6 7434 echo "$ac_t""no" 1>&6
1e487827 7435fi
698dcdb6
VZ
7436 ;;
7437 esac
7438 fi
7439 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
7440fi
7441
698dcdb6 7442echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8168de4c 7443echo "configure:7444: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 7444
698dcdb6
VZ
7445ac_ext=c
7446# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7447ac_cpp='$CPP $CPPFLAGS'
7448ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7449ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7450cross_compiling=$ac_cv_prog_cc_cross
6232543b 7451
698dcdb6 7452cat > conftest.$ac_ext << EOF
1e487827 7453
8168de4c 7454#line 7455 "configure"
1e487827
VS
7455#include "confdefs.h"
7456
698dcdb6
VZ
7457main(){return(0);}
7458EOF
8168de4c 7459if { (eval echo configure:7460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
7460 ac_cv_prog_cc_works=yes
7461 # If we can't run a trivial program, we are probably using a cross compiler.
7462 if (./conftest; exit) 2>/dev/null; then
7463 ac_cv_prog_cc_cross=no
7464 else
7465 ac_cv_prog_cc_cross=yes
7466 fi
7467else
7468 echo "configure: failed program was:" >&5
7469 cat conftest.$ac_ext >&5
7470 ac_cv_prog_cc_works=no
7471fi
7472rm -fr conftest*
7473ac_ext=c
7474# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7475ac_cpp='$CPP $CPPFLAGS'
7476ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7477ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7478cross_compiling=$ac_cv_prog_cc_cross
7479
7480echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
7481if test $ac_cv_prog_cc_works = no; then
7482 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
7483fi
7484echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8168de4c 7485echo "configure:7486: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
7486echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
7487cross_compiling=$ac_cv_prog_cc_cross
7488
7489echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8168de4c 7490echo "configure:7491: checking whether we are using GNU C" >&5
698dcdb6
VZ
7491if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
7492 echo $ac_n "(cached) $ac_c" 1>&6
7493else
7494 cat > conftest.c <<EOF
7495#ifdef __GNUC__
7496 yes;
1e487827 7497#endif
698dcdb6 7498EOF
8168de4c 7499if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
7500 ac_cv_prog_gcc=yes
7501else
7502 ac_cv_prog_gcc=no
7503fi
7504fi
1e487827 7505
698dcdb6 7506echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 7507
698dcdb6
VZ
7508if test $ac_cv_prog_gcc = yes; then
7509 GCC=yes
7510else
7511 GCC=
7512fi
1e487827 7513
698dcdb6
VZ
7514ac_test_CFLAGS="${CFLAGS+set}"
7515ac_save_CFLAGS="$CFLAGS"
7516CFLAGS=
7517echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8168de4c 7518echo "configure:7519: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
7519if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
7520 echo $ac_n "(cached) $ac_c" 1>&6
7521else
7522 echo 'void f(){}' > conftest.c
7523if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
7524 ac_cv_prog_cc_g=yes
7525else
698dcdb6 7526 ac_cv_prog_cc_g=no
10f2d63a 7527fi
698dcdb6
VZ
7528rm -f conftest*
7529
10f2d63a 7530fi
698dcdb6
VZ
7531
7532echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 7533if test "$ac_test_CFLAGS" = set; then
698dcdb6 7534 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
7535elif test $ac_cv_prog_cc_g = yes; then
7536 if test "$GCC" = yes; then
7537 CFLAGS="-g -O2"
7538 else
7539 CFLAGS="-g"
7540 fi
7541else
7542 if test "$GCC" = yes; then
7543 CFLAGS="-O2"
7544 else
7545 CFLAGS=
7546 fi
7547fi
7548
7549
7550CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
7551
698dcdb6 7552echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8168de4c 7553echo "configure:7554: checking how to run the C preprocessor" >&5
10f2d63a
VZ
7554# On Suns, sometimes $CPP names a directory.
7555if test -n "$CPP" && test -d "$CPP"; then
7556 CPP=
7557fi
7558if test -z "$CPP"; then
698dcdb6
VZ
7559if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
7560 echo $ac_n "(cached) $ac_c" 1>&6
7561else
7562 # This must be in double quotes, not single quotes, because CPP may get
7563 # substituted into the Makefile and "${CC-cc}" will confuse make.
7564 CPP="${CC-cc} -E"
10f2d63a 7565 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
7566 # not just through cpp.
7567 cat > conftest.$ac_ext <<EOF
8168de4c 7568#line 7569 "configure"
10f2d63a
VZ
7569#include "confdefs.h"
7570#include <assert.h>
698dcdb6
VZ
7571Syntax Error
7572EOF
7573ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8168de4c 7574{ (eval echo configure:7575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
7575ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7576if test -z "$ac_err"; then
10f2d63a
VZ
7577 :
7578else
698dcdb6
VZ
7579 echo "$ac_err" >&5
7580 echo "configure: failed program was:" >&5
10f2d63a 7581 cat conftest.$ac_ext >&5
698dcdb6
VZ
7582 rm -rf conftest*
7583 CPP="${CC-cc} -E -traditional-cpp"
7584 cat > conftest.$ac_ext <<EOF
8168de4c 7585#line 7586 "configure"
10f2d63a 7586#include "confdefs.h"
698dcdb6
VZ
7587#include <assert.h>
7588Syntax Error
7589EOF
7590ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8168de4c 7591{ (eval echo configure:7592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
7592ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7593if test -z "$ac_err"; then
7594 :
10f2d63a 7595else
698dcdb6
VZ
7596 echo "$ac_err" >&5
7597 echo "configure: failed program was:" >&5
10f2d63a 7598 cat conftest.$ac_ext >&5
698dcdb6
VZ
7599 rm -rf conftest*
7600 CPP="${CC-cc} -nologo -E"
7601 cat > conftest.$ac_ext <<EOF
8168de4c 7602#line 7603 "configure"
10f2d63a
VZ
7603#include "confdefs.h"
7604#include <assert.h>
698dcdb6
VZ
7605Syntax Error
7606EOF
7607ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8168de4c 7608{ (eval echo configure:7609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
7609ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7610if test -z "$ac_err"; then
10f2d63a
VZ
7611 :
7612else
698dcdb6
VZ
7613 echo "$ac_err" >&5
7614 echo "configure: failed program was:" >&5
10f2d63a 7615 cat conftest.$ac_ext >&5
698dcdb6
VZ
7616 rm -rf conftest*
7617 CPP=/lib/cpp
10f2d63a 7618fi
698dcdb6 7619rm -f conftest*
10f2d63a 7620fi
698dcdb6 7621rm -f conftest*
703e0a69 7622fi
698dcdb6
VZ
7623rm -f conftest*
7624 ac_cv_prog_CPP="$CPP"
7625fi
7626 CPP="$ac_cv_prog_CPP"
10f2d63a 7627else
698dcdb6 7628 ac_cv_prog_CPP="$CPP"
10f2d63a 7629fi
698dcdb6 7630echo "$ac_t""$CPP" 1>&6
10f2d63a
VZ
7631
7632
698dcdb6
VZ
7633if test $ac_cv_prog_gcc = yes; then
7634 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8168de4c 7635echo "configure:7636: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
7636if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
7637 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
7638else
7639 ac_pattern="Autoconf.*'x'"
698dcdb6 7640 cat > conftest.$ac_ext <<EOF
8168de4c 7641#line 7642 "configure"
10f2d63a
VZ
7642#include "confdefs.h"
7643#include <sgtty.h>
7644Autoconf TIOCGETP
698dcdb6 7645EOF
10f2d63a
VZ
7646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7647 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 7648 rm -rf conftest*
10f2d63a
VZ
7649 ac_cv_prog_gcc_traditional=yes
7650else
698dcdb6 7651 rm -rf conftest*
10f2d63a
VZ
7652 ac_cv_prog_gcc_traditional=no
7653fi
7654rm -f conftest*
7655
698dcdb6 7656
10f2d63a 7657 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 7658 cat > conftest.$ac_ext <<EOF
8168de4c 7659#line 7660 "configure"
10f2d63a
VZ
7660#include "confdefs.h"
7661#include <termio.h>
7662Autoconf TCGETA
698dcdb6 7663EOF
10f2d63a
VZ
7664if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7665 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 7666 rm -rf conftest*
10f2d63a
VZ
7667 ac_cv_prog_gcc_traditional=yes
7668fi
7669rm -f conftest*
7670
7671 fi
7672fi
698dcdb6
VZ
7673
7674echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
7675 if test $ac_cv_prog_gcc_traditional = yes; then
7676 CC="$CC -traditional"
7677 fi
7678fi
7679
703e0a69 7680
698dcdb6
VZ
7681
7682ac_ext=C
7683# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 7684ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
7685ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7686ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7687cross_compiling=$ac_cv_prog_cxx_cross
7688
7689
7690for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
7691do
7692# Extract the first word of "$ac_prog", so it can be a program name with args.
7693set dummy $ac_prog; ac_word=$2
7694echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8168de4c 7695echo "configure:7696: checking for $ac_word" >&5
698dcdb6
VZ
7696if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
7697 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
7698else
7699 if test -n "$CXX"; then
7700 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7701else
698dcdb6
VZ
7702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7703 ac_dummy="$PATH"
7704 for ac_dir in $ac_dummy; do
7705 test -z "$ac_dir" && ac_dir=.
7706 if test -f $ac_dir/$ac_word; then
7707 ac_cv_prog_CXX="$ac_prog"
7708 break
7709 fi
7710 done
7711 IFS="$ac_save_ifs"
10f2d63a
VZ
7712fi
7713fi
698dcdb6 7714CXX="$ac_cv_prog_CXX"
10f2d63a 7715if test -n "$CXX"; then
698dcdb6 7716 echo "$ac_t""$CXX" 1>&6
10f2d63a 7717else
698dcdb6 7718 echo "$ac_t""no" 1>&6
10f2d63a
VZ
7719fi
7720
698dcdb6 7721test -n "$CXX" && break
10f2d63a 7722done
698dcdb6 7723test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
7724
7725
698dcdb6 7726echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8168de4c 7727echo "configure:7728: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 7728
698dcdb6
VZ
7729ac_ext=C
7730# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7731ac_cpp='$CXXCPP $CPPFLAGS'
7732ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7733ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7734cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 7735
698dcdb6
VZ
7736cat > conftest.$ac_ext << EOF
7737
8168de4c 7738#line 7739 "configure"
10f2d63a
VZ
7739#include "confdefs.h"
7740
698dcdb6
VZ
7741int main(){return(0);}
7742EOF
8168de4c 7743if { (eval echo configure:7744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
7744 ac_cv_prog_cxx_works=yes
7745 # If we can't run a trivial program, we are probably using a cross compiler.
7746 if (./conftest; exit) 2>/dev/null; then
7747 ac_cv_prog_cxx_cross=no
7748 else
7749 ac_cv_prog_cxx_cross=yes
7750 fi
7751else
7752 echo "configure: failed program was:" >&5
7753 cat conftest.$ac_ext >&5
7754 ac_cv_prog_cxx_works=no
7755fi
7756rm -fr conftest*
7757ac_ext=C
7758# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7759ac_cpp='$CXXCPP $CPPFLAGS'
7760ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7761ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7762cross_compiling=$ac_cv_prog_cxx_cross
7763
7764echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
7765if test $ac_cv_prog_cxx_works = no; then
7766 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
7767fi
7768echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8168de4c 7769echo "configure:7770: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
7770echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
7771cross_compiling=$ac_cv_prog_cxx_cross
7772
7773echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
8168de4c 7774echo "configure:7775: checking whether we are using GNU C++" >&5
698dcdb6
VZ
7775if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
7776 echo $ac_n "(cached) $ac_c" 1>&6
7777else
7778 cat > conftest.C <<EOF
7779#ifdef __GNUC__
7780 yes;
10f2d63a 7781#endif
698dcdb6 7782EOF
8168de4c 7783if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:7784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
7784 ac_cv_prog_gxx=yes
7785else
7786 ac_cv_prog_gxx=no
7787fi
7788fi
10f2d63a 7789
698dcdb6 7790echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 7791
698dcdb6
VZ
7792if test $ac_cv_prog_gxx = yes; then
7793 GXX=yes
7794else
7795 GXX=
7796fi
10f2d63a 7797
698dcdb6
VZ
7798ac_test_CXXFLAGS="${CXXFLAGS+set}"
7799ac_save_CXXFLAGS="$CXXFLAGS"
7800CXXFLAGS=
7801echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
8168de4c 7802echo "configure:7803: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
7803if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
7804 echo $ac_n "(cached) $ac_c" 1>&6
7805else
7806 echo 'void f(){}' > conftest.cc
7807if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
7808 ac_cv_prog_cxx_g=yes
7809else
698dcdb6 7810 ac_cv_prog_cxx_g=no
10f2d63a 7811fi
698dcdb6
VZ
7812rm -f conftest*
7813
10f2d63a 7814fi
698dcdb6
VZ
7815
7816echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 7817if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 7818 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
7819elif test $ac_cv_prog_cxx_g = yes; then
7820 if test "$GXX" = yes; then
7821 CXXFLAGS="-g -O2"
7822 else
7823 CXXFLAGS="-g"
7824 fi
7825else
7826 if test "$GXX" = yes; then
7827 CXXFLAGS="-O2"
7828 else
7829 CXXFLAGS=
7830 fi
7831fi
7832
7833
698dcdb6 7834echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
8168de4c 7835echo "configure:7836: checking how to run the C++ preprocessor" >&5
1e487827 7836if test -z "$CXXCPP"; then
698dcdb6
VZ
7837if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
7838 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 7839else
698dcdb6
VZ
7840 ac_ext=C
7841# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7842ac_cpp='$CXXCPP $CPPFLAGS'
7843ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7844ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7845cross_compiling=$ac_cv_prog_cxx_cross
7846 CXXCPP="${CXX-g++} -E"
7847 cat > conftest.$ac_ext <<EOF
8168de4c 7848#line 7849 "configure"
1e487827 7849#include "confdefs.h"
698dcdb6
VZ
7850#include <stdlib.h>
7851EOF
7852ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8168de4c 7853{ (eval echo configure:7854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
7854ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7855if test -z "$ac_err"; then
1e487827
VS
7856 :
7857else
698dcdb6
VZ
7858 echo "$ac_err" >&5
7859 echo "configure: failed program was:" >&5
1e487827 7860 cat conftest.$ac_ext >&5
698dcdb6
VZ
7861 rm -rf conftest*
7862 CXXCPP=/lib/cpp
1e487827 7863fi
698dcdb6
VZ
7864rm -f conftest*
7865 ac_cv_prog_CXXCPP="$CXXCPP"
7866ac_ext=C
7867# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7868ac_cpp='$CXXCPP $CPPFLAGS'
7869ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7870ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7871cross_compiling=$ac_cv_prog_cxx_cross
1e487827 7872fi
1e487827 7873fi
698dcdb6
VZ
7874CXXCPP="$ac_cv_prog_CXXCPP"
7875echo "$ac_t""$CXXCPP" 1>&6
1e487827 7876
10f2d63a
VZ
7877
7878CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
7879
7880ac_ext=c
698dcdb6 7881# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 7882ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
7883ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7884ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7885cross_compiling=$ac_cv_prog_cc_cross
7886
7887
7888# Extract the first word of "ranlib", so it can be a program name with args.
7889set dummy ranlib; ac_word=$2
7890echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8168de4c 7891echo "configure:7892: checking for $ac_word" >&5
698dcdb6
VZ
7892if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
7893 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
7894else
7895 if test -n "$RANLIB"; then
7896 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7897else
698dcdb6
VZ
7898 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7899 ac_dummy="$PATH"
7900 for ac_dir in $ac_dummy; do
7901 test -z "$ac_dir" && ac_dir=.
7902 if test -f $ac_dir/$ac_word; then
7903 ac_cv_prog_RANLIB="ranlib"
7904 break
7905 fi
7906 done
7907 IFS="$ac_save_ifs"
7908 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
7909fi
7910fi
698dcdb6 7911RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 7912if test -n "$RANLIB"; then
698dcdb6 7913 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 7914else
698dcdb6 7915 echo "$ac_t""no" 1>&6
10f2d63a
VZ
7916fi
7917
7918
7919# Extract the first word of "ar", so it can be a program name with args.
7920set dummy ar; ac_word=$2
698dcdb6 7921echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8168de4c 7922echo "configure:7923: checking for $ac_word" >&5
698dcdb6
VZ
7923if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
7924 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
7925else
7926 if test -n "$AR"; then
7927 ac_cv_prog_AR="$AR" # Let the user override the test.
7928else
698dcdb6
VZ
7929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7930 ac_dummy="$PATH"
7931 for ac_dir in $ac_dummy; do
7932 test -z "$ac_dir" && ac_dir=.
7933 if test -f $ac_dir/$ac_word; then
7934 ac_cv_prog_AR="ar"
7935 break
7936 fi
7937 done
7938 IFS="$ac_save_ifs"
10f2d63a
VZ
7939 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
7940fi
7941fi
698dcdb6 7942AR="$ac_cv_prog_AR"
10f2d63a 7943if test -n "$AR"; then
698dcdb6 7944 echo "$ac_t""$AR" 1>&6
10f2d63a 7945else
698dcdb6 7946 echo "$ac_t""no" 1>&6
10f2d63a
VZ
7947fi
7948
698dcdb6 7949
10f2d63a
VZ
7950# Find a good install program. We prefer a C program (faster),
7951# so one script is as good as another. But avoid the broken or
7952# incompatible versions:
7953# SysV /etc/install, /usr/sbin/install
7954# SunOS /usr/etc/install
7955# IRIX /sbin/install
7956# AIX /bin/install
7957# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7958# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7959# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7960# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 7961echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8168de4c 7962echo "configure:7963: checking for a BSD compatible install" >&5
10f2d63a 7963if test -z "$INSTALL"; then
698dcdb6
VZ
7964if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
7965 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 7966else
698dcdb6 7967 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
7968 for ac_dir in $PATH; do
7969 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
7970 case "$ac_dir/" in
7971 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
7972 *)
7973 # OSF1 and SCO ODT 3.0 have their own names for install.
7974 # Don't use installbsd from OSF since it installs stuff as root
7975 # by default.
7976 for ac_prog in ginstall scoinst install; do
698dcdb6 7977 if test -f $ac_dir/$ac_prog; then
10f2d63a 7978 if test $ac_prog = install &&
698dcdb6 7979 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
7980 # AIX install. It has an incompatible calling convention.
7981 :
7982 else
7983 ac_cv_path_install="$ac_dir/$ac_prog -c"
7984 break 2
7985 fi
7986 fi
7987 done
7988 ;;
7989 esac
7990 done
698dcdb6 7991 IFS="$ac_save_IFS"
10f2d63a
VZ
7992
7993fi
7994 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 7995 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
7996 else
7997 # As a last resort, use the slow shell script. We don't cache a
7998 # path for INSTALL within a source directory, because that will
7999 # break other packages using the cache if that directory is
8000 # removed, or if the path is relative.
698dcdb6 8001 INSTALL="$ac_install_sh"
10f2d63a
VZ
8002 fi
8003fi
698dcdb6 8004echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
8005
8006# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8007# It thinks the first close brace ends the variable substitution.
8008test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8009
698dcdb6 8010test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
8011
8012test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8013
698dcdb6 8014
10f2d63a
VZ
8015# Extract the first word of "strip", so it can be a program name with args.
8016set dummy strip; ac_word=$2
698dcdb6 8017echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8168de4c 8018echo "configure:8019: checking for $ac_word" >&5
698dcdb6
VZ
8019if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8020 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8021else
8022 if test -n "$STRIP"; then
8023 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8024else
698dcdb6
VZ
8025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8026 ac_dummy="$PATH"
8027 for ac_dir in $ac_dummy; do
8028 test -z "$ac_dir" && ac_dir=.
8029 if test -f $ac_dir/$ac_word; then
8030 ac_cv_prog_STRIP="strip"
8031 break
8032 fi
8033 done
8034 IFS="$ac_save_ifs"
10f2d63a
VZ
8035 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8036fi
8037fi
698dcdb6 8038STRIP="$ac_cv_prog_STRIP"
10f2d63a 8039if test -n "$STRIP"; then
698dcdb6 8040 echo "$ac_t""$STRIP" 1>&6
10f2d63a 8041else
698dcdb6 8042 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8043fi
8044
698dcdb6
VZ
8045
8046echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8168de4c 8047echo "configure:8048: checking make for VPATH support" >&5
10f2d63a
VZ
8048cat - << EOF > confMake
8049check : file
8050 cp \$? \$@
8051 cp \$? final_file
8052EOF
8053
8054if test ! -d sub ; then
8055 mkdir sub
8056fi
8057echo dummy > sub/file
f6bcfd97 8058${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
8059RESULT=$?
8060rm -f sub/file check final_file confMake
8061rmdir sub
8062if test "$RESULT" = 0; then
698dcdb6 8063 echo "$ac_t""yes" 1>&6
10f2d63a 8064else
698dcdb6
VZ
8065 echo "$ac_t""no" 1>&6
8066 { echo "configure: error:
1e487827
VS
8067You need a make-utility that is able to use the variable
8068VPATH correctly.
8069If your version of make does not support VPATH correctly,
8070please install GNU-make (possibly as gmake), and start
8071configure with the following command:
8072export MAKE=gmake; ./configure for sh-type shells
8073setenv MAKE gmake; ./configure for csh-type shells
8074Also please do remember to use gmake in this case every time
8075you are trying to compile.
698dcdb6 8076" 1>&2; exit 1; }
10f2d63a
VZ
8077fi
8078
8079for ac_prog in 'bison -y' byacc
8080do
698dcdb6 8081# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 8082set dummy $ac_prog; ac_word=$2
698dcdb6 8083echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8168de4c 8084echo "configure:8085: checking for $ac_word" >&5
698dcdb6
VZ
8085if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8086 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8087else
8088 if test -n "$YACC"; then
8089 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8090else
698dcdb6
VZ
8091 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8092 ac_dummy="$PATH"
8093 for ac_dir in $ac_dummy; do
8094 test -z "$ac_dir" && ac_dir=.
8095 if test -f $ac_dir/$ac_word; then
8096 ac_cv_prog_YACC="$ac_prog"
8097 break
8098 fi
8099 done
8100 IFS="$ac_save_ifs"
10f2d63a
VZ
8101fi
8102fi
698dcdb6 8103YACC="$ac_cv_prog_YACC"
10f2d63a 8104if test -n "$YACC"; then
698dcdb6 8105 echo "$ac_t""$YACC" 1>&6
10f2d63a 8106else
698dcdb6 8107 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8108fi
8109
698dcdb6 8110test -n "$YACC" && break
10f2d63a
VZ
8111done
8112test -n "$YACC" || YACC="yacc"
8113
698dcdb6
VZ
8114
8115# Extract the first word of "flex", so it can be a program name with args.
8116set dummy flex; ac_word=$2
8117echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8168de4c 8118echo "configure:8119: checking for $ac_word" >&5
698dcdb6
VZ
8119if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8120 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8121else
8122 if test -n "$LEX"; then
8123 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8124else
698dcdb6
VZ
8125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8126 ac_dummy="$PATH"
8127 for ac_dir in $ac_dummy; do
8128 test -z "$ac_dir" && ac_dir=.
8129 if test -f $ac_dir/$ac_word; then
8130 ac_cv_prog_LEX="flex"
8131 break
8132 fi
8133 done
8134 IFS="$ac_save_ifs"
8135 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
8136fi
8137fi
698dcdb6 8138LEX="$ac_cv_prog_LEX"
10f2d63a 8139if test -n "$LEX"; then
698dcdb6 8140 echo "$ac_t""$LEX" 1>&6
10f2d63a 8141else
698dcdb6 8142 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8143fi
8144
8145if test -z "$LEXLIB"
8146then
698dcdb6
VZ
8147 case "$LEX" in
8148 flex*) ac_lib=fl ;;
8149 *) ac_lib=l ;;
8150 esac
8151 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8168de4c 8152echo "configure:8153: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
8153ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8154if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8155 echo $ac_n "(cached) $ac_c" 1>&6
8156else
8157 ac_save_LIBS="$LIBS"
8158LIBS="-l$ac_lib $LIBS"
8159cat > conftest.$ac_ext <<EOF
8168de4c 8160#line 8161 "configure"
10f2d63a
VZ
8161#include "confdefs.h"
8162/* Override any gcc2 internal prototype to avoid an error. */
8163/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
8164 builtin and then its argument prototype would still apply. */
8165char yywrap();
10f2d63a 8166
698dcdb6
VZ
8167int main() {
8168yywrap()
8169; return 0; }
8170EOF
8168de4c 8171if { (eval echo configure:8172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8172 rm -rf conftest*
8173 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 8174else
698dcdb6
VZ
8175 echo "configure: failed program was:" >&5
8176 cat conftest.$ac_ext >&5
8177 rm -rf conftest*
8178 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 8179fi
698dcdb6
VZ
8180rm -f conftest*
8181LIBS="$ac_save_LIBS"
8182
10f2d63a 8183fi
698dcdb6
VZ
8184if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8185 echo "$ac_t""yes" 1>&6
8186 LEXLIB="-l$ac_lib"
8187else
8188 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8189fi
8190
8191fi
8192
8193
698dcdb6 8194echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8168de4c 8195echo "configure:8196: checking whether ln -s works" >&5
698dcdb6
VZ
8196if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8197 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8198else
698dcdb6
VZ
8199 rm -f conftestdata
8200if ln -s X conftestdata 2>/dev/null
8201then
8202 rm -f conftestdata
8203 ac_cv_prog_LN_S="ln -s"
10f2d63a 8204else
698dcdb6 8205 ac_cv_prog_LN_S=ln
10f2d63a
VZ
8206fi
8207fi
698dcdb6
VZ
8208LN_S="$ac_cv_prog_LN_S"
8209if test "$ac_cv_prog_LN_S" = "ln -s"; then
8210 echo "$ac_t""yes" 1>&6
10f2d63a 8211else
698dcdb6 8212 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8213fi
8214
8215
8216
8217SEARCH_INCLUDE="\
8218 /usr/local/include \
8219 \
8220 /usr/Motif-1.2/include \
8221 /usr/Motif-2.1/include \
8222 \
8223 /usr/include/Motif1.2 \
8224 /opt/xpm/include/X11 \
8225 /opt/GBxpm/include/ \
8226 /opt/GBxpm/X11/include/ \
8227 \
8228 /usr/Motif1.2/include \
8229 /usr/dt/include \
afc31813
VZ
8230 /usr/openwin/include \
8231 \
10f2d63a
VZ
8232 /usr/include/Xm \
8233 \
8234 /usr/X11R6/include \
afc31813 8235 /usr/X11R6.4/include \
10f2d63a
VZ
8236 /usr/X11R5/include \
8237 /usr/X11R4/include \
8238 \
10f2d63a
VZ
8239 /usr/include/X11R6 \
8240 /usr/include/X11R5 \
8241 /usr/include/X11R4 \
8242 \
8243 /usr/local/X11R6/include \
8244 /usr/local/X11R5/include \
8245 /usr/local/X11R4/include \
8246 \
8247 /usr/local/include/X11R6 \
8248 /usr/local/include/X11R5 \
8249 /usr/local/include/X11R4 \
8250 \
8251 /usr/X11/include \
8252 /usr/include/X11 \
8253 /usr/local/X11/include \
8254 /usr/local/include/X11 \
8255 \
8256 /usr/X386/include \
8257 /usr/x386/include \
8258 /usr/XFree86/include/X11 \
8259 \
cf27ef00 8260 X:/XFree86/include \
ec14dd32
VZ
8261 X:/XFree86/include/X11 \
8262 \
10f2d63a
VZ
8263 /usr/include/gtk \
8264 /usr/local/include/gtk \
8265 /usr/include/glib \
8266 /usr/local/include/glib \
8267 \
8268 /usr/include/qt \
8269 /usr/local/include/qt \
8270 \
8271 /usr/include/windows \
8272 /usr/include/wine \
8273 /usr/local/include/wine \
8274 \
8275 /usr/unsupported/include \
8276 /usr/athena/include \
8277 /usr/local/x11r5/include \
8278 /usr/lpp/Xamples/include \
8279 \
10f2d63a 8280 /usr/openwin/share/include \
928b5c08
VZ
8281 \
8282 /usr/include"
10f2d63a
VZ
8283
8284SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8285
698dcdb6
VZ
8286
8287cat > confcache <<\EOF
10f2d63a
VZ
8288# This file is a shell script that caches the results of configure
8289# tests run on this system so they can be shared between configure
698dcdb6
VZ
8290# scripts and configure runs. It is not useful on other systems.
8291# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8292#
698dcdb6
VZ
8293# By default, configure uses ./config.cache as the cache file,
8294# creating it if it does not exist already. You can give configure
8295# the --cache-file=FILE option to use a different cache file; that is
8296# what configure does when it calls configure scripts in
8297# subdirectories, so they share the cache.
8298# Giving --cache-file=/dev/null disables caching, for debugging configure.
8299# config.status only pays attention to the cache file if you give it the
8300# --recheck option to rerun configure.
10f2d63a 8301#
698dcdb6 8302EOF
10f2d63a
VZ
8303# The following way of writing the cache mishandles newlines in values,
8304# but we know of no workaround that is simple, portable, and efficient.
8305# So, don't put newlines in cache variables' values.
8306# Ultrix sh set writes to stderr and can't be redirected directly,
8307# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8308(set) 2>&1 |
8309 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8310 *ac_space=\ *)
8311 # `set' does not quote correctly, so add quotes (double-quote substitution
8312 # turns \\\\ into \\, and sed turns \\ into \).
8313 sed -n \
8314 -e "s/'/'\\\\''/g" \
8315 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8316 ;;
8317 *)
8318 # `set' quotes correctly as required by POSIX, so do not add quotes.
8319 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8320 ;;
8321 esac >> confcache
8322if cmp -s $cache_file confcache; then
8323 :
8324else
10f2d63a 8325 if test -w $cache_file; then
698dcdb6
VZ
8326 echo "updating cache $cache_file"
8327 cat confcache > $cache_file
10f2d63a
VZ
8328 else
8329 echo "not updating unwritable cache $cache_file"
8330 fi
8331fi
8332rm -f confcache
8333
698dcdb6
VZ
8334
8335
dad6c0ea
VZ
8336AFMINSTALL=
8337
10f2d63a 8338if test "$wxUSE_GUI" = "yes"; then
1e6feb95 8339 USE_GUI=1
10f2d63a 8340
1e6feb95
VZ
8341 TOOLKIT=
8342 TOOLKIT_INCLUDE=
10f2d63a 8343
1e6feb95
VZ
8344 GUI_TK_LIBRARY=
8345 GUI_TK_LINK=
10f2d63a 8346
1e6feb95
VZ
8347 WXGTK12=
8348 WXGTK127=
8349 WXGTK20=
10f2d63a 8350
1e6feb95 8351 WXWINE=
10f2d63a 8352
1e6feb95
VZ
8353 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
8354 if test "$cross_compiling" = "yes" ; then
8355 echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2
8356 else
8357 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
8168de4c 8358echo "configure:8359: checking for Windows headers" >&5
1e6feb95 8359
10f2d63a
VZ
8360ac_find_includes=
8361for ac_dir in $SEARCH_INCLUDE;
8362 do
8363 if test -f "$ac_dir/windows.h"; then
8364 ac_find_includes=$ac_dir
8365 break
8366 fi
8367 done
8368
1e6feb95
VZ
8369 if test "$ac_find_includes" != "" ; then
8370 echo "$ac_t""found $ac_find_includes" 1>&6
8371 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
8372 else
8373 echo "$ac_t""no" 1>&6
8374 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
8375 fi
10f2d63a 8376 fi
10f2d63a 8377
1e6feb95
VZ
8378 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
8379 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
f6bcfd97 8380
1e6feb95
VZ
8381 if test "$wxUSE_ODBC" = "yes" ; then
8382 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
8383 fi
10f2d63a 8384
1e6feb95
VZ
8385 if test "$wxUSE_MINGW" = 1; then
8386 LDFLAGS="$LDFLAGS -mwindows"
8387 fi
32832908 8388
1e6feb95
VZ
8389 TOOLKIT=MSW
8390 GUIDIST=MSW_DIST
32832908 8391
1e6feb95
VZ
8392 RCINCSWITCH="--include-dir"
8393 RCDEFSWITCH="--define"
8394 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
8395 RCINPUTSWITCH="-i"
8396 RCOUTPUTSWITCH="-o"
8397 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
32832908 8398
1e6feb95
VZ
8399 RESPROGRAM="\$(RES_PROGRAM)"
8400 fi
10f2d63a 8401
1e6feb95 8402 if test "$wxUSE_GTK" = 1; then
8168de4c
VZ
8403 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
8404echo "configure:8405: checking for GTK+ version" >&5
8405
8406 gtk_version_cached=1
8407 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
8408 echo $ac_n "(cached) $ac_c" 1>&6
8409else
8410
8411 gtk_version_cached=0
8412 echo "$ac_t""""" 1>&6
8413
8414 wx_cv_lib_gtk=
8415 if test "x$wxUSE_GTK2" = "xyes"; then
8416 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6f72b082
OK
8417if test "${with_gtk_prefix+set}" = set; then
8418 withval="$with_gtk_prefix"
8419 gtk_config_prefix="$withval"
8420else
8421 gtk_config_prefix=""
698dcdb6 8422fi
6f72b082
OK
8423
8424# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
8425if test "${with_gtk_exec_prefix+set}" = set; then
8426 withval="$with_gtk_exec_prefix"
8427 gtk_config_exec_prefix="$withval"
8428else
8429 gtk_config_exec_prefix=""
698dcdb6
VZ
8430fi
8431
6f72b082
OK
8432# Check whether --enable-gtktest or --disable-gtktest was given.
8433if test "${enable_gtktest+set}" = set; then
8434 enableval="$enable_gtktest"
698dcdb6 8435 :
6f72b082
OK
8436else
8437 enable_gtktest=yes
698dcdb6
VZ
8438fi
8439
6f72b082 8440
8168de4c 8441 for module in .
6f72b082
OK
8442 do
8443 case "$module" in
8168de4c 8444 gthread)
6f72b082
OK
8445 gtk_config_args="$gtk_config_args gthread"
8446 ;;
8447 esac
8448 done
8449
8450 if test x$gtk_config_exec_prefix != x ; then
8451 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8452 if test x${GTK_CONFIG_2_0+set} != xset ; then
8453 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
8454 fi
8455 fi
8456 if test x$gtk_config_prefix != x ; then
8457 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8458 if test x${GTK_CONFIG_2_0+set} != xset ; then
8459 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
8460 fi
8461 fi
8462
8463 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
8464set dummy gtk-config-2.0; ac_word=$2
698dcdb6 8465echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8168de4c 8466echo "configure:8467: checking for $ac_word" >&5
698dcdb6
VZ
8467if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
8468 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 8469else
698dcdb6
VZ
8470 case "$GTK_CONFIG_2_0" in
8471 /*)
6f72b082
OK
8472 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
8473 ;;
698dcdb6
VZ
8474 ?:/*)
8475 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
8476 ;;
6f72b082 8477 *)
698dcdb6
VZ
8478 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8479 ac_dummy="$PATH"
8480 for ac_dir in $ac_dummy; do
8481 test -z "$ac_dir" && ac_dir=.
8482 if test -f $ac_dir/$ac_word; then
8483 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
8484 break
8485 fi
8486 done
8487 IFS="$ac_save_ifs"
6f72b082
OK
8488 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
8489 ;;
8490esac
8491fi
698dcdb6 8492GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 8493if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 8494 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 8495else
698dcdb6 8496 echo "$ac_t""no" 1>&6
6f72b082
OK
8497fi
8498
8499 min_gtk_version=1.3.1
698dcdb6 8500 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8168de4c 8501echo "configure:8502: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
8502 no_gtk=""
8503 if test "$GTK_CONFIG_2_0" = "no" ; then
8504 no_gtk=yes
8505 else
8506 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
8507 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
8508 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8509 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8510 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8511 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8512 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8513 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8514 if test "x$enable_gtktest" = "xyes" ; then
8515 ac_save_CFLAGS="$CFLAGS"
8516 ac_save_LIBS="$LIBS"
8517 CFLAGS="$CFLAGS $GTK_CFLAGS"
8518 LIBS="$GTK_LIBS $LIBS"
8519 rm -f conf.gtktest
8520 if test "$cross_compiling" = yes; then
8521 echo $ac_n "cross compiling; assumed OK... $ac_c"
8522else
698dcdb6 8523 cat > conftest.$ac_ext <<EOF
8168de4c 8524#line 8525 "configure"
6f72b082
OK
8525#include "confdefs.h"
8526
8527#include <gtk/gtk.h>
8528#include <stdio.h>
8529#include <stdlib.h>
8530
8168de4c 8531int
6f72b082
OK
8532main ()
8533{
8534 int major, minor, micro;
8535 char *tmp_version;
8536
8537 system ("touch conf.gtktest");
8538
8539 /* HP/UX 9 (%@#!) writes to sscanf strings */
8540 tmp_version = g_strdup("$min_gtk_version");
8541 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8542 printf("%s, bad version string\n", "$min_gtk_version");
8543 exit(1);
8544 }
8545
8546 if ((gtk_major_version != $gtk_config_major_version) ||
8547 (gtk_minor_version != $gtk_config_minor_version) ||
8548 (gtk_micro_version != $gtk_config_micro_version))
8549 {
8168de4c 8550 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
8551 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
8552 gtk_major_version, gtk_minor_version, gtk_micro_version);
8553 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
8554 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
8555 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8556 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8557 printf("*** required on your system.\n");
8558 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
8559 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
8560 printf("*** before re-running configure\n");
8168de4c 8561 }
6f72b082
OK
8562#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
8563 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8168de4c 8564 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
8565 (gtk_micro_version != GTK_MICRO_VERSION))
8566 {
8567 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8168de4c 8568 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 8569 printf("*** library (version %d.%d.%d)\n",
8168de4c 8570 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082
OK
8571 }
8572#endif /* defined (GTK_MAJOR_VERSION) ... */
8573 else
8574 {
8575 if ((gtk_major_version > major) ||
8576 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8577 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
8578 {
8579 return 0;
8580 }
8581 else
8582 {
8583 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
8584 gtk_major_version, gtk_minor_version, gtk_micro_version);
8585 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8168de4c 8586 major, minor, micro);
6f72b082
OK
8587 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
8588 printf("***\n");
8589 printf("*** If you have already installed a sufficiently new version, this error\n");
8590 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
8591 printf("*** being found. The easiest way to fix this is to remove the old version\n");
8592 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
8593 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
8594 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
8595 printf("*** so that the correct libraries are found at run-time))\n");
8596 }
8597 }
8598 return 1;
8599}
8600
698dcdb6 8601EOF
8168de4c 8602if { (eval echo configure:8603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 8603then
6f72b082
OK
8604 :
8605else
698dcdb6
VZ
8606 echo "configure: failed program was:" >&5
8607 cat conftest.$ac_ext >&5
8608 rm -fr conftest*
8609 no_gtk=yes
6f72b082 8610fi
698dcdb6 8611rm -fr conftest*
6f72b082 8612fi
698dcdb6 8613
6f72b082
OK
8614 CFLAGS="$ac_save_CFLAGS"
8615 LIBS="$ac_save_LIBS"
8616 fi
8617 fi
8618 if test "x$no_gtk" = x ; then
698dcdb6 8619 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8168de4c 8620 wx_cv_lib_gtk=2.0
6f72b082 8621 else
698dcdb6 8622 echo "$ac_t""no" 1>&6
6f72b082
OK
8623 if test "$GTK_CONFIG_2_0" = "no" ; then
8624 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
8625 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
8626 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
8627 echo "*** full path to gtk-config-2.0."
8628 else
8629 if test -f conf.gtktest ; then
8630 :
8631 else
8632 echo "*** Could not run GTK test program, checking why..."
8633 CFLAGS="$CFLAGS $GTK_CFLAGS"
8634 LIBS="$LIBS $GTK_LIBS"
698dcdb6 8635 cat > conftest.$ac_ext <<EOF
8168de4c 8636#line 8637 "configure"
6f72b082
OK
8637#include "confdefs.h"
8638
8639#include <gtk/gtk.h>
8640#include <stdio.h>
8641
698dcdb6
VZ
8642int main() {
8643 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
8644; return 0; }
8645EOF
8168de4c 8646if { (eval echo configure:8647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 8647 rm -rf conftest*
6f72b082
OK
8648 echo "*** The test program compiled, but did not run. This usually means"
8649 echo "*** that the run-time linker is not finding GTK or finding the wrong"
8650 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
8651 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8652 echo "*** to the installed location Also, make sure you have run ldconfig if that"
8653 echo "*** is required on your system"
8168de4c 8654 echo "***"
6f72b082
OK
8655 echo "*** If you have an old version installed, it is best to remove it, although"
8656 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8657 echo "***"
8658 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
8659 echo "*** came with the system with the command"
8660 echo "***"
698dcdb6 8661 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 8662else
698dcdb6
VZ
8663 echo "configure: failed program was:" >&5
8664 cat conftest.$ac_ext >&5
8665 rm -rf conftest*
8666 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
8667 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
8668 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
698dcdb6 8669 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 8670fi
698dcdb6 8671rm -f conftest*
6f72b082
OK
8672 CFLAGS="$ac_save_CFLAGS"
8673 LIBS="$ac_save_LIBS"
8674 fi
8675 fi
8676 GTK_CFLAGS=""
8677 GTK_LIBS=""
8168de4c
VZ
8678 gthread
8679 fi
8680
8681
8682 rm -f conf.gtktest
8683
8684 fi
8685
8686 if test -z "$wx_cv_lib_gtk"; then
8687
10f2d63a
VZ
8688 if test x$gtk_config_exec_prefix != x ; then
8689 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8690 if test x${GTK_CONFIG+set} != xset ; then
8691 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8692 fi
8693 fi
8694 if test x$gtk_config_prefix != x ; then
8695 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8696 if test x${GTK_CONFIG+set} != xset ; then
8697 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8698 fi
8699 fi
8700
8701 # Extract the first word of "gtk-config", so it can be a program name with args.
8702set dummy gtk-config; ac_word=$2
698dcdb6 8703echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8168de4c 8704echo "configure:8705: checking for $ac_word" >&5
698dcdb6
VZ
8705if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8706 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 8707else
698dcdb6
VZ
8708 case "$GTK_CONFIG" in
8709 /*)
f6bcfd97
BP
8710 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8711 ;;
698dcdb6
VZ
8712 ?:/*)
8713 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8714 ;;
f6bcfd97 8715 *)
698dcdb6
VZ
8716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8717 ac_dummy="$PATH"
8718 for ac_dir in $ac_dummy; do
8719 test -z "$ac_dir" && ac_dir=.
8720 if test -f $ac_dir/$ac_word; then
8721 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8722 break
8723 fi
8724 done
8725 IFS="$ac_save_ifs"
f6bcfd97
BP
8726 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8727 ;;
8728esac
8729fi
698dcdb6 8730GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 8731if test -n "$GTK_CONFIG"; then
698dcdb6 8732 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 8733else
698dcdb6 8734 echo "$ac_t""no" 1>&6
f6bcfd97
BP
8735fi
8736
8737 min_gtk_version=1.2.7
698dcdb6 8738 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8168de4c 8739echo "configure:8740: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
8740 no_gtk=""
8741 if test "$GTK_CONFIG" != "no" ; then
8742 GTK_CFLAGS=`$GTK_CONFIG --cflags`
8743 GTK_LIBS=`$GTK_CONFIG --libs gthread`
8744 ac_save_CFLAGS="$CFLAGS"
8745 ac_save_LIBS="$LIBS"
8746 CFLAGS="$CFLAGS $GTK_CFLAGS"
8747 LIBS="$LIBS $GTK_LIBS"
8748 if test "$cross_compiling" = yes; then
8749 echo $ac_n "cross compiling; assumed OK... $ac_c"
8750else
698dcdb6 8751 cat > conftest.$ac_ext <<EOF
8168de4c 8752#line 8753 "configure"
f6bcfd97
BP
8753#include "confdefs.h"
8754
8755#include <gtk/gtk.h>
8756#include <gtk/gtkfeatures.h>
8757#include <stdio.h>
8758#include <stdlib.h>
8759
8760int
8761main ()
8762{
8763 int major, minor, micro;
8764
8765 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
8766 printf("%s, bad version string\n", "$min_gtk_version");
8767 exit(1);
8768 }
8769
8770 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
8771 (GTK_MINOR_VERSION != gtk_minor_version) ||
8772 (GTK_MICRO_VERSION != gtk_micro_version)) {
8773 printf("Headers vs. library version mismatch!\n");
8774 exit(1);
8775 }
8776
8777 if (gtk_minor_version == 1) return FALSE;
8778
8779 return !((gtk_major_version > major) ||
8780 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8781 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
8782}
8783
698dcdb6 8784EOF
8168de4c 8785if { (eval echo configure:8786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 8786then
f6bcfd97
BP
8787 :
8788else
698dcdb6
VZ
8789 echo "configure: failed program was:" >&5
8790 cat conftest.$ac_ext >&5
8791 rm -fr conftest*
8792 no_gtk=yes
f6bcfd97 8793fi
698dcdb6 8794rm -fr conftest*
f6bcfd97 8795fi
698dcdb6 8796
f6bcfd97
BP
8797 CFLAGS="$ac_save_CFLAGS"
8798 LIBS="$ac_save_LIBS"
8799 else
8800 no_gtk=yes
8801 fi
8802 if test "x$no_gtk" = x ; then
698dcdb6 8803 echo "$ac_t""yes" 1>&6
8168de4c 8804 wx_cv_lib_gtk=1.2.7
f6bcfd97 8805 else
698dcdb6 8806 echo "$ac_t""no" 1>&6
f6bcfd97
BP
8807 GTK_CFLAGS=""
8808 GTK_LIBS=""
8809 :
8810 fi
698dcdb6
VZ
8811
8812
f6bcfd97 8813
8168de4c
VZ
8814 fi
8815
8816 if test -z "$wx_cv_lib_gtk"; then
8817
f6bcfd97
BP
8818 if test x$gtk_config_exec_prefix != x ; then
8819 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8820 if test x${GTK_CONFIG+set} != xset ; then
8821 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8822 fi
8823 fi
8824 if test x$gtk_config_prefix != x ; then
8825 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8826 if test x${GTK_CONFIG+set} != xset ; then
8827 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8828 fi
8829 fi
8830
8831 # Extract the first word of "gtk-config", so it can be a program name with args.
8832set dummy gtk-config; ac_word=$2
698dcdb6 8833echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8168de4c 8834echo "configure:8835: checking for $ac_word" >&5
698dcdb6
VZ
8835if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8836 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8837else
698dcdb6
VZ
8838 case "$GTK_CONFIG" in
8839 /*)
10f2d63a
VZ
8840 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8841 ;;
698dcdb6
VZ
8842 ?:/*)
8843 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8844 ;;
10f2d63a 8845 *)
698dcdb6
VZ
8846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8847 ac_dummy="$PATH"
8848 for ac_dir in $ac_dummy; do
8849 test -z "$ac_dir" && ac_dir=.
8850 if test -f $ac_dir/$ac_word; then
8851 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8852 break
8853 fi
8854 done
8855 IFS="$ac_save_ifs"
10f2d63a
VZ
8856 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8857 ;;
8858esac
8859fi
698dcdb6 8860GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 8861if test -n "$GTK_CONFIG"; then
698dcdb6 8862 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 8863else
698dcdb6 8864 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8865fi
8866
04165bec 8867 min_gtk_version=1.2.3
698dcdb6 8868 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8168de4c 8869echo "configure:8870: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
8870 no_gtk=""
8871 if test "$GTK_CONFIG" != "no" ; then
8872 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 8873 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
8874 ac_save_CFLAGS="$CFLAGS"
8875 ac_save_LIBS="$LIBS"
8876 CFLAGS="$CFLAGS $GTK_CFLAGS"
8877 LIBS="$LIBS $GTK_LIBS"
8878 if test "$cross_compiling" = yes; then
8879 echo $ac_n "cross compiling; assumed OK... $ac_c"
8880else
698dcdb6 8881 cat > conftest.$ac_ext <<EOF
8168de4c 8882#line 8883 "configure"
10f2d63a
VZ
8883#include "confdefs.h"
8884
8885#include <gtk/gtk.h>
f49f2b0c 8886#include <gtk/gtkfeatures.h>
10f2d63a 8887#include <stdio.h>
32832908 8888#include <stdlib.h>
10f2d63a
VZ
8889
8890int
8891main ()
8892{
8893 int major, minor, micro;
8894
8895 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
8896 printf("%s, bad version string\n", "$min_gtk_version");
8897 exit(1);
8898 }
8899
f49f2b0c
RR
8900 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
8901 (GTK_MINOR_VERSION != gtk_minor_version) ||
8902 (GTK_MICRO_VERSION != gtk_micro_version)) {
8903 printf("Headers vs. library version mismatch!\n");
8904 exit(1);
8905 }
8906
10f2d63a
VZ
8907 if (gtk_minor_version == 1) return FALSE;
8908
8909 return !((gtk_major_version > major) ||
8910 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8911 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
8912}
8913
698dcdb6 8914EOF
8168de4c 8915if { (eval echo configure:8916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 8916then
10f2d63a
VZ
8917 :
8918else
698dcdb6
VZ
8919 echo "configure: failed program was:" >&5
8920 cat conftest.$ac_ext >&5
8921 rm -fr conftest*
8922 no_gtk=yes
10f2d63a 8923fi
698dcdb6 8924rm -fr conftest*
10f2d63a 8925fi
698dcdb6 8926
10f2d63a
VZ
8927 CFLAGS="$ac_save_CFLAGS"
8928 LIBS="$ac_save_LIBS"
8929 else
8930 no_gtk=yes
8931 fi
8932 if test "x$no_gtk" = x ; then
698dcdb6 8933 echo "$ac_t""yes" 1>&6
8168de4c 8934 wx_cv_lib_gtk=1.2.3
10f2d63a 8935 else
698dcdb6 8936 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8937 GTK_CFLAGS=""
8938 GTK_LIBS=""
7e99ad86 8939 :
10f2d63a 8940 fi
698dcdb6
VZ
8941
8942
10f2d63a 8943
8168de4c
VZ
8944 fi
8945
8946 if test -z "$wx_cv_lib_gtk"; then
8947 wx_cv_lib_gtk=none
8948 fi
8949
1e6feb95 8950
8168de4c 8951fi
703e0a69 8952
698dcdb6 8953
8168de4c
VZ
8954 if test "$gtk_version_cached" = 1; then
8955 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
1e6feb95 8956 fi
698dcdb6 8957
8168de4c
VZ
8958 case "$wx_cv_lib_gtk" in
8959 2.0) WXGTK20=1
8960 ;;
8961 1.2.7) WXGTK127=1
8962 ;;
8963 1.2.3) WXGTK12=1
8964 ;;
8965 *) { echo "configure: error:
8966Please check that gtk-config is in path, the directory
8967where GTK+ libraries are installed (returned by
8968'gtk-config --libs' command) is in LD_LIBRARY_PATH or
8969equivalent variable and GTK+ is version 1.2.3 or above.
8970 " 1>&2; exit 1; }
8971 ;;
8972 esac
2224580a 8973
8168de4c 8974 TOOLKIT_INCLUDE="$GTK_CFLAGS"
1e6feb95 8975 GUI_TK_LIBRARY="$GTK_LIBS"
698dcdb6 8976
1e6feb95
VZ
8977 AFMINSTALL=afminstall
8978 TOOLKIT=GTK
8979 GUIDIST=GTK_DIST
7ec2881a 8980
1e6feb95 8981 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
8168de4c 8982echo "configure:8983: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
8983ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
8984if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8985 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 8986else
698dcdb6 8987 ac_save_LIBS="$LIBS"
7ec2881a 8988LIBS="-lgdk $LIBS"
698dcdb6 8989cat > conftest.$ac_ext <<EOF
8168de4c 8990#line 8991 "configure"
7ec2881a
RR
8991#include "confdefs.h"
8992/* Override any gcc2 internal prototype to avoid an error. */
8993/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
8994 builtin and then its argument prototype would still apply. */
8995char gdk_im_open();
8996
8997int main() {
8998gdk_im_open()
8999; return 0; }
9000EOF
8168de4c 9001if { (eval echo configure:9002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9002 rm -rf conftest*
9003 eval "ac_cv_lib_$ac_lib_var=yes"
9004else
9005 echo "configure: failed program was:" >&5
9006 cat conftest.$ac_ext >&5
9007 rm -rf conftest*
9008 eval "ac_cv_lib_$ac_lib_var=no"
9009fi
9010rm -f conftest*
9011LIBS="$ac_save_LIBS"
9012
9013fi
9014if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9015 echo "$ac_t""yes" 1>&6
9016 cat >> confdefs.h <<\EOF
7ec2881a
RR
9017#define HAVE_XIM 1
9018EOF
9019
698dcdb6
VZ
9020else
9021 echo "$ac_t""no" 1>&6
7ec2881a
RR
9022fi
9023
1e6feb95 9024 fi
10f2d63a 9025
1e6feb95
VZ
9026 if test "$wxUSE_MGL" = 1; then
9027
9028 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
8168de4c 9029echo "configure:9030: checking for SciTech MGL library" >&5
1e6feb95
VZ
9030 if test "x$MGL_ROOT" = x ; then
9031 echo "$ac_t""not found" 1>&6
9032 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9033 else
9034 echo "$ac_t""$MGL_ROOT" 1>&6
9035 fi
9036
9037 MGL_OS=linux/gcc/glibc
9038 MGL_LIB_TYPE=""
9039
9040 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9041 if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then
9042 MGL_LIB_TYPE=debug
9043 fi
9044 fi
9045 if test "x$MGL_LIB_TYPE" = x ; then
9046 if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then
9047 MGL_LIB_TYPE=release
9048 else
9049 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9050 fi
9051 fi
9052
9053 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9054 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm"
9055
9056 AFMINSTALL=afminstall
9057 TOOLKIT=MGL
9058 GUIDIST=MGL_DIST
9059 fi
9060
9061 if test "$wxUSE_WINE" = 1; then
9062 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
8168de4c 9063echo "configure:9064: checking for WINE includes" >&5
1e6feb95 9064
10f2d63a
VZ
9065ac_find_includes=
9066for ac_dir in $SEARCH_INCLUDE;
9067 do
9068 if test -f "$ac_dir/windows.h"; then
9069 ac_find_includes=$ac_dir
9070 break
9071 fi
9072 done
9073
1e6feb95
VZ
9074 if test "$ac_find_includes" != "" ; then
9075 echo "$ac_t""found $ac_find_includes" 1>&6
9076 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
9077 else
9078 echo "$ac_t""no" 1>&6
9079 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9080 fi
10f2d63a 9081
1e6feb95
VZ
9082 XPM_LINK=""
9083 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
8168de4c 9084echo "configure:9085: checking for Xpm library" >&5
1e6feb95 9085
10f2d63a
VZ
9086ac_find_libraries=
9087for ac_dir in $SEARCH_LIB;
9088 do
9089 for ac_extension in a so sl; do
9090 if test -f "$ac_dir/libXpm.$ac_extension"; then
9091 ac_find_libraries=$ac_dir
9092 break 2
9093 fi
9094 done
9095 done
9096
1e6feb95
VZ
9097 if test "$ac_find_libraries" != "" ; then
9098 GUI_TK_LIBRARY="-L$ac_find_libraries"
9099 XPM_LINK="-lXpm"
9100 cat >> confdefs.h <<\EOF
10f2d63a
VZ
9101#define wxHAVE_LIB_XPM 1
9102EOF
9103
1e6feb95
VZ
9104 echo "$ac_t""found at $ac_find_libraries" 1>&6
9105 else
9106 echo "$ac_t""no" 1>&6
9107 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9108 fi
10f2d63a 9109
1e6feb95
VZ
9110 MESA_LINK=""
9111 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
8168de4c 9112echo "configure:9113: checking for Mesa library" >&5
1e6feb95 9113
10f2d63a
VZ
9114ac_find_libraries=
9115for ac_dir in $SEARCH_LIB;
9116 do
9117 for ac_extension in a so sl; do
9118 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9119 ac_find_libraries=$ac_dir
9120 break 2
9121 fi
9122 done
9123 done
9124
1e6feb95
VZ
9125 if test "$ac_find_libraries" != "" ; then
9126 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9127 MESA_LINK="-lMesaGL"
9128 echo "$ac_t""found at $ac_find_libraries" 1>&6
9129 else
9130 { echo "configure: error: no" 1>&2; exit 1; }
9131 fi
10f2d63a 9132
1e6feb95
VZ
9133 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9134 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9135 WXWINE=1
9136 TOOLKIT=MSW
9137 GUIDIST=MSW_DIST
9138 fi
698dcdb6 9139
1e6feb95
VZ
9140
9141 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
9142# paths, otherwise set no_x=yes.
9143# Uses ac_ vars as temps to allow command line to override cache and checks.
9144# --without-x overrides everything else, but does not touch the cache.
9145echo $ac_n "checking for X""... $ac_c" 1>&6
8168de4c 9146echo "configure:9147: checking for X" >&5
ab9b9eab
VZ
9147
9148# Check whether --with-x or --without-x was given.
9149if test "${with_x+set}" = set; then
9150 withval="$with_x"
698dcdb6
VZ
9151 :
9152fi
ba337fe7 9153
ab9b9eab
VZ
9154# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9155if test "x$with_x" = xno; then
9156 # The user explicitly disabled X.
9157 have_x=disabled
9158else
9159 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9160 # Both variables are already set.
9161 have_x=yes
9162 else
698dcdb6
VZ
9163if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9164 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
9165else
9166 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
9167ac_x_includes=NO ac_x_libraries=NO
9168rm -fr conftestdir
9169if mkdir conftestdir; then
9170 cd conftestdir
ab9b9eab 9171 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 9172 cat > Imakefile <<'EOF'
ab9b9eab
VZ
9173acfindx:
9174 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9175EOF
9176 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9177 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9178 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9179 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 9180 for ac_extension in a so sl; do
ab9b9eab 9181 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 9182 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 9183 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
9184 fi
9185 done
ab9b9eab
VZ
9186 # Screen out bogus values from the imake configuration. They are
9187 # bogus both because they are the default anyway, and because
9188 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 9189 case "$ac_im_incroot" in
ab9b9eab 9190 /usr/include) ;;
698dcdb6 9191 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 9192 esac
698dcdb6 9193 case "$ac_im_usrlibdir" in
ab9b9eab 9194 /usr/lib | /lib) ;;
698dcdb6 9195 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 9196 esac
ba337fe7 9197 fi
ab9b9eab 9198 cd ..
698dcdb6 9199 rm -fr conftestdir
ab9b9eab 9200fi
10f2d63a 9201
698dcdb6
VZ
9202if test "$ac_x_includes" = NO; then
9203 # Guess where to find include files, by looking for this one X11 .h file.
9204 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9205
ab9b9eab 9206 # First, try using that file with no special directory specified.
698dcdb6 9207cat > conftest.$ac_ext <<EOF
8168de4c 9208#line 9209 "configure"
ab9b9eab 9209#include "confdefs.h"
698dcdb6
VZ
9210#include <$x_direct_test_include>
9211EOF
9212ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8168de4c 9213{ (eval echo configure:9214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
9214ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9215if test -z "$ac_err"; then
9216 rm -rf conftest*
ab9b9eab
VZ
9217 # We can compile using X headers with no special include directory.
9218ac_x_includes=
9219else
698dcdb6
VZ
9220 echo "$ac_err" >&5
9221 echo "configure: failed program was:" >&5
ab9b9eab 9222 cat conftest.$ac_ext >&5
698dcdb6
VZ
9223 rm -rf conftest*
9224 # Look for the header file in a standard set of common directories.
9225# Check X11 before X11Rn because it is often a symlink to the current release.
9226 for ac_dir in \
9227 /usr/X11/include \
9228 /usr/X11R6/include \
9229 /usr/X11R5/include \
9230 /usr/X11R4/include \
9231 \
9232 /usr/include/X11 \
9233 /usr/include/X11R6 \
9234 /usr/include/X11R5 \
9235 /usr/include/X11R4 \
9236 \
9237 /usr/local/X11/include \
9238 /usr/local/X11R6/include \
9239 /usr/local/X11R5/include \
9240 /usr/local/X11R4/include \
9241 \
9242 /usr/local/include/X11 \
9243 /usr/local/include/X11R6 \
9244 /usr/local/include/X11R5 \
9245 /usr/local/include/X11R4 \
9246 \
9247 /usr/X386/include \
9248 /usr/x386/include \
9249 /usr/XFree86/include/X11 \
9250 \
9251 /usr/include \
9252 /usr/local/include \
9253 /usr/unsupported/include \
9254 /usr/athena/include \
9255 /usr/local/x11r5/include \
9256 /usr/lpp/Xamples/include \
9257 \
9258 /usr/openwin/include \
9259 /usr/openwin/share/include \
9260 ; \
9261 do
9262 if test -r "$ac_dir/$x_direct_test_include"; then
9263 ac_x_includes=$ac_dir
9264 break
9265 fi
9266 done
ab9b9eab 9267fi
698dcdb6
VZ
9268rm -f conftest*
9269fi # $ac_x_includes = NO
10f2d63a 9270
698dcdb6 9271if test "$ac_x_libraries" = NO; then
ab9b9eab 9272 # Check for the libraries.
698dcdb6
VZ
9273
9274 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9275 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9276
ab9b9eab
VZ
9277 # See if we find them without any special options.
9278 # Don't add to $LIBS permanently.
698dcdb6
VZ
9279 ac_save_LIBS="$LIBS"
9280 LIBS="-l$x_direct_test_library $LIBS"
9281cat > conftest.$ac_ext <<EOF
8168de4c 9282#line 9283 "configure"
ab9b9eab 9283#include "confdefs.h"
698dcdb6
VZ
9284
9285int main() {
9286${x_direct_test_function}()
9287; return 0; }
9288EOF
8168de4c 9289if { (eval echo configure:9290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9290 rm -rf conftest*
9291 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
9292# We can link X programs with no special library path.
9293ac_x_libraries=
9294else
698dcdb6
VZ
9295 echo "configure: failed program was:" >&5
9296 cat conftest.$ac_ext >&5
9297 rm -rf conftest*
9298 LIBS="$ac_save_LIBS"
9299# First see if replacing the include by lib works.
9300# Check X11 before X11Rn because it is often a symlink to the current release.
9301for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9302 /usr/X11/lib \
9303 /usr/X11R6/lib \
9304 /usr/X11R5/lib \
9305 /usr/X11R4/lib \
9306 \
9307 /usr/lib/X11 \
9308 /usr/lib/X11R6 \
9309 /usr/lib/X11R5 \
9310 /usr/lib/X11R4 \
9311 \
9312 /usr/local/X11/lib \
9313 /usr/local/X11R6/lib \
9314 /usr/local/X11R5/lib \
9315 /usr/local/X11R4/lib \
9316 \
9317 /usr/local/lib/X11 \
9318 /usr/local/lib/X11R6 \
9319 /usr/local/lib/X11R5 \
9320 /usr/local/lib/X11R4 \
9321 \
9322 /usr/X386/lib \
9323 /usr/x386/lib \
9324 /usr/XFree86/lib/X11 \
9325 \
9326 /usr/lib \
9327 /usr/local/lib \
9328 /usr/unsupported/lib \
9329 /usr/athena/lib \
9330 /usr/local/x11r5/lib \
9331 /usr/lpp/Xamples/lib \
9332 /lib/usr/lib/X11 \
9333 \
9334 /usr/openwin/lib \
9335 /usr/openwin/share/lib \
9336 ; \
ab9b9eab
VZ
9337do
9338 for ac_extension in a so sl; do
698dcdb6 9339 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
9340 ac_x_libraries=$ac_dir
9341 break 2
10f2d63a 9342 fi
10f2d63a 9343 done
ab9b9eab
VZ
9344done
9345fi
698dcdb6
VZ
9346rm -f conftest*
9347fi # $ac_x_libraries = NO
10f2d63a 9348
698dcdb6 9349if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
9350 # Didn't find X anywhere. Cache the known absence of X.
9351 ac_cv_have_x="have_x=no"
9352else
9353 # Record where we found X for the cache.
9354 ac_cv_have_x="have_x=yes \
9355 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9356fi
9357fi
10f2d63a 9358 fi
ab9b9eab
VZ
9359 eval "$ac_cv_have_x"
9360fi # $with_x != no
10f2d63a 9361
ab9b9eab 9362if test "$have_x" != yes; then
698dcdb6 9363 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
9364 no_x=yes
9365else
9366 # If each of the values was on the command line, it overrides each guess.
9367 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9368 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9369 # Update the cache value to reflect the command line values.
9370 ac_cv_have_x="have_x=yes \
9371 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 9372 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 9373fi
10f2d63a 9374
ab9b9eab
VZ
9375if test "$no_x" = yes; then
9376 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 9377 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
9378#define X_DISPLAY_MISSING 1
9379EOF
10f2d63a 9380
ab9b9eab
VZ
9381 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9382else
9383 if test -n "$x_includes"; then
9384 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
9385 fi
9386
ab9b9eab
VZ
9387 # It would also be nice to do this for all -L options, not just this one.
9388 if test -n "$x_libraries"; then
9389 X_LIBS="$X_LIBS -L$x_libraries"
9390 # For Solaris; some versions of Sun CC require a space after -R and
9391 # others require no space. Words are not sufficient . . . .
698dcdb6 9392 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 9393 "SunOS 5"*)
698dcdb6 9394 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
8168de4c 9395echo "configure:9396: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
9396 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
9397 cat > conftest.$ac_ext <<EOF
8168de4c 9398#line 9399 "configure"
ab9b9eab 9399#include "confdefs.h"
10f2d63a 9400
698dcdb6 9401int main() {
788deba1 9402
698dcdb6
VZ
9403; return 0; }
9404EOF
8168de4c 9405if { (eval echo configure:9406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9406 rm -rf conftest*
ab9b9eab
VZ
9407 ac_R_nospace=yes
9408else
698dcdb6
VZ
9409 echo "configure: failed program was:" >&5
9410 cat conftest.$ac_ext >&5
9411 rm -rf conftest*
9412 ac_R_nospace=no
ab9b9eab 9413fi
698dcdb6 9414rm -f conftest*
ab9b9eab 9415 if test $ac_R_nospace = yes; then
698dcdb6 9416 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9417 X_LIBS="$X_LIBS -R$x_libraries"
9418 else
9419 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 9420 cat > conftest.$ac_ext <<EOF
8168de4c 9421#line 9422 "configure"
ab9b9eab 9422#include "confdefs.h"
788deba1 9423
698dcdb6 9424int main() {
ab9b9eab 9425
698dcdb6
VZ
9426; return 0; }
9427EOF
8168de4c 9428if { (eval echo configure:9429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9429 rm -rf conftest*
ab9b9eab
VZ
9430 ac_R_space=yes
9431else
698dcdb6
VZ
9432 echo "configure: failed program was:" >&5
9433 cat conftest.$ac_ext >&5
9434 rm -rf conftest*
9435 ac_R_space=no
ab9b9eab 9436fi
698dcdb6 9437rm -f conftest*
ab9b9eab 9438 if test $ac_R_space = yes; then
698dcdb6 9439 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
9440 X_LIBS="$X_LIBS -R $x_libraries"
9441 else
698dcdb6 9442 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
9443 fi
9444 fi
698dcdb6 9445 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
9446 esac
9447 fi
9448
9449 # Check for system-dependent libraries X programs must link with.
9450 # Do this before checking for the system-independent R6 libraries
9451 # (-lICE), since we may need -lsocket or whatever for X linking.
9452
9453 if test "$ISC" = yes; then
9454 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9455 else
698dcdb6
VZ
9456 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
9457 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 9458 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 9459 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
8168de4c 9460echo "configure:9461: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
9461ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9462if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9463 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9464else
698dcdb6 9465 ac_save_LIBS="$LIBS"
ab9b9eab 9466LIBS="-ldnet $LIBS"
698dcdb6 9467cat > conftest.$ac_ext <<EOF
8168de4c 9468#line 9469 "configure"
ab9b9eab
VZ
9469#include "confdefs.h"
9470/* Override any gcc2 internal prototype to avoid an error. */
9471/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9472 builtin and then its argument prototype would still apply. */
9473char dnet_ntoa();
9474
9475int main() {
9476dnet_ntoa()
9477; return 0; }
9478EOF
8168de4c 9479if { (eval echo configure:9480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9480 rm -rf conftest*
9481 eval "ac_cv_lib_$ac_lib_var=yes"
9482else
9483 echo "configure: failed program was:" >&5
9484 cat conftest.$ac_ext >&5
9485 rm -rf conftest*
9486 eval "ac_cv_lib_$ac_lib_var=no"
9487fi
9488rm -f conftest*
9489LIBS="$ac_save_LIBS"
9490
9491fi
9492if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9493 echo "$ac_t""yes" 1>&6
ab9b9eab 9494 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
9495else
9496 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9497fi
9498
9499 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 9500 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
8168de4c 9501echo "configure:9502: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
9502ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9503if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9504 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9505else
698dcdb6 9506 ac_save_LIBS="$LIBS"
ab9b9eab 9507LIBS="-ldnet_stub $LIBS"
698dcdb6 9508cat > conftest.$ac_ext <<EOF
8168de4c 9509#line 9510 "configure"
ab9b9eab
VZ
9510#include "confdefs.h"
9511/* Override any gcc2 internal prototype to avoid an error. */
9512/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9513 builtin and then its argument prototype would still apply. */
9514char dnet_ntoa();
9515
9516int main() {
9517dnet_ntoa()
9518; return 0; }
9519EOF
8168de4c 9520if { (eval echo configure:9521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9521 rm -rf conftest*
9522 eval "ac_cv_lib_$ac_lib_var=yes"
9523else
9524 echo "configure: failed program was:" >&5
9525 cat conftest.$ac_ext >&5
9526 rm -rf conftest*
9527 eval "ac_cv_lib_$ac_lib_var=no"
9528fi
9529rm -f conftest*
9530LIBS="$ac_save_LIBS"
9531
9532fi
9533if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9534 echo "$ac_t""yes" 1>&6
ab9b9eab 9535 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
9536else
9537 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9538fi
9539
9540 fi
9541
9542 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9543 # to get the SysV transport functions.
698dcdb6 9544 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
9545 # needs -lnsl.
9546 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
9547 # on Irix 5.2, according to dickey@clark.net.
9548 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
8168de4c 9549echo "configure:9550: checking for gethostbyname" >&5
698dcdb6
VZ
9550if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
9551 echo $ac_n "(cached) $ac_c" 1>&6
9552else
9553 cat > conftest.$ac_ext <<EOF
8168de4c 9554#line 9555 "configure"
ab9b9eab
VZ
9555#include "confdefs.h"
9556/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 9557 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
9558#include <assert.h>
9559/* Override any gcc2 internal prototype to avoid an error. */
9560/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9561 builtin and then its argument prototype would still apply. */
9562char gethostbyname();
9563
9564int main() {
ab9b9eab
VZ
9565
9566/* The GNU C library defines this for functions which it implements
9567 to always fail with ENOSYS. Some functions are actually named
9568 something starting with __ and the normal name is an alias. */
9569#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9570choke me
9571#else
698dcdb6 9572gethostbyname();
ab9b9eab
VZ
9573#endif
9574
698dcdb6
VZ
9575; return 0; }
9576EOF
8168de4c 9577if { (eval echo configure:9578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9578 rm -rf conftest*
9579 eval "ac_cv_func_gethostbyname=yes"
9580else
9581 echo "configure: failed program was:" >&5
9582 cat conftest.$ac_ext >&5
9583 rm -rf conftest*
9584 eval "ac_cv_func_gethostbyname=no"
9585fi
9586rm -f conftest*
9587fi
9588
9589if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
9590 echo "$ac_t""yes" 1>&6
9591 :
9592else
9593 echo "$ac_t""no" 1>&6
9594fi
ab9b9eab
VZ
9595
9596 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 9597 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
8168de4c 9598echo "configure:9599: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
9599ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
9600if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9601 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9602else
698dcdb6 9603 ac_save_LIBS="$LIBS"
ab9b9eab 9604LIBS="-lnsl $LIBS"
698dcdb6 9605cat > conftest.$ac_ext <<EOF
8168de4c 9606#line 9607 "configure"
ab9b9eab
VZ
9607#include "confdefs.h"
9608/* Override any gcc2 internal prototype to avoid an error. */
9609/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9610 builtin and then its argument prototype would still apply. */
9611char gethostbyname();
6232543b 9612
698dcdb6
VZ
9613int main() {
9614gethostbyname()
9615; return 0; }
9616EOF
8168de4c 9617if { (eval echo configure:9618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9618 rm -rf conftest*
9619 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 9620else
698dcdb6
VZ
9621 echo "configure: failed program was:" >&5
9622 cat conftest.$ac_ext >&5
9623 rm -rf conftest*
9624 eval "ac_cv_lib_$ac_lib_var=no"
9625fi
9626rm -f conftest*
9627LIBS="$ac_save_LIBS"
1e487827 9628
698dcdb6
VZ
9629fi
9630if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9631 echo "$ac_t""yes" 1>&6
9632 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9633else
9634 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9635fi
9636
9637 fi
9638
9639 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9640 # socket/setsockopt and other routines are undefined under SCO ODT
9641 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
9642 # on later versions), says simon@lia.di.epfl.ch: it contains
9643 # gethostby* variants that don't use the nameserver (or something).
9644 # -lsocket must be given before -lnsl if both are needed.
9645 # We assume that if connect needs -lnsl, so does gethostbyname.
9646 echo $ac_n "checking for connect""... $ac_c" 1>&6
8168de4c 9647echo "configure:9648: checking for connect" >&5
698dcdb6
VZ
9648if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
9649 echo $ac_n "(cached) $ac_c" 1>&6
9650else
9651 cat > conftest.$ac_ext <<EOF
8168de4c 9652#line 9653 "configure"
ab9b9eab
VZ
9653#include "confdefs.h"
9654/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 9655 which can conflict with char connect(); below. */
ab9b9eab
VZ
9656#include <assert.h>
9657/* Override any gcc2 internal prototype to avoid an error. */
9658/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9659 builtin and then its argument prototype would still apply. */
9660char connect();
9661
9662int main() {
ab9b9eab
VZ
9663
9664/* The GNU C library defines this for functions which it implements
9665 to always fail with ENOSYS. Some functions are actually named
9666 something starting with __ and the normal name is an alias. */
9667#if defined (__stub_connect) || defined (__stub___connect)
9668choke me
9669#else
698dcdb6 9670connect();
ab9b9eab
VZ
9671#endif
9672
698dcdb6
VZ
9673; return 0; }
9674EOF
8168de4c 9675if { (eval echo configure:9676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9676 rm -rf conftest*
9677 eval "ac_cv_func_connect=yes"
9678else
9679 echo "configure: failed program was:" >&5
9680 cat conftest.$ac_ext >&5
9681 rm -rf conftest*
9682 eval "ac_cv_func_connect=no"
9683fi
9684rm -f conftest*
9685fi
9686
9687if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
9688 echo "$ac_t""yes" 1>&6
9689 :
9690else
9691 echo "$ac_t""no" 1>&6
9692fi
ab9b9eab
VZ
9693
9694 if test $ac_cv_func_connect = no; then
698dcdb6 9695 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
8168de4c 9696echo "configure:9697: checking for connect in -lsocket" >&5
698dcdb6
VZ
9697ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
9698if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9699 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9700else
698dcdb6 9701 ac_save_LIBS="$LIBS"
ab9b9eab 9702LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 9703cat > conftest.$ac_ext <<EOF
8168de4c 9704#line 9705 "configure"
ab9b9eab
VZ
9705#include "confdefs.h"
9706/* Override any gcc2 internal prototype to avoid an error. */
9707/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9708 builtin and then its argument prototype would still apply. */
9709char connect();
9710
9711int main() {
9712connect()
9713; return 0; }
9714EOF
8168de4c 9715if { (eval echo configure:9716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9716 rm -rf conftest*
9717 eval "ac_cv_lib_$ac_lib_var=yes"
9718else
9719 echo "configure: failed program was:" >&5
9720 cat conftest.$ac_ext >&5
9721 rm -rf conftest*
9722 eval "ac_cv_lib_$ac_lib_var=no"
9723fi
9724rm -f conftest*
9725LIBS="$ac_save_LIBS"
9726
9727fi
9728if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9729 echo "$ac_t""yes" 1>&6
ab9b9eab 9730 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
9731else
9732 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9733fi
9734
9735 fi
9736
698dcdb6
VZ
9737 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
9738 echo $ac_n "checking for remove""... $ac_c" 1>&6
8168de4c 9739echo "configure:9740: checking for remove" >&5
698dcdb6
VZ
9740if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
9741 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9742else
698dcdb6 9743 cat > conftest.$ac_ext <<EOF
8168de4c 9744#line 9745 "configure"
ab9b9eab
VZ
9745#include "confdefs.h"
9746/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 9747 which can conflict with char remove(); below. */
ab9b9eab
VZ
9748#include <assert.h>
9749/* Override any gcc2 internal prototype to avoid an error. */
9750/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9751 builtin and then its argument prototype would still apply. */
9752char remove();
9753
9754int main() {
ab9b9eab
VZ
9755
9756/* The GNU C library defines this for functions which it implements
9757 to always fail with ENOSYS. Some functions are actually named
9758 something starting with __ and the normal name is an alias. */
9759#if defined (__stub_remove) || defined (__stub___remove)
9760choke me
9761#else
698dcdb6 9762remove();
ab9b9eab
VZ
9763#endif
9764
698dcdb6
VZ
9765; return 0; }
9766EOF
8168de4c 9767if { (eval echo configure:9768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9768 rm -rf conftest*
9769 eval "ac_cv_func_remove=yes"
9770else
9771 echo "configure: failed program was:" >&5
9772 cat conftest.$ac_ext >&5
9773 rm -rf conftest*
9774 eval "ac_cv_func_remove=no"
9775fi
9776rm -f conftest*
9777fi
9778
9779if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
9780 echo "$ac_t""yes" 1>&6
9781 :
9782else
9783 echo "$ac_t""no" 1>&6
9784fi
ab9b9eab
VZ
9785
9786 if test $ac_cv_func_remove = no; then
698dcdb6 9787 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
8168de4c 9788echo "configure:9789: checking for remove in -lposix" >&5
698dcdb6
VZ
9789ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
9790if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9791 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9792else
698dcdb6 9793 ac_save_LIBS="$LIBS"
ab9b9eab 9794LIBS="-lposix $LIBS"
698dcdb6 9795cat > conftest.$ac_ext <<EOF
8168de4c 9796#line 9797 "configure"
ab9b9eab
VZ
9797#include "confdefs.h"
9798/* Override any gcc2 internal prototype to avoid an error. */
9799/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9800 builtin and then its argument prototype would still apply. */
9801char remove();
9802
9803int main() {
9804remove()
9805; return 0; }
9806EOF
8168de4c 9807if { (eval echo configure:9808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9808 rm -rf conftest*
9809 eval "ac_cv_lib_$ac_lib_var=yes"
9810else
9811 echo "configure: failed program was:" >&5
9812 cat conftest.$ac_ext >&5
9813 rm -rf conftest*
9814 eval "ac_cv_lib_$ac_lib_var=no"
9815fi
9816rm -f conftest*
9817LIBS="$ac_save_LIBS"
9818
9819fi
9820if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9821 echo "$ac_t""yes" 1>&6
ab9b9eab 9822 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
9823else
9824 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9825fi
9826
9827 fi
9828
9829 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 9830 echo $ac_n "checking for shmat""... $ac_c" 1>&6
8168de4c 9831echo "configure:9832: checking for shmat" >&5
698dcdb6
VZ
9832if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
9833 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9834else
698dcdb6 9835 cat > conftest.$ac_ext <<EOF
8168de4c 9836#line 9837 "configure"
ab9b9eab
VZ
9837#include "confdefs.h"
9838/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 9839 which can conflict with char shmat(); below. */
ab9b9eab
VZ
9840#include <assert.h>
9841/* Override any gcc2 internal prototype to avoid an error. */
9842/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9843 builtin and then its argument prototype would still apply. */
9844char shmat();
9845
9846int main() {
ab9b9eab
VZ
9847
9848/* The GNU C library defines this for functions which it implements
9849 to always fail with ENOSYS. Some functions are actually named
9850 something starting with __ and the normal name is an alias. */
9851#if defined (__stub_shmat) || defined (__stub___shmat)
9852choke me
9853#else
698dcdb6 9854shmat();
ab9b9eab
VZ
9855#endif
9856
698dcdb6
VZ
9857; return 0; }
9858EOF
8168de4c 9859if { (eval echo configure:9860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9860 rm -rf conftest*
9861 eval "ac_cv_func_shmat=yes"
9862else
9863 echo "configure: failed program was:" >&5
9864 cat conftest.$ac_ext >&5
9865 rm -rf conftest*
9866 eval "ac_cv_func_shmat=no"
9867fi
9868rm -f conftest*
9869fi
9870
9871if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
9872 echo "$ac_t""yes" 1>&6
9873 :
9874else
9875 echo "$ac_t""no" 1>&6
9876fi
ab9b9eab
VZ
9877
9878 if test $ac_cv_func_shmat = no; then
698dcdb6 9879 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
8168de4c 9880echo "configure:9881: checking for shmat in -lipc" >&5
698dcdb6
VZ
9881ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
9882if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9883 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9884else
698dcdb6 9885 ac_save_LIBS="$LIBS"
ab9b9eab 9886LIBS="-lipc $LIBS"
698dcdb6 9887cat > conftest.$ac_ext <<EOF
8168de4c 9888#line 9889 "configure"
ab9b9eab
VZ
9889#include "confdefs.h"
9890/* Override any gcc2 internal prototype to avoid an error. */
9891/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9892 builtin and then its argument prototype would still apply. */
9893char shmat();
9894
9895int main() {
9896shmat()
9897; return 0; }
9898EOF
8168de4c 9899if { (eval echo configure:9900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9900 rm -rf conftest*
9901 eval "ac_cv_lib_$ac_lib_var=yes"
9902else
9903 echo "configure: failed program was:" >&5
9904 cat conftest.$ac_ext >&5
9905 rm -rf conftest*
9906 eval "ac_cv_lib_$ac_lib_var=no"
9907fi
9908rm -f conftest*
9909LIBS="$ac_save_LIBS"
9910
9911fi
9912if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9913 echo "$ac_t""yes" 1>&6
ab9b9eab 9914 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
9915else
9916 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9917fi
9918
9919 fi
9920 fi
9921
9922 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 9923 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
9924 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9925 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9926 # check for ICE first), but we must link in the order -lSM -lICE or
9927 # we get undefined symbols. So assume we have SM if we have ICE.
9928 # These have to be linked with before -lX11, unlike the other
9929 # libraries we check for below, so use a different variable.
698dcdb6
VZ
9930 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
9931 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
8168de4c 9932echo "configure:9933: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
9933ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
9934if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9935 echo $ac_n "(cached) $ac_c" 1>&6
9936else
9937 ac_save_LIBS="$LIBS"
ab9b9eab 9938LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 9939cat > conftest.$ac_ext <<EOF
8168de4c 9940#line 9941 "configure"
ab9b9eab
VZ
9941#include "confdefs.h"
9942/* Override any gcc2 internal prototype to avoid an error. */
9943/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9944 builtin and then its argument prototype would still apply. */
9945char IceConnectionNumber();
9946
9947int main() {
9948IceConnectionNumber()
9949; return 0; }
9950EOF
8168de4c 9951if { (eval echo configure:9952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9952 rm -rf conftest*
9953 eval "ac_cv_lib_$ac_lib_var=yes"
9954else
9955 echo "configure: failed program was:" >&5
9956 cat conftest.$ac_ext >&5
9957 rm -rf conftest*
9958 eval "ac_cv_lib_$ac_lib_var=no"
9959fi
9960rm -f conftest*
9961LIBS="$ac_save_LIBS"
9962
9963fi
9964if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9965 echo "$ac_t""yes" 1>&6
ab9b9eab 9966 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
9967else
9968 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9969fi
9970
698dcdb6 9971 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
9972
9973fi
9974
1e6feb95
VZ
9975 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9976 LDFLAGS="$LDFLAGS $X_LIBS"
ab9b9eab 9977
1e6feb95
VZ
9978 if test "$wxUSE_MOTIF" = 1; then
9979 if test "$no_x" = "yes"; then
9980 { echo "configure: error: X11 not found" 1>&2; exit 1; }
9981 fi
ab9b9eab 9982
1e6feb95
VZ
9983 GUI_TK_LIBRARY="$X_LIBS"
9984 TOOLKIT_INCLUDE="$X_CFLAGS"
ab9b9eab 9985
1e6feb95 9986 AFMINSTALL=afminstall
dad6c0ea 9987
1e6feb95
VZ
9988
9989 COMPILED_X_PROGRAM=0
cd6d6d5b 9990
1e6feb95 9991 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
8168de4c 9992echo "configure:9993: checking for Motif/Lesstif headers" >&5
1e6feb95 9993
ab9b9eab
VZ
9994ac_find_includes=
9995for ac_dir in $SEARCH_INCLUDE;
9996 do
9997 if test -f "$ac_dir/Xm/Xm.h"; then
9998 ac_find_includes=$ac_dir
9999 break
10000 fi
10001 done
10002
1e6feb95
VZ
10003 if test "$ac_find_includes" != "" ; then
10004 echo "$ac_t""found $ac_find_includes" 1>&6
10005 else
10006 cat > conftest.$ac_ext <<EOF
8168de4c 10007#line 10008 "configure"
cd6d6d5b
VZ
10008#include "confdefs.h"
10009
1e6feb95
VZ
10010 #include <Xm/Xm.h>
10011
698dcdb6 10012int main() {
cd6d6d5b 10013
1e6feb95 10014 int version;
cd6d6d5b 10015
1e6feb95
VZ
10016 version = xmUseVersion;
10017
698dcdb6
VZ
10018; return 0; }
10019EOF
8168de4c 10020if { (eval echo configure:10021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10021 rm -rf conftest*
10022
1e6feb95
VZ
10023 echo "$ac_t""found in default search path" 1>&6
10024 COMPILED_X_PROGRAM=1
10025
cd6d6d5b 10026else
698dcdb6
VZ
10027 echo "configure: failed program was:" >&5
10028 cat conftest.$ac_ext >&5
10029 rm -rf conftest*
10030
1e6feb95
VZ
10031 echo "$ac_t""no" 1>&6
10032 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10033
698dcdb6 10034
cd6d6d5b 10035fi
698dcdb6 10036rm -f conftest*
1e6feb95 10037 fi
ab9b9eab 10038
1e6feb95
VZ
10039 if test "$COMPILED_X_PROGRAM" = 0; then
10040 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
8168de4c 10041echo "configure:10042: checking for Motif/Lesstif library" >&5
1e6feb95 10042
ab9b9eab
VZ
10043ac_find_libraries=
10044for ac_dir in $SEARCH_LIB;
10045 do
10046 for ac_extension in a so sl; do
10047 if test -f "$ac_dir/libXm.$ac_extension"; then
10048 ac_find_libraries=$ac_dir
10049 break 2
10050 fi
10051 done
10052 done
10053
1e6feb95
VZ
10054 if test "$ac_find_libraries" != "" ; then
10055
ab9b9eab
VZ
10056 ac_path_to_include=$ac_find_includes
10057 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10058 result=$?
10059 if test $result = 0; then
10060 ac_path_to_include=""
10061 else
10062 ac_path_to_include="-I$ac_find_includes"
10063 fi
10064
1e6feb95 10065
ab9b9eab
VZ
10066 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10067 result=$?
10068 if test $result = 0; then
10069 ac_path_to_link=""
10070 else
10071 ac_path_to_link="-L$ac_find_libraries"
10072 fi
10073
698dcdb6 10074
1e6feb95
VZ
10075 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10076 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10077 echo "$ac_t""found at $ac_find_libraries" 1>&6
10078 else
10079 cat > conftest.$ac_ext <<EOF
8168de4c 10080#line 10081 "configure"
cd6d6d5b 10081#include "confdefs.h"
ab9b9eab 10082
1e6feb95
VZ
10083 #include <Xm/Xm.h>
10084
698dcdb6 10085int main() {
ab9b9eab 10086
1e6feb95 10087 int version;
ab9b9eab 10088
1e6feb95
VZ
10089 version = xmUseVersion;
10090
698dcdb6
VZ
10091; return 0; }
10092EOF
8168de4c 10093if { (eval echo configure:10094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10094 rm -rf conftest*
10095
1e6feb95
VZ
10096 echo "$ac_t""found in default search path" 1>&6
10097 COMPILED_X_PROGRAM=1
10098
cd6d6d5b 10099else
698dcdb6
VZ
10100 echo "configure: failed program was:" >&5
10101 cat conftest.$ac_ext >&5
10102 rm -rf conftest*
10103
1e6feb95
VZ
10104 echo "$ac_t""no" 1>&6
10105 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10106
698dcdb6 10107
cd6d6d5b 10108fi
698dcdb6 10109rm -f conftest*
1e6feb95 10110 fi
cd6d6d5b 10111 fi
ab9b9eab 10112
1e6feb95
VZ
10113
10114 XPM_LINK=""
10115 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
8168de4c 10116echo "configure:10117: checking for Xpm library" >&5
1e6feb95 10117
ab9b9eab
VZ
10118ac_find_libraries=
10119for ac_dir in $SEARCH_LIB;
10120 do
10121 for ac_extension in a so sl; do
10122 if test -f "$ac_dir/libXpm.$ac_extension"; then
10123 ac_find_libraries=$ac_dir
10124 break 2
10125 fi
10126 done
10127 done
10128
1e6feb95
VZ
10129 if test "$ac_find_libraries" != "" ; then
10130
ab9b9eab
VZ
10131 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10132 result=$?
10133 if test $result = 0; then
10134 ac_path_to_link=""
10135 else
10136 ac_path_to_link="-L$ac_find_libraries"
10137 fi
10138
1e6feb95
VZ
10139 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10140 XPM_LINK="-lXpm "
10141 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
10142#define wxHAVE_LIB_XPM 1
10143EOF
10144
1e6feb95
VZ
10145 echo "$ac_t""found at $ac_find_libraries" 1>&6
10146 else
10147 cat > conftest.$ac_ext <<EOF
8168de4c 10148#line 10149 "configure"
cd6d6d5b
VZ
10149#include "confdefs.h"
10150
1e6feb95
VZ
10151 #include <X11/xpm.h>
10152
698dcdb6 10153int main() {
cd6d6d5b 10154
1e6feb95 10155 int version;
cd6d6d5b 10156
1e6feb95
VZ
10157 version = XpmLibraryVersion();
10158
698dcdb6
VZ
10159; return 0; }
10160EOF
8168de4c 10161if { (eval echo configure:10162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10162 rm -rf conftest*
10163
1e6feb95
VZ
10164 XPM_LINK="-lXpm "
10165 cat >> confdefs.h <<\EOF
3ace2e6d
SN
10166#define wxHAVE_LIB_XPM 1
10167EOF
10168
1e6feb95
VZ
10169 echo "$ac_t""found in default search path" 1>&6
10170 COMPILED_X_PROGRAM=0
10171
cd6d6d5b 10172else
698dcdb6
VZ
10173 echo "configure: failed program was:" >&5
10174 cat conftest.$ac_ext >&5
10175 rm -rf conftest*
10176
1e6feb95
VZ
10177 echo "$ac_t""no" 1>&6
10178 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10179
698dcdb6 10180
cd6d6d5b 10181fi
698dcdb6 10182rm -f conftest*
1e6feb95
VZ
10183 fi
10184
10185 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
10186 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
10187 TOOLKIT=MOTIF
10188 GUIDIST=MOTIF_DIST
ab9b9eab
VZ
10189 fi
10190
1e6feb95
VZ
10191 if test "$wxUSE_MAC" = 1; then
10192 TOOLKIT=MAC
10193 GUIDIST=MACX_DIST
10194 fi
10f2d63a 10195
1e6feb95
VZ
10196 if test "$wxUSE_PM" = 1; then
10197 TOOLKIT=PM
10198 GUIDIST=GTK_DIST
10199 fi
b4085ce6 10200
1e6feb95
VZ
10201 if test "$TOOLKIT" != "PM" ; then
10202 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10203 else
10204 TOOLKIT_DIR="os2"
10205 fi
e07802fc 10206
1e6feb95 10207 TOOLKIT_NAME="${TOOLKIT_DIR}"
10f2d63a 10208
1e6feb95
VZ
10209 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10210
10211 if test "$TOOLKIT_NAME" = "motif"; then
10212 TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10213 fi
10214
10215 if test "$wxUSE_UNIVERSAL" = "yes"; then
10216 TOOLKIT_NAME="${TOOLKIT_NAME}univ"
10217 UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
10218 TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}"
10219 SETUPH_DIR="univ"
f6bcfd97 10220 else
1e6feb95
VZ
10221 SETUPH_DIR="${TOOLKIT_DIR}"
10222 fi
10223
10224 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10225 TOOLKIT_NAME="${TOOLKIT_NAME}d"
f6bcfd97
BP
10226 fi
10227
2224580a 10228 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
1e6feb95
VZ
10229 if test "$wxUSE_UNIVERSAL" = "yes"; then
10230 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__"
10231 fi
10f2d63a 10232
f6bcfd97 10233 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10f2d63a 10234
1e6feb95
VZ
10235 if test "$wxUSE_UNIVERSAL" = "yes"; then
10236 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10237 else
10238 ALL_OBJECTS="\$(GUIOBJS)"
10239 fi
10240
10241 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10242
10243 if test "$TOOLKIT" != "MSW"; then
10244 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10245 fi
10246
10247 if test "$wxUSE_HTML" = "yes"; then
10248 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10249 fi
3fcdd07b 10250
1e6feb95
VZ
10251 if test "$TOOLKIT" != "MSW"; then
10252 if test "$wxUSE_ODBC" = "yes" ; then
10253 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10254 fi
3fcdd07b
VZ
10255 fi
10256
d9d8273d 10257 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 10258 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
10259 fi
10260 if test "$wxUSE_LIBTIFF" = "yes" ; then
10261 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10262 fi
10263 if test "$wxUSE_LIBPNG" = "yes" ; then
10264 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10265 fi
10266 if test "$wxUSE_ZLIB" = "yes" ; then
10267 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10268 fi
3fed1840
RR
10269 if test "$wxUSE_FREETYPE" = "yes" ; then
10270 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10271 fi
2224580a 10272
1e6feb95
VZ
10273 if test "$wxUSE_UNIVERSAL" = "yes"; then
10274 ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)"
10275 else
10276 ALL_DEPFILES="\$(GUIDEPS)"
10277 fi
10278
10279 ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)"
10280
10281 if test "$TOOLKIT" != "MSW"; then
10282 ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)"
10283 fi
10284
10285 if test "$wxUSE_HTML" = "yes"; then
10286 ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)"
10287 fi
10288
10289 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
10290 if test "$wxUSE_UNIVERSAL" = "yes"; then
10291 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
10292 fi
2224580a
VZ
10293 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10294 RPM_SPEC="wx\$(TOOLKIT).spec"
10295
10296 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10297 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 10298else
dad6c0ea
VZ
10299 USE_GUI=0
10300
f6bcfd97
BP
10301 TOOLKIT_DIR="base"
10302
10303 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10304 TOOLKIT_NAME="${TOOLKIT_DIR}d"
10305 else
10306 TOOLKIT_NAME="${TOOLKIT_DIR}"
10307 fi
10308
07eb77a6
RL
10309 TOOLKIT_DEF="-D__WXBASE__"
10310
b4085ce6
GD
10311 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
10312 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10f2d63a 10313
a20b6d3a
VZ
10314 if test "$wxUSE_ZLIB" = "yes" ; then
10315 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10316 fi
10317
f6bcfd97 10318 WX_LIBRARY="wx_${TOOLKIT_NAME}"
2224580a
VZ
10319
10320 PORT_FILES="src/files.lst"
10321 RPM_FILES="src/rpmfiles.lst"
10322 RPM_SPEC="wxBase.spec"
10323
10324 GUIDIST="BASE_DIST"
10325 DISTDIR="wxBase"
10f2d63a
VZ
10326fi
10327
10328WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
bdad4e7e 10329WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10f2d63a
VZ
10330
10331WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
bdad4e7e 10332WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10f2d63a
VZ
10333
10334WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
bdad4e7e 10335WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10f2d63a
VZ
10336
10337WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
10338WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
10339WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
bdad4e7e
RR
10340WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
10341WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
10342WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10f2d63a
VZ
10343
10344SHARED_LD=
10345PIC_FLAG=
10346WX_ALL=
10347WX_ALL_INSTALLED=
1d62a8b4 10348BURNT_LIBRARY_NAME=
f6bcfd97 10349WX_TARGET_LIBRARY_SONAME=
10f2d63a 10350
698dcdb6 10351
10f2d63a
VZ
10352if test "$wxUSE_SHARED" = "yes"; then
10353 case "${host}" in
10354 *-hp-hpux* )
10355 if test "$GCC" = yes ; then
69ffe1d2 10356 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
10357 PIC_FLAG="-fPIC"
10358 else
f6bcfd97
BP
10359 LDFLAGS="-L/usr/lib"
10360
10f2d63a
VZ
10361 SHARED_LD="${CXX} -b -o"
10362 PIC_FLAG="+Z"
10363 fi
f6bcfd97
BP
10364 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
10365 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
c661ecca 10366 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 10367 WX_ALL_INSTALLED="preinstall_gl"
c661ecca
RR
10368 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
10369 else
10370 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
10371 fi
10f2d63a 10372 ;;
b12915c1
VZ
10373
10374 *-*-linux* )
10f2d63a
VZ
10375 SHARED_LD="${CC} -shared -o"
10376 PIC_FLAG="-fPIC"
00cf1208 10377 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 10378 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
bdad4e7e 10379 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 10380 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 10381 fi
c661ecca
RR
10382 if test "$wxUSE_OPENGL" = "yes"; then
10383 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10384 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10385 else
10386 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10387 WX_ALL="CREATE_LINKS"
422107f9 10388 fi
00cf1208 10389 ;;
10f2d63a
VZ
10390 *-*-irix5* | *-*-irix6* )
10391 if test "$GCC" = yes ; then
10392 SHARED_LD="${CC} -shared -o"
10393 PIC_FLAG="-fPIC"
10394 else
10395 SHARED_LD="${CXX} -shared -o"
10396 fi
c661ecca
RR
10397 if test "$wxUSE_OPENGL" = "yes"; then
10398 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10399 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10400 else
10401 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10402 WX_ALL="CREATE_LINKS"
422107f9 10403 fi
10f2d63a
VZ
10404 ;;
10405 *-*-solaris2* )
10406 if test "$GCC" = yes ; then
10407 SHARED_LD="${CC} -shared -o"
10408 PIC_FLAG="-fPIC"
f6bcfd97
BP
10409
10410 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
10411 else
10412 SHARED_LD="${CXX} -G -o"
10413 PIC_FLAG="-KPIC"
10414 fi
c661ecca
RR
10415 if test "$wxUSE_OPENGL" = "yes"; then
10416 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10417 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10418 else
10419 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10420 WX_ALL="CREATE_LINKS"
10421 fi
10f2d63a
VZ
10422 ;;
10423 *-*-sunos4* )
10424 SHARED_LD="${CC} -shared -o"
10425 PIC_FLAG="-fPIC"
10426 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10427 WX_ALL="CREATE_LINKS"
10428 ;;
95c8801c 10429 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
10f2d63a
VZ
10430 SHARED_LD="${CC} -shared -o"
10431 PIC_FLAG="-fPIC"
37d403aa
JS
10432 if test "$wxUSE_OPENGL" = "yes"; then
10433 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10434 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10435 else
10436 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10437 WX_ALL="CREATE_LINKS"
10438 fi
10f2d63a 10439 ;;
b4085ce6 10440 *-*-darwin* )
ea5999b9
GD
10441 SHARED_LD="${CXX} -dynamiclib -o"
10442 PIC_FLAG="-dynamic -fPIC"
b4085ce6
GD
10443 if test "$wxUSE_OPENGL" = "yes"; then
10444 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10445 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10446 else
10447 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10448 WX_ALL="CREATE_LINKS"
10449 fi
1e6feb95
VZ
10450 WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
10451 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10452 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10453 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
10454 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
10455 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
10456 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
10457 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
10458 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
b4085ce6 10459 ;;
10f2d63a
VZ
10460 *-*-osf* )
10461 SHARED_LD="${CXX} -shared -o"
10462 PIC_FLAG="-fPIC"
10463 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10464 WX_ALL="CREATE_LINKS"
10465 ;;
10466 *-*-dgux5* )
10467 SHARED_LD="${CXX} -shared -o"
10468 PIC_FLAG="-fPIC"
10469 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10470 WX_ALL="CREATE_LINKS"
10471 ;;
10472 *-*-sysv5* )
10473 SHARED_LD="${CC} -shared -o"
10474 PIC_FLAG="-fPIC"
10475 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10476 WX_ALL="CREATE_LINKS"
10477 ;;
10478 *-*-aix* )
10479 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10480 WX_ALL=${WX_LIBRARY_NAME_SHARED}
10481 ;;
1c8183e2 10482 *-*-cygwin* )
10f2d63a 10483 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 10484 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
10485 if test "$wxUSE_OPENGL" = "yes"; then
10486 WX_ALL_INSTALLED="preinstall_gl"
10487 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10488 else
10489 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10490 fi
10f2d63a 10491 ;;
b12915c1 10492 *-*-mingw32* )
10f2d63a 10493 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 10494 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
10495 if test "$wxUSE_OPENGL" = "yes"; then
10496 WX_ALL_INSTALLED="preinstall_gl"
10497 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10498 else
10499 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10500 fi
10f2d63a
VZ
10501 ;;
10502 *-pc-os2_emx )
e07802fc
VZ
10503 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10504 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 10505 ;;
b12915c1 10506 *-*-beos* )
e2b8b066 10507 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
10508 PIC_FLAG="-fPIC"
10509 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10510 WX_ALL="CREATE_LINKS"
10511 ;;
10f2d63a 10512 *)
698dcdb6 10513 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
10514 esac
10515
10516 if test "x$WX_TARGET_LIBRARY" = "x"; then
10517 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 10518 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 10519 fi
3711412e 10520 WX_TARGET_LIBRARY_TYPE="so"
10f2d63a
VZ
10521else
10522 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 10523 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
10524
10525 if test "$wxUSE_OPENGL" = "yes"; then
10526 WX_ALL_INSTALLED="preinstall_gl"
10527 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10528 else
10529 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10530 fi
10531
10532 if test "$wxUSE_GUI" = "no"; then
10533 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
10534 fi
10535
3711412e 10536 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a
VZ
10537fi
10538
698dcdb6
VZ
10539
10540for ac_hdr in strings.h
10f2d63a 10541do
698dcdb6
VZ
10542ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10543echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8168de4c 10544echo "configure:10545: checking for $ac_hdr" >&5
698dcdb6
VZ
10545if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10546 echo $ac_n "(cached) $ac_c" 1>&6
10547else
10548 cat > conftest.$ac_ext <<EOF
8168de4c 10549#line 10550 "configure"
10f2d63a 10550#include "confdefs.h"
698dcdb6
VZ
10551#include <$ac_hdr>
10552EOF
10553ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8168de4c 10554{ (eval echo configure:10555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10555ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10556if test -z "$ac_err"; then
10557 rm -rf conftest*
10558 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 10559else
698dcdb6
VZ
10560 echo "$ac_err" >&5
10561 echo "configure: failed program was:" >&5
10f2d63a 10562 cat conftest.$ac_ext >&5
698dcdb6
VZ
10563 rm -rf conftest*
10564 eval "ac_cv_header_$ac_safe=no"
10f2d63a 10565fi
698dcdb6 10566rm -f conftest*
10f2d63a 10567fi
698dcdb6
VZ
10568if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10569 echo "$ac_t""yes" 1>&6
10570 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10571 cat >> confdefs.h <<EOF
10572#define $ac_tr_hdr 1
10f2d63a 10573EOF
698dcdb6
VZ
10574
10575else
10576 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10577fi
10578done
10579
698dcdb6 10580for ac_hdr in stdlib.h
9cfadba2 10581do
698dcdb6
VZ
10582ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10583echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8168de4c 10584echo "configure:10585: checking for $ac_hdr" >&5
698dcdb6
VZ
10585if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10586 echo $ac_n "(cached) $ac_c" 1>&6
10587else
10588 cat > conftest.$ac_ext <<EOF
8168de4c 10589#line 10590 "configure"
9cfadba2 10590#include "confdefs.h"
698dcdb6
VZ
10591#include <$ac_hdr>
10592EOF
10593ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8168de4c 10594{ (eval echo configure:10595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10595ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10596if test -z "$ac_err"; then
10597 rm -rf conftest*
10598 eval "ac_cv_header_$ac_safe=yes"
6232543b 10599else
698dcdb6
VZ
10600 echo "$ac_err" >&5
10601 echo "configure: failed program was:" >&5
9cfadba2 10602 cat conftest.$ac_ext >&5
698dcdb6
VZ
10603 rm -rf conftest*
10604 eval "ac_cv_header_$ac_safe=no"
9cfadba2 10605fi
698dcdb6 10606rm -f conftest*
9cfadba2 10607fi
698dcdb6
VZ
10608if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10609 echo "$ac_t""yes" 1>&6
10610 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10611 cat >> confdefs.h <<EOF
10612#define $ac_tr_hdr 1
9cfadba2 10613EOF
698dcdb6
VZ
10614
10615else
10616 echo "$ac_t""no" 1>&6
9cfadba2
VZ
10617fi
10618done
10f2d63a 10619
698dcdb6 10620for ac_hdr in unistd.h
10f2d63a 10621do
698dcdb6
VZ
10622ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10623echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8168de4c 10624echo "configure:10625: checking for $ac_hdr" >&5
698dcdb6
VZ
10625if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10626 echo $ac_n "(cached) $ac_c" 1>&6
10627else
10628 cat > conftest.$ac_ext <<EOF
8168de4c 10629#line 10630 "configure"
10f2d63a 10630#include "confdefs.h"
698dcdb6
VZ
10631#include <$ac_hdr>
10632EOF
10633ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8168de4c 10634{ (eval echo configure:10635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10635ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10636if test -z "$ac_err"; then
10637 rm -rf conftest*
10638 eval "ac_cv_header_$ac_safe=yes"
6232543b 10639else
698dcdb6
VZ
10640 echo "$ac_err" >&5
10641 echo "configure: failed program was:" >&5
10f2d63a 10642 cat conftest.$ac_ext >&5
698dcdb6
VZ
10643 rm -rf conftest*
10644 eval "ac_cv_header_$ac_safe=no"
10f2d63a 10645fi
698dcdb6 10646rm -f conftest*
10f2d63a 10647fi
698dcdb6
VZ
10648if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10649 echo "$ac_t""yes" 1>&6
10650 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10651 cat >> confdefs.h <<EOF
10652#define $ac_tr_hdr 1
10f2d63a 10653EOF
698dcdb6
VZ
10654
10655else
10656 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10657fi
10658done
10659
698dcdb6 10660for ac_hdr in wchar.h
10f2d63a 10661do
698dcdb6
VZ
10662ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10663echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8168de4c 10664echo "configure:10665: checking for $ac_hdr" >&5
698dcdb6
VZ
10665if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10666 echo $ac_n "(cached) $ac_c" 1>&6
10667else
10668 cat > conftest.$ac_ext <<EOF
8168de4c 10669#line 10670 "configure"
10f2d63a 10670#include "confdefs.h"
698dcdb6
VZ
10671#include <$ac_hdr>
10672EOF
10673ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8168de4c 10674{ (eval echo configure:10675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10675ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10676if test -z "$ac_err"; then
10677 rm -rf conftest*
10678 eval "ac_cv_header_$ac_safe=yes"
6f72b082 10679else
698dcdb6
VZ
10680 echo "$ac_err" >&5
10681 echo "configure: failed program was:" >&5
6f72b082 10682 cat conftest.$ac_ext >&5
698dcdb6
VZ
10683 rm -rf conftest*
10684 eval "ac_cv_header_$ac_safe=no"
6f72b082 10685fi
698dcdb6 10686rm -f conftest*
6f72b082 10687fi
698dcdb6
VZ
10688if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10689 echo "$ac_t""yes" 1>&6
10690 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10691 cat >> confdefs.h <<EOF
10692#define $ac_tr_hdr 1
6f72b082 10693EOF
698dcdb6
VZ
10694
10695else
10696 echo "$ac_t""no" 1>&6
6f72b082
OK
10697fi
10698done
10699
698dcdb6 10700for ac_hdr in wcstr.h
6f72b082 10701do
698dcdb6
VZ
10702ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10703echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8168de4c 10704echo "configure:10705: checking for $ac_hdr" >&5
698dcdb6
VZ
10705if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10706 echo $ac_n "(cached) $ac_c" 1>&6
10707else
10708 cat > conftest.$ac_ext <<EOF
8168de4c 10709#line 10710 "configure"
6f72b082 10710#include "confdefs.h"
698dcdb6
VZ
10711#include <$ac_hdr>
10712EOF
10713ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8168de4c 10714{ (eval echo configure:10715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10715ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10716if test -z "$ac_err"; then
10717 rm -rf conftest*
10718 eval "ac_cv_header_$ac_safe=yes"
6f72b082 10719else
698dcdb6
VZ
10720 echo "$ac_err" >&5
10721 echo "configure: failed program was:" >&5
6f72b082 10722 cat conftest.$ac_ext >&5
698dcdb6
VZ
10723 rm -rf conftest*
10724 eval "ac_cv_header_$ac_safe=no"
6f72b082 10725fi
698dcdb6 10726rm -f conftest*
6f72b082 10727fi
698dcdb6
VZ
10728if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10729 echo "$ac_t""yes" 1>&6
10730 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10731 cat >> confdefs.h <<EOF
10732#define $ac_tr_hdr 1
6f72b082 10733EOF
698dcdb6
VZ
10734
10735else
10736 echo "$ac_t""no" 1>&6
6f72b082
OK
10737fi
10738done
10739
698dcdb6 10740for ac_hdr in fnmatch.h
6f72b082 10741do
698dcdb6
VZ
10742ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10743echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8168de4c 10744echo "configure:10745: checking for $ac_hdr" >&5
698dcdb6
VZ
10745if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10746 echo $ac_n "(cached) $ac_c" 1>&6
10747else
10748 cat > conftest.$ac_ext <<EOF
8168de4c 10749#line 10750 "configure"
6f72b082 10750#include "confdefs.h"
698dcdb6
VZ
10751#include <$ac_hdr>
10752EOF
10753ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8168de4c 10754{ (eval echo configure:10755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10755ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10756if test -z "$ac_err"; then
10757 rm -rf conftest*
10758 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 10759else
698dcdb6
VZ
10760 echo "$ac_err" >&5
10761 echo "configure: failed program was:" >&5
10f2d63a 10762 cat conftest.$ac_ext >&5
698dcdb6
VZ
10763 rm -rf conftest*
10764 eval "ac_cv_header_$ac_safe=no"
10f2d63a 10765fi
698dcdb6 10766rm -f conftest*
10f2d63a 10767fi
698dcdb6
VZ
10768if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10769 echo "$ac_t""yes" 1>&6
10770 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10771 cat >> confdefs.h <<EOF
10772#define $ac_tr_hdr 1
10f2d63a 10773EOF
698dcdb6
VZ
10774
10775else
10776 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10777fi
10778done
10779
698dcdb6 10780for ac_hdr in iconv.h
0fb0dd83 10781do
698dcdb6
VZ
10782ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10783echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8168de4c 10784echo "configure:10785: checking for $ac_hdr" >&5
698dcdb6
VZ
10785if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10786 echo $ac_n "(cached) $ac_c" 1>&6
10787else
10788 cat > conftest.$ac_ext <<EOF
8168de4c 10789#line 10790 "configure"
0fb0dd83 10790#include "confdefs.h"
698dcdb6
VZ
10791#include <$ac_hdr>
10792EOF
10793ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8168de4c 10794{ (eval echo configure:10795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10795ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10796if test -z "$ac_err"; then
10797 rm -rf conftest*
10798 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 10799else
698dcdb6
VZ
10800 echo "$ac_err" >&5
10801 echo "configure: failed program was:" >&5
0fb0dd83 10802 cat conftest.$ac_ext >&5
698dcdb6
VZ
10803 rm -rf conftest*
10804 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 10805fi
698dcdb6 10806rm -f conftest*
0fb0dd83 10807fi
698dcdb6
VZ
10808if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10809 echo "$ac_t""yes" 1>&6
10810 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10811 cat >> confdefs.h <<EOF
10812#define $ac_tr_hdr 1
0fb0dd83 10813EOF
698dcdb6
VZ
10814
10815else
10816 echo "$ac_t""no" 1>&6
0fb0dd83
RR
10817fi
10818done
10819
698dcdb6 10820for ac_hdr in langinfo.h
1f8ae82f 10821do
698dcdb6
VZ
10822ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10823echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8168de4c 10824echo "configure:10825: checking for $ac_hdr" >&5
698dcdb6
VZ
10825if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10826 echo $ac_n "(cached) $ac_c" 1>&6
10827else
10828 cat > conftest.$ac_ext <<EOF
8168de4c 10829#line 10830 "configure"
1f8ae82f 10830#include "confdefs.h"
698dcdb6
VZ
10831#include <$ac_hdr>
10832EOF
10833ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8168de4c 10834{ (eval echo configure:10835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10835ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10836if test -z "$ac_err"; then
10837 rm -rf conftest*
10838 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 10839else
698dcdb6
VZ
10840 echo "$ac_err" >&5
10841 echo "configure: failed program was:" >&5
1f8ae82f 10842 cat conftest.$ac_ext >&5
698dcdb6
VZ
10843 rm -rf conftest*
10844 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 10845fi
698dcdb6 10846rm -f conftest*
1f8ae82f 10847fi
698dcdb6
VZ
10848if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10849 echo "$ac_t""yes" 1>&6
10850 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10851 cat >> confdefs.h <<EOF
10852#define $ac_tr_hdr 1
1f8ae82f 10853EOF
698dcdb6
VZ
10854
10855else
10856 echo "$ac_t""no" 1>&6
1f8ae82f
GD
10857fi
10858done
10859
698dcdb6 10860
73fd4a60
VZ
10861if test "$wxUSE_GUI" = "yes"; then
10862 if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 10863 for ac_hdr in X11/XKBlib.h
10f2d63a 10864do
698dcdb6
VZ
10865ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10866echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8168de4c 10867echo "configure:10868: checking for $ac_hdr" >&5
698dcdb6
VZ
10868if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10869 echo $ac_n "(cached) $ac_c" 1>&6
10870else
10871 cat > conftest.$ac_ext <<EOF
8168de4c 10872#line 10873 "configure"
10f2d63a 10873#include "confdefs.h"
698dcdb6
VZ
10874#include <$ac_hdr>
10875EOF
10876ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8168de4c 10877{ (eval echo configure:10878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10878ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10879if test -z "$ac_err"; then
10880 rm -rf conftest*
10881 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 10882else
698dcdb6
VZ
10883 echo "$ac_err" >&5
10884 echo "configure: failed program was:" >&5
10f2d63a 10885 cat conftest.$ac_ext >&5
698dcdb6
VZ
10886 rm -rf conftest*
10887 eval "ac_cv_header_$ac_safe=no"
10f2d63a 10888fi
698dcdb6 10889rm -f conftest*
10f2d63a 10890fi
698dcdb6
VZ
10891if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10892 echo "$ac_t""yes" 1>&6
10893 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10894 cat >> confdefs.h <<EOF
10895#define $ac_tr_hdr 1
10f2d63a 10896EOF
698dcdb6
VZ
10897
10898else
10899 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10900fi
10901done
10902
73fd4a60 10903 fi
10f2d63a
VZ
10904fi
10905
698dcdb6
VZ
10906
10907echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8168de4c 10908echo "configure:10909: checking for ANSI C header files" >&5
698dcdb6
VZ
10909if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
10910 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 10911else
698dcdb6 10912 cat > conftest.$ac_ext <<EOF
8168de4c 10913#line 10914 "configure"
10f2d63a
VZ
10914#include "confdefs.h"
10915#include <stdlib.h>
10916#include <stdarg.h>
10917#include <string.h>
10918#include <float.h>
698dcdb6
VZ
10919EOF
10920ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8168de4c 10921{ (eval echo configure:10922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10922ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10923if test -z "$ac_err"; then
10924 rm -rf conftest*
10f2d63a
VZ
10925 ac_cv_header_stdc=yes
10926else
698dcdb6
VZ
10927 echo "$ac_err" >&5
10928 echo "configure: failed program was:" >&5
10f2d63a 10929 cat conftest.$ac_ext >&5
698dcdb6 10930 rm -rf conftest*
10f2d63a
VZ
10931 ac_cv_header_stdc=no
10932fi
698dcdb6 10933rm -f conftest*
10f2d63a
VZ
10934
10935if test $ac_cv_header_stdc = yes; then
10936 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 10937cat > conftest.$ac_ext <<EOF
8168de4c 10938#line 10939 "configure"
10f2d63a
VZ
10939#include "confdefs.h"
10940#include <string.h>
698dcdb6 10941EOF
10f2d63a
VZ
10942if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10943 egrep "memchr" >/dev/null 2>&1; then
10944 :
10945else
698dcdb6 10946 rm -rf conftest*
10f2d63a
VZ
10947 ac_cv_header_stdc=no
10948fi
10949rm -f conftest*
10950
10951fi
10952
10953if test $ac_cv_header_stdc = yes; then
10954 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 10955cat > conftest.$ac_ext <<EOF
8168de4c 10956#line 10957 "configure"
10f2d63a
VZ
10957#include "confdefs.h"
10958#include <stdlib.h>
698dcdb6 10959EOF
10f2d63a
VZ
10960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10961 egrep "free" >/dev/null 2>&1; then
10962 :
10963else
698dcdb6 10964 rm -rf conftest*
10f2d63a
VZ
10965 ac_cv_header_stdc=no
10966fi
10967rm -f conftest*
10968
10969fi
10970
10971if test $ac_cv_header_stdc = yes; then
10972 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 10973if test "$cross_compiling" = yes; then
10f2d63a
VZ
10974 :
10975else
698dcdb6 10976 cat > conftest.$ac_ext <<EOF
8168de4c 10977#line 10978 "configure"
10f2d63a
VZ
10978#include "confdefs.h"
10979#include <ctype.h>
698dcdb6
VZ
10980#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10981#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 10982#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
10983int main () { int i; for (i = 0; i < 256; i++)
10984if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
10985exit (0); }
10986
10987EOF
8168de4c 10988if { (eval echo configure:10989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10989then
10f2d63a
VZ
10990 :
10991else
698dcdb6
VZ
10992 echo "configure: failed program was:" >&5
10993 cat conftest.$ac_ext >&5
10994 rm -fr conftest*
10995 ac_cv_header_stdc=no
10f2d63a 10996fi
698dcdb6 10997rm -fr conftest*
10f2d63a 10998fi
698dcdb6 10999
10f2d63a
VZ
11000fi
11001fi
1e487827 11002
698dcdb6
VZ
11003echo "$ac_t""$ac_cv_header_stdc" 1>&6
11004if test $ac_cv_header_stdc = yes; then
11005 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11006#define STDC_HEADERS 1
11007EOF
11008
11009fi
11010
698dcdb6 11011echo $ac_n "checking for mode_t""... $ac_c" 1>&6
8168de4c 11012echo "configure:11013: checking for mode_t" >&5
698dcdb6
VZ
11013if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11014 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 11015else
698dcdb6 11016 cat > conftest.$ac_ext <<EOF
8168de4c 11017#line 11018 "configure"
1e487827 11018#include "confdefs.h"
698dcdb6
VZ
11019#include <sys/types.h>
11020#if STDC_HEADERS
11021#include <stdlib.h>
11022#include <stddef.h>
11023#endif
11024EOF
11025if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11026 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11027 rm -rf conftest*
10f2d63a
VZ
11028 ac_cv_type_mode_t=yes
11029else
698dcdb6
VZ
11030 rm -rf conftest*
11031 ac_cv_type_mode_t=no
703e0a69 11032fi
698dcdb6 11033rm -f conftest*
1e487827 11034
698dcdb6
VZ
11035fi
11036echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11037if test $ac_cv_type_mode_t = no; then
11038 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11039#define mode_t int
11040EOF
11041
11042fi
11043
698dcdb6 11044echo $ac_n "checking for off_t""... $ac_c" 1>&6
8168de4c 11045echo "configure:11046: checking for off_t" >&5
698dcdb6
VZ
11046if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11047 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11048else
698dcdb6 11049 cat > conftest.$ac_ext <<EOF
8168de4c 11050#line 11051 "configure"
10f2d63a 11051#include "confdefs.h"
698dcdb6
VZ
11052#include <sys/types.h>
11053#if STDC_HEADERS
11054#include <stdlib.h>
11055#include <stddef.h>
11056#endif
11057EOF
11058if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11059 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11060 rm -rf conftest*
10f2d63a
VZ
11061 ac_cv_type_off_t=yes
11062else
698dcdb6
VZ
11063 rm -rf conftest*
11064 ac_cv_type_off_t=no
703e0a69 11065fi
698dcdb6 11066rm -f conftest*
1e487827 11067
698dcdb6
VZ
11068fi
11069echo "$ac_t""$ac_cv_type_off_t" 1>&6
11070if test $ac_cv_type_off_t = no; then
11071 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11072#define off_t long
11073EOF
11074
11075fi
11076
698dcdb6 11077echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8168de4c 11078echo "configure:11079: checking for pid_t" >&5
698dcdb6
VZ
11079if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11080 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11081else
698dcdb6 11082 cat > conftest.$ac_ext <<EOF
8168de4c 11083#line 11084 "configure"
10f2d63a 11084#include "confdefs.h"
698dcdb6
VZ
11085#include <sys/types.h>
11086#if STDC_HEADERS
11087#include <stdlib.h>
11088#include <stddef.h>
11089#endif
11090EOF
11091if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11092 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11093 rm -rf conftest*
10f2d63a
VZ
11094 ac_cv_type_pid_t=yes
11095else
698dcdb6
VZ
11096 rm -rf conftest*
11097 ac_cv_type_pid_t=no
703e0a69 11098fi
698dcdb6 11099rm -f conftest*
1e487827 11100
698dcdb6
VZ
11101fi
11102echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11103if test $ac_cv_type_pid_t = no; then
11104 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11105#define pid_t int
11106EOF
11107
11108fi
11109
698dcdb6 11110echo $ac_n "checking for size_t""... $ac_c" 1>&6
8168de4c 11111echo "configure:11112: checking for size_t" >&5
698dcdb6
VZ
11112if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11113 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11114else
698dcdb6 11115 cat > conftest.$ac_ext <<EOF
8168de4c 11116#line 11117 "configure"
10f2d63a 11117#include "confdefs.h"
698dcdb6
VZ
11118#include <sys/types.h>
11119#if STDC_HEADERS
11120#include <stdlib.h>
11121#include <stddef.h>
11122#endif
11123EOF
11124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11125 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11126 rm -rf conftest*
10f2d63a
VZ
11127 ac_cv_type_size_t=yes
11128else
698dcdb6
VZ
11129 rm -rf conftest*
11130 ac_cv_type_size_t=no
703e0a69 11131fi
698dcdb6 11132rm -f conftest*
1e487827 11133
698dcdb6
VZ
11134fi
11135echo "$ac_t""$ac_cv_type_size_t" 1>&6
11136if test $ac_cv_type_size_t = no; then
11137 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11138#define size_t unsigned
11139EOF
11140
11141fi
11142
698dcdb6 11143echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
8168de4c 11144echo "configure:11145: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
11145if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
11146 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11147else
698dcdb6 11148 cat > conftest.$ac_ext <<EOF
8168de4c 11149#line 11150 "configure"
10f2d63a
VZ
11150#include "confdefs.h"
11151#include <sys/types.h>
698dcdb6 11152EOF
10f2d63a
VZ
11153if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11154 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 11155 rm -rf conftest*
10f2d63a
VZ
11156 ac_cv_type_uid_t=yes
11157else
698dcdb6 11158 rm -rf conftest*
10f2d63a
VZ
11159 ac_cv_type_uid_t=no
11160fi
11161rm -f conftest*
11162
11163fi
1e487827 11164
698dcdb6
VZ
11165echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11166if test $ac_cv_type_uid_t = no; then
11167 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11168#define uid_t int
11169EOF
11170
698dcdb6 11171 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11172#define gid_t int
11173EOF
11174
11175fi
11176
1e487827 11177
698dcdb6 11178echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
8168de4c 11179echo "configure:11180: checking for wchar_t" >&5
698dcdb6
VZ
11180if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
11181 echo $ac_n "(cached) $ac_c" 1>&6
11182else
11183
11184 cat > conftest.$ac_ext <<EOF
8168de4c 11185#line 11186 "configure"
0046ff7c
VS
11186#include "confdefs.h"
11187#include <wchar.h>
698dcdb6 11188int main() {
0046ff7c 11189
d836ee96
VZ
11190 wchar_t wc, *ws;
11191 wc = L'a';
11192 ws = L"Hello, world!";
698dcdb6
VZ
11193
11194; return 0; }
11195EOF
8168de4c 11196if { (eval echo configure:11197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11197 rm -rf conftest*
1f8ae82f
GD
11198 wx_cv_type_wchar_t=yes
11199else
698dcdb6
VZ
11200 echo "configure: failed program was:" >&5
11201 cat conftest.$ac_ext >&5
11202 rm -rf conftest*
11203 cat > conftest.$ac_ext <<EOF
8168de4c 11204#line 11205 "configure"
1f8ae82f
GD
11205#include "confdefs.h"
11206#include <stdlib.h>
698dcdb6 11207int main() {
1f8ae82f 11208
d836ee96
VZ
11209 wchar_t wc, *ws;
11210 wc = L'a';
11211 ws = L"Hello, world!";
698dcdb6
VZ
11212
11213; return 0; }
11214EOF
8168de4c 11215if { (eval echo configure:11216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11216 rm -rf conftest*
0046ff7c
VS
11217 wx_cv_type_wchar_t=yes
11218else
698dcdb6
VZ
11219 echo "configure: failed program was:" >&5
11220 cat conftest.$ac_ext >&5
11221 rm -rf conftest*
11222 wx_cv_type_wchar_t=no
0046ff7c 11223fi
698dcdb6 11224rm -f conftest*
d836ee96 11225
6232543b 11226fi
698dcdb6 11227rm -f conftest*
703e0a69 11228
1e487827 11229fi
698dcdb6
VZ
11230
11231echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
11232
11233if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 11234 cat >> confdefs.h <<\EOF
0046ff7c
VS
11235#define wxUSE_WCHAR_T 1
11236EOF
11237
11238fi
11239
19af3b06
VZ
11240
11241ac_ext=C
11242# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11243ac_cpp='$CXXCPP $CPPFLAGS'
11244ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11245ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11246cross_compiling=$ac_cv_prog_cxx_cross
11247
d836ee96 11248echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
8168de4c 11249echo "configure:11250: checking if size_t is unsigned int" >&5
d836ee96
VZ
11250if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
11251 echo $ac_n "(cached) $ac_c" 1>&6
11252else
dd2c8b7c 11253 cat > conftest.$ac_ext <<EOF
8168de4c 11254#line 11255 "configure"
d836ee96
VZ
11255#include "confdefs.h"
11256#include <stddef.h>
11257int main() {
11258
dd2c8b7c
VZ
11259 return 0; }
11260
d836ee96 11261 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
11262
11263 int bar() {
d836ee96
VZ
11264
11265; return 0; }
11266EOF
8168de4c 11267if { (eval echo configure:11268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
11268 rm -rf conftest*
11269 wx_cv_size_t_is_uint=no
11270else
11271 echo "configure: failed program was:" >&5
11272 cat conftest.$ac_ext >&5
11273 rm -rf conftest*
11274 wx_cv_size_t_is_uint=yes
11275
11276fi
11277rm -f conftest*
11278
11279fi
11280
11281echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
11282
11283if test "$wx_cv_size_t_is_uint" = "yes"; then
11284 cat >> confdefs.h <<\EOF
11285#define wxSIZE_T_IS_UINT 1
11286EOF
11287
11288else
11289 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
8168de4c 11290echo "configure:11291: checking if size_t is unsigned long" >&5
d836ee96
VZ
11291if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
11292 echo $ac_n "(cached) $ac_c" 1>&6
11293else
11294 cat > conftest.$ac_ext <<EOF
8168de4c 11295#line 11296 "configure"
d836ee96
VZ
11296#include "confdefs.h"
11297#include <stddef.h>
11298int main() {
11299
dd2c8b7c
VZ
11300 return 0; }
11301
d836ee96 11302 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
11303
11304 int bar() {
d836ee96
VZ
11305
11306; return 0; }
11307EOF
8168de4c 11308if { (eval echo configure:11309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
11309 rm -rf conftest*
11310 wx_cv_size_t_is_ulong=no
11311else
11312 echo "configure: failed program was:" >&5
11313 cat conftest.$ac_ext >&5
11314 rm -rf conftest*
11315 wx_cv_size_t_is_ulong=yes
11316
11317fi
11318rm -f conftest*
11319
11320fi
11321
11322echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
11323
11324 if test "$wx_cv_size_t_is_ulong" = "yes"; then
11325 cat >> confdefs.h <<\EOF
11326#define wxSIZE_T_IS_ULONG 1
11327EOF
11328
11329 fi
11330fi
11331
19af3b06
VZ
11332ac_ext=c
11333# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11334ac_cpp='$CPP $CPPFLAGS'
11335ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11336ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11337cross_compiling=$ac_cv_prog_cc_cross
11338
11339
1e487827 11340
698dcdb6 11341echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
8168de4c 11342echo "configure:11343: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
11343if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
11344 echo $ac_n "(cached) $ac_c" 1>&6
11345else
11346
11347 cat > conftest.$ac_ext <<EOF
8168de4c 11348#line 11349 "configure"
b12915c1
VZ
11349#include "confdefs.h"
11350#include <pwd.h>
698dcdb6 11351int main() {
b12915c1
VZ
11352
11353 char *p;
11354 struct passwd *pw;
11355 p = pw->pw_gecos;
698dcdb6
VZ
11356
11357; return 0; }
11358EOF
8168de4c 11359if { (eval echo configure:11360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
11360 rm -rf conftest*
11361
b12915c1 11362 wx_cv_struct_pw_gecos=yes
698dcdb6 11363
b12915c1 11364else
698dcdb6
VZ
11365 echo "configure: failed program was:" >&5
11366 cat conftest.$ac_ext >&5
11367 rm -rf conftest*
11368
b12915c1 11369 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
11370
11371
6232543b 11372fi
698dcdb6
VZ
11373rm -f conftest*
11374
703e0a69 11375
1e487827 11376fi
698dcdb6
VZ
11377
11378echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 11379
bd3277fe 11380if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 11381 cat >> confdefs.h <<\EOF
bd3277fe
VZ
11382#define HAVE_PW_GECOS 1
11383EOF
11384
11385fi
11386
698dcdb6
VZ
11387
11388echo $ac_n "checking for working const""... $ac_c" 1>&6
8168de4c 11389echo "configure:11390: checking for working const" >&5
698dcdb6
VZ
11390if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
11391 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11392else
698dcdb6 11393 cat > conftest.$ac_ext <<EOF
8168de4c 11394#line 11395 "configure"
10f2d63a 11395#include "confdefs.h"
698dcdb6
VZ
11396
11397int main() {
11398
11399/* Ultrix mips cc rejects this. */
11400typedef int charset[2]; const charset x;
11401/* SunOS 4.1.1 cc rejects this. */
11402char const *const *ccp;
11403char **p;
11404/* NEC SVR4.0.2 mips cc rejects this. */
11405struct point {int x, y;};
11406static struct point const zero = {0,0};
11407/* AIX XL C 1.02.0.0 rejects this.
11408 It does not let you subtract one const X* pointer from another in an arm
11409 of an if-expression whose if-part is not a constant expression */
11410const char *g = "string";
11411ccp = &g + (g ? g-g : 0);
11412/* HPUX 7.0 cc rejects these. */
11413++ccp;
11414p = (char**) ccp;
11415ccp = (char const *const *) p;
11416{ /* SCO 3.2v4 cc rejects this. */
11417 char *t;
11418 char const *s = 0 ? (char *) 0 : (char const *) 0;
11419
11420 *t++ = 0;
10f2d63a 11421}
698dcdb6
VZ
11422{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11423 int x[] = {25, 17};
11424 const int *foo = &x[0];
11425 ++foo;
703e0a69 11426}
698dcdb6
VZ
11427{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11428 typedef const int *iptr;
11429 iptr p = 0;
11430 ++p;
6232543b 11431}
698dcdb6
VZ
11432{ /* AIX XL C 1.02.0.0 rejects this saying
11433 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11434 struct s { int j; const int *ap[3]; };
11435 struct s *b; b->j = 5;
1e487827 11436}
698dcdb6
VZ
11437{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11438 const int foo = 10;
11439}
11440
11441; return 0; }
11442EOF
8168de4c 11443if { (eval echo configure:11444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11444 rm -rf conftest*
10f2d63a
VZ
11445 ac_cv_c_const=yes
11446else
698dcdb6
VZ
11447 echo "configure: failed program was:" >&5
11448 cat conftest.$ac_ext >&5
11449 rm -rf conftest*
11450 ac_cv_c_const=no
10f2d63a 11451fi
698dcdb6 11452rm -f conftest*
10f2d63a 11453fi
1e487827 11454
698dcdb6
VZ
11455echo "$ac_t""$ac_cv_c_const" 1>&6
11456if test $ac_cv_c_const = no; then
11457 cat >> confdefs.h <<\EOF
11458#define const
10f2d63a
VZ
11459EOF
11460
11461fi
11462
698dcdb6 11463echo $ac_n "checking for inline""... $ac_c" 1>&6
8168de4c 11464echo "configure:11465: checking for inline" >&5
698dcdb6
VZ
11465if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
11466 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
11467else
11468 ac_cv_c_inline=no
11469for ac_kw in inline __inline__ __inline; do
698dcdb6 11470 cat > conftest.$ac_ext <<EOF
8168de4c 11471#line 11472 "configure"
10f2d63a
VZ
11472#include "confdefs.h"
11473
698dcdb6
VZ
11474int main() {
11475} $ac_kw foo() {
11476; return 0; }
11477EOF
8168de4c 11478if { (eval echo configure:11479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11479 rm -rf conftest*
10f2d63a
VZ
11480 ac_cv_c_inline=$ac_kw; break
11481else
698dcdb6
VZ
11482 echo "configure: failed program was:" >&5
11483 cat conftest.$ac_ext >&5
10f2d63a 11484fi
698dcdb6 11485rm -f conftest*
10f2d63a
VZ
11486done
11487
11488fi
698dcdb6
VZ
11489
11490echo "$ac_t""$ac_cv_c_inline" 1>&6
11491case "$ac_cv_c_inline" in
10f2d63a 11492 inline | yes) ;;
698dcdb6
VZ
11493 no) cat >> confdefs.h <<\EOF
11494#define inline
10f2d63a
VZ
11495EOF
11496 ;;
698dcdb6 11497 *) cat >> confdefs.h <<EOF
10f2d63a
VZ
11498#define inline $ac_cv_c_inline
11499EOF
11500 ;;
11501esac
11502
698dcdb6
VZ
11503
11504echo $ac_n "checking size of char""... $ac_c" 1>&6
8168de4c 11505echo "configure:11506: checking size of char" >&5
698dcdb6
VZ
11506if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
11507 echo $ac_n "(cached) $ac_c" 1>&6
6232543b 11508else
1e487827 11509 if test "$cross_compiling" = yes; then
698dcdb6 11510 ac_cv_sizeof_char=1
1e487827 11511else
698dcdb6 11512 cat > conftest.$ac_ext <<EOF
8168de4c 11513#line 11514 "configure"
1e487827 11514#include "confdefs.h"
698dcdb6
VZ
11515#include <stdio.h>
11516main()
1e487827 11517{
698dcdb6
VZ
11518 FILE *f=fopen("conftestval", "w");
11519 if (!f) exit(1);
11520 fprintf(f, "%d\n", sizeof(char));
11521 exit(0);
1e487827 11522}
698dcdb6 11523EOF
8168de4c 11524if { (eval echo configure:11525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11525then
11526 ac_cv_sizeof_char=`cat conftestval`
1e487827 11527else
698dcdb6
VZ
11528 echo "configure: failed program was:" >&5
11529 cat conftest.$ac_ext >&5
11530 rm -fr conftest*
1e487827
VS
11531 ac_cv_sizeof_char=0
11532fi
698dcdb6 11533rm -fr conftest*
1e487827 11534fi
10f2d63a 11535
1e487827 11536fi
698dcdb6
VZ
11537echo "$ac_t""$ac_cv_sizeof_char" 1>&6
11538cat >> confdefs.h <<EOF
11539#define SIZEOF_CHAR $ac_cv_sizeof_char
1e487827 11540EOF
6232543b 11541
703e0a69 11542
698dcdb6 11543echo $ac_n "checking size of short""... $ac_c" 1>&6
8168de4c 11544echo "configure:11545: checking size of short" >&5
698dcdb6
VZ
11545if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
11546 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 11547else
1e487827 11548 if test "$cross_compiling" = yes; then
698dcdb6 11549 ac_cv_sizeof_short=2
1e487827 11550else
698dcdb6 11551 cat > conftest.$ac_ext <<EOF
8168de4c 11552#line 11553 "configure"
1e487827 11553#include "confdefs.h"
698dcdb6
VZ
11554#include <stdio.h>
11555main()
1e487827 11556{
698dcdb6
VZ
11557 FILE *f=fopen("conftestval", "w");
11558 if (!f) exit(1);
11559 fprintf(f, "%d\n", sizeof(short));
11560 exit(0);
1e487827 11561}
698dcdb6 11562EOF
8168de4c 11563if { (eval echo configure:11564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11564then
11565 ac_cv_sizeof_short=`cat conftestval`
1e487827 11566else
698dcdb6
VZ
11567 echo "configure: failed program was:" >&5
11568 cat conftest.$ac_ext >&5
11569 rm -fr conftest*
11570 ac_cv_sizeof_short=0
1e487827 11571fi
698dcdb6 11572rm -fr conftest*
1e487827 11573fi
698dcdb6 11574
1e487827 11575fi
698dcdb6
VZ
11576echo "$ac_t""$ac_cv_sizeof_short" 1>&6
11577cat >> confdefs.h <<EOF
11578#define SIZEOF_SHORT $ac_cv_sizeof_short
11579EOF
11580
11581
11582echo $ac_n "checking size of int *""... $ac_c" 1>&6
8168de4c 11583echo "configure:11584: checking size of int *" >&5
698dcdb6
VZ
11584if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
11585 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
11586else
11587 if test "$cross_compiling" = yes; then
698dcdb6 11588 ac_cv_sizeof_int_p=4
10f2d63a 11589else
698dcdb6 11590 cat > conftest.$ac_ext <<EOF
8168de4c 11591#line 11592 "configure"
10f2d63a 11592#include "confdefs.h"
698dcdb6
VZ
11593#include <stdio.h>
11594main()
10f2d63a 11595{
698dcdb6
VZ
11596 FILE *f=fopen("conftestval", "w");
11597 if (!f) exit(1);
11598 fprintf(f, "%d\n", sizeof(int *));
11599 exit(0);
10f2d63a 11600}
698dcdb6 11601EOF
8168de4c 11602if { (eval echo configure:11603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11603then
11604 ac_cv_sizeof_int_p=`cat conftestval`
10f2d63a 11605else
698dcdb6
VZ
11606 echo "configure: failed program was:" >&5
11607 cat conftest.$ac_ext >&5
11608 rm -fr conftest*
11609 ac_cv_sizeof_int_p=0
6232543b 11610fi
698dcdb6 11611rm -fr conftest*
1e487827 11612fi
698dcdb6 11613
1e487827 11614fi
698dcdb6
VZ
11615echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
11616cat >> confdefs.h <<EOF
11617#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
11618EOF
11619
698dcdb6
VZ
11620
11621echo $ac_n "checking size of int""... $ac_c" 1>&6
8168de4c 11622echo "configure:11623: checking size of int" >&5
698dcdb6
VZ
11623if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
11624 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
11625else
11626 if test "$cross_compiling" = yes; then
698dcdb6 11627 ac_cv_sizeof_int=4
703e0a69 11628else
698dcdb6 11629 cat > conftest.$ac_ext <<EOF
8168de4c 11630#line 11631 "configure"
1e487827 11631#include "confdefs.h"
698dcdb6
VZ
11632#include <stdio.h>
11633main()
1e487827 11634{
698dcdb6
VZ
11635 FILE *f=fopen("conftestval", "w");
11636 if (!f) exit(1);
11637 fprintf(f, "%d\n", sizeof(int));
11638 exit(0);
1e487827 11639}
698dcdb6 11640EOF
8168de4c 11641if { (eval echo configure:11642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11642then
11643 ac_cv_sizeof_int=`cat conftestval`
11644else
11645 echo "configure: failed program was:" >&5
11646 cat conftest.$ac_ext >&5
11647 rm -fr conftest*
11648 ac_cv_sizeof_int=0
703e0a69 11649fi
698dcdb6
VZ
11650rm -fr conftest*
11651fi
11652
11653fi
11654echo "$ac_t""$ac_cv_sizeof_int" 1>&6
11655cat >> confdefs.h <<EOF
11656#define SIZEOF_INT $ac_cv_sizeof_int
11657EOF
11658
11659
11660echo $ac_n "checking size of long""... $ac_c" 1>&6
8168de4c 11661echo "configure:11662: checking size of long" >&5
698dcdb6
VZ
11662if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
11663 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
11664else
11665 if test "$cross_compiling" = yes; then
698dcdb6 11666 ac_cv_sizeof_long=4
10f2d63a 11667else
698dcdb6 11668 cat > conftest.$ac_ext <<EOF
8168de4c 11669#line 11670 "configure"
10f2d63a 11670#include "confdefs.h"
698dcdb6
VZ
11671#include <stdio.h>
11672main()
10f2d63a 11673{
698dcdb6
VZ
11674 FILE *f=fopen("conftestval", "w");
11675 if (!f) exit(1);
11676 fprintf(f, "%d\n", sizeof(long));
11677 exit(0);
10f2d63a 11678}
698dcdb6 11679EOF
8168de4c 11680if { (eval echo configure:11681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11681then
11682 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 11683else
698dcdb6
VZ
11684 echo "configure: failed program was:" >&5
11685 cat conftest.$ac_ext >&5
11686 rm -fr conftest*
11687 ac_cv_sizeof_long=0
10f2d63a 11688fi
698dcdb6 11689rm -fr conftest*
10f2d63a 11690fi
698dcdb6 11691
10f2d63a 11692fi
698dcdb6
VZ
11693echo "$ac_t""$ac_cv_sizeof_long" 1>&6
11694cat >> confdefs.h <<EOF
11695#define SIZEOF_LONG $ac_cv_sizeof_long
11696EOF
11697
11698
11699echo $ac_n "checking size of long long""... $ac_c" 1>&6
8168de4c 11700echo "configure:11701: checking size of long long" >&5
698dcdb6
VZ
11701if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
11702 echo $ac_n "(cached) $ac_c" 1>&6
11703else
11704 if test "$cross_compiling" = yes; then
11705 ac_cv_sizeof_long_long=0
11706else
11707 cat > conftest.$ac_ext <<EOF
8168de4c 11708#line 11709 "configure"
698dcdb6
VZ
11709#include "confdefs.h"
11710#include <stdio.h>
11711main()
11712{
11713 FILE *f=fopen("conftestval", "w");
11714 if (!f) exit(1);
11715 fprintf(f, "%d\n", sizeof(long long));
11716 exit(0);
11717}
11718EOF
8168de4c 11719if { (eval echo configure:11720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11720then
11721 ac_cv_sizeof_long_long=`cat conftestval`
6232543b 11722else
698dcdb6
VZ
11723 echo "configure: failed program was:" >&5
11724 cat conftest.$ac_ext >&5
11725 rm -fr conftest*
6232543b
VS
11726 ac_cv_sizeof_long_long=0
11727fi
698dcdb6
VZ
11728rm -fr conftest*
11729fi
11730
703e0a69 11731fi
698dcdb6
VZ
11732echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
11733cat >> confdefs.h <<EOF
10f2d63a
VZ
11734#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11735EOF
11736
1e487827 11737
698dcdb6
VZ
11738
11739echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
8168de4c 11740echo "configure:11741: checking size of wchar_t" >&5
698dcdb6
VZ
11741if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
11742 echo $ac_n "(cached) $ac_c" 1>&6
11743else
11744
b93d0d08
VS
11745 if test "$cross_compiling" = yes; then
11746 wx_cv_sizeof_wchar_t=4
1e6feb95 11747
b93d0d08 11748else
698dcdb6 11749 cat > conftest.$ac_ext <<EOF
8168de4c 11750#line 11751 "configure"
b93d0d08
VS
11751#include "confdefs.h"
11752
1e6feb95
VZ
11753 #ifdef HAVE_WCHAR_H
11754 # include <wchar.h>
11755 #endif
11756 #ifdef HAVE_STDLIB_H
11757 # include <stdlib.h>
11758 #endif
11759 #include <stdio.h>
11760 int main()
11761 {
11762 FILE *f=fopen("conftestval", "w");
11763 if (!f) exit(1);
11764 fprintf(f, "%i", sizeof(wchar_t));
11765 exit(0);
11766 }
698dcdb6
VZ
11767
11768EOF
8168de4c 11769if { (eval echo configure:11770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 11770then
b93d0d08
VS
11771 wx_cv_sizeof_wchar_t=`cat conftestval`
11772else
698dcdb6
VZ
11773 echo "configure: failed program was:" >&5
11774 cat conftest.$ac_ext >&5
11775 rm -fr conftest*
11776 wx_cv_sizeof_wchar_t=0
b93d0d08 11777fi
698dcdb6 11778rm -fr conftest*
b93d0d08
VS
11779fi
11780
698dcdb6 11781
b93d0d08
VS
11782fi
11783
698dcdb6
VZ
11784echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
11785
11786cat >> confdefs.h <<EOF
28c6addc 11787#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
b93d0d08
VS
11788EOF
11789
698dcdb6 11790
698dcdb6 11791echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
8168de4c 11792echo "configure:11793: checking whether byte ordering is bigendian" >&5
698dcdb6
VZ
11793if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
11794 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
11795else
11796 ac_cv_c_bigendian=unknown
11797# See if sys/param.h defines the BYTE_ORDER macro.
698dcdb6 11798cat > conftest.$ac_ext <<EOF
8168de4c 11799#line 11800 "configure"
10f2d63a
VZ
11800#include "confdefs.h"
11801#include <sys/types.h>
11802#include <sys/param.h>
698dcdb6 11803int main() {
10f2d63a
VZ
11804
11805#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11806 bogus endian macros
11807#endif
698dcdb6
VZ
11808; return 0; }
11809EOF
8168de4c 11810if { (eval echo configure:11811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11811 rm -rf conftest*
10f2d63a 11812 # It does; now see whether it defined to BIG_ENDIAN or not.
698dcdb6 11813cat > conftest.$ac_ext <<EOF
8168de4c 11814#line 11815 "configure"
10f2d63a
VZ
11815#include "confdefs.h"
11816#include <sys/types.h>
11817#include <sys/param.h>
698dcdb6 11818int main() {
10f2d63a
VZ
11819
11820#if BYTE_ORDER != BIG_ENDIAN
11821 not big endian
11822#endif
698dcdb6
VZ
11823; return 0; }
11824EOF
8168de4c 11825if { (eval echo configure:11826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11826 rm -rf conftest*
10f2d63a
VZ
11827 ac_cv_c_bigendian=yes
11828else
698dcdb6
VZ
11829 echo "configure: failed program was:" >&5
11830 cat conftest.$ac_ext >&5
11831 rm -rf conftest*
11832 ac_cv_c_bigendian=no
10f2d63a 11833fi
698dcdb6 11834rm -f conftest*
10f2d63a 11835else
698dcdb6
VZ
11836 echo "configure: failed program was:" >&5
11837 cat conftest.$ac_ext >&5
10f2d63a 11838fi
698dcdb6 11839rm -f conftest*
10f2d63a
VZ
11840if test $ac_cv_c_bigendian = unknown; then
11841if test "$cross_compiling" = yes; then
11842 ac_cv_c_bigendian=unknown
11843else
698dcdb6 11844 cat > conftest.$ac_ext <<EOF
8168de4c 11845#line 11846 "configure"
10f2d63a
VZ
11846#include "confdefs.h"
11847main () {
11848 /* Are we little or big endian? From Harbison&Steele. */
11849 union
11850 {
11851 long l;
11852 char c[sizeof (long)];
11853 } u;
11854 u.l = 1;
11855 exit (u.c[sizeof (long) - 1] == 1);
11856}
698dcdb6 11857EOF
8168de4c 11858if { (eval echo configure:11859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 11859then
10f2d63a
VZ
11860 ac_cv_c_bigendian=no
11861else
698dcdb6
VZ
11862 echo "configure: failed program was:" >&5
11863 cat conftest.$ac_ext >&5
11864 rm -fr conftest*
11865 ac_cv_c_bigendian=yes
10f2d63a 11866fi
698dcdb6 11867rm -fr conftest*
10f2d63a 11868fi
698dcdb6 11869
10f2d63a
VZ
11870fi
11871fi
698dcdb6
VZ
11872
11873echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10f2d63a 11874if test $ac_cv_c_bigendian = unknown; then
698dcdb6 11875 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
11876fi
11877if test $ac_cv_c_bigendian = yes; then
698dcdb6 11878 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11879#define WORDS_BIGENDIAN 1
11880EOF
11881
11882fi
11883
698dcdb6
VZ
11884
11885
10f2d63a 11886 if test "$cross_compiling" = "yes"; then
698dcdb6 11887 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11888#define wxUSE_IOSTREAMH 1
11889EOF
11890
11891 else
698dcdb6
VZ
11892
11893 ac_ext=C
11894# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 11895ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
11896ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11897ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11898cross_compiling=$ac_cv_prog_cxx_cross
11899
703e0a69 11900
698dcdb6 11901 for ac_hdr in iostream
10f2d63a 11902do
698dcdb6
VZ
11903ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11904echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8168de4c 11905echo "configure:11906: checking for $ac_hdr" >&5
698dcdb6
VZ
11906if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11907 echo $ac_n "(cached) $ac_c" 1>&6
11908else
11909 cat > conftest.$ac_ext <<EOF
8168de4c 11910#line 11911 "configure"
10f2d63a 11911#include "confdefs.h"
698dcdb6
VZ
11912#include <$ac_hdr>
11913EOF
11914ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8168de4c 11915{ (eval echo configure:11916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11916ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11917if test -z "$ac_err"; then
11918 rm -rf conftest*
11919 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11920else
698dcdb6
VZ
11921 echo "$ac_err" >&5
11922 echo "configure: failed program was:" >&5
10f2d63a 11923 cat conftest.$ac_ext >&5
698dcdb6
VZ
11924 rm -rf conftest*
11925 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11926fi
698dcdb6 11927rm -f conftest*
10f2d63a 11928fi
698dcdb6
VZ
11929if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11930 echo "$ac_t""yes" 1>&6
11931 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11932 cat >> confdefs.h <<EOF
11933#define $ac_tr_hdr 1
10f2d63a 11934EOF
698dcdb6
VZ
11935
11936else
11937 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11938fi
11939done
11940
698dcdb6 11941
57fe5ed0
VZ
11942 if test "$ac_cv_header_iostream" = "yes" ; then
11943 :
11944 else
698dcdb6 11945 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11946#define wxUSE_IOSTREAMH 1
11947EOF
11948
10f2d63a
VZ
11949 fi
11950
11951 ac_ext=c
698dcdb6 11952# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 11953ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
11954ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11955ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11956cross_compiling=$ac_cv_prog_cc_cross
10f2d63a
VZ
11957
11958 fi
11959
703e0a69 11960
698dcdb6
VZ
11961
11962 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
8168de4c 11963echo "configure:11964: checking if C++ compiler supports bool" >&5
698dcdb6
VZ
11964if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11965 echo $ac_n "(cached) $ac_c" 1>&6
11966else
11967
11968
11969 ac_ext=C
11970# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 11971ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
11972ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11973ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11974cross_compiling=$ac_cv_prog_cxx_cross
10f2d63a 11975
698dcdb6
VZ
11976
11977 cat > conftest.$ac_ext <<EOF
8168de4c 11978#line 11979 "configure"
10f2d63a
VZ
11979#include "confdefs.h"
11980
698dcdb6
VZ
11981
11982int main() {
10f2d63a
VZ
11983
11984 bool b = true;
11985
11986 return 0;
698dcdb6
VZ
11987
11988; return 0; }
11989EOF
8168de4c 11990if { (eval echo configure:11991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
11991 rm -rf conftest*
11992
10f2d63a 11993 wx_cv_cpp_bool=yes
698dcdb6 11994
10f2d63a 11995else
698dcdb6
VZ
11996 echo "configure: failed program was:" >&5
11997 cat conftest.$ac_ext >&5
11998 rm -rf conftest*
11999
10f2d63a 12000 wx_cv_cpp_bool=no
698dcdb6
VZ
12001
12002
10f2d63a 12003fi
698dcdb6 12004rm -f conftest*
10f2d63a
VZ
12005
12006 ac_ext=c
698dcdb6 12007# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12008ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12009ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12010ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12011cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 12012
698dcdb6 12013
10f2d63a 12014fi
698dcdb6
VZ
12015
12016echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10f2d63a
VZ
12017
12018 if test "$wx_cv_cpp_bool" = "yes"; then
698dcdb6 12019 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12020#define HAVE_BOOL 1
12021EOF
12022
12023 fi
12024
1e487827 12025
698dcdb6 12026
698dcdb6 12027echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
8168de4c 12028echo "configure:12029: checking for wcslen in -lc" >&5
698dcdb6
VZ
12029ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12030if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12031 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12032else
698dcdb6 12033 ac_save_LIBS="$LIBS"
10f2d63a 12034LIBS="-lc $LIBS"
698dcdb6 12035cat > conftest.$ac_ext <<EOF
8168de4c 12036#line 12037 "configure"
10f2d63a
VZ
12037#include "confdefs.h"
12038/* Override any gcc2 internal prototype to avoid an error. */
12039/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12040 builtin and then its argument prototype would still apply. */
12041char wcslen();
12042
12043int main() {
12044wcslen()
12045; return 0; }
12046EOF
8168de4c 12047if { (eval echo configure:12048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12048 rm -rf conftest*
12049 eval "ac_cv_lib_$ac_lib_var=yes"
12050else
12051 echo "configure: failed program was:" >&5
12052 cat conftest.$ac_ext >&5
12053 rm -rf conftest*
12054 eval "ac_cv_lib_$ac_lib_var=no"
12055fi
12056rm -f conftest*
12057LIBS="$ac_save_LIBS"
12058
12059fi
12060if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12061 echo "$ac_t""yes" 1>&6
12062
12063 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12064#define HAVE_WCSLEN 1
12065EOF
12066
12067 WCHAR_LINK=""
698dcdb6 12068
10f2d63a 12069else
698dcdb6 12070 echo "$ac_t""no" 1>&6
10f2d63a 12071
698dcdb6 12072 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
8168de4c 12073echo "configure:12074: checking for wcslen in -lw" >&5
698dcdb6
VZ
12074ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12075if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12076 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12077else
698dcdb6 12078 ac_save_LIBS="$LIBS"
10f2d63a 12079LIBS="-lw $LIBS"
698dcdb6 12080cat > conftest.$ac_ext <<EOF
8168de4c 12081#line 12082 "configure"
10f2d63a
VZ
12082#include "confdefs.h"
12083/* Override any gcc2 internal prototype to avoid an error. */
12084/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12085 builtin and then its argument prototype would still apply. */
12086char wcslen();
12087
12088int main() {
12089wcslen()
12090; return 0; }
12091EOF
8168de4c 12092if { (eval echo configure:12093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12093 rm -rf conftest*
12094 eval "ac_cv_lib_$ac_lib_var=yes"
12095else
12096 echo "configure: failed program was:" >&5
12097 cat conftest.$ac_ext >&5
12098 rm -rf conftest*
12099 eval "ac_cv_lib_$ac_lib_var=no"
12100fi
12101rm -f conftest*
12102LIBS="$ac_save_LIBS"
12103
12104fi
12105if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12106 echo "$ac_t""yes" 1>&6
12107
12108 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12109#define HAVE_WCSLEN 1
12110EOF
12111
12112 WCHAR_LINK="-lw"
698dcdb6
VZ
12113
12114else
12115 echo "$ac_t""no" 1>&6
6232543b 12116fi
10f2d63a 12117
698dcdb6 12118
1e487827 12119fi
703e0a69 12120
698dcdb6
VZ
12121
12122echo $ac_n "checking for vprintf""... $ac_c" 1>&6
8168de4c 12123echo "configure:12124: checking for vprintf" >&5
698dcdb6
VZ
12124if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
12125 echo $ac_n "(cached) $ac_c" 1>&6
12126else
12127 cat > conftest.$ac_ext <<EOF
8168de4c 12128#line 12129 "configure"
10f2d63a
VZ
12129#include "confdefs.h"
12130/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12131 which can conflict with char vprintf(); below. */
10f2d63a
VZ
12132#include <assert.h>
12133/* Override any gcc2 internal prototype to avoid an error. */
12134/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12135 builtin and then its argument prototype would still apply. */
12136char vprintf();
12137
12138int main() {
10f2d63a
VZ
12139
12140/* The GNU C library defines this for functions which it implements
12141 to always fail with ENOSYS. Some functions are actually named
12142 something starting with __ and the normal name is an alias. */
698dcdb6 12143#if defined (__stub_vprintf) || defined (__stub___vprintf)
10f2d63a
VZ
12144choke me
12145#else
698dcdb6 12146vprintf();
10f2d63a
VZ
12147#endif
12148
698dcdb6
VZ
12149; return 0; }
12150EOF
8168de4c 12151if { (eval echo configure:12152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12152 rm -rf conftest*
12153 eval "ac_cv_func_vprintf=yes"
12154else
12155 echo "configure: failed program was:" >&5
12156 cat conftest.$ac_ext >&5
12157 rm -rf conftest*
12158 eval "ac_cv_func_vprintf=no"
12159fi
12160rm -f conftest*
12161fi
12162
12163if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12164 echo "$ac_t""yes" 1>&6
12165 cat >> confdefs.h <<\EOF
12166#define HAVE_VPRINTF 1
12167EOF
12168
12169else
12170 echo "$ac_t""no" 1>&6
12171fi
12172
12173if test "$ac_cv_func_vprintf" != yes; then
12174echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
8168de4c 12175echo "configure:12176: checking for _doprnt" >&5
698dcdb6
VZ
12176if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
12177 echo $ac_n "(cached) $ac_c" 1>&6
12178else
12179 cat > conftest.$ac_ext <<EOF
8168de4c 12180#line 12181 "configure"
10f2d63a
VZ
12181#include "confdefs.h"
12182/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12183 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
12184#include <assert.h>
12185/* Override any gcc2 internal prototype to avoid an error. */
12186/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12187 builtin and then its argument prototype would still apply. */
12188char _doprnt();
12189
12190int main() {
10f2d63a
VZ
12191
12192/* The GNU C library defines this for functions which it implements
12193 to always fail with ENOSYS. Some functions are actually named
12194 something starting with __ and the normal name is an alias. */
12195#if defined (__stub__doprnt) || defined (__stub____doprnt)
12196choke me
12197#else
698dcdb6 12198_doprnt();
10f2d63a
VZ
12199#endif
12200
698dcdb6
VZ
12201; return 0; }
12202EOF
8168de4c 12203if { (eval echo configure:12204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12204 rm -rf conftest*
12205 eval "ac_cv_func__doprnt=yes"
12206else
12207 echo "configure: failed program was:" >&5
12208 cat conftest.$ac_ext >&5
12209 rm -rf conftest*
12210 eval "ac_cv_func__doprnt=no"
12211fi
12212rm -f conftest*
12213fi
12214
12215if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12216 echo "$ac_t""yes" 1>&6
12217 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12218#define HAVE_DOPRNT 1
12219EOF
12220
698dcdb6
VZ
12221else
12222 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12223fi
12224
12225fi
12226
1e487827 12227
698dcdb6
VZ
12228
12229
12230
12231
12232
12233echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
8168de4c 12234echo "configure:12235: checking for vsnprintf" >&5
698dcdb6
VZ
12235if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
12236 echo $ac_n "(cached) $ac_c" 1>&6
12237else
12238
12239 cat > conftest.$ac_ext <<EOF
8168de4c 12240#line 12241 "configure"
f6bcfd97
BP
12241#include "confdefs.h"
12242
12243 #include <stdio.h>
698dcdb6
VZ
12244 #include <stdarg.h>
12245
12246int main() {
10f2d63a 12247
f6bcfd97 12248 int wx_test_vsnprintf(const char *, ...);
10f2d63a 12249
f6bcfd97
BP
12250 wx_test_vsnprintf("%s");
12251 return 0;
12252 }
12253
12254 int wx_test_vsnprintf(const char *fmt, ...)
12255 {
12256 char *s;
12257
12258 va_list argp;
12259 va_start(argp, fmt);
12260 vsnprintf(s, 42, fmt, argp);
12261 va_end(argp);
698dcdb6
VZ
12262
12263; return 0; }
12264EOF
8168de4c 12265if { (eval echo configure:12266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12266 rm -rf conftest*
12267
f6bcfd97 12268 wx_cv_func_vsnprintf=yes
698dcdb6 12269
10f2d63a 12270else
698dcdb6
VZ
12271 echo "configure: failed program was:" >&5
12272 cat conftest.$ac_ext >&5
12273 rm -rf conftest*
12274
12275 cat > conftest.$ac_ext <<EOF
8168de4c 12276#line 12277 "configure"
c521c494
RL
12277#include "confdefs.h"
12278
12279 #include <stdio.h>
12280 #include <stdarg.h>
698dcdb6
VZ
12281
12282int main() {
c521c494
RL
12283
12284 int wx_test_vsnprintf(const char *, ...);
12285
12286 wx_test_vsnprintf("%s");
12287 return 0;
12288 }
12289
12290 int wx_test_vsnprintf(const char *fmt, ...)
12291 {
12292 char *s;
12293
12294 va_list argp;
12295 va_start(argp, fmt);
12296 _vsnprintf(s, 42, fmt, argp);
12297 va_end(argp);
698dcdb6
VZ
12298
12299; return 0; }
12300EOF
8168de4c 12301if { (eval echo configure:12302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12302 rm -rf conftest*
12303
c521c494 12304 wx_cv_func_vsnprintf=yes
698dcdb6 12305
c521c494 12306else
698dcdb6
VZ
12307 echo "configure: failed program was:" >&5
12308 cat conftest.$ac_ext >&5
12309 rm -rf conftest*
12310
c521c494 12311 wx_cv_func_vsnprintf=no
698dcdb6 12312
10f2d63a 12313fi
698dcdb6
VZ
12314rm -f conftest*
12315
6232543b 12316fi
698dcdb6 12317rm -f conftest*
703e0a69 12318
1e487827 12319fi
698dcdb6
VZ
12320
12321echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
10f2d63a 12322
9d8deca0 12323if test "$wx_cv_func_vsnprintf" = yes; then
698dcdb6 12324 cat >> confdefs.h <<\EOF
9d8deca0
VZ
12325#define HAVE_VSNPRINTF 1
12326EOF
12327
12328else
698dcdb6 12329 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9d8deca0
VZ
12330fi
12331
698dcdb6 12332echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
8168de4c 12333echo "configure:12334: checking for vsscanf" >&5
698dcdb6
VZ
12334if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
12335 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12336else
698dcdb6
VZ
12337
12338 cat > conftest.$ac_ext <<EOF
8168de4c 12339#line 12340 "configure"
10f2d63a 12340#include "confdefs.h"
10f2d63a 12341
f6bcfd97
BP
12342 #include <stdio.h>
12343 #include <stdarg.h>
698dcdb6
VZ
12344
12345int main() {
10f2d63a 12346
f6bcfd97 12347 int wx_test_vsscanf(const char *, ...);
10f2d63a 12348
f6bcfd97
BP
12349 wx_test_vsscanf("%d");
12350 return 0;
10f2d63a
VZ
12351 }
12352
f6bcfd97 12353 int wx_test_vsscanf(const char *fmt, ...)
10f2d63a 12354 {
f6bcfd97
BP
12355 va_list argp;
12356 va_start(argp, fmt);
12357 vsscanf("42", fmt, argp);
12358 va_end(argp);
698dcdb6
VZ
12359
12360; return 0; }
12361EOF
8168de4c 12362if { (eval echo configure:12363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12363 rm -rf conftest*
12364
f6bcfd97 12365 wx_cv_func_vsscanf=yes
698dcdb6 12366
10f2d63a 12367else
698dcdb6
VZ
12368 echo "configure: failed program was:" >&5
12369 cat conftest.$ac_ext >&5
12370 rm -rf conftest*
12371
f6bcfd97 12372 wx_cv_func_vsscanf=no
698dcdb6 12373
6232543b 12374fi
698dcdb6 12375rm -f conftest*
703e0a69 12376
1e487827 12377fi
698dcdb6
VZ
12378
12379echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10f2d63a 12380
9d8deca0 12381if test "$wx_cv_func_vsscanf" = yes; then
698dcdb6 12382 cat >> confdefs.h <<\EOF
9d8deca0
VZ
12383#define HAVE_VSSCANF 1
12384EOF
12385
12386fi
12387
95c8801c
VS
12388if test "$TOOLKIT" != "MSW"; then
12389
12390
12391
698dcdb6
VZ
12392ac_ext=C
12393# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12394ac_cpp='$CXXCPP $CPPFLAGS'
12395ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12396ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12397cross_compiling=$ac_cv_prog_cxx_cross
12398
12399echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
8168de4c 12400echo "configure:12401: checking if iconv() takes char**" >&5
698dcdb6
VZ
12401if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
12402 echo $ac_n "(cached) $ac_c" 1>&6
12403else
12404
12405 cat > conftest.$ac_ext <<EOF
8168de4c 12406#line 12407 "configure"
95c8801c
VS
12407#include "confdefs.h"
12408#include <iconv.h>
698dcdb6 12409int main() {
95c8801c
VS
12410
12411 char **inbuf, **outbuf;
19af3b06
VZ
12412 iconv_t cd;
12413 size_t insz, outsz;
12414 iconv(cd, inbuf, &insz, outbuf, &outsz);
698dcdb6
VZ
12415
12416; return 0; }
12417EOF
8168de4c 12418if { (eval echo configure:12419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12419 rm -rf conftest*
95c8801c
VS
12420 wx_cv_iconv_takes_char=yes
12421else
698dcdb6
VZ
12422 echo "configure: failed program was:" >&5
12423 cat conftest.$ac_ext >&5
12424 rm -rf conftest*
12425 wx_cv_iconv_takes_char=no
95c8801c 12426fi
698dcdb6 12427rm -f conftest*
95c8801c
VS
12428
12429fi
698dcdb6
VZ
12430
12431echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
10f2d63a 12432ac_ext=c
698dcdb6 12433# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12434ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12435ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12436ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12437cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 12438
95c8801c 12439if test "$wx_cv_iconv_takes_char" = yes ; then
698dcdb6 12440 cat >> confdefs.h <<\EOF
95c8801c
VS
12441#define WX_ICONV_TAKES_CHAR 1
12442EOF
12443
12444fi
10f2d63a 12445
1e487827 12446
698dcdb6
VZ
12447if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
12448 for ac_func in sigaction
eb4efbdc 12449do
698dcdb6 12450echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8168de4c 12451echo "configure:12452: checking for $ac_func" >&5
698dcdb6
VZ
12452if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12453 echo $ac_n "(cached) $ac_c" 1>&6
12454else
12455 cat > conftest.$ac_ext <<EOF
8168de4c 12456#line 12457 "configure"
eb4efbdc
VZ
12457#include "confdefs.h"
12458/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12459 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
12460#include <assert.h>
12461/* Override any gcc2 internal prototype to avoid an error. */
12462/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12463 builtin and then its argument prototype would still apply. */
12464char $ac_func();
12465
12466int main() {
eb4efbdc
VZ
12467
12468/* The GNU C library defines this for functions which it implements
12469 to always fail with ENOSYS. Some functions are actually named
12470 something starting with __ and the normal name is an alias. */
12471#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12472choke me
12473#else
698dcdb6 12474$ac_func();
eb4efbdc
VZ
12475#endif
12476
698dcdb6 12477; return 0; }
eb4efbdc 12478EOF
8168de4c 12479if { (eval echo configure:12480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12480 rm -rf conftest*
12481 eval "ac_cv_func_$ac_func=yes"
12482else
12483 echo "configure: failed program was:" >&5
12484 cat conftest.$ac_ext >&5
12485 rm -rf conftest*
12486 eval "ac_cv_func_$ac_func=no"
12487fi
12488rm -f conftest*
12489fi
eb4efbdc 12490
698dcdb6
VZ
12491if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12492 echo "$ac_t""yes" 1>&6
12493 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12494 cat >> confdefs.h <<EOF
12495#define $ac_tr_func 1
12496EOF
12497
12498else
12499 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
12500fi
12501done
12502
698dcdb6 12503
eb4efbdc 12504 if test "$ac_cv_func_sigaction" = "no"; then
698dcdb6 12505 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
eb4efbdc
VZ
12506 wxUSE_ON_FATAL_EXCEPTION=no
12507 fi
f6bcfd97
BP
12508
12509 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6
VZ
12510
12511 ac_ext=C
12512# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12513ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12514ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12515ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12516cross_compiling=$ac_cv_prog_cxx_cross
6232543b 12517
1e487827 12518
698dcdb6 12519 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
8168de4c 12520echo "configure:12521: checking for sa_handler type" >&5
698dcdb6
VZ
12521if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
12522 echo $ac_n "(cached) $ac_c" 1>&6
12523else
12524
12525 cat > conftest.$ac_ext <<EOF
8168de4c 12526#line 12527 "configure"
f6bcfd97
BP
12527#include "confdefs.h"
12528#include <signal.h>
698dcdb6 12529int main() {
f6bcfd97
BP
12530
12531 extern void testSigHandler(int);
12532
12533 struct sigaction sa;
12534 sa.sa_handler = testSigHandler;
698dcdb6
VZ
12535
12536; return 0; }
12537EOF
8168de4c 12538if { (eval echo configure:12539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12539 rm -rf conftest*
12540
f6bcfd97 12541 wx_cv_type_sa_handler=int
698dcdb6 12542
f6bcfd97 12543else
698dcdb6
VZ
12544 echo "configure: failed program was:" >&5
12545 cat conftest.$ac_ext >&5
12546 rm -rf conftest*
12547
f6bcfd97 12548 wx_cv_type_sa_handler=void
698dcdb6 12549
6232543b 12550fi
698dcdb6
VZ
12551rm -f conftest*
12552
1e487827 12553fi
698dcdb6
VZ
12554
12555echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
f6bcfd97
BP
12556
12557 ac_ext=c
698dcdb6 12558# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
f6bcfd97 12559ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12560ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12561ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12562cross_compiling=$ac_cv_prog_cc_cross
12563
703e0a69 12564
698dcdb6 12565 cat >> confdefs.h <<EOF
f6bcfd97
BP
12566#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
12567EOF
12568
12569 fi
eb4efbdc
VZ
12570fi
12571
10f2d63a
VZ
12572for ac_func in vfork
12573do
698dcdb6 12574echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8168de4c 12575echo "configure:12576: checking for $ac_func" >&5
698dcdb6
VZ
12576if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12577 echo $ac_n "(cached) $ac_c" 1>&6
12578else
12579 cat > conftest.$ac_ext <<EOF
8168de4c 12580#line 12581 "configure"
10f2d63a
VZ
12581#include "confdefs.h"
12582/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12583 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
12584#include <assert.h>
12585/* Override any gcc2 internal prototype to avoid an error. */
12586/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12587 builtin and then its argument prototype would still apply. */
12588char $ac_func();
12589
12590int main() {
10f2d63a
VZ
12591
12592/* The GNU C library defines this for functions which it implements
12593 to always fail with ENOSYS. Some functions are actually named
12594 something starting with __ and the normal name is an alias. */
12595#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12596choke me
12597#else
698dcdb6 12598$ac_func();
10f2d63a
VZ
12599#endif
12600
698dcdb6 12601; return 0; }
10f2d63a 12602EOF
8168de4c 12603if { (eval echo configure:12604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12604 rm -rf conftest*
12605 eval "ac_cv_func_$ac_func=yes"
12606else
12607 echo "configure: failed program was:" >&5
12608 cat conftest.$ac_ext >&5
12609 rm -rf conftest*
12610 eval "ac_cv_func_$ac_func=no"
12611fi
12612rm -f conftest*
12613fi
270a909e 12614
698dcdb6
VZ
12615if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12616 echo "$ac_t""yes" 1>&6
12617 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12618 cat >> confdefs.h <<EOF
12619#define $ac_tr_func 1
12620EOF
12621
12622else
12623 echo "$ac_t""no" 1>&6
270a909e
VZ
12624fi
12625done
12626
1e487827 12627
698dcdb6
VZ
12628if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
12629 for ac_func in fcntl flock
4f3c5f06 12630do
698dcdb6 12631echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8168de4c 12632echo "configure:12633: checking for $ac_func" >&5
698dcdb6
VZ
12633if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12634 echo $ac_n "(cached) $ac_c" 1>&6
12635else
12636 cat > conftest.$ac_ext <<EOF
8168de4c 12637#line 12638 "configure"
4f3c5f06
VZ
12638#include "confdefs.h"
12639/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12640 which can conflict with char $ac_func(); below. */
4f3c5f06
VZ
12641#include <assert.h>
12642/* Override any gcc2 internal prototype to avoid an error. */
12643/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12644 builtin and then its argument prototype would still apply. */
12645char $ac_func();
12646
12647int main() {
4f3c5f06
VZ
12648
12649/* The GNU C library defines this for functions which it implements
12650 to always fail with ENOSYS. Some functions are actually named
12651 something starting with __ and the normal name is an alias. */
12652#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12653choke me
12654#else
698dcdb6 12655$ac_func();
4f3c5f06
VZ
12656#endif
12657
698dcdb6
VZ
12658; return 0; }
12659EOF
8168de4c 12660if { (eval echo configure:12661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12661 rm -rf conftest*
12662 eval "ac_cv_func_$ac_func=yes"
12663else
12664 echo "configure: failed program was:" >&5
12665 cat conftest.$ac_ext >&5
12666 rm -rf conftest*
12667 eval "ac_cv_func_$ac_func=no"
12668fi
12669rm -f conftest*
12670fi
12671
12672if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12673 echo "$ac_t""yes" 1>&6
12674 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12675 cat >> confdefs.h <<EOF
12676#define $ac_tr_func 1
4f3c5f06
VZ
12677EOF
12678 break
698dcdb6
VZ
12679else
12680 echo "$ac_t""no" 1>&6
4f3c5f06
VZ
12681fi
12682done
12683
698dcdb6 12684
4f3c5f06 12685 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
698dcdb6 12686 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f3c5f06
VZ
12687 wxUSE_SNGLINST_CHECKER=no
12688 fi
12689fi
12690
270a909e
VZ
12691for ac_func in timegm
12692do
698dcdb6 12693echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8168de4c 12694echo "configure:12695: checking for $ac_func" >&5
698dcdb6
VZ
12695if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12696 echo $ac_n "(cached) $ac_c" 1>&6
12697else
12698 cat > conftest.$ac_ext <<EOF
8168de4c 12699#line 12700 "configure"
270a909e
VZ
12700#include "confdefs.h"
12701/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12702 which can conflict with char $ac_func(); below. */
270a909e
VZ
12703#include <assert.h>
12704/* Override any gcc2 internal prototype to avoid an error. */
12705/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12706 builtin and then its argument prototype would still apply. */
12707char $ac_func();
12708
12709int main() {
270a909e
VZ
12710
12711/* The GNU C library defines this for functions which it implements
12712 to always fail with ENOSYS. Some functions are actually named
12713 something starting with __ and the normal name is an alias. */
12714#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12715choke me
12716#else
698dcdb6 12717$ac_func();
270a909e
VZ
12718#endif
12719
698dcdb6 12720; return 0; }
270a909e 12721EOF
8168de4c 12722if { (eval echo configure:12723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12723 rm -rf conftest*
12724 eval "ac_cv_func_$ac_func=yes"
12725else
12726 echo "configure: failed program was:" >&5
12727 cat conftest.$ac_ext >&5
12728 rm -rf conftest*
12729 eval "ac_cv_func_$ac_func=no"
12730fi
12731rm -f conftest*
12732fi
10f2d63a 12733
698dcdb6
VZ
12734if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12735 echo "$ac_t""yes" 1>&6
12736 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12737 cat >> confdefs.h <<EOF
12738#define $ac_tr_func 1
12739EOF
12740
12741else
12742 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12743fi
12744done
12745
698dcdb6 12746
8fd0d89b
VZ
12747for ac_func in putenv setenv
12748do
698dcdb6 12749echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8168de4c 12750echo "configure:12751: checking for $ac_func" >&5
698dcdb6
VZ
12751if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12752 echo $ac_n "(cached) $ac_c" 1>&6
12753else
12754 cat > conftest.$ac_ext <<EOF
8168de4c 12755#line 12756 "configure"
8fd0d89b
VZ
12756#include "confdefs.h"
12757/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12758 which can conflict with char $ac_func(); below. */
8fd0d89b
VZ
12759#include <assert.h>
12760/* Override any gcc2 internal prototype to avoid an error. */
12761/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12762 builtin and then its argument prototype would still apply. */
12763char $ac_func();
12764
12765int main() {
8fd0d89b
VZ
12766
12767/* The GNU C library defines this for functions which it implements
12768 to always fail with ENOSYS. Some functions are actually named
12769 something starting with __ and the normal name is an alias. */
12770#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12771choke me
12772#else
698dcdb6 12773$ac_func();
8fd0d89b
VZ
12774#endif
12775
698dcdb6
VZ
12776; return 0; }
12777EOF
8168de4c 12778if { (eval echo configure:12779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12779 rm -rf conftest*
12780 eval "ac_cv_func_$ac_func=yes"
12781else
12782 echo "configure: failed program was:" >&5
12783 cat conftest.$ac_ext >&5
12784 rm -rf conftest*
12785 eval "ac_cv_func_$ac_func=no"
12786fi
12787rm -f conftest*
12788fi
12789
12790if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12791 echo "$ac_t""yes" 1>&6
12792 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12793 cat >> confdefs.h <<EOF
12794#define $ac_tr_func 1
8fd0d89b
VZ
12795EOF
12796 break
698dcdb6
VZ
12797else
12798 echo "$ac_t""no" 1>&6
8fd0d89b
VZ
12799fi
12800done
12801
698dcdb6 12802
b12915c1
VZ
12803HAVE_SOME_SLEEP_FUNC=0
12804if test "$USE_BEOS" = 1; then
698dcdb6 12805 cat >> confdefs.h <<\EOF
b12915c1
VZ
12806#define HAVE_SLEEP 1
12807EOF
12808
12809 HAVE_SOME_SLEEP_FUNC=1
12810fi
12811
b4085ce6 12812if test "$USE_MAC" = 1; then
698dcdb6 12813 cat >> confdefs.h <<\EOF
b4085ce6
GD
12814#define HAVE_USLEEP 1
12815EOF
12816
12817 HAVE_SOME_SLEEP_FUNC=1
12818fi
12819
b12915c1
VZ
12820if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
12821 POSIX4_LINK=
698dcdb6 12822 for ac_func in nanosleep
10f2d63a 12823do
698dcdb6 12824echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8168de4c 12825echo "configure:12826: checking for $ac_func" >&5
698dcdb6
VZ
12826if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12827 echo $ac_n "(cached) $ac_c" 1>&6
12828else
12829 cat > conftest.$ac_ext <<EOF
8168de4c 12830#line 12831 "configure"
10f2d63a
VZ
12831#include "confdefs.h"
12832/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12833 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
12834#include <assert.h>
12835/* Override any gcc2 internal prototype to avoid an error. */
12836/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12837 builtin and then its argument prototype would still apply. */
12838char $ac_func();
12839
12840int main() {
10f2d63a
VZ
12841
12842/* The GNU C library defines this for functions which it implements
12843 to always fail with ENOSYS. Some functions are actually named
12844 something starting with __ and the normal name is an alias. */
12845#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12846choke me
12847#else
698dcdb6 12848$ac_func();
10f2d63a
VZ
12849#endif
12850
698dcdb6
VZ
12851; return 0; }
12852EOF
8168de4c 12853if { (eval echo configure:12854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12854 rm -rf conftest*
12855 eval "ac_cv_func_$ac_func=yes"
12856else
12857 echo "configure: failed program was:" >&5
12858 cat conftest.$ac_ext >&5
12859 rm -rf conftest*
12860 eval "ac_cv_func_$ac_func=no"
12861fi
12862rm -f conftest*
12863fi
12864
12865if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12866 echo "$ac_t""yes" 1>&6
12867 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12868 cat >> confdefs.h <<EOF
12869#define $ac_tr_func 1
12870EOF
12871 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12872#define HAVE_NANOSLEEP 1
12873EOF
12874
12875else
698dcdb6
VZ
12876 echo "$ac_t""no" 1>&6
12877echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
8168de4c 12878echo "configure:12879: checking for nanosleep in -lposix4" >&5
698dcdb6
VZ
12879ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
12880if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12881 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12882else
698dcdb6 12883 ac_save_LIBS="$LIBS"
10f2d63a 12884LIBS="-lposix4 $LIBS"
698dcdb6 12885cat > conftest.$ac_ext <<EOF
8168de4c 12886#line 12887 "configure"
10f2d63a
VZ
12887#include "confdefs.h"
12888/* Override any gcc2 internal prototype to avoid an error. */
12889/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12890 builtin and then its argument prototype would still apply. */
12891char nanosleep();
12892
12893int main() {
12894nanosleep()
12895; return 0; }
12896EOF
8168de4c 12897if { (eval echo configure:12898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12898 rm -rf conftest*
12899 eval "ac_cv_lib_$ac_lib_var=yes"
12900else
12901 echo "configure: failed program was:" >&5
12902 cat conftest.$ac_ext >&5
12903 rm -rf conftest*
12904 eval "ac_cv_lib_$ac_lib_var=no"
12905fi
12906rm -f conftest*
12907LIBS="$ac_save_LIBS"
12908
12909fi
12910if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12911 echo "$ac_t""yes" 1>&6
12912
12913 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12914#define HAVE_NANOSLEEP 1
12915EOF
12916
b12915c1 12917 POSIX4_LINK="-lposix4"
698dcdb6 12918
10f2d63a 12919else
698dcdb6 12920 echo "$ac_t""no" 1>&6
10f2d63a 12921
698dcdb6 12922 for ac_func in usleep
10f2d63a 12923do
698dcdb6 12924echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8168de4c 12925echo "configure:12926: checking for $ac_func" >&5
698dcdb6
VZ
12926if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12927 echo $ac_n "(cached) $ac_c" 1>&6
12928else
12929 cat > conftest.$ac_ext <<EOF
8168de4c 12930#line 12931 "configure"
10f2d63a
VZ
12931#include "confdefs.h"
12932/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12933 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
12934#include <assert.h>
12935/* Override any gcc2 internal prototype to avoid an error. */
12936/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12937 builtin and then its argument prototype would still apply. */
12938char $ac_func();
12939
12940int main() {
10f2d63a
VZ
12941
12942/* The GNU C library defines this for functions which it implements
12943 to always fail with ENOSYS. Some functions are actually named
12944 something starting with __ and the normal name is an alias. */
12945#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12946choke me
12947#else
698dcdb6 12948$ac_func();
10f2d63a
VZ
12949#endif
12950
698dcdb6
VZ
12951; return 0; }
12952EOF
8168de4c 12953if { (eval echo configure:12954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12954 rm -rf conftest*
12955 eval "ac_cv_func_$ac_func=yes"
12956else
12957 echo "configure: failed program was:" >&5
12958 cat conftest.$ac_ext >&5
12959 rm -rf conftest*
12960 eval "ac_cv_func_$ac_func=no"
12961fi
12962rm -f conftest*
12963fi
12964
12965if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12966 echo "$ac_t""yes" 1>&6
12967 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12968 cat >> confdefs.h <<EOF
12969#define $ac_tr_func 1
12970EOF
12971 cat >> confdefs.h <<\EOF
b4085ce6
GD
12972#define HAVE_USLEEP 1
12973EOF
12974
10f2d63a 12975else
698dcdb6
VZ
12976 echo "$ac_t""no" 1>&6
12977echo "configure: warning: wxSleep() function will not work" 1>&2
12978
10f2d63a
VZ
12979fi
12980done
12981
698dcdb6
VZ
12982
12983
10f2d63a
VZ
12984fi
12985
698dcdb6
VZ
12986
12987
10f2d63a
VZ
12988fi
12989done
12990
b12915c1 12991fi
10f2d63a
VZ
12992
12993for ac_func in uname gethostname
12994do
698dcdb6 12995echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8168de4c 12996echo "configure:12997: checking for $ac_func" >&5
698dcdb6
VZ
12997if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12998 echo $ac_n "(cached) $ac_c" 1>&6
12999else
13000 cat > conftest.$ac_ext <<EOF
8168de4c 13001#line 13002 "configure"
10f2d63a
VZ
13002#include "confdefs.h"
13003/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13004 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13005#include <assert.h>
13006/* Override any gcc2 internal prototype to avoid an error. */
13007/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13008 builtin and then its argument prototype would still apply. */
13009char $ac_func();
13010
13011int main() {
10f2d63a
VZ
13012
13013/* The GNU C library defines this for functions which it implements
13014 to always fail with ENOSYS. Some functions are actually named
13015 something starting with __ and the normal name is an alias. */
13016#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13017choke me
13018#else
698dcdb6 13019$ac_func();
10f2d63a
VZ
13020#endif
13021
698dcdb6
VZ
13022; return 0; }
13023EOF
8168de4c 13024if { (eval echo configure:13025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13025 rm -rf conftest*
13026 eval "ac_cv_func_$ac_func=yes"
13027else
13028 echo "configure: failed program was:" >&5
13029 cat conftest.$ac_ext >&5
13030 rm -rf conftest*
13031 eval "ac_cv_func_$ac_func=no"
13032fi
13033rm -f conftest*
13034fi
13035
13036if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13037 echo "$ac_t""yes" 1>&6
13038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13039 cat >> confdefs.h <<EOF
13040#define $ac_tr_func 1
10f2d63a
VZ
13041EOF
13042 break
698dcdb6
VZ
13043else
13044 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13045fi
13046done
13047
698dcdb6
VZ
13048
13049
13050ac_ext=C
13051# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 13052ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
13053ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13054ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13055cross_compiling=$ac_cv_prog_cxx_cross
13056
6098c7f9 13057
10f2d63a
VZ
13058for ac_func in strtok_r
13059do
698dcdb6 13060echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8168de4c 13061echo "configure:13062: checking for $ac_func" >&5
698dcdb6
VZ
13062if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13063 echo $ac_n "(cached) $ac_c" 1>&6
13064else
13065 cat > conftest.$ac_ext <<EOF
8168de4c 13066#line 13067 "configure"
10f2d63a
VZ
13067#include "confdefs.h"
13068/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13069 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13070#include <assert.h>
13071/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
13072#ifdef __cplusplus
13073extern "C"
13074#endif
10f2d63a 13075/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13076 builtin and then its argument prototype would still apply. */
13077char $ac_func();
13078
13079int main() {
10f2d63a
VZ
13080
13081/* The GNU C library defines this for functions which it implements
13082 to always fail with ENOSYS. Some functions are actually named
13083 something starting with __ and the normal name is an alias. */
13084#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13085choke me
13086#else
698dcdb6 13087$ac_func();
10f2d63a
VZ
13088#endif
13089
698dcdb6 13090; return 0; }
10f2d63a 13091EOF
8168de4c 13092if { (eval echo configure:13093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13093 rm -rf conftest*
13094 eval "ac_cv_func_$ac_func=yes"
13095else
13096 echo "configure: failed program was:" >&5
13097 cat conftest.$ac_ext >&5
13098 rm -rf conftest*
13099 eval "ac_cv_func_$ac_func=no"
13100fi
13101rm -f conftest*
13102fi
10f2d63a 13103
698dcdb6
VZ
13104if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13105 echo "$ac_t""yes" 1>&6
13106 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13107 cat >> confdefs.h <<EOF
13108#define $ac_tr_func 1
13109EOF
13110
13111else
13112 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13113fi
13114done
13115
698dcdb6 13116
6098c7f9 13117ac_ext=c
698dcdb6 13118# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 13119ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13120ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13121ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13122cross_compiling=$ac_cv_prog_cc_cross
6232543b 13123
1e487827 13124
698dcdb6 13125INET_LINK=
10f2d63a
VZ
13126for ac_func in inet_addr
13127do
698dcdb6 13128echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8168de4c 13129echo "configure:13130: checking for $ac_func" >&5
698dcdb6
VZ
13130if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13131 echo $ac_n "(cached) $ac_c" 1>&6
13132else
13133 cat > conftest.$ac_ext <<EOF
8168de4c 13134#line 13135 "configure"
10f2d63a
VZ
13135#include "confdefs.h"
13136/* System header to define __stub macros and hopefully few prototypes,
698dcdb6
VZ
13137 which can conflict with char $ac_func(); below. */
13138#include <assert.h>
13139/* Override any gcc2 internal prototype to avoid an error. */
10f2d63a 13140/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13141 builtin and then its argument prototype would still apply. */
13142char $ac_func();
13143
13144int main() {
10f2d63a
VZ
13145
13146/* The GNU C library defines this for functions which it implements
13147 to always fail with ENOSYS. Some functions are actually named
1e487827
VS
13148 something starting with __ and the normal name is an alias. */
13149#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13150choke me
13151#else
698dcdb6 13152$ac_func();
1e487827 13153#endif
703e0a69 13154
698dcdb6
VZ
13155; return 0; }
13156EOF
8168de4c 13157if { (eval echo configure:13158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13158 rm -rf conftest*
13159 eval "ac_cv_func_$ac_func=yes"
13160else
13161 echo "configure: failed program was:" >&5
13162 cat conftest.$ac_ext >&5
13163 rm -rf conftest*
13164 eval "ac_cv_func_$ac_func=no"
13165fi
13166rm -f conftest*
13167fi
13168
13169if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13170 echo "$ac_t""yes" 1>&6
13171 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13172 cat >> confdefs.h <<EOF
13173#define $ac_tr_func 1
13174EOF
13175 cat >> confdefs.h <<\EOF
c63c7106
VZ
13176#define HAVE_INET_ADDR 1
13177EOF
13178
10f2d63a 13179else
698dcdb6
VZ
13180 echo "$ac_t""no" 1>&6
13181echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
8168de4c 13182echo "configure:13183: checking for inet_addr in -lnsl" >&5
698dcdb6
VZ
13183ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
13184if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13185 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 13186else
698dcdb6 13187 ac_save_LIBS="$LIBS"
c63c7106 13188LIBS="-lnsl $LIBS"
698dcdb6 13189cat > conftest.$ac_ext <<EOF
8168de4c 13190#line 13191 "configure"
c63c7106
VZ
13191#include "confdefs.h"
13192/* Override any gcc2 internal prototype to avoid an error. */
13193/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13194 builtin and then its argument prototype would still apply. */
13195char inet_addr();
13196
13197int main() {
13198inet_addr()
13199; return 0; }
13200EOF
8168de4c 13201if { (eval echo configure:13202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13202 rm -rf conftest*
13203 eval "ac_cv_lib_$ac_lib_var=yes"
13204else
13205 echo "configure: failed program was:" >&5
13206 cat conftest.$ac_ext >&5
13207 rm -rf conftest*
13208 eval "ac_cv_lib_$ac_lib_var=no"
13209fi
13210rm -f conftest*
13211LIBS="$ac_save_LIBS"
13212
13213fi
13214if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13215 echo "$ac_t""yes" 1>&6
c63c7106
VZ
13216 INET_LINK="nsl"
13217else
698dcdb6
VZ
13218 echo "$ac_t""no" 1>&6
13219echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
8168de4c 13220echo "configure:13221: checking for inet_addr in -lresolv" >&5
698dcdb6
VZ
13221ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
13222if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13223 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 13224else
698dcdb6 13225 ac_save_LIBS="$LIBS"
c63c7106 13226LIBS="-lresolv $LIBS"
698dcdb6 13227cat > conftest.$ac_ext <<EOF
8168de4c 13228#line 13229 "configure"
c63c7106
VZ
13229#include "confdefs.h"
13230/* Override any gcc2 internal prototype to avoid an error. */
13231/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13232 builtin and then its argument prototype would still apply. */
13233char inet_addr();
13234
13235int main() {
13236inet_addr()
13237; return 0; }
13238EOF
8168de4c 13239if { (eval echo configure:13240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13240 rm -rf conftest*
13241 eval "ac_cv_lib_$ac_lib_var=yes"
13242else
13243 echo "configure: failed program was:" >&5
13244 cat conftest.$ac_ext >&5
13245 rm -rf conftest*
13246 eval "ac_cv_lib_$ac_lib_var=no"
13247fi
13248rm -f conftest*
13249LIBS="$ac_save_LIBS"
c63c7106 13250
6232543b 13251fi
698dcdb6
VZ
13252if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13253 echo "$ac_t""yes" 1>&6
13254 INET_LINK="resolv"
13255
13256else
13257 echo "$ac_t""no" 1>&6
13258fi
c63c7106 13259
698dcdb6 13260
1e487827 13261fi
703e0a69 13262
698dcdb6
VZ
13263
13264
10f2d63a
VZ
13265fi
13266done
13267
698dcdb6 13268
10f2d63a
VZ
13269for ac_func in inet_aton
13270do
698dcdb6 13271echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8168de4c 13272echo "configure:13273: checking for $ac_func" >&5
698dcdb6
VZ
13273if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13274 echo $ac_n "(cached) $ac_c" 1>&6
13275else
13276 cat > conftest.$ac_ext <<EOF
8168de4c 13277#line 13278 "configure"
10f2d63a
VZ
13278#include "confdefs.h"
13279/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13280 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13281#include <assert.h>
13282/* Override any gcc2 internal prototype to avoid an error. */
13283/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13284 builtin and then its argument prototype would still apply. */
13285char $ac_func();
13286
13287int main() {
10f2d63a
VZ
13288
13289/* The GNU C library defines this for functions which it implements
13290 to always fail with ENOSYS. Some functions are actually named
13291 something starting with __ and the normal name is an alias. */
13292#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13293choke me
13294#else
698dcdb6 13295$ac_func();
10f2d63a
VZ
13296#endif
13297
698dcdb6
VZ
13298; return 0; }
13299EOF
8168de4c 13300if { (eval echo configure:13301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13301 rm -rf conftest*
13302 eval "ac_cv_func_$ac_func=yes"
13303else
13304 echo "configure: failed program was:" >&5
13305 cat conftest.$ac_ext >&5
13306 rm -rf conftest*
13307 eval "ac_cv_func_$ac_func=no"
13308fi
13309rm -f conftest*
13310fi
13311
13312if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13313 echo "$ac_t""yes" 1>&6
13314 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13315 cat >> confdefs.h <<EOF
13316#define $ac_tr_func 1
13317EOF
13318 cat >> confdefs.h <<\EOF
c63c7106
VZ
13319#define HAVE_INET_ATON 1
13320EOF
13321
10f2d63a 13322else
698dcdb6
VZ
13323 echo "$ac_t""no" 1>&6
13324 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
8168de4c 13325echo "configure:13326: checking for inet_aton in -l$INET_LINK" >&5
698dcdb6
VZ
13326ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
13327if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13328 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13329else
698dcdb6 13330 ac_save_LIBS="$LIBS"
c63c7106 13331LIBS="-l$INET_LINK $LIBS"
698dcdb6 13332cat > conftest.$ac_ext <<EOF
8168de4c 13333#line 13334 "configure"
10f2d63a
VZ
13334#include "confdefs.h"
13335/* Override any gcc2 internal prototype to avoid an error. */
13336/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13337 builtin and then its argument prototype would still apply. */
13338char inet_aton();
13339
13340int main() {
13341inet_aton()
13342; return 0; }
13343EOF
8168de4c 13344if { (eval echo configure:13345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13345 rm -rf conftest*
13346 eval "ac_cv_lib_$ac_lib_var=yes"
13347else
13348 echo "configure: failed program was:" >&5
13349 cat conftest.$ac_ext >&5
13350 rm -rf conftest*
13351 eval "ac_cv_lib_$ac_lib_var=no"
13352fi
13353rm -f conftest*
13354LIBS="$ac_save_LIBS"
13355
13356fi
13357if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13358 echo "$ac_t""yes" 1>&6
13359 cat >> confdefs.h <<\EOF
c63c7106 13360#define HAVE_INET_ATON 1
10f2d63a
VZ
13361EOF
13362
698dcdb6
VZ
13363else
13364 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13365fi
13366
698dcdb6 13367
c63c7106
VZ
13368fi
13369done
13370
698dcdb6 13371
c63c7106 13372if test "x$INET_LINK" != "x"; then
698dcdb6 13373 cat >> confdefs.h <<\EOF
c63c7106
VZ
13374#define HAVE_INET_ADDR 1
13375EOF
13376
13377 INET_LINK="-l$INET_LINK"
13378fi
10f2d63a
VZ
13379
13380fi
13381
698dcdb6
VZ
13382
13383cat > confcache <<\EOF
10f2d63a
VZ
13384# This file is a shell script that caches the results of configure
13385# tests run on this system so they can be shared between configure
698dcdb6
VZ
13386# scripts and configure runs. It is not useful on other systems.
13387# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 13388#
698dcdb6
VZ
13389# By default, configure uses ./config.cache as the cache file,
13390# creating it if it does not exist already. You can give configure
13391# the --cache-file=FILE option to use a different cache file; that is
13392# what configure does when it calls configure scripts in
13393# subdirectories, so they share the cache.
13394# Giving --cache-file=/dev/null disables caching, for debugging configure.
13395# config.status only pays attention to the cache file if you give it the
13396# --recheck option to rerun configure.
10f2d63a 13397#
698dcdb6 13398EOF
10f2d63a
VZ
13399# The following way of writing the cache mishandles newlines in values,
13400# but we know of no workaround that is simple, portable, and efficient.
13401# So, don't put newlines in cache variables' values.
13402# Ultrix sh set writes to stderr and can't be redirected directly,
13403# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
13404(set) 2>&1 |
13405 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13406 *ac_space=\ *)
13407 # `set' does not quote correctly, so add quotes (double-quote substitution
13408 # turns \\\\ into \\, and sed turns \\ into \).
13409 sed -n \
13410 -e "s/'/'\\\\''/g" \
13411 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13412 ;;
13413 *)
13414 # `set' quotes correctly as required by POSIX, so do not add quotes.
13415 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13416 ;;
13417 esac >> confcache
13418if cmp -s $cache_file confcache; then
13419 :
13420else
10f2d63a 13421 if test -w $cache_file; then
698dcdb6
VZ
13422 echo "updating cache $cache_file"
13423 cat confcache > $cache_file
10f2d63a
VZ
13424 else
13425 echo "not updating unwritable cache $cache_file"
13426 fi
13427fi
13428rm -f confcache
13429
698dcdb6
VZ
13430
13431
b089607b 13432if test "$TOOLKIT" != "MSW"; then
10f2d63a 13433
698dcdb6 13434
10f2d63a
VZ
13435THREADS_LINK=""
13436THREADS_OBJ=""
13437
13438if test "$wxUSE_THREADS" = "yes" ; then
13439 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 13440 echo "configure: warning: Threads are not supported under WINE" 1>&2
10f2d63a 13441 wxUSE_THREADS="no"
b12915c1 13442 elif test "$USE_BEOS" = 1; then
698dcdb6 13443 echo "configure: warning: BeOS threads are not yet supported" 1>&2
b12915c1 13444 wxUSE_THREADS="no"
10f2d63a
VZ
13445 fi
13446fi
13447
13448if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 13449
186837b0 13450 if test "$USE_AIX" = 1; then
f6bcfd97
BP
13451 THREADS_LIB=pthreads
13452 else
13453 THREADS_LIB=pthread
13454 fi
13455
698dcdb6 13456 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
8168de4c 13457echo "configure:13458: checking for pthread_create in -l$THREADS_LIB" >&5
698dcdb6
VZ
13458ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
13459if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13460 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13461else
698dcdb6 13462 ac_save_LIBS="$LIBS"
f6bcfd97 13463LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 13464cat > conftest.$ac_ext <<EOF
8168de4c 13465#line 13466 "configure"
10f2d63a
VZ
13466#include "confdefs.h"
13467/* Override any gcc2 internal prototype to avoid an error. */
13468/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13469 builtin and then its argument prototype would still apply. */
13470char pthread_create();
13471
13472int main() {
13473pthread_create()
13474; return 0; }
13475EOF
8168de4c 13476if { (eval echo configure:13477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13477 rm -rf conftest*
13478 eval "ac_cv_lib_$ac_lib_var=yes"
13479else
13480 echo "configure: failed program was:" >&5
13481 cat conftest.$ac_ext >&5
13482 rm -rf conftest*
13483 eval "ac_cv_lib_$ac_lib_var=no"
13484fi
13485rm -f conftest*
13486LIBS="$ac_save_LIBS"
10f2d63a 13487
698dcdb6
VZ
13488fi
13489if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13490 echo "$ac_t""yes" 1>&6
13491
10f2d63a 13492 THREADS_OBJ="threadpsx.lo"
f6bcfd97 13493 THREADS_LINK=$THREADS_LIB
698dcdb6 13494
10f2d63a 13495else
698dcdb6 13496 echo "$ac_t""no" 1>&6
10f2d63a 13497
698dcdb6 13498 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
8168de4c 13499echo "configure:13500: checking for pthread_create in -lc_r" >&5
698dcdb6
VZ
13500ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
13501if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13502 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13503else
698dcdb6 13504 ac_save_LIBS="$LIBS"
10f2d63a 13505LIBS="-lc_r $LIBS"
698dcdb6 13506cat > conftest.$ac_ext <<EOF
8168de4c 13507#line 13508 "configure"
10f2d63a
VZ
13508#include "confdefs.h"
13509/* Override any gcc2 internal prototype to avoid an error. */
13510/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13511 builtin and then its argument prototype would still apply. */
13512char pthread_create();
13513
13514int main() {
13515pthread_create()
13516; return 0; }
13517EOF
8168de4c 13518if { (eval echo configure:13519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13519 rm -rf conftest*
13520 eval "ac_cv_lib_$ac_lib_var=yes"
13521else
13522 echo "configure: failed program was:" >&5
13523 cat conftest.$ac_ext >&5
13524 rm -rf conftest*
13525 eval "ac_cv_lib_$ac_lib_var=no"
13526fi
13527rm -f conftest*
13528LIBS="$ac_save_LIBS"
10f2d63a 13529
698dcdb6
VZ
13530fi
13531if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13532 echo "$ac_t""yes" 1>&6
13533
10f2d63a
VZ
13534 THREADS_OBJ="threadpsx.lo"
13535 THREADS_LINK="c_r"
698dcdb6 13536
10f2d63a 13537else
698dcdb6 13538 echo "$ac_t""no" 1>&6
10f2d63a 13539
698dcdb6
VZ
13540 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
13541echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
8168de4c 13542echo "configure:13543: checking for sys/prctl.h" >&5
698dcdb6
VZ
13543if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13544 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13545else
698dcdb6 13546 cat > conftest.$ac_ext <<EOF
8168de4c 13547#line 13548 "configure"
10f2d63a
VZ
13548#include "confdefs.h"
13549#include <sys/prctl.h>
698dcdb6
VZ
13550EOF
13551ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8168de4c 13552{ (eval echo configure:13553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13553ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13554if test -z "$ac_err"; then
13555 rm -rf conftest*
13556 eval "ac_cv_header_$ac_safe=yes"
1e487827 13557else
698dcdb6
VZ
13558 echo "$ac_err" >&5
13559 echo "configure: failed program was:" >&5
10f2d63a 13560 cat conftest.$ac_ext >&5
698dcdb6
VZ
13561 rm -rf conftest*
13562 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13563fi
698dcdb6 13564rm -f conftest*
10f2d63a 13565fi
698dcdb6
VZ
13566if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13567 echo "$ac_t""yes" 1>&6
13568
1f8ae82f 13569 THREADS_OBJ="threadsgi.lo"
698dcdb6
VZ
13570
13571else
13572 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13573fi
13574
698dcdb6 13575
6232543b 13576fi
10f2d63a 13577
698dcdb6 13578
1e487827 13579fi
703e0a69 13580
698dcdb6 13581
10f2d63a
VZ
13582 if test -z "$THREADS_OBJ" ; then
13583 wxUSE_THREADS=no
698dcdb6 13584 echo "configure: warning: No thread support on this system" 1>&2
10f2d63a
VZ
13585 fi
13586fi
13587
13588if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 13589 for ac_func in thr_setconcurrency
70846f0a 13590do
698dcdb6 13591echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8168de4c 13592echo "configure:13593: checking for $ac_func" >&5
698dcdb6
VZ
13593if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13594 echo $ac_n "(cached) $ac_c" 1>&6
13595else
13596 cat > conftest.$ac_ext <<EOF
8168de4c 13597#line 13598 "configure"
70846f0a
VZ
13598#include "confdefs.h"
13599/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13600 which can conflict with char $ac_func(); below. */
70846f0a
VZ
13601#include <assert.h>
13602/* Override any gcc2 internal prototype to avoid an error. */
13603/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13604 builtin and then its argument prototype would still apply. */
13605char $ac_func();
13606
13607int main() {
70846f0a
VZ
13608
13609/* The GNU C library defines this for functions which it implements
13610 to always fail with ENOSYS. Some functions are actually named
13611 something starting with __ and the normal name is an alias. */
13612#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13613choke me
13614#else
698dcdb6 13615$ac_func();
70846f0a
VZ
13616#endif
13617
698dcdb6 13618; return 0; }
70846f0a 13619EOF
8168de4c 13620if { (eval echo configure:13621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13621 rm -rf conftest*
13622 eval "ac_cv_func_$ac_func=yes"
13623else
13624 echo "configure: failed program was:" >&5
13625 cat conftest.$ac_ext >&5
13626 rm -rf conftest*
13627 eval "ac_cv_func_$ac_func=no"
13628fi
13629rm -f conftest*
13630fi
70846f0a 13631
698dcdb6
VZ
13632if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13633 echo "$ac_t""yes" 1>&6
13634 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13635 cat >> confdefs.h <<EOF
13636#define $ac_tr_func 1
13637EOF
13638
13639else
13640 echo "$ac_t""no" 1>&6
70846f0a
VZ
13641fi
13642done
13643
698dcdb6
VZ
13644
13645
13646 for ac_hdr in sched.h
10f2d63a 13647do
698dcdb6
VZ
13648ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13649echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8168de4c 13650echo "configure:13651: checking for $ac_hdr" >&5
698dcdb6
VZ
13651if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13652 echo $ac_n "(cached) $ac_c" 1>&6
13653else
13654 cat > conftest.$ac_ext <<EOF
8168de4c 13655#line 13656 "configure"
10f2d63a 13656#include "confdefs.h"
698dcdb6
VZ
13657#include <$ac_hdr>
13658EOF
13659ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8168de4c 13660{ (eval echo configure:13661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13661ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13662if test -z "$ac_err"; then
13663 rm -rf conftest*
13664 eval "ac_cv_header_$ac_safe=yes"
1e487827 13665else
698dcdb6
VZ
13666 echo "$ac_err" >&5
13667 echo "configure: failed program was:" >&5
10f2d63a 13668 cat conftest.$ac_ext >&5
698dcdb6
VZ
13669 rm -rf conftest*
13670 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13671fi
698dcdb6 13672rm -f conftest*
10f2d63a 13673fi
698dcdb6
VZ
13674if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13675 echo "$ac_t""yes" 1>&6
13676 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13677 cat >> confdefs.h <<EOF
13678#define $ac_tr_hdr 1
10f2d63a 13679EOF
698dcdb6
VZ
13680
13681else
13682 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13683fi
13684done
13685
698dcdb6
VZ
13686
13687 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
8168de4c 13688echo "configure:13689: checking for sched_yield in -l$THREADS_LINK" >&5
698dcdb6
VZ
13689ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
13690if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13691 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13692else
698dcdb6 13693 ac_save_LIBS="$LIBS"
10f2d63a 13694LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 13695cat > conftest.$ac_ext <<EOF
8168de4c 13696#line 13697 "configure"
10f2d63a
VZ
13697#include "confdefs.h"
13698/* Override any gcc2 internal prototype to avoid an error. */
13699/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13700 builtin and then its argument prototype would still apply. */
13701char sched_yield();
13702
13703int main() {
13704sched_yield()
13705; return 0; }
13706EOF
8168de4c 13707if { (eval echo configure:13708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13708 rm -rf conftest*
13709 eval "ac_cv_lib_$ac_lib_var=yes"
13710else
13711 echo "configure: failed program was:" >&5
13712 cat conftest.$ac_ext >&5
13713 rm -rf conftest*
13714 eval "ac_cv_lib_$ac_lib_var=no"
13715fi
13716rm -f conftest*
13717LIBS="$ac_save_LIBS"
13718
13719fi
13720if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13721 echo "$ac_t""yes" 1>&6
13722 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13723#define HAVE_SCHED_YIELD 1
13724EOF
13725
13726else
698dcdb6
VZ
13727 echo "$ac_t""no" 1>&6
13728echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
8168de4c 13729echo "configure:13730: checking for sched_yield in -lposix4" >&5
698dcdb6
VZ
13730ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
13731if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13732 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13733else
698dcdb6 13734 ac_save_LIBS="$LIBS"
1e487827 13735LIBS="-lposix4 $LIBS"
698dcdb6 13736cat > conftest.$ac_ext <<EOF
8168de4c 13737#line 13738 "configure"
10f2d63a
VZ
13738#include "confdefs.h"
13739/* Override any gcc2 internal prototype to avoid an error. */
13740/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13741 builtin and then its argument prototype would still apply. */
13742char sched_yield();
13743
13744int main() {
13745sched_yield()
13746; return 0; }
13747EOF
8168de4c 13748if { (eval echo configure:13749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13749 rm -rf conftest*
13750 eval "ac_cv_lib_$ac_lib_var=yes"
13751else
13752 echo "configure: failed program was:" >&5
13753 cat conftest.$ac_ext >&5
13754 rm -rf conftest*
13755 eval "ac_cv_lib_$ac_lib_var=no"
13756fi
13757rm -f conftest*
13758LIBS="$ac_save_LIBS"
13759
13760fi
13761if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13762 echo "$ac_t""yes" 1>&6
13763 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13764#define HAVE_SCHED_YIELD 1
13765EOF
13766 POSIX4_LINK="-lposix4"
13767else
698dcdb6
VZ
13768 echo "$ac_t""no" 1>&6
13769echo "configure: warning: wxThread::Yield will not work properly" 1>&2
13770
6232543b 13771fi
10f2d63a 13772
698dcdb6 13773
1e487827 13774fi
703e0a69 13775
698dcdb6 13776
f6bcfd97 13777 HAVE_PRIOR_FUNCS=0
698dcdb6 13778 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
8168de4c 13779echo "configure:13780: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
698dcdb6
VZ
13780ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
13781if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13782 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13783else
698dcdb6 13784 ac_save_LIBS="$LIBS"
10f2d63a 13785LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 13786cat > conftest.$ac_ext <<EOF
8168de4c 13787#line 13788 "configure"
10f2d63a
VZ
13788#include "confdefs.h"
13789/* Override any gcc2 internal prototype to avoid an error. */
13790/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13791 builtin and then its argument prototype would still apply. */
13792char pthread_attr_getschedpolicy();
13793
13794int main() {
13795pthread_attr_getschedpolicy()
13796; return 0; }
13797EOF
8168de4c 13798if { (eval echo configure:13799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13799 rm -rf conftest*
13800 eval "ac_cv_lib_$ac_lib_var=yes"
13801else
13802 echo "configure: failed program was:" >&5
13803 cat conftest.$ac_ext >&5
13804 rm -rf conftest*
13805 eval "ac_cv_lib_$ac_lib_var=no"
13806fi
13807rm -f conftest*
13808LIBS="$ac_save_LIBS"
13809
13810fi
13811if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13812 echo "$ac_t""yes" 1>&6
13813 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
8168de4c 13814echo "configure:13815: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
698dcdb6
VZ
13815ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
13816if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13817 echo $ac_n "(cached) $ac_c" 1>&6
13818else
13819 ac_save_LIBS="$LIBS"
f6bcfd97 13820LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 13821cat > conftest.$ac_ext <<EOF
8168de4c 13822#line 13823 "configure"
f6bcfd97
BP
13823#include "confdefs.h"
13824/* Override any gcc2 internal prototype to avoid an error. */
13825/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13826 builtin and then its argument prototype would still apply. */
13827char pthread_attr_setschedparam();
13828
13829int main() {
13830pthread_attr_setschedparam()
13831; return 0; }
13832EOF
8168de4c 13833if { (eval echo configure:13834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13834 rm -rf conftest*
13835 eval "ac_cv_lib_$ac_lib_var=yes"
13836else
13837 echo "configure: failed program was:" >&5
13838 cat conftest.$ac_ext >&5
13839 rm -rf conftest*
13840 eval "ac_cv_lib_$ac_lib_var=no"
13841fi
13842rm -f conftest*
13843LIBS="$ac_save_LIBS"
13844
13845fi
13846if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13847 echo "$ac_t""yes" 1>&6
13848 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
8168de4c 13849echo "configure:13850: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
698dcdb6
VZ
13850ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
13851if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13852 echo $ac_n "(cached) $ac_c" 1>&6
13853else
13854 ac_save_LIBS="$LIBS"
f6bcfd97 13855LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 13856cat > conftest.$ac_ext <<EOF
8168de4c 13857#line 13858 "configure"
f6bcfd97
BP
13858#include "confdefs.h"
13859/* Override any gcc2 internal prototype to avoid an error. */
13860/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13861 builtin and then its argument prototype would still apply. */
13862char sched_get_priority_max();
13863
13864int main() {
13865sched_get_priority_max()
13866; return 0; }
13867EOF
8168de4c 13868if { (eval echo configure:13869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13869 rm -rf conftest*
13870 eval "ac_cv_lib_$ac_lib_var=yes"
13871else
13872 echo "configure: failed program was:" >&5
13873 cat conftest.$ac_ext >&5
13874 rm -rf conftest*
13875 eval "ac_cv_lib_$ac_lib_var=no"
13876fi
13877rm -f conftest*
13878LIBS="$ac_save_LIBS"
13879
13880fi
13881if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13882 echo "$ac_t""yes" 1>&6
f6bcfd97 13883 HAVE_PRIOR_FUNCS=1
10f2d63a 13884else
698dcdb6
VZ
13885 echo "$ac_t""no" 1>&6
13886echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
8168de4c 13887echo "configure:13888: checking for sched_get_priority_max in -lposix4" >&5
698dcdb6
VZ
13888ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
13889if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13890 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 13891else
698dcdb6 13892 ac_save_LIBS="$LIBS"
1e487827 13893LIBS="-lposix4 $LIBS"
698dcdb6 13894cat > conftest.$ac_ext <<EOF
8168de4c 13895#line 13896 "configure"
10f2d63a 13896#include "confdefs.h"
6232543b 13897/* Override any gcc2 internal prototype to avoid an error. */
6232543b 13898/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13899 builtin and then its argument prototype would still apply. */
13900char sched_get_priority_max();
13901
13902int main() {
13903sched_get_priority_max()
13904; return 0; }
13905EOF
8168de4c 13906if { (eval echo configure:13907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13907 rm -rf conftest*
13908 eval "ac_cv_lib_$ac_lib_var=yes"
13909else
13910 echo "configure: failed program was:" >&5
13911 cat conftest.$ac_ext >&5
13912 rm -rf conftest*
13913 eval "ac_cv_lib_$ac_lib_var=no"
13914fi
13915rm -f conftest*
13916LIBS="$ac_save_LIBS"
10f2d63a 13917
698dcdb6
VZ
13918fi
13919if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13920 echo "$ac_t""yes" 1>&6
13921
f6bcfd97
BP
13922 HAVE_PRIOR_FUNCS=1
13923 POSIX4_LINK="-lposix4"
698dcdb6
VZ
13924
13925else
13926 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13927fi
13928
698dcdb6 13929
10f2d63a
VZ
13930fi
13931
698dcdb6
VZ
13932
13933else
13934 echo "$ac_t""no" 1>&6
6232543b 13935fi
10f2d63a 13936
698dcdb6
VZ
13937
13938else
13939 echo "$ac_t""no" 1>&6
1e487827 13940fi
703e0a69 13941
698dcdb6 13942
f6bcfd97 13943 if test "$HAVE_PRIOR_FUNCS" = 1; then
698dcdb6 13944 cat >> confdefs.h <<\EOF
f6bcfd97
BP
13945#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
13946EOF
13947
13948 else
698dcdb6 13949 echo "configure: warning: Setting thread priority will not work" 1>&2
f6bcfd97
BP
13950 fi
13951
698dcdb6 13952 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
8168de4c 13953echo "configure:13954: checking for pthread_cancel in -l$THREADS_LINK" >&5
698dcdb6
VZ
13954ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
13955if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13956 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13957else
698dcdb6 13958 ac_save_LIBS="$LIBS"
10f2d63a 13959LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 13960cat > conftest.$ac_ext <<EOF
8168de4c 13961#line 13962 "configure"
10f2d63a
VZ
13962#include "confdefs.h"
13963/* Override any gcc2 internal prototype to avoid an error. */
13964/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13965 builtin and then its argument prototype would still apply. */
13966char pthread_cancel();
13967
13968int main() {
13969pthread_cancel()
13970; return 0; }
13971EOF
8168de4c 13972if { (eval echo configure:13973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13973 rm -rf conftest*
13974 eval "ac_cv_lib_$ac_lib_var=yes"
13975else
13976 echo "configure: failed program was:" >&5
13977 cat conftest.$ac_ext >&5
13978 rm -rf conftest*
13979 eval "ac_cv_lib_$ac_lib_var=no"
13980fi
13981rm -f conftest*
13982LIBS="$ac_save_LIBS"
13983
13984fi
13985if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13986 echo "$ac_t""yes" 1>&6
13987 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13988#define HAVE_PTHREAD_CANCEL 1
13989EOF
13990
13991else
698dcdb6
VZ
13992 echo "$ac_t""no" 1>&6
13993echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10f2d63a
VZ
13994fi
13995
1e487827 13996
698dcdb6 13997 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
8168de4c 13998echo "configure:13999: checking for pthread_cleanup_push/pop" >&5
698dcdb6
VZ
13999if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
14000 echo $ac_n "(cached) $ac_c" 1>&6
14001else
14002
14003 cat > conftest.$ac_ext <<EOF
8168de4c 14004#line 14005 "configure"
10f2d63a
VZ
14005#include "confdefs.h"
14006#include <pthread.h>
698dcdb6 14007int main() {
10f2d63a
VZ
14008
14009 pthread_cleanup_push(NULL, NULL);
14010 pthread_cleanup_pop(0);
698dcdb6
VZ
14011
14012; return 0; }
14013EOF
8168de4c 14014if { (eval echo configure:14015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14015 rm -rf conftest*
14016
10f2d63a 14017 wx_cv_func_pthread_cleanup_push=yes
698dcdb6 14018
10f2d63a 14019else
698dcdb6
VZ
14020 echo "configure: failed program was:" >&5
14021 cat conftest.$ac_ext >&5
14022 rm -rf conftest*
14023
10f2d63a 14024 wx_cv_func_pthread_cleanup_push=no
698dcdb6 14025
6232543b 14026fi
698dcdb6
VZ
14027rm -f conftest*
14028
1e487827 14029fi
698dcdb6
VZ
14030
14031echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
10f2d63a 14032
d9b9876f 14033 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
698dcdb6 14034 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14035#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
14036EOF
14037
14038 fi
14039
698dcdb6
VZ
14040
14041 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
8168de4c 14042echo "configure:14043: checking for pthread_mutexattr_t" >&5
698dcdb6
VZ
14043if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
14044 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 14045else
698dcdb6
VZ
14046
14047 cat > conftest.$ac_ext <<EOF
8168de4c 14048#line 14049 "configure"
d9b9876f
VZ
14049#include "confdefs.h"
14050#include <pthread.h>
698dcdb6 14051int main() {
d9b9876f
VZ
14052
14053 pthread_mutexattr_t attr;
14054 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
698dcdb6
VZ
14055
14056; return 0; }
14057EOF
8168de4c 14058if { (eval echo configure:14059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14059 rm -rf conftest*
14060
d9b9876f 14061 wx_cv_type_pthread_mutexattr_t=yes
698dcdb6 14062
d9b9876f 14063else
698dcdb6
VZ
14064 echo "configure: failed program was:" >&5
14065 cat conftest.$ac_ext >&5
14066 rm -rf conftest*
14067
d9b9876f 14068 wx_cv_type_pthread_mutexattr_t=no
698dcdb6
VZ
14069
14070
6232543b 14071fi
698dcdb6
VZ
14072rm -f conftest*
14073
1e487827 14074fi
698dcdb6
VZ
14075
14076echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
d9b9876f
VZ
14077
14078 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
698dcdb6 14079 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14080#define HAVE_PTHREAD_MUTEXATTR_T 1
14081EOF
14082
14083 else
698dcdb6 14084 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
8168de4c 14085echo "configure:14086: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
698dcdb6
VZ
14086if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
14087 echo $ac_n "(cached) $ac_c" 1>&6
14088else
14089
14090 cat > conftest.$ac_ext <<EOF
8168de4c 14091#line 14092 "configure"
d9b9876f
VZ
14092#include "confdefs.h"
14093#include <pthread.h>
698dcdb6 14094int main() {
d9b9876f
VZ
14095
14096 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
698dcdb6
VZ
14097
14098; return 0; }
14099EOF
8168de4c 14100if { (eval echo configure:14101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14101 rm -rf conftest*
14102
d9b9876f 14103 wx_cv_type_pthread_rec_mutex_init=yes
698dcdb6 14104
d9b9876f 14105else
698dcdb6
VZ
14106 echo "configure: failed program was:" >&5
14107 cat conftest.$ac_ext >&5
14108 rm -rf conftest*
14109
d9b9876f 14110 wx_cv_type_pthread_rec_mutex_init=no
698dcdb6
VZ
14111
14112
6232543b 14113fi
698dcdb6
VZ
14114rm -f conftest*
14115
1e487827 14116fi
698dcdb6
VZ
14117
14118echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
3765e936 14119 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
698dcdb6 14120 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14121#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
14122EOF
14123
14124 else
698dcdb6 14125 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
d9b9876f
VZ
14126 fi
14127 fi
14128
10f2d63a 14129 THREADS_LINK="-l$THREADS_LINK"
186837b0
VZ
14130
14131 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
14132 CFLAGS="${CFLAGS} -mt"
14133 CXXFLAGS="${CXXFLAGS} -mt"
14134 LDFLAGS="${LDFLAGS} -mt"
14135 fi
10f2d63a
VZ
14136fi
14137
14138fi
14139
14140if test "$wxUSE_THREADS" = "yes"; then
698dcdb6 14141 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14142#define wxUSE_THREADS 1
14143EOF
14144
698dcdb6 14145
2c6025bc 14146 if test "$wxUSE_MAC" = "0"; then
10f2d63a 14147 CFLAGS="${CFLAGS} -D_REENTRANT"
2c6025bc
GD
14148 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14149 fi
10f2d63a
VZ
14150
14151 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
14152else
14153 if test "$ac_cv_func_strtok_r" = "yes"; then
698dcdb6 14154 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
8168de4c 14155echo "configure:14156: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
14156 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
14157 CFLAGS="${CFLAGS} -D_REENTRANT"
14158 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
698dcdb6 14159 echo "$ac_t""yes" 1>&6
ab9b9eab 14160 else
698dcdb6 14161 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14162 fi
14163 fi
14164fi
14165
6f72b082 14166if test "$WXGTK20" = 1 ; then
698dcdb6 14167 cat >> confdefs.h <<EOF
6f72b082 14168#define __WXGTK20__ $WXGTK20
13111b2a
VZ
14169EOF
14170
14171 WXGTK12=1
14172fi
14173
10f2d63a 14174if test "$WXGTK12" = 1 ; then
698dcdb6 14175 cat >> confdefs.h <<EOF
10f2d63a
VZ
14176#define __WXGTK12__ $WXGTK12
14177EOF
14178
14179fi
14180
f6bcfd97 14181if test "$WXGTK127" = 1 ; then
698dcdb6 14182 cat >> confdefs.h <<EOF
f6bcfd97
BP
14183#define __WXGTK127__ $WXGTK127
14184EOF
14185
14186fi
14187
10f2d63a
VZ
14188if test "$WXWINE" = 1 ; then
14189 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
14190fi
14191
b4085ce6 14192if test "$wxUSE_MAC" = 1 ; then
2c6025bc 14193 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON"
ea5999b9 14194 CFLAGS="${CFLAGS} -fno-common -fpascal-strings"
0c451ef3 14195 CPPFLAGS="${CPPFLAGS} -cpp-precomp -fno-common -fpascal-strings"
2f51a9ec
GD
14196 # Extract the first word of "Rez", so it can be a program name with args.
14197set dummy Rez; ac_word=$2
698dcdb6 14198echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8168de4c 14199echo "configure:14200: checking for $ac_word" >&5
698dcdb6
VZ
14200if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then
14201 echo $ac_n "(cached) $ac_c" 1>&6
2f51a9ec
GD
14202else
14203 if test -n "$REZ"; then
14204 ac_cv_prog_REZ="$REZ" # Let the user override the test.
14205else
698dcdb6
VZ
14206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14207 ac_dummy="$PATH"
14208 for ac_dir in $ac_dummy; do
14209 test -z "$ac_dir" && ac_dir=.
14210 if test -f $ac_dir/$ac_word; then
14211 ac_cv_prog_REZ="Rez"
14212 break
14213 fi
14214 done
14215 IFS="$ac_save_ifs"
2f51a9ec
GD
14216 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
14217fi
14218fi
698dcdb6 14219REZ="$ac_cv_prog_REZ"
2f51a9ec 14220if test -n "$REZ"; then
698dcdb6 14221 echo "$ac_t""$REZ" 1>&6
2f51a9ec 14222else
698dcdb6 14223 echo "$ac_t""no" 1>&6
2f51a9ec
GD
14224fi
14225
14226 # Extract the first word of "Derez", so it can be a program name with args.
14227set dummy Derez; ac_word=$2
698dcdb6 14228echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8168de4c 14229echo "configure:14230: checking for $ac_word" >&5
698dcdb6
VZ
14230if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
14231 echo $ac_n "(cached) $ac_c" 1>&6
2f51a9ec
GD
14232else
14233 if test -n "$DEREZ"; then
14234 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
14235else
698dcdb6
VZ
14236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14237 ac_dummy="$PATH"
14238 for ac_dir in $ac_dummy; do
14239 test -z "$ac_dir" && ac_dir=.
14240 if test -f $ac_dir/$ac_word; then
14241 ac_cv_prog_DEREZ="Derez"
14242 break
14243 fi
14244 done
14245 IFS="$ac_save_ifs"
2f51a9ec
GD
14246 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
14247fi
14248fi
698dcdb6 14249DEREZ="$ac_cv_prog_DEREZ"
2f51a9ec 14250if test -n "$DEREZ"; then
698dcdb6 14251 echo "$ac_t""$DEREZ" 1>&6
2f51a9ec 14252else
698dcdb6 14253 echo "$ac_t""no" 1>&6
2f51a9ec
GD
14254fi
14255
14256 RESCOMP=${REZ}
14257 REZFLAGS="-d __UNIX__ -useDF"
14258 DEREZFLAGS="Carbon.r -useDF"
14259 RESFLAGS="Carbon.r -t APPL"
14260 LIBWXMACRES="\$(LIBWX_MACRES)"
14261 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
b4085ce6
GD
14262fi
14263
10f2d63a
VZ
14264if test "$wxUSE_CYGWIN" = 1 ; then
14265 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
14266fi
14267
14268WXDEBUG=
14269
14270if test "$wxUSE_DEBUG_INFO" = "yes" ; then
14271 WXDEBUG="-g"
14272 wxUSE_OPTIMISE=no
14273fi
14274
14275if test "$wxUSE_DEBUG_GDB" = "yes" ; then
14276 wxUSE_DEBUG_INFO=yes
14277 WXDEBUG="-ggdb"
14278fi
14279
14280if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
698dcdb6 14281 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14282#define WXDEBUG 1
14283EOF
14284
14285 WXDEBUG_DEFINE="-D__WXDEBUG__"
14286else
14287 if test "$wxUSE_GTK" = 1 ; then
14288 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
14289 fi
14290fi
14291
14292if test "$wxUSE_MEM_TRACING" = "yes" ; then
698dcdb6 14293 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14294#define wxUSE_MEMORY_TRACING 1
14295EOF
14296
698dcdb6 14297 cat >> confdefs.h <<\EOF
10f2d63a 14298#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
14299EOF
14300
698dcdb6 14301 cat >> confdefs.h <<\EOF
47c13eb7 14302#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
14303EOF
14304
14305 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
14306fi
14307
14308if test "$wxUSE_DMALLOC" = "yes" ; then
14309 DMALLOC_LINK="-ldmalloc"
14310fi
14311
14312PROFILE=
14313if test "$wxUSE_PROFILE" = "yes" ; then
14314 PROFILE="-pg"
14315fi
14316
14317DEP_INFO_FLAGS=
caa2c79b 14318CODE_GEN_FLAGS=
0f3f1cbc 14319CODE_GEN_FLAGS_CXX=
10f2d63a
VZ
14320if test "$GCC" = yes ; then
14321 if test "$wxUSE_NO_RTTI" = "yes" ; then
0f3f1cbc 14322 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
14323 fi
14324 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
0f3f1cbc 14325 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
14326 fi
14327 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 14328 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
14329 fi
14330 if test "$wxUSE_NO_DEPS" = "no" ; then
14331 DEP_INFO_FLAGS="-MMD"
14332 fi
14333fi
14334
698dcdb6 14335
10f2d63a
VZ
14336CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
14337CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
14338if test "$wxUSE_OPTIMISE" = "no" ; then
14339 OPTIMISE=
14340else
14341 if test "$GCC" = yes ; then
14342 OPTIMISE="-O2"
14343 case "${host}" in
14344 i586-*-*|i686-*-* )
14345 OPTIMISE="${OPTIMISE} "
14346 ;;
14347 esac
14348 else
14349 OPTIMISE="-O"
14350 fi
14351fi
14352
698dcdb6 14353
10f2d63a 14354ZLIB_INCLUDE=
422107f9 14355if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
698dcdb6 14356 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14357#define wxUSE_ZLIB 1
14358EOF
14359
422107f9
VZ
14360 if test "$wxUSE_ZLIB" = "yes" ; then
14361 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
14362 else
14363 ZLIB_LINK=
698dcdb6
VZ
14364 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
14365echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
8168de4c 14366echo "configure:14367: checking for zlib.h" >&5
698dcdb6
VZ
14367if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14368 echo $ac_n "(cached) $ac_c" 1>&6
14369else
14370 cat > conftest.$ac_ext <<EOF
8168de4c 14371#line 14372 "configure"
422107f9
VZ
14372#include "confdefs.h"
14373#include <zlib.h>
698dcdb6
VZ
14374EOF
14375ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8168de4c 14376{ (eval echo configure:14377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14377ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14378if test -z "$ac_err"; then
14379 rm -rf conftest*
14380 eval "ac_cv_header_$ac_safe=yes"
422107f9 14381else
698dcdb6
VZ
14382 echo "$ac_err" >&5
14383 echo "configure: failed program was:" >&5
422107f9 14384 cat conftest.$ac_ext >&5
698dcdb6
VZ
14385 rm -rf conftest*
14386 eval "ac_cv_header_$ac_safe=no"
422107f9 14387fi
698dcdb6 14388rm -f conftest*
422107f9 14389fi
698dcdb6
VZ
14390if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14391 echo "$ac_t""yes" 1>&6
14392 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
8168de4c 14393echo "configure:14394: checking for deflate in -lz" >&5
698dcdb6
VZ
14394ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
14395if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14396 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 14397else
698dcdb6 14398 ac_save_LIBS="$LIBS"
422107f9 14399LIBS="-lz $LIBS"
698dcdb6 14400cat > conftest.$ac_ext <<EOF
8168de4c 14401#line 14402 "configure"
422107f9
VZ
14402#include "confdefs.h"
14403/* Override any gcc2 internal prototype to avoid an error. */
14404/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14405 builtin and then its argument prototype would still apply. */
14406char deflate();
14407
14408int main() {
14409deflate()
14410; return 0; }
14411EOF
8168de4c 14412if { (eval echo configure:14413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14413 rm -rf conftest*
14414 eval "ac_cv_lib_$ac_lib_var=yes"
14415else
14416 echo "configure: failed program was:" >&5
14417 cat conftest.$ac_ext >&5
14418 rm -rf conftest*
14419 eval "ac_cv_lib_$ac_lib_var=no"
14420fi
14421rm -f conftest*
14422LIBS="$ac_save_LIBS"
14423
14424fi
14425if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14426 echo "$ac_t""yes" 1>&6
422107f9 14427 ZLIB_LINK="-lz"
698dcdb6
VZ
14428else
14429 echo "$ac_t""no" 1>&6
422107f9
VZ
14430fi
14431
698dcdb6
VZ
14432else
14433 echo "$ac_t""no" 1>&6
422107f9
VZ
14434fi
14435
14436 if test "x$ZLIB_LINK" = "x" ; then
698dcdb6 14437 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
422107f9
VZ
14438 fi
14439 fi
10f2d63a
VZ
14440fi
14441
14442PNG_INCLUDE=
422107f9 14443if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
698dcdb6 14444 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14445#define wxUSE_LIBPNG 1
14446EOF
14447
41fd4136 14448 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
698dcdb6 14449 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
422107f9
VZ
14450 wxUSE_LIBPNG=yes
14451 fi
14452
14453 if test "$wxUSE_LIBPNG" = "yes" ; then
14454 PNG_INCLUDE="-I\${top_srcdir}/src/png"
14455 else
14456 PNG_LINK=
698dcdb6
VZ
14457 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
14458echo $ac_n "checking for png.h""... $ac_c" 1>&6
8168de4c 14459echo "configure:14460: checking for png.h" >&5
698dcdb6
VZ
14460if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14461 echo $ac_n "(cached) $ac_c" 1>&6
14462else
14463 cat > conftest.$ac_ext <<EOF
8168de4c 14464#line 14465 "configure"
422107f9
VZ
14465#include "confdefs.h"
14466#include <png.h>
698dcdb6
VZ
14467EOF
14468ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8168de4c 14469{ (eval echo configure:14470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14470ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14471if test -z "$ac_err"; then
14472 rm -rf conftest*
14473 eval "ac_cv_header_$ac_safe=yes"
422107f9 14474else
698dcdb6
VZ
14475 echo "$ac_err" >&5
14476 echo "configure: failed program was:" >&5
422107f9 14477 cat conftest.$ac_ext >&5
698dcdb6
VZ
14478 rm -rf conftest*
14479 eval "ac_cv_header_$ac_safe=no"
422107f9 14480fi
698dcdb6 14481rm -f conftest*
422107f9 14482fi
698dcdb6
VZ
14483if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14484 echo "$ac_t""yes" 1>&6
14485 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
8168de4c 14486echo "configure:14487: checking for png_check_sig in -lpng" >&5
698dcdb6
VZ
14487ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
14488if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14489 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 14490else
698dcdb6 14491 ac_save_LIBS="$LIBS"
422107f9 14492LIBS="-lpng -lz -lm $LIBS"
698dcdb6 14493cat > conftest.$ac_ext <<EOF
8168de4c 14494#line 14495 "configure"
422107f9
VZ
14495#include "confdefs.h"
14496/* Override any gcc2 internal prototype to avoid an error. */
14497/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14498 builtin and then its argument prototype would still apply. */
14499char png_check_sig();
14500
14501int main() {
14502png_check_sig()
14503; return 0; }
14504EOF
8168de4c 14505if { (eval echo configure:14506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14506 rm -rf conftest*
14507 eval "ac_cv_lib_$ac_lib_var=yes"
14508else
14509 echo "configure: failed program was:" >&5
14510 cat conftest.$ac_ext >&5
14511 rm -rf conftest*
14512 eval "ac_cv_lib_$ac_lib_var=no"
14513fi
14514rm -f conftest*
14515LIBS="$ac_save_LIBS"
14516
14517fi
14518if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14519 echo "$ac_t""yes" 1>&6
422107f9 14520 PNG_LINK="-lpng"
698dcdb6
VZ
14521else
14522 echo "$ac_t""no" 1>&6
422107f9
VZ
14523fi
14524
698dcdb6
VZ
14525
14526else
14527 echo "$ac_t""no" 1>&6
422107f9
VZ
14528fi
14529
14530 if test "x$PNG_LINK" = "x" ; then
698dcdb6 14531 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
14532 fi
14533 fi
14534
10f2d63a
VZ
14535 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
14536fi
14537
14538JPEG_INCLUDE=
422107f9 14539if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
698dcdb6 14540 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14541#define wxUSE_LIBJPEG 1
14542EOF
14543
422107f9
VZ
14544 if test "$wxUSE_LIBJPEG" = "yes" ; then
14545 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
14546 else
14547 JPEG_LINK=
698dcdb6
VZ
14548 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
14549echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8168de4c 14550echo "configure:14551: checking for jpeglib.h" >&5
698dcdb6
VZ
14551if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14552 echo $ac_n "(cached) $ac_c" 1>&6
14553else
14554 cat > conftest.$ac_ext <<EOF
8168de4c 14555#line 14556 "configure"
422107f9
VZ
14556#include "confdefs.h"
14557#include <jpeglib.h>
698dcdb6
VZ
14558EOF
14559ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8168de4c 14560{ (eval echo configure:14561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14561ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14562if test -z "$ac_err"; then
14563 rm -rf conftest*
14564 eval "ac_cv_header_$ac_safe=yes"
6232543b 14565else
698dcdb6
VZ
14566 echo "$ac_err" >&5
14567 echo "configure: failed program was:" >&5
422107f9 14568 cat conftest.$ac_ext >&5
698dcdb6
VZ
14569 rm -rf conftest*
14570 eval "ac_cv_header_$ac_safe=no"
422107f9 14571fi
698dcdb6 14572rm -f conftest*
422107f9 14573fi
698dcdb6
VZ
14574if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14575 echo "$ac_t""yes" 1>&6
14576 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
8168de4c 14577echo "configure:14578: checking for jpeg_read_header in -ljpeg" >&5
698dcdb6
VZ
14578ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
14579if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14580 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 14581else
698dcdb6 14582 ac_save_LIBS="$LIBS"
422107f9 14583LIBS="-ljpeg $LIBS"
698dcdb6 14584cat > conftest.$ac_ext <<EOF
8168de4c 14585#line 14586 "configure"
422107f9
VZ
14586#include "confdefs.h"
14587/* Override any gcc2 internal prototype to avoid an error. */
14588/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14589 builtin and then its argument prototype would still apply. */
14590char jpeg_read_header();
14591
14592int main() {
14593jpeg_read_header()
14594; return 0; }
14595EOF
8168de4c 14596if { (eval echo configure:14597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14597 rm -rf conftest*
14598 eval "ac_cv_lib_$ac_lib_var=yes"
14599else
14600 echo "configure: failed program was:" >&5
14601 cat conftest.$ac_ext >&5
14602 rm -rf conftest*
14603 eval "ac_cv_lib_$ac_lib_var=no"
14604fi
14605rm -f conftest*
14606LIBS="$ac_save_LIBS"
14607
14608fi
14609if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14610 echo "$ac_t""yes" 1>&6
422107f9 14611 JPEG_LINK="-ljpeg"
698dcdb6
VZ
14612else
14613 echo "$ac_t""no" 1>&6
422107f9
VZ
14614fi
14615
698dcdb6
VZ
14616else
14617 echo "$ac_t""no" 1>&6
422107f9
VZ
14618fi
14619
14620 if test "x$JPEG_LINK" = "x" ; then
698dcdb6 14621 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
14622 fi
14623 fi
10f2d63a
VZ
14624fi
14625
c7a2bf27 14626TIFF_INCLUDE=
0dcf9893 14627if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
698dcdb6 14628 cat >> confdefs.h <<\EOF
c7a2bf27
RR
14629#define wxUSE_LIBTIFF 1
14630EOF
14631
665bbe97 14632 if test "$wxUSE_LIBTIFF" = "yes" ; then
0dcf9893
VZ
14633 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
14634 else
14635 TIFF_LINK=
698dcdb6
VZ
14636 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
14637echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8168de4c 14638echo "configure:14639: checking for tiffio.h" >&5
698dcdb6
VZ
14639if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14640 echo $ac_n "(cached) $ac_c" 1>&6
14641else
14642 cat > conftest.$ac_ext <<EOF
8168de4c 14643#line 14644 "configure"
0dcf9893
VZ
14644#include "confdefs.h"
14645#include <tiffio.h>
698dcdb6
VZ
14646EOF
14647ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8168de4c 14648{ (eval echo configure:14649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14649ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14650if test -z "$ac_err"; then
14651 rm -rf conftest*
14652 eval "ac_cv_header_$ac_safe=yes"
1e487827 14653else
698dcdb6
VZ
14654 echo "$ac_err" >&5
14655 echo "configure: failed program was:" >&5
0dcf9893 14656 cat conftest.$ac_ext >&5
698dcdb6
VZ
14657 rm -rf conftest*
14658 eval "ac_cv_header_$ac_safe=no"
0dcf9893 14659fi
698dcdb6 14660rm -f conftest*
0dcf9893 14661fi
698dcdb6
VZ
14662if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14663 echo "$ac_t""yes" 1>&6
14664 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
8168de4c 14665echo "configure:14666: checking for TIFFError in -ltiff" >&5
698dcdb6
VZ
14666ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
14667if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14668 echo $ac_n "(cached) $ac_c" 1>&6
0dcf9893 14669else
698dcdb6 14670 ac_save_LIBS="$LIBS"
0dcf9893 14671LIBS="-ltiff -lm $LIBS"
698dcdb6 14672cat > conftest.$ac_ext <<EOF
8168de4c 14673#line 14674 "configure"
0dcf9893
VZ
14674#include "confdefs.h"
14675/* Override any gcc2 internal prototype to avoid an error. */
14676/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14677 builtin and then its argument prototype would still apply. */
14678char TIFFError();
14679
14680int main() {
14681TIFFError()
14682; return 0; }
14683EOF
8168de4c 14684if { (eval echo configure:14685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14685 rm -rf conftest*
14686 eval "ac_cv_lib_$ac_lib_var=yes"
14687else
14688 echo "configure: failed program was:" >&5
14689 cat conftest.$ac_ext >&5
14690 rm -rf conftest*
14691 eval "ac_cv_lib_$ac_lib_var=no"
14692fi
14693rm -f conftest*
14694LIBS="$ac_save_LIBS"
14695
14696fi
14697if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14698 echo "$ac_t""yes" 1>&6
0dcf9893 14699 TIFF_LINK="-ltiff"
698dcdb6
VZ
14700else
14701 echo "$ac_t""no" 1>&6
0dcf9893
VZ
14702fi
14703
698dcdb6
VZ
14704else
14705 echo "$ac_t""no" 1>&6
0dcf9893
VZ
14706fi
14707
14708 if test "x$TIFF_LINK" = "x" ; then
698dcdb6 14709 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
0dcf9893
VZ
14710 fi
14711 fi
c7a2bf27
RR
14712fi
14713
3fed1840
RR
14714FREETYPE_INCLUDE=
14715if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
698dcdb6 14716 cat >> confdefs.h <<\EOF
3fed1840
RR
14717#define wxUSE_FREETYPE 1
14718EOF
14719
14720 if test "$wxUSE_FREETYPE" = "yes" ; then
14721 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
14722 else
14723 FREETYPE_LINK=
698dcdb6
VZ
14724 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
14725echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
8168de4c 14726echo "configure:14727: checking for freetype.h" >&5
698dcdb6
VZ
14727if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14728 echo $ac_n "(cached) $ac_c" 1>&6
14729else
14730 cat > conftest.$ac_ext <<EOF
8168de4c 14731#line 14732 "configure"
3fed1840
RR
14732#include "confdefs.h"
14733#include <freetype.h>
698dcdb6
VZ
14734EOF
14735ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8168de4c 14736{ (eval echo configure:14737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14737ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14738if test -z "$ac_err"; then
14739 rm -rf conftest*
14740 eval "ac_cv_header_$ac_safe=yes"
3fed1840 14741else
698dcdb6
VZ
14742 echo "$ac_err" >&5
14743 echo "configure: failed program was:" >&5
3fed1840 14744 cat conftest.$ac_ext >&5
698dcdb6
VZ
14745 rm -rf conftest*
14746 eval "ac_cv_header_$ac_safe=no"
3fed1840 14747fi
698dcdb6 14748rm -f conftest*
3fed1840 14749fi
698dcdb6
VZ
14750if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14751 echo "$ac_t""yes" 1>&6
14752 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
8168de4c 14753echo "configure:14754: checking for FT_Render_Glyph in -lfreetype" >&5
698dcdb6
VZ
14754ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
14755if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14756 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 14757else
698dcdb6 14758 ac_save_LIBS="$LIBS"
3fed1840 14759LIBS="-lfreetype -lm $LIBS"
698dcdb6 14760cat > conftest.$ac_ext <<EOF
8168de4c 14761#line 14762 "configure"
3fed1840
RR
14762#include "confdefs.h"
14763/* Override any gcc2 internal prototype to avoid an error. */
14764/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14765 builtin and then its argument prototype would still apply. */
14766char FT_Render_Glyph();
14767
14768int main() {
14769FT_Render_Glyph()
14770; return 0; }
14771EOF
8168de4c 14772if { (eval echo configure:14773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14773 rm -rf conftest*
14774 eval "ac_cv_lib_$ac_lib_var=yes"
14775else
14776 echo "configure: failed program was:" >&5
14777 cat conftest.$ac_ext >&5
14778 rm -rf conftest*
14779 eval "ac_cv_lib_$ac_lib_var=no"
14780fi
14781rm -f conftest*
14782LIBS="$ac_save_LIBS"
14783
14784fi
14785if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14786 echo "$ac_t""yes" 1>&6
3fed1840 14787 FREETYPE_LINK="-lfreetype"
698dcdb6
VZ
14788else
14789 echo "$ac_t""no" 1>&6
3fed1840
RR
14790fi
14791
698dcdb6
VZ
14792
14793else
14794 echo "$ac_t""no" 1>&6
3fed1840
RR
14795fi
14796
14797 if test "x$FREETYPE_LINK" = "x" ; then
698dcdb6 14798 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
3fed1840
RR
14799 fi
14800 fi
14801fi
14802
10f2d63a 14803if test "$wxUSE_OPENGL" = "yes"; then
698dcdb6
VZ
14804 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
14805echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
8168de4c 14806echo "configure:14807: checking for GL/gl.h" >&5
698dcdb6
VZ
14807if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14808 echo $ac_n "(cached) $ac_c" 1>&6
14809else
14810 cat > conftest.$ac_ext <<EOF
8168de4c 14811#line 14812 "configure"
10f2d63a
VZ
14812#include "confdefs.h"
14813#include <GL/gl.h>
698dcdb6
VZ
14814EOF
14815ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8168de4c 14816{ (eval echo configure:14817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14817ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14818if test -z "$ac_err"; then
14819 rm -rf conftest*
14820 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 14821else
698dcdb6
VZ
14822 echo "$ac_err" >&5
14823 echo "configure: failed program was:" >&5
10f2d63a 14824 cat conftest.$ac_ext >&5
698dcdb6
VZ
14825 rm -rf conftest*
14826 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14827fi
698dcdb6 14828rm -f conftest*
10f2d63a 14829fi
698dcdb6
VZ
14830if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14831 echo "$ac_t""yes" 1>&6
14832
14833 cat >> confdefs.h <<\EOF
bdad4e7e
RR
14834#define wxUSE_OPENGL 1
14835EOF
14836
698dcdb6 14837 cat >> confdefs.h <<\EOF
bdad4e7e
RR
14838#define wxUSE_GLCANVAS 1
14839EOF
14840
698dcdb6 14841 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
8168de4c 14842echo "configure:14843: checking for glFlush in -lGL" >&5
698dcdb6
VZ
14843ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
14844if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14845 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14846else
698dcdb6 14847 ac_save_LIBS="$LIBS"
bdad4e7e 14848LIBS="-lGL $LIBS"
698dcdb6 14849cat > conftest.$ac_ext <<EOF
8168de4c 14850#line 14851 "configure"
10f2d63a
VZ
14851#include "confdefs.h"
14852/* Override any gcc2 internal prototype to avoid an error. */
14853/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14854 builtin and then its argument prototype would still apply. */
14855char glFlush();
6232543b 14856
698dcdb6
VZ
14857int main() {
14858glFlush()
14859; return 0; }
14860EOF
8168de4c 14861if { (eval echo configure:14862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14862 rm -rf conftest*
14863 eval "ac_cv_lib_$ac_lib_var=yes"
14864else
14865 echo "configure: failed program was:" >&5
14866 cat conftest.$ac_ext >&5
14867 rm -rf conftest*
14868 eval "ac_cv_lib_$ac_lib_var=no"
14869fi
14870rm -f conftest*
14871LIBS="$ac_save_LIBS"
1e487827 14872
698dcdb6
VZ
14873fi
14874if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14875 echo "$ac_t""yes" 1>&6
14876
14877 OPENGL_LINK="-lGL -lGLU"
14878
10f2d63a 14879else
698dcdb6 14880 echo "$ac_t""no" 1>&6
10f2d63a 14881
698dcdb6 14882 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
8168de4c 14883echo "configure:14884: checking for glFlush in -lMesaGL" >&5
698dcdb6
VZ
14884ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
14885if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14886 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14887else
698dcdb6 14888 ac_save_LIBS="$LIBS"
10f2d63a 14889LIBS="-lMesaGL $LIBS"
698dcdb6 14890cat > conftest.$ac_ext <<EOF
8168de4c 14891#line 14892 "configure"
10f2d63a
VZ
14892#include "confdefs.h"
14893/* Override any gcc2 internal prototype to avoid an error. */
14894/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14895 builtin and then its argument prototype would still apply. */
14896char glFlush();
14897
14898int main() {
14899glFlush()
14900; return 0; }
14901EOF
8168de4c 14902if { (eval echo configure:14903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14903 rm -rf conftest*
14904 eval "ac_cv_lib_$ac_lib_var=yes"
14905else
14906 echo "configure: failed program was:" >&5
14907 cat conftest.$ac_ext >&5
14908 rm -rf conftest*
14909 eval "ac_cv_lib_$ac_lib_var=no"
14910fi
14911rm -f conftest*
14912LIBS="$ac_save_LIBS"
10f2d63a 14913
698dcdb6
VZ
14914fi
14915if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14916 echo "$ac_t""yes" 1>&6
14917
f6bcfd97 14918 OPENGL_LINK="-lMesaGL -lMesaGLU"
698dcdb6
VZ
14919
14920else
14921 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14922fi
14923
698dcdb6 14924
10f2d63a
VZ
14925fi
14926
698dcdb6 14927
10f2d63a 14928else
698dcdb6
VZ
14929 echo "$ac_t""no" 1>&6
14930wxUSE_OPENGL=0
10f2d63a
VZ
14931fi
14932
14933fi
14934
698dcdb6 14935
10f2d63a 14936if test "$wxUSE_GUI" = "yes"; then
698dcdb6 14937 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14938#define wxUSE_GUI 1
14939EOF
14940
698dcdb6 14941
10f2d63a 14942 else
698dcdb6 14943 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14944#define wxUSE_NOGUI 1
14945EOF
14946
14947fi
14948
698dcdb6 14949
10f2d63a 14950if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 14951 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14952#define wxUSE_UNIX 1
14953EOF
14954
14955fi
14956
698dcdb6 14957
10f2d63a 14958if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 14959 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14960#define wxUSE_APPLE_IEEE 1
14961EOF
14962
14963fi
14964
1e6feb95
VZ
14965if test "$wxUSE_TIMER" = "yes"; then
14966 cat >> confdefs.h <<\EOF
14967#define wxUSE_TIMER 1
14968EOF
14969
14970fi
14971
10f2d63a 14972if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 14973 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14974#define wxUSE_WAVE 1
14975EOF
14976
14977fi
14978
1e6feb95
VZ
14979if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
14980 cat >> confdefs.h <<\EOF
14981#define wxUSE_CMDLINE_PARSER 1
14982EOF
14983
14984fi
14985
14986if test "$wxUSE_STOPWATCH" = "yes"; then
14987 cat >> confdefs.h <<\EOF
14988#define wxUSE_STOPWATCH 1
14989EOF
14990
14991fi
14992
14993if test "$wxUSE_DATETIME" = "yes"; then
14994 cat >> confdefs.h <<\EOF
14995#define wxUSE_DATETIME 1
14996EOF
14997
14998fi
14999
15000if test "$wxUSE_TIMEDATE" = "yes"; then
15001 cat >> confdefs.h <<\EOF
15002#define wxUSE_TIMEDATE 1
15003EOF
15004
15005fi
15006
10f2d63a 15007if test "$wxUSE_FILE" = "yes"; then
698dcdb6 15008 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15009#define wxUSE_FILE 1
15010EOF
15011
15012fi
15013
1e6feb95
VZ
15014if test "$wxUSE_FFILE" = "yes"; then
15015 cat >> confdefs.h <<\EOF
15016#define wxUSE_FFILE 1
15017EOF
15018
15019fi
15020
24528b0c 15021if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 15022 cat >> confdefs.h <<\EOF
24528b0c
VS
15023#define wxUSE_FILESYSTEM 1
15024EOF
15025
15026fi
15027
10f2d63a 15028if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 15029 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15030#define wxUSE_FS_INET 1
15031EOF
15032
15033fi
15034
15035if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 15036 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15037#define wxUSE_FS_ZIP 1
15038EOF
15039
15040fi
15041
15042if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 15043 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15044#define wxUSE_ZIPSTREAM 1
15045EOF
15046
15047fi
15048
eb4efbdc 15049if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 15050 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
15051#define wxUSE_ON_FATAL_EXCEPTION 1
15052EOF
15053
15054fi
15055
4f3c5f06 15056if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 15057 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
15058#define wxUSE_SNGLINST_CHECKER 1
15059EOF
15060
15061fi
15062
10f2d63a 15063if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 15064 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15065#define wxUSE_BUSYINFO 1
15066EOF
15067
15068fi
15069
15070if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 15071 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15072#define wxUSE_STD_IOSTREAM 1
15073EOF
15074
15075fi
15076
15077if test "$wxUSE_TEXTFILE" = "yes"; then
15078 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15079 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 15080 else
698dcdb6 15081 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15082#define wxUSE_TEXTFILE 1
15083EOF
15084
15085 fi
15086fi
15087
15088if test "$wxUSE_CONFIG" = "yes" ; then
15089 if test "$wxUSE_TEXTFILE" != "yes"; then
698dcdb6 15090 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
10f2d63a 15091 else
698dcdb6 15092 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15093#define wxUSE_CONFIG 1
15094EOF
15095
15096 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15097 fi
15098fi
15099
15100if test "$wxUSE_INTL" = "yes" ; then
15101 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15102 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 15103 else
698dcdb6 15104 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15105#define wxUSE_INTL 1
15106EOF
15107
15108 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 15109 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
15110 fi
15111fi
15112
15113if test "$wxUSE_LOG" = "yes"; then
698dcdb6 15114 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15115#define wxUSE_LOG 1
15116EOF
15117
15118fi
15119
15120if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 15121 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15122#define wxUSE_LONGLONG 1
15123EOF
15124
15125fi
15126
e8f65ba6 15127if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 15128 cat >> confdefs.h <<\EOF
e8f65ba6
RR
15129#define wxUSE_GEOMETRY 1
15130EOF
15131
15132fi
15133
10f2d63a 15134if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 15135 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15136#define wxUSE_DIALUP_MANAGER 1
15137EOF
15138
70f7a477 15139 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
15140fi
15141
15142if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 15143 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15144#define wxUSE_STREAMS 1
15145EOF
15146
15147fi
15148
1e487827 15149
1e6feb95 15150if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 15151 for ac_func in strptime
83307f33 15152do
698dcdb6 15153echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8168de4c 15154echo "configure:15155: checking for $ac_func" >&5
698dcdb6
VZ
15155if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15156 echo $ac_n "(cached) $ac_c" 1>&6
15157else
15158 cat > conftest.$ac_ext <<EOF
8168de4c 15159#line 15160 "configure"
83307f33
VZ
15160#include "confdefs.h"
15161/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15162 which can conflict with char $ac_func(); below. */
83307f33
VZ
15163#include <assert.h>
15164/* Override any gcc2 internal prototype to avoid an error. */
15165/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15166 builtin and then its argument prototype would still apply. */
15167char $ac_func();
15168
15169int main() {
83307f33
VZ
15170
15171/* The GNU C library defines this for functions which it implements
15172 to always fail with ENOSYS. Some functions are actually named
15173 something starting with __ and the normal name is an alias. */
15174#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15175choke me
15176#else
698dcdb6 15177$ac_func();
83307f33
VZ
15178#endif
15179
698dcdb6 15180; return 0; }
83307f33 15181EOF
8168de4c 15182if { (eval echo configure:15183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15183 rm -rf conftest*
15184 eval "ac_cv_func_$ac_func=yes"
15185else
15186 echo "configure: failed program was:" >&5
15187 cat conftest.$ac_ext >&5
15188 rm -rf conftest*
15189 eval "ac_cv_func_$ac_func=no"
15190fi
15191rm -f conftest*
15192fi
83307f33 15193
698dcdb6
VZ
15194if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15195 echo "$ac_t""yes" 1>&6
15196 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15197 cat >> confdefs.h <<EOF
15198#define $ac_tr_func 1
15199EOF
15200
15201else
15202 echo "$ac_t""no" 1>&6
83307f33
VZ
15203fi
15204done
15205
1e487827 15206
698dcdb6 15207 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
8168de4c 15208echo "configure:15209: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
15209if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
15210 echo $ac_n "(cached) $ac_c" 1>&6
15211else
15212
15213 cat > conftest.$ac_ext <<EOF
8168de4c 15214#line 15215 "configure"
360d6699
VZ
15215#include "confdefs.h"
15216
b4085ce6 15217 #include <time.h>
698dcdb6
VZ
15218
15219int main() {
360d6699
VZ
15220
15221 int tz;
15222 tz = __timezone;
698dcdb6
VZ
15223
15224; return 0; }
15225EOF
8168de4c 15226if { (eval echo configure:15227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15227 rm -rf conftest*
15228
360d6699 15229 wx_cv_var_timezone=__timezone
698dcdb6 15230
360d6699 15231else
698dcdb6
VZ
15232 echo "configure: failed program was:" >&5
15233 cat conftest.$ac_ext >&5
15234 rm -rf conftest*
15235
15236 cat > conftest.$ac_ext <<EOF
8168de4c 15237#line 15238 "configure"
360d6699
VZ
15238#include "confdefs.h"
15239
b4085ce6 15240 #include <time.h>
698dcdb6
VZ
15241
15242int main() {
360d6699
VZ
15243
15244 int tz;
15245 tz = _timezone;
698dcdb6
VZ
15246
15247; return 0; }
15248EOF
8168de4c 15249if { (eval echo configure:15250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15250 rm -rf conftest*
15251
360d6699 15252 wx_cv_var_timezone=_timezone
698dcdb6 15253
5357c8e8 15254else
698dcdb6
VZ
15255 echo "configure: failed program was:" >&5
15256 cat conftest.$ac_ext >&5
15257 rm -rf conftest*
15258
15259 cat > conftest.$ac_ext <<EOF
8168de4c 15260#line 15261 "configure"
5357c8e8
VZ
15261#include "confdefs.h"
15262
b4085ce6 15263 #include <time.h>
698dcdb6
VZ
15264
15265int main() {
5357c8e8
VZ
15266
15267 int tz;
15268 tz = timezone;
698dcdb6
VZ
15269
15270; return 0; }
15271EOF
8168de4c 15272if { (eval echo configure:15273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15273 rm -rf conftest*
15274
5357c8e8 15275 wx_cv_var_timezone=timezone
698dcdb6 15276
360d6699 15277else
698dcdb6
VZ
15278 echo "configure: failed program was:" >&5
15279 cat conftest.$ac_ext >&5
15280 rm -rf conftest*
15281 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
15282
360d6699 15283fi
698dcdb6
VZ
15284rm -f conftest*
15285
15286
360d6699 15287fi
698dcdb6
VZ
15288rm -f conftest*
15289
15290
6232543b 15291fi
698dcdb6
VZ
15292rm -f conftest*
15293
15294
1e487827 15295fi
703e0a69 15296
698dcdb6
VZ
15297echo "$ac_t""$wx_cv_var_timezone" 1>&6
15298
15299 cat >> confdefs.h <<EOF
360d6699
VZ
15300#define WX_TIMEZONE $wx_cv_var_timezone
15301EOF
15302
698dcdb6
VZ
15303
15304 for ac_func in localtime
afc31813 15305do
698dcdb6 15306echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8168de4c 15307echo "configure:15308: checking for $ac_func" >&5
698dcdb6
VZ
15308if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15309 echo $ac_n "(cached) $ac_c" 1>&6
15310else
15311 cat > conftest.$ac_ext <<EOF
8168de4c 15312#line 15313 "configure"
10f2d63a 15313#include "confdefs.h"
afc31813 15314/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15315 which can conflict with char $ac_func(); below. */
afc31813
VZ
15316#include <assert.h>
15317/* Override any gcc2 internal prototype to avoid an error. */
15318/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15319 builtin and then its argument prototype would still apply. */
15320char $ac_func();
15321
15322int main() {
afc31813
VZ
15323
15324/* The GNU C library defines this for functions which it implements
15325 to always fail with ENOSYS. Some functions are actually named
15326 something starting with __ and the normal name is an alias. */
15327#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15328choke me
15329#else
698dcdb6 15330$ac_func();
afc31813
VZ
15331#endif
15332
698dcdb6 15333; return 0; }
10f2d63a 15334EOF
8168de4c 15335if { (eval echo configure:15336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15336 rm -rf conftest*
15337 eval "ac_cv_func_$ac_func=yes"
15338else
15339 echo "configure: failed program was:" >&5
15340 cat conftest.$ac_ext >&5
15341 rm -rf conftest*
15342 eval "ac_cv_func_$ac_func=no"
15343fi
15344rm -f conftest*
15345fi
afc31813 15346
698dcdb6
VZ
15347if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15348 echo "$ac_t""yes" 1>&6
15349 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15350 cat >> confdefs.h <<EOF
15351#define $ac_tr_func 1
15352EOF
15353
15354else
15355 echo "$ac_t""no" 1>&6
afc31813
VZ
15356fi
15357done
15358
1e487827 15359
698dcdb6
VZ
15360 if test "$ac_cv_func_localtime" = "yes"; then
15361 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
8168de4c 15362echo "configure:15363: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
15363if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
15364 echo $ac_n "(cached) $ac_c" 1>&6
15365else
15366
15367 cat > conftest.$ac_ext <<EOF
8168de4c 15368#line 15369 "configure"
0470b1e6
VZ
15369#include "confdefs.h"
15370
b4085ce6 15371 #include <time.h>
698dcdb6
VZ
15372
15373int main() {
0470b1e6
VZ
15374
15375 struct tm tm;
15376 tm.tm_gmtoff++;
698dcdb6
VZ
15377
15378; return 0; }
15379EOF
8168de4c 15380if { (eval echo configure:15381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15381 rm -rf conftest*
15382
f03a98d8 15383 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 15384
0470b1e6 15385else
698dcdb6
VZ
15386 echo "configure: failed program was:" >&5
15387 cat conftest.$ac_ext >&5
15388 rm -rf conftest*
15389 wx_cv_struct_tm_has_gmtoff=no
15390
0470b1e6 15391fi
698dcdb6
VZ
15392rm -f conftest*
15393
1e487827 15394fi
698dcdb6
VZ
15395
15396echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
15397 fi
15398
15399 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 15400 cat >> confdefs.h <<\EOF
6232543b
VS
15401#define WX_GMTOFF_IN_TM 1
15402EOF
0470b1e6 15403
3fcdd07b
VZ
15404 fi
15405
698dcdb6 15406 for ac_func in gettimeofday ftime
3fcdd07b 15407do
698dcdb6 15408echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8168de4c 15409echo "configure:15410: checking for $ac_func" >&5
698dcdb6
VZ
15410if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15411 echo $ac_n "(cached) $ac_c" 1>&6
15412else
15413 cat > conftest.$ac_ext <<EOF
8168de4c 15414#line 15415 "configure"
3fcdd07b
VZ
15415#include "confdefs.h"
15416/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15417 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
15418#include <assert.h>
15419/* Override any gcc2 internal prototype to avoid an error. */
15420/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15421 builtin and then its argument prototype would still apply. */
15422char $ac_func();
15423
15424int main() {
3fcdd07b
VZ
15425
15426/* The GNU C library defines this for functions which it implements
15427 to always fail with ENOSYS. Some functions are actually named
15428 something starting with __ and the normal name is an alias. */
15429#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15430choke me
15431#else
698dcdb6 15432$ac_func();
3fcdd07b
VZ
15433#endif
15434
698dcdb6
VZ
15435; return 0; }
15436EOF
8168de4c 15437if { (eval echo configure:15438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15438 rm -rf conftest*
15439 eval "ac_cv_func_$ac_func=yes"
15440else
15441 echo "configure: failed program was:" >&5
15442 cat conftest.$ac_ext >&5
15443 rm -rf conftest*
15444 eval "ac_cv_func_$ac_func=no"
15445fi
15446rm -f conftest*
15447fi
15448
15449if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15450 echo "$ac_t""yes" 1>&6
15451 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15452 cat >> confdefs.h <<EOF
15453#define $ac_tr_func 1
3fcdd07b
VZ
15454EOF
15455 break
698dcdb6
VZ
15456else
15457 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
15458fi
15459done
15460
afc31813 15461
698dcdb6
VZ
15462 if test "$ac_cv_func_gettimeofday" = "yes"; then
15463 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
8168de4c 15464echo "configure:15465: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
15465if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
15466 echo $ac_n "(cached) $ac_c" 1>&6
15467else
15468
15469
15470 ac_ext=C
15471# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 15472ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
15473ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15474ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15475cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 15476
698dcdb6
VZ
15477
15478 cat > conftest.$ac_ext <<EOF
8168de4c 15479#line 15480 "configure"
10f2d63a 15480#include "confdefs.h"
afc31813
VZ
15481
15482 #include <sys/time.h>
15483 #include <unistd.h>
698dcdb6
VZ
15484
15485int main() {
afc31813
VZ
15486
15487 struct timeval tv;
15488 struct timezone tz;
15489 gettimeofday(&tv, &tz);
698dcdb6
VZ
15490
15491; return 0; }
15492EOF
8168de4c 15493if { (eval echo configure:15494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15494 rm -rf conftest*
afc31813 15495 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 15496else
698dcdb6
VZ
15497 echo "configure: failed program was:" >&5
15498 cat conftest.$ac_ext >&5
15499 rm -rf conftest*
15500 cat > conftest.$ac_ext <<EOF
8168de4c 15501#line 15502 "configure"
10f2d63a 15502#include "confdefs.h"
afc31813
VZ
15503
15504 #include <sys/time.h>
15505 #include <unistd.h>
698dcdb6
VZ
15506
15507int main() {
afc31813
VZ
15508
15509 struct timeval tv;
15510 gettimeofday(&tv);
698dcdb6
VZ
15511
15512; return 0; }
15513EOF
8168de4c 15514if { (eval echo configure:15515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15515 rm -rf conftest*
afc31813 15516 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 15517else
698dcdb6
VZ
15518 echo "configure: failed program was:" >&5
15519 cat conftest.$ac_ext >&5
15520 rm -rf conftest*
15521 wx_cv_func_gettimeofday_has_2_args=unknown
15522
10f2d63a 15523fi
698dcdb6
VZ
15524rm -f conftest*
15525
10f2d63a 15526fi
698dcdb6 15527rm -f conftest*
afc31813 15528 ac_ext=c
698dcdb6 15529# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 15530ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
15531ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15532ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15533cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 15534
698dcdb6 15535
afc31813 15536fi
698dcdb6
VZ
15537
15538echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 15539
afc31813 15540 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 15541 cat >> confdefs.h <<\EOF
afc31813
VZ
15542#define WX_GETTIMEOFDAY_NO_TZ 1
15543EOF
15544
15545 fi
15546 fi
15547
698dcdb6 15548 cat >> confdefs.h <<\EOF
afc31813
VZ
15549#define wxUSE_TIMEDATE 1
15550EOF
15551
15552 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
15553fi
15554
698dcdb6 15555
b089607b
VZ
15556if test "$TOOLKIT" != "MSW"; then
15557
afc31813 15558if test "$wxUSE_SOCKETS" = "yes"; then
698dcdb6 15559 echo $ac_n "checking for socket""... $ac_c" 1>&6
8168de4c 15560echo "configure:15561: checking for socket" >&5
698dcdb6
VZ
15561if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
15562 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 15563else
698dcdb6 15564 cat > conftest.$ac_ext <<EOF
8168de4c 15565#line 15566 "configure"
c63c7106
VZ
15566#include "confdefs.h"
15567/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15568 which can conflict with char socket(); below. */
c63c7106
VZ
15569#include <assert.h>
15570/* Override any gcc2 internal prototype to avoid an error. */
15571/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15572 builtin and then its argument prototype would still apply. */
15573char socket();
15574
15575int main() {
c63c7106
VZ
15576
15577/* The GNU C library defines this for functions which it implements
15578 to always fail with ENOSYS. Some functions are actually named
15579 something starting with __ and the normal name is an alias. */
15580#if defined (__stub_socket) || defined (__stub___socket)
15581choke me
15582#else
698dcdb6 15583socket();
c63c7106
VZ
15584#endif
15585
698dcdb6
VZ
15586; return 0; }
15587EOF
8168de4c 15588if { (eval echo configure:15589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15589 rm -rf conftest*
15590 eval "ac_cv_func_socket=yes"
15591else
15592 echo "configure: failed program was:" >&5
15593 cat conftest.$ac_ext >&5
15594 rm -rf conftest*
15595 eval "ac_cv_func_socket=no"
15596fi
15597rm -f conftest*
15598fi
15599
15600if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
15601 echo "$ac_t""yes" 1>&6
c63c7106
VZ
15602 :
15603else
698dcdb6
VZ
15604 echo "$ac_t""no" 1>&6
15605echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
8168de4c 15606echo "configure:15607: checking for socket in -lsocket" >&5
698dcdb6
VZ
15607ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
15608if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15609 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 15610else
698dcdb6 15611 ac_save_LIBS="$LIBS"
c63c7106 15612LIBS="-lsocket $LIBS"
698dcdb6 15613cat > conftest.$ac_ext <<EOF
8168de4c 15614#line 15615 "configure"
c63c7106
VZ
15615#include "confdefs.h"
15616/* Override any gcc2 internal prototype to avoid an error. */
15617/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15618 builtin and then its argument prototype would still apply. */
15619char socket();
15620
15621int main() {
15622socket()
15623; return 0; }
15624EOF
8168de4c 15625if { (eval echo configure:15626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15626 rm -rf conftest*
15627 eval "ac_cv_lib_$ac_lib_var=yes"
15628else
15629 echo "configure: failed program was:" >&5
15630 cat conftest.$ac_ext >&5
15631 rm -rf conftest*
15632 eval "ac_cv_lib_$ac_lib_var=no"
15633fi
15634rm -f conftest*
15635LIBS="$ac_save_LIBS"
15636
15637fi
15638if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15639 echo "$ac_t""yes" 1>&6
c63c7106 15640 INET_LINK="$INET_LINK -lsocket"
c63c7106 15641else
698dcdb6 15642 echo "$ac_t""no" 1>&6
afc31813 15643
698dcdb6 15644 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
afc31813 15645 wxUSE_SOCKETS=no
698dcdb6
VZ
15646
15647
10f2d63a
VZ
15648fi
15649
698dcdb6 15650
6232543b 15651fi
b089607b 15652
1e487827 15653fi
afc31813 15654
51a9faba 15655
698dcdb6
VZ
15656if test "$wxUSE_SOCKETS" = "yes" ; then
15657 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
8168de4c 15658echo "configure:15659: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
15659if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
15660 echo $ac_n "(cached) $ac_c" 1>&6
15661else
15662
15663
15664 ac_ext=C
15665# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 15666ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
15667ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15668ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15669cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 15670
698dcdb6
VZ
15671
15672 cat > conftest.$ac_ext <<EOF
8168de4c 15673#line 15674 "configure"
afc31813 15674#include "confdefs.h"
51a9faba 15675
3ace2e6d 15676 #include <sys/types.h>
51a9faba 15677 #include <sys/socket.h>
698dcdb6
VZ
15678
15679int main() {
51a9faba
VZ
15680
15681 socklen_t len;
15682 getsockname(0, 0, &len);
698dcdb6
VZ
15683
15684; return 0; }
15685EOF
8168de4c 15686if { (eval echo configure:15687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15687 rm -rf conftest*
51a9faba 15688 wx_cv_type_getsockname3=socklen_t
afc31813 15689else
698dcdb6
VZ
15690 echo "configure: failed program was:" >&5
15691 cat conftest.$ac_ext >&5
15692 rm -rf conftest*
15693 cat > conftest.$ac_ext <<EOF
8168de4c 15694#line 15695 "configure"
afc31813 15695#include "confdefs.h"
51a9faba 15696
3ace2e6d 15697 #include <sys/types.h>
51a9faba 15698 #include <sys/socket.h>
698dcdb6
VZ
15699
15700int main() {
51a9faba
VZ
15701
15702 size_t len;
15703 getsockname(0, 0, &len);
698dcdb6
VZ
15704
15705; return 0; }
15706EOF
8168de4c 15707if { (eval echo configure:15708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15708 rm -rf conftest*
51a9faba 15709 wx_cv_type_getsockname3=size_t
afc31813 15710else
698dcdb6
VZ
15711 echo "configure: failed program was:" >&5
15712 cat conftest.$ac_ext >&5
15713 rm -rf conftest*
15714 cat > conftest.$ac_ext <<EOF
8168de4c 15715#line 15716 "configure"
afc31813 15716#include "confdefs.h"
51a9faba 15717
3ace2e6d 15718 #include <sys/types.h>
51a9faba 15719 #include <sys/socket.h>
698dcdb6
VZ
15720
15721int main() {
51a9faba
VZ
15722
15723 int len;
15724 getsockname(0, 0, &len);
698dcdb6
VZ
15725
15726; return 0; }
15727EOF
8168de4c 15728if { (eval echo configure:15729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15729 rm -rf conftest*
51a9faba 15730 wx_cv_type_getsockname3=int
afc31813 15731else
698dcdb6
VZ
15732 echo "configure: failed program was:" >&5
15733 cat conftest.$ac_ext >&5
15734 rm -rf conftest*
15735 wx_cv_type_getsockname3=unknown
15736
afc31813 15737fi
698dcdb6
VZ
15738rm -f conftest*
15739
afc31813 15740fi
698dcdb6
VZ
15741rm -f conftest*
15742
afc31813 15743fi
698dcdb6 15744rm -f conftest*
51a9faba
VZ
15745
15746 ac_ext=c
698dcdb6 15747# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 15748ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
15749ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15750ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15751cross_compiling=$ac_cv_prog_cc_cross
afc31813 15752
698dcdb6 15753
51a9faba 15754fi
698dcdb6
VZ
15755
15756echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba
VZ
15757
15758 if test "$wx_cv_type_getsockname3" = "unknown"; then
15759 wxUSE_SOCKETS=no
698dcdb6 15760 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
51a9faba 15761 else
698dcdb6 15762 cat >> confdefs.h <<EOF
51a9faba
VZ
15763#define SOCKLEN_T $wx_cv_type_getsockname3
15764EOF
15765
15766 fi
15767fi
afc31813 15768
c521c494
RL
15769fi
15770
51a9faba 15771if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 15772 cat >> confdefs.h <<\EOF
afc31813
VZ
15773#define wxUSE_SOCKETS 1
15774EOF
15775
70f7a477 15776 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
15777 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
15778fi
15779
698dcdb6 15780
dc3d889d
VZ
15781if test "$wxUSE_GUI" = "yes"; then
15782
b089607b
VZ
15783if test "$TOOLKIT" != "MSW"; then
15784
ceded8b9 15785if test "$wxUSE_JOYSTICK" = "yes"; then
698dcdb6 15786 for ac_hdr in linux/joystick.h
10f2d63a 15787do
698dcdb6
VZ
15788ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15789echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8168de4c 15790echo "configure:15791: checking for $ac_hdr" >&5
698dcdb6
VZ
15791if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15792 echo $ac_n "(cached) $ac_c" 1>&6
15793else
15794 cat > conftest.$ac_ext <<EOF
8168de4c 15795#line 15796 "configure"
10f2d63a 15796#include "confdefs.h"
698dcdb6
VZ
15797#include <$ac_hdr>
15798EOF
15799ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8168de4c 15800{ (eval echo configure:15801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15801ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15802if test -z "$ac_err"; then
15803 rm -rf conftest*
15804 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 15805else
698dcdb6
VZ
15806 echo "$ac_err" >&5
15807 echo "configure: failed program was:" >&5
10f2d63a 15808 cat conftest.$ac_ext >&5
698dcdb6
VZ
15809 rm -rf conftest*
15810 eval "ac_cv_header_$ac_safe=no"
10f2d63a 15811fi
698dcdb6 15812rm -f conftest*
10f2d63a 15813fi
698dcdb6
VZ
15814if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15815 echo "$ac_t""yes" 1>&6
15816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15817 cat >> confdefs.h <<EOF
15818#define $ac_tr_hdr 1
10f2d63a 15819EOF
698dcdb6
VZ
15820
15821else
15822 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15823fi
15824done
15825
b089607b 15826 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
ceded8b9 15827 wxUSE_JOYSTICK=no
698dcdb6 15828 echo "configure: warning: Joystick not supported by this system" 1>&2
b089607b
VZ
15829 fi
15830fi
15831
15832fi
15833
ceded8b9 15834if test "$wxUSE_JOYSTICK" = "yes"; then
698dcdb6 15835 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15836#define wxUSE_JOYSTICK 1
15837EOF
15838
15839 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
15840fi
15841
dc3d889d
VZ
15842fi
15843
698dcdb6 15844
b089607b
VZ
15845if test "$TOOLKIT" != "MSW"; then
15846
10f2d63a
VZ
15847HAVE_DL_FUNCS=0
15848HAVE_SHL_FUNCS=0
15849if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
b4085ce6
GD
15850 if test "$USE_MAC" = 1; then
15851 HAVE_DL_FUNCS=1
15852 else
698dcdb6 15853 for ac_func in dlopen
10f2d63a 15854do
698dcdb6 15855echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8168de4c 15856echo "configure:15857: checking for $ac_func" >&5
698dcdb6
VZ
15857if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15858 echo $ac_n "(cached) $ac_c" 1>&6
15859else
15860 cat > conftest.$ac_ext <<EOF
8168de4c 15861#line 15862 "configure"
10f2d63a
VZ
15862#include "confdefs.h"
15863/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15864 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
15865#include <assert.h>
15866/* Override any gcc2 internal prototype to avoid an error. */
15867/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15868 builtin and then its argument prototype would still apply. */
15869char $ac_func();
15870
15871int main() {
10f2d63a
VZ
15872
15873/* The GNU C library defines this for functions which it implements
15874 to always fail with ENOSYS. Some functions are actually named
15875 something starting with __ and the normal name is an alias. */
15876#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15877choke me
15878#else
698dcdb6 15879$ac_func();
10f2d63a
VZ
15880#endif
15881
698dcdb6
VZ
15882; return 0; }
15883EOF
8168de4c 15884if { (eval echo configure:15885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15885 rm -rf conftest*
15886 eval "ac_cv_func_$ac_func=yes"
15887else
15888 echo "configure: failed program was:" >&5
15889 cat conftest.$ac_ext >&5
15890 rm -rf conftest*
15891 eval "ac_cv_func_$ac_func=no"
15892fi
15893rm -f conftest*
15894fi
15895
15896if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15897 echo "$ac_t""yes" 1>&6
15898 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15899 cat >> confdefs.h <<EOF
15900#define $ac_tr_func 1
15901EOF
15902
15903 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15904#define HAVE_DLOPEN 1
15905EOF
15906
15907 HAVE_DL_FUNCS=1
698dcdb6 15908
10f2d63a 15909else
698dcdb6
VZ
15910 echo "$ac_t""no" 1>&6
15911echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8168de4c 15912echo "configure:15913: checking for dlopen in -ldl" >&5
698dcdb6
VZ
15913ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
15914if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15915 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15916else
698dcdb6 15917 ac_save_LIBS="$LIBS"
10f2d63a 15918LIBS="-ldl $LIBS"
698dcdb6 15919cat > conftest.$ac_ext <<EOF
8168de4c 15920#line 15921 "configure"
10f2d63a
VZ
15921#include "confdefs.h"
15922/* Override any gcc2 internal prototype to avoid an error. */
15923/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15924 builtin and then its argument prototype would still apply. */
15925char dlopen();
15926
15927int main() {
15928dlopen()
15929; return 0; }
15930EOF
8168de4c 15931if { (eval echo configure:15932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15932 rm -rf conftest*
15933 eval "ac_cv_lib_$ac_lib_var=yes"
15934else
15935 echo "configure: failed program was:" >&5
15936 cat conftest.$ac_ext >&5
15937 rm -rf conftest*
15938 eval "ac_cv_lib_$ac_lib_var=no"
15939fi
15940rm -f conftest*
15941LIBS="$ac_save_LIBS"
15942
15943fi
15944if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15945 echo "$ac_t""yes" 1>&6
15946
15947 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15948#define HAVE_DLOPEN 1
15949EOF
15950
15951 HAVE_DL_FUNCS=1
15952 LIBS="$LIBS -ldl"
698dcdb6 15953
10f2d63a 15954else
698dcdb6 15955 echo "$ac_t""no" 1>&6
10f2d63a 15956
698dcdb6 15957 for ac_func in shl_load
10f2d63a 15958do
698dcdb6 15959echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8168de4c 15960echo "configure:15961: checking for $ac_func" >&5
698dcdb6
VZ
15961if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15962 echo $ac_n "(cached) $ac_c" 1>&6
15963else
15964 cat > conftest.$ac_ext <<EOF
8168de4c 15965#line 15966 "configure"
10f2d63a
VZ
15966#include "confdefs.h"
15967/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15968 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
15969#include <assert.h>
15970/* Override any gcc2 internal prototype to avoid an error. */
15971/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15972 builtin and then its argument prototype would still apply. */
15973char $ac_func();
15974
15975int main() {
10f2d63a
VZ
15976
15977/* The GNU C library defines this for functions which it implements
15978 to always fail with ENOSYS. Some functions are actually named
15979 something starting with __ and the normal name is an alias. */
15980#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15981choke me
15982#else
698dcdb6 15983$ac_func();
10f2d63a
VZ
15984#endif
15985
698dcdb6
VZ
15986; return 0; }
15987EOF
8168de4c 15988if { (eval echo configure:15989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15989 rm -rf conftest*
15990 eval "ac_cv_func_$ac_func=yes"
15991else
15992 echo "configure: failed program was:" >&5
15993 cat conftest.$ac_ext >&5
15994 rm -rf conftest*
15995 eval "ac_cv_func_$ac_func=no"
15996fi
15997rm -f conftest*
15998fi
15999
16000if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16001 echo "$ac_t""yes" 1>&6
16002 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16003 cat >> confdefs.h <<EOF
16004#define $ac_tr_func 1
16005EOF
16006
16007 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16008#define HAVE_SHL_LOAD 1
16009EOF
16010
16011 HAVE_SHL_FUNCS=1
698dcdb6 16012
10f2d63a 16013else
698dcdb6
VZ
16014 echo "$ac_t""no" 1>&6
16015echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
8168de4c 16016echo "configure:16017: checking for dld in -lshl_load" >&5
698dcdb6
VZ
16017ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16018if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16019 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16020else
698dcdb6 16021 ac_save_LIBS="$LIBS"
f6bcfd97 16022LIBS="-lshl_load $LIBS"
698dcdb6 16023cat > conftest.$ac_ext <<EOF
8168de4c 16024#line 16025 "configure"
f6bcfd97
BP
16025#include "confdefs.h"
16026/* Override any gcc2 internal prototype to avoid an error. */
16027/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16028 builtin and then its argument prototype would still apply. */
16029char dld();
16030
16031int main() {
16032dld()
16033; return 0; }
16034EOF
8168de4c 16035if { (eval echo configure:16036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16036 rm -rf conftest*
16037 eval "ac_cv_lib_$ac_lib_var=yes"
16038else
16039 echo "configure: failed program was:" >&5
16040 cat conftest.$ac_ext >&5
16041 rm -rf conftest*
16042 eval "ac_cv_lib_$ac_lib_var=no"
16043fi
16044rm -f conftest*
16045LIBS="$ac_save_LIBS"
f6bcfd97 16046
698dcdb6
VZ
16047fi
16048if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16049 echo "$ac_t""yes" 1>&6
16050
f6bcfd97
BP
16051 HAVE_SHL_FUNCS=1
16052 LIBS="$LIBS -ldld"
698dcdb6
VZ
16053
16054else
16055 echo "$ac_t""no" 1>&6
f6bcfd97
BP
16056fi
16057
698dcdb6 16058
10f2d63a
VZ
16059fi
16060done
16061
698dcdb6 16062
10f2d63a
VZ
16063fi
16064
698dcdb6 16065
10f2d63a
VZ
16066fi
16067done
16068
1e487827 16069
698dcdb6
VZ
16070 if test "$HAVE_DL_FUNCS" = 1; then
16071 for ac_func in dlerror
f6bcfd97 16072do
698dcdb6 16073echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8168de4c 16074echo "configure:16075: checking for $ac_func" >&5
698dcdb6
VZ
16075if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16076 echo $ac_n "(cached) $ac_c" 1>&6
16077else
16078 cat > conftest.$ac_ext <<EOF
8168de4c 16079#line 16080 "configure"
f6bcfd97
BP
16080#include "confdefs.h"
16081/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16082 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
16083#include <assert.h>
16084/* Override any gcc2 internal prototype to avoid an error. */
16085/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16086 builtin and then its argument prototype would still apply. */
16087char $ac_func();
16088
16089int main() {
f6bcfd97
BP
16090
16091/* The GNU C library defines this for functions which it implements
16092 to always fail with ENOSYS. Some functions are actually named
16093 something starting with __ and the normal name is an alias. */
16094#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16095choke me
16096#else
698dcdb6 16097$ac_func();
f6bcfd97
BP
16098#endif
16099
698dcdb6
VZ
16100; return 0; }
16101EOF
8168de4c 16102if { (eval echo configure:16103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16103 rm -rf conftest*
16104 eval "ac_cv_func_$ac_func=yes"
16105else
16106 echo "configure: failed program was:" >&5
16107 cat conftest.$ac_ext >&5
16108 rm -rf conftest*
16109 eval "ac_cv_func_$ac_func=no"
16110fi
16111rm -f conftest*
16112fi
16113
16114if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16115 echo "$ac_t""yes" 1>&6
16116 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16117 cat >> confdefs.h <<EOF
16118#define $ac_tr_func 1
16119EOF
16120 cat >> confdefs.h <<\EOF
f6bcfd97
BP
16121#define HAVE_DLERROR 1
16122EOF
16123
16124else
698dcdb6
VZ
16125 echo "$ac_t""no" 1>&6
16126echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
8168de4c 16127echo "configure:16128: checking for dlerror in -ldl" >&5
698dcdb6
VZ
16128ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
16129if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16130 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16131else
698dcdb6 16132 ac_save_LIBS="$LIBS"
f6bcfd97 16133LIBS="-ldl $LIBS"
698dcdb6 16134cat > conftest.$ac_ext <<EOF
8168de4c 16135#line 16136 "configure"
f6bcfd97
BP
16136#include "confdefs.h"
16137/* Override any gcc2 internal prototype to avoid an error. */
16138/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16139 builtin and then its argument prototype would still apply. */
16140char dlerror();
16141
16142int main() {
16143dlerror()
16144; return 0; }
16145EOF
8168de4c 16146if { (eval echo configure:16147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16147 rm -rf conftest*
16148 eval "ac_cv_lib_$ac_lib_var=yes"
16149else
16150 echo "configure: failed program was:" >&5
16151 cat conftest.$ac_ext >&5
16152 rm -rf conftest*
16153 eval "ac_cv_lib_$ac_lib_var=no"
16154fi
16155rm -f conftest*
16156LIBS="$ac_save_LIBS"
16157
16158fi
16159if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16160 echo "$ac_t""yes" 1>&6
16161 cat >> confdefs.h <<\EOF
f6bcfd97
BP
16162#define HAVE_DLERROR 1
16163EOF
16164
698dcdb6
VZ
16165else
16166 echo "$ac_t""no" 1>&6
f6bcfd97
BP
16167fi
16168
16169fi
16170done
16171
16172 fi
b4085ce6 16173 fi
f6bcfd97 16174
10f2d63a
VZ
16175 if test "$HAVE_DL_FUNCS" = 0; then
16176 if test "$HAVE_SHL_FUNCS" = 0; then
16177 if test "$USE_UNIX" = 1; then
698dcdb6 16178 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
16179 wxUSE_DYNLIB_CLASS=no
16180 else
698dcdb6 16181 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
16182 fi
16183 fi
16184 fi
16185fi
16186
b089607b
VZ
16187fi
16188
10f2d63a 16189if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 16190 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16191#define wxUSE_DYNLIB_CLASS 1
16192EOF
16193
b12915c1
VZ
16194else
16195 wxUSE_ODBC=no
16196 wxUSE_SERIAL=no
10f2d63a
VZ
16197fi
16198
698dcdb6 16199
1e6feb95
VZ
16200if test "$wxUSE_FONTMAP" = "yes" ; then
16201 cat >> confdefs.h <<\EOF
16202#define wxUSE_FONTMAP 1
16203EOF
16204
16205fi
16206
10f2d63a 16207if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 16208 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16209#define wxUSE_UNICODE 1
16210EOF
16211
16212fi
16213
16214if test "$wxUSE_WCSRTOMBS" = "yes" ; then
698dcdb6 16215 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16216#define wxUSE_WCSRTOMBS 1
16217EOF
16218
16219fi
16220
16221if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 16222 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16223#define wxUSE_EXPERIMENTAL_PRINTF 1
16224EOF
16225
16226fi
16227
698dcdb6 16228
b12915c1 16229if test "$wxUSE_SERIAL" = "yes" ; then
698dcdb6 16230 cat >> confdefs.h <<\EOF
b12915c1
VZ
16231#define wxUSE_SERIAL 1
16232EOF
16233
16234fi
16235
698dcdb6 16236
10f2d63a
VZ
16237IODBC_C_SRC=""
16238if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 16239 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16240#define wxUSE_ODBC 1
16241EOF
16242
16243 WXODBCFLAG="-D_IODBC_"
16244 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
16245fi
16246
698dcdb6 16247
10f2d63a 16248if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 16249 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16250#define wxUSE_POSTSCRIPT 1
16251EOF
16252
16253fi
16254
698dcdb6 16255cat >> confdefs.h <<\EOF
10f2d63a
VZ
16256#define wxUSE_AFM_FOR_POSTSCRIPT 1
16257EOF
16258
698dcdb6
VZ
16259
16260cat >> confdefs.h <<\EOF
10f2d63a
VZ
16261#define wxUSE_NORMALIZED_PS_FONTS 1
16262EOF
16263
698dcdb6
VZ
16264
16265
10f2d63a 16266if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 16267 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16268#define wxUSE_CONSTRAINTS 1
16269EOF
16270
16271 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
16272fi
16273
16274if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
698dcdb6 16275 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16276#define wxUSE_MDI_ARCHITECTURE 1
16277EOF
16278
16279 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
16280fi
16281
16282if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 16283 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16284#define wxUSE_DOC_VIEW_ARCHITECTURE 1
16285EOF
16286
16287 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
16288 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
16289 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
16290 fi
16291fi
16292
16293if test "$wxUSE_HELP" = "yes"; then
698dcdb6 16294 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16295#define wxUSE_HELP 1
16296EOF
16297
16298 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
16299fi
16300
16301if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
16302 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 16303 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 16304 else
698dcdb6 16305 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16306#define wxUSE_PRINTING_ARCHITECTURE 1
16307EOF
16308
16309 fi
16310 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
16311fi
16312
16313if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 16314 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16315#define wxUSE_PROLOGIO 1
16316EOF
16317
16318fi
16319
16320if test "$wxUSE_RESOURCES" = "yes" ; then
16321 if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 16322 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16323#define wxUSE_RESOURCES 1
16324EOF
16325
16326 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
16327 else
698dcdb6 16328 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
10f2d63a
VZ
16329 fi
16330fi
16331
16332if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 16333 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16334#define wxUSE_X_RESOURCES 1
16335EOF
16336
16337fi
16338
698dcdb6 16339
10f2d63a 16340if test "$wxUSE_IPC" = "yes"; then
eb4efbdc 16341 if test "$wxUSE_SOCKETS" != "yes"; then
698dcdb6 16342 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
eb4efbdc
VZ
16343 fi
16344
698dcdb6 16345 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16346#define wxUSE_IPC 1
16347EOF
16348
16349fi
16350
16351if test "$wxUSE_CLIPBOARD" = "yes"; then
698dcdb6 16352 cat >> confdefs.h <<\EOF
10f2d63a 16353#define wxUSE_CLIPBOARD 1
1e6feb95
VZ
16354EOF
16355
16356 cat >> confdefs.h <<\EOF
16357#define wxUSE_DATAOBJ 1
10f2d63a
VZ
16358EOF
16359
16360fi
16361
16362if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
16363 if test "$wxUSE_GTK" = 1; then
16364 if test "$WXGTK12" != 1; then
698dcdb6 16365 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
10f2d63a
VZ
16366 wxUSE_DRAG_AND_DROP=no
16367 fi
16368 fi
16369
16370 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 16371 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
10f2d63a
VZ
16372 wxUSE_DRAG_AND_DROP=no
16373 fi
16374
2c6025bc 16375 if test "$wxUSE_MAC" = 1; then
698dcdb6 16376 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
2c6025bc
GD
16377 wxUSE_DRAG_AND_DROP=no
16378 fi
16379
10f2d63a 16380 if test "$USE_WIN32" = 1; then
698dcdb6
VZ
16381
16382 for ac_hdr in ole2.h
10f2d63a 16383do
698dcdb6
VZ
16384ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16385echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8168de4c 16386echo "configure:16387: checking for $ac_hdr" >&5
698dcdb6
VZ
16387if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16388 echo $ac_n "(cached) $ac_c" 1>&6
16389else
16390 cat > conftest.$ac_ext <<EOF
8168de4c 16391#line 16392 "configure"
10f2d63a 16392#include "confdefs.h"
698dcdb6
VZ
16393#include <$ac_hdr>
16394EOF
16395ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8168de4c 16396{ (eval echo configure:16397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
16397ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16398if test -z "$ac_err"; then
16399 rm -rf conftest*
16400 eval "ac_cv_header_$ac_safe=yes"
1e487827 16401else
698dcdb6
VZ
16402 echo "$ac_err" >&5
16403 echo "configure: failed program was:" >&5
10f2d63a 16404 cat conftest.$ac_ext >&5
698dcdb6
VZ
16405 rm -rf conftest*
16406 eval "ac_cv_header_$ac_safe=no"
10f2d63a 16407fi
698dcdb6 16408rm -f conftest*
10f2d63a 16409fi
698dcdb6
VZ
16410if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16411 echo "$ac_t""yes" 1>&6
16412 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16413 cat >> confdefs.h <<EOF
16414#define $ac_tr_hdr 1
10f2d63a 16415EOF
698dcdb6
VZ
16416
16417else
16418 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16419fi
16420done
16421
698dcdb6 16422
57fe5ed0 16423 if test "$ac_cv_header_ole2_h" = "yes" ; then
c521c494 16424 if test "$GCC" = yes ; then
b64f0a5f
RL
16425 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
16426 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
c521c494 16427 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
b64f0a5f
RL
16428 LIBS="$LIBS -lole32 -luuid"
16429
16430 if test "$wxUSE_METAFILE" = "yes"; then
698dcdb6 16431 cat >> confdefs.h <<\EOF
b64f0a5f
RL
16432#define wxUSE_METAFILE 1
16433EOF
16434
698dcdb6 16435 cat >> confdefs.h <<\EOF
b64f0a5f
RL
16436#define wxUSE_ENH_METAFILE 1
16437EOF
16438
16439 fi
c521c494
RL
16440 fi
16441 else
698dcdb6 16442 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
10f2d63a
VZ
16443 wxUSE_DRAG_AND_DROP=no
16444 fi
16445 fi
16446
16447 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 16448 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16449#define wxUSE_DRAG_AND_DROP 1
16450EOF
16451
16452 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
16453 fi
16454
16455fi
16456
16457if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 16458 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16459#define wxUSE_SPLINES 1
16460EOF
16461
16462fi
16463
698dcdb6 16464
1e6feb95
VZ
16465USES_CONTROLS=0
16466if test "$wxUSE_CONTROLS" = "yes"; then
16467 USES_CONTROLS=1
16468fi
16469
10f2d63a 16470if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 16471 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16472#define wxUSE_ACCEL 1
16473EOF
16474
1e6feb95
VZ
16475 USES_CONTROLS=1
16476fi
16477
16478if test "$wxUSE_BUTTON" = "yes"; then
16479 cat >> confdefs.h <<\EOF
16480#define wxUSE_BUTTON 1
16481EOF
16482
16483 USES_CONTROLS=1
16484fi
16485
16486if test "$wxUSE_BMPBUTTON" = "yes"; then
16487 cat >> confdefs.h <<\EOF
16488#define wxUSE_BMPBUTTON 1
16489EOF
16490
16491 USES_CONTROLS=1
16492fi
16493
16494if test "$wxUSE_CALCTRL" = "yes"; then
16495 cat >> confdefs.h <<\EOF
16496#define wxUSE_CALENDARCTRL 1
16497EOF
16498
16499 USES_CONTROLS=1
16500 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
16501fi
16502
16503if test "$wxUSE_CARET" = "yes"; then
698dcdb6 16504 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16505#define wxUSE_CARET 1
16506EOF
16507
1e6feb95 16508 USES_CONTROLS=1
10f2d63a
VZ
16509 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
16510fi
16511
16512if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 16513 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16514#define wxUSE_COMBOBOX 1
16515EOF
16516
1e6feb95 16517 USES_CONTROLS=1
10f2d63a
VZ
16518fi
16519
16520if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 16521 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16522#define wxUSE_CHOICE 1
16523EOF
16524
1e6feb95 16525 USES_CONTROLS=1
10f2d63a
VZ
16526fi
16527
16528if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 16529 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16530#define wxUSE_CHECKBOX 1
16531EOF
16532
1e6feb95 16533 USES_CONTROLS=1
10f2d63a
VZ
16534fi
16535
16536if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 16537 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16538#define wxUSE_CHECKLISTBOX 1
16539EOF
16540
1e6feb95 16541 USES_CONTROLS=1
10f2d63a
VZ
16542 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
16543fi
16544
16545if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 16546 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16547#define wxUSE_GAUGE 1
16548EOF
16549
1e6feb95 16550 USES_CONTROLS=1
10f2d63a
VZ
16551fi
16552
d6a55c4b
VZ
16553if test "$wxUSE_NEW_GRID" = "yes"; then
16554 wxUSE_GRID="yes"
698dcdb6 16555 cat >> confdefs.h <<\EOF
d6a55c4b 16556#define wxUSE_NEW_GRID 1
10f2d63a
VZ
16557EOF
16558
1e6feb95 16559 USES_CONTROLS=1
d6a55c4b 16560 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
16561fi
16562
d6a55c4b 16563if test "$wxUSE_GRID" = "yes"; then
698dcdb6 16564 cat >> confdefs.h <<\EOF
d6a55c4b 16565#define wxUSE_GRID 1
10f2d63a
VZ
16566EOF
16567
1e6feb95 16568 USES_CONTROLS=1
d6a55c4b 16569 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
16570fi
16571
16572if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 16573 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16574#define wxUSE_IMAGLIST 1
16575EOF
16576
16577fi
16578
16579if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 16580 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16581#define wxUSE_LISTBOX 1
16582EOF
16583
1e6feb95 16584 USES_CONTROLS=1
10f2d63a
VZ
16585fi
16586
16587if test "$wxUSE_LISTCTRL" = "yes"; then
16588 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 16589 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16590#define wxUSE_LISTCTRL 1
16591EOF
16592
1e6feb95 16593 USES_CONTROLS=1
10f2d63a
VZ
16594 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
16595 else
698dcdb6 16596 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
16597 fi
16598fi
16599
16600if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 16601 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16602#define wxUSE_NOTEBOOK 1
16603EOF
16604
1e6feb95 16605 USES_CONTROLS=1
10f2d63a
VZ
16606 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
16607fi
16608
16609if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 16610 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16611#define wxUSE_RADIOBOX 1
16612EOF
16613
1e6feb95 16614 USES_CONTROLS=1
10f2d63a
VZ
16615fi
16616
16617if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 16618 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16619#define wxUSE_RADIOBTN 1
16620EOF
16621
1e6feb95 16622 USES_CONTROLS=1
10f2d63a
VZ
16623fi
16624
16625if test "$wxUSE_SASH" = "yes"; then
698dcdb6 16626 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16627#define wxUSE_SASH 1
16628EOF
16629
16630 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
16631fi
16632
16633if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 16634 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16635#define wxUSE_SCROLLBAR 1
16636EOF
16637
1e6feb95 16638 USES_CONTROLS=1
741a9306 16639 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
16640fi
16641
16642if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 16643 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16644#define wxUSE_SLIDER 1
16645EOF
16646
1e6feb95 16647 USES_CONTROLS=1
10f2d63a
VZ
16648fi
16649
16650if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 16651 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16652#define wxUSE_SPINBTN 1
16653EOF
16654
1e6feb95 16655 USES_CONTROLS=1
10f2d63a
VZ
16656fi
16657
56cfaa52 16658if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 16659 cat >> confdefs.h <<\EOF
56cfaa52
RR
16660#define wxUSE_SPINCTRL 1
16661EOF
16662
1e6feb95 16663 USES_CONTROLS=1
56cfaa52
RR
16664fi
16665
10f2d63a 16666if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 16667 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16668#define wxUSE_SPLITTER 1
16669EOF
16670
16671 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
16672fi
16673
16674if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 16675 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16676#define wxUSE_STATBMP 1
16677EOF
16678
1e6feb95 16679 USES_CONTROLS=1
10f2d63a
VZ
16680fi
16681
16682if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 16683 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16684#define wxUSE_STATBOX 1
16685EOF
16686
1e6feb95
VZ
16687 USES_CONTROLS=1
16688fi
16689
16690if test "$wxUSE_STATTEXT" = "yes"; then
16691 cat >> confdefs.h <<\EOF
16692#define wxUSE_STATTEXT 1
16693EOF
16694
16695 USES_CONTROLS=1
10f2d63a
VZ
16696fi
16697
16698if test "$wxUSE_STATLINE" = "yes"; then
16699 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 16700 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 16701 else
698dcdb6 16702 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16703#define wxUSE_STATLINE 1
16704EOF
16705
1e6feb95 16706 USES_CONTROLS=1
10f2d63a
VZ
16707 fi
16708fi
16709
16710if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 16711 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16712#define wxUSE_STATUSBAR 1
16713EOF
16714
1e6feb95 16715 USES_CONTROLS=1
698dcdb6 16716
2286341c 16717 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
16718fi
16719
16720if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 16721 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16722#define wxUSE_TAB_DIALOG 1
16723EOF
16724
16725 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
16726fi
16727
1e6feb95
VZ
16728if test "$wxUSE_TEXTCTRL" = "yes"; then
16729 cat >> confdefs.h <<\EOF
16730#define wxUSE_TEXTCTRL 1
16731EOF
16732
16733 USES_CONTROLS=1
16734 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
16735fi
16736
1db8dc4a 16737if test "$wxUSE_TOGGLEBTN" = "yes"; then
a45d7ab7
GD
16738 if test "$wxUSE_MAC" = 1; then
16739 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
16740 wxUSE_TOGGLEBTN=no
16741 fi
16742
16743 if test "$wxUSE_TOGGLEBTN" = "yes"; then
16744 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
16745#define wxUSE_TOGGLEBTN 1
16746EOF
16747
1e6feb95 16748 USES_CONTROLS=1
a45d7ab7 16749 fi
1db8dc4a
VZ
16750fi
16751
360d6699 16752if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 16753 cat >> confdefs.h <<\EOF
360d6699
VZ
16754#define wxUSE_TOOLBAR_SIMPLE 1
16755EOF
16756
16757 wxUSE_TOOLBAR="yes"
1e6feb95 16758 USES_CONTROLS=1
360d6699
VZ
16759fi
16760
10f2d63a 16761if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 16762 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16763#define wxUSE_TOOLBAR 1
16764EOF
16765
1e6feb95 16766 USES_CONTROLS=1
698dcdb6 16767
360d6699
VZ
16768 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
16769 wxUSE_TOOLBAR_NATIVE="yes"
16770 fi
16771
1e6feb95
VZ
16772 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
16773 cat >> confdefs.h <<\EOF
360d6699
VZ
16774#define wxUSE_TOOLBAR_NATIVE 1
16775EOF
16776
1e6feb95
VZ
16777 USES_CONTROLS=1
16778 fi
16779
16780 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
16781fi
16782
10f2d63a
VZ
16783if test "$wxUSE_TOOLTIPS" = "yes"; then
16784 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 16785 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
10f2d63a
VZ
16786 else
16787 if test "$wxUSE_WINE" = 1; then
698dcdb6 16788 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
10f2d63a 16789 else
698dcdb6 16790 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16791#define wxUSE_TOOLTIPS 1
16792EOF
16793
16794 fi
16795 fi
16796fi
16797
16798if test "$wxUSE_TREECTRL" = "yes"; then
16799 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 16800 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16801#define wxUSE_TREECTRL 1
16802EOF
16803
1e6feb95 16804 USES_CONTROLS=1
10f2d63a
VZ
16805 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
16806 else
698dcdb6 16807 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
16808 fi
16809fi
16810
1e6feb95
VZ
16811if test "$USES_CONTROLS" = 1; then
16812 cat >> confdefs.h <<\EOF
16813#define wxUSE_CONTROLS 1
10f2d63a
VZ
16814EOF
16815
10f2d63a
VZ
16816fi
16817
1e6feb95
VZ
16818
16819
16820if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 16821 cat >> confdefs.h <<\EOF
1e6feb95 16822#define wxUSE_MENUS 1
10f2d63a
VZ
16823EOF
16824
1e6feb95 16825 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
16826fi
16827
1e6feb95
VZ
16828if test "$wxUSE_METAFILE" = "yes"; then
16829 cat >> confdefs.h <<\EOF
16830#define wxUSE_METAFILE 1
10f2d63a
VZ
16831EOF
16832
10f2d63a
VZ
16833fi
16834
1e6feb95
VZ
16835if test "$wxUSE_MIMETYPE" = "yes"; then
16836 cat >> confdefs.h <<\EOF
16837#define wxUSE_MIMETYPE 1
10f2d63a
VZ
16838EOF
16839
10f2d63a
VZ
16840fi
16841
16842if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 16843 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16844#define wxUSE_MINIFRAME 1
16845EOF
16846
16847 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
16848fi
16849
16850if test "$wxUSE_HTML" = "yes"; then
698dcdb6 16851 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16852#define wxUSE_HTML 1
16853EOF
16854
16855 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
16856 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
16857fi
16858
16859if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 16860 cat >> confdefs.h <<\EOF
1e487827
VS
16861#define wxUSE_VALIDATORS 1
16862EOF
703e0a69 16863
698dcdb6
VZ
16864 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
16865fi
16866
16867if test "$wxUSE_IMAGE" = "yes" ; then
16868 cat >> confdefs.h <<\EOF
16869#define wxUSE_IMAGE 1
16870EOF
16871
16872fi
16873
16874if test "$wxUSE_GIF" = "yes" ; then
16875 cat >> confdefs.h <<\EOF
16876#define wxUSE_GIF 1
16877EOF
16878
16879fi
16880
16881if test "$wxUSE_PCX" = "yes" ; then
16882 cat >> confdefs.h <<\EOF
16883#define wxUSE_PCX 1
16884EOF
16885
16886fi
16887
16888if test "$wxUSE_PNM" = "yes" ; then
16889 cat >> confdefs.h <<\EOF
16890#define wxUSE_PNM 1
16891EOF
16892
16893fi
16894
16895if test "$wxUSE_XPM" = "yes" ; then
16896 cat >> confdefs.h <<\EOF
16897#define wxUSE_XPM 1
16898EOF
16899
16900fi
16901
16902
1e6feb95
VZ
16903if test "$wxUSE_CHOICEDLG" = "yes"; then
16904 cat >> confdefs.h <<\EOF
16905#define wxUSE_CHOICEDLG 1
16906EOF
16907
16908fi
16909
16910if test "$wxUSE_COLOURDLG" = "yes"; then
16911 cat >> confdefs.h <<\EOF
16912#define wxUSE_COLOURDLG 1
16913EOF
16914
16915fi
16916
16917if test "$wxUSE_FILEDLG" = "yes"; then
16918 cat >> confdefs.h <<\EOF
16919#define wxUSE_FILEDLG 1
16920EOF
16921
16922fi
16923
16924if test "$wxUSE_FONTDLG" = "yes"; then
16925 cat >> confdefs.h <<\EOF
16926#define wxUSE_FONTDLG 1
16927EOF
16928
16929fi
16930
16931if test "$wxUSE_DIRDLG" = "yes"; then
16932 if test "$wxUSE_CONSTRAINTS" != "yes"; then
16933 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
16934 else
16935 if test "$wxUSE_TREECTRL" != "yes"; then
16936 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
16937 else
16938 cat >> confdefs.h <<\EOF
16939#define wxUSE_DIRDLG 1
16940EOF
16941
16942 fi
16943 fi
16944fi
16945
16946if test "$wxUSE_MSGDLG" = "yes"; then
16947 cat >> confdefs.h <<\EOF
16948#define wxUSE_MSGDLG 1
16949EOF
16950
16951fi
16952
16953if test "$wxUSE_NUMBERDLG" = "yes"; then
16954 cat >> confdefs.h <<\EOF
16955#define wxUSE_NUMBERDLG 1
16956EOF
16957
16958fi
16959
16960if test "$wxUSE_PROGRESSDLG" = "yes"; then
16961 if test "$wxUSE_CONSTRAINTS" != "yes"; then
16962 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
16963 else
16964 cat >> confdefs.h <<\EOF
16965#define wxUSE_PROGRESSDLG 1
16966EOF
16967
16968 fi
16969fi
16970
16971if test "$wxUSE_STARTUP_TIPS" = "yes"; then
16972 if test "$wxUSE_CONSTRAINTS" != "yes"; then
16973 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
16974 else
16975 cat >> confdefs.h <<\EOF
16976#define wxUSE_STARTUP_TIPS 1
16977EOF
16978
16979 fi
16980fi
16981
16982if test "$wxUSE_TEXTDLG" = "yes"; then
16983 cat >> confdefs.h <<\EOF
16984#define wxUSE_TEXTDLG 1
16985EOF
16986
16987fi
16988
16989
698dcdb6
VZ
16990if test "$cross_compiling" = "yes"; then
16991 OSINFO="\"$host\""
16992else
16993 OSINFO=`uname -s -r -m`
16994 OSINFO="\"$OSINFO\""
16995fi
16996
16997cat >> confdefs.h <<EOF
16998#define WXWIN_OS_DESCRIPTION $OSINFO
16999EOF
17000
17001
17002
17003GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
17004OPENGL_LIBS="$OPENGL_LINK"
17005
17006EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
17007if test "$USE_MAC" = 1 ; then
17008 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
17009fi
17010if test "$wxUSE_GUI" = "yes"; then
17011 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
17012fi
17013
17014LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
17015
17016INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
17017
17018if test "$wxUSE_GTK" = 1; then
17019 WXCONFIG_INCLUDE=""
17020else
17021 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
17022fi
17023
17024if test "$GXX" = yes ; then
17025 CXXWARNINGS="-Wall"
17026 fi
17027EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
17028
17029CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
17030CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
17031
17032LDFLAGS="$LDFLAGS $PROFILE"
17033
17034if test "$wxUSE_GUI" = "yes"; then
17035
17036 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag \
1e6feb95
VZ
17037 drawing dynamic event font fractal image \
17038 minimal richedit widgets"
17039
17040 if test "$wxUSE_UNIVERSAL" = "yes" ; then
17041 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
17042 fi
698dcdb6
VZ
17043
17044 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
17045else
17046 SAMPLES_SUBDIRS=""
17047fi
17048
17049SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
32832908
VZ
17117
17118
17119
17120
17121
17122
17123
2224580a 17124
dad6c0ea 17125
f6bcfd97
BP
17126
17127
17128
2f51a9ec
GD
17129
17130
17131
17132
17133
17134
f6bcfd97 17135
dad6c0ea 17136
caa2c79b 17137
3711412e 17138
1e6feb95
VZ
17139
17140
0f3f1cbc 17141
10f2d63a
VZ
17142
17143
698dcdb6 17144echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
8168de4c 17145echo "configure:17146: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
17146set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
17147if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
17148 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17149else
698dcdb6 17150 cat > conftestmake <<\EOF
10f2d63a
VZ
17151all:
17152 @echo 'ac_maketemp="${MAKE}"'
17153EOF
17154# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 17155eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
17156if test -n "$ac_maketemp"; then
17157 eval ac_cv_prog_make_${ac_make}_set=yes
17158else
17159 eval ac_cv_prog_make_${ac_make}_set=no
17160fi
698dcdb6 17161rm -f conftestmake
10f2d63a
VZ
17162fi
17163if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 17164 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
17165 SET_MAKE=
17166else
698dcdb6 17167 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17168 SET_MAKE="MAKE=${MAKE-make}"
17169fi
17170
698dcdb6 17171
00cf1208
RR
17172if test -d include; then
17173 if test -d include/wx; then
1e6feb95
VZ
17174 if test -d include/wx/${SETUPH_DIR}; then
17175 if test -f include/wx/${SETUPH_DIR}/setup.h; then
17176 mv -f include/wx/${SETUPH_DIR}/setup.h setup.h
00cf1208
RR
17177 fi
17178 fi
17179 fi
17180fi
665bbe97 17181
698dcdb6 17182
10f2d63a 17183
2224580a 17184if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 17185 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
17186 wx_cv_path_ifs=$PATH_IFS
17187 wx_cv_program_ext=$PROGRAM_EXT
17188 wx_cv_target_library=$WX_TARGET_LIBRARY
3711412e 17189 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
93a20a27
VS
17190 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
17191 wx_cv_target_library wx_cv_target_libtype
698dcdb6 17192 subdirs="demos samples utils contrib"
2224580a
VZ
17193
17194fi
10f2d63a 17195
698dcdb6
VZ
17196trap '' 1 2 15
17197cat > confcache <<\EOF
10f2d63a
VZ
17198# This file is a shell script that caches the results of configure
17199# tests run on this system so they can be shared between configure
698dcdb6
VZ
17200# scripts and configure runs. It is not useful on other systems.
17201# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 17202#
698dcdb6
VZ
17203# By default, configure uses ./config.cache as the cache file,
17204# creating it if it does not exist already. You can give configure
17205# the --cache-file=FILE option to use a different cache file; that is
17206# what configure does when it calls configure scripts in
17207# subdirectories, so they share the cache.
17208# Giving --cache-file=/dev/null disables caching, for debugging configure.
17209# config.status only pays attention to the cache file if you give it the
17210# --recheck option to rerun configure.
10f2d63a 17211#
698dcdb6 17212EOF
10f2d63a
VZ
17213# The following way of writing the cache mishandles newlines in values,
17214# but we know of no workaround that is simple, portable, and efficient.
17215# So, don't put newlines in cache variables' values.
17216# Ultrix sh set writes to stderr and can't be redirected directly,
17217# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
17218(set) 2>&1 |
17219 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17220 *ac_space=\ *)
17221 # `set' does not quote correctly, so add quotes (double-quote substitution
17222 # turns \\\\ into \\, and sed turns \\ into \).
17223 sed -n \
17224 -e "s/'/'\\\\''/g" \
17225 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17226 ;;
17227 *)
17228 # `set' quotes correctly as required by POSIX, so do not add quotes.
17229 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17230 ;;
17231 esac >> confcache
17232if cmp -s $cache_file confcache; then
17233 :
17234else
10f2d63a 17235 if test -w $cache_file; then
698dcdb6
VZ
17236 echo "updating cache $cache_file"
17237 cat confcache > $cache_file
10f2d63a
VZ
17238 else
17239 echo "not updating unwritable cache $cache_file"
17240 fi
17241fi
17242rm -f confcache
17243
698dcdb6
VZ
17244trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17245
10f2d63a
VZ
17246test "x$prefix" = xNONE && prefix=$ac_default_prefix
17247# Let make expand exec_prefix.
17248test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17249
698dcdb6
VZ
17250# Any assignment to VPATH causes Sun make to only execute
17251# the first set of double-colon rules, so remove it if not needed.
17252# If there is a colon in the path, we need to keep it.
10f2d63a 17253if test "x$srcdir" = x.; then
698dcdb6 17254 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
17255fi
17256
698dcdb6
VZ
17257trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17258
10f2d63a
VZ
17259DEFS=-DHAVE_CONFIG_H
17260
698dcdb6 17261# Without the "./", some shells look in PATH for config.status.
10f2d63a 17262: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
17263
17264echo creating $CONFIG_STATUS
17265rm -f $CONFIG_STATUS
17266cat > $CONFIG_STATUS <<EOF
17267#! /bin/sh
10f2d63a
VZ
17268# Generated automatically by configure.
17269# Run this file to recreate the current configuration.
698dcdb6
VZ
17270# This directory was configured as follows,
17271# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17272#
17273# $0 $ac_configure_args
17274#
10f2d63a 17275# Compiler output produced by configure, useful for debugging
698dcdb6 17276# configure, is in ./config.log if it exists.
1e487827 17277
698dcdb6
VZ
17278ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17279for ac_option
10f2d63a 17280do
698dcdb6 17281 case "\$ac_option" in
10f2d63a 17282 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
17283 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17284 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17285 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17286 echo "$CONFIG_STATUS generated by autoconf version 2.13"
17287 exit 0 ;;
17288 -help | --help | --hel | --he | --h)
17289 echo "\$ac_cs_usage"; exit 0 ;;
17290 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
17291 esac
17292done
17293
698dcdb6
VZ
17294ac_given_srcdir=$srcdir
17295ac_given_INSTALL="$INSTALL"
703e0a69 17296
698dcdb6
VZ
17297trap 'rm -fr `echo "
17298 wx-config
17299 src/make.env
17300 src/makeprog.env
17301 src/makelib.env
17302 Makefile
17303 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 17304EOF
698dcdb6 17305cat >> $CONFIG_STATUS <<EOF
1e487827 17306
698dcdb6
VZ
17307# Protect against being on the right side of a sed subst in config.status.
17308sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17309 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17310$ac_vpsub
17311$extrasub
17312s%@SHELL@%$SHELL%g
17313s%@CFLAGS@%$CFLAGS%g
17314s%@CPPFLAGS@%$CPPFLAGS%g
17315s%@CXXFLAGS@%$CXXFLAGS%g
17316s%@FFLAGS@%$FFLAGS%g
17317s%@DEFS@%$DEFS%g
17318s%@LDFLAGS@%$LDFLAGS%g
17319s%@LIBS@%$LIBS%g
17320s%@exec_prefix@%$exec_prefix%g
17321s%@prefix@%$prefix%g
17322s%@program_transform_name@%$program_transform_name%g
17323s%@bindir@%$bindir%g
17324s%@sbindir@%$sbindir%g
17325s%@libexecdir@%$libexecdir%g
17326s%@datadir@%$datadir%g
17327s%@sysconfdir@%$sysconfdir%g
17328s%@sharedstatedir@%$sharedstatedir%g
17329s%@localstatedir@%$localstatedir%g
17330s%@libdir@%$libdir%g
17331s%@includedir@%$includedir%g
17332s%@oldincludedir@%$oldincludedir%g
17333s%@infodir@%$infodir%g
17334s%@mandir@%$mandir%g
17335s%@host@%$host%g
17336s%@host_alias@%$host_alias%g
17337s%@host_cpu@%$host_cpu%g
17338s%@host_vendor@%$host_vendor%g
17339s%@host_os@%$host_os%g
17340s%@target@%$target%g
17341s%@target_alias@%$target_alias%g
17342s%@target_cpu@%$target_cpu%g
17343s%@target_vendor@%$target_vendor%g
17344s%@target_os@%$target_os%g
17345s%@build@%$build%g
17346s%@build_alias@%$build_alias%g
17347s%@build_cpu@%$build_cpu%g
17348s%@build_vendor@%$build_vendor%g
17349s%@build_os@%$build_os%g
17350s%@CC@%$CC%g
17351s%@CPP@%$CPP%g
17352s%@CXX@%$CXX%g
17353s%@CXXCPP@%$CXXCPP%g
17354s%@RANLIB@%$RANLIB%g
17355s%@AR@%$AR%g
17356s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17357s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17358s%@INSTALL_DATA@%$INSTALL_DATA%g
17359s%@STRIP@%$STRIP%g
17360s%@YACC@%$YACC%g
17361s%@LEX@%$LEX%g
17362s%@LEXLIB@%$LEXLIB%g
17363s%@LN_S@%$LN_S%g
17364s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
698dcdb6
VZ
17365s%@GTK_CFLAGS@%$GTK_CFLAGS%g
17366s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 17367s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
17368s%@X_CFLAGS@%$X_CFLAGS%g
17369s%@X_PRE_LIBS@%$X_PRE_LIBS%g
17370s%@X_LIBS@%$X_LIBS%g
17371s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
17372s%@REZ@%$REZ%g
17373s%@DEREZ@%$DEREZ%g
17374s%@LEX_STEM@%$LEX_STEM%g
17375s%@PATH_IFS@%$PATH_IFS%g
17376s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
17377s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
17378s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
17379s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
17380s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
17381s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
17382s%@WX_LIBRARY@%$WX_LIBRARY%g
17383s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
17384s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
17385s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
17386s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
17387s%@PROGRAM_EXT@%$PROGRAM_EXT%g
17388s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
17389s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
17390s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
17391s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
17392s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
17393s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
17394s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
17395s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
17396s%@WX_ALL@%$WX_ALL%g
17397s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
17398s%@SHARED_LD@%$SHARED_LD%g
17399s%@PIC_FLAG@%$PIC_FLAG%g
17400s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
17401s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
17402s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
17403s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
17404s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
17405s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
17406s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
17407s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
17408s%@USE_GUI@%$USE_GUI%g
17409s%@AFMINSTALL@%$AFMINSTALL%g
1e6feb95 17410s%@SETUPH_DIR@%$SETUPH_DIR%g
698dcdb6
VZ
17411s%@TOOLKIT@%$TOOLKIT%g
17412s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
17413s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
17414s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
17415s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
1e6feb95 17416s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
698dcdb6
VZ
17417s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
17418s%@ALL_OBJECTS@%$ALL_OBJECTS%g
17419s%@ALL_DEPFILES@%$ALL_DEPFILES%g
17420s%@GUIDIST@%$GUIDIST%g
17421s%@PORT_FILES@%$PORT_FILES%g
17422s%@DISTDIR@%$DISTDIR%g
17423s%@RPM_SPEC@%$RPM_SPEC%g
17424s%@RPM_FILES@%$RPM_FILES%g
17425s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
17426s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
17427s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
17428s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
17429s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
17430s%@USER_SUBDIRS@%$USER_SUBDIRS%g
17431s%@EXTRA_LIBS@%$EXTRA_LIBS%g
17432s%@OPENGL_LIBS@%$OPENGL_LIBS%g
17433s%@EXTRADEFS@%$EXTRADEFS%g
17434s%@LD_LIBS@%$LD_LIBS%g
17435s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
17436s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
17437s%@RESPROGRAM@%$RESPROGRAM%g
17438s%@RESCOMP@%$RESCOMP%g
17439s%@RESFLAGS@%$RESFLAGS%g
17440s%@REZFLAGS@%$REZFLAGS%g
17441s%@DEREZFLAGS@%$DEREZFLAGS%g
17442s%@LIBWXMACRES@%$LIBWXMACRES%g
17443s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
17444s%@DLLTOOL@%$DLLTOOL%g
17445s%@AS@%$AS%g
17446s%@NM@%$NM%g
17447s%@LD@%$LD%g
17448s%@MAKEINFO@%$MAKEINFO%g
17449s%@SET_MAKE@%$SET_MAKE%g
17450s%@subdirs@%$subdirs%g
1e487827 17451
1e487827 17452CEOF
1e487827
VS
17453EOF
17454
698dcdb6
VZ
17455cat >> $CONFIG_STATUS <<\EOF
17456
17457# Split the substitutions into bite-sized pieces for seds with
17458# small command number limits, like on Digital OSF/1 and HP-UX.
17459ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17460ac_file=1 # Number of current file.
17461ac_beg=1 # First line for current file.
17462ac_end=$ac_max_sed_cmds # Line after last line for current file.
17463ac_more_lines=:
17464ac_sed_cmds=""
17465while $ac_more_lines; do
17466 if test $ac_beg -gt 1; then
17467 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17468 else
17469 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17470 fi
17471 if test ! -s conftest.s$ac_file; then
17472 ac_more_lines=false
17473 rm -f conftest.s$ac_file
17474 else
17475 if test -z "$ac_sed_cmds"; then
17476 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 17477 else
698dcdb6 17478 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 17479 fi
698dcdb6
VZ
17480 ac_file=`expr $ac_file + 1`
17481 ac_beg=$ac_end
17482 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 17483 fi
698dcdb6
VZ
17484done
17485if test -z "$ac_sed_cmds"; then
17486 ac_sed_cmds=cat
17487fi
17488EOF
10f2d63a 17489
698dcdb6
VZ
17490cat >> $CONFIG_STATUS <<EOF
17491
17492CONFIG_FILES=\${CONFIG_FILES-"wx-config
17493 src/make.env
17494 src/makeprog.env
17495 src/makelib.env
17496 Makefile
17497 "}
10f2d63a 17498EOF
698dcdb6
VZ
17499cat >> $CONFIG_STATUS <<\EOF
17500for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 17501 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
17502 case "$ac_file" in
17503 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17504 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17505 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
17506 esac
17507
698dcdb6 17508 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 17509
698dcdb6
VZ
17510 # Remove last slash and all that follows it. Not all systems have dirname.
17511 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17512 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17513 # The file is in a subdirectory.
17514 test ! -d "$ac_dir" && mkdir "$ac_dir"
17515 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 17516 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 17517 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
17518 else
17519 ac_dir_suffix= ac_dots=
17520 fi
17521
698dcdb6
VZ
17522 case "$ac_given_srcdir" in
17523 .) srcdir=.
17524 if test -z "$ac_dots"; then top_srcdir=.
17525 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17526 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 17527 *) # Relative path.
698dcdb6
VZ
17528 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17529 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
17530 esac
17531
698dcdb6
VZ
17532 case "$ac_given_INSTALL" in
17533 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17534 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
17535 esac
17536
698dcdb6
VZ
17537 echo creating "$ac_file"
17538 rm -f "$ac_file"
17539 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17540 case "$ac_file" in
17541 *Makefile*) ac_comsub="1i\\
17542# $configure_input" ;;
17543 *) ac_comsub= ;;
17544 esac
10f2d63a 17545
698dcdb6
VZ
17546 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17547 sed -e "$ac_comsub
17548s%@configure_input@%$configure_input%g
17549s%@srcdir@%$srcdir%g
17550s%@top_srcdir@%$top_srcdir%g
17551s%@INSTALL@%$INSTALL%g
17552" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17553fi; done
17554rm -f conftest.s*
10f2d63a
VZ
17555
17556# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17557# NAME is the cpp macro being defined and VALUE is the value it is being given.
17558#
17559# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
17560ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17561ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
17562ac_dC='\3'
17563ac_dD='%g'
17564# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17565ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17566ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 17567ac_uC=' '
698dcdb6
VZ
17568ac_uD='\4%g'
17569# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17570ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17571ac_eB='$%\1#\2define\3'
17572ac_eC=' '
17573ac_eD='%g'
10f2d63a 17574
698dcdb6
VZ
17575if test "${CONFIG_HEADERS+set}" != set; then
17576EOF
17577cat >> $CONFIG_STATUS <<EOF
17578 CONFIG_HEADERS="setup.h:setup.h.in"
17579EOF
17580cat >> $CONFIG_STATUS <<\EOF
17581fi
17582for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 17583 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
17584 case "$ac_file" in
17585 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17586 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17587 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
17588 esac
17589
698dcdb6
VZ
17590 echo creating $ac_file
17591
17592 rm -f conftest.frag conftest.in conftest.out
17593 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17594 cat $ac_file_inputs > conftest.in
17595
17596EOF
17597
17598# Transform confdefs.h into a sed script conftest.vals that substitutes
17599# the proper values into config.h.in to produce config.h. And first:
17600# Protect against being on the right side of a sed subst in config.status.
17601# Protect against being in an unquoted here document in config.status.
17602rm -f conftest.vals
17603cat > conftest.hdr <<\EOF
17604s/[\\&%]/\\&/g
17605s%[\\$`]%\\&%g
17606s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17607s%ac_d%ac_u%gp
17608s%ac_u%ac_e%gp
17609EOF
17610sed -n -f conftest.hdr confdefs.h > conftest.vals
17611rm -f conftest.hdr
10f2d63a
VZ
17612
17613# This sed command replaces #undef with comments. This is necessary, for
17614# example, in the case of _POSIX_SOURCE, which is predefined and required
17615# on some systems where configure will not decide to define it.
698dcdb6
VZ
17616cat >> conftest.vals <<\EOF
17617s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
17618EOF
17619
698dcdb6
VZ
17620# Break up conftest.vals because some shells have a limit on
17621# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
17622
17623rm -f conftest.tail
698dcdb6 17624while :
10f2d63a 17625do
698dcdb6
VZ
17626 ac_lines=`grep -c . conftest.vals`
17627 # grep -c gives empty output for an empty file on some AIX systems.
17628 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17629 # Write a limited-size here document to conftest.frag.
17630 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17631 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 17632 echo 'CEOF
698dcdb6
VZ
17633 sed -f conftest.frag conftest.in > conftest.out
17634 rm -f conftest.in
17635 mv conftest.out conftest.in
17636' >> $CONFIG_STATUS
17637 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17638 rm -f conftest.vals
17639 mv conftest.tail conftest.vals
10f2d63a 17640done
698dcdb6
VZ
17641rm -f conftest.vals
17642
17643cat >> $CONFIG_STATUS <<\EOF
17644 rm -f conftest.frag conftest.h
17645 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17646 cat conftest.in >> conftest.h
17647 rm -f conftest.in
17648 if cmp -s $ac_file conftest.h 2>/dev/null; then
17649 echo "$ac_file is unchanged"
17650 rm -f conftest.h
10f2d63a 17651 else
698dcdb6
VZ
17652 # Remove last slash and all that follows it. Not all systems have dirname.
17653 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 17654 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
17655 # The file is in a subdirectory.
17656 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 17657 fi
698dcdb6
VZ
17658 rm -f $ac_file
17659 mv conftest.h $ac_file
10f2d63a 17660 fi
698dcdb6
VZ
17661fi; done
17662
10f2d63a 17663EOF
698dcdb6 17664cat >> $CONFIG_STATUS <<EOF
10f2d63a 17665
1e6feb95 17666 SETUPH_DIR="${SETUPH_DIR}"
698dcdb6
VZ
17667 TOOLKIT_NAME="${TOOLKIT_NAME}"
17668 LN_S="${LN_S}"
17669
17670
17671EOF
17672cat >> $CONFIG_STATUS <<\EOF
10f2d63a 17673
6ef41520 17674 if test ! -f wx${TOOLKIT_NAME}-config; then
991a5759
VZ
17675 chmod +x wx-config
17676 mv wx-config wx${TOOLKIT_NAME}-config
17677 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
17678 fi
665bbe97 17679
698dcdb6 17680
00cf1208
RR
17681 if test ! -d lib; then
17682 mkdir lib
17683 fi
17684 if test ! -d lib/wx; then
17685 mkdir lib/wx
17686 fi
17687 if test ! -d lib/wx/include; then
17688 mkdir lib/wx/include
17689 fi
17690 if test ! -d lib/wx/include/wx; then
17691 mkdir lib/wx/include/wx
17692 fi
f6bcfd97
BP
17693 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
17694 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
00cf1208
RR
17695 fi
17696 if test -f setup.h; then
066b00aa 17697 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
00cf1208 17698 fi
07eb77a6 17699
698dcdb6 17700
10f2d63a
VZ
17701 if test ! -d include; then
17702 mkdir include
17703 fi
17704 if test ! -d include/wx; then
17705 mkdir include/wx
17706 fi
1e6feb95
VZ
17707 if test ! -d include/wx/${SETUPH_DIR}; then
17708 mkdir include/wx/${SETUPH_DIR}
10f2d63a 17709 fi
afc31813 17710 if test -f setup.h; then
1e6feb95 17711 cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h
afc31813 17712 fi
665bbe97 17713
698dcdb6
VZ
17714
17715exit 0
10f2d63a
VZ
17716EOF
17717chmod +x $CONFIG_STATUS
698dcdb6
VZ
17718rm -fr confdefs* $ac_clean_files
17719test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 17720
2224580a
VZ
17721if test "$no_recursion" != yes; then
17722
17723 # Remove --cache-file and --srcdir arguments so they do not pile up.
17724 ac_sub_configure_args=
17725 ac_prev=
17726 for ac_arg in $ac_configure_args; do
17727 if test -n "$ac_prev"; then
17728 ac_prev=
17729 continue
17730 fi
698dcdb6 17731 case "$ac_arg" in
2224580a
VZ
17732 -cache-file | --cache-file | --cache-fil | --cache-fi \
17733 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17734 ac_prev=cache_file ;;
17735 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 17736 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
17737 ;;
17738 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17739 ac_prev=srcdir ;;
17740 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17741 ;;
17742 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
17743 esac
17744 done
17745
698dcdb6 17746 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
17747
17748 # Do not complain, so a configure script can configure whichever
17749 # parts of a large source tree are present.
698dcdb6
VZ
17750 if test ! -d $srcdir/$ac_config_dir; then
17751 continue
17752 fi
17753
17754 echo configuring in $ac_config_dir
2224580a 17755
698dcdb6 17756 case "$srcdir" in
2224580a
VZ
17757 .) ;;
17758 *)
698dcdb6
VZ
17759 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
17760 else
17761 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
17762 fi
17763 ;;
2224580a
VZ
17764 esac
17765
17766 ac_popdir=`pwd`
698dcdb6 17767 cd $ac_config_dir
2224580a 17768
698dcdb6
VZ
17769 # A "../" for each directory in /$ac_config_dir.
17770 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 17771
698dcdb6 17772 case "$srcdir" in
2224580a
VZ
17773 .) # No --srcdir option. We are building in place.
17774 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
17775 /*) # Absolute path.
17776 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 17777 *) # Relative path.
698dcdb6 17778 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
17779 esac
17780
17781 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
17782 if test -f $ac_sub_srcdir/configure; then
17783 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
17784 elif test -f $ac_sub_srcdir/configure.in; then
17785 ac_sub_configure=$ac_configure
17786 else
698dcdb6 17787 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
17788 ac_sub_configure=
17789 fi
17790
17791 # The recursion is here.
17792 if test -n "$ac_sub_configure"; then
698dcdb6 17793
2224580a 17794 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
17795 case "$cache_file" in
17796 /*) ac_sub_cache_file=$cache_file ;;
2224580a 17797 *) # Relative path.
698dcdb6 17798 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 17799 esac
698dcdb6
VZ
17800 case "$ac_given_INSTALL" in
17801 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17802 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17803 esac
2224580a 17804
698dcdb6 17805 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 17806 # The eval makes quoting arguments work.
698dcdb6
VZ
17807 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
17808 then :
17809 else
17810 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
17811 fi
2224580a
VZ
17812 fi
17813
17814 cd $ac_popdir
17815 done
17816fi
17817
698dcdb6 17818