]> git.saurik.com Git - wxWidgets.git/blame - configure
simplified RTTI chain: wxFrame base class is now directly wxWindow, not wxFrameMSW
[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"
54276ccf
VZ
124ac_help="$ac_help
125 --enable-compat20 enable wxWin 2.0 compatibility"
126ac_help="$ac_help
127 --enable-compat22 enable wxWin 2.2 compatibility"
698dcdb6 128ac_help="$ac_help
8168de4c 129 --enable-intl use internationalization system"
698dcdb6 130ac_help="$ac_help
8168de4c 131 --enable-config use wxConfig (and derived) classes"
698dcdb6 132ac_help="$ac_help
8168de4c 133 --enable-sockets use socket/network classes"
698dcdb6 134ac_help="$ac_help
8168de4c 135 --enable-ipc use interprocess communication (wxSocket etc.)"
698dcdb6 136ac_help="$ac_help
8168de4c 137 --enable-cmdline use wxCmdLineParser class"
1e6feb95 138ac_help="$ac_help
8168de4c 139 --enable-datetime use wxDateTime class"
1e6feb95 140ac_help="$ac_help
8168de4c 141 --enable-timedate use obsolete wxDate/wxTime classes"
1e6feb95 142ac_help="$ac_help
8168de4c 143 --enable-stopwatch use wxStopWatch class"
1e6feb95 144ac_help="$ac_help
8168de4c 145 --enable-dialupman use dialup network classes"
698dcdb6 146ac_help="$ac_help
8168de4c 147 --enable-apple_ieee use the Apple IEEE codec"
698dcdb6 148ac_help="$ac_help
8168de4c 149 --enable-timer use wxTimer class"
698dcdb6 150ac_help="$ac_help
8168de4c 151 --enable-wave use wxWave class"
698dcdb6 152ac_help="$ac_help
8168de4c 153 --enable-fraction use wxFraction class"
698dcdb6 154ac_help="$ac_help
8168de4c 155 --enable-dynlib use wxLibrary class for DLL loading"
698dcdb6 156ac_help="$ac_help
8168de4c 157 --enable-longlong use wxLongLong class"
698dcdb6 158ac_help="$ac_help
8168de4c 159 --enable-geometry use geometry class"
698dcdb6 160ac_help="$ac_help
8168de4c 161 --enable-log use logging system"
698dcdb6 162ac_help="$ac_help
8168de4c 163 --enable-streams use wxStream etc classes"
698dcdb6 164ac_help="$ac_help
8168de4c 165 --enable-file use wxFile classes"
698dcdb6 166ac_help="$ac_help
8168de4c 167 --enable-ffile use wxFFile classes"
1e6feb95 168ac_help="$ac_help
8168de4c 169 --enable-textfile use wxTextFile classes"
698dcdb6 170ac_help="$ac_help
8168de4c 171 --enable-fontmap use font encodings conversion classes"
1e6feb95 172ac_help="$ac_help
8168de4c 173 --enable-unicode compile wxString with Unicode support"
698dcdb6 174ac_help="$ac_help
8168de4c 175 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
698dcdb6 176ac_help="$ac_help
8168de4c 177 --enable-wxprintfv use wxWindows implementation of vprintf()"
698dcdb6 178ac_help="$ac_help
8168de4c 179 --enable-std_iostreams use standard C++ stream classes"
698dcdb6 180ac_help="$ac_help
8168de4c 181 --enable-filesystem use virtual file systems classes"
698dcdb6 182ac_help="$ac_help
8168de4c 183 --enable-fs_inet use virtual HTTP/FTP filesystems"
698dcdb6 184ac_help="$ac_help
8168de4c 185 --enable-fs_zip use virtual ZIP filesystems"
698dcdb6 186ac_help="$ac_help
8168de4c 187 --enable-zipstream use wxZipInputStream"
698dcdb6 188ac_help="$ac_help
8168de4c 189 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
698dcdb6 190ac_help="$ac_help
8168de4c 191 --enable-snglinst use wxSingleInstanceChecker class"
698dcdb6 192ac_help="$ac_help
8168de4c 193 --enable-mimetypes use wxMimeTypesManager"
1e6feb95 194ac_help="$ac_help
8168de4c 195 --enable-threads use threads"
698dcdb6 196ac_help="$ac_help
8168de4c 197 --enable-serial use class serialization"
698dcdb6 198ac_help="$ac_help
8168de4c 199 --enable-docview use document view architecture"
698dcdb6 200ac_help="$ac_help
3379ed37
VZ
201 --enable-help use help subsystem"
202ac_help="$ac_help
203 --enable-html use wxHTML sub-library"
204ac_help="$ac_help
205 --enable-htmlhelp use wxHTML-based help"
698dcdb6 206ac_help="$ac_help
8168de4c 207 --enable-constraints use layout-constraints system"
698dcdb6 208ac_help="$ac_help
8168de4c 209 --enable-printarch use printing architecture"
698dcdb6 210ac_help="$ac_help
8168de4c 211 --enable-mdi use multiple document interface architecture"
698dcdb6 212ac_help="$ac_help
8168de4c 213 --enable-loggui use standard GUI logger"
1e6feb95 214ac_help="$ac_help
8168de4c 215 --enable-logwin use wxLogWindow"
1e6feb95 216ac_help="$ac_help
8168de4c 217 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 218ac_help="$ac_help
8168de4c 219 --enable-prologio use Prolog IO library"
698dcdb6 220ac_help="$ac_help
8168de4c 221 --enable-resources use wxWindows resources"
698dcdb6 222ac_help="$ac_help
8168de4c 223 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 224ac_help="$ac_help
8168de4c 225 --enable-clipboard use wxClipboard classes"
698dcdb6 226ac_help="$ac_help
8168de4c 227 --enable-dnd use Drag'n'Drop classes"
698dcdb6 228ac_help="$ac_help
8168de4c 229 --enable-metafile use win32 metafiles"
698dcdb6 230ac_help="$ac_help
8168de4c 231 --enable-wxtree make wxTree library"
698dcdb6 232ac_help="$ac_help
8168de4c 233 --enable-controls use all usual controls"
698dcdb6 234ac_help="$ac_help
8168de4c 235 --enable-accel use accelerators"
698dcdb6 236ac_help="$ac_help
8168de4c 237 --enable-button use wxButton class"
698dcdb6 238ac_help="$ac_help
8168de4c 239 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 240ac_help="$ac_help
8168de4c 241 --enable-calendar use wxCalendarCtrl class"
1e6feb95 242ac_help="$ac_help
8168de4c 243 --enable-caret use wxCaret class"
1e6feb95 244ac_help="$ac_help
8168de4c 245 --enable-checkbox use wxCheckBox class"
698dcdb6 246ac_help="$ac_help
8168de4c 247 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 248ac_help="$ac_help
8168de4c 249 --enable-choice use wxChoice class"
698dcdb6 250ac_help="$ac_help
8168de4c 251 --enable-combobox use wxComboBox classes"
698dcdb6 252ac_help="$ac_help
8168de4c 253 --enable-gauge use wxGauge class"
698dcdb6 254ac_help="$ac_help
8168de4c 255 --enable-grid use wxGrid class"
698dcdb6 256ac_help="$ac_help
8168de4c 257 --enable-newgrid use new wxGrid class"
698dcdb6 258ac_help="$ac_help
8168de4c 259 --enable-imaglist use wxImageList class"
698dcdb6 260ac_help="$ac_help
8168de4c 261 --enable-listbox use wxListBox class"
698dcdb6 262ac_help="$ac_help
8168de4c 263 --enable-listctrl use wxListCtrl class"
698dcdb6 264ac_help="$ac_help
8168de4c 265 --enable-notebook use wxNotebook class"
698dcdb6 266ac_help="$ac_help
8168de4c 267 --enable-radiobox use wxRadioBox class"
698dcdb6 268ac_help="$ac_help
8168de4c 269 --enable-radiobtn use wxRadioButton class"
698dcdb6 270ac_help="$ac_help
8168de4c 271 --enable-sash use wxSashWindow class"
698dcdb6 272ac_help="$ac_help
8168de4c 273 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 274ac_help="$ac_help
8168de4c 275 --enable-slider use wxSlider class"
698dcdb6 276ac_help="$ac_help
8168de4c 277 --enable-spinbtn use wxSpinButton class"
698dcdb6 278ac_help="$ac_help
8168de4c 279 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 280ac_help="$ac_help
8168de4c 281 --enable-splitter use wxSplitterWindow class"
698dcdb6 282ac_help="$ac_help
8168de4c 283 --enable-statbmp use wxStaticBitmap class"
698dcdb6 284ac_help="$ac_help
8168de4c 285 --enable-statbox use wxStaticBox class"
698dcdb6 286ac_help="$ac_help
8168de4c 287 --enable-statline use wxStaticLine class"
698dcdb6 288ac_help="$ac_help
8168de4c 289 --enable-stattext use wxStaticText class"
1e6feb95 290ac_help="$ac_help
8168de4c 291 --enable-statusbar use wxStatusBar class"
698dcdb6 292ac_help="$ac_help
8168de4c 293 --enable-tabdialog use wxTabControl class"
698dcdb6 294ac_help="$ac_help
8168de4c 295 --enable-textctrl use wxTextCtrl class"
1e6feb95 296ac_help="$ac_help
8168de4c 297 --enable-togglebtn use wxToggleButton class"
698dcdb6 298ac_help="$ac_help
8168de4c 299 --enable-toolbar use wxToolBar class"
698dcdb6 300ac_help="$ac_help
8168de4c 301 --enable-tbarnative use native wxToolBar class"
698dcdb6 302ac_help="$ac_help
8168de4c 303 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 304ac_help="$ac_help
8168de4c 305 --enable-treectrl use wxTreeCtrl class"
9f41d601
RR
306ac_help="$ac_help
307 --enable-popupwin use wxPopUpWindow class"
698dcdb6 308ac_help="$ac_help
8168de4c 309 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
698dcdb6 310ac_help="$ac_help
8168de4c 311 --enable-choicedlg use wxChoiceDialog"
1e6feb95 312ac_help="$ac_help
8168de4c 313 --enable-coldlg use wxColourDialog"
1e6feb95 314ac_help="$ac_help
8168de4c 315 --enable-filedlg use wxFileDialog"
1e6feb95 316ac_help="$ac_help
8168de4c 317 --enable-fontdlg use wxFontDialog"
1e6feb95 318ac_help="$ac_help
8168de4c 319 --enable-dirdlg use wxDirDialog"
698dcdb6 320ac_help="$ac_help
8168de4c 321 --enable-msgdlg use wxMessageDialog"
1e6feb95 322ac_help="$ac_help
8168de4c 323 --enable-numberdlg use wxNumberEntryDialog"
1e6feb95 324ac_help="$ac_help
8168de4c 325 --enable-textdlg use wxTextDialog"
698dcdb6 326ac_help="$ac_help
8168de4c 327 --enable-tipdlg use startup tips"
698dcdb6 328ac_help="$ac_help
8168de4c 329 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
330ac_help="$ac_help
331 --enable-wizarddlg use wxWizard"
698dcdb6 332ac_help="$ac_help
8168de4c 333 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 334ac_help="$ac_help
8168de4c 335 --enable-miniframe use wxMiniFrame class"
698dcdb6 336ac_help="$ac_help
8168de4c 337 --enable-tooltips use wxToolTip class"
698dcdb6 338ac_help="$ac_help
8168de4c 339 --enable-splines use spline drawing code"
698dcdb6 340ac_help="$ac_help
8168de4c 341 --enable-validators use wxValidator and derived classes"
698dcdb6 342ac_help="$ac_help
8168de4c 343 --enable-busyinfo use wxBusyInfo"
698dcdb6 344ac_help="$ac_help
8168de4c 345 --enable-joystick compile in joystick support (Linux only)"
698dcdb6 346ac_help="$ac_help
8168de4c 347 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
348ac_help="$ac_help
349 --enable-dragimage use wxDragImage"
1e6feb95 350ac_help="$ac_help
8168de4c 351 --enable-image use wxImage class"
698dcdb6 352ac_help="$ac_help
8168de4c 353 --enable-gif use gif images (GIF file format)"
698dcdb6 354ac_help="$ac_help
8168de4c 355 --enable-pcx use pcx images (PCX file format)"
698dcdb6 356ac_help="$ac_help
8168de4c 357 --enable-pnm use pnm images (PNM file format)"
698dcdb6 358ac_help="$ac_help
8168de4c 359 --enable-xpm use xpm images (XPM file format)"
698dcdb6
VZ
360ac_help="$ac_help
361 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
362ac_help="$ac_help
363 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
364ac_help="$ac_help
365 --disable-gtktest Do not try to compile and run a test GTK program"
366ac_help="$ac_help
367 --with-x use the X Window System"
10f2d63a
VZ
368
369# Initialize some variables set by options.
370# The variables have the same names as the options, with
371# dashes changed to underlines.
698dcdb6
VZ
372build=NONE
373cache_file=./config.cache
10f2d63a 374exec_prefix=NONE
698dcdb6 375host=NONE
10f2d63a 376no_create=
698dcdb6 377nonopt=NONE
10f2d63a
VZ
378no_recursion=
379prefix=NONE
380program_prefix=NONE
381program_suffix=NONE
382program_transform_name=s,x,x,
383silent=
384site=
385srcdir=
698dcdb6 386target=NONE
10f2d63a
VZ
387verbose=
388x_includes=NONE
389x_libraries=NONE
390bindir='${exec_prefix}/bin'
391sbindir='${exec_prefix}/sbin'
392libexecdir='${exec_prefix}/libexec'
393datadir='${prefix}/share'
394sysconfdir='${prefix}/etc'
395sharedstatedir='${prefix}/com'
396localstatedir='${prefix}/var'
397libdir='${exec_prefix}/lib'
398includedir='${prefix}/include'
399oldincludedir='/usr/include'
400infodir='${prefix}/info'
401mandir='${prefix}/man'
402
698dcdb6
VZ
403# Initialize some other variables.
404subdirs=
405MFLAGS= MAKEFLAGS=
406SHELL=${CONFIG_SHELL-/bin/sh}
407# Maximum number of lines to put in a shell here document.
408ac_max_here_lines=12
10f2d63a
VZ
409
410ac_prev=
411for ac_option
412do
698dcdb6 413
10f2d63a
VZ
414 # If the previous option needs an argument, assign it.
415 if test -n "$ac_prev"; then
416 eval "$ac_prev=\$ac_option"
417 ac_prev=
418 continue
419 fi
420
698dcdb6
VZ
421 case "$ac_option" in
422 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
423 *) ac_optarg= ;;
424 esac
10f2d63a
VZ
425
426 # Accept the important Cygnus configure options, so we can diagnose typos.
427
698dcdb6 428 case "$ac_option" in
10f2d63a
VZ
429
430 -bindir | --bindir | --bindi | --bind | --bin | --bi)
431 ac_prev=bindir ;;
432 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 433 bindir="$ac_optarg" ;;
10f2d63a
VZ
434
435 -build | --build | --buil | --bui | --bu)
698dcdb6 436 ac_prev=build ;;
10f2d63a 437 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 438 build="$ac_optarg" ;;
10f2d63a
VZ
439
440 -cache-file | --cache-file | --cache-fil | --cache-fi \
441 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
442 ac_prev=cache_file ;;
443 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
444 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 445 cache_file="$ac_optarg" ;;
10f2d63a
VZ
446
447 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
448 ac_prev=datadir ;;
449 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
450 | --da=*)
698dcdb6 451 datadir="$ac_optarg" ;;
10f2d63a
VZ
452
453 -disable-* | --disable-*)
698dcdb6 454 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 455 # Reject names that are not valid shell variable names.
698dcdb6
VZ
456 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
457 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
458 fi
459 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
460 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
461
462 -enable-* | --enable-*)
698dcdb6 463 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 464 # Reject names that are not valid shell variable names.
698dcdb6
VZ
465 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
466 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
467 fi
468 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
469 case "$ac_option" in
470 *=*) ;;
10f2d63a
VZ
471 *) ac_optarg=yes ;;
472 esac
698dcdb6 473 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
474
475 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
476 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
477 | --exec | --exe | --ex)
478 ac_prev=exec_prefix ;;
479 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
480 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
481 | --exec=* | --exe=* | --ex=*)
698dcdb6 482 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
483
484 -gas | --gas | --ga | --g)
485 # Obsolete; use --with-gas.
486 with_gas=yes ;;
487
698dcdb6
VZ
488 -help | --help | --hel | --he)
489 # Omit some internal or obsolete options to make the list less imposing.
490 # This message is too long to be a string in the A/UX 3.1 sh.
491 cat << EOF
492Usage: configure [options] [host]
493Options: [defaults in brackets after descriptions]
494Configuration:
495 --cache-file=FILE cache test results in FILE
496 --help print this message
497 --no-create do not create output files
498 --quiet, --silent do not print \`checking...' messages
499 --version print the version of autoconf that created configure
500Directory and file names:
501 --prefix=PREFIX install architecture-independent files in PREFIX
502 [$ac_default_prefix]
503 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
504 [same as prefix]
505 --bindir=DIR user executables in DIR [EPREFIX/bin]
506 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
507 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
508 --datadir=DIR read-only architecture-independent data in DIR
509 [PREFIX/share]
510 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
511 --sharedstatedir=DIR modifiable architecture-independent data in DIR
512 [PREFIX/com]
513 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
514 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
515 --includedir=DIR C header files in DIR [PREFIX/include]
516 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
517 --infodir=DIR info documentation in DIR [PREFIX/info]
518 --mandir=DIR man documentation in DIR [PREFIX/man]
519 --srcdir=DIR find the sources in DIR [configure dir or ..]
520 --program-prefix=PREFIX prepend PREFIX to installed program names
521 --program-suffix=SUFFIX append SUFFIX to installed program names
522 --program-transform-name=PROGRAM
523 run sed PROGRAM on installed program names
524EOF
525 cat << EOF
526Host type:
527 --build=BUILD configure for building on BUILD [BUILD=HOST]
528 --host=HOST configure for HOST [guessed]
529 --target=TARGET configure for TARGET [TARGET=HOST]
530Features and packages:
531 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
532 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
533 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
534 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
535 --x-includes=DIR X include files are in DIR
536 --x-libraries=DIR X library files are in DIR
537EOF
538 if test -n "$ac_help"; then
539 echo "--enable and --with options recognized:$ac_help"
540 fi
541 exit 0 ;;
10f2d63a
VZ
542
543 -host | --host | --hos | --ho)
698dcdb6 544 ac_prev=host ;;
10f2d63a 545 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 546 host="$ac_optarg" ;;
10f2d63a
VZ
547
548 -includedir | --includedir | --includedi | --included | --include \
549 | --includ | --inclu | --incl | --inc)
550 ac_prev=includedir ;;
551 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
552 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 553 includedir="$ac_optarg" ;;
10f2d63a
VZ
554
555 -infodir | --infodir | --infodi | --infod | --info | --inf)
556 ac_prev=infodir ;;
557 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 558 infodir="$ac_optarg" ;;
10f2d63a
VZ
559
560 -libdir | --libdir | --libdi | --libd)
561 ac_prev=libdir ;;
562 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 563 libdir="$ac_optarg" ;;
10f2d63a
VZ
564
565 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
566 | --libexe | --libex | --libe)
567 ac_prev=libexecdir ;;
568 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
569 | --libexe=* | --libex=* | --libe=*)
698dcdb6 570 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
571
572 -localstatedir | --localstatedir | --localstatedi | --localstated \
573 | --localstate | --localstat | --localsta | --localst \
574 | --locals | --local | --loca | --loc | --lo)
575 ac_prev=localstatedir ;;
576 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
577 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
578 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 579 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
580
581 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
582 ac_prev=mandir ;;
583 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 584 mandir="$ac_optarg" ;;
10f2d63a
VZ
585
586 -nfp | --nfp | --nf)
587 # Obsolete; use --without-fp.
588 with_fp=no ;;
589
590 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
591 | --no-cr | --no-c)
592 no_create=yes ;;
593
594 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
595 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
596 no_recursion=yes ;;
597
598 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
599 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
600 | --oldin | --oldi | --old | --ol | --o)
601 ac_prev=oldincludedir ;;
602 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
603 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
604 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 605 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
606
607 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
608 ac_prev=prefix ;;
609 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 610 prefix="$ac_optarg" ;;
10f2d63a
VZ
611
612 -program-prefix | --program-prefix | --program-prefi | --program-pref \
613 | --program-pre | --program-pr | --program-p)
614 ac_prev=program_prefix ;;
615 -program-prefix=* | --program-prefix=* | --program-prefi=* \
616 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 617 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
618
619 -program-suffix | --program-suffix | --program-suffi | --program-suff \
620 | --program-suf | --program-su | --program-s)
621 ac_prev=program_suffix ;;
622 -program-suffix=* | --program-suffix=* | --program-suffi=* \
623 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 624 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
625
626 -program-transform-name | --program-transform-name \
627 | --program-transform-nam | --program-transform-na \
628 | --program-transform-n | --program-transform- \
629 | --program-transform | --program-transfor \
630 | --program-transfo | --program-transf \
631 | --program-trans | --program-tran \
632 | --progr-tra | --program-tr | --program-t)
633 ac_prev=program_transform_name ;;
634 -program-transform-name=* | --program-transform-name=* \
635 | --program-transform-nam=* | --program-transform-na=* \
636 | --program-transform-n=* | --program-transform-=* \
637 | --program-transform=* | --program-transfor=* \
638 | --program-transfo=* | --program-transf=* \
639 | --program-trans=* | --program-tran=* \
640 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 641 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
642
643 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
644 | -silent | --silent | --silen | --sile | --sil)
645 silent=yes ;;
646
647 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
648 ac_prev=sbindir ;;
649 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
650 | --sbi=* | --sb=*)
698dcdb6 651 sbindir="$ac_optarg" ;;
10f2d63a
VZ
652
653 -sharedstatedir | --sharedstatedir | --sharedstatedi \
654 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
655 | --sharedst | --shareds | --shared | --share | --shar \
656 | --sha | --sh)
657 ac_prev=sharedstatedir ;;
658 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
659 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
660 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
661 | --sha=* | --sh=*)
698dcdb6 662 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
663
664 -site | --site | --sit)
665 ac_prev=site ;;
666 -site=* | --site=* | --sit=*)
698dcdb6 667 site="$ac_optarg" ;;
10f2d63a
VZ
668
669 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
670 ac_prev=srcdir ;;
671 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 672 srcdir="$ac_optarg" ;;
10f2d63a
VZ
673
674 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
675 | --syscon | --sysco | --sysc | --sys | --sy)
676 ac_prev=sysconfdir ;;
677 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
678 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 679 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
680
681 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 682 ac_prev=target ;;
10f2d63a 683 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 684 target="$ac_optarg" ;;
10f2d63a
VZ
685
686 -v | -verbose | --verbose | --verbos | --verbo | --verb)
687 verbose=yes ;;
688
698dcdb6
VZ
689 -version | --version | --versio | --versi | --vers)
690 echo "configure generated by autoconf version 2.13"
691 exit 0 ;;
10f2d63a
VZ
692
693 -with-* | --with-*)
698dcdb6 694 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 695 # Reject names that are not valid shell variable names.
698dcdb6
VZ
696 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
697 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
698 fi
10f2d63a 699 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
700 case "$ac_option" in
701 *=*) ;;
10f2d63a
VZ
702 *) ac_optarg=yes ;;
703 esac
698dcdb6 704 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
705
706 -without-* | --without-*)
698dcdb6 707 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 708 # Reject names that are not valid shell variable names.
698dcdb6
VZ
709 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
710 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
711 fi
712 ac_package=`echo $ac_package| sed 's/-/_/g'`
713 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
714
715 --x)
716 # Obsolete; use --with-x.
717 with_x=yes ;;
718
719 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
720 | --x-incl | --x-inc | --x-in | --x-i)
721 ac_prev=x_includes ;;
722 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
723 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 724 x_includes="$ac_optarg" ;;
10f2d63a
VZ
725
726 -x-libraries | --x-libraries | --x-librarie | --x-librari \
727 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
728 ac_prev=x_libraries ;;
729 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
730 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 731 x_libraries="$ac_optarg" ;;
10f2d63a 732
698dcdb6 733 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
734 ;;
735
736 *)
698dcdb6
VZ
737 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
738 echo "configure: warning: $ac_option: invalid host type" 1>&2
739 fi
740 if test "x$nonopt" != xNONE; then
741 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
742 fi
743 nonopt="$ac_option"
10f2d63a
VZ
744 ;;
745
746 esac
747done
748
749if test -n "$ac_prev"; then
698dcdb6
VZ
750 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
751fi
752
753trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
754
755# File descriptor usage:
756# 0 standard input
757# 1 file creation
758# 2 errors and warnings
759# 3 some systems may open it to /dev/tty
760# 4 used on the Kubota Titan
761# 6 checking for... messages and results
762# 5 compiler messages saved in config.log
763if test "$silent" = yes; then
764 exec 6>/dev/null
765else
766 exec 6>&1
10f2d63a 767fi
698dcdb6
VZ
768exec 5>./config.log
769
770echo "\
771This file contains any messages produced by compilers while
772running configure, to aid debugging if configure makes a mistake.
773" 1>&5
10f2d63a 774
698dcdb6
VZ
775# Strip out --no-create and --no-recursion so they do not pile up.
776# Also quote any args containing shell metacharacters.
777ac_configure_args=
778for ac_arg
10f2d63a 779do
698dcdb6
VZ
780 case "$ac_arg" in
781 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
782 | --no-cr | --no-c) ;;
783 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
784 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
785 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
786 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
787 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
788 esac
789done
790
698dcdb6
VZ
791# NLS nuisances.
792# Only set these to C if already set. These must not be set unconditionally
793# because not all systems understand e.g. LANG=C (notably SCO).
794# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
795# Non-C LC_CTYPE values break the ctype check.
796if test "${LANG+set}" = set; then LANG=C; export LANG; fi
797if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
798if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
799if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 800
698dcdb6
VZ
801# confdefs.h avoids OS command line length limits that DEFS can exceed.
802rm -rf conftest* confdefs.h
803# AIX cpp loses on an empty file, so make sure it contains at least a newline.
804echo > confdefs.h
10f2d63a 805
698dcdb6
VZ
806# A filename unique to this package, relative to the directory that
807# configure is in, which we can look for to find out if srcdir is correct.
808ac_unique_file=wx-config.in
10f2d63a
VZ
809
810# Find the source files, if location was not specified.
811if test -z "$srcdir"; then
812 ac_srcdir_defaulted=yes
813 # Try the directory containing this script, then its parent.
814 ac_prog=$0
698dcdb6 815 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
816 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
817 srcdir=$ac_confdir
818 if test ! -r $srcdir/$ac_unique_file; then
819 srcdir=..
820 fi
821else
822 ac_srcdir_defaulted=no
823fi
824if test ! -r $srcdir/$ac_unique_file; then
825 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 826 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 827 else
698dcdb6 828 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
829 fi
830fi
698dcdb6 831srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
832
833# Prefer explicitly selected file to automatically selected ones.
834if test -z "$CONFIG_SITE"; then
835 if test "x$prefix" != xNONE; then
836 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
837 else
838 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
839 fi
840fi
841for ac_site_file in $CONFIG_SITE; do
842 if test -r "$ac_site_file"; then
698dcdb6 843 echo "loading site script $ac_site_file"
10f2d63a
VZ
844 . "$ac_site_file"
845 fi
846done
847
848if test -r "$cache_file"; then
698dcdb6
VZ
849 echo "loading cache $cache_file"
850 . $cache_file
10f2d63a 851else
698dcdb6
VZ
852 echo "creating cache $cache_file"
853 > $cache_file
10f2d63a
VZ
854fi
855
856ac_ext=c
698dcdb6 857# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 858ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
859ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
860ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
861cross_compiling=$ac_cv_prog_cc_cross
862
863ac_exeext=
864ac_objext=o
865if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
866 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
867 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
868 ac_n= ac_c='
869' ac_t=' '
870 else
871 ac_n=-n ac_c= ac_t=
872 fi
10f2d63a 873else
698dcdb6 874 ac_n= ac_c='\c' ac_t=
10f2d63a 875fi
698dcdb6
VZ
876
877
10f2d63a 878
7c66a493
VZ
879ac_aux_dir=
880for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
881 if test -f $ac_dir/install-sh; then
882 ac_aux_dir=$ac_dir
883 ac_install_sh="$ac_aux_dir/install-sh -c"
884 break
885 elif test -f $ac_dir/install.sh; then
886 ac_aux_dir=$ac_dir
887 ac_install_sh="$ac_aux_dir/install.sh -c"
888 break
889 fi
890done
891if test -z "$ac_aux_dir"; then
698dcdb6 892 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 893fi
698dcdb6
VZ
894ac_config_guess=$ac_aux_dir/config.guess
895ac_config_sub=$ac_aux_dir/config.sub
896ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 897
698dcdb6
VZ
898
899# Do some error checking and defaulting for the host and target type.
900# The inputs are:
901# configure --host=HOST --target=TARGET --build=BUILD NONOPT
902#
903# The rules are:
904# 1. You are not allowed to specify --host, --target, and nonopt at the
905# same time.
906# 2. Host defaults to nonopt.
907# 3. If nonopt is not specified, then host defaults to the current host,
908# as determined by config.guess.
909# 4. Target and build default to nonopt.
910# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
911
912# The aliases save the names the user supplied, while $host etc.
913# will get canonicalized.
698dcdb6
VZ
914case $host---$target---$nonopt in
915NONE---*---* | *---NONE---* | *---*---NONE) ;;
916*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
917esac
918
919
920# Make sure we can run config.sub.
921if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
922else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
923fi
924
925echo $ac_n "checking host system type""... $ac_c" 1>&6
9f41d601 926echo "configure:927: checking host system type" >&5
698dcdb6
VZ
927
928host_alias=$host
929case "$host_alias" in
930NONE)
931 case $nonopt in
932 NONE)
933 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
934 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
935 fi ;;
936 *) host_alias=$nonopt ;;
937 esac ;;
938esac
939
940host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
941host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
942host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
943host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
944echo "$ac_t""$host" 1>&6
945
946echo $ac_n "checking target system type""... $ac_c" 1>&6
9f41d601 947echo "configure:948: checking target system type" >&5
698dcdb6
VZ
948
949target_alias=$target
950case "$target_alias" in
951NONE)
952 case $nonopt in
953 NONE) target_alias=$host_alias ;;
954 *) target_alias=$nonopt ;;
955 esac ;;
956esac
957
958target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
959target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
960target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
961target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
962echo "$ac_t""$target" 1>&6
963
964echo $ac_n "checking build system type""... $ac_c" 1>&6
9f41d601 965echo "configure:966: checking build system type" >&5
698dcdb6
VZ
966
967build_alias=$build
968case "$build_alias" in
969NONE)
970 case $nonopt in
971 NONE) build_alias=$host_alias ;;
972 *) build_alias=$nonopt ;;
973 esac ;;
974esac
975
976build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
977build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
978build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
979build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
980echo "$ac_t""$build" 1>&6
981
982test "$host_alias" != "$target_alias" &&
7c66a493
VZ
983 test "$program_prefix$program_suffix$program_transform_name" = \
984 NONENONEs,x,x, &&
985 program_prefix=${target_alias}-
986
698dcdb6
VZ
987
988
10f2d63a 989WX_MAJOR_VERSION_NUMBER=2
37d403aa 990WX_MINOR_VERSION_NUMBER=3
6c01ec02 991WX_RELEASE_NUMBER=2
10f2d63a 992
10f2d63a 993WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 994WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 995
6c01ec02 996WX_CURRENT=1
6426998c
RL
997WX_REVISION=0
998WX_AGE=0
999
698dcdb6
VZ
1000
1001
10f2d63a
VZ
1002USE_UNIX=1
1003USE_WIN32=0
b12915c1 1004USE_BEOS=0
1216f52d 1005USE_MAC=0
b12915c1 1006
10f2d63a
VZ
1007USE_LINUX=
1008USE_SGI=
1009USE_HPUX=
1010USE_SYSV=
1011USE_SVR4=
1012USE_AIX=
1013USE_SUN=
1014USE_SOLARIS=
1015USE_SUNOS=
1016USE_ALPHA=
1017USE_OSF=
1018USE_BSD=
1019USE_FREEBSD=
95c8801c 1020USE_OPENBSD=
f6bcfd97 1021USE_NETBSD=
10f2d63a
VZ
1022USE_VMS=
1023USE_ULTRIX=
1024USE_CYGWIN=
1025USE_MINGW=
1026USE_DATA_GENERAL=
1027
ab9b9eab
VZ
1028NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1029
1e6feb95 1030ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
10f2d63a
VZ
1031
1032DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1033DEFAULT_wxUSE_MAC=0
1034DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1035DEFAULT_wxUSE_MOTIF=0
1036DEFAULT_wxUSE_MSW=0
e07802fc 1037DEFAULT_wxUSE_PM=0
1e6feb95 1038DEFAULT_wxUSE_WINE=0
10f2d63a
VZ
1039
1040DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1041DEFAULT_DEFAULT_wxUSE_MAC=0
1042DEFAULT_DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1043DEFAULT_DEFAULT_wxUSE_MOTIF=0
1044DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1045DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1046DEFAULT_DEFAULT_wxUSE_WINE=0
10f2d63a 1047
d6a55c4b
VZ
1048PROGRAM_EXT=
1049
10f2d63a
VZ
1050case "${host}" in
1051 *-hp-hpux* )
1052 USE_HPUX=1
1053 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1054 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
698dcdb6 1055 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1056#define __HPUX__ 1
1057EOF
1058
1059 ;;
1060 *-*-linux* )
1061 USE_LINUX=1
698dcdb6 1062 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1063#define __LINUX__ 1
1064EOF
1065
1066 TMP=`uname -m`
1067 if test "x$TMP" = "xalpha"; then
1068 USE_ALPHA=1
698dcdb6 1069 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1070#define __ALPHA__ 1
1071EOF
1072
1073 fi
1074 DEFAULT_DEFAULT_wxUSE_GTK=1
1075 ;;
1076 *-*-irix5* | *-*-irix6* )
1077 USE_SGI=1
1078 USE_SVR4=1
698dcdb6 1079 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1080#define __SGI__ 1
1081EOF
1082
698dcdb6 1083 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1084#define __SVR4__ 1
1085EOF
1086
1087 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1088 ;;
1089 *-*-solaris2* )
1090 USE_SUN=1
1091 USE_SOLARIS=1
1092 USE_SVR4=1
698dcdb6 1093 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1094#define __SUN__ 1
1095EOF
1096
698dcdb6 1097 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1098#define __SOLARIS__ 1
1099EOF
1100
698dcdb6 1101 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1102#define __SVR4__ 1
1103EOF
1104
1105 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1106 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1107 ;;
1108 *-*-sunos4* )
1109 USE_SUN=1
1110 USE_SUNOS=1
1111 USE_BSD=1
698dcdb6 1112 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1113#define __SUN__ 1
1114EOF
1115
698dcdb6 1116 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1117#define __SUNOS__ 1
1118EOF
1119
698dcdb6 1120 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1121#define __BSD__ 1
1122EOF
1123
1124 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1125 ;;
f6bcfd97 1126 *-*-freebsd*)
10f2d63a
VZ
1127 USE_BSD=1
1128 USE_FREEBSD=1
698dcdb6 1129 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1130#define __FREEBSD__ 1
1131EOF
1132
698dcdb6 1133 cat >> confdefs.h <<\EOF
10f2d63a 1134#define __BSD__ 1
95c8801c
VS
1135EOF
1136
1137 DEFAULT_DEFAULT_wxUSE_GTK=1
1138 ;;
1139 *-*-openbsd*)
1140 USE_BSD=1
1141 USE_OPENBSD=1
698dcdb6 1142 cat >> confdefs.h <<\EOF
95c8801c
VS
1143#define __FREEBSD__ 1
1144EOF
1145
698dcdb6 1146 cat >> confdefs.h <<\EOF
95c8801c 1147#define __OPENBSD__ 1
f6bcfd97
BP
1148EOF
1149
1150 DEFAULT_DEFAULT_wxUSE_GTK=1
1151 ;;
1152 *-*-netbsd*)
1153 USE_BSD=1
1154 USE_NETBSD=1
698dcdb6 1155 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1156#define __FREEBSD__ 1
1157EOF
1158
698dcdb6 1159 cat >> confdefs.h <<\EOF
f6bcfd97 1160#define __NETBSD__ 1
10f2d63a
VZ
1161EOF
1162
1163 DEFAULT_DEFAULT_wxUSE_GTK=1
1164 ;;
1165 *-*-osf* )
1166 USE_ALPHA=1
1167 USE_OSF=1
698dcdb6 1168 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1169#define __ALPHA__ 1
1170EOF
1171
698dcdb6 1172 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1173#define __OSF__ 1
1174EOF
1175
1176 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1177 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1178 ;;
1179 *-*-dgux5* )
1180 USE_ALPHA=1
1181 USE_SVR4=1
698dcdb6 1182 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1183#define __ALPHA__ 1
1184EOF
1185
698dcdb6 1186 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1187#define __SVR4__ 1
1188EOF
1189
1190 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1191 ;;
1192 *-*-sysv5* )
1193 USE_SYSV=1
1194 USE_SVR4=1
698dcdb6 1195 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1196#define __SYSV__ 1
1197EOF
1198
698dcdb6 1199 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1200#define __SVR4__ 1
1201EOF
1202
1203 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1204 ;;
1205 *-*-aix* )
1206 USE_AIX=1
1207 USE_SYSV=1
1208 USE_SVR4=1
698dcdb6 1209 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1210#define __AIX__ 1
1211EOF
1212
698dcdb6 1213 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1214#define __SYSV__ 1
1215EOF
1216
698dcdb6 1217 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1218#define __SVR4__ 1
1219EOF
1220
1221 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1222 ;;
1223
1c8183e2 1224 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1225 USE_UNIX=0
1226 USE_WIN32=1
698dcdb6 1227 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1228#define __WIN32__ 1
1229EOF
1230
698dcdb6 1231 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1232#define __WIN95__ 1
1233EOF
1234
698dcdb6 1235 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1236#define __WINDOWS__ 1
1237EOF
1238
698dcdb6 1239 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1240#define __GNUWIN32__ 1
1241EOF
1242
698dcdb6 1243 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1244#define STRICT 1
1245EOF
1246
698dcdb6 1247 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1248#define WINVER 0x0400
1249EOF
1250
cf27ef00 1251 PROGRAM_EXT=".exe"
10f2d63a
VZ
1252 DEFAULT_DEFAULT_wxUSE_MSW=1
1253 ;;
1254
1255 *-pc-os2_emx )
698dcdb6 1256 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1257#define __EMX__ 1
1258EOF
1259
cf27ef00 1260 PROGRAM_EXT=".exe"
e07802fc 1261 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1262 ;;
1263
b4085ce6
GD
1264 *-*-darwin* )
1265 USE_BSD=1
1266 USE_MAC=1
698dcdb6 1267 cat >> confdefs.h <<\EOF
b4085ce6
GD
1268#define __MAC__ 1
1269EOF
1270
698dcdb6 1271 cat >> confdefs.h <<\EOF
b4085ce6
GD
1272#define __BSD__ 1
1273EOF
1274
698dcdb6 1275 cat >> confdefs.h <<\EOF
b4085ce6
GD
1276#define __UNIX__ 1
1277EOF
1278
1279 DEFAULT_DEFAULT_wxUSE_MAC=1
1280 ;;
1281
b12915c1
VZ
1282 *-*-beos* )
1283 USE_BEOS=1
698dcdb6 1284 cat >> confdefs.h <<\EOF
b12915c1
VZ
1285#define __BEOS__ 1
1286EOF
1287
1288 ;;
1289
10f2d63a 1290 *)
698dcdb6 1291 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1292esac
1293
1294if test "$USE_UNIX" = 1 ; then
b12915c1 1295 wxUSE_UNIX=yes
698dcdb6 1296 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1297#define __UNIX__ 1
1298EOF
1299
698dcdb6 1300
b12915c1
VZ
1301 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1302 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1303fi
1304
1305if test "$USE_BEOS" = 1; then
1306 SRC_SUBDIRS="$SRC_SUBDIRS be"
1307 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1308fi
1309
1310if test "$USE_LINUX" = 1; then
698dcdb6 1311 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
9f41d601 1312echo "configure:1313: checking for gettext in -lc" >&5
698dcdb6
VZ
1313ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1314if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 1316else
698dcdb6
VZ
1317 ac_save_LIBS="$LIBS"
1318LIBS="-lc $LIBS"
1319cat > conftest.$ac_ext <<EOF
9f41d601 1320#line 1321 "configure"
698dcdb6
VZ
1321#include "confdefs.h"
1322/* Override any gcc2 internal prototype to avoid an error. */
1323/* We use char because int might match the return type of a gcc2
1324 builtin and then its argument prototype would still apply. */
1325char gettext();
10f2d63a 1326
698dcdb6
VZ
1327int main() {
1328gettext()
1329; return 0; }
1330EOF
9f41d601 1331if { (eval echo configure:1332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
1332 rm -rf conftest*
1333 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 1334else
698dcdb6
VZ
1335 echo "configure: failed program was:" >&5
1336 cat conftest.$ac_ext >&5
1337 rm -rf conftest*
1338 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 1339fi
698dcdb6
VZ
1340rm -f conftest*
1341LIBS="$ac_save_LIBS"
10f2d63a
VZ
1342
1343fi
698dcdb6
VZ
1344if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1345 echo "$ac_t""yes" 1>&6
1346 cat >> confdefs.h <<\EOF
1347#define wxHAVE_GLIBC2 1
1348EOF
10f2d63a
VZ
1349
1350else
698dcdb6 1351 echo "$ac_t""no" 1>&6
10f2d63a
VZ
1352fi
1353
1354fi
1355
1e487827 1356
1e487827 1357
6232543b 1358
10f2d63a
VZ
1359 wx_arg_cache_file="configarg.cache"
1360 echo "loading argument cache $wx_arg_cache_file"
1361 rm -f ${wx_arg_cache_file}.tmp
1362 touch ${wx_arg_cache_file}.tmp
1363 touch ${wx_arg_cache_file}
698dcdb6 1364
10f2d63a
VZ
1365
1366DEBUG_CONFIGURE=0
1367if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1368 DEFAULT_wxUSE_UNIVERSAL=no
1369
10f2d63a
VZ
1370 DEFAULT_wxUSE_THREADS=yes
1371
1372 DEFAULT_wxUSE_SHARED=yes
00cf1208 1373 DEFAULT_wxUSE_BURNT_NAME=no
1e6feb95 1374 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1375 DEFAULT_wxUSE_PROFILE=no
1376 DEFAULT_wxUSE_NO_DEPS=no
1377 DEFAULT_wxUSE_NO_RTTI=no
1378 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1379 DEFAULT_wxUSE_PERMISSIVE=no
1380 DEFAULT_wxUSE_DEBUG_FLAG=yes
1381 DEFAULT_wxUSE_DEBUG_INFO=yes
1382 DEFAULT_wxUSE_DEBUG_GDB=yes
1383 DEFAULT_wxUSE_MEM_TRACING=no
1384 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1385 DEFAULT_wxUSE_DMALLOC=no
1386 DEFAULT_wxUSE_APPLE_IEEE=no
1387
1388 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1389 DEFAULT_wxUSE_LOGWINDOW=no
1390 DEFAULT_wxUSE_LOGGUI=no
10f2d63a
VZ
1391
1392 DEFAULT_wxUSE_GUI=yes
1e6feb95 1393 DEFAULT_wxUSE_CONTROLS=no
10f2d63a
VZ
1394
1395 DEFAULT_wxUSE_ZLIB=no
1396 DEFAULT_wxUSE_LIBPNG=no
1397 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1398 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1399 DEFAULT_wxUSE_ODBC=no
3fed1840 1400 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1401 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1402
eb4efbdc 1403 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1404 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1405 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1406 DEFAULT_wxUSE_CMDLINE_PARSER=no
1407 DEFAULT_wxUSE_DATETIME=no
1408 DEFAULT_wxUSE_TIMEDATE=no
1409 DEFAULT_wxUSE_TIMER=no
1410 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1411 DEFAULT_wxUSE_FILE=no
1e6feb95 1412 DEFAULT_wxUSE_FFILE=no
10f2d63a 1413 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1414 DEFAULT_wxUSE_WAVE=no
1415 DEFAULT_wxUSE_INTL=no
1416 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1417 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1418 DEFAULT_wxUSE_STREAMS=no
1419 DEFAULT_wxUSE_SOCKETS=no
1420 DEFAULT_wxUSE_DIALUP_MANAGER=no
1421 DEFAULT_wxUSE_SERIAL=no
1422 DEFAULT_wxUSE_JOYSTICK=no
1423 DEFAULT_wxUSE_DYNLIB_CLASS=no
1424 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1425 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1426
1427 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1428 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1429 DEFAULT_wxUSE_POSTSCRIPT=no
1430
1431 DEFAULT_wxUSE_X_RESOURCES=no
1432 DEFAULT_wxUSE_CLIPBOARD=no
1433 DEFAULT_wxUSE_TOOLTIPS=no
1434 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1435 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1436 DEFAULT_wxUSE_SPLINES=no
1437
1438 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1439 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1440 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1441
1442 DEFAULT_wxUSE_PROLOGIO=no
1443 DEFAULT_wxUSE_RESOURCES=no
1444 DEFAULT_wxUSE_CONSTRAINTS=no
1445 DEFAULT_wxUSE_IPC=no
1446 DEFAULT_wxUSE_HELP=no
3379ed37 1447 DEFAULT_wxUSE_WXHTML_HELP=no
10f2d63a
VZ
1448 DEFAULT_wxUSE_WXTREE=no
1449 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1450 DEFAULT_wxUSE_MIMETYPE=no
10f2d63a
VZ
1451
1452 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1453 DEFAULT_wxUSE_CHOICEDLG=no
1454 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1455 DEFAULT_wxUSE_DIRDLG=no
1e6feb95
VZ
1456 DEFAULT_wxUSE_FILEDLG=no
1457 DEFAULT_wxUSE_FONTDLG=no
1458 DEFAULT_wxUSE_MSGDLG=no
1459 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a
VZ
1460 DEFAULT_wxUSE_TEXTDLG=no
1461 DEFAULT_wxUSE_STARTUP_TIPS=no
1462 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1463 DEFAULT_wxUSE_WIZARDDLG=no
1464
1e6feb95 1465 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1466 DEFAULT_wxUSE_MINIFRAME=no
1467 DEFAULT_wxUSE_HTML=no
24528b0c 1468 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1469 DEFAULT_wxUSE_FS_INET=no
1470 DEFAULT_wxUSE_FS_ZIP=no
1471 DEFAULT_wxUSE_BUSYINFO=no
1472 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1473 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1474
1475 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1476 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1477 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1478 DEFAULT_wxUSE_CALCTRL=no
1479 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1480 DEFAULT_wxUSE_CHECKBOX=no
1481 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1482 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1483 DEFAULT_wxUSE_COMBOBOX=no
1484 DEFAULT_wxUSE_GAUGE=no
1485 DEFAULT_wxUSE_GRID=no
1486 DEFAULT_wxUSE_NEW_GRID=no
1487 DEFAULT_wxUSE_IMAGLIST=no
1488 DEFAULT_wxUSE_LISTBOX=no
1489 DEFAULT_wxUSE_LISTCTRL=no
1490 DEFAULT_wxUSE_NOTEBOOK=no
1491 DEFAULT_wxUSE_RADIOBOX=no
1492 DEFAULT_wxUSE_RADIOBTN=no
1493 DEFAULT_wxUSE_SASH=no
1494 DEFAULT_wxUSE_SCROLLBAR=no
1495 DEFAULT_wxUSE_SLIDER=no
1496 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1497 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1498 DEFAULT_wxUSE_SPLITTER=no
1499 DEFAULT_wxUSE_STATBMP=no
1500 DEFAULT_wxUSE_STATBOX=no
1501 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1502 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1503 DEFAULT_wxUSE_STATUSBAR=yes
1504 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1505 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1506 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1507 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1508 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1509 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1510 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1511 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
1512
1513 DEFAULT_wxUSE_UNICODE=no
1514 DEFAULT_wxUSE_WCSRTOMBS=no
1515
0046ff7c 1516 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1517 DEFAULT_wxUSE_GIF=no
1518 DEFAULT_wxUSE_PCX=no
1519 DEFAULT_wxUSE_PNM=no
0046ff7c 1520 DEFAULT_wxUSE_XPM=no
10f2d63a 1521else
1e6feb95
VZ
1522 DEFAULT_wxUSE_UNIVERSAL=no
1523
10f2d63a
VZ
1524 DEFAULT_wxUSE_THREADS=yes
1525
1526 DEFAULT_wxUSE_SHARED=yes
00cf1208 1527 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1528 DEFAULT_wxUSE_OPTIMISE=yes
1529 DEFAULT_wxUSE_PROFILE=no
1530 DEFAULT_wxUSE_NO_DEPS=no
1531 DEFAULT_wxUSE_NO_RTTI=no
1532 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1533 DEFAULT_wxUSE_PERMISSIVE=no
1534 DEFAULT_wxUSE_DEBUG_FLAG=no
1535 DEFAULT_wxUSE_DEBUG_INFO=no
1536 DEFAULT_wxUSE_DEBUG_GDB=no
1537 DEFAULT_wxUSE_MEM_TRACING=no
1538 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1539 DEFAULT_wxUSE_DMALLOC=no
1540 DEFAULT_wxUSE_APPLE_IEEE=yes
1541
1542 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1543 DEFAULT_wxUSE_LOGWINDOW=yes
1544 DEFAULT_wxUSE_LOGGUI=yes
10f2d63a
VZ
1545
1546 DEFAULT_wxUSE_GUI=yes
1547
1548 DEFAULT_wxUSE_ZLIB=yes
1549 DEFAULT_wxUSE_LIBPNG=yes
1550 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1551 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1552 DEFAULT_wxUSE_ODBC=no
3fed1840 1553 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1554 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1555
eb4efbdc 1556 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1557 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1558 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1559 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1560 DEFAULT_wxUSE_DATETIME=yes
1561 DEFAULT_wxUSE_TIMEDATE=no
1562 DEFAULT_wxUSE_TIMER=yes
1563 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1564 DEFAULT_wxUSE_FILE=yes
1e6feb95 1565 DEFAULT_wxUSE_FFILE=yes
10f2d63a 1566 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1567 DEFAULT_wxUSE_WAVE=no
1568 DEFAULT_wxUSE_INTL=yes
1569 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1570 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1571 DEFAULT_wxUSE_STREAMS=yes
1572 DEFAULT_wxUSE_SOCKETS=yes
1573 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1574 DEFAULT_wxUSE_SERIAL=yes
1575 DEFAULT_wxUSE_JOYSTICK=yes
1576 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1577 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1578 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1579
1580 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1581 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1582 DEFAULT_wxUSE_POSTSCRIPT=yes
1583
1584 DEFAULT_wxUSE_X_RESOURCES=no
1585 DEFAULT_wxUSE_CLIPBOARD=yes
1586 DEFAULT_wxUSE_TOOLTIPS=yes
1587 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1588 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1589 DEFAULT_wxUSE_SPLINES=yes
1590
1591 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1592 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1593 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1594
1595 DEFAULT_wxUSE_PROLOGIO=yes
1596 DEFAULT_wxUSE_RESOURCES=yes
1597 DEFAULT_wxUSE_CONSTRAINTS=yes
1598 DEFAULT_wxUSE_IPC=yes
1599 DEFAULT_wxUSE_HELP=yes
3379ed37 1600 DEFAULT_wxUSE_WXHTML_HELP=yes
10f2d63a
VZ
1601 DEFAULT_wxUSE_WXTREE=yes
1602 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1603 DEFAULT_wxUSE_MIMETYPE=yes
10f2d63a
VZ
1604
1605 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1606 DEFAULT_wxUSE_CHOICEDLG=yes
1607 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1608 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95
VZ
1609 DEFAULT_wxUSE_FILEDLG=yes
1610 DEFAULT_wxUSE_FONTDLG=yes
1611 DEFAULT_wxUSE_MSGDLG=yes
1612 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a
VZ
1613 DEFAULT_wxUSE_TEXTDLG=yes
1614 DEFAULT_wxUSE_STARTUP_TIPS=yes
1615 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1616 DEFAULT_wxUSE_WIZARDDLG=yes
1617
1e6feb95 1618 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1619 DEFAULT_wxUSE_MINIFRAME=yes
1620 DEFAULT_wxUSE_HTML=yes
24528b0c 1621 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1622 DEFAULT_wxUSE_FS_INET=yes
1623 DEFAULT_wxUSE_FS_ZIP=yes
1624 DEFAULT_wxUSE_BUSYINFO=yes
1625 DEFAULT_wxUSE_ZIPSTREAM=yes
1626 DEFAULT_wxUSE_VALIDATORS=yes
1627
1628 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1629 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1630 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1631 DEFAULT_wxUSE_CALCTRL=yes
1632 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1633 DEFAULT_wxUSE_CHECKBOX=yes
1634 DEFAULT_wxUSE_CHECKLST=yes
1635 DEFAULT_wxUSE_CHOICE=yes
1636 DEFAULT_wxUSE_COMBOBOX=yes
1637 DEFAULT_wxUSE_GAUGE=yes
1638 DEFAULT_wxUSE_GRID=yes
cc977e5f 1639 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1640 DEFAULT_wxUSE_IMAGLIST=yes
1641 DEFAULT_wxUSE_LISTBOX=yes
1642 DEFAULT_wxUSE_LISTCTRL=yes
1643 DEFAULT_wxUSE_NOTEBOOK=yes
1644 DEFAULT_wxUSE_RADIOBOX=yes
1645 DEFAULT_wxUSE_RADIOBTN=yes
1646 DEFAULT_wxUSE_SASH=yes
1647 DEFAULT_wxUSE_SCROLLBAR=yes
1648 DEFAULT_wxUSE_SLIDER=yes
1649 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1650 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1651 DEFAULT_wxUSE_SPLITTER=yes
1652 DEFAULT_wxUSE_STATBMP=yes
1653 DEFAULT_wxUSE_STATBOX=yes
1654 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1655 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1656 DEFAULT_wxUSE_STATUSBAR=yes
1657 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1658 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1659 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1660 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1661 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1662 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1663 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1664 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
1665
1666 DEFAULT_wxUSE_UNICODE=no
1667 DEFAULT_wxUSE_WCSRTOMBS=no
1668
0046ff7c 1669 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1670 DEFAULT_wxUSE_GIF=yes
1671 DEFAULT_wxUSE_PCX=yes
1672 DEFAULT_wxUSE_PNM=yes
0046ff7c 1673 DEFAULT_wxUSE_XPM=yes
10f2d63a
VZ
1674fi
1675
698dcdb6
VZ
1676
1677
10f2d63a
VZ
1678for toolkit in `echo $ALL_TOOLKITS`; do
1679 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1680 if test "x$LINE" != x ; then
1681 has_toolkit_in_cache=1
1682 eval "DEFAULT_$LINE"
1683 eval "CACHE_$toolkit=1"
1684 fi
1685done
1686
698dcdb6
VZ
1687
1688
1689 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
9f41d601 1690echo "configure:1691: checking for --enable-gui" >&5
10f2d63a
VZ
1691 no_cache=0
1692 # Check whether --enable-gui or --disable-gui was given.
1693if test "${enable_gui+set}" = set; then
1694 enableval="$enable_gui"
698dcdb6 1695
10f2d63a
VZ
1696 if test "$enableval" = yes; then
1697 ac_cv_use_gui='wxUSE_GUI=yes'
1698 else
1699 ac_cv_use_gui='wxUSE_GUI=no'
1700 fi
698dcdb6 1701
10f2d63a 1702else
698dcdb6 1703
10f2d63a
VZ
1704 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1705 if test "x$LINE" != x ; then
1706 eval "DEFAULT_$LINE"
1707 else
1708 no_cache=1
1709 fi
1710
1711 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1712
1713fi
10f2d63a
VZ
1714
1715
1716 eval "$ac_cv_use_gui"
1717 if test "$no_cache" != 1; then
1718 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1719 fi
1720
1721 if test "$wxUSE_GUI" = yes; then
698dcdb6 1722 echo "$ac_t""yes" 1>&6
10f2d63a 1723 else
698dcdb6 1724 echo "$ac_t""no" 1>&6
10f2d63a 1725 fi
698dcdb6 1726
10f2d63a 1727
b12915c1 1728if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1729
1e6feb95
VZ
1730
1731 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
9f41d601 1732echo "configure:1733: checking for --enable-universal" >&5
1e6feb95
VZ
1733 no_cache=0
1734 # Check whether --enable-universal or --disable-universal was given.
1735if test "${enable_universal+set}" = set; then
1736 enableval="$enable_universal"
1737
1738 if test "$enableval" = yes; then
1739 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1740 else
1741 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1742 fi
1743
1744else
1745
1746 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1747 if test "x$LINE" != x ; then
1748 eval "DEFAULT_$LINE"
1749 else
1750 no_cache=1
1751 fi
1752
1753 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1754
1755fi
1756
1757
1758 eval "$ac_cv_use_universal"
1759 if test "$no_cache" != 1; then
1760 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1761 fi
1762
1763 if test "$wxUSE_UNIVERSAL" = yes; then
1764 echo "$ac_t""yes" 1>&6
1765 else
1766 echo "$ac_t""no" 1>&6
1767 fi
1768
10f2d63a
VZ
1769# Check whether --with-gtk or --without-gtk was given.
1770if test "${with_gtk+set}" = set; then
1771 withval="$with_gtk"
1772 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1773fi
10f2d63a
VZ
1774
1775# Check whether --with-motif or --without-motif was given.
1776if test "${with_motif+set}" = set; then
1777 withval="$with_motif"
1778 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1779fi
10f2d63a 1780
b4085ce6
GD
1781# Check whether --with-mac or --without-mac was given.
1782if test "${with_mac+set}" = set; then
1783 withval="$with_mac"
1784 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1785fi
b4085ce6 1786
10f2d63a
VZ
1787# Check whether --with-wine or --without-wine was given.
1788if test "${with_wine+set}" = set; then
1789 withval="$with_wine"
1790 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1791fi
10f2d63a
VZ
1792
1793# Check whether --with-cygwin or --without-cygwin was given.
1794if test "${with_cygwin+set}" = set; then
1795 withval="$with_cygwin"
1796 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
698dcdb6 1797fi
10f2d63a
VZ
1798
1799# Check whether --with-mingw or --without-mingw was given.
1800if test "${with_mingw+set}" = set; then
1801 withval="$with_mingw"
1802 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
698dcdb6 1803fi
10f2d63a 1804
e07802fc
VZ
1805# Check whether --with-pm or --without-pm was given.
1806if test "${with_pm+set}" = set; then
1807 withval="$with_pm"
1808 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1809fi
1810
1e6feb95
VZ
1811# Check whether --with-mgl or --without-mgl was given.
1812if test "${with_mgl+set}" = set; then
1813 withval="$with_mgl"
1814 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1815fi
1816
10f2d63a 1817
8168de4c
VZ
1818# Check whether --enable-gtk2 or --disable-gtk2 was given.
1819if test "${enable_gtk2+set}" = set; then
1820 enableval="$enable_gtk2"
1821 wxUSE_GTK2=1
10f2d63a 1822else
8168de4c 1823 wxUSE_GTK2=0
698dcdb6
VZ
1824fi
1825
703e0a69 1826
1e487827 1827
698dcdb6 1828 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
9f41d601 1829echo "configure:1830: checking for --with-libpng" >&5
698dcdb6
VZ
1830 no_cache=0
1831 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1832if test "${with_libpng+set}" = set; then
1833 withval="$with_libpng"
698dcdb6 1834
10f2d63a 1835 if test "$withval" = yes; then
b12915c1 1836 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1837 elif test "$withval" = no; then
b12915c1 1838 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1839 elif test "$withval" = sys; then
1840 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1841 else
698dcdb6 1842 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1843 fi
698dcdb6 1844
10f2d63a 1845else
698dcdb6 1846
b12915c1 1847 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1848 if test "x$LINE" != x ; then
1849 eval "DEFAULT_$LINE"
1850 else
1851 no_cache=1
1852 fi
1853
b12915c1 1854 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1855
1856fi
10f2d63a
VZ
1857
1858
b12915c1 1859 eval "$ac_cv_use_libpng"
10f2d63a 1860 if test "$no_cache" != 1; then
b12915c1 1861 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1862 fi
1863
b12915c1 1864 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1865 echo "$ac_t""yes" 1>&6
422107f9 1866 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1867 echo "$ac_t""no" 1>&6
422107f9 1868 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1869 echo "$ac_t""system version" 1>&6
422107f9 1870 else
698dcdb6 1871 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1872 fi
698dcdb6 1873
10f2d63a 1874
698dcdb6 1875 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
9f41d601 1876echo "configure:1877: checking for --with-libjpeg" >&5
10f2d63a 1877 no_cache=0
698dcdb6 1878 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1879if test "${with_libjpeg+set}" = set; then
1880 withval="$with_libjpeg"
698dcdb6 1881
10f2d63a 1882 if test "$withval" = yes; then
b12915c1 1883 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1884 elif test "$withval" = no; then
b12915c1 1885 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1886 elif test "$withval" = sys; then
1887 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1888 else
698dcdb6 1889 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1890 fi
698dcdb6 1891
10f2d63a 1892else
698dcdb6 1893
b12915c1 1894 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1895 if test "x$LINE" != x ; then
1896 eval "DEFAULT_$LINE"
1897 else
1898 no_cache=1
1899 fi
1900
b12915c1 1901 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
1902
1903fi
10f2d63a
VZ
1904
1905
b12915c1 1906 eval "$ac_cv_use_libjpeg"
10f2d63a 1907 if test "$no_cache" != 1; then
b12915c1 1908 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1909 fi
1910
b12915c1 1911 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 1912 echo "$ac_t""yes" 1>&6
422107f9 1913 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 1914 echo "$ac_t""no" 1>&6
422107f9 1915 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 1916 echo "$ac_t""system version" 1>&6
422107f9 1917 else
698dcdb6 1918 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1919 fi
698dcdb6 1920
10f2d63a 1921
698dcdb6 1922 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
9f41d601 1923echo "configure:1924: checking for --with-libtiff" >&5
10f2d63a 1924 no_cache=0
698dcdb6 1925 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
1926if test "${with_libtiff+set}" = set; then
1927 withval="$with_libtiff"
698dcdb6 1928
10f2d63a 1929 if test "$withval" = yes; then
b12915c1 1930 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1931 elif test "$withval" = no; then
b12915c1 1932 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1933 elif test "$withval" = sys; then
1934 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1935 else
698dcdb6 1936 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1937 fi
698dcdb6 1938
10f2d63a 1939else
698dcdb6 1940
b12915c1 1941 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1942 if test "x$LINE" != x ; then
1943 eval "DEFAULT_$LINE"
1944 else
1945 no_cache=1
1946 fi
1947
b12915c1 1948 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
1949
1950fi
10f2d63a
VZ
1951
1952
b12915c1 1953 eval "$ac_cv_use_libtiff"
10f2d63a 1954 if test "$no_cache" != 1; then
b12915c1 1955 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1956 fi
1957
b12915c1 1958 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 1959 echo "$ac_t""yes" 1>&6
0dcf9893 1960 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 1961 echo "$ac_t""no" 1>&6
0dcf9893 1962 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 1963 echo "$ac_t""system version" 1>&6
0dcf9893 1964 else
698dcdb6 1965 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1966 fi
698dcdb6 1967
10f2d63a 1968
698dcdb6 1969 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
9f41d601 1970echo "configure:1971: checking for --with-freetype" >&5
3fed1840 1971 no_cache=0
698dcdb6 1972 # Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
1973if test "${with_freetype+set}" = set; then
1974 withval="$with_freetype"
698dcdb6 1975
3fed1840
RR
1976 if test "$withval" = yes; then
1977 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1978 elif test "$withval" = no; then
1979 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1980 elif test "$withval" = sys; then
1981 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1982 else
698dcdb6 1983 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 1984 fi
698dcdb6 1985
3fed1840 1986else
698dcdb6 1987
3fed1840
RR
1988 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
1989 if test "x$LINE" != x ; then
1990 eval "DEFAULT_$LINE"
1991 else
1992 no_cache=1
1993 fi
1994
1995 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
698dcdb6
VZ
1996
1997fi
3fed1840
RR
1998
1999
2000 eval "$ac_cv_use_freetype"
2001 if test "$no_cache" != 1; then
2002 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2003 fi
2004
2005 if test "$wxUSE_FREETYPE" = yes; then
698dcdb6 2006 echo "$ac_t""yes" 1>&6
3fed1840 2007 elif test "$wxUSE_FREETYPE" = no; then
698dcdb6 2008 echo "$ac_t""no" 1>&6
3fed1840 2009 elif test "$wxUSE_FREETYPE" = sys; then
698dcdb6 2010 echo "$ac_t""system version" 1>&6
3fed1840 2011 else
698dcdb6 2012 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 2013 fi
698dcdb6 2014
3fed1840 2015
698dcdb6 2016 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
9f41d601 2017echo "configure:2018: checking for --with-opengl" >&5
10f2d63a 2018 no_cache=0
698dcdb6 2019 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2020if test "${with_opengl+set}" = set; then
2021 withval="$with_opengl"
698dcdb6 2022
10f2d63a 2023 if test "$withval" = yes; then
b12915c1 2024 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2025 else
b12915c1 2026 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2027 fi
698dcdb6 2028
10f2d63a 2029else
698dcdb6 2030
b12915c1 2031 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2032 if test "x$LINE" != x ; then
2033 eval "DEFAULT_$LINE"
2034 else
2035 no_cache=1
2036 fi
2037
b12915c1 2038 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2039
2040fi
10f2d63a
VZ
2041
2042
b12915c1 2043 eval "$ac_cv_use_opengl"
10f2d63a 2044 if test "$no_cache" != 1; then
b12915c1 2045 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2046 fi
2047
b12915c1 2048 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2049 echo "$ac_t""yes" 1>&6
10f2d63a 2050 else
698dcdb6 2051 echo "$ac_t""no" 1>&6
10f2d63a 2052 fi
698dcdb6 2053
10f2d63a 2054
b12915c1
VZ
2055fi
2056
1e487827 2057
698dcdb6 2058 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
9f41d601 2059echo "configure:2060: checking for --with-dmalloc" >&5
698dcdb6
VZ
2060 no_cache=0
2061 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2062if test "${with_dmalloc+set}" = set; then
2063 withval="$with_dmalloc"
698dcdb6 2064
c7a2bf27 2065 if test "$withval" = yes; then
b12915c1 2066 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2067 else
b12915c1 2068 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2069 fi
698dcdb6 2070
c7a2bf27 2071else
698dcdb6 2072
b12915c1 2073 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2074 if test "x$LINE" != x ; then
2075 eval "DEFAULT_$LINE"
2076 else
2077 no_cache=1
2078 fi
2079
b12915c1 2080 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2081
2082fi
c7a2bf27
RR
2083
2084
b12915c1 2085 eval "$ac_cv_use_dmalloc"
c7a2bf27 2086 if test "$no_cache" != 1; then
b12915c1 2087 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2088 fi
2089
b12915c1 2090 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2091 echo "$ac_t""yes" 1>&6
c7a2bf27 2092 else
698dcdb6 2093 echo "$ac_t""no" 1>&6
c7a2bf27 2094 fi
698dcdb6 2095
c7a2bf27 2096
698dcdb6 2097 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
9f41d601 2098echo "configure:2099: checking for --with-zlib" >&5
10f2d63a 2099 no_cache=0
698dcdb6 2100 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2101if test "${with_zlib+set}" = set; then
2102 withval="$with_zlib"
698dcdb6 2103
10f2d63a 2104 if test "$withval" = yes; then
b12915c1 2105 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2106 elif test "$withval" = no; then
b12915c1 2107 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2108 elif test "$withval" = sys; then
2109 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2110 else
698dcdb6 2111 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2112 fi
698dcdb6 2113
10f2d63a 2114else
698dcdb6 2115
b12915c1 2116 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2117 if test "x$LINE" != x ; then
2118 eval "DEFAULT_$LINE"
2119 else
2120 no_cache=1
2121 fi
2122
b12915c1 2123 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2124
2125fi
10f2d63a
VZ
2126
2127
b12915c1 2128 eval "$ac_cv_use_zlib"
10f2d63a 2129 if test "$no_cache" != 1; then
b12915c1 2130 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2131 fi
2132
b12915c1 2133 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2134 echo "$ac_t""yes" 1>&6
422107f9 2135 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2136 echo "$ac_t""no" 1>&6
422107f9 2137 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2138 echo "$ac_t""system version" 1>&6
422107f9 2139 else
698dcdb6 2140 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2141 fi
698dcdb6 2142
10f2d63a 2143
698dcdb6 2144 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
9f41d601 2145echo "configure:2146: checking for --with-odbc" >&5
10f2d63a 2146 no_cache=0
698dcdb6 2147 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2148if test "${with_odbc+set}" = set; then
2149 withval="$with_odbc"
698dcdb6 2150
10f2d63a
VZ
2151 if test "$withval" = yes; then
2152 ac_cv_use_odbc='wxUSE_ODBC=yes'
2153 else
2154 ac_cv_use_odbc='wxUSE_ODBC=no'
2155 fi
698dcdb6 2156
10f2d63a 2157else
698dcdb6 2158
10f2d63a
VZ
2159 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2160 if test "x$LINE" != x ; then
2161 eval "DEFAULT_$LINE"
2162 else
2163 no_cache=1
2164 fi
2165
2166 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2167
2168fi
10f2d63a
VZ
2169
2170
2171 eval "$ac_cv_use_odbc"
2172 if test "$no_cache" != 1; then
2173 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2174 fi
2175
2176 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2177 echo "$ac_t""yes" 1>&6
10f2d63a 2178 else
698dcdb6 2179 echo "$ac_t""no" 1>&6
10f2d63a 2180 fi
698dcdb6
VZ
2181
2182
10f2d63a 2183
698dcdb6
VZ
2184
2185
2186 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
9f41d601 2187echo "configure:2188: checking for --enable-shared" >&5
10f2d63a
VZ
2188 no_cache=0
2189 # Check whether --enable-shared or --disable-shared was given.
2190if test "${enable_shared+set}" = set; then
2191 enableval="$enable_shared"
698dcdb6 2192
10f2d63a
VZ
2193 if test "$enableval" = yes; then
2194 ac_cv_use_shared='wxUSE_SHARED=yes'
2195 else
2196 ac_cv_use_shared='wxUSE_SHARED=no'
2197 fi
698dcdb6 2198
10f2d63a 2199else
698dcdb6 2200
10f2d63a
VZ
2201 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2202 if test "x$LINE" != x ; then
2203 eval "DEFAULT_$LINE"
2204 else
2205 no_cache=1
2206 fi
2207
2208 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2209
2210fi
10f2d63a
VZ
2211
2212
2213 eval "$ac_cv_use_shared"
2214 if test "$no_cache" != 1; then
2215 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2216 fi
2217
2218 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2219 echo "$ac_t""yes" 1>&6
10f2d63a 2220 else
698dcdb6 2221 echo "$ac_t""no" 1>&6
10f2d63a 2222 fi
698dcdb6 2223
10f2d63a 2224
698dcdb6 2225 echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6
9f41d601 2226echo "configure:2227: checking for --enable-burnt_name" >&5
00cf1208
RR
2227 no_cache=0
2228 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2229if test "${enable_burnt_name+set}" = set; then
2230 enableval="$enable_burnt_name"
698dcdb6 2231
00cf1208
RR
2232 if test "$enableval" = yes; then
2233 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2234 else
2235 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2236 fi
698dcdb6 2237
00cf1208 2238else
698dcdb6 2239
00cf1208
RR
2240 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2241 if test "x$LINE" != x ; then
2242 eval "DEFAULT_$LINE"
2243 else
2244 no_cache=1
2245 fi
2246
2247 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
698dcdb6
VZ
2248
2249fi
00cf1208
RR
2250
2251
2252 eval "$ac_cv_use_burnt_name"
2253 if test "$no_cache" != 1; then
2254 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2255 fi
2256
2257 if test "$wxUSE_BURNT_NAME" = yes; then
698dcdb6 2258 echo "$ac_t""yes" 1>&6
00cf1208 2259 else
698dcdb6 2260 echo "$ac_t""no" 1>&6
00cf1208 2261 fi
698dcdb6 2262
00cf1208 2263
698dcdb6 2264 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
9f41d601 2265echo "configure:2266: checking for --enable-optimise" >&5
10f2d63a
VZ
2266 no_cache=0
2267 # Check whether --enable-optimise or --disable-optimise was given.
2268if test "${enable_optimise+set}" = set; then
2269 enableval="$enable_optimise"
698dcdb6 2270
10f2d63a
VZ
2271 if test "$enableval" = yes; then
2272 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2273 else
2274 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2275 fi
698dcdb6 2276
10f2d63a 2277else
698dcdb6 2278
10f2d63a
VZ
2279 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2280 if test "x$LINE" != x ; then
2281 eval "DEFAULT_$LINE"
2282 else
2283 no_cache=1
2284 fi
2285
2286 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2287
2288fi
10f2d63a
VZ
2289
2290
2291 eval "$ac_cv_use_optimise"
2292 if test "$no_cache" != 1; then
2293 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2294 fi
2295
2296 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2297 echo "$ac_t""yes" 1>&6
10f2d63a 2298 else
698dcdb6 2299 echo "$ac_t""no" 1>&6
10f2d63a 2300 fi
698dcdb6 2301
10f2d63a 2302
698dcdb6 2303 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
9f41d601 2304echo "configure:2305: checking for --enable-debug" >&5
10f2d63a
VZ
2305 no_cache=0
2306 # Check whether --enable-debug or --disable-debug was given.
2307if test "${enable_debug+set}" = set; then
2308 enableval="$enable_debug"
698dcdb6 2309
10f2d63a
VZ
2310 if test "$enableval" = yes; then
2311 ac_cv_use_debug='wxUSE_DEBUG=yes'
2312 else
2313 ac_cv_use_debug='wxUSE_DEBUG=no'
2314 fi
698dcdb6 2315
10f2d63a 2316else
698dcdb6 2317
10f2d63a
VZ
2318 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2319 if test "x$LINE" != x ; then
2320 eval "DEFAULT_$LINE"
2321 else
2322 no_cache=1
2323 fi
2324
2325 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2326
2327fi
10f2d63a
VZ
2328
2329
2330 eval "$ac_cv_use_debug"
2331 if test "$no_cache" != 1; then
2332 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2333 fi
2334
2335 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2336 echo "$ac_t""yes" 1>&6
10f2d63a 2337 else
698dcdb6 2338 echo "$ac_t""no" 1>&6
10f2d63a 2339 fi
698dcdb6 2340
10f2d63a
VZ
2341
2342if test "$wxUSE_DEBUG" = "yes"; then
2343 DEFAULT_wxUSE_DEBUG_FLAG=yes
2344 DEFAULT_wxUSE_DEBUG_INFO=yes
2345elif test "$wxUSE_DEBUG" = "no"; then
2346 DEFAULT_wxUSE_DEBUG_FLAG=no
2347 DEFAULT_wxUSE_DEBUG_INFO=no
2348fi
2349
698dcdb6
VZ
2350
2351 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
9f41d601 2352echo "configure:2353: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2353 no_cache=0
2354 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2355if test "${enable_debug_flag+set}" = set; then
2356 enableval="$enable_debug_flag"
698dcdb6 2357
10f2d63a
VZ
2358 if test "$enableval" = yes; then
2359 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2360 else
2361 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2362 fi
698dcdb6 2363
10f2d63a 2364else
698dcdb6 2365
10f2d63a
VZ
2366 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2367 if test "x$LINE" != x ; then
2368 eval "DEFAULT_$LINE"
2369 else
2370 no_cache=1
2371 fi
2372
2373 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2374
2375fi
10f2d63a
VZ
2376
2377
2378 eval "$ac_cv_use_debug_flag"
2379 if test "$no_cache" != 1; then
2380 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2381 fi
2382
2383 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2384 echo "$ac_t""yes" 1>&6
10f2d63a 2385 else
698dcdb6 2386 echo "$ac_t""no" 1>&6
10f2d63a 2387 fi
698dcdb6 2388
10f2d63a 2389
698dcdb6 2390 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
9f41d601 2391echo "configure:2392: checking for --enable-debug_info" >&5
10f2d63a
VZ
2392 no_cache=0
2393 # Check whether --enable-debug_info or --disable-debug_info was given.
2394if test "${enable_debug_info+set}" = set; then
2395 enableval="$enable_debug_info"
698dcdb6 2396
10f2d63a
VZ
2397 if test "$enableval" = yes; then
2398 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2399 else
2400 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2401 fi
698dcdb6 2402
10f2d63a 2403else
698dcdb6 2404
10f2d63a
VZ
2405 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2406 if test "x$LINE" != x ; then
2407 eval "DEFAULT_$LINE"
2408 else
2409 no_cache=1
2410 fi
2411
2412 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2413
2414fi
10f2d63a
VZ
2415
2416
2417 eval "$ac_cv_use_debug_info"
2418 if test "$no_cache" != 1; then
2419 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2420 fi
2421
2422 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2423 echo "$ac_t""yes" 1>&6
10f2d63a 2424 else
698dcdb6 2425 echo "$ac_t""no" 1>&6
10f2d63a 2426 fi
698dcdb6 2427
10f2d63a 2428
698dcdb6 2429 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
9f41d601 2430echo "configure:2431: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2431 no_cache=0
2432 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2433if test "${enable_debug_gdb+set}" = set; then
2434 enableval="$enable_debug_gdb"
698dcdb6 2435
10f2d63a
VZ
2436 if test "$enableval" = yes; then
2437 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2438 else
2439 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2440 fi
698dcdb6 2441
10f2d63a 2442else
698dcdb6 2443
10f2d63a
VZ
2444 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2445 if test "x$LINE" != x ; then
2446 eval "DEFAULT_$LINE"
2447 else
2448 no_cache=1
2449 fi
2450
2451 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2452
2453fi
10f2d63a
VZ
2454
2455
2456 eval "$ac_cv_use_debug_gdb"
2457 if test "$no_cache" != 1; then
2458 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2459 fi
2460
2461 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2462 echo "$ac_t""yes" 1>&6
10f2d63a 2463 else
698dcdb6 2464 echo "$ac_t""no" 1>&6
10f2d63a 2465 fi
698dcdb6 2466
10f2d63a 2467
698dcdb6 2468 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
9f41d601 2469echo "configure:2470: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2470 no_cache=0
2471 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2472if test "${enable_debug_cntxt+set}" = set; then
2473 enableval="$enable_debug_cntxt"
698dcdb6 2474
10f2d63a
VZ
2475 if test "$enableval" = yes; then
2476 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2477 else
2478 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2479 fi
698dcdb6 2480
10f2d63a 2481else
698dcdb6 2482
10f2d63a
VZ
2483 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2484 if test "x$LINE" != x ; then
2485 eval "DEFAULT_$LINE"
2486 else
2487 no_cache=1
2488 fi
2489
2490 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2491
2492fi
10f2d63a
VZ
2493
2494
2495 eval "$ac_cv_use_debug_cntxt"
2496 if test "$no_cache" != 1; then
2497 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2498 fi
2499
2500 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2501 echo "$ac_t""yes" 1>&6
10f2d63a 2502 else
698dcdb6 2503 echo "$ac_t""no" 1>&6
10f2d63a 2504 fi
698dcdb6 2505
10f2d63a 2506
698dcdb6 2507 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
9f41d601 2508echo "configure:2509: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2509 no_cache=0
2510 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2511if test "${enable_mem_tracing+set}" = set; then
2512 enableval="$enable_mem_tracing"
698dcdb6 2513
10f2d63a
VZ
2514 if test "$enableval" = yes; then
2515 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2516 else
2517 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2518 fi
698dcdb6 2519
10f2d63a 2520else
698dcdb6 2521
10f2d63a
VZ
2522 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2523 if test "x$LINE" != x ; then
2524 eval "DEFAULT_$LINE"
2525 else
2526 no_cache=1
2527 fi
2528
2529 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2530
2531fi
10f2d63a
VZ
2532
2533
2534 eval "$ac_cv_use_mem_tracing"
2535 if test "$no_cache" != 1; then
2536 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2537 fi
2538
2539 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2540 echo "$ac_t""yes" 1>&6
10f2d63a 2541 else
698dcdb6 2542 echo "$ac_t""no" 1>&6
10f2d63a 2543 fi
698dcdb6 2544
10f2d63a 2545
698dcdb6 2546 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
9f41d601 2547echo "configure:2548: checking for --enable-profile" >&5
10f2d63a
VZ
2548 no_cache=0
2549 # Check whether --enable-profile or --disable-profile was given.
2550if test "${enable_profile+set}" = set; then
2551 enableval="$enable_profile"
698dcdb6 2552
10f2d63a
VZ
2553 if test "$enableval" = yes; then
2554 ac_cv_use_profile='wxUSE_PROFILE=yes'
2555 else
2556 ac_cv_use_profile='wxUSE_PROFILE=no'
2557 fi
698dcdb6 2558
10f2d63a 2559else
698dcdb6 2560
10f2d63a
VZ
2561 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2562 if test "x$LINE" != x ; then
2563 eval "DEFAULT_$LINE"
2564 else
2565 no_cache=1
2566 fi
2567
2568 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2569
2570fi
10f2d63a
VZ
2571
2572
2573 eval "$ac_cv_use_profile"
2574 if test "$no_cache" != 1; then
2575 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2576 fi
2577
2578 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2579 echo "$ac_t""yes" 1>&6
10f2d63a 2580 else
698dcdb6 2581 echo "$ac_t""no" 1>&6
10f2d63a 2582 fi
698dcdb6 2583
10f2d63a 2584
698dcdb6 2585 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
9f41d601 2586echo "configure:2587: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2587 no_cache=0
2588 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2589if test "${enable_no_rtti+set}" = set; then
2590 enableval="$enable_no_rtti"
698dcdb6 2591
10f2d63a
VZ
2592 if test "$enableval" = yes; then
2593 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2594 else
2595 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2596 fi
698dcdb6 2597
10f2d63a 2598else
698dcdb6 2599
10f2d63a
VZ
2600 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2601 if test "x$LINE" != x ; then
2602 eval "DEFAULT_$LINE"
2603 else
2604 no_cache=1
2605 fi
2606
2607 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2608
2609fi
10f2d63a
VZ
2610
2611
2612 eval "$ac_cv_use_no_rtti"
2613 if test "$no_cache" != 1; then
2614 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2615 fi
2616
2617 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2618 echo "$ac_t""yes" 1>&6
10f2d63a 2619 else
698dcdb6 2620 echo "$ac_t""no" 1>&6
10f2d63a 2621 fi
698dcdb6 2622
10f2d63a 2623
698dcdb6 2624 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
9f41d601 2625echo "configure:2626: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2626 no_cache=0
2627 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2628if test "${enable_no_exceptions+set}" = set; then
2629 enableval="$enable_no_exceptions"
698dcdb6 2630
10f2d63a
VZ
2631 if test "$enableval" = yes; then
2632 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2633 else
2634 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2635 fi
698dcdb6 2636
10f2d63a 2637else
698dcdb6 2638
10f2d63a
VZ
2639 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2640 if test "x$LINE" != x ; then
2641 eval "DEFAULT_$LINE"
2642 else
2643 no_cache=1
2644 fi
2645
2646 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2647
2648fi
10f2d63a
VZ
2649
2650
2651 eval "$ac_cv_use_no_exceptions"
2652 if test "$no_cache" != 1; then
2653 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2654 fi
2655
2656 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2657 echo "$ac_t""yes" 1>&6
10f2d63a 2658 else
698dcdb6 2659 echo "$ac_t""no" 1>&6
10f2d63a 2660 fi
698dcdb6 2661
10f2d63a 2662
698dcdb6 2663 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
9f41d601 2664echo "configure:2665: checking for --enable-permissive" >&5
10f2d63a
VZ
2665 no_cache=0
2666 # Check whether --enable-permissive or --disable-permissive was given.
2667if test "${enable_permissive+set}" = set; then
2668 enableval="$enable_permissive"
698dcdb6 2669
10f2d63a
VZ
2670 if test "$enableval" = yes; then
2671 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2672 else
2673 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2674 fi
698dcdb6 2675
10f2d63a 2676else
698dcdb6 2677
10f2d63a
VZ
2678 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2679 if test "x$LINE" != x ; then
2680 eval "DEFAULT_$LINE"
2681 else
2682 no_cache=1
2683 fi
2684
2685 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2686
2687fi
10f2d63a
VZ
2688
2689
2690 eval "$ac_cv_use_permissive"
2691 if test "$no_cache" != 1; then
2692 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2693 fi
2694
2695 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2696 echo "$ac_t""yes" 1>&6
10f2d63a 2697 else
698dcdb6 2698 echo "$ac_t""no" 1>&6
10f2d63a 2699 fi
698dcdb6 2700
10f2d63a 2701
698dcdb6 2702 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
9f41d601 2703echo "configure:2704: checking for --enable-no_deps" >&5
10f2d63a
VZ
2704 no_cache=0
2705 # Check whether --enable-no_deps or --disable-no_deps was given.
2706if test "${enable_no_deps+set}" = set; then
2707 enableval="$enable_no_deps"
698dcdb6 2708
10f2d63a
VZ
2709 if test "$enableval" = yes; then
2710 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2711 else
2712 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2713 fi
698dcdb6 2714
10f2d63a 2715else
698dcdb6 2716
10f2d63a
VZ
2717 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2718 if test "x$LINE" != x ; then
2719 eval "DEFAULT_$LINE"
2720 else
2721 no_cache=1
2722 fi
2723
2724 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2725
2726fi
10f2d63a
VZ
2727
2728
2729 eval "$ac_cv_use_no_deps"
2730 if test "$no_cache" != 1; then
2731 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2732 fi
2733
2734 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2735 echo "$ac_t""yes" 1>&6
10f2d63a 2736 else
698dcdb6 2737 echo "$ac_t""no" 1>&6
10f2d63a 2738 fi
698dcdb6
VZ
2739
2740
10f2d63a 2741
54276ccf 2742 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
9f41d601 2743echo "configure:2744: checking for --enable-compat20" >&5
54276ccf
VZ
2744 no_cache=0
2745 # Check whether --enable-compat20 or --disable-compat20 was given.
2746if test "${enable_compat20+set}" = set; then
2747 enableval="$enable_compat20"
2748
2749 if test "$enableval" = yes; then
2750 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2751 else
2752 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2753 fi
2754
2755else
2756
2757 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2758 if test "x$LINE" != x ; then
2759 eval "DEFAULT_$LINE"
2760 else
2761 no_cache=1
2762 fi
2763
2764 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2765
2766fi
2767
2768
2769 eval "$ac_cv_use_compat20"
2770 if test "$no_cache" != 1; then
2771 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2772 fi
2773
2774 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2775 echo "$ac_t""yes" 1>&6
2776 else
2777 echo "$ac_t""no" 1>&6
2778 fi
2779
2780
2781 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
9f41d601 2782echo "configure:2783: checking for --enable-compat22" >&5
54276ccf
VZ
2783 no_cache=0
2784 # Check whether --enable-compat22 or --disable-compat22 was given.
2785if test "${enable_compat22+set}" = set; then
2786 enableval="$enable_compat22"
2787
2788 if test "$enableval" = yes; then
2789 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2790 else
2791 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2792 fi
2793
2794else
2795
2796 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2797 if test "x$LINE" != x ; then
2798 eval "DEFAULT_$LINE"
2799 else
2800 no_cache=1
2801 fi
2802
2803 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2804
2805fi
2806
2807
2808 eval "$ac_cv_use_compat22"
2809 if test "$no_cache" != 1; then
2810 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2811 fi
2812
2813 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2814 echo "$ac_t""yes" 1>&6
2815 else
2816 echo "$ac_t""no" 1>&6
2817 fi
2818
2819
2820
698dcdb6
VZ
2821
2822 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
9f41d601 2823echo "configure:2824: checking for --enable-intl" >&5
10f2d63a
VZ
2824 no_cache=0
2825 # Check whether --enable-intl or --disable-intl was given.
2826if test "${enable_intl+set}" = set; then
2827 enableval="$enable_intl"
698dcdb6 2828
10f2d63a
VZ
2829 if test "$enableval" = yes; then
2830 ac_cv_use_intl='wxUSE_INTL=yes'
2831 else
2832 ac_cv_use_intl='wxUSE_INTL=no'
2833 fi
698dcdb6 2834
10f2d63a 2835else
698dcdb6 2836
10f2d63a
VZ
2837 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2838 if test "x$LINE" != x ; then
2839 eval "DEFAULT_$LINE"
2840 else
2841 no_cache=1
2842 fi
2843
2844 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
2845
2846fi
10f2d63a
VZ
2847
2848
2849 eval "$ac_cv_use_intl"
2850 if test "$no_cache" != 1; then
2851 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2852 fi
2853
2854 if test "$wxUSE_INTL" = yes; then
698dcdb6 2855 echo "$ac_t""yes" 1>&6
10f2d63a 2856 else
698dcdb6 2857 echo "$ac_t""no" 1>&6
10f2d63a 2858 fi
698dcdb6 2859
10f2d63a 2860
698dcdb6 2861 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
9f41d601 2862echo "configure:2863: checking for --enable-config" >&5
10f2d63a
VZ
2863 no_cache=0
2864 # Check whether --enable-config or --disable-config was given.
2865if test "${enable_config+set}" = set; then
2866 enableval="$enable_config"
698dcdb6 2867
10f2d63a
VZ
2868 if test "$enableval" = yes; then
2869 ac_cv_use_config='wxUSE_CONFIG=yes'
2870 else
2871 ac_cv_use_config='wxUSE_CONFIG=no'
2872 fi
698dcdb6 2873
10f2d63a 2874else
698dcdb6 2875
10f2d63a
VZ
2876 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2877 if test "x$LINE" != x ; then
2878 eval "DEFAULT_$LINE"
2879 else
2880 no_cache=1
2881 fi
2882
2883 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
2884
2885fi
10f2d63a
VZ
2886
2887
2888 eval "$ac_cv_use_config"
2889 if test "$no_cache" != 1; then
2890 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2891 fi
2892
2893 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 2894 echo "$ac_t""yes" 1>&6
10f2d63a 2895 else
698dcdb6 2896 echo "$ac_t""no" 1>&6
10f2d63a 2897 fi
698dcdb6
VZ
2898
2899
b12915c1 2900
698dcdb6 2901 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
9f41d601 2902echo "configure:2903: checking for --enable-sockets" >&5
10f2d63a
VZ
2903 no_cache=0
2904 # Check whether --enable-sockets or --disable-sockets was given.
2905if test "${enable_sockets+set}" = set; then
2906 enableval="$enable_sockets"
698dcdb6 2907
10f2d63a
VZ
2908 if test "$enableval" = yes; then
2909 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2910 else
2911 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2912 fi
698dcdb6 2913
10f2d63a 2914else
698dcdb6 2915
10f2d63a
VZ
2916 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2917 if test "x$LINE" != x ; then
2918 eval "DEFAULT_$LINE"
2919 else
2920 no_cache=1
2921 fi
2922
2923 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
2924
2925fi
10f2d63a
VZ
2926
2927
2928 eval "$ac_cv_use_sockets"
2929 if test "$no_cache" != 1; then
2930 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2931 fi
2932
2933 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 2934 echo "$ac_t""yes" 1>&6
10f2d63a 2935 else
698dcdb6 2936 echo "$ac_t""no" 1>&6
10f2d63a 2937 fi
698dcdb6 2938
b12915c1 2939
698dcdb6
VZ
2940
2941 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
9f41d601 2942echo "configure:2943: checking for --enable-ipc" >&5
10f2d63a 2943 no_cache=0
eb4efbdc
VZ
2944 # Check whether --enable-ipc or --disable-ipc was given.
2945if test "${enable_ipc+set}" = set; then
2946 enableval="$enable_ipc"
698dcdb6 2947
10f2d63a 2948 if test "$enableval" = yes; then
eb4efbdc 2949 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 2950 else
eb4efbdc 2951 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 2952 fi
698dcdb6 2953
10f2d63a 2954else
698dcdb6 2955
eb4efbdc 2956 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
2957 if test "x$LINE" != x ; then
2958 eval "DEFAULT_$LINE"
2959 else
2960 no_cache=1
2961 fi
2962
eb4efbdc 2963 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
2964
2965fi
10f2d63a
VZ
2966
2967
eb4efbdc 2968 eval "$ac_cv_use_ipc"
10f2d63a 2969 if test "$no_cache" != 1; then
eb4efbdc 2970 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2971 fi
2972
eb4efbdc 2973 if test "$wxUSE_IPC" = yes; then
698dcdb6 2974 echo "$ac_t""yes" 1>&6
10f2d63a 2975 else
698dcdb6 2976 echo "$ac_t""no" 1>&6
10f2d63a 2977 fi
698dcdb6
VZ
2978
2979
eb4efbdc 2980
1e6feb95 2981 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
9f41d601 2982echo "configure:2983: checking for --enable-cmdline" >&5
1e6feb95
VZ
2983 no_cache=0
2984 # Check whether --enable-cmdline or --disable-cmdline was given.
2985if test "${enable_cmdline+set}" = set; then
2986 enableval="$enable_cmdline"
2987
2988 if test "$enableval" = yes; then
2989 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
2990 else
2991 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
2992 fi
2993
2994else
2995
2996 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
2997 if test "x$LINE" != x ; then
2998 eval "DEFAULT_$LINE"
2999 else
3000 no_cache=1
3001 fi
3002
3003 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3004
3005fi
3006
3007
3008 eval "$ac_cv_use_cmdline"
3009 if test "$no_cache" != 1; then
3010 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3011 fi
3012
3013 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3014 echo "$ac_t""yes" 1>&6
3015 else
3016 echo "$ac_t""no" 1>&6
3017 fi
3018
3019
3020 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
9f41d601 3021echo "configure:3022: checking for --enable-datetime" >&5
1e6feb95
VZ
3022 no_cache=0
3023 # Check whether --enable-datetime or --disable-datetime was given.
3024if test "${enable_datetime+set}" = set; then
3025 enableval="$enable_datetime"
3026
3027 if test "$enableval" = yes; then
3028 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3029 else
3030 ac_cv_use_datetime='wxUSE_DATETIME=no'
3031 fi
3032
3033else
3034
3035 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3036 if test "x$LINE" != x ; then
3037 eval "DEFAULT_$LINE"
3038 else
3039 no_cache=1
3040 fi
3041
3042 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3043
3044fi
3045
3046
3047 eval "$ac_cv_use_datetime"
3048 if test "$no_cache" != 1; then
3049 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3050 fi
3051
3052 if test "$wxUSE_DATETIME" = yes; then
3053 echo "$ac_t""yes" 1>&6
3054 else
3055 echo "$ac_t""no" 1>&6
3056 fi
3057
3058
3059 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
9f41d601 3060echo "configure:3061: checking for --enable-timedate" >&5
1e6feb95
VZ
3061 no_cache=0
3062 # Check whether --enable-timedate or --disable-timedate was given.
3063if test "${enable_timedate+set}" = set; then
3064 enableval="$enable_timedate"
3065
3066 if test "$enableval" = yes; then
3067 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3068 else
3069 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3070 fi
3071
3072else
3073
3074 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3075 if test "x$LINE" != x ; then
3076 eval "DEFAULT_$LINE"
3077 else
3078 no_cache=1
3079 fi
3080
3081 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3082
3083fi
3084
3085
3086 eval "$ac_cv_use_timedate"
3087 if test "$no_cache" != 1; then
3088 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3089 fi
3090
3091 if test "$wxUSE_TIMEDATE" = yes; then
3092 echo "$ac_t""yes" 1>&6
3093 else
3094 echo "$ac_t""no" 1>&6
3095 fi
3096
3097
3098 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
9f41d601 3099echo "configure:3100: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3100 no_cache=0
3101 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3102if test "${enable_stopwatch+set}" = set; then
3103 enableval="$enable_stopwatch"
3104
3105 if test "$enableval" = yes; then
3106 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3107 else
3108 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3109 fi
3110
3111else
3112
3113 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3114 if test "x$LINE" != x ; then
3115 eval "DEFAULT_$LINE"
3116 else
3117 no_cache=1
3118 fi
3119
3120 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3121
3122fi
3123
3124
3125 eval "$ac_cv_use_stopwatch"
3126 if test "$no_cache" != 1; then
3127 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3128 fi
3129
3130 if test "$wxUSE_STOPWATCH" = yes; then
3131 echo "$ac_t""yes" 1>&6
3132 else
3133 echo "$ac_t""no" 1>&6
3134 fi
3135
3136
698dcdb6 3137 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
9f41d601 3138echo "configure:3139: checking for --enable-dialupman" >&5
10f2d63a 3139 no_cache=0
eb4efbdc
VZ
3140 # Check whether --enable-dialupman or --disable-dialupman was given.
3141if test "${enable_dialupman+set}" = set; then
3142 enableval="$enable_dialupman"
698dcdb6 3143
10f2d63a 3144 if test "$enableval" = yes; then
eb4efbdc 3145 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3146 else
eb4efbdc 3147 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3148 fi
698dcdb6 3149
10f2d63a 3150else
698dcdb6 3151
eb4efbdc 3152 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3153 if test "x$LINE" != x ; then
3154 eval "DEFAULT_$LINE"
3155 else
3156 no_cache=1
3157 fi
3158
eb4efbdc 3159 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3160
3161fi
10f2d63a
VZ
3162
3163
eb4efbdc 3164 eval "$ac_cv_use_dialupman"
10f2d63a 3165 if test "$no_cache" != 1; then
eb4efbdc 3166 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3167 fi
3168
eb4efbdc 3169 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3170 echo "$ac_t""yes" 1>&6
10f2d63a 3171 else
698dcdb6 3172 echo "$ac_t""no" 1>&6
10f2d63a 3173 fi
698dcdb6 3174
10f2d63a 3175
698dcdb6 3176 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
9f41d601 3177echo "configure:3178: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3178 no_cache=0
3179 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3180if test "${enable_apple_ieee+set}" = set; then
3181 enableval="$enable_apple_ieee"
698dcdb6 3182
10f2d63a
VZ
3183 if test "$enableval" = yes; then
3184 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3185 else
3186 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3187 fi
698dcdb6 3188
10f2d63a 3189else
698dcdb6 3190
10f2d63a
VZ
3191 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3192 if test "x$LINE" != x ; then
3193 eval "DEFAULT_$LINE"
3194 else
3195 no_cache=1
3196 fi
3197
3198 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3199
3200fi
10f2d63a
VZ
3201
3202
3203 eval "$ac_cv_use_apple_ieee"
3204 if test "$no_cache" != 1; then
3205 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3206 fi
3207
3208 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3209 echo "$ac_t""yes" 1>&6
10f2d63a 3210 else
698dcdb6 3211 echo "$ac_t""no" 1>&6
10f2d63a 3212 fi
698dcdb6 3213
10f2d63a 3214
1e6feb95 3215 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
9f41d601 3216echo "configure:3217: checking for --enable-timer" >&5
10f2d63a 3217 no_cache=0
1e6feb95
VZ
3218 # Check whether --enable-timer or --disable-timer was given.
3219if test "${enable_timer+set}" = set; then
3220 enableval="$enable_timer"
698dcdb6 3221
10f2d63a 3222 if test "$enableval" = yes; then
1e6feb95 3223 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3224 else
1e6feb95 3225 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3226 fi
698dcdb6 3227
10f2d63a 3228else
698dcdb6 3229
1e6feb95 3230 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3231 if test "x$LINE" != x ; then
3232 eval "DEFAULT_$LINE"
3233 else
3234 no_cache=1
3235 fi
3236
1e6feb95 3237 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3238
3239fi
10f2d63a
VZ
3240
3241
1e6feb95 3242 eval "$ac_cv_use_timer"
10f2d63a 3243 if test "$no_cache" != 1; then
1e6feb95 3244 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3245 fi
3246
1e6feb95 3247 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3248 echo "$ac_t""yes" 1>&6
10f2d63a 3249 else
698dcdb6 3250 echo "$ac_t""no" 1>&6
10f2d63a 3251 fi
698dcdb6 3252
10f2d63a 3253
698dcdb6 3254 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
9f41d601 3255echo "configure:3256: checking for --enable-wave" >&5
10f2d63a
VZ
3256 no_cache=0
3257 # Check whether --enable-wave or --disable-wave was given.
3258if test "${enable_wave+set}" = set; then
3259 enableval="$enable_wave"
698dcdb6 3260
10f2d63a
VZ
3261 if test "$enableval" = yes; then
3262 ac_cv_use_wave='wxUSE_WAVE=yes'
3263 else
3264 ac_cv_use_wave='wxUSE_WAVE=no'
3265 fi
698dcdb6 3266
10f2d63a 3267else
698dcdb6 3268
10f2d63a
VZ
3269 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3270 if test "x$LINE" != x ; then
3271 eval "DEFAULT_$LINE"
3272 else
3273 no_cache=1
3274 fi
3275
3276 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3277
3278fi
10f2d63a
VZ
3279
3280
3281 eval "$ac_cv_use_wave"
3282 if test "$no_cache" != 1; then
3283 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3284 fi
3285
3286 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3287 echo "$ac_t""yes" 1>&6
10f2d63a 3288 else
698dcdb6 3289 echo "$ac_t""no" 1>&6
10f2d63a 3290 fi
698dcdb6 3291
10f2d63a 3292
698dcdb6 3293 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
9f41d601 3294echo "configure:3295: checking for --enable-fraction" >&5
10f2d63a
VZ
3295 no_cache=0
3296 # Check whether --enable-fraction or --disable-fraction was given.
3297if test "${enable_fraction+set}" = set; then
3298 enableval="$enable_fraction"
698dcdb6 3299
10f2d63a
VZ
3300 if test "$enableval" = yes; then
3301 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3302 else
3303 ac_cv_use_fraction='wxUSE_FRACTION=no'
3304 fi
698dcdb6 3305
10f2d63a 3306else
698dcdb6 3307
10f2d63a
VZ
3308 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3309 if test "x$LINE" != x ; then
3310 eval "DEFAULT_$LINE"
3311 else
3312 no_cache=1
3313 fi
3314
3315 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3316
3317fi
10f2d63a
VZ
3318
3319
3320 eval "$ac_cv_use_fraction"
3321 if test "$no_cache" != 1; then
3322 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3323 fi
3324
3325 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3326 echo "$ac_t""yes" 1>&6
10f2d63a 3327 else
698dcdb6 3328 echo "$ac_t""no" 1>&6
10f2d63a 3329 fi
698dcdb6 3330
10f2d63a 3331
698dcdb6 3332 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
9f41d601 3333echo "configure:3334: checking for --enable-dynlib" >&5
10f2d63a
VZ
3334 no_cache=0
3335 # Check whether --enable-dynlib or --disable-dynlib was given.
3336if test "${enable_dynlib+set}" = set; then
3337 enableval="$enable_dynlib"
698dcdb6 3338
10f2d63a
VZ
3339 if test "$enableval" = yes; then
3340 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3341 else
3342 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3343 fi
698dcdb6 3344
10f2d63a 3345else
698dcdb6 3346
10f2d63a
VZ
3347 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3348 if test "x$LINE" != x ; then
3349 eval "DEFAULT_$LINE"
3350 else
3351 no_cache=1
3352 fi
3353
3354 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3355
3356fi
10f2d63a
VZ
3357
3358
3359 eval "$ac_cv_use_dynlib"
3360 if test "$no_cache" != 1; then
3361 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3362 fi
3363
3364 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3365 echo "$ac_t""yes" 1>&6
10f2d63a 3366 else
698dcdb6 3367 echo "$ac_t""no" 1>&6
10f2d63a 3368 fi
698dcdb6 3369
10f2d63a 3370
698dcdb6 3371 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
9f41d601 3372echo "configure:3373: checking for --enable-longlong" >&5
10f2d63a
VZ
3373 no_cache=0
3374 # Check whether --enable-longlong or --disable-longlong was given.
3375if test "${enable_longlong+set}" = set; then
3376 enableval="$enable_longlong"
698dcdb6 3377
10f2d63a
VZ
3378 if test "$enableval" = yes; then
3379 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3380 else
3381 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3382 fi
698dcdb6 3383
10f2d63a 3384else
698dcdb6 3385
10f2d63a
VZ
3386 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3387 if test "x$LINE" != x ; then
3388 eval "DEFAULT_$LINE"
3389 else
3390 no_cache=1
3391 fi
3392
3393 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3394
3395fi
10f2d63a
VZ
3396
3397
3398 eval "$ac_cv_use_longlong"
3399 if test "$no_cache" != 1; then
3400 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3401 fi
3402
3403 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3404 echo "$ac_t""yes" 1>&6
10f2d63a 3405 else
698dcdb6 3406 echo "$ac_t""no" 1>&6
10f2d63a 3407 fi
698dcdb6 3408
10f2d63a 3409
698dcdb6 3410 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
9f41d601 3411echo "configure:3412: checking for --enable-geometry" >&5
e8f65ba6
RR
3412 no_cache=0
3413 # Check whether --enable-geometry or --disable-geometry was given.
3414if test "${enable_geometry+set}" = set; then
3415 enableval="$enable_geometry"
698dcdb6 3416
e8f65ba6
RR
3417 if test "$enableval" = yes; then
3418 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3419 else
3420 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3421 fi
698dcdb6 3422
e8f65ba6 3423else
698dcdb6 3424
e8f65ba6
RR
3425 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3426 if test "x$LINE" != x ; then
3427 eval "DEFAULT_$LINE"
3428 else
3429 no_cache=1
3430 fi
3431
3432 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3433
3434fi
e8f65ba6
RR
3435
3436
3437 eval "$ac_cv_use_geometry"
3438 if test "$no_cache" != 1; then
3439 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3440 fi
3441
3442 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3443 echo "$ac_t""yes" 1>&6
e8f65ba6 3444 else
698dcdb6 3445 echo "$ac_t""no" 1>&6
e8f65ba6 3446 fi
698dcdb6 3447
e8f65ba6 3448
698dcdb6 3449 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
9f41d601 3450echo "configure:3451: checking for --enable-log" >&5
10f2d63a
VZ
3451 no_cache=0
3452 # Check whether --enable-log or --disable-log was given.
3453if test "${enable_log+set}" = set; then
3454 enableval="$enable_log"
698dcdb6 3455
10f2d63a
VZ
3456 if test "$enableval" = yes; then
3457 ac_cv_use_log='wxUSE_LOG=yes'
3458 else
3459 ac_cv_use_log='wxUSE_LOG=no'
3460 fi
698dcdb6 3461
10f2d63a 3462else
698dcdb6 3463
10f2d63a
VZ
3464 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3465 if test "x$LINE" != x ; then
3466 eval "DEFAULT_$LINE"
3467 else
3468 no_cache=1
3469 fi
3470
3471 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3472
3473fi
10f2d63a
VZ
3474
3475
3476 eval "$ac_cv_use_log"
3477 if test "$no_cache" != 1; then
3478 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3479 fi
3480
3481 if test "$wxUSE_LOG" = yes; then
698dcdb6 3482 echo "$ac_t""yes" 1>&6
10f2d63a 3483 else
698dcdb6 3484 echo "$ac_t""no" 1>&6
10f2d63a 3485 fi
698dcdb6 3486
10f2d63a 3487
698dcdb6 3488 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
9f41d601 3489echo "configure:3490: checking for --enable-streams" >&5
10f2d63a
VZ
3490 no_cache=0
3491 # Check whether --enable-streams or --disable-streams was given.
3492if test "${enable_streams+set}" = set; then
3493 enableval="$enable_streams"
698dcdb6 3494
10f2d63a
VZ
3495 if test "$enableval" = yes; then
3496 ac_cv_use_streams='wxUSE_STREAMS=yes'
3497 else
3498 ac_cv_use_streams='wxUSE_STREAMS=no'
3499 fi
698dcdb6 3500
10f2d63a 3501else
698dcdb6 3502
10f2d63a
VZ
3503 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3504 if test "x$LINE" != x ; then
3505 eval "DEFAULT_$LINE"
3506 else
3507 no_cache=1
3508 fi
3509
3510 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3511
3512fi
10f2d63a
VZ
3513
3514
3515 eval "$ac_cv_use_streams"
3516 if test "$no_cache" != 1; then
3517 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3518 fi
3519
3520 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3521 echo "$ac_t""yes" 1>&6
10f2d63a 3522 else
698dcdb6 3523 echo "$ac_t""no" 1>&6
10f2d63a 3524 fi
698dcdb6 3525
10f2d63a 3526
698dcdb6 3527 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
9f41d601 3528echo "configure:3529: checking for --enable-file" >&5
10f2d63a
VZ
3529 no_cache=0
3530 # Check whether --enable-file or --disable-file was given.
3531if test "${enable_file+set}" = set; then
3532 enableval="$enable_file"
698dcdb6 3533
10f2d63a
VZ
3534 if test "$enableval" = yes; then
3535 ac_cv_use_file='wxUSE_FILE=yes'
3536 else
3537 ac_cv_use_file='wxUSE_FILE=no'
3538 fi
698dcdb6 3539
10f2d63a 3540else
698dcdb6 3541
10f2d63a
VZ
3542 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3543 if test "x$LINE" != x ; then
3544 eval "DEFAULT_$LINE"
3545 else
3546 no_cache=1
3547 fi
3548
3549 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3550
3551fi
10f2d63a
VZ
3552
3553
3554 eval "$ac_cv_use_file"
3555 if test "$no_cache" != 1; then
3556 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3557 fi
3558
3559 if test "$wxUSE_FILE" = yes; then
698dcdb6 3560 echo "$ac_t""yes" 1>&6
10f2d63a 3561 else
698dcdb6 3562 echo "$ac_t""no" 1>&6
10f2d63a 3563 fi
698dcdb6 3564
10f2d63a 3565
1e6feb95 3566 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
9f41d601 3567echo "configure:3568: checking for --enable-ffile" >&5
10f2d63a 3568 no_cache=0
1e6feb95
VZ
3569 # Check whether --enable-ffile or --disable-ffile was given.
3570if test "${enable_ffile+set}" = set; then
3571 enableval="$enable_ffile"
698dcdb6 3572
10f2d63a 3573 if test "$enableval" = yes; then
1e6feb95 3574 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3575 else
1e6feb95 3576 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3577 fi
698dcdb6 3578
10f2d63a 3579else
698dcdb6 3580
1e6feb95 3581 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3582 if test "x$LINE" != x ; then
3583 eval "DEFAULT_$LINE"
3584 else
3585 no_cache=1
3586 fi
3587
1e6feb95 3588 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3589
3590fi
10f2d63a
VZ
3591
3592
1e6feb95 3593 eval "$ac_cv_use_ffile"
10f2d63a 3594 if test "$no_cache" != 1; then
1e6feb95 3595 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3596 fi
3597
1e6feb95 3598 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3599 echo "$ac_t""yes" 1>&6
10f2d63a 3600 else
698dcdb6 3601 echo "$ac_t""no" 1>&6
10f2d63a 3602 fi
698dcdb6 3603
10f2d63a 3604
1e6feb95 3605 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
9f41d601 3606echo "configure:3607: checking for --enable-textfile" >&5
10f2d63a 3607 no_cache=0
1e6feb95
VZ
3608 # Check whether --enable-textfile or --disable-textfile was given.
3609if test "${enable_textfile+set}" = set; then
3610 enableval="$enable_textfile"
698dcdb6 3611
10f2d63a 3612 if test "$enableval" = yes; then
1e6feb95 3613 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 3614 else
1e6feb95 3615 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 3616 fi
698dcdb6 3617
10f2d63a 3618else
698dcdb6 3619
1e6feb95 3620 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3621 if test "x$LINE" != x ; then
3622 eval "DEFAULT_$LINE"
3623 else
3624 no_cache=1
3625 fi
3626
1e6feb95 3627 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
3628
3629fi
10f2d63a
VZ
3630
3631
1e6feb95 3632 eval "$ac_cv_use_textfile"
10f2d63a 3633 if test "$no_cache" != 1; then
1e6feb95 3634 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3635 fi
3636
1e6feb95 3637 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 3638 echo "$ac_t""yes" 1>&6
10f2d63a 3639 else
698dcdb6 3640 echo "$ac_t""no" 1>&6
10f2d63a 3641 fi
698dcdb6 3642
10f2d63a 3643
1e6feb95 3644 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
9f41d601 3645echo "configure:3646: checking for --enable-fontmap" >&5
10f2d63a 3646 no_cache=0
1e6feb95
VZ
3647 # Check whether --enable-fontmap or --disable-fontmap was given.
3648if test "${enable_fontmap+set}" = set; then
3649 enableval="$enable_fontmap"
698dcdb6 3650
10f2d63a 3651 if test "$enableval" = yes; then
1e6feb95 3652 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 3653 else
1e6feb95 3654 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 3655 fi
698dcdb6 3656
10f2d63a 3657else
698dcdb6 3658
1e6feb95 3659 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
3660 if test "x$LINE" != x ; then
3661 eval "DEFAULT_$LINE"
3662 else
3663 no_cache=1
3664 fi
3665
1e6feb95 3666 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
3667
3668fi
10f2d63a
VZ
3669
3670
1e6feb95 3671 eval "$ac_cv_use_fontmap"
10f2d63a 3672 if test "$no_cache" != 1; then
1e6feb95 3673 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3674 fi
3675
1e6feb95 3676 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 3677 echo "$ac_t""yes" 1>&6
10f2d63a 3678 else
698dcdb6 3679 echo "$ac_t""no" 1>&6
10f2d63a 3680 fi
698dcdb6 3681
10f2d63a 3682
1e6feb95 3683 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
9f41d601 3684echo "configure:3685: checking for --enable-unicode" >&5
10f2d63a 3685 no_cache=0
1e6feb95
VZ
3686 # Check whether --enable-unicode or --disable-unicode was given.
3687if test "${enable_unicode+set}" = set; then
3688 enableval="$enable_unicode"
3689
3690 if test "$enableval" = yes; then
3691 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3692 else
3693 ac_cv_use_unicode='wxUSE_UNICODE=no'
3694 fi
3695
3696else
3697
3698 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3699 if test "x$LINE" != x ; then
3700 eval "DEFAULT_$LINE"
3701 else
3702 no_cache=1
3703 fi
3704
3705 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3706
3707fi
3708
3709
3710 eval "$ac_cv_use_unicode"
3711 if test "$no_cache" != 1; then
3712 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3713 fi
3714
3715 if test "$wxUSE_UNICODE" = yes; then
3716 echo "$ac_t""yes" 1>&6
3717 else
3718 echo "$ac_t""no" 1>&6
3719 fi
3720
3721
3722 echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6
9f41d601 3723echo "configure:3724: checking for --enable-wcsrtombs" >&5
1e6feb95
VZ
3724 no_cache=0
3725 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3726if test "${enable_wcsrtombs+set}" = set; then
3727 enableval="$enable_wcsrtombs"
3728
3729 if test "$enableval" = yes; then
3730 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3731 else
3732 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3733 fi
3734
3735else
3736
3737 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3738 if test "x$LINE" != x ; then
3739 eval "DEFAULT_$LINE"
3740 else
3741 no_cache=1
3742 fi
3743
3744 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3745
3746fi
3747
3748
3749 eval "$ac_cv_use_wcsrtombs"
3750 if test "$no_cache" != 1; then
3751 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3752 fi
3753
3754 if test "$wxUSE_WCSRTOMBS" = yes; then
3755 echo "$ac_t""yes" 1>&6
3756 else
3757 echo "$ac_t""no" 1>&6
3758 fi
3759
3760
3761 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
9f41d601 3762echo "configure:3763: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
3763 no_cache=0
3764 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3765if test "${enable_wxprintfv+set}" = set; then
3766 enableval="$enable_wxprintfv"
3767
3768 if test "$enableval" = yes; then
10f2d63a
VZ
3769 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3770 else
3771 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3772 fi
698dcdb6 3773
10f2d63a 3774else
698dcdb6 3775
10f2d63a
VZ
3776 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3777 if test "x$LINE" != x ; then
3778 eval "DEFAULT_$LINE"
3779 else
3780 no_cache=1
3781 fi
3782
3783 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
3784
3785fi
10f2d63a
VZ
3786
3787
3788 eval "$ac_cv_use_wxprintfv"
3789 if test "$no_cache" != 1; then
3790 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3791 fi
3792
3793 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 3794 echo "$ac_t""yes" 1>&6
10f2d63a 3795 else
698dcdb6 3796 echo "$ac_t""no" 1>&6
10f2d63a 3797 fi
698dcdb6 3798
10f2d63a 3799
698dcdb6 3800 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
9f41d601 3801echo "configure:3802: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
3802 no_cache=0
3803 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3804if test "${enable_std_iostreams+set}" = set; then
3805 enableval="$enable_std_iostreams"
698dcdb6 3806
10f2d63a
VZ
3807 if test "$enableval" = yes; then
3808 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3809 else
3810 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3811 fi
698dcdb6 3812
10f2d63a 3813else
698dcdb6 3814
10f2d63a
VZ
3815 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3816 if test "x$LINE" != x ; then
3817 eval "DEFAULT_$LINE"
3818 else
3819 no_cache=1
3820 fi
3821
3822 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
3823
3824fi
10f2d63a
VZ
3825
3826
3827 eval "$ac_cv_use_std_iostreams"
3828 if test "$no_cache" != 1; then
3829 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3830 fi
3831
3832 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 3833 echo "$ac_t""yes" 1>&6
10f2d63a 3834 else
698dcdb6 3835 echo "$ac_t""no" 1>&6
10f2d63a 3836 fi
698dcdb6 3837
10f2d63a 3838
698dcdb6 3839 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
9f41d601 3840echo "configure:3841: checking for --enable-filesystem" >&5
24528b0c
VS
3841 no_cache=0
3842 # Check whether --enable-filesystem or --disable-filesystem was given.
3843if test "${enable_filesystem+set}" = set; then
3844 enableval="$enable_filesystem"
698dcdb6 3845
24528b0c
VS
3846 if test "$enableval" = yes; then
3847 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3848 else
3849 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3850 fi
698dcdb6 3851
24528b0c 3852else
698dcdb6 3853
24528b0c
VS
3854 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3855 if test "x$LINE" != x ; then
3856 eval "DEFAULT_$LINE"
3857 else
3858 no_cache=1
3859 fi
3860
3861 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
3862
3863fi
24528b0c
VS
3864
3865
3866 eval "$ac_cv_use_filesystem"
3867 if test "$no_cache" != 1; then
3868 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3869 fi
3870
3871 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 3872 echo "$ac_t""yes" 1>&6
24528b0c 3873 else
698dcdb6 3874 echo "$ac_t""no" 1>&6
24528b0c 3875 fi
698dcdb6 3876
24528b0c 3877
698dcdb6 3878 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
9f41d601 3879echo "configure:3880: checking for --enable-fs_inet" >&5
10f2d63a
VZ
3880 no_cache=0
3881 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3882if test "${enable_fs_inet+set}" = set; then
3883 enableval="$enable_fs_inet"
698dcdb6 3884
10f2d63a
VZ
3885 if test "$enableval" = yes; then
3886 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3887 else
3888 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3889 fi
698dcdb6 3890
10f2d63a 3891else
698dcdb6 3892
10f2d63a
VZ
3893 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3894 if test "x$LINE" != x ; then
3895 eval "DEFAULT_$LINE"
3896 else
3897 no_cache=1
3898 fi
3899
3900 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
3901
3902fi
10f2d63a
VZ
3903
3904
3905 eval "$ac_cv_use_fs_inet"
3906 if test "$no_cache" != 1; then
3907 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3908 fi
3909
3910 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 3911 echo "$ac_t""yes" 1>&6
10f2d63a 3912 else
698dcdb6 3913 echo "$ac_t""no" 1>&6
10f2d63a 3914 fi
698dcdb6 3915
10f2d63a 3916
698dcdb6 3917 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
9f41d601 3918echo "configure:3919: checking for --enable-fs_zip" >&5
10f2d63a
VZ
3919 no_cache=0
3920 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3921if test "${enable_fs_zip+set}" = set; then
3922 enableval="$enable_fs_zip"
698dcdb6 3923
10f2d63a
VZ
3924 if test "$enableval" = yes; then
3925 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3926 else
3927 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3928 fi
698dcdb6 3929
10f2d63a 3930else
698dcdb6 3931
10f2d63a
VZ
3932 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3933 if test "x$LINE" != x ; then
3934 eval "DEFAULT_$LINE"
3935 else
3936 no_cache=1
3937 fi
3938
3939 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
3940
3941fi
10f2d63a
VZ
3942
3943
3944 eval "$ac_cv_use_fs_zip"
3945 if test "$no_cache" != 1; then
3946 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3947 fi
3948
3949 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 3950 echo "$ac_t""yes" 1>&6
10f2d63a 3951 else
698dcdb6 3952 echo "$ac_t""no" 1>&6
10f2d63a 3953 fi
698dcdb6 3954
10f2d63a 3955
698dcdb6 3956 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
9f41d601 3957echo "configure:3958: checking for --enable-zipstream" >&5
10f2d63a
VZ
3958 no_cache=0
3959 # Check whether --enable-zipstream or --disable-zipstream was given.
3960if test "${enable_zipstream+set}" = set; then
3961 enableval="$enable_zipstream"
698dcdb6 3962
10f2d63a
VZ
3963 if test "$enableval" = yes; then
3964 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3965 else
3966 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3967 fi
698dcdb6 3968
10f2d63a 3969else
698dcdb6 3970
10f2d63a
VZ
3971 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3972 if test "x$LINE" != x ; then
3973 eval "DEFAULT_$LINE"
3974 else
3975 no_cache=1
3976 fi
3977
3978 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
3979
3980fi
10f2d63a
VZ
3981
3982
3983 eval "$ac_cv_use_zipstream"
3984 if test "$no_cache" != 1; then
3985 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3986 fi
3987
3988 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 3989 echo "$ac_t""yes" 1>&6
10f2d63a 3990 else
698dcdb6 3991 echo "$ac_t""no" 1>&6
10f2d63a 3992 fi
698dcdb6 3993
10f2d63a 3994
698dcdb6
VZ
3995
3996 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
9f41d601 3997echo "configure:3998: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
3998 no_cache=0
3999 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4000if test "${enable_catch_segvs+set}" = set; then
4001 enableval="$enable_catch_segvs"
698dcdb6 4002
eb4efbdc
VZ
4003 if test "$enableval" = yes; then
4004 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4005 else
4006 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4007 fi
698dcdb6 4008
eb4efbdc 4009else
698dcdb6 4010
eb4efbdc
VZ
4011 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4012 if test "x$LINE" != x ; then
4013 eval "DEFAULT_$LINE"
4014 else
4015 no_cache=1
4016 fi
4017
4018 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4019
4020fi
eb4efbdc
VZ
4021
4022
4023 eval "$ac_cv_use_catch_segvs"
4024 if test "$no_cache" != 1; then
4025 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4026 fi
4027
4028 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4029 echo "$ac_t""yes" 1>&6
eb4efbdc 4030 else
698dcdb6 4031 echo "$ac_t""no" 1>&6
eb4efbdc 4032 fi
698dcdb6 4033
eb4efbdc 4034
698dcdb6 4035 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
9f41d601 4036echo "configure:4037: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4037 no_cache=0
4038 # Check whether --enable-snglinst or --disable-snglinst was given.
4039if test "${enable_snglinst+set}" = set; then
4040 enableval="$enable_snglinst"
698dcdb6 4041
4f3c5f06
VZ
4042 if test "$enableval" = yes; then
4043 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4044 else
4045 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4046 fi
698dcdb6 4047
4f3c5f06 4048else
698dcdb6 4049
4f3c5f06
VZ
4050 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4051 if test "x$LINE" != x ; then
4052 eval "DEFAULT_$LINE"
4053 else
4054 no_cache=1
4055 fi
4056
4057 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4058
4059fi
4f3c5f06
VZ
4060
4061
4062 eval "$ac_cv_use_snglinst"
4063 if test "$no_cache" != 1; then
4064 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4065 fi
4066
4067 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4068 echo "$ac_t""yes" 1>&6
4f3c5f06 4069 else
698dcdb6 4070 echo "$ac_t""no" 1>&6
4f3c5f06 4071 fi
698dcdb6
VZ
4072
4073
eb4efbdc 4074
1e6feb95 4075 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
9f41d601 4076echo "configure:4077: checking for --enable-mimetype" >&5
1e6feb95
VZ
4077 no_cache=0
4078 # Check whether --enable-mimetype or --disable-mimetype was given.
4079if test "${enable_mimetype+set}" = set; then
4080 enableval="$enable_mimetype"
4081
4082 if test "$enableval" = yes; then
4083 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4084 else
4085 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4086 fi
4087
4088else
4089
4090 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4091 if test "x$LINE" != x ; then
4092 eval "DEFAULT_$LINE"
4093 else
4094 no_cache=1
4095 fi
4096
4097 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4098
4099fi
4100
4101
4102 eval "$ac_cv_use_mimetype"
4103 if test "$no_cache" != 1; then
4104 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4105 fi
4106
4107 if test "$wxUSE_MIMETYPE" = yes; then
4108 echo "$ac_t""yes" 1>&6
4109 else
4110 echo "$ac_t""no" 1>&6
4111 fi
4112
4113
4114
698dcdb6
VZ
4115
4116 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
9f41d601 4117echo "configure:4118: checking for --enable-threads" >&5
10f2d63a
VZ
4118 no_cache=0
4119 # Check whether --enable-threads or --disable-threads was given.
4120if test "${enable_threads+set}" = set; then
4121 enableval="$enable_threads"
698dcdb6 4122
10f2d63a
VZ
4123 if test "$enableval" = yes; then
4124 ac_cv_use_threads='wxUSE_THREADS=yes'
4125 else
4126 ac_cv_use_threads='wxUSE_THREADS=no'
4127 fi
698dcdb6 4128
10f2d63a 4129else
698dcdb6 4130
10f2d63a
VZ
4131 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4132 if test "x$LINE" != x ; then
4133 eval "DEFAULT_$LINE"
4134 else
4135 no_cache=1
4136 fi
4137
4138 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4139
4140fi
10f2d63a
VZ
4141
4142
4143 eval "$ac_cv_use_threads"
4144 if test "$no_cache" != 1; then
4145 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4146 fi
4147
4148 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4149 echo "$ac_t""yes" 1>&6
10f2d63a 4150 else
698dcdb6 4151 echo "$ac_t""no" 1>&6
10f2d63a 4152 fi
698dcdb6 4153
10f2d63a 4154
698dcdb6 4155 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
9f41d601 4156echo "configure:4157: checking for --enable-serial" >&5
10f2d63a
VZ
4157 no_cache=0
4158 # Check whether --enable-serial or --disable-serial was given.
4159if test "${enable_serial+set}" = set; then
4160 enableval="$enable_serial"
698dcdb6 4161
10f2d63a
VZ
4162 if test "$enableval" = yes; then
4163 ac_cv_use_serial='wxUSE_SERIAL=yes'
4164 else
4165 ac_cv_use_serial='wxUSE_SERIAL=no'
4166 fi
698dcdb6 4167
10f2d63a 4168else
698dcdb6 4169
10f2d63a
VZ
4170 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4171 if test "x$LINE" != x ; then
4172 eval "DEFAULT_$LINE"
4173 else
4174 no_cache=1
4175 fi
4176
4177 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
698dcdb6
VZ
4178
4179fi
10f2d63a
VZ
4180
4181
4182 eval "$ac_cv_use_serial"
4183 if test "$no_cache" != 1; then
4184 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4185 fi
4186
4187 if test "$wxUSE_SERIAL" = yes; then
698dcdb6 4188 echo "$ac_t""yes" 1>&6
10f2d63a 4189 else
698dcdb6 4190 echo "$ac_t""no" 1>&6
10f2d63a 4191 fi
698dcdb6 4192
10f2d63a 4193
b12915c1
VZ
4194if test "$wxUSE_GUI" = "yes"; then
4195
698dcdb6
VZ
4196
4197
4198 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
9f41d601 4199echo "configure:4200: checking for --enable-docview" >&5
10f2d63a
VZ
4200 no_cache=0
4201 # Check whether --enable-docview or --disable-docview was given.
4202if test "${enable_docview+set}" = set; then
4203 enableval="$enable_docview"
698dcdb6 4204
10f2d63a
VZ
4205 if test "$enableval" = yes; then
4206 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4207 else
4208 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4209 fi
698dcdb6 4210
10f2d63a 4211else
698dcdb6 4212
10f2d63a
VZ
4213 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4214 if test "x$LINE" != x ; then
4215 eval "DEFAULT_$LINE"
4216 else
4217 no_cache=1
4218 fi
4219
4220 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4221
4222fi
10f2d63a
VZ
4223
4224
4225 eval "$ac_cv_use_docview"
4226 if test "$no_cache" != 1; then
4227 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4228 fi
4229
4230 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4231 echo "$ac_t""yes" 1>&6
10f2d63a 4232 else
698dcdb6 4233 echo "$ac_t""no" 1>&6
10f2d63a 4234 fi
698dcdb6 4235
10f2d63a 4236
698dcdb6 4237 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
9f41d601 4238echo "configure:4239: checking for --enable-help" >&5
10f2d63a
VZ
4239 no_cache=0
4240 # Check whether --enable-help or --disable-help was given.
4241if test "${enable_help+set}" = set; then
4242 enableval="$enable_help"
698dcdb6 4243
10f2d63a
VZ
4244 if test "$enableval" = yes; then
4245 ac_cv_use_help='wxUSE_HELP=yes'
4246 else
4247 ac_cv_use_help='wxUSE_HELP=no'
4248 fi
698dcdb6 4249
10f2d63a 4250else
698dcdb6 4251
10f2d63a
VZ
4252 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4253 if test "x$LINE" != x ; then
4254 eval "DEFAULT_$LINE"
4255 else
4256 no_cache=1
4257 fi
4258
4259 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4260
4261fi
10f2d63a
VZ
4262
4263
4264 eval "$ac_cv_use_help"
4265 if test "$no_cache" != 1; then
4266 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4267 fi
4268
4269 if test "$wxUSE_HELP" = yes; then
698dcdb6 4270 echo "$ac_t""yes" 1>&6
10f2d63a 4271 else
698dcdb6 4272 echo "$ac_t""no" 1>&6
10f2d63a 4273 fi
698dcdb6 4274
10f2d63a 4275
3379ed37 4276 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
9f41d601 4277echo "configure:4278: checking for --enable-html" >&5
3379ed37
VZ
4278 no_cache=0
4279 # Check whether --enable-html or --disable-html was given.
4280if test "${enable_html+set}" = set; then
4281 enableval="$enable_html"
4282
4283 if test "$enableval" = yes; then
4284 ac_cv_use_html='wxUSE_HTML=yes'
4285 else
4286 ac_cv_use_html='wxUSE_HTML=no'
4287 fi
4288
4289else
4290
4291 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4292 if test "x$LINE" != x ; then
4293 eval "DEFAULT_$LINE"
4294 else
4295 no_cache=1
4296 fi
4297
4298 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4299
4300fi
4301
4302
4303 eval "$ac_cv_use_html"
4304 if test "$no_cache" != 1; then
4305 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4306 fi
4307
4308 if test "$wxUSE_HTML" = yes; then
4309 echo "$ac_t""yes" 1>&6
4310 else
4311 echo "$ac_t""no" 1>&6
4312 fi
4313
4314
4315 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
9f41d601 4316echo "configure:4317: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4317 no_cache=0
4318 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4319if test "${enable_htmlhelp+set}" = set; then
4320 enableval="$enable_htmlhelp"
4321
4322 if test "$enableval" = yes; then
4323 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4324 else
4325 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4326 fi
4327
4328else
4329
4330 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4331 if test "x$LINE" != x ; then
4332 eval "DEFAULT_$LINE"
4333 else
4334 no_cache=1
4335 fi
4336
4337 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4338
4339fi
4340
4341
4342 eval "$ac_cv_use_htmlhelp"
4343 if test "$no_cache" != 1; then
4344 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4345 fi
4346
4347 if test "$wxUSE_WXHTML_HELP" = yes; then
4348 echo "$ac_t""yes" 1>&6
4349 else
4350 echo "$ac_t""no" 1>&6
4351 fi
4352
4353
698dcdb6 4354 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
9f41d601 4355echo "configure:4356: checking for --enable-constraints" >&5
10f2d63a
VZ
4356 no_cache=0
4357 # Check whether --enable-constraints or --disable-constraints was given.
4358if test "${enable_constraints+set}" = set; then
4359 enableval="$enable_constraints"
698dcdb6 4360
10f2d63a
VZ
4361 if test "$enableval" = yes; then
4362 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4363 else
4364 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4365 fi
698dcdb6 4366
10f2d63a 4367else
698dcdb6 4368
10f2d63a
VZ
4369 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4370 if test "x$LINE" != x ; then
4371 eval "DEFAULT_$LINE"
4372 else
4373 no_cache=1
4374 fi
4375
4376 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
4377
4378fi
10f2d63a
VZ
4379
4380
4381 eval "$ac_cv_use_constraints"
4382 if test "$no_cache" != 1; then
4383 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4384 fi
4385
4386 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 4387 echo "$ac_t""yes" 1>&6
10f2d63a 4388 else
698dcdb6 4389 echo "$ac_t""no" 1>&6
10f2d63a 4390 fi
698dcdb6 4391
10f2d63a 4392
698dcdb6 4393 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
9f41d601 4394echo "configure:4395: checking for --enable-printarch" >&5
10f2d63a
VZ
4395 no_cache=0
4396 # Check whether --enable-printarch or --disable-printarch was given.
4397if test "${enable_printarch+set}" = set; then
4398 enableval="$enable_printarch"
698dcdb6 4399
10f2d63a
VZ
4400 if test "$enableval" = yes; then
4401 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4402 else
4403 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4404 fi
698dcdb6 4405
10f2d63a 4406else
698dcdb6 4407
10f2d63a
VZ
4408 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4409 if test "x$LINE" != x ; then
4410 eval "DEFAULT_$LINE"
4411 else
4412 no_cache=1
4413 fi
4414
4415 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
4416
4417fi
10f2d63a
VZ
4418
4419
4420 eval "$ac_cv_use_printarch"
4421 if test "$no_cache" != 1; then
4422 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4423 fi
4424
4425 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 4426 echo "$ac_t""yes" 1>&6
10f2d63a 4427 else
698dcdb6 4428 echo "$ac_t""no" 1>&6
10f2d63a 4429 fi
698dcdb6 4430
10f2d63a 4431
698dcdb6 4432 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
9f41d601 4433echo "configure:4434: checking for --enable-mdi" >&5
10f2d63a
VZ
4434 no_cache=0
4435 # Check whether --enable-mdi or --disable-mdi was given.
4436if test "${enable_mdi+set}" = set; then
4437 enableval="$enable_mdi"
698dcdb6 4438
10f2d63a
VZ
4439 if test "$enableval" = yes; then
4440 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4441 else
4442 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4443 fi
698dcdb6 4444
10f2d63a 4445else
698dcdb6 4446
10f2d63a
VZ
4447 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4448 if test "x$LINE" != x ; then
4449 eval "DEFAULT_$LINE"
4450 else
4451 no_cache=1
4452 fi
4453
4454 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
4455
4456fi
10f2d63a
VZ
4457
4458
4459 eval "$ac_cv_use_mdi"
4460 if test "$no_cache" != 1; then
4461 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4462 fi
4463
4464 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 4465 echo "$ac_t""yes" 1>&6
10f2d63a 4466 else
698dcdb6 4467 echo "$ac_t""no" 1>&6
10f2d63a 4468 fi
698dcdb6
VZ
4469
4470
1e6feb95 4471 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
9f41d601 4472echo "configure:4473: checking for --enable-loggui" >&5
1e6feb95
VZ
4473 no_cache=0
4474 # Check whether --enable-loggui or --disable-loggui was given.
4475if test "${enable_loggui+set}" = set; then
4476 enableval="$enable_loggui"
4477
4478 if test "$enableval" = yes; then
4479 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4480 else
4481 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4482 fi
4483
4484else
4485
4486 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4487 if test "x$LINE" != x ; then
4488 eval "DEFAULT_$LINE"
4489 else
4490 no_cache=1
4491 fi
4492
4493 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4494
4495fi
4496
4497
4498 eval "$ac_cv_use_loggui"
4499 if test "$no_cache" != 1; then
4500 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4501 fi
4502
4503 if test "$wxUSE_LOGGUI" = yes; then
4504 echo "$ac_t""yes" 1>&6
4505 else
4506 echo "$ac_t""no" 1>&6
4507 fi
4508
4509
4510 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
9f41d601 4511echo "configure:4512: checking for --enable-logwin" >&5
1e6feb95
VZ
4512 no_cache=0
4513 # Check whether --enable-logwin or --disable-logwin was given.
4514if test "${enable_logwin+set}" = set; then
4515 enableval="$enable_logwin"
4516
4517 if test "$enableval" = yes; then
4518 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4519 else
4520 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4521 fi
4522
4523else
4524
4525 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4526 if test "x$LINE" != x ; then
4527 eval "DEFAULT_$LINE"
4528 else
4529 no_cache=1
4530 fi
4531
4532 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4533
4534fi
4535
4536
4537 eval "$ac_cv_use_logwin"
4538 if test "$no_cache" != 1; then
4539 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4540 fi
4541
4542 if test "$wxUSE_LOGWINDOW" = yes; then
4543 echo "$ac_t""yes" 1>&6
4544 else
4545 echo "$ac_t""no" 1>&6
4546 fi
4547
4548
10f2d63a 4549
698dcdb6 4550 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
9f41d601 4551echo "configure:4552: checking for --enable-postscript" >&5
10f2d63a
VZ
4552 no_cache=0
4553 # Check whether --enable-postscript or --disable-postscript was given.
4554if test "${enable_postscript+set}" = set; then
4555 enableval="$enable_postscript"
698dcdb6 4556
10f2d63a
VZ
4557 if test "$enableval" = yes; then
4558 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4559 else
4560 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4561 fi
698dcdb6 4562
10f2d63a 4563else
698dcdb6 4564
10f2d63a
VZ
4565 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4566 if test "x$LINE" != x ; then
4567 eval "DEFAULT_$LINE"
4568 else
4569 no_cache=1
4570 fi
4571
4572 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
4573
4574fi
10f2d63a
VZ
4575
4576
4577 eval "$ac_cv_use_postscript"
4578 if test "$no_cache" != 1; then
4579 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4580 fi
4581
4582 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 4583 echo "$ac_t""yes" 1>&6
10f2d63a 4584 else
698dcdb6 4585 echo "$ac_t""no" 1>&6
10f2d63a 4586 fi
698dcdb6
VZ
4587
4588
4589
10f2d63a 4590
1e6feb95 4591
698dcdb6 4592 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
9f41d601 4593echo "configure:4594: checking for --enable-prologio" >&5
10f2d63a
VZ
4594 no_cache=0
4595 # Check whether --enable-prologio or --disable-prologio was given.
4596if test "${enable_prologio+set}" = set; then
4597 enableval="$enable_prologio"
698dcdb6 4598
10f2d63a
VZ
4599 if test "$enableval" = yes; then
4600 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4601 else
4602 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4603 fi
698dcdb6 4604
10f2d63a 4605else
698dcdb6 4606
10f2d63a
VZ
4607 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4608 if test "x$LINE" != x ; then
4609 eval "DEFAULT_$LINE"
4610 else
4611 no_cache=1
4612 fi
4613
4614 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
4615
4616fi
10f2d63a
VZ
4617
4618
4619 eval "$ac_cv_use_prologio"
4620 if test "$no_cache" != 1; then
4621 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4622 fi
4623
4624 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 4625 echo "$ac_t""yes" 1>&6
10f2d63a 4626 else
698dcdb6 4627 echo "$ac_t""no" 1>&6
10f2d63a 4628 fi
698dcdb6 4629
10f2d63a 4630
698dcdb6 4631 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
9f41d601 4632echo "configure:4633: checking for --enable-resources" >&5
10f2d63a
VZ
4633 no_cache=0
4634 # Check whether --enable-resources or --disable-resources was given.
4635if test "${enable_resources+set}" = set; then
4636 enableval="$enable_resources"
698dcdb6 4637
10f2d63a
VZ
4638 if test "$enableval" = yes; then
4639 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4640 else
4641 ac_cv_use_resources='wxUSE_RESOURCES=no'
4642 fi
698dcdb6 4643
10f2d63a 4644else
698dcdb6 4645
10f2d63a
VZ
4646 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4647 if test "x$LINE" != x ; then
4648 eval "DEFAULT_$LINE"
4649 else
4650 no_cache=1
4651 fi
4652
4653 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
4654
4655fi
10f2d63a
VZ
4656
4657
4658 eval "$ac_cv_use_resources"
4659 if test "$no_cache" != 1; then
4660 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4661 fi
4662
4663 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 4664 echo "$ac_t""yes" 1>&6
10f2d63a 4665 else
698dcdb6 4666 echo "$ac_t""no" 1>&6
10f2d63a 4667 fi
698dcdb6 4668
10f2d63a 4669
698dcdb6
VZ
4670
4671 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
9f41d601 4672echo "configure:4673: checking for --enable-xresources" >&5
10f2d63a
VZ
4673 no_cache=0
4674 # Check whether --enable-xresources or --disable-xresources was given.
4675if test "${enable_xresources+set}" = set; then
4676 enableval="$enable_xresources"
698dcdb6 4677
10f2d63a
VZ
4678 if test "$enableval" = yes; then
4679 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4680 else
4681 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4682 fi
698dcdb6 4683
10f2d63a 4684else
698dcdb6 4685
10f2d63a
VZ
4686 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4687 if test "x$LINE" != x ; then
4688 eval "DEFAULT_$LINE"
4689 else
4690 no_cache=1
4691 fi
4692
4693 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
4694
4695fi
10f2d63a
VZ
4696
4697
4698 eval "$ac_cv_use_xresources"
4699 if test "$no_cache" != 1; then
4700 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4701 fi
4702
4703 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 4704 echo "$ac_t""yes" 1>&6
10f2d63a 4705 else
698dcdb6 4706 echo "$ac_t""no" 1>&6
10f2d63a 4707 fi
698dcdb6
VZ
4708
4709
10f2d63a 4710
698dcdb6
VZ
4711
4712 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
9f41d601 4713echo "configure:4714: checking for --enable-clipboard" >&5
10f2d63a
VZ
4714 no_cache=0
4715 # Check whether --enable-clipboard or --disable-clipboard was given.
4716if test "${enable_clipboard+set}" = set; then
4717 enableval="$enable_clipboard"
698dcdb6 4718
10f2d63a
VZ
4719 if test "$enableval" = yes; then
4720 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4721 else
4722 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4723 fi
698dcdb6 4724
10f2d63a 4725else
698dcdb6 4726
10f2d63a
VZ
4727 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4728 if test "x$LINE" != x ; then
4729 eval "DEFAULT_$LINE"
4730 else
4731 no_cache=1
4732 fi
4733
4734 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
4735
4736fi
10f2d63a
VZ
4737
4738
4739 eval "$ac_cv_use_clipboard"
4740 if test "$no_cache" != 1; then
4741 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4742 fi
4743
4744 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 4745 echo "$ac_t""yes" 1>&6
10f2d63a 4746 else
698dcdb6 4747 echo "$ac_t""no" 1>&6
10f2d63a 4748 fi
698dcdb6 4749
10f2d63a 4750
698dcdb6 4751 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
9f41d601 4752echo "configure:4753: checking for --enable-dnd" >&5
10f2d63a
VZ
4753 no_cache=0
4754 # Check whether --enable-dnd or --disable-dnd was given.
4755if test "${enable_dnd+set}" = set; then
4756 enableval="$enable_dnd"
698dcdb6 4757
10f2d63a
VZ
4758 if test "$enableval" = yes; then
4759 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4760 else
4761 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4762 fi
698dcdb6 4763
10f2d63a 4764else
698dcdb6 4765
10f2d63a
VZ
4766 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4767 if test "x$LINE" != x ; then
4768 eval "DEFAULT_$LINE"
4769 else
4770 no_cache=1
4771 fi
4772
4773 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
4774
4775fi
10f2d63a
VZ
4776
4777
4778 eval "$ac_cv_use_dnd"
4779 if test "$no_cache" != 1; then
4780 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4781 fi
4782
4783 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 4784 echo "$ac_t""yes" 1>&6
10f2d63a 4785 else
698dcdb6 4786 echo "$ac_t""no" 1>&6
10f2d63a 4787 fi
698dcdb6 4788
10f2d63a 4789
698dcdb6 4790 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
9f41d601 4791echo "configure:4792: checking for --enable-metafile" >&5
b64f0a5f
RL
4792 no_cache=0
4793 # Check whether --enable-metafile or --disable-metafile was given.
4794if test "${enable_metafile+set}" = set; then
4795 enableval="$enable_metafile"
698dcdb6 4796
b64f0a5f
RL
4797 if test "$enableval" = yes; then
4798 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4799 else
4800 ac_cv_use_metafile='wxUSE_METAFILE=no'
4801 fi
698dcdb6 4802
b64f0a5f 4803else
698dcdb6 4804
b64f0a5f
RL
4805 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4806 if test "x$LINE" != x ; then
4807 eval "DEFAULT_$LINE"
4808 else
4809 no_cache=1
4810 fi
4811
4812 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
4813
4814fi
b64f0a5f
RL
4815
4816
4817 eval "$ac_cv_use_metafile"
4818 if test "$no_cache" != 1; then
4819 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4820 fi
4821
4822 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 4823 echo "$ac_t""yes" 1>&6
b64f0a5f 4824 else
698dcdb6 4825 echo "$ac_t""no" 1>&6
b64f0a5f 4826 fi
698dcdb6
VZ
4827
4828
10f2d63a 4829
698dcdb6 4830 echo $ac_n "checking for --enable-wxtree""... $ac_c" 1>&6
9f41d601 4831echo "configure:4832: checking for --enable-wxtree" >&5
10f2d63a
VZ
4832 no_cache=0
4833 # Check whether --enable-wxtree or --disable-wxtree was given.
4834if test "${enable_wxtree+set}" = set; then
4835 enableval="$enable_wxtree"
698dcdb6 4836
10f2d63a
VZ
4837 if test "$enableval" = yes; then
4838 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
4839 else
4840 ac_cv_use_wxtree='wxUSE_WXTREE=no'
4841 fi
698dcdb6 4842
10f2d63a 4843else
698dcdb6 4844
10f2d63a
VZ
4845 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
4846 if test "x$LINE" != x ; then
4847 eval "DEFAULT_$LINE"
4848 else
4849 no_cache=1
4850 fi
4851
4852 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
698dcdb6
VZ
4853
4854fi
10f2d63a
VZ
4855
4856
4857 eval "$ac_cv_use_wxtree"
4858 if test "$no_cache" != 1; then
4859 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
4860 fi
4861
4862 if test "$wxUSE_WXTREE" = yes; then
698dcdb6 4863 echo "$ac_t""yes" 1>&6
10f2d63a 4864 else
698dcdb6 4865 echo "$ac_t""no" 1>&6
10f2d63a 4866 fi
698dcdb6 4867
10f2d63a 4868
698dcdb6
VZ
4869
4870
4871 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
9f41d601 4872echo "configure:4873: checking for --enable-controls" >&5
10f2d63a
VZ
4873 no_cache=0
4874 # Check whether --enable-controls or --disable-controls was given.
4875if test "${enable_controls+set}" = set; then
4876 enableval="$enable_controls"
698dcdb6 4877
10f2d63a
VZ
4878 if test "$enableval" = yes; then
4879 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4880 else
4881 ac_cv_use_controls='wxUSE_CONTROLS=no'
4882 fi
698dcdb6 4883
10f2d63a 4884else
698dcdb6 4885
10f2d63a
VZ
4886 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4887 if test "x$LINE" != x ; then
4888 eval "DEFAULT_$LINE"
4889 else
4890 no_cache=1
4891 fi
4892
4893 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
4894
4895fi
10f2d63a
VZ
4896
4897
4898 eval "$ac_cv_use_controls"
4899 if test "$no_cache" != 1; then
4900 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
4901 fi
4902
4903 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 4904 echo "$ac_t""yes" 1>&6
10f2d63a 4905 else
698dcdb6 4906 echo "$ac_t""no" 1>&6
10f2d63a 4907 fi
698dcdb6 4908
10f2d63a
VZ
4909
4910if test "$wxUSE_CONTROLS" = "yes"; then
4911 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
4912 DEFAULT_wxUSE_BMPBUTTON=yes
4913 DEFAULT_wxUSE_BUTTON=yes
4914 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
4915 DEFAULT_wxUSE_CARET=yes
4916 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
4917 DEFAULT_wxUSE_CHECKBOX=yes
4918 DEFAULT_wxUSE_CHECKLISTBOX=yes
4919 DEFAULT_wxUSE_CHOICE=yes
4920 DEFAULT_wxUSE_GAUGE=yes
4921 DEFAULT_wxUSE_GRID=yes
cc977e5f 4922 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
4923 DEFAULT_wxUSE_IMAGLIST=yes
4924 DEFAULT_wxUSE_LISTBOX=yes
4925 DEFAULT_wxUSE_LISTCTRL=yes
4926 DEFAULT_wxUSE_NOTEBOOK=yes
4927 DEFAULT_wxUSE_RADIOBOX=yes
4928 DEFAULT_wxUSE_RADIOBTN=yes
4929 DEFAULT_wxUSE_SASH=yes
4930 DEFAULT_wxUSE_SCROLLBAR=yes
4931 DEFAULT_wxUSE_SLIDER=yes
4932 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 4933 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
4934 DEFAULT_wxUSE_SPLITTER=yes
4935 DEFAULT_wxUSE_STATBMP=yes
4936 DEFAULT_wxUSE_STATBOX=yes
4937 DEFAULT_wxUSE_STATLINE=yes
4938 DEFAULT_wxUSE_STATUSBAR=yes
4939 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 4940 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 4941 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
4942 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4943 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
4944 DEFAULT_wxUSE_TOOLTIPS=yes
4945 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 4946 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
4947elif test "$wxUSE_CONTROLS" = "no"; then
4948 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
4949 DEFAULT_wxUSE_BMPBUTTON=no
4950 DEFAULT_wxUSE_BUTTON=no
4951 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
4952 DEFAULT_wxUSE_CARET=no
4953 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
4954 DEFAULT_wxUSE_CHECKBOX=no
4955 DEFAULT_wxUSE_CHECKLISTBOX=no
4956 DEFAULT_wxUSE_CHOICE=no
4957 DEFAULT_wxUSE_GAUGE=no
4958 DEFAULT_wxUSE_GRID=no
4959 DEFAULT_wxUSE_NEW_GRID=no
4960 DEFAULT_wxUSE_IMAGLIST=no
4961 DEFAULT_wxUSE_LISTBOX=no
4962 DEFAULT_wxUSE_LISTCTRL=no
4963 DEFAULT_wxUSE_NOTEBOOK=no
4964 DEFAULT_wxUSE_RADIOBOX=no
4965 DEFAULT_wxUSE_RADIOBTN=no
4966 DEFAULT_wxUSE_SASH=no
4967 DEFAULT_wxUSE_SCROLLBAR=no
4968 DEFAULT_wxUSE_SLIDER=no
4969 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 4970 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
4971 DEFAULT_wxUSE_SPLITTER=no
4972 DEFAULT_wxUSE_STATBMP=no
4973 DEFAULT_wxUSE_STATBOX=no
4974 DEFAULT_wxUSE_STATLINE=no
4975 DEFAULT_wxUSE_STATUSBAR=no
4976 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 4977 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 4978 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
4979 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4980 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
4981 DEFAULT_wxUSE_TOOLTIPS=no
4982 DEFAULT_wxUSE_TREECTRL=no
9f41d601 4983 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
4984fi
4985
698dcdb6
VZ
4986
4987 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
9f41d601 4988echo "configure:4989: checking for --enable-accel" >&5
10f2d63a
VZ
4989 no_cache=0
4990 # Check whether --enable-accel or --disable-accel was given.
4991if test "${enable_accel+set}" = set; then
4992 enableval="$enable_accel"
698dcdb6 4993
10f2d63a
VZ
4994 if test "$enableval" = yes; then
4995 ac_cv_use_accel='wxUSE_ACCEL=yes'
4996 else
4997 ac_cv_use_accel='wxUSE_ACCEL=no'
4998 fi
698dcdb6 4999
10f2d63a 5000else
698dcdb6 5001
10f2d63a
VZ
5002 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5003 if test "x$LINE" != x ; then
5004 eval "DEFAULT_$LINE"
5005 else
5006 no_cache=1
5007 fi
5008
5009 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5010
5011fi
10f2d63a
VZ
5012
5013
5014 eval "$ac_cv_use_accel"
5015 if test "$no_cache" != 1; then
5016 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5017 fi
5018
5019 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5020 echo "$ac_t""yes" 1>&6
10f2d63a 5021 else
698dcdb6 5022 echo "$ac_t""no" 1>&6
10f2d63a 5023 fi
698dcdb6 5024
10f2d63a 5025
1e6feb95 5026 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
9f41d601 5027echo "configure:5028: checking for --enable-button" >&5
10f2d63a 5028 no_cache=0
1e6feb95
VZ
5029 # Check whether --enable-button or --disable-button was given.
5030if test "${enable_button+set}" = set; then
5031 enableval="$enable_button"
698dcdb6 5032
10f2d63a 5033 if test "$enableval" = yes; then
1e6feb95 5034 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5035 else
1e6feb95 5036 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5037 fi
698dcdb6 5038
10f2d63a 5039else
698dcdb6 5040
1e6feb95 5041 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5042 if test "x$LINE" != x ; then
5043 eval "DEFAULT_$LINE"
5044 else
5045 no_cache=1
5046 fi
5047
1e6feb95 5048 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5049
5050fi
10f2d63a
VZ
5051
5052
1e6feb95 5053 eval "$ac_cv_use_button"
10f2d63a 5054 if test "$no_cache" != 1; then
1e6feb95 5055 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5056 fi
5057
1e6feb95 5058 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5059 echo "$ac_t""yes" 1>&6
10f2d63a 5060 else
698dcdb6 5061 echo "$ac_t""no" 1>&6
10f2d63a 5062 fi
698dcdb6 5063
10f2d63a 5064
698dcdb6 5065 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
9f41d601 5066echo "configure:5067: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5067 no_cache=0
5068 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5069if test "${enable_bmpbutton+set}" = set; then
5070 enableval="$enable_bmpbutton"
698dcdb6 5071
10f2d63a
VZ
5072 if test "$enableval" = yes; then
5073 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5074 else
5075 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5076 fi
698dcdb6 5077
10f2d63a 5078else
698dcdb6 5079
10f2d63a
VZ
5080 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5081 if test "x$LINE" != x ; then
5082 eval "DEFAULT_$LINE"
5083 else
5084 no_cache=1
5085 fi
5086
5087 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5088
5089fi
10f2d63a
VZ
5090
5091
5092 eval "$ac_cv_use_bmpbutton"
5093 if test "$no_cache" != 1; then
5094 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5095 fi
5096
5097 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5098 echo "$ac_t""yes" 1>&6
10f2d63a 5099 else
698dcdb6 5100 echo "$ac_t""no" 1>&6
10f2d63a 5101 fi
698dcdb6 5102
10f2d63a 5103
1e6feb95 5104 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
9f41d601 5105echo "configure:5106: checking for --enable-calendar" >&5
1e6feb95
VZ
5106 no_cache=0
5107 # Check whether --enable-calendar or --disable-calendar was given.
5108if test "${enable_calendar+set}" = set; then
5109 enableval="$enable_calendar"
5110
5111 if test "$enableval" = yes; then
5112 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5113 else
5114 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5115 fi
5116
5117else
5118
5119 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5120 if test "x$LINE" != x ; then
5121 eval "DEFAULT_$LINE"
5122 else
5123 no_cache=1
5124 fi
5125
5126 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5127
5128fi
5129
5130
5131 eval "$ac_cv_use_calendar"
5132 if test "$no_cache" != 1; then
5133 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5134 fi
5135
5136 if test "$wxUSE_CALCTRL" = yes; then
5137 echo "$ac_t""yes" 1>&6
5138 else
5139 echo "$ac_t""no" 1>&6
5140 fi
5141
5142
5143 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
9f41d601 5144echo "configure:5145: checking for --enable-caret" >&5
1e6feb95
VZ
5145 no_cache=0
5146 # Check whether --enable-caret or --disable-caret was given.
5147if test "${enable_caret+set}" = set; then
5148 enableval="$enable_caret"
5149
5150 if test "$enableval" = yes; then
5151 ac_cv_use_caret='wxUSE_CARET=yes'
5152 else
5153 ac_cv_use_caret='wxUSE_CARET=no'
5154 fi
5155
5156else
5157
5158 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5159 if test "x$LINE" != x ; then
5160 eval "DEFAULT_$LINE"
5161 else
5162 no_cache=1
5163 fi
5164
5165 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5166
5167fi
5168
5169
5170 eval "$ac_cv_use_caret"
5171 if test "$no_cache" != 1; then
5172 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5173 fi
5174
5175 if test "$wxUSE_CARET" = yes; then
5176 echo "$ac_t""yes" 1>&6
5177 else
5178 echo "$ac_t""no" 1>&6
5179 fi
5180
5181
698dcdb6 5182 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
9f41d601 5183echo "configure:5184: checking for --enable-checkbox" >&5
10f2d63a
VZ
5184 no_cache=0
5185 # Check whether --enable-checkbox or --disable-checkbox was given.
5186if test "${enable_checkbox+set}" = set; then
5187 enableval="$enable_checkbox"
698dcdb6 5188
10f2d63a
VZ
5189 if test "$enableval" = yes; then
5190 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5191 else
5192 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5193 fi
698dcdb6 5194
10f2d63a 5195else
698dcdb6 5196
10f2d63a
VZ
5197 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5198 if test "x$LINE" != x ; then
5199 eval "DEFAULT_$LINE"
5200 else
5201 no_cache=1
5202 fi
5203
5204 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5205
5206fi
10f2d63a
VZ
5207
5208
5209 eval "$ac_cv_use_checkbox"
5210 if test "$no_cache" != 1; then
5211 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5212 fi
5213
5214 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5215 echo "$ac_t""yes" 1>&6
10f2d63a 5216 else
698dcdb6 5217 echo "$ac_t""no" 1>&6
10f2d63a 5218 fi
698dcdb6 5219
10f2d63a 5220
698dcdb6 5221 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
9f41d601 5222echo "configure:5223: checking for --enable-checklst" >&5
10f2d63a
VZ
5223 no_cache=0
5224 # Check whether --enable-checklst or --disable-checklst was given.
5225if test "${enable_checklst+set}" = set; then
5226 enableval="$enable_checklst"
698dcdb6 5227
10f2d63a
VZ
5228 if test "$enableval" = yes; then
5229 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5230 else
5231 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5232 fi
698dcdb6 5233
10f2d63a 5234else
698dcdb6 5235
10f2d63a
VZ
5236 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5237 if test "x$LINE" != x ; then
5238 eval "DEFAULT_$LINE"
5239 else
5240 no_cache=1
5241 fi
5242
5243 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5244
5245fi
10f2d63a
VZ
5246
5247
5248 eval "$ac_cv_use_checklst"
5249 if test "$no_cache" != 1; then
5250 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5251 fi
5252
5253 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5254 echo "$ac_t""yes" 1>&6
10f2d63a 5255 else
698dcdb6 5256 echo "$ac_t""no" 1>&6
10f2d63a 5257 fi
698dcdb6 5258
10f2d63a 5259
698dcdb6 5260 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
9f41d601 5261echo "configure:5262: checking for --enable-choice" >&5
10f2d63a
VZ
5262 no_cache=0
5263 # Check whether --enable-choice or --disable-choice was given.
5264if test "${enable_choice+set}" = set; then
5265 enableval="$enable_choice"
698dcdb6 5266
10f2d63a
VZ
5267 if test "$enableval" = yes; then
5268 ac_cv_use_choice='wxUSE_CHOICE=yes'
5269 else
5270 ac_cv_use_choice='wxUSE_CHOICE=no'
5271 fi
698dcdb6 5272
10f2d63a 5273else
698dcdb6 5274
10f2d63a
VZ
5275 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5276 if test "x$LINE" != x ; then
5277 eval "DEFAULT_$LINE"
5278 else
5279 no_cache=1
5280 fi
5281
5282 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5283
5284fi
10f2d63a
VZ
5285
5286
5287 eval "$ac_cv_use_choice"
5288 if test "$no_cache" != 1; then
5289 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5290 fi
5291
5292 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5293 echo "$ac_t""yes" 1>&6
10f2d63a 5294 else
698dcdb6 5295 echo "$ac_t""no" 1>&6
10f2d63a 5296 fi
698dcdb6 5297
10f2d63a 5298
698dcdb6 5299 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
9f41d601 5300echo "configure:5301: checking for --enable-combobox" >&5
10f2d63a
VZ
5301 no_cache=0
5302 # Check whether --enable-combobox or --disable-combobox was given.
5303if test "${enable_combobox+set}" = set; then
5304 enableval="$enable_combobox"
698dcdb6 5305
10f2d63a
VZ
5306 if test "$enableval" = yes; then
5307 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5308 else
5309 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5310 fi
698dcdb6 5311
10f2d63a 5312else
698dcdb6 5313
10f2d63a
VZ
5314 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5315 if test "x$LINE" != x ; then
5316 eval "DEFAULT_$LINE"
5317 else
5318 no_cache=1
5319 fi
5320
5321 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
5322
5323fi
10f2d63a
VZ
5324
5325
5326 eval "$ac_cv_use_combobox"
5327 if test "$no_cache" != 1; then
5328 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5329 fi
5330
5331 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 5332 echo "$ac_t""yes" 1>&6
10f2d63a 5333 else
698dcdb6 5334 echo "$ac_t""no" 1>&6
10f2d63a 5335 fi
698dcdb6 5336
10f2d63a 5337
698dcdb6 5338 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
9f41d601 5339echo "configure:5340: checking for --enable-gauge" >&5
10f2d63a
VZ
5340 no_cache=0
5341 # Check whether --enable-gauge or --disable-gauge was given.
5342if test "${enable_gauge+set}" = set; then
5343 enableval="$enable_gauge"
698dcdb6 5344
10f2d63a
VZ
5345 if test "$enableval" = yes; then
5346 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5347 else
5348 ac_cv_use_gauge='wxUSE_GAUGE=no'
5349 fi
698dcdb6 5350
10f2d63a 5351else
698dcdb6 5352
10f2d63a
VZ
5353 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5354 if test "x$LINE" != x ; then
5355 eval "DEFAULT_$LINE"
5356 else
5357 no_cache=1
5358 fi
5359
5360 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
5361
5362fi
10f2d63a
VZ
5363
5364
5365 eval "$ac_cv_use_gauge"
5366 if test "$no_cache" != 1; then
5367 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5368 fi
5369
5370 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 5371 echo "$ac_t""yes" 1>&6
10f2d63a 5372 else
698dcdb6 5373 echo "$ac_t""no" 1>&6
10f2d63a 5374 fi
698dcdb6 5375
10f2d63a 5376
698dcdb6 5377 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
9f41d601 5378echo "configure:5379: checking for --enable-grid" >&5
10f2d63a
VZ
5379 no_cache=0
5380 # Check whether --enable-grid or --disable-grid was given.
5381if test "${enable_grid+set}" = set; then
5382 enableval="$enable_grid"
698dcdb6 5383
10f2d63a
VZ
5384 if test "$enableval" = yes; then
5385 ac_cv_use_grid='wxUSE_GRID=yes'
5386 else
5387 ac_cv_use_grid='wxUSE_GRID=no'
5388 fi
698dcdb6 5389
10f2d63a 5390else
698dcdb6 5391
10f2d63a
VZ
5392 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5393 if test "x$LINE" != x ; then
5394 eval "DEFAULT_$LINE"
5395 else
5396 no_cache=1
5397 fi
5398
5399 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
5400
5401fi
10f2d63a
VZ
5402
5403
5404 eval "$ac_cv_use_grid"
5405 if test "$no_cache" != 1; then
5406 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5407 fi
5408
5409 if test "$wxUSE_GRID" = yes; then
698dcdb6 5410 echo "$ac_t""yes" 1>&6
10f2d63a 5411 else
698dcdb6 5412 echo "$ac_t""no" 1>&6
10f2d63a 5413 fi
698dcdb6 5414
10f2d63a 5415
698dcdb6 5416 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
9f41d601 5417echo "configure:5418: checking for --enable-newgrid" >&5
10f2d63a
VZ
5418 no_cache=0
5419 # Check whether --enable-newgrid or --disable-newgrid was given.
5420if test "${enable_newgrid+set}" = set; then
5421 enableval="$enable_newgrid"
698dcdb6 5422
10f2d63a
VZ
5423 if test "$enableval" = yes; then
5424 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5425 else
5426 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5427 fi
698dcdb6 5428
10f2d63a 5429else
698dcdb6 5430
10f2d63a
VZ
5431 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5432 if test "x$LINE" != x ; then
5433 eval "DEFAULT_$LINE"
5434 else
5435 no_cache=1
5436 fi
5437
5438 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
5439
5440fi
10f2d63a
VZ
5441
5442
5443 eval "$ac_cv_use_newgrid"
5444 if test "$no_cache" != 1; then
5445 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5446 fi
5447
5448 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 5449 echo "$ac_t""yes" 1>&6
10f2d63a 5450 else
698dcdb6 5451 echo "$ac_t""no" 1>&6
10f2d63a 5452 fi
698dcdb6 5453
10f2d63a 5454
698dcdb6 5455 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
9f41d601 5456echo "configure:5457: checking for --enable-imaglist" >&5
10f2d63a
VZ
5457 no_cache=0
5458 # Check whether --enable-imaglist or --disable-imaglist was given.
5459if test "${enable_imaglist+set}" = set; then
5460 enableval="$enable_imaglist"
698dcdb6 5461
10f2d63a
VZ
5462 if test "$enableval" = yes; then
5463 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5464 else
5465 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5466 fi
698dcdb6 5467
10f2d63a 5468else
698dcdb6 5469
10f2d63a
VZ
5470 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5471 if test "x$LINE" != x ; then
5472 eval "DEFAULT_$LINE"
5473 else
5474 no_cache=1
5475 fi
5476
5477 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
5478
5479fi
10f2d63a
VZ
5480
5481
5482 eval "$ac_cv_use_imaglist"
5483 if test "$no_cache" != 1; then
5484 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5485 fi
5486
5487 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 5488 echo "$ac_t""yes" 1>&6
10f2d63a 5489 else
698dcdb6 5490 echo "$ac_t""no" 1>&6
10f2d63a 5491 fi
698dcdb6 5492
10f2d63a 5493
698dcdb6 5494 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
9f41d601 5495echo "configure:5496: checking for --enable-listbox" >&5
10f2d63a
VZ
5496 no_cache=0
5497 # Check whether --enable-listbox or --disable-listbox was given.
5498if test "${enable_listbox+set}" = set; then
5499 enableval="$enable_listbox"
698dcdb6 5500
10f2d63a
VZ
5501 if test "$enableval" = yes; then
5502 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5503 else
5504 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5505 fi
698dcdb6 5506
10f2d63a 5507else
698dcdb6 5508
10f2d63a
VZ
5509 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5510 if test "x$LINE" != x ; then
5511 eval "DEFAULT_$LINE"
5512 else
5513 no_cache=1
5514 fi
5515
5516 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
5517
5518fi
10f2d63a
VZ
5519
5520
5521 eval "$ac_cv_use_listbox"
5522 if test "$no_cache" != 1; then
5523 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5524 fi
5525
5526 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 5527 echo "$ac_t""yes" 1>&6
10f2d63a 5528 else
698dcdb6 5529 echo "$ac_t""no" 1>&6
10f2d63a 5530 fi
698dcdb6 5531
10f2d63a 5532
698dcdb6 5533 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
9f41d601 5534echo "configure:5535: checking for --enable-listctrl" >&5
10f2d63a
VZ
5535 no_cache=0
5536 # Check whether --enable-listctrl or --disable-listctrl was given.
5537if test "${enable_listctrl+set}" = set; then
5538 enableval="$enable_listctrl"
698dcdb6 5539
10f2d63a
VZ
5540 if test "$enableval" = yes; then
5541 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5542 else
5543 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5544 fi
698dcdb6 5545
10f2d63a 5546else
698dcdb6 5547
10f2d63a
VZ
5548 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5549 if test "x$LINE" != x ; then
5550 eval "DEFAULT_$LINE"
5551 else
5552 no_cache=1
5553 fi
5554
5555 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
5556
5557fi
10f2d63a
VZ
5558
5559
5560 eval "$ac_cv_use_listctrl"
5561 if test "$no_cache" != 1; then
5562 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5563 fi
5564
5565 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 5566 echo "$ac_t""yes" 1>&6
10f2d63a 5567 else
698dcdb6 5568 echo "$ac_t""no" 1>&6
10f2d63a 5569 fi
698dcdb6 5570
10f2d63a 5571
698dcdb6 5572 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
9f41d601 5573echo "configure:5574: checking for --enable-notebook" >&5
10f2d63a
VZ
5574 no_cache=0
5575 # Check whether --enable-notebook or --disable-notebook was given.
5576if test "${enable_notebook+set}" = set; then
5577 enableval="$enable_notebook"
698dcdb6 5578
10f2d63a
VZ
5579 if test "$enableval" = yes; then
5580 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5581 else
5582 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5583 fi
698dcdb6 5584
10f2d63a 5585else
698dcdb6 5586
10f2d63a
VZ
5587 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5588 if test "x$LINE" != x ; then
5589 eval "DEFAULT_$LINE"
5590 else
5591 no_cache=1
5592 fi
5593
5594 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
5595
5596fi
10f2d63a
VZ
5597
5598
5599 eval "$ac_cv_use_notebook"
5600 if test "$no_cache" != 1; then
5601 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5602 fi
5603
5604 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 5605 echo "$ac_t""yes" 1>&6
10f2d63a 5606 else
698dcdb6 5607 echo "$ac_t""no" 1>&6
10f2d63a 5608 fi
698dcdb6 5609
10f2d63a 5610
698dcdb6 5611 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
9f41d601 5612echo "configure:5613: checking for --enable-radiobox" >&5
10f2d63a
VZ
5613 no_cache=0
5614 # Check whether --enable-radiobox or --disable-radiobox was given.
5615if test "${enable_radiobox+set}" = set; then
5616 enableval="$enable_radiobox"
698dcdb6 5617
10f2d63a
VZ
5618 if test "$enableval" = yes; then
5619 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5620 else
5621 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5622 fi
698dcdb6 5623
10f2d63a 5624else
698dcdb6 5625
10f2d63a
VZ
5626 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5627 if test "x$LINE" != x ; then
5628 eval "DEFAULT_$LINE"
5629 else
5630 no_cache=1
5631 fi
5632
5633 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
5634
5635fi
10f2d63a
VZ
5636
5637
5638 eval "$ac_cv_use_radiobox"
5639 if test "$no_cache" != 1; then
5640 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5641 fi
5642
5643 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 5644 echo "$ac_t""yes" 1>&6
10f2d63a 5645 else
698dcdb6 5646 echo "$ac_t""no" 1>&6
10f2d63a 5647 fi
698dcdb6 5648
10f2d63a 5649
698dcdb6 5650 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
9f41d601 5651echo "configure:5652: checking for --enable-radiobtn" >&5
10f2d63a
VZ
5652 no_cache=0
5653 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5654if test "${enable_radiobtn+set}" = set; then
5655 enableval="$enable_radiobtn"
698dcdb6 5656
10f2d63a
VZ
5657 if test "$enableval" = yes; then
5658 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5659 else
5660 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5661 fi
698dcdb6 5662
10f2d63a 5663else
698dcdb6 5664
10f2d63a
VZ
5665 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5666 if test "x$LINE" != x ; then
5667 eval "DEFAULT_$LINE"
5668 else
5669 no_cache=1
5670 fi
5671
5672 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
5673
5674fi
10f2d63a
VZ
5675
5676
5677 eval "$ac_cv_use_radiobtn"
5678 if test "$no_cache" != 1; then
5679 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5680 fi
5681
5682 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 5683 echo "$ac_t""yes" 1>&6
10f2d63a 5684 else
698dcdb6 5685 echo "$ac_t""no" 1>&6
10f2d63a 5686 fi
698dcdb6 5687
10f2d63a 5688
698dcdb6 5689 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
9f41d601 5690echo "configure:5691: checking for --enable-sash" >&5
10f2d63a
VZ
5691 no_cache=0
5692 # Check whether --enable-sash or --disable-sash was given.
5693if test "${enable_sash+set}" = set; then
5694 enableval="$enable_sash"
698dcdb6 5695
10f2d63a
VZ
5696 if test "$enableval" = yes; then
5697 ac_cv_use_sash='wxUSE_SASH=yes'
5698 else
5699 ac_cv_use_sash='wxUSE_SASH=no'
5700 fi
698dcdb6 5701
10f2d63a 5702else
698dcdb6 5703
10f2d63a
VZ
5704 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5705 if test "x$LINE" != x ; then
5706 eval "DEFAULT_$LINE"
5707 else
5708 no_cache=1
5709 fi
5710
5711 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
5712
5713fi
10f2d63a
VZ
5714
5715
5716 eval "$ac_cv_use_sash"
5717 if test "$no_cache" != 1; then
5718 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5719 fi
5720
5721 if test "$wxUSE_SASH" = yes; then
698dcdb6 5722 echo "$ac_t""yes" 1>&6
10f2d63a 5723 else
698dcdb6 5724 echo "$ac_t""no" 1>&6
10f2d63a 5725 fi
698dcdb6 5726
10f2d63a 5727
698dcdb6 5728 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
9f41d601 5729echo "configure:5730: checking for --enable-scrollbar" >&5
10f2d63a
VZ
5730 no_cache=0
5731 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5732if test "${enable_scrollbar+set}" = set; then
5733 enableval="$enable_scrollbar"
698dcdb6 5734
10f2d63a
VZ
5735 if test "$enableval" = yes; then
5736 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5737 else
5738 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5739 fi
698dcdb6 5740
10f2d63a 5741else
698dcdb6 5742
10f2d63a
VZ
5743 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5744 if test "x$LINE" != x ; then
5745 eval "DEFAULT_$LINE"
5746 else
5747 no_cache=1
5748 fi
5749
5750 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
5751
5752fi
10f2d63a
VZ
5753
5754
5755 eval "$ac_cv_use_scrollbar"
5756 if test "$no_cache" != 1; then
5757 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5758 fi
5759
5760 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 5761 echo "$ac_t""yes" 1>&6
10f2d63a 5762 else
698dcdb6 5763 echo "$ac_t""no" 1>&6
10f2d63a 5764 fi
698dcdb6 5765
10f2d63a 5766
698dcdb6 5767 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
9f41d601 5768echo "configure:5769: checking for --enable-slider" >&5
10f2d63a
VZ
5769 no_cache=0
5770 # Check whether --enable-slider or --disable-slider was given.
5771if test "${enable_slider+set}" = set; then
5772 enableval="$enable_slider"
698dcdb6 5773
10f2d63a
VZ
5774 if test "$enableval" = yes; then
5775 ac_cv_use_slider='wxUSE_SLIDER=yes'
5776 else
5777 ac_cv_use_slider='wxUSE_SLIDER=no'
5778 fi
698dcdb6 5779
10f2d63a 5780else
698dcdb6 5781
10f2d63a
VZ
5782 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5783 if test "x$LINE" != x ; then
5784 eval "DEFAULT_$LINE"
5785 else
5786 no_cache=1
5787 fi
5788
5789 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
5790
5791fi
10f2d63a
VZ
5792
5793
5794 eval "$ac_cv_use_slider"
5795 if test "$no_cache" != 1; then
5796 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5797 fi
5798
5799 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 5800 echo "$ac_t""yes" 1>&6
10f2d63a 5801 else
698dcdb6 5802 echo "$ac_t""no" 1>&6
10f2d63a 5803 fi
698dcdb6 5804
10f2d63a 5805
698dcdb6 5806 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
9f41d601 5807echo "configure:5808: checking for --enable-spinbtn" >&5
10f2d63a
VZ
5808 no_cache=0
5809 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5810if test "${enable_spinbtn+set}" = set; then
5811 enableval="$enable_spinbtn"
698dcdb6 5812
10f2d63a
VZ
5813 if test "$enableval" = yes; then
5814 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5815 else
5816 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5817 fi
698dcdb6 5818
10f2d63a 5819else
698dcdb6 5820
10f2d63a
VZ
5821 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5822 if test "x$LINE" != x ; then
5823 eval "DEFAULT_$LINE"
5824 else
5825 no_cache=1
5826 fi
5827
5828 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
5829
5830fi
10f2d63a
VZ
5831
5832
5833 eval "$ac_cv_use_spinbtn"
5834 if test "$no_cache" != 1; then
5835 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5836 fi
5837
5838 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 5839 echo "$ac_t""yes" 1>&6
10f2d63a 5840 else
698dcdb6 5841 echo "$ac_t""no" 1>&6
10f2d63a 5842 fi
698dcdb6 5843
10f2d63a 5844
698dcdb6 5845 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
9f41d601 5846echo "configure:5847: checking for --enable-spinctrl" >&5
56cfaa52
RR
5847 no_cache=0
5848 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5849if test "${enable_spinctrl+set}" = set; then
5850 enableval="$enable_spinctrl"
698dcdb6 5851
56cfaa52
RR
5852 if test "$enableval" = yes; then
5853 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
5854 else
5855 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
5856 fi
698dcdb6 5857
56cfaa52 5858else
698dcdb6 5859
56cfaa52
RR
5860 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
5861 if test "x$LINE" != x ; then
5862 eval "DEFAULT_$LINE"
5863 else
5864 no_cache=1
5865 fi
5866
5867 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
5868
5869fi
56cfaa52
RR
5870
5871
5872 eval "$ac_cv_use_spinctrl"
5873 if test "$no_cache" != 1; then
5874 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
5875 fi
5876
5877 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 5878 echo "$ac_t""yes" 1>&6
56cfaa52 5879 else
698dcdb6 5880 echo "$ac_t""no" 1>&6
56cfaa52 5881 fi
698dcdb6 5882
56cfaa52 5883
698dcdb6 5884 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
9f41d601 5885echo "configure:5886: checking for --enable-splitter" >&5
10f2d63a
VZ
5886 no_cache=0
5887 # Check whether --enable-splitter or --disable-splitter was given.
5888if test "${enable_splitter+set}" = set; then
5889 enableval="$enable_splitter"
698dcdb6 5890
10f2d63a
VZ
5891 if test "$enableval" = yes; then
5892 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
5893 else
5894 ac_cv_use_splitter='wxUSE_SPLITTER=no'
5895 fi
698dcdb6 5896
10f2d63a 5897else
698dcdb6 5898
10f2d63a
VZ
5899 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
5900 if test "x$LINE" != x ; then
5901 eval "DEFAULT_$LINE"
5902 else
5903 no_cache=1
5904 fi
5905
5906 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
5907
5908fi
10f2d63a
VZ
5909
5910
5911 eval "$ac_cv_use_splitter"
5912 if test "$no_cache" != 1; then
5913 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
5914 fi
5915
5916 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 5917 echo "$ac_t""yes" 1>&6
10f2d63a 5918 else
698dcdb6 5919 echo "$ac_t""no" 1>&6
10f2d63a 5920 fi
698dcdb6 5921
10f2d63a 5922
698dcdb6 5923 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
9f41d601 5924echo "configure:5925: checking for --enable-statbmp" >&5
10f2d63a
VZ
5925 no_cache=0
5926 # Check whether --enable-statbmp or --disable-statbmp was given.
5927if test "${enable_statbmp+set}" = set; then
5928 enableval="$enable_statbmp"
698dcdb6 5929
10f2d63a
VZ
5930 if test "$enableval" = yes; then
5931 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
5932 else
5933 ac_cv_use_statbmp='wxUSE_STATBMP=no'
5934 fi
698dcdb6 5935
10f2d63a 5936else
698dcdb6 5937
10f2d63a
VZ
5938 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
5939 if test "x$LINE" != x ; then
5940 eval "DEFAULT_$LINE"
5941 else
5942 no_cache=1
5943 fi
5944
5945 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
5946
5947fi
10f2d63a
VZ
5948
5949
5950 eval "$ac_cv_use_statbmp"
5951 if test "$no_cache" != 1; then
5952 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
5953 fi
5954
5955 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 5956 echo "$ac_t""yes" 1>&6
10f2d63a 5957 else
698dcdb6 5958 echo "$ac_t""no" 1>&6
10f2d63a 5959 fi
698dcdb6 5960
10f2d63a 5961
698dcdb6 5962 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
9f41d601 5963echo "configure:5964: checking for --enable-statbox" >&5
10f2d63a
VZ
5964 no_cache=0
5965 # Check whether --enable-statbox or --disable-statbox was given.
5966if test "${enable_statbox+set}" = set; then
5967 enableval="$enable_statbox"
698dcdb6 5968
10f2d63a
VZ
5969 if test "$enableval" = yes; then
5970 ac_cv_use_statbox='wxUSE_STATBOX=yes'
5971 else
5972 ac_cv_use_statbox='wxUSE_STATBOX=no'
5973 fi
698dcdb6 5974
10f2d63a 5975else
698dcdb6 5976
10f2d63a
VZ
5977 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
5978 if test "x$LINE" != x ; then
5979 eval "DEFAULT_$LINE"
5980 else
5981 no_cache=1
5982 fi
5983
5984 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
5985
5986fi
10f2d63a
VZ
5987
5988
5989 eval "$ac_cv_use_statbox"
5990 if test "$no_cache" != 1; then
5991 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
5992 fi
5993
5994 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 5995 echo "$ac_t""yes" 1>&6
10f2d63a 5996 else
698dcdb6 5997 echo "$ac_t""no" 1>&6
10f2d63a 5998 fi
698dcdb6 5999
10f2d63a 6000
698dcdb6 6001 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
9f41d601 6002echo "configure:6003: checking for --enable-statline" >&5
10f2d63a
VZ
6003 no_cache=0
6004 # Check whether --enable-statline or --disable-statline was given.
6005if test "${enable_statline+set}" = set; then
6006 enableval="$enable_statline"
698dcdb6 6007
10f2d63a
VZ
6008 if test "$enableval" = yes; then
6009 ac_cv_use_statline='wxUSE_STATLINE=yes'
6010 else
6011 ac_cv_use_statline='wxUSE_STATLINE=no'
6012 fi
698dcdb6 6013
10f2d63a 6014else
698dcdb6 6015
10f2d63a
VZ
6016 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6017 if test "x$LINE" != x ; then
6018 eval "DEFAULT_$LINE"
6019 else
6020 no_cache=1
6021 fi
6022
6023 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6024
6025fi
10f2d63a
VZ
6026
6027
6028 eval "$ac_cv_use_statline"
6029 if test "$no_cache" != 1; then
6030 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6031 fi
6032
6033 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6034 echo "$ac_t""yes" 1>&6
10f2d63a 6035 else
698dcdb6 6036 echo "$ac_t""no" 1>&6
10f2d63a 6037 fi
698dcdb6 6038
10f2d63a 6039
1e6feb95 6040 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
9f41d601 6041echo "configure:6042: checking for --enable-stattext" >&5
1e6feb95
VZ
6042 no_cache=0
6043 # Check whether --enable-stattext or --disable-stattext was given.
6044if test "${enable_stattext+set}" = set; then
6045 enableval="$enable_stattext"
6046
6047 if test "$enableval" = yes; then
6048 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6049 else
6050 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6051 fi
6052
6053else
6054
6055 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6056 if test "x$LINE" != x ; then
6057 eval "DEFAULT_$LINE"
6058 else
6059 no_cache=1
6060 fi
6061
6062 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6063
6064fi
6065
6066
6067 eval "$ac_cv_use_stattext"
6068 if test "$no_cache" != 1; then
6069 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6070 fi
6071
6072 if test "$wxUSE_STATTEXT" = yes; then
6073 echo "$ac_t""yes" 1>&6
6074 else
6075 echo "$ac_t""no" 1>&6
6076 fi
6077
6078
698dcdb6 6079 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
9f41d601 6080echo "configure:6081: checking for --enable-statusbar" >&5
10f2d63a
VZ
6081 no_cache=0
6082 # Check whether --enable-statusbar or --disable-statusbar was given.
6083if test "${enable_statusbar+set}" = set; then
6084 enableval="$enable_statusbar"
698dcdb6 6085
10f2d63a
VZ
6086 if test "$enableval" = yes; then
6087 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6088 else
6089 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6090 fi
698dcdb6 6091
10f2d63a 6092else
698dcdb6 6093
10f2d63a
VZ
6094 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6095 if test "x$LINE" != x ; then
6096 eval "DEFAULT_$LINE"
6097 else
6098 no_cache=1
6099 fi
6100
6101 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6102
6103fi
10f2d63a
VZ
6104
6105
6106 eval "$ac_cv_use_statusbar"
6107 if test "$no_cache" != 1; then
6108 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6109 fi
6110
6111 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6112 echo "$ac_t""yes" 1>&6
10f2d63a 6113 else
698dcdb6 6114 echo "$ac_t""no" 1>&6
10f2d63a 6115 fi
698dcdb6 6116
10f2d63a 6117
698dcdb6 6118 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
9f41d601 6119echo "configure:6120: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6120 no_cache=0
6121 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6122if test "${enable_tabdialog+set}" = set; then
6123 enableval="$enable_tabdialog"
698dcdb6 6124
10f2d63a
VZ
6125 if test "$enableval" = yes; then
6126 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6127 else
6128 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6129 fi
698dcdb6 6130
10f2d63a 6131else
698dcdb6 6132
10f2d63a
VZ
6133 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6134 if test "x$LINE" != x ; then
6135 eval "DEFAULT_$LINE"
6136 else
6137 no_cache=1
6138 fi
6139
6140 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6141
6142fi
10f2d63a
VZ
6143
6144
6145 eval "$ac_cv_use_tabdialog"
6146 if test "$no_cache" != 1; then
6147 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6148 fi
6149
6150 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6151 echo "$ac_t""yes" 1>&6
10f2d63a 6152 else
698dcdb6 6153 echo "$ac_t""no" 1>&6
10f2d63a 6154 fi
698dcdb6 6155
10f2d63a 6156
1e6feb95 6157 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
9f41d601 6158echo "configure:6159: checking for --enable-textctrl" >&5
1e6feb95
VZ
6159 no_cache=0
6160 # Check whether --enable-textctrl or --disable-textctrl was given.
6161if test "${enable_textctrl+set}" = set; then
6162 enableval="$enable_textctrl"
6163
6164 if test "$enableval" = yes; then
6165 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6166 else
6167 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6168 fi
6169
6170else
6171
6172 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6173 if test "x$LINE" != x ; then
6174 eval "DEFAULT_$LINE"
6175 else
6176 no_cache=1
6177 fi
6178
6179 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6180
6181fi
6182
6183
6184 eval "$ac_cv_use_textctrl"
6185 if test "$no_cache" != 1; then
6186 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6187 fi
6188
6189 if test "$wxUSE_TEXTCTRL" = yes; then
6190 echo "$ac_t""yes" 1>&6
6191 else
6192 echo "$ac_t""no" 1>&6
6193 fi
6194
6195
698dcdb6 6196 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
9f41d601 6197echo "configure:6198: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6198 no_cache=0
6199 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6200if test "${enable_togglebtn+set}" = set; then
6201 enableval="$enable_togglebtn"
698dcdb6 6202
1db8dc4a
VZ
6203 if test "$enableval" = yes; then
6204 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6205 else
6206 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6207 fi
698dcdb6 6208
1db8dc4a 6209else
698dcdb6 6210
1db8dc4a
VZ
6211 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6212 if test "x$LINE" != x ; then
6213 eval "DEFAULT_$LINE"
6214 else
6215 no_cache=1
6216 fi
6217
6218 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6219
6220fi
1db8dc4a
VZ
6221
6222
6223 eval "$ac_cv_use_togglebtn"
6224 if test "$no_cache" != 1; then
6225 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6226 fi
6227
6228 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6229 echo "$ac_t""yes" 1>&6
1db8dc4a 6230 else
698dcdb6 6231 echo "$ac_t""no" 1>&6
1db8dc4a 6232 fi
698dcdb6 6233
1db8dc4a 6234
698dcdb6 6235 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
9f41d601 6236echo "configure:6237: checking for --enable-toolbar" >&5
10f2d63a
VZ
6237 no_cache=0
6238 # Check whether --enable-toolbar or --disable-toolbar was given.
6239if test "${enable_toolbar+set}" = set; then
6240 enableval="$enable_toolbar"
698dcdb6 6241
10f2d63a
VZ
6242 if test "$enableval" = yes; then
6243 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6244 else
6245 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6246 fi
698dcdb6 6247
10f2d63a 6248else
698dcdb6 6249
10f2d63a
VZ
6250 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6251 if test "x$LINE" != x ; then
6252 eval "DEFAULT_$LINE"
6253 else
6254 no_cache=1
6255 fi
6256
6257 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
6258
6259fi
10f2d63a
VZ
6260
6261
6262 eval "$ac_cv_use_toolbar"
6263 if test "$no_cache" != 1; then
6264 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6265 fi
6266
6267 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 6268 echo "$ac_t""yes" 1>&6
10f2d63a 6269 else
698dcdb6 6270 echo "$ac_t""no" 1>&6
10f2d63a 6271 fi
698dcdb6 6272
10f2d63a 6273
698dcdb6 6274 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
9f41d601 6275echo "configure:6276: checking for --enable-tbarnative" >&5
360d6699
VZ
6276 no_cache=0
6277 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6278if test "${enable_tbarnative+set}" = set; then
6279 enableval="$enable_tbarnative"
698dcdb6 6280
360d6699
VZ
6281 if test "$enableval" = yes; then
6282 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6283 else
6284 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6285 fi
698dcdb6 6286
360d6699 6287else
698dcdb6 6288
360d6699
VZ
6289 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6290 if test "x$LINE" != x ; then
6291 eval "DEFAULT_$LINE"
6292 else
6293 no_cache=1
6294 fi
6295
6296 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
6297
6298fi
360d6699
VZ
6299
6300
6301 eval "$ac_cv_use_tbarnative"
6302 if test "$no_cache" != 1; then
6303 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6304 fi
6305
6306 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 6307 echo "$ac_t""yes" 1>&6
360d6699 6308 else
698dcdb6 6309 echo "$ac_t""no" 1>&6
360d6699 6310 fi
698dcdb6 6311
360d6699 6312
698dcdb6 6313 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
9f41d601 6314echo "configure:6315: checking for --enable-tbarsmpl" >&5
360d6699
VZ
6315 no_cache=0
6316 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6317if test "${enable_tbarsmpl+set}" = set; then
6318 enableval="$enable_tbarsmpl"
698dcdb6 6319
360d6699
VZ
6320 if test "$enableval" = yes; then
6321 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6322 else
6323 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6324 fi
698dcdb6 6325
360d6699 6326else
698dcdb6 6327
360d6699
VZ
6328 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6329 if test "x$LINE" != x ; then
6330 eval "DEFAULT_$LINE"
6331 else
6332 no_cache=1
6333 fi
6334
6335 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
6336
6337fi
360d6699
VZ
6338
6339
6340 eval "$ac_cv_use_tbarsmpl"
6341 if test "$no_cache" != 1; then
6342 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6343 fi
6344
6345 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 6346 echo "$ac_t""yes" 1>&6
360d6699 6347 else
698dcdb6 6348 echo "$ac_t""no" 1>&6
360d6699 6349 fi
698dcdb6 6350
360d6699 6351
698dcdb6 6352 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
9f41d601 6353echo "configure:6354: checking for --enable-treectrl" >&5
10f2d63a
VZ
6354 no_cache=0
6355 # Check whether --enable-treectrl or --disable-treectrl was given.
6356if test "${enable_treectrl+set}" = set; then
6357 enableval="$enable_treectrl"
698dcdb6 6358
10f2d63a
VZ
6359 if test "$enableval" = yes; then
6360 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6361 else
6362 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6363 fi
698dcdb6 6364
10f2d63a 6365else
698dcdb6 6366
10f2d63a
VZ
6367 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6368 if test "x$LINE" != x ; then
6369 eval "DEFAULT_$LINE"
6370 else
6371 no_cache=1
6372 fi
6373
6374 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
6375
6376fi
10f2d63a
VZ
6377
6378
1e6feb95
VZ
6379 eval "$ac_cv_use_treectrl"
6380 if test "$no_cache" != 1; then
6381 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6382 fi
6383
6384 if test "$wxUSE_TREECTRL" = yes; then
6385 echo "$ac_t""yes" 1>&6
6386 else
6387 echo "$ac_t""no" 1>&6
6388 fi
6389
6390
9f41d601
RR
6391 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
6392echo "configure:6393: checking for --enable-popupwin" >&5
6393 no_cache=0
6394 # Check whether --enable-popupwin or --disable-popupwin was given.
6395if test "${enable_popupwin+set}" = set; then
6396 enableval="$enable_popupwin"
6397
6398 if test "$enableval" = yes; then
6399 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6400 else
6401 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6402 fi
6403
6404else
6405
6406 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6407 if test "x$LINE" != x ; then
6408 eval "DEFAULT_$LINE"
6409 else
6410 no_cache=1
6411 fi
6412
6413 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6414
6415fi
6416
6417
6418 eval "$ac_cv_use_popupwin"
6419 if test "$no_cache" != 1; then
6420 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6421 fi
6422
6423 if test "$wxUSE_POPUPWIN" = yes; then
6424 echo "$ac_t""yes" 1>&6
6425 else
6426 echo "$ac_t""no" 1>&6
6427 fi
6428
6429
1e6feb95
VZ
6430
6431
6432 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
9f41d601 6433echo "configure:6434: checking for --enable-commondlg" >&5
1e6feb95
VZ
6434 no_cache=0
6435 # Check whether --enable-commondlg or --disable-commondlg was given.
6436if test "${enable_commondlg+set}" = set; then
6437 enableval="$enable_commondlg"
6438
6439 if test "$enableval" = yes; then
6440 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6441 else
6442 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6443 fi
6444
6445else
6446
6447 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6448 if test "x$LINE" != x ; then
6449 eval "DEFAULT_$LINE"
6450 else
6451 no_cache=1
6452 fi
6453
6454 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6455
6456fi
6457
6458
6459 eval "$ac_cv_use_commondlg"
6460 if test "$no_cache" != 1; then
6461 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6462 fi
6463
6464 if test "$wxUSE_COMMONDLGS" = yes; then
6465 echo "$ac_t""yes" 1>&6
6466 else
6467 echo "$ac_t""no" 1>&6
6468 fi
6469
6470
6471 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
9f41d601 6472echo "configure:6473: checking for --enable-choicedlg" >&5
1e6feb95
VZ
6473 no_cache=0
6474 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6475if test "${enable_choicedlg+set}" = set; then
6476 enableval="$enable_choicedlg"
6477
6478 if test "$enableval" = yes; then
6479 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6480 else
6481 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6482 fi
6483
6484else
6485
6486 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6487 if test "x$LINE" != x ; then
6488 eval "DEFAULT_$LINE"
6489 else
6490 no_cache=1
6491 fi
6492
6493 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6494
6495fi
6496
6497
6498 eval "$ac_cv_use_choicedlg"
6499 if test "$no_cache" != 1; then
6500 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6501 fi
6502
6503 if test "$wxUSE_CHOICEDLG" = yes; then
6504 echo "$ac_t""yes" 1>&6
6505 else
6506 echo "$ac_t""no" 1>&6
6507 fi
6508
6509
6510 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
9f41d601 6511echo "configure:6512: checking for --enable-coldlg" >&5
1e6feb95
VZ
6512 no_cache=0
6513 # Check whether --enable-coldlg or --disable-coldlg was given.
6514if test "${enable_coldlg+set}" = set; then
6515 enableval="$enable_coldlg"
6516
6517 if test "$enableval" = yes; then
6518 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6519 else
6520 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6521 fi
6522
6523else
6524
6525 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6526 if test "x$LINE" != x ; then
6527 eval "DEFAULT_$LINE"
6528 else
6529 no_cache=1
6530 fi
6531
6532 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6533
6534fi
6535
6536
6537 eval "$ac_cv_use_coldlg"
6538 if test "$no_cache" != 1; then
6539 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6540 fi
6541
6542 if test "$wxUSE_COLOURDLG" = yes; then
6543 echo "$ac_t""yes" 1>&6
6544 else
6545 echo "$ac_t""no" 1>&6
6546 fi
6547
6548
6549 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
9f41d601 6550echo "configure:6551: checking for --enable-filedlg" >&5
1e6feb95
VZ
6551 no_cache=0
6552 # Check whether --enable-filedlg or --disable-filedlg was given.
6553if test "${enable_filedlg+set}" = set; then
6554 enableval="$enable_filedlg"
6555
6556 if test "$enableval" = yes; then
6557 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6558 else
6559 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6560 fi
6561
6562else
6563
6564 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6565 if test "x$LINE" != x ; then
6566 eval "DEFAULT_$LINE"
6567 else
6568 no_cache=1
6569 fi
6570
6571 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6572
6573fi
6574
6575
6576 eval "$ac_cv_use_filedlg"
6577 if test "$no_cache" != 1; then
6578 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6579 fi
6580
6581 if test "$wxUSE_FILEDLG" = yes; then
6582 echo "$ac_t""yes" 1>&6
6583 else
6584 echo "$ac_t""no" 1>&6
6585 fi
6586
6587
6588 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
9f41d601 6589echo "configure:6590: checking for --enable-fontdlg" >&5
1e6feb95
VZ
6590 no_cache=0
6591 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6592if test "${enable_fontdlg+set}" = set; then
6593 enableval="$enable_fontdlg"
6594
6595 if test "$enableval" = yes; then
6596 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6597 else
6598 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6599 fi
6600
6601else
6602
6603 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6604 if test "x$LINE" != x ; then
6605 eval "DEFAULT_$LINE"
6606 else
6607 no_cache=1
6608 fi
6609
6610 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6611
6612fi
6613
6614
6615 eval "$ac_cv_use_fontdlg"
6616 if test "$no_cache" != 1; then
6617 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6618 fi
6619
6620 if test "$wxUSE_FONTDLG" = yes; then
6621 echo "$ac_t""yes" 1>&6
6622 else
6623 echo "$ac_t""no" 1>&6
6624 fi
6625
6626
6627 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
9f41d601 6628echo "configure:6629: checking for --enable-dirdlg" >&5
1e6feb95
VZ
6629 no_cache=0
6630 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6631if test "${enable_dirdlg+set}" = set; then
6632 enableval="$enable_dirdlg"
6633
6634 if test "$enableval" = yes; then
6635 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6636 else
6637 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6638 fi
6639
6640else
6641
6642 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6643 if test "x$LINE" != x ; then
6644 eval "DEFAULT_$LINE"
6645 else
6646 no_cache=1
6647 fi
6648
6649 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6650
6651fi
6652
6653
6654 eval "$ac_cv_use_dirdlg"
10f2d63a 6655 if test "$no_cache" != 1; then
1e6feb95 6656 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6657 fi
6658
1e6feb95 6659 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 6660 echo "$ac_t""yes" 1>&6
10f2d63a 6661 else
698dcdb6 6662 echo "$ac_t""no" 1>&6
10f2d63a 6663 fi
698dcdb6
VZ
6664
6665
1e6feb95 6666 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
9f41d601 6667echo "configure:6668: checking for --enable-msgdlg" >&5
10f2d63a 6668 no_cache=0
1e6feb95
VZ
6669 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6670if test "${enable_msgdlg+set}" = set; then
6671 enableval="$enable_msgdlg"
698dcdb6 6672
10f2d63a 6673 if test "$enableval" = yes; then
1e6feb95 6674 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 6675 else
1e6feb95 6676 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 6677 fi
698dcdb6 6678
10f2d63a 6679else
698dcdb6 6680
1e6feb95 6681 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6682 if test "x$LINE" != x ; then
6683 eval "DEFAULT_$LINE"
6684 else
6685 no_cache=1
6686 fi
6687
1e6feb95 6688 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
6689
6690fi
10f2d63a
VZ
6691
6692
1e6feb95 6693 eval "$ac_cv_use_msgdlg"
10f2d63a 6694 if test "$no_cache" != 1; then
1e6feb95 6695 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6696 fi
6697
1e6feb95 6698 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 6699 echo "$ac_t""yes" 1>&6
10f2d63a 6700 else
698dcdb6 6701 echo "$ac_t""no" 1>&6
10f2d63a 6702 fi
698dcdb6 6703
10f2d63a 6704
1e6feb95 6705 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
9f41d601 6706echo "configure:6707: checking for --enable-numberdlg" >&5
10f2d63a 6707 no_cache=0
1e6feb95
VZ
6708 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6709if test "${enable_numberdlg+set}" = set; then
6710 enableval="$enable_numberdlg"
698dcdb6 6711
10f2d63a 6712 if test "$enableval" = yes; then
1e6feb95 6713 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 6714 else
1e6feb95 6715 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 6716 fi
698dcdb6 6717
10f2d63a 6718else
698dcdb6 6719
1e6feb95 6720 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6721 if test "x$LINE" != x ; then
6722 eval "DEFAULT_$LINE"
6723 else
6724 no_cache=1
6725 fi
6726
1e6feb95 6727 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
6728
6729fi
10f2d63a
VZ
6730
6731
1e6feb95 6732 eval "$ac_cv_use_numberdlg"
10f2d63a 6733 if test "$no_cache" != 1; then
1e6feb95 6734 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6735 fi
6736
1e6feb95 6737 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 6738 echo "$ac_t""yes" 1>&6
10f2d63a 6739 else
698dcdb6 6740 echo "$ac_t""no" 1>&6
10f2d63a 6741 fi
698dcdb6 6742
10f2d63a 6743
698dcdb6 6744 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
9f41d601 6745echo "configure:6746: checking for --enable-textdlg" >&5
10f2d63a
VZ
6746 no_cache=0
6747 # Check whether --enable-textdlg or --disable-textdlg was given.
6748if test "${enable_textdlg+set}" = set; then
6749 enableval="$enable_textdlg"
698dcdb6 6750
10f2d63a
VZ
6751 if test "$enableval" = yes; then
6752 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6753 else
6754 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6755 fi
698dcdb6 6756
10f2d63a 6757else
698dcdb6 6758
10f2d63a
VZ
6759 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6760 if test "x$LINE" != x ; then
6761 eval "DEFAULT_$LINE"
6762 else
6763 no_cache=1
6764 fi
6765
6766 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
6767
6768fi
10f2d63a
VZ
6769
6770
6771 eval "$ac_cv_use_textdlg"
6772 if test "$no_cache" != 1; then
6773 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
6774 fi
6775
6776 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 6777 echo "$ac_t""yes" 1>&6
10f2d63a 6778 else
698dcdb6 6779 echo "$ac_t""no" 1>&6
10f2d63a 6780 fi
698dcdb6 6781
10f2d63a 6782
698dcdb6 6783 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
9f41d601 6784echo "configure:6785: checking for --enable-tipdlg" >&5
10f2d63a
VZ
6785 no_cache=0
6786 # Check whether --enable-tipdlg or --disable-tipdlg was given.
6787if test "${enable_tipdlg+set}" = set; then
6788 enableval="$enable_tipdlg"
698dcdb6 6789
10f2d63a
VZ
6790 if test "$enableval" = yes; then
6791 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
6792 else
6793 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
6794 fi
698dcdb6 6795
10f2d63a 6796else
698dcdb6 6797
10f2d63a
VZ
6798 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
6799 if test "x$LINE" != x ; then
6800 eval "DEFAULT_$LINE"
6801 else
6802 no_cache=1
6803 fi
6804
6805 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
6806
6807fi
10f2d63a
VZ
6808
6809
6810 eval "$ac_cv_use_tipdlg"
6811 if test "$no_cache" != 1; then
6812 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
6813 fi
6814
6815 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 6816 echo "$ac_t""yes" 1>&6
10f2d63a 6817 else
698dcdb6 6818 echo "$ac_t""no" 1>&6
10f2d63a 6819 fi
698dcdb6 6820
10f2d63a 6821
698dcdb6 6822 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
9f41d601 6823echo "configure:6824: checking for --enable-progressdlg" >&5
10f2d63a
VZ
6824 no_cache=0
6825 # Check whether --enable-progressdlg or --disable-progressdlg was given.
6826if test "${enable_progressdlg+set}" = set; then
6827 enableval="$enable_progressdlg"
698dcdb6 6828
10f2d63a
VZ
6829 if test "$enableval" = yes; then
6830 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
6831 else
6832 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
6833 fi
698dcdb6 6834
10f2d63a 6835else
698dcdb6 6836
10f2d63a
VZ
6837 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
6838 if test "x$LINE" != x ; then
6839 eval "DEFAULT_$LINE"
6840 else
6841 no_cache=1
6842 fi
6843
6844 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
6845
6846fi
10f2d63a
VZ
6847
6848
6849 eval "$ac_cv_use_progressdlg"
6850 if test "$no_cache" != 1; then
6851 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
6852 fi
6853
6854 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 6855 echo "$ac_t""yes" 1>&6
10f2d63a 6856 else
698dcdb6 6857 echo "$ac_t""no" 1>&6
10f2d63a 6858 fi
698dcdb6 6859
10f2d63a 6860
b1f5d087 6861 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
9f41d601 6862echo "configure:6863: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
6863 no_cache=0
6864 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
6865if test "${enable_wizarddlg+set}" = set; then
6866 enableval="$enable_wizarddlg"
6867
6868 if test "$enableval" = yes; then
6869 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
6870 else
6871 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
6872 fi
6873
6874else
6875
6876 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
6877 if test "x$LINE" != x ; then
6878 eval "DEFAULT_$LINE"
6879 else
6880 no_cache=1
6881 fi
6882
6883 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
6884
6885fi
6886
6887
6888 eval "$ac_cv_use_wizarddlg"
6889 if test "$no_cache" != 1; then
6890 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
6891 fi
6892
6893 if test "$wxUSE_WIZARDDLG" = yes; then
6894 echo "$ac_t""yes" 1>&6
6895 else
6896 echo "$ac_t""no" 1>&6
6897 fi
6898
6899
6900
6901
1e6feb95 6902 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
9f41d601 6903echo "configure:6904: checking for --enable-menus" >&5
1e6feb95
VZ
6904 no_cache=0
6905 # Check whether --enable-menus or --disable-menus was given.
6906if test "${enable_menus+set}" = set; then
6907 enableval="$enable_menus"
6908
6909 if test "$enableval" = yes; then
6910 ac_cv_use_menus='wxUSE_MENUS=yes'
6911 else
6912 ac_cv_use_menus='wxUSE_MENUS=no'
6913 fi
6914
6915else
6916
6917 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
6918 if test "x$LINE" != x ; then
6919 eval "DEFAULT_$LINE"
6920 else
6921 no_cache=1
6922 fi
6923
6924 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
6925
6926fi
6927
6928
6929 eval "$ac_cv_use_menus"
6930 if test "$no_cache" != 1; then
6931 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
6932 fi
6933
6934 if test "$wxUSE_MENUS" = yes; then
6935 echo "$ac_t""yes" 1>&6
6936 else
6937 echo "$ac_t""no" 1>&6
6938 fi
6939
6940
698dcdb6 6941 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
9f41d601 6942echo "configure:6943: checking for --enable-miniframe" >&5
10f2d63a
VZ
6943 no_cache=0
6944 # Check whether --enable-miniframe or --disable-miniframe was given.
6945if test "${enable_miniframe+set}" = set; then
6946 enableval="$enable_miniframe"
698dcdb6 6947
10f2d63a
VZ
6948 if test "$enableval" = yes; then
6949 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
6950 else
6951 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
6952 fi
698dcdb6 6953
10f2d63a 6954else
698dcdb6 6955
10f2d63a
VZ
6956 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
6957 if test "x$LINE" != x ; then
6958 eval "DEFAULT_$LINE"
6959 else
6960 no_cache=1
6961 fi
6962
6963 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
6964
6965fi
10f2d63a
VZ
6966
6967
6968 eval "$ac_cv_use_miniframe"
6969 if test "$no_cache" != 1; then
6970 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
6971 fi
6972
6973 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 6974 echo "$ac_t""yes" 1>&6
10f2d63a 6975 else
698dcdb6 6976 echo "$ac_t""no" 1>&6
10f2d63a 6977 fi
698dcdb6 6978
10f2d63a 6979
698dcdb6 6980 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
9f41d601 6981echo "configure:6982: checking for --enable-tooltips" >&5
10f2d63a
VZ
6982 no_cache=0
6983 # Check whether --enable-tooltips or --disable-tooltips was given.
6984if test "${enable_tooltips+set}" = set; then
6985 enableval="$enable_tooltips"
698dcdb6 6986
10f2d63a
VZ
6987 if test "$enableval" = yes; then
6988 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
6989 else
6990 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
6991 fi
698dcdb6 6992
10f2d63a 6993else
698dcdb6 6994
10f2d63a
VZ
6995 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
6996 if test "x$LINE" != x ; then
6997 eval "DEFAULT_$LINE"
6998 else
6999 no_cache=1
7000 fi
7001
7002 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7003
7004fi
10f2d63a
VZ
7005
7006
7007 eval "$ac_cv_use_tooltips"
7008 if test "$no_cache" != 1; then
7009 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7010 fi
7011
7012 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7013 echo "$ac_t""yes" 1>&6
10f2d63a 7014 else
698dcdb6 7015 echo "$ac_t""no" 1>&6
10f2d63a 7016 fi
698dcdb6 7017
10f2d63a 7018
698dcdb6 7019 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
9f41d601 7020echo "configure:7021: checking for --enable-splines" >&5
10f2d63a
VZ
7021 no_cache=0
7022 # Check whether --enable-splines or --disable-splines was given.
7023if test "${enable_splines+set}" = set; then
7024 enableval="$enable_splines"
698dcdb6 7025
10f2d63a
VZ
7026 if test "$enableval" = yes; then
7027 ac_cv_use_splines='wxUSE_SPLINES=yes'
7028 else
7029 ac_cv_use_splines='wxUSE_SPLINES=no'
7030 fi
698dcdb6 7031
10f2d63a 7032else
698dcdb6 7033
10f2d63a
VZ
7034 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7035 if test "x$LINE" != x ; then
7036 eval "DEFAULT_$LINE"
7037 else
7038 no_cache=1
7039 fi
7040
7041 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7042
7043fi
10f2d63a
VZ
7044
7045
7046 eval "$ac_cv_use_splines"
7047 if test "$no_cache" != 1; then
7048 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7049 fi
7050
7051 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7052 echo "$ac_t""yes" 1>&6
10f2d63a 7053 else
698dcdb6 7054 echo "$ac_t""no" 1>&6
10f2d63a 7055 fi
698dcdb6 7056
10f2d63a 7057
698dcdb6 7058 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
9f41d601 7059echo "configure:7060: checking for --enable-validators" >&5
10f2d63a
VZ
7060 no_cache=0
7061 # Check whether --enable-validators or --disable-validators was given.
7062if test "${enable_validators+set}" = set; then
7063 enableval="$enable_validators"
698dcdb6 7064
10f2d63a
VZ
7065 if test "$enableval" = yes; then
7066 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7067 else
7068 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7069 fi
698dcdb6 7070
10f2d63a 7071else
698dcdb6 7072
10f2d63a
VZ
7073 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7074 if test "x$LINE" != x ; then
7075 eval "DEFAULT_$LINE"
7076 else
7077 no_cache=1
7078 fi
7079
7080 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7081
7082fi
10f2d63a
VZ
7083
7084
7085 eval "$ac_cv_use_validators"
7086 if test "$no_cache" != 1; then
7087 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7088 fi
7089
7090 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7091 echo "$ac_t""yes" 1>&6
10f2d63a 7092 else
698dcdb6 7093 echo "$ac_t""no" 1>&6
10f2d63a 7094 fi
698dcdb6 7095
10f2d63a 7096
698dcdb6 7097 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
9f41d601 7098echo "configure:7099: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7099 no_cache=0
7100 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7101if test "${enable_busyinfo+set}" = set; then
7102 enableval="$enable_busyinfo"
698dcdb6 7103
10f2d63a
VZ
7104 if test "$enableval" = yes; then
7105 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7106 else
7107 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7108 fi
698dcdb6 7109
10f2d63a 7110else
698dcdb6 7111
10f2d63a
VZ
7112 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7113 if test "x$LINE" != x ; then
7114 eval "DEFAULT_$LINE"
7115 else
7116 no_cache=1
7117 fi
7118
7119 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
7120
7121fi
10f2d63a
VZ
7122
7123
7124 eval "$ac_cv_use_busyinfo"
7125 if test "$no_cache" != 1; then
7126 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7127 fi
7128
7129 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 7130 echo "$ac_t""yes" 1>&6
10f2d63a 7131 else
698dcdb6 7132 echo "$ac_t""no" 1>&6
10f2d63a 7133 fi
698dcdb6 7134
10f2d63a 7135
698dcdb6 7136 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
9f41d601 7137echo "configure:7138: checking for --enable-joystick" >&5
f6bcfd97
BP
7138 no_cache=0
7139 # Check whether --enable-joystick or --disable-joystick was given.
7140if test "${enable_joystick+set}" = set; then
7141 enableval="$enable_joystick"
698dcdb6 7142
f6bcfd97
BP
7143 if test "$enableval" = yes; then
7144 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7145 else
7146 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7147 fi
698dcdb6 7148
f6bcfd97 7149else
698dcdb6 7150
f6bcfd97
BP
7151 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7152 if test "x$LINE" != x ; then
7153 eval "DEFAULT_$LINE"
7154 else
7155 no_cache=1
7156 fi
7157
7158 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
7159
7160fi
f6bcfd97
BP
7161
7162
7163 eval "$ac_cv_use_joystick"
7164 if test "$no_cache" != 1; then
7165 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7166 fi
7167
7168 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 7169 echo "$ac_t""yes" 1>&6
f6bcfd97 7170 else
698dcdb6 7171 echo "$ac_t""no" 1>&6
f6bcfd97 7172 fi
698dcdb6
VZ
7173
7174
1e6feb95 7175 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
9f41d601 7176echo "configure:7177: checking for --enable-metafile" >&5
1e6feb95
VZ
7177 no_cache=0
7178 # Check whether --enable-metafile or --disable-metafile was given.
7179if test "${enable_metafile+set}" = set; then
7180 enableval="$enable_metafile"
7181
7182 if test "$enableval" = yes; then
7183 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7184 else
7185 ac_cv_use_metafile='wxUSE_METAFILE=no'
7186 fi
7187
7188else
7189
7190 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7191 if test "x$LINE" != x ; then
7192 eval "DEFAULT_$LINE"
7193 else
7194 no_cache=1
7195 fi
7196
7197 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7198
7199fi
7200
7201
7202 eval "$ac_cv_use_metafile"
7203 if test "$no_cache" != 1; then
7204 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7205 fi
7206
7207 if test "$wxUSE_METAFILE" = yes; then
7208 echo "$ac_t""yes" 1>&6
7209 else
7210 echo "$ac_t""no" 1>&6
7211 fi
7212
7213
24fd6d87 7214 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
9f41d601 7215echo "configure:7216: checking for --enable-dragimage" >&5
24fd6d87
VZ
7216 no_cache=0
7217 # Check whether --enable-dragimage or --disable-dragimage was given.
7218if test "${enable_dragimage+set}" = set; then
7219 enableval="$enable_dragimage"
7220
7221 if test "$enableval" = yes; then
7222 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7223 else
7224 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7225 fi
7226
7227else
7228
7229 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7230 if test "x$LINE" != x ; then
7231 eval "DEFAULT_$LINE"
7232 else
7233 no_cache=1
7234 fi
7235
7236 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7237
7238fi
7239
7240
7241 eval "$ac_cv_use_dragimage"
7242 if test "$no_cache" != 1; then
7243 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7244 fi
7245
7246 if test "$wxUSE_DRAGIMAGE" = yes; then
7247 echo "$ac_t""yes" 1>&6
7248 else
7249 echo "$ac_t""no" 1>&6
7250 fi
7251
7252
10f2d63a 7253
698dcdb6
VZ
7254
7255 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
9f41d601 7256echo "configure:7257: checking for --enable-image" >&5
0046ff7c
VS
7257 no_cache=0
7258 # Check whether --enable-image or --disable-image was given.
7259if test "${enable_image+set}" = set; then
7260 enableval="$enable_image"
698dcdb6 7261
0046ff7c
VS
7262 if test "$enableval" = yes; then
7263 ac_cv_use_image='wxUSE_IMAGE=yes'
7264 else
7265 ac_cv_use_image='wxUSE_IMAGE=no'
7266 fi
698dcdb6 7267
0046ff7c 7268else
698dcdb6 7269
0046ff7c
VS
7270 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7271 if test "x$LINE" != x ; then
7272 eval "DEFAULT_$LINE"
7273 else
7274 no_cache=1
7275 fi
7276
7277 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
7278
7279fi
0046ff7c
VS
7280
7281
7282 eval "$ac_cv_use_image"
7283 if test "$no_cache" != 1; then
7284 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7285 fi
7286
7287 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 7288 echo "$ac_t""yes" 1>&6
0046ff7c 7289 else
698dcdb6 7290 echo "$ac_t""no" 1>&6
0046ff7c 7291 fi
698dcdb6 7292
0046ff7c 7293
698dcdb6 7294 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
9f41d601 7295echo "configure:7296: checking for --enable-gif" >&5
10f2d63a
VZ
7296 no_cache=0
7297 # Check whether --enable-gif or --disable-gif was given.
7298if test "${enable_gif+set}" = set; then
7299 enableval="$enable_gif"
698dcdb6 7300
10f2d63a
VZ
7301 if test "$enableval" = yes; then
7302 ac_cv_use_gif='wxUSE_GIF=yes'
7303 else
7304 ac_cv_use_gif='wxUSE_GIF=no'
7305 fi
698dcdb6 7306
10f2d63a 7307else
698dcdb6 7308
10f2d63a
VZ
7309 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7310 if test "x$LINE" != x ; then
7311 eval "DEFAULT_$LINE"
7312 else
7313 no_cache=1
7314 fi
7315
7316 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
7317
7318fi
10f2d63a
VZ
7319
7320
7321 eval "$ac_cv_use_gif"
7322 if test "$no_cache" != 1; then
7323 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7324 fi
7325
7326 if test "$wxUSE_GIF" = yes; then
698dcdb6 7327 echo "$ac_t""yes" 1>&6
10f2d63a 7328 else
698dcdb6 7329 echo "$ac_t""no" 1>&6
10f2d63a 7330 fi
698dcdb6 7331
10f2d63a 7332
698dcdb6 7333 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
9f41d601 7334echo "configure:7335: checking for --enable-pcx" >&5
10f2d63a
VZ
7335 no_cache=0
7336 # Check whether --enable-pcx or --disable-pcx was given.
7337if test "${enable_pcx+set}" = set; then
7338 enableval="$enable_pcx"
698dcdb6 7339
10f2d63a
VZ
7340 if test "$enableval" = yes; then
7341 ac_cv_use_pcx='wxUSE_PCX=yes'
7342 else
7343 ac_cv_use_pcx='wxUSE_PCX=no'
7344 fi
698dcdb6 7345
10f2d63a 7346else
698dcdb6 7347
10f2d63a
VZ
7348 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7349 if test "x$LINE" != x ; then
7350 eval "DEFAULT_$LINE"
7351 else
7352 no_cache=1
7353 fi
7354
7355 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
7356
7357fi
10f2d63a
VZ
7358
7359
7360 eval "$ac_cv_use_pcx"
7361 if test "$no_cache" != 1; then
7362 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7363 fi
7364
7365 if test "$wxUSE_PCX" = yes; then
698dcdb6 7366 echo "$ac_t""yes" 1>&6
10f2d63a 7367 else
698dcdb6 7368 echo "$ac_t""no" 1>&6
10f2d63a 7369 fi
698dcdb6 7370
10f2d63a 7371
698dcdb6 7372 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
9f41d601 7373echo "configure:7374: checking for --enable-pnm" >&5
10f2d63a
VZ
7374 no_cache=0
7375 # Check whether --enable-pnm or --disable-pnm was given.
7376if test "${enable_pnm+set}" = set; then
7377 enableval="$enable_pnm"
698dcdb6 7378
10f2d63a
VZ
7379 if test "$enableval" = yes; then
7380 ac_cv_use_pnm='wxUSE_PNM=yes'
7381 else
7382 ac_cv_use_pnm='wxUSE_PNM=no'
7383 fi
698dcdb6 7384
10f2d63a 7385else
698dcdb6 7386
10f2d63a
VZ
7387 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7388 if test "x$LINE" != x ; then
7389 eval "DEFAULT_$LINE"
7390 else
7391 no_cache=1
7392 fi
7393
7394 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
7395
7396fi
10f2d63a
VZ
7397
7398
7399 eval "$ac_cv_use_pnm"
7400 if test "$no_cache" != 1; then
7401 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7402 fi
7403
7404 if test "$wxUSE_PNM" = yes; then
698dcdb6 7405 echo "$ac_t""yes" 1>&6
10f2d63a 7406 else
698dcdb6 7407 echo "$ac_t""no" 1>&6
10f2d63a 7408 fi
698dcdb6 7409
10f2d63a 7410
698dcdb6 7411 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
9f41d601 7412echo "configure:7413: checking for --enable-pnm" >&5
0046ff7c
VS
7413 no_cache=0
7414 # Check whether --enable-pnm or --disable-pnm was given.
7415if test "${enable_pnm+set}" = set; then
7416 enableval="$enable_pnm"
698dcdb6 7417
0046ff7c
VS
7418 if test "$enableval" = yes; then
7419 ac_cv_use_pnm='wxUSE_XPM=yes'
7420 else
7421 ac_cv_use_pnm='wxUSE_XPM=no'
7422 fi
698dcdb6 7423
0046ff7c 7424else
698dcdb6 7425
0046ff7c
VS
7426 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7427 if test "x$LINE" != x ; then
7428 eval "DEFAULT_$LINE"
7429 else
7430 no_cache=1
7431 fi
7432
7433 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
7434
7435fi
0046ff7c
VS
7436
7437
7438 eval "$ac_cv_use_pnm"
7439 if test "$no_cache" != 1; then
7440 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7441 fi
7442
7443 if test "$wxUSE_XPM" = yes; then
698dcdb6 7444 echo "$ac_t""yes" 1>&6
0046ff7c 7445 else
698dcdb6 7446 echo "$ac_t""no" 1>&6
0046ff7c 7447 fi
698dcdb6 7448
0046ff7c 7449
b12915c1
VZ
7450fi
7451
698dcdb6 7452
10f2d63a
VZ
7453 echo "saving argument cache $wx_arg_cache_file"
7454 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 7455
10f2d63a 7456
698dcdb6
VZ
7457
7458echo $ac_n "checking for toolkit""... $ac_c" 1>&6
9f41d601 7459echo "configure:7460: checking for toolkit" >&5
10f2d63a
VZ
7460
7461if test "$wxUSE_GUI" = "yes"; then
7462
b12915c1 7463if test "$USE_BEOS" = 1; then
698dcdb6 7464 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
b12915c1
VZ
7465fi
7466
10f2d63a
VZ
7467if test "$TOOLKIT_GIVEN" = 1; then
7468 for toolkit in `echo $ALL_TOOLKITS`; do
7469 var=wxUSE_$toolkit
7470 eval "value=\$${var}"
7471 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7472 done
7473else
7474 for toolkit in `echo $ALL_TOOLKITS`; do
7475 if test "$has_toolkit_in_cache" != 1; then
7476 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7477 else
7478 var=DEFAULT_wxUSE_$toolkit
7479 fi
7480 eval "wxUSE_$toolkit=\$${var}"
7481 done
7482fi
7483
1e6feb95 7484NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}`
cf27ef00 7485
ec14dd32
VZ
7486case "${host}" in
7487 *-pc-os2_emx )
7488 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7489 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7490 LEX_STEM="lexyy"
7491 ;;
7492 *)
7493 PATH_IFS=':'
7494 LEX_STEM="lex.yy"
7495 ;;
7496esac
10f2d63a
VZ
7497
7498case "$NUM_TOOLKITS" in
7499 1)
7500 ;;
7501 0)
698dcdb6 7502 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
10f2d63a
VZ
7503 ;;
7504 *)
698dcdb6 7505 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
10f2d63a
VZ
7506esac
7507
7508for toolkit in `echo $ALL_TOOLKITS`; do
7509 var=wxUSE_$toolkit
7510 eval "value=\$${var}"
7511 if test "x$value" != x; then
7512 cache_var=CACHE_$toolkit
7513 eval "cache=\$${cache_var}"
7514 if test "$cache" = 1; then
7515 echo "$var=$value" >> ${wx_arg_cache_file}
7516 fi
7517 if test "$value" = 1; then
8168de4c
VZ
7518 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7519 echo "$ac_t""$toolkit_echo" 1>&6
10f2d63a
VZ
7520 fi
7521 fi
7522done
7523
7524else
cf27ef00 7525 PATH_IFS=':'
698dcdb6 7526 echo "$ac_t""base only" 1>&6
10f2d63a
VZ
7527fi
7528
698dcdb6
VZ
7529
7530cat > confcache <<\EOF
10f2d63a
VZ
7531# This file is a shell script that caches the results of configure
7532# tests run on this system so they can be shared between configure
698dcdb6
VZ
7533# scripts and configure runs. It is not useful on other systems.
7534# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 7535#
698dcdb6
VZ
7536# By default, configure uses ./config.cache as the cache file,
7537# creating it if it does not exist already. You can give configure
7538# the --cache-file=FILE option to use a different cache file; that is
7539# what configure does when it calls configure scripts in
7540# subdirectories, so they share the cache.
7541# Giving --cache-file=/dev/null disables caching, for debugging configure.
7542# config.status only pays attention to the cache file if you give it the
7543# --recheck option to rerun configure.
10f2d63a 7544#
698dcdb6 7545EOF
10f2d63a
VZ
7546# The following way of writing the cache mishandles newlines in values,
7547# but we know of no workaround that is simple, portable, and efficient.
7548# So, don't put newlines in cache variables' values.
7549# Ultrix sh set writes to stderr and can't be redirected directly,
7550# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
7551(set) 2>&1 |
7552 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7553 *ac_space=\ *)
7554 # `set' does not quote correctly, so add quotes (double-quote substitution
7555 # turns \\\\ into \\, and sed turns \\ into \).
7556 sed -n \
7557 -e "s/'/'\\\\''/g" \
7558 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7559 ;;
7560 *)
7561 # `set' quotes correctly as required by POSIX, so do not add quotes.
7562 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7563 ;;
7564 esac >> confcache
7565if cmp -s $cache_file confcache; then
7566 :
7567else
10f2d63a 7568 if test -w $cache_file; then
698dcdb6
VZ
7569 echo "updating cache $cache_file"
7570 cat confcache > $cache_file
10f2d63a
VZ
7571 else
7572 echo "not updating unwritable cache $cache_file"
7573 fi
7574fi
7575rm -f confcache
7576
698dcdb6 7577
e59890c3 7578if test "$build" != "$host" ; then
10f2d63a
VZ
7579 CC=$host_alias-gcc
7580 CXX=$host_alias-c++
7581 AR=$host_alias-ar
7582 RANLIB=$host_alias-ranlib
7583 DLLTOOL=$host_alias-dlltool
32832908 7584 RESCOMP=$host_alias-windres
10f2d63a
VZ
7585 LD=$host_alias-ld
7586 NM=$host_alias-nm
7587 STRIP=$host_alias-strip
10f2d63a
VZ
7588fi
7589
698dcdb6 7590# Extract the first word of "gcc", so it can be a program name with args.
1e487827 7591set dummy gcc; ac_word=$2
698dcdb6 7592echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9f41d601 7593echo "configure:7594: checking for $ac_word" >&5
698dcdb6
VZ
7594if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7595 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
7596else
7597 if test -n "$CC"; then
7598 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 7599else
698dcdb6
VZ
7600 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7601 ac_dummy="$PATH"
7602 for ac_dir in $ac_dummy; do
7603 test -z "$ac_dir" && ac_dir=.
7604 if test -f $ac_dir/$ac_word; then
7605 ac_cv_prog_CC="gcc"
7606 break
7607 fi
7608 done
7609 IFS="$ac_save_ifs"
10f2d63a 7610fi
6232543b 7611fi
698dcdb6 7612CC="$ac_cv_prog_CC"
6232543b 7613if test -n "$CC"; then
698dcdb6 7614 echo "$ac_t""$CC" 1>&6
1e487827 7615else
698dcdb6 7616 echo "$ac_t""no" 1>&6
1e487827 7617fi
6232543b 7618
1e487827
VS
7619if test -z "$CC"; then
7620 # Extract the first word of "cc", so it can be a program name with args.
7621set dummy cc; ac_word=$2
698dcdb6 7622echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9f41d601 7623echo "configure:7624: checking for $ac_word" >&5
698dcdb6
VZ
7624if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7625 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7626else
7627 if test -n "$CC"; then
7628 ac_cv_prog_CC="$CC" # Let the user override the test.
7629else
698dcdb6 7630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 7631 ac_prog_rejected=no
698dcdb6
VZ
7632 ac_dummy="$PATH"
7633 for ac_dir in $ac_dummy; do
7634 test -z "$ac_dir" && ac_dir=.
7635 if test -f $ac_dir/$ac_word; then
7636 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7637 ac_prog_rejected=yes
7638 continue
7639 fi
7640 ac_cv_prog_CC="cc"
7641 break
7642 fi
7643 done
7644 IFS="$ac_save_ifs"
1e487827
VS
7645if test $ac_prog_rejected = yes; then
7646 # We found a bogon in the path, so make sure we never use it.
7647 set dummy $ac_cv_prog_CC
7648 shift
698dcdb6 7649 if test $# -gt 0; then
1e487827
VS
7650 # We chose a different compiler from the bogus one.
7651 # However, it has the same basename, so the bogon will be chosen
7652 # first if we set CC to just the basename; use the full file name.
7653 shift
698dcdb6 7654 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
7655 shift
7656 ac_cv_prog_CC="$@"
703e0a69 7657 fi
1e487827
VS
7658fi
7659fi
7660fi
698dcdb6 7661CC="$ac_cv_prog_CC"
1e487827 7662if test -n "$CC"; then
698dcdb6 7663 echo "$ac_t""$CC" 1>&6
703e0a69 7664else
698dcdb6 7665 echo "$ac_t""no" 1>&6
703e0a69 7666fi
1e487827 7667
698dcdb6
VZ
7668 if test -z "$CC"; then
7669 case "`uname -s`" in
7670 *win32* | *WIN32*)
7671 # Extract the first word of "cl", so it can be a program name with args.
7672set dummy cl; ac_word=$2
7673echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9f41d601 7674echo "configure:7675: checking for $ac_word" >&5
698dcdb6
VZ
7675if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7676 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7677else
7678 if test -n "$CC"; then
7679 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 7680else
698dcdb6
VZ
7681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7682 ac_dummy="$PATH"
7683 for ac_dir in $ac_dummy; do
7684 test -z "$ac_dir" && ac_dir=.
7685 if test -f $ac_dir/$ac_word; then
7686 ac_cv_prog_CC="cl"
7687 break
7688 fi
7689 done
7690 IFS="$ac_save_ifs"
703e0a69 7691fi
1e487827 7692fi
698dcdb6 7693CC="$ac_cv_prog_CC"
1e487827 7694if test -n "$CC"; then
698dcdb6 7695 echo "$ac_t""$CC" 1>&6
1e487827 7696else
698dcdb6 7697 echo "$ac_t""no" 1>&6
1e487827 7698fi
698dcdb6
VZ
7699 ;;
7700 esac
7701 fi
7702 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
7703fi
7704
698dcdb6 7705echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9f41d601 7706echo "configure:7707: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 7707
698dcdb6
VZ
7708ac_ext=c
7709# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7710ac_cpp='$CPP $CPPFLAGS'
7711ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7712ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7713cross_compiling=$ac_cv_prog_cc_cross
6232543b 7714
698dcdb6 7715cat > conftest.$ac_ext << EOF
1e487827 7716
9f41d601 7717#line 7718 "configure"
1e487827
VS
7718#include "confdefs.h"
7719
698dcdb6
VZ
7720main(){return(0);}
7721EOF
9f41d601 7722if { (eval echo configure:7723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
7723 ac_cv_prog_cc_works=yes
7724 # If we can't run a trivial program, we are probably using a cross compiler.
7725 if (./conftest; exit) 2>/dev/null; then
7726 ac_cv_prog_cc_cross=no
7727 else
7728 ac_cv_prog_cc_cross=yes
7729 fi
7730else
7731 echo "configure: failed program was:" >&5
7732 cat conftest.$ac_ext >&5
7733 ac_cv_prog_cc_works=no
7734fi
7735rm -fr conftest*
7736ac_ext=c
7737# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7738ac_cpp='$CPP $CPPFLAGS'
7739ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7740ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7741cross_compiling=$ac_cv_prog_cc_cross
7742
7743echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
7744if test $ac_cv_prog_cc_works = no; then
7745 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
7746fi
7747echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9f41d601 7748echo "configure:7749: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
7749echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
7750cross_compiling=$ac_cv_prog_cc_cross
7751
7752echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
9f41d601 7753echo "configure:7754: checking whether we are using GNU C" >&5
698dcdb6
VZ
7754if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
7755 echo $ac_n "(cached) $ac_c" 1>&6
7756else
7757 cat > conftest.c <<EOF
7758#ifdef __GNUC__
7759 yes;
1e487827 7760#endif
698dcdb6 7761EOF
9f41d601 7762if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
7763 ac_cv_prog_gcc=yes
7764else
7765 ac_cv_prog_gcc=no
7766fi
7767fi
1e487827 7768
698dcdb6 7769echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 7770
698dcdb6
VZ
7771if test $ac_cv_prog_gcc = yes; then
7772 GCC=yes
7773else
7774 GCC=
7775fi
1e487827 7776
698dcdb6
VZ
7777ac_test_CFLAGS="${CFLAGS+set}"
7778ac_save_CFLAGS="$CFLAGS"
7779CFLAGS=
7780echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
9f41d601 7781echo "configure:7782: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
7782if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
7783 echo $ac_n "(cached) $ac_c" 1>&6
7784else
7785 echo 'void f(){}' > conftest.c
7786if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
7787 ac_cv_prog_cc_g=yes
7788else
698dcdb6 7789 ac_cv_prog_cc_g=no
10f2d63a 7790fi
698dcdb6
VZ
7791rm -f conftest*
7792
10f2d63a 7793fi
698dcdb6
VZ
7794
7795echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 7796if test "$ac_test_CFLAGS" = set; then
698dcdb6 7797 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
7798elif test $ac_cv_prog_cc_g = yes; then
7799 if test "$GCC" = yes; then
7800 CFLAGS="-g -O2"
7801 else
7802 CFLAGS="-g"
7803 fi
7804else
7805 if test "$GCC" = yes; then
7806 CFLAGS="-O2"
7807 else
7808 CFLAGS=
7809 fi
7810fi
7811
7812
7813CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
7814
698dcdb6 7815echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
9f41d601 7816echo "configure:7817: checking how to run the C preprocessor" >&5
10f2d63a
VZ
7817# On Suns, sometimes $CPP names a directory.
7818if test -n "$CPP" && test -d "$CPP"; then
7819 CPP=
7820fi
7821if test -z "$CPP"; then
698dcdb6
VZ
7822if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
7823 echo $ac_n "(cached) $ac_c" 1>&6
7824else
7825 # This must be in double quotes, not single quotes, because CPP may get
7826 # substituted into the Makefile and "${CC-cc}" will confuse make.
7827 CPP="${CC-cc} -E"
10f2d63a 7828 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
7829 # not just through cpp.
7830 cat > conftest.$ac_ext <<EOF
9f41d601 7831#line 7832 "configure"
10f2d63a
VZ
7832#include "confdefs.h"
7833#include <assert.h>
698dcdb6
VZ
7834Syntax Error
7835EOF
7836ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f41d601 7837{ (eval echo configure:7838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
7838ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7839if test -z "$ac_err"; then
10f2d63a
VZ
7840 :
7841else
698dcdb6
VZ
7842 echo "$ac_err" >&5
7843 echo "configure: failed program was:" >&5
10f2d63a 7844 cat conftest.$ac_ext >&5
698dcdb6
VZ
7845 rm -rf conftest*
7846 CPP="${CC-cc} -E -traditional-cpp"
7847 cat > conftest.$ac_ext <<EOF
9f41d601 7848#line 7849 "configure"
10f2d63a 7849#include "confdefs.h"
698dcdb6
VZ
7850#include <assert.h>
7851Syntax Error
7852EOF
7853ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f41d601 7854{ (eval echo configure:7855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
7855ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7856if test -z "$ac_err"; then
7857 :
10f2d63a 7858else
698dcdb6
VZ
7859 echo "$ac_err" >&5
7860 echo "configure: failed program was:" >&5
10f2d63a 7861 cat conftest.$ac_ext >&5
698dcdb6
VZ
7862 rm -rf conftest*
7863 CPP="${CC-cc} -nologo -E"
7864 cat > conftest.$ac_ext <<EOF
9f41d601 7865#line 7866 "configure"
10f2d63a
VZ
7866#include "confdefs.h"
7867#include <assert.h>
698dcdb6
VZ
7868Syntax Error
7869EOF
7870ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f41d601 7871{ (eval echo configure:7872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
7872ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7873if test -z "$ac_err"; then
10f2d63a
VZ
7874 :
7875else
698dcdb6
VZ
7876 echo "$ac_err" >&5
7877 echo "configure: failed program was:" >&5
10f2d63a 7878 cat conftest.$ac_ext >&5
698dcdb6
VZ
7879 rm -rf conftest*
7880 CPP=/lib/cpp
10f2d63a 7881fi
698dcdb6 7882rm -f conftest*
10f2d63a 7883fi
698dcdb6 7884rm -f conftest*
703e0a69 7885fi
698dcdb6
VZ
7886rm -f conftest*
7887 ac_cv_prog_CPP="$CPP"
7888fi
7889 CPP="$ac_cv_prog_CPP"
10f2d63a 7890else
698dcdb6 7891 ac_cv_prog_CPP="$CPP"
10f2d63a 7892fi
698dcdb6 7893echo "$ac_t""$CPP" 1>&6
10f2d63a
VZ
7894
7895
698dcdb6
VZ
7896if test $ac_cv_prog_gcc = yes; then
7897 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
9f41d601 7898echo "configure:7899: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
7899if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
7900 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
7901else
7902 ac_pattern="Autoconf.*'x'"
698dcdb6 7903 cat > conftest.$ac_ext <<EOF
9f41d601 7904#line 7905 "configure"
10f2d63a
VZ
7905#include "confdefs.h"
7906#include <sgtty.h>
7907Autoconf TIOCGETP
698dcdb6 7908EOF
10f2d63a
VZ
7909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7910 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 7911 rm -rf conftest*
10f2d63a
VZ
7912 ac_cv_prog_gcc_traditional=yes
7913else
698dcdb6 7914 rm -rf conftest*
10f2d63a
VZ
7915 ac_cv_prog_gcc_traditional=no
7916fi
7917rm -f conftest*
7918
698dcdb6 7919
10f2d63a 7920 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 7921 cat > conftest.$ac_ext <<EOF
9f41d601 7922#line 7923 "configure"
10f2d63a
VZ
7923#include "confdefs.h"
7924#include <termio.h>
7925Autoconf TCGETA
698dcdb6 7926EOF
10f2d63a
VZ
7927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7928 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 7929 rm -rf conftest*
10f2d63a
VZ
7930 ac_cv_prog_gcc_traditional=yes
7931fi
7932rm -f conftest*
7933
7934 fi
7935fi
698dcdb6
VZ
7936
7937echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
7938 if test $ac_cv_prog_gcc_traditional = yes; then
7939 CC="$CC -traditional"
7940 fi
7941fi
7942
703e0a69 7943
698dcdb6
VZ
7944
7945ac_ext=C
7946# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 7947ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
7948ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7949ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7950cross_compiling=$ac_cv_prog_cxx_cross
7951
7952
7953for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
7954do
7955# Extract the first word of "$ac_prog", so it can be a program name with args.
7956set dummy $ac_prog; ac_word=$2
7957echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9f41d601 7958echo "configure:7959: checking for $ac_word" >&5
698dcdb6
VZ
7959if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
7960 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
7961else
7962 if test -n "$CXX"; then
7963 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7964else
698dcdb6
VZ
7965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7966 ac_dummy="$PATH"
7967 for ac_dir in $ac_dummy; do
7968 test -z "$ac_dir" && ac_dir=.
7969 if test -f $ac_dir/$ac_word; then
7970 ac_cv_prog_CXX="$ac_prog"
7971 break
7972 fi
7973 done
7974 IFS="$ac_save_ifs"
10f2d63a
VZ
7975fi
7976fi
698dcdb6 7977CXX="$ac_cv_prog_CXX"
10f2d63a 7978if test -n "$CXX"; then
698dcdb6 7979 echo "$ac_t""$CXX" 1>&6
10f2d63a 7980else
698dcdb6 7981 echo "$ac_t""no" 1>&6
10f2d63a
VZ
7982fi
7983
698dcdb6 7984test -n "$CXX" && break
10f2d63a 7985done
698dcdb6 7986test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
7987
7988
698dcdb6 7989echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9f41d601 7990echo "configure:7991: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 7991
698dcdb6
VZ
7992ac_ext=C
7993# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7994ac_cpp='$CXXCPP $CPPFLAGS'
7995ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7996ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7997cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 7998
698dcdb6
VZ
7999cat > conftest.$ac_ext << EOF
8000
9f41d601 8001#line 8002 "configure"
10f2d63a
VZ
8002#include "confdefs.h"
8003
698dcdb6
VZ
8004int main(){return(0);}
8005EOF
9f41d601 8006if { (eval echo configure:8007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8007 ac_cv_prog_cxx_works=yes
8008 # If we can't run a trivial program, we are probably using a cross compiler.
8009 if (./conftest; exit) 2>/dev/null; then
8010 ac_cv_prog_cxx_cross=no
8011 else
8012 ac_cv_prog_cxx_cross=yes
8013 fi
8014else
8015 echo "configure: failed program was:" >&5
8016 cat conftest.$ac_ext >&5
8017 ac_cv_prog_cxx_works=no
8018fi
8019rm -fr conftest*
8020ac_ext=C
8021# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8022ac_cpp='$CXXCPP $CPPFLAGS'
8023ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8024ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8025cross_compiling=$ac_cv_prog_cxx_cross
8026
8027echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8028if test $ac_cv_prog_cxx_works = no; then
8029 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8030fi
8031echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9f41d601 8032echo "configure:8033: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8033echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8034cross_compiling=$ac_cv_prog_cxx_cross
8035
8036echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9f41d601 8037echo "configure:8038: checking whether we are using GNU C++" >&5
698dcdb6
VZ
8038if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8039 echo $ac_n "(cached) $ac_c" 1>&6
8040else
8041 cat > conftest.C <<EOF
8042#ifdef __GNUC__
8043 yes;
10f2d63a 8044#endif
698dcdb6 8045EOF
9f41d601 8046if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8047 ac_cv_prog_gxx=yes
8048else
8049 ac_cv_prog_gxx=no
8050fi
8051fi
10f2d63a 8052
698dcdb6 8053echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 8054
698dcdb6
VZ
8055if test $ac_cv_prog_gxx = yes; then
8056 GXX=yes
8057else
8058 GXX=
8059fi
10f2d63a 8060
698dcdb6
VZ
8061ac_test_CXXFLAGS="${CXXFLAGS+set}"
8062ac_save_CXXFLAGS="$CXXFLAGS"
8063CXXFLAGS=
8064echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9f41d601 8065echo "configure:8066: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
8066if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8067 echo $ac_n "(cached) $ac_c" 1>&6
8068else
8069 echo 'void f(){}' > conftest.cc
8070if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
8071 ac_cv_prog_cxx_g=yes
8072else
698dcdb6 8073 ac_cv_prog_cxx_g=no
10f2d63a 8074fi
698dcdb6
VZ
8075rm -f conftest*
8076
10f2d63a 8077fi
698dcdb6
VZ
8078
8079echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 8080if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 8081 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
8082elif test $ac_cv_prog_cxx_g = yes; then
8083 if test "$GXX" = yes; then
8084 CXXFLAGS="-g -O2"
8085 else
8086 CXXFLAGS="-g"
8087 fi
8088else
8089 if test "$GXX" = yes; then
8090 CXXFLAGS="-O2"
8091 else
8092 CXXFLAGS=
8093 fi
8094fi
8095
8096
698dcdb6 8097echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
9f41d601 8098echo "configure:8099: checking how to run the C++ preprocessor" >&5
1e487827 8099if test -z "$CXXCPP"; then
698dcdb6
VZ
8100if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
8101 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 8102else
698dcdb6
VZ
8103 ac_ext=C
8104# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8105ac_cpp='$CXXCPP $CPPFLAGS'
8106ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8107ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8108cross_compiling=$ac_cv_prog_cxx_cross
8109 CXXCPP="${CXX-g++} -E"
8110 cat > conftest.$ac_ext <<EOF
9f41d601 8111#line 8112 "configure"
1e487827 8112#include "confdefs.h"
698dcdb6
VZ
8113#include <stdlib.h>
8114EOF
8115ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f41d601 8116{ (eval echo configure:8117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8117ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8118if test -z "$ac_err"; then
1e487827
VS
8119 :
8120else
698dcdb6
VZ
8121 echo "$ac_err" >&5
8122 echo "configure: failed program was:" >&5
1e487827 8123 cat conftest.$ac_ext >&5
698dcdb6
VZ
8124 rm -rf conftest*
8125 CXXCPP=/lib/cpp
1e487827 8126fi
698dcdb6
VZ
8127rm -f conftest*
8128 ac_cv_prog_CXXCPP="$CXXCPP"
8129ac_ext=C
8130# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8131ac_cpp='$CXXCPP $CPPFLAGS'
8132ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8133ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8134cross_compiling=$ac_cv_prog_cxx_cross
1e487827 8135fi
1e487827 8136fi
698dcdb6
VZ
8137CXXCPP="$ac_cv_prog_CXXCPP"
8138echo "$ac_t""$CXXCPP" 1>&6
1e487827 8139
10f2d63a
VZ
8140
8141CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8142
8143ac_ext=c
698dcdb6 8144# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 8145ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
8146ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8147ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8148cross_compiling=$ac_cv_prog_cc_cross
8149
8150
8151# Extract the first word of "ranlib", so it can be a program name with args.
8152set dummy ranlib; ac_word=$2
8153echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9f41d601 8154echo "configure:8155: checking for $ac_word" >&5
698dcdb6
VZ
8155if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8156 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8157else
8158 if test -n "$RANLIB"; then
8159 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8160else
698dcdb6
VZ
8161 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8162 ac_dummy="$PATH"
8163 for ac_dir in $ac_dummy; do
8164 test -z "$ac_dir" && ac_dir=.
8165 if test -f $ac_dir/$ac_word; then
8166 ac_cv_prog_RANLIB="ranlib"
8167 break
8168 fi
8169 done
8170 IFS="$ac_save_ifs"
8171 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
8172fi
8173fi
698dcdb6 8174RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 8175if test -n "$RANLIB"; then
698dcdb6 8176 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 8177else
698dcdb6 8178 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8179fi
8180
8181
8182# Extract the first word of "ar", so it can be a program name with args.
8183set dummy ar; ac_word=$2
698dcdb6 8184echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9f41d601 8185echo "configure:8186: checking for $ac_word" >&5
698dcdb6
VZ
8186if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8187 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8188else
8189 if test -n "$AR"; then
8190 ac_cv_prog_AR="$AR" # Let the user override the test.
8191else
698dcdb6
VZ
8192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8193 ac_dummy="$PATH"
8194 for ac_dir in $ac_dummy; do
8195 test -z "$ac_dir" && ac_dir=.
8196 if test -f $ac_dir/$ac_word; then
8197 ac_cv_prog_AR="ar"
8198 break
8199 fi
8200 done
8201 IFS="$ac_save_ifs"
10f2d63a
VZ
8202 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8203fi
8204fi
698dcdb6 8205AR="$ac_cv_prog_AR"
10f2d63a 8206if test -n "$AR"; then
698dcdb6 8207 echo "$ac_t""$AR" 1>&6
10f2d63a 8208else
698dcdb6 8209 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8210fi
8211
698dcdb6 8212
10f2d63a
VZ
8213# Find a good install program. We prefer a C program (faster),
8214# so one script is as good as another. But avoid the broken or
8215# incompatible versions:
8216# SysV /etc/install, /usr/sbin/install
8217# SunOS /usr/etc/install
8218# IRIX /sbin/install
8219# AIX /bin/install
8220# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8221# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8222# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8223# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 8224echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9f41d601 8225echo "configure:8226: checking for a BSD compatible install" >&5
10f2d63a 8226if test -z "$INSTALL"; then
698dcdb6
VZ
8227if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8228 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8229else
698dcdb6 8230 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
8231 for ac_dir in $PATH; do
8232 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
8233 case "$ac_dir/" in
8234 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
8235 *)
8236 # OSF1 and SCO ODT 3.0 have their own names for install.
8237 # Don't use installbsd from OSF since it installs stuff as root
8238 # by default.
8239 for ac_prog in ginstall scoinst install; do
698dcdb6 8240 if test -f $ac_dir/$ac_prog; then
10f2d63a 8241 if test $ac_prog = install &&
698dcdb6 8242 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
8243 # AIX install. It has an incompatible calling convention.
8244 :
8245 else
8246 ac_cv_path_install="$ac_dir/$ac_prog -c"
8247 break 2
8248 fi
8249 fi
8250 done
8251 ;;
8252 esac
8253 done
698dcdb6 8254 IFS="$ac_save_IFS"
10f2d63a
VZ
8255
8256fi
8257 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 8258 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
8259 else
8260 # As a last resort, use the slow shell script. We don't cache a
8261 # path for INSTALL within a source directory, because that will
8262 # break other packages using the cache if that directory is
8263 # removed, or if the path is relative.
698dcdb6 8264 INSTALL="$ac_install_sh"
10f2d63a
VZ
8265 fi
8266fi
698dcdb6 8267echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
8268
8269# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8270# It thinks the first close brace ends the variable substitution.
8271test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8272
698dcdb6 8273test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
8274
8275test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8276
698dcdb6 8277
10f2d63a
VZ
8278# Extract the first word of "strip", so it can be a program name with args.
8279set dummy strip; ac_word=$2
698dcdb6 8280echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9f41d601 8281echo "configure:8282: checking for $ac_word" >&5
698dcdb6
VZ
8282if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8283 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8284else
8285 if test -n "$STRIP"; then
8286 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8287else
698dcdb6
VZ
8288 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8289 ac_dummy="$PATH"
8290 for ac_dir in $ac_dummy; do
8291 test -z "$ac_dir" && ac_dir=.
8292 if test -f $ac_dir/$ac_word; then
8293 ac_cv_prog_STRIP="strip"
8294 break
8295 fi
8296 done
8297 IFS="$ac_save_ifs"
10f2d63a
VZ
8298 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8299fi
8300fi
698dcdb6 8301STRIP="$ac_cv_prog_STRIP"
10f2d63a 8302if test -n "$STRIP"; then
698dcdb6 8303 echo "$ac_t""$STRIP" 1>&6
10f2d63a 8304else
698dcdb6 8305 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8306fi
8307
698dcdb6
VZ
8308
8309echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
9f41d601 8310echo "configure:8311: checking make for VPATH support" >&5
10f2d63a
VZ
8311cat - << EOF > confMake
8312check : file
8313 cp \$? \$@
8314 cp \$? final_file
8315EOF
8316
8317if test ! -d sub ; then
8318 mkdir sub
8319fi
8320echo dummy > sub/file
f6bcfd97 8321${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
8322RESULT=$?
8323rm -f sub/file check final_file confMake
8324rmdir sub
8325if test "$RESULT" = 0; then
698dcdb6 8326 echo "$ac_t""yes" 1>&6
10f2d63a 8327else
698dcdb6
VZ
8328 echo "$ac_t""no" 1>&6
8329 { echo "configure: error:
1e487827
VS
8330You need a make-utility that is able to use the variable
8331VPATH correctly.
8332If your version of make does not support VPATH correctly,
8333please install GNU-make (possibly as gmake), and start
8334configure with the following command:
8335export MAKE=gmake; ./configure for sh-type shells
8336setenv MAKE gmake; ./configure for csh-type shells
8337Also please do remember to use gmake in this case every time
8338you are trying to compile.
698dcdb6 8339" 1>&2; exit 1; }
10f2d63a
VZ
8340fi
8341
8342for ac_prog in 'bison -y' byacc
8343do
698dcdb6 8344# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 8345set dummy $ac_prog; ac_word=$2
698dcdb6 8346echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9f41d601 8347echo "configure:8348: checking for $ac_word" >&5
698dcdb6
VZ
8348if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8349 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8350else
8351 if test -n "$YACC"; then
8352 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8353else
698dcdb6
VZ
8354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8355 ac_dummy="$PATH"
8356 for ac_dir in $ac_dummy; do
8357 test -z "$ac_dir" && ac_dir=.
8358 if test -f $ac_dir/$ac_word; then
8359 ac_cv_prog_YACC="$ac_prog"
8360 break
8361 fi
8362 done
8363 IFS="$ac_save_ifs"
10f2d63a
VZ
8364fi
8365fi
698dcdb6 8366YACC="$ac_cv_prog_YACC"
10f2d63a 8367if test -n "$YACC"; then
698dcdb6 8368 echo "$ac_t""$YACC" 1>&6
10f2d63a 8369else
698dcdb6 8370 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8371fi
8372
698dcdb6 8373test -n "$YACC" && break
10f2d63a
VZ
8374done
8375test -n "$YACC" || YACC="yacc"
8376
698dcdb6
VZ
8377
8378# Extract the first word of "flex", so it can be a program name with args.
8379set dummy flex; ac_word=$2
8380echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9f41d601 8381echo "configure:8382: checking for $ac_word" >&5
698dcdb6
VZ
8382if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8383 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8384else
8385 if test -n "$LEX"; then
8386 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8387else
698dcdb6
VZ
8388 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8389 ac_dummy="$PATH"
8390 for ac_dir in $ac_dummy; do
8391 test -z "$ac_dir" && ac_dir=.
8392 if test -f $ac_dir/$ac_word; then
8393 ac_cv_prog_LEX="flex"
8394 break
8395 fi
8396 done
8397 IFS="$ac_save_ifs"
8398 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
8399fi
8400fi
698dcdb6 8401LEX="$ac_cv_prog_LEX"
10f2d63a 8402if test -n "$LEX"; then
698dcdb6 8403 echo "$ac_t""$LEX" 1>&6
10f2d63a 8404else
698dcdb6 8405 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8406fi
8407
8408if test -z "$LEXLIB"
8409then
698dcdb6
VZ
8410 case "$LEX" in
8411 flex*) ac_lib=fl ;;
8412 *) ac_lib=l ;;
8413 esac
8414 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9f41d601 8415echo "configure:8416: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
8416ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8417if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8418 echo $ac_n "(cached) $ac_c" 1>&6
8419else
8420 ac_save_LIBS="$LIBS"
8421LIBS="-l$ac_lib $LIBS"
8422cat > conftest.$ac_ext <<EOF
9f41d601 8423#line 8424 "configure"
10f2d63a
VZ
8424#include "confdefs.h"
8425/* Override any gcc2 internal prototype to avoid an error. */
8426/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
8427 builtin and then its argument prototype would still apply. */
8428char yywrap();
10f2d63a 8429
698dcdb6
VZ
8430int main() {
8431yywrap()
8432; return 0; }
8433EOF
9f41d601 8434if { (eval echo configure:8435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8435 rm -rf conftest*
8436 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 8437else
698dcdb6
VZ
8438 echo "configure: failed program was:" >&5
8439 cat conftest.$ac_ext >&5
8440 rm -rf conftest*
8441 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 8442fi
698dcdb6
VZ
8443rm -f conftest*
8444LIBS="$ac_save_LIBS"
8445
10f2d63a 8446fi
698dcdb6
VZ
8447if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8448 echo "$ac_t""yes" 1>&6
8449 LEXLIB="-l$ac_lib"
8450else
8451 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8452fi
8453
8454fi
8455
8456
698dcdb6 8457echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9f41d601 8458echo "configure:8459: checking whether ln -s works" >&5
698dcdb6
VZ
8459if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8460 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8461else
698dcdb6
VZ
8462 rm -f conftestdata
8463if ln -s X conftestdata 2>/dev/null
8464then
8465 rm -f conftestdata
8466 ac_cv_prog_LN_S="ln -s"
10f2d63a 8467else
698dcdb6 8468 ac_cv_prog_LN_S=ln
10f2d63a
VZ
8469fi
8470fi
698dcdb6
VZ
8471LN_S="$ac_cv_prog_LN_S"
8472if test "$ac_cv_prog_LN_S" = "ln -s"; then
8473 echo "$ac_t""yes" 1>&6
10f2d63a 8474else
698dcdb6 8475 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8476fi
8477
8478
8479
8480SEARCH_INCLUDE="\
8481 /usr/local/include \
8482 \
8483 /usr/Motif-1.2/include \
8484 /usr/Motif-2.1/include \
8485 \
8486 /usr/include/Motif1.2 \
8487 /opt/xpm/include/X11 \
8488 /opt/GBxpm/include/ \
8489 /opt/GBxpm/X11/include/ \
8490 \
8491 /usr/Motif1.2/include \
8492 /usr/dt/include \
afc31813
VZ
8493 /usr/openwin/include \
8494 \
10f2d63a
VZ
8495 /usr/include/Xm \
8496 \
8497 /usr/X11R6/include \
afc31813 8498 /usr/X11R6.4/include \
10f2d63a
VZ
8499 /usr/X11R5/include \
8500 /usr/X11R4/include \
8501 \
10f2d63a
VZ
8502 /usr/include/X11R6 \
8503 /usr/include/X11R5 \
8504 /usr/include/X11R4 \
8505 \
8506 /usr/local/X11R6/include \
8507 /usr/local/X11R5/include \
8508 /usr/local/X11R4/include \
8509 \
8510 /usr/local/include/X11R6 \
8511 /usr/local/include/X11R5 \
8512 /usr/local/include/X11R4 \
8513 \
8514 /usr/X11/include \
8515 /usr/include/X11 \
8516 /usr/local/X11/include \
8517 /usr/local/include/X11 \
8518 \
8519 /usr/X386/include \
8520 /usr/x386/include \
8521 /usr/XFree86/include/X11 \
8522 \
cf27ef00 8523 X:/XFree86/include \
ec14dd32
VZ
8524 X:/XFree86/include/X11 \
8525 \
10f2d63a
VZ
8526 /usr/include/gtk \
8527 /usr/local/include/gtk \
8528 /usr/include/glib \
8529 /usr/local/include/glib \
8530 \
8531 /usr/include/qt \
8532 /usr/local/include/qt \
8533 \
8534 /usr/include/windows \
8535 /usr/include/wine \
8536 /usr/local/include/wine \
8537 \
8538 /usr/unsupported/include \
8539 /usr/athena/include \
8540 /usr/local/x11r5/include \
8541 /usr/lpp/Xamples/include \
8542 \
10f2d63a 8543 /usr/openwin/share/include \
928b5c08
VZ
8544 \
8545 /usr/include"
10f2d63a
VZ
8546
8547SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8548
698dcdb6
VZ
8549
8550cat > confcache <<\EOF
10f2d63a
VZ
8551# This file is a shell script that caches the results of configure
8552# tests run on this system so they can be shared between configure
698dcdb6
VZ
8553# scripts and configure runs. It is not useful on other systems.
8554# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8555#
698dcdb6
VZ
8556# By default, configure uses ./config.cache as the cache file,
8557# creating it if it does not exist already. You can give configure
8558# the --cache-file=FILE option to use a different cache file; that is
8559# what configure does when it calls configure scripts in
8560# subdirectories, so they share the cache.
8561# Giving --cache-file=/dev/null disables caching, for debugging configure.
8562# config.status only pays attention to the cache file if you give it the
8563# --recheck option to rerun configure.
10f2d63a 8564#
698dcdb6 8565EOF
10f2d63a
VZ
8566# The following way of writing the cache mishandles newlines in values,
8567# but we know of no workaround that is simple, portable, and efficient.
8568# So, don't put newlines in cache variables' values.
8569# Ultrix sh set writes to stderr and can't be redirected directly,
8570# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8571(set) 2>&1 |
8572 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8573 *ac_space=\ *)
8574 # `set' does not quote correctly, so add quotes (double-quote substitution
8575 # turns \\\\ into \\, and sed turns \\ into \).
8576 sed -n \
8577 -e "s/'/'\\\\''/g" \
8578 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8579 ;;
8580 *)
8581 # `set' quotes correctly as required by POSIX, so do not add quotes.
8582 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8583 ;;
8584 esac >> confcache
8585if cmp -s $cache_file confcache; then
8586 :
8587else
10f2d63a 8588 if test -w $cache_file; then
698dcdb6
VZ
8589 echo "updating cache $cache_file"
8590 cat confcache > $cache_file
10f2d63a
VZ
8591 else
8592 echo "not updating unwritable cache $cache_file"
8593 fi
8594fi
8595rm -f confcache
8596
698dcdb6
VZ
8597
8598
dad6c0ea
VZ
8599AFMINSTALL=
8600
10f2d63a 8601if test "$wxUSE_GUI" = "yes"; then
1e6feb95 8602 USE_GUI=1
10f2d63a 8603
1e6feb95
VZ
8604 TOOLKIT=
8605 TOOLKIT_INCLUDE=
10f2d63a 8606
1e6feb95
VZ
8607 GUI_TK_LIBRARY=
8608 GUI_TK_LINK=
10f2d63a 8609
1e6feb95
VZ
8610 WXGTK12=
8611 WXGTK127=
8612 WXGTK20=
10f2d63a 8613
1e6feb95 8614 WXWINE=
10f2d63a 8615
1e6feb95
VZ
8616 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
8617 if test "$cross_compiling" = "yes" ; then
8618 echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2
8619 else
8620 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
9f41d601 8621echo "configure:8622: checking for Windows headers" >&5
1e6feb95 8622
10f2d63a
VZ
8623ac_find_includes=
8624for ac_dir in $SEARCH_INCLUDE;
8625 do
8626 if test -f "$ac_dir/windows.h"; then
8627 ac_find_includes=$ac_dir
8628 break
8629 fi
8630 done
8631
1e6feb95
VZ
8632 if test "$ac_find_includes" != "" ; then
8633 echo "$ac_t""found $ac_find_includes" 1>&6
8634 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
8635 else
8636 echo "$ac_t""no" 1>&6
8637 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
8638 fi
10f2d63a 8639 fi
10f2d63a 8640
1e6feb95
VZ
8641 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
8642 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
f6bcfd97 8643
1e6feb95
VZ
8644 if test "$wxUSE_ODBC" = "yes" ; then
8645 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
8646 fi
10f2d63a 8647
1e6feb95
VZ
8648 if test "$wxUSE_MINGW" = 1; then
8649 LDFLAGS="$LDFLAGS -mwindows"
8650 fi
32832908 8651
1e6feb95
VZ
8652 TOOLKIT=MSW
8653 GUIDIST=MSW_DIST
32832908 8654
1e6feb95
VZ
8655 RCINCSWITCH="--include-dir"
8656 RCDEFSWITCH="--define"
8657 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
8658 RCINPUTSWITCH="-i"
8659 RCOUTPUTSWITCH="-o"
8660 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
32832908 8661
1e6feb95
VZ
8662 RESPROGRAM="\$(RES_PROGRAM)"
8663 fi
10f2d63a 8664
1e6feb95 8665 if test "$wxUSE_GTK" = 1; then
8168de4c 8666 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
9f41d601 8667echo "configure:8668: checking for GTK+ version" >&5
8168de4c
VZ
8668
8669 gtk_version_cached=1
8670 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
8671 echo $ac_n "(cached) $ac_c" 1>&6
8672else
8673
8674 gtk_version_cached=0
8675 echo "$ac_t""""" 1>&6
8676
8677 wx_cv_lib_gtk=
8678 if test "x$wxUSE_GTK2" = "xyes"; then
8679 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6f72b082
OK
8680if test "${with_gtk_prefix+set}" = set; then
8681 withval="$with_gtk_prefix"
8682 gtk_config_prefix="$withval"
8683else
8684 gtk_config_prefix=""
698dcdb6 8685fi
6f72b082
OK
8686
8687# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
8688if test "${with_gtk_exec_prefix+set}" = set; then
8689 withval="$with_gtk_exec_prefix"
8690 gtk_config_exec_prefix="$withval"
8691else
8692 gtk_config_exec_prefix=""
698dcdb6
VZ
8693fi
8694
6f72b082
OK
8695# Check whether --enable-gtktest or --disable-gtktest was given.
8696if test "${enable_gtktest+set}" = set; then
8697 enableval="$enable_gtktest"
698dcdb6 8698 :
6f72b082
OK
8699else
8700 enable_gtktest=yes
698dcdb6
VZ
8701fi
8702
6f72b082 8703
8168de4c 8704 for module in .
6f72b082
OK
8705 do
8706 case "$module" in
8168de4c 8707 gthread)
6f72b082
OK
8708 gtk_config_args="$gtk_config_args gthread"
8709 ;;
8710 esac
8711 done
8712
8713 if test x$gtk_config_exec_prefix != x ; then
8714 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8715 if test x${GTK_CONFIG_2_0+set} != xset ; then
8716 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
8717 fi
8718 fi
8719 if test x$gtk_config_prefix != x ; then
8720 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8721 if test x${GTK_CONFIG_2_0+set} != xset ; then
8722 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
8723 fi
8724 fi
8725
8726 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
8727set dummy gtk-config-2.0; ac_word=$2
698dcdb6 8728echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9f41d601 8729echo "configure:8730: checking for $ac_word" >&5
698dcdb6
VZ
8730if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
8731 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 8732else
698dcdb6
VZ
8733 case "$GTK_CONFIG_2_0" in
8734 /*)
6f72b082
OK
8735 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
8736 ;;
698dcdb6
VZ
8737 ?:/*)
8738 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
8739 ;;
6f72b082 8740 *)
698dcdb6
VZ
8741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8742 ac_dummy="$PATH"
8743 for ac_dir in $ac_dummy; do
8744 test -z "$ac_dir" && ac_dir=.
8745 if test -f $ac_dir/$ac_word; then
8746 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
8747 break
8748 fi
8749 done
8750 IFS="$ac_save_ifs"
6f72b082
OK
8751 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
8752 ;;
8753esac
8754fi
698dcdb6 8755GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 8756if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 8757 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 8758else
698dcdb6 8759 echo "$ac_t""no" 1>&6
6f72b082
OK
8760fi
8761
8762 min_gtk_version=1.3.1
698dcdb6 8763 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9f41d601 8764echo "configure:8765: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
8765 no_gtk=""
8766 if test "$GTK_CONFIG_2_0" = "no" ; then
8767 no_gtk=yes
8768 else
8769 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
8770 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
8771 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8772 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8773 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8774 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8775 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8776 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8777 if test "x$enable_gtktest" = "xyes" ; then
8778 ac_save_CFLAGS="$CFLAGS"
8779 ac_save_LIBS="$LIBS"
8780 CFLAGS="$CFLAGS $GTK_CFLAGS"
8781 LIBS="$GTK_LIBS $LIBS"
8782 rm -f conf.gtktest
8783 if test "$cross_compiling" = yes; then
8784 echo $ac_n "cross compiling; assumed OK... $ac_c"
8785else
698dcdb6 8786 cat > conftest.$ac_ext <<EOF
9f41d601 8787#line 8788 "configure"
6f72b082
OK
8788#include "confdefs.h"
8789
8790#include <gtk/gtk.h>
8791#include <stdio.h>
8792#include <stdlib.h>
8793
8168de4c 8794int
6f72b082
OK
8795main ()
8796{
8797 int major, minor, micro;
8798 char *tmp_version;
8799
8800 system ("touch conf.gtktest");
8801
8802 /* HP/UX 9 (%@#!) writes to sscanf strings */
8803 tmp_version = g_strdup("$min_gtk_version");
8804 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8805 printf("%s, bad version string\n", "$min_gtk_version");
8806 exit(1);
8807 }
8808
8809 if ((gtk_major_version != $gtk_config_major_version) ||
8810 (gtk_minor_version != $gtk_config_minor_version) ||
8811 (gtk_micro_version != $gtk_config_micro_version))
8812 {
8168de4c 8813 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
8814 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
8815 gtk_major_version, gtk_minor_version, gtk_micro_version);
8816 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
8817 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
8818 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8819 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8820 printf("*** required on your system.\n");
8821 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
8822 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
8823 printf("*** before re-running configure\n");
8168de4c 8824 }
6f72b082
OK
8825#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
8826 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8168de4c 8827 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
8828 (gtk_micro_version != GTK_MICRO_VERSION))
8829 {
8830 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8168de4c 8831 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 8832 printf("*** library (version %d.%d.%d)\n",
8168de4c 8833 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082
OK
8834 }
8835#endif /* defined (GTK_MAJOR_VERSION) ... */
8836 else
8837 {
8838 if ((gtk_major_version > major) ||
8839 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8840 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
8841 {
8842 return 0;
8843 }
8844 else
8845 {
8846 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
8847 gtk_major_version, gtk_minor_version, gtk_micro_version);
8848 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8168de4c 8849 major, minor, micro);
6f72b082
OK
8850 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
8851 printf("***\n");
8852 printf("*** If you have already installed a sufficiently new version, this error\n");
8853 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
8854 printf("*** being found. The easiest way to fix this is to remove the old version\n");
8855 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
8856 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
8857 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
8858 printf("*** so that the correct libraries are found at run-time))\n");
8859 }
8860 }
8861 return 1;
8862}
8863
698dcdb6 8864EOF
9f41d601 8865if { (eval echo configure:8866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 8866then
6f72b082
OK
8867 :
8868else
698dcdb6
VZ
8869 echo "configure: failed program was:" >&5
8870 cat conftest.$ac_ext >&5
8871 rm -fr conftest*
8872 no_gtk=yes
6f72b082 8873fi
698dcdb6 8874rm -fr conftest*
6f72b082 8875fi
698dcdb6 8876
6f72b082
OK
8877 CFLAGS="$ac_save_CFLAGS"
8878 LIBS="$ac_save_LIBS"
8879 fi
8880 fi
8881 if test "x$no_gtk" = x ; then
698dcdb6 8882 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8168de4c 8883 wx_cv_lib_gtk=2.0
6f72b082 8884 else
698dcdb6 8885 echo "$ac_t""no" 1>&6
6f72b082
OK
8886 if test "$GTK_CONFIG_2_0" = "no" ; then
8887 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
8888 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
8889 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
8890 echo "*** full path to gtk-config-2.0."
8891 else
8892 if test -f conf.gtktest ; then
8893 :
8894 else
8895 echo "*** Could not run GTK test program, checking why..."
8896 CFLAGS="$CFLAGS $GTK_CFLAGS"
8897 LIBS="$LIBS $GTK_LIBS"
698dcdb6 8898 cat > conftest.$ac_ext <<EOF
9f41d601 8899#line 8900 "configure"
6f72b082
OK
8900#include "confdefs.h"
8901
8902#include <gtk/gtk.h>
8903#include <stdio.h>
8904
698dcdb6
VZ
8905int main() {
8906 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
8907; return 0; }
8908EOF
9f41d601 8909if { (eval echo configure:8910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 8910 rm -rf conftest*
6f72b082
OK
8911 echo "*** The test program compiled, but did not run. This usually means"
8912 echo "*** that the run-time linker is not finding GTK or finding the wrong"
8913 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
8914 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8915 echo "*** to the installed location Also, make sure you have run ldconfig if that"
8916 echo "*** is required on your system"
8168de4c 8917 echo "***"
6f72b082
OK
8918 echo "*** If you have an old version installed, it is best to remove it, although"
8919 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8920 echo "***"
8921 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
8922 echo "*** came with the system with the command"
8923 echo "***"
698dcdb6 8924 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 8925else
698dcdb6
VZ
8926 echo "configure: failed program was:" >&5
8927 cat conftest.$ac_ext >&5
8928 rm -rf conftest*
8929 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
8930 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
8931 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
698dcdb6 8932 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 8933fi
698dcdb6 8934rm -f conftest*
6f72b082
OK
8935 CFLAGS="$ac_save_CFLAGS"
8936 LIBS="$ac_save_LIBS"
8937 fi
8938 fi
8939 GTK_CFLAGS=""
8940 GTK_LIBS=""
8168de4c
VZ
8941 gthread
8942 fi
8943
8944
8945 rm -f conf.gtktest
8946
8947 fi
8948
8949 if test -z "$wx_cv_lib_gtk"; then
8950
10f2d63a
VZ
8951 if test x$gtk_config_exec_prefix != x ; then
8952 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8953 if test x${GTK_CONFIG+set} != xset ; then
8954 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8955 fi
8956 fi
8957 if test x$gtk_config_prefix != x ; then
8958 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8959 if test x${GTK_CONFIG+set} != xset ; then
8960 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8961 fi
8962 fi
8963
8964 # Extract the first word of "gtk-config", so it can be a program name with args.
8965set dummy gtk-config; ac_word=$2
698dcdb6 8966echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9f41d601 8967echo "configure:8968: checking for $ac_word" >&5
698dcdb6
VZ
8968if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8969 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 8970else
698dcdb6
VZ
8971 case "$GTK_CONFIG" in
8972 /*)
f6bcfd97
BP
8973 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8974 ;;
698dcdb6
VZ
8975 ?:/*)
8976 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8977 ;;
f6bcfd97 8978 *)
698dcdb6
VZ
8979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8980 ac_dummy="$PATH"
8981 for ac_dir in $ac_dummy; do
8982 test -z "$ac_dir" && ac_dir=.
8983 if test -f $ac_dir/$ac_word; then
8984 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8985 break
8986 fi
8987 done
8988 IFS="$ac_save_ifs"
f6bcfd97
BP
8989 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8990 ;;
8991esac
8992fi
698dcdb6 8993GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 8994if test -n "$GTK_CONFIG"; then
698dcdb6 8995 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 8996else
698dcdb6 8997 echo "$ac_t""no" 1>&6
f6bcfd97
BP
8998fi
8999
9000 min_gtk_version=1.2.7
698dcdb6 9001 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9f41d601 9002echo "configure:9003: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
9003 no_gtk=""
9004 if test "$GTK_CONFIG" != "no" ; then
9005 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9006 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9007 ac_save_CFLAGS="$CFLAGS"
9008 ac_save_LIBS="$LIBS"
9009 CFLAGS="$CFLAGS $GTK_CFLAGS"
9010 LIBS="$LIBS $GTK_LIBS"
9011 if test "$cross_compiling" = yes; then
9012 echo $ac_n "cross compiling; assumed OK... $ac_c"
9013else
698dcdb6 9014 cat > conftest.$ac_ext <<EOF
9f41d601 9015#line 9016 "configure"
f6bcfd97
BP
9016#include "confdefs.h"
9017
9018#include <gtk/gtk.h>
9019#include <gtk/gtkfeatures.h>
9020#include <stdio.h>
9021#include <stdlib.h>
9022
9023int
9024main ()
9025{
9026 int major, minor, micro;
9027
9028 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9029 printf("%s, bad version string\n", "$min_gtk_version");
9030 exit(1);
9031 }
9032
9033 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9034 (GTK_MINOR_VERSION != gtk_minor_version) ||
9035 (GTK_MICRO_VERSION != gtk_micro_version)) {
9036 printf("Headers vs. library version mismatch!\n");
9037 exit(1);
9038 }
9039
9040 if (gtk_minor_version == 1) return FALSE;
9041
9042 return !((gtk_major_version > major) ||
9043 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9044 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9045}
9046
698dcdb6 9047EOF
9f41d601 9048if { (eval echo configure:9049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9049then
f6bcfd97
BP
9050 :
9051else
698dcdb6
VZ
9052 echo "configure: failed program was:" >&5
9053 cat conftest.$ac_ext >&5
9054 rm -fr conftest*
9055 no_gtk=yes
f6bcfd97 9056fi
698dcdb6 9057rm -fr conftest*
f6bcfd97 9058fi
698dcdb6 9059
f6bcfd97
BP
9060 CFLAGS="$ac_save_CFLAGS"
9061 LIBS="$ac_save_LIBS"
9062 else
9063 no_gtk=yes
9064 fi
9065 if test "x$no_gtk" = x ; then
698dcdb6 9066 echo "$ac_t""yes" 1>&6
8168de4c 9067 wx_cv_lib_gtk=1.2.7
f6bcfd97 9068 else
698dcdb6 9069 echo "$ac_t""no" 1>&6
f6bcfd97
BP
9070 GTK_CFLAGS=""
9071 GTK_LIBS=""
9072 :
9073 fi
698dcdb6
VZ
9074
9075
f6bcfd97 9076
8168de4c
VZ
9077 fi
9078
9079 if test -z "$wx_cv_lib_gtk"; then
9080
f6bcfd97
BP
9081 if test x$gtk_config_exec_prefix != x ; then
9082 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9083 if test x${GTK_CONFIG+set} != xset ; then
9084 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9085 fi
9086 fi
9087 if test x$gtk_config_prefix != x ; then
9088 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9089 if test x${GTK_CONFIG+set} != xset ; then
9090 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9091 fi
9092 fi
9093
9094 # Extract the first word of "gtk-config", so it can be a program name with args.
9095set dummy gtk-config; ac_word=$2
698dcdb6 9096echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9f41d601 9097echo "configure:9098: checking for $ac_word" >&5
698dcdb6
VZ
9098if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9099 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9100else
698dcdb6
VZ
9101 case "$GTK_CONFIG" in
9102 /*)
10f2d63a
VZ
9103 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9104 ;;
698dcdb6
VZ
9105 ?:/*)
9106 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9107 ;;
10f2d63a 9108 *)
698dcdb6
VZ
9109 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9110 ac_dummy="$PATH"
9111 for ac_dir in $ac_dummy; do
9112 test -z "$ac_dir" && ac_dir=.
9113 if test -f $ac_dir/$ac_word; then
9114 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9115 break
9116 fi
9117 done
9118 IFS="$ac_save_ifs"
10f2d63a
VZ
9119 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9120 ;;
9121esac
9122fi
698dcdb6 9123GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 9124if test -n "$GTK_CONFIG"; then
698dcdb6 9125 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 9126else
698dcdb6 9127 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9128fi
9129
04165bec 9130 min_gtk_version=1.2.3
698dcdb6 9131 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9f41d601 9132echo "configure:9133: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
9133 no_gtk=""
9134 if test "$GTK_CONFIG" != "no" ; then
9135 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 9136 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
9137 ac_save_CFLAGS="$CFLAGS"
9138 ac_save_LIBS="$LIBS"
9139 CFLAGS="$CFLAGS $GTK_CFLAGS"
9140 LIBS="$LIBS $GTK_LIBS"
9141 if test "$cross_compiling" = yes; then
9142 echo $ac_n "cross compiling; assumed OK... $ac_c"
9143else
698dcdb6 9144 cat > conftest.$ac_ext <<EOF
9f41d601 9145#line 9146 "configure"
10f2d63a
VZ
9146#include "confdefs.h"
9147
9148#include <gtk/gtk.h>
f49f2b0c 9149#include <gtk/gtkfeatures.h>
10f2d63a 9150#include <stdio.h>
32832908 9151#include <stdlib.h>
10f2d63a
VZ
9152
9153int
9154main ()
9155{
9156 int major, minor, micro;
9157
9158 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9159 printf("%s, bad version string\n", "$min_gtk_version");
9160 exit(1);
9161 }
9162
f49f2b0c
RR
9163 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9164 (GTK_MINOR_VERSION != gtk_minor_version) ||
9165 (GTK_MICRO_VERSION != gtk_micro_version)) {
9166 printf("Headers vs. library version mismatch!\n");
9167 exit(1);
9168 }
9169
10f2d63a
VZ
9170 if (gtk_minor_version == 1) return FALSE;
9171
9172 return !((gtk_major_version > major) ||
9173 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9174 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9175}
9176
698dcdb6 9177EOF
9f41d601 9178if { (eval echo configure:9179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9179then
10f2d63a
VZ
9180 :
9181else
698dcdb6
VZ
9182 echo "configure: failed program was:" >&5
9183 cat conftest.$ac_ext >&5
9184 rm -fr conftest*
9185 no_gtk=yes
10f2d63a 9186fi
698dcdb6 9187rm -fr conftest*
10f2d63a 9188fi
698dcdb6 9189
10f2d63a
VZ
9190 CFLAGS="$ac_save_CFLAGS"
9191 LIBS="$ac_save_LIBS"
9192 else
9193 no_gtk=yes
9194 fi
9195 if test "x$no_gtk" = x ; then
698dcdb6 9196 echo "$ac_t""yes" 1>&6
8168de4c 9197 wx_cv_lib_gtk=1.2.3
10f2d63a 9198 else
698dcdb6 9199 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9200 GTK_CFLAGS=""
9201 GTK_LIBS=""
7e99ad86 9202 :
10f2d63a 9203 fi
698dcdb6
VZ
9204
9205
10f2d63a 9206
8168de4c
VZ
9207 fi
9208
9209 if test -z "$wx_cv_lib_gtk"; then
9210 wx_cv_lib_gtk=none
138be253
VZ
9211 else
9212 wx_cv_cflags_gtk=$GTK_CFLAGS
9213 wx_cv_libs_gtk=$GTK_LIBS
8168de4c
VZ
9214 fi
9215
1e6feb95 9216
8168de4c 9217fi
703e0a69 9218
698dcdb6 9219
8168de4c
VZ
9220 if test "$gtk_version_cached" = 1; then
9221 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
1e6feb95 9222 fi
698dcdb6 9223
8168de4c
VZ
9224 case "$wx_cv_lib_gtk" in
9225 2.0) WXGTK20=1
9226 ;;
9227 1.2.7) WXGTK127=1
d1a8d972 9228 WXGTK12=1
8168de4c
VZ
9229 ;;
9230 1.2.3) WXGTK12=1
9231 ;;
9232 *) { echo "configure: error:
9233Please check that gtk-config is in path, the directory
9234where GTK+ libraries are installed (returned by
9235'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9236equivalent variable and GTK+ is version 1.2.3 or above.
9237 " 1>&2; exit 1; }
9238 ;;
9239 esac
2224580a 9240
138be253 9241 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11dfaa5f 9242 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
698dcdb6 9243
1e6feb95
VZ
9244 AFMINSTALL=afminstall
9245 TOOLKIT=GTK
9246 GUIDIST=GTK_DIST
7ec2881a 9247
1e6feb95 9248 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
9f41d601 9249echo "configure:9250: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
9250ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9251if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9252 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 9253else
698dcdb6 9254 ac_save_LIBS="$LIBS"
7ec2881a 9255LIBS="-lgdk $LIBS"
698dcdb6 9256cat > conftest.$ac_ext <<EOF
9f41d601 9257#line 9258 "configure"
7ec2881a
RR
9258#include "confdefs.h"
9259/* Override any gcc2 internal prototype to avoid an error. */
9260/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9261 builtin and then its argument prototype would still apply. */
9262char gdk_im_open();
9263
9264int main() {
9265gdk_im_open()
9266; return 0; }
9267EOF
9f41d601 9268if { (eval echo configure:9269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9269 rm -rf conftest*
9270 eval "ac_cv_lib_$ac_lib_var=yes"
9271else
9272 echo "configure: failed program was:" >&5
9273 cat conftest.$ac_ext >&5
9274 rm -rf conftest*
9275 eval "ac_cv_lib_$ac_lib_var=no"
9276fi
9277rm -f conftest*
9278LIBS="$ac_save_LIBS"
9279
9280fi
9281if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9282 echo "$ac_t""yes" 1>&6
9283 cat >> confdefs.h <<\EOF
7ec2881a
RR
9284#define HAVE_XIM 1
9285EOF
9286
698dcdb6
VZ
9287else
9288 echo "$ac_t""no" 1>&6
7ec2881a
RR
9289fi
9290
1e6feb95 9291 fi
10f2d63a 9292
1e6feb95
VZ
9293 if test "$wxUSE_MGL" = 1; then
9294
9295 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
9f41d601 9296echo "configure:9297: checking for SciTech MGL library" >&5
1e6feb95
VZ
9297 if test "x$MGL_ROOT" = x ; then
9298 echo "$ac_t""not found" 1>&6
9299 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9300 else
9301 echo "$ac_t""$MGL_ROOT" 1>&6
9302 fi
9303
9304 MGL_OS=linux/gcc/glibc
9305 MGL_LIB_TYPE=""
9306
9307 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9308 if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then
9309 MGL_LIB_TYPE=debug
9310 fi
9311 fi
9312 if test "x$MGL_LIB_TYPE" = x ; then
9313 if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then
9314 MGL_LIB_TYPE=release
9315 else
9316 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9317 fi
9318 fi
9319
9320 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9321 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm"
9322
9323 AFMINSTALL=afminstall
9324 TOOLKIT=MGL
9325 GUIDIST=MGL_DIST
9326 fi
9327
9328 if test "$wxUSE_WINE" = 1; then
9329 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
9f41d601 9330echo "configure:9331: checking for WINE includes" >&5
1e6feb95 9331
10f2d63a
VZ
9332ac_find_includes=
9333for ac_dir in $SEARCH_INCLUDE;
9334 do
9335 if test -f "$ac_dir/windows.h"; then
9336 ac_find_includes=$ac_dir
9337 break
9338 fi
9339 done
9340
1e6feb95
VZ
9341 if test "$ac_find_includes" != "" ; then
9342 echo "$ac_t""found $ac_find_includes" 1>&6
9343 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
9344 else
9345 echo "$ac_t""no" 1>&6
9346 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9347 fi
10f2d63a 9348
1e6feb95
VZ
9349 XPM_LINK=""
9350 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
9f41d601 9351echo "configure:9352: checking for Xpm library" >&5
1e6feb95 9352
10f2d63a
VZ
9353ac_find_libraries=
9354for ac_dir in $SEARCH_LIB;
9355 do
9356 for ac_extension in a so sl; do
9357 if test -f "$ac_dir/libXpm.$ac_extension"; then
9358 ac_find_libraries=$ac_dir
9359 break 2
9360 fi
9361 done
9362 done
9363
1e6feb95
VZ
9364 if test "$ac_find_libraries" != "" ; then
9365 GUI_TK_LIBRARY="-L$ac_find_libraries"
9366 XPM_LINK="-lXpm"
9367 cat >> confdefs.h <<\EOF
10f2d63a
VZ
9368#define wxHAVE_LIB_XPM 1
9369EOF
9370
1e6feb95
VZ
9371 echo "$ac_t""found at $ac_find_libraries" 1>&6
9372 else
9373 echo "$ac_t""no" 1>&6
9374 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9375 fi
10f2d63a 9376
1e6feb95
VZ
9377 MESA_LINK=""
9378 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
9f41d601 9379echo "configure:9380: checking for Mesa library" >&5
1e6feb95 9380
10f2d63a
VZ
9381ac_find_libraries=
9382for ac_dir in $SEARCH_LIB;
9383 do
9384 for ac_extension in a so sl; do
9385 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9386 ac_find_libraries=$ac_dir
9387 break 2
9388 fi
9389 done
9390 done
9391
1e6feb95
VZ
9392 if test "$ac_find_libraries" != "" ; then
9393 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9394 MESA_LINK="-lMesaGL"
9395 echo "$ac_t""found at $ac_find_libraries" 1>&6
9396 else
9397 { echo "configure: error: no" 1>&2; exit 1; }
9398 fi
10f2d63a 9399
1e6feb95
VZ
9400 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9401 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9402 WXWINE=1
9403 TOOLKIT=MSW
9404 GUIDIST=MSW_DIST
9405 fi
698dcdb6 9406
1e6feb95
VZ
9407
9408 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
9409# paths, otherwise set no_x=yes.
9410# Uses ac_ vars as temps to allow command line to override cache and checks.
9411# --without-x overrides everything else, but does not touch the cache.
9412echo $ac_n "checking for X""... $ac_c" 1>&6
9f41d601 9413echo "configure:9414: checking for X" >&5
ab9b9eab
VZ
9414
9415# Check whether --with-x or --without-x was given.
9416if test "${with_x+set}" = set; then
9417 withval="$with_x"
698dcdb6
VZ
9418 :
9419fi
ba337fe7 9420
ab9b9eab
VZ
9421# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9422if test "x$with_x" = xno; then
9423 # The user explicitly disabled X.
9424 have_x=disabled
9425else
9426 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9427 # Both variables are already set.
9428 have_x=yes
9429 else
698dcdb6
VZ
9430if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9431 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
9432else
9433 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
9434ac_x_includes=NO ac_x_libraries=NO
9435rm -fr conftestdir
9436if mkdir conftestdir; then
9437 cd conftestdir
ab9b9eab 9438 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 9439 cat > Imakefile <<'EOF'
ab9b9eab
VZ
9440acfindx:
9441 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9442EOF
9443 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9444 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9445 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9446 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 9447 for ac_extension in a so sl; do
ab9b9eab 9448 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 9449 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 9450 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
9451 fi
9452 done
ab9b9eab
VZ
9453 # Screen out bogus values from the imake configuration. They are
9454 # bogus both because they are the default anyway, and because
9455 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 9456 case "$ac_im_incroot" in
ab9b9eab 9457 /usr/include) ;;
698dcdb6 9458 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 9459 esac
698dcdb6 9460 case "$ac_im_usrlibdir" in
ab9b9eab 9461 /usr/lib | /lib) ;;
698dcdb6 9462 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 9463 esac
ba337fe7 9464 fi
ab9b9eab 9465 cd ..
698dcdb6 9466 rm -fr conftestdir
ab9b9eab 9467fi
10f2d63a 9468
698dcdb6
VZ
9469if test "$ac_x_includes" = NO; then
9470 # Guess where to find include files, by looking for this one X11 .h file.
9471 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9472
ab9b9eab 9473 # First, try using that file with no special directory specified.
698dcdb6 9474cat > conftest.$ac_ext <<EOF
9f41d601 9475#line 9476 "configure"
ab9b9eab 9476#include "confdefs.h"
698dcdb6
VZ
9477#include <$x_direct_test_include>
9478EOF
9479ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f41d601 9480{ (eval echo configure:9481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
9481ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9482if test -z "$ac_err"; then
9483 rm -rf conftest*
ab9b9eab
VZ
9484 # We can compile using X headers with no special include directory.
9485ac_x_includes=
9486else
698dcdb6
VZ
9487 echo "$ac_err" >&5
9488 echo "configure: failed program was:" >&5
ab9b9eab 9489 cat conftest.$ac_ext >&5
698dcdb6
VZ
9490 rm -rf conftest*
9491 # Look for the header file in a standard set of common directories.
9492# Check X11 before X11Rn because it is often a symlink to the current release.
9493 for ac_dir in \
9494 /usr/X11/include \
9495 /usr/X11R6/include \
9496 /usr/X11R5/include \
9497 /usr/X11R4/include \
9498 \
9499 /usr/include/X11 \
9500 /usr/include/X11R6 \
9501 /usr/include/X11R5 \
9502 /usr/include/X11R4 \
9503 \
9504 /usr/local/X11/include \
9505 /usr/local/X11R6/include \
9506 /usr/local/X11R5/include \
9507 /usr/local/X11R4/include \
9508 \
9509 /usr/local/include/X11 \
9510 /usr/local/include/X11R6 \
9511 /usr/local/include/X11R5 \
9512 /usr/local/include/X11R4 \
9513 \
9514 /usr/X386/include \
9515 /usr/x386/include \
9516 /usr/XFree86/include/X11 \
9517 \
9518 /usr/include \
9519 /usr/local/include \
9520 /usr/unsupported/include \
9521 /usr/athena/include \
9522 /usr/local/x11r5/include \
9523 /usr/lpp/Xamples/include \
9524 \
9525 /usr/openwin/include \
9526 /usr/openwin/share/include \
9527 ; \
9528 do
9529 if test -r "$ac_dir/$x_direct_test_include"; then
9530 ac_x_includes=$ac_dir
9531 break
9532 fi
9533 done
ab9b9eab 9534fi
698dcdb6
VZ
9535rm -f conftest*
9536fi # $ac_x_includes = NO
10f2d63a 9537
698dcdb6 9538if test "$ac_x_libraries" = NO; then
ab9b9eab 9539 # Check for the libraries.
698dcdb6
VZ
9540
9541 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9542 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9543
ab9b9eab
VZ
9544 # See if we find them without any special options.
9545 # Don't add to $LIBS permanently.
698dcdb6
VZ
9546 ac_save_LIBS="$LIBS"
9547 LIBS="-l$x_direct_test_library $LIBS"
9548cat > conftest.$ac_ext <<EOF
9f41d601 9549#line 9550 "configure"
ab9b9eab 9550#include "confdefs.h"
698dcdb6
VZ
9551
9552int main() {
9553${x_direct_test_function}()
9554; return 0; }
9555EOF
9f41d601 9556if { (eval echo configure:9557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9557 rm -rf conftest*
9558 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
9559# We can link X programs with no special library path.
9560ac_x_libraries=
9561else
698dcdb6
VZ
9562 echo "configure: failed program was:" >&5
9563 cat conftest.$ac_ext >&5
9564 rm -rf conftest*
9565 LIBS="$ac_save_LIBS"
9566# First see if replacing the include by lib works.
9567# Check X11 before X11Rn because it is often a symlink to the current release.
9568for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9569 /usr/X11/lib \
9570 /usr/X11R6/lib \
9571 /usr/X11R5/lib \
9572 /usr/X11R4/lib \
9573 \
9574 /usr/lib/X11 \
9575 /usr/lib/X11R6 \
9576 /usr/lib/X11R5 \
9577 /usr/lib/X11R4 \
9578 \
9579 /usr/local/X11/lib \
9580 /usr/local/X11R6/lib \
9581 /usr/local/X11R5/lib \
9582 /usr/local/X11R4/lib \
9583 \
9584 /usr/local/lib/X11 \
9585 /usr/local/lib/X11R6 \
9586 /usr/local/lib/X11R5 \
9587 /usr/local/lib/X11R4 \
9588 \
9589 /usr/X386/lib \
9590 /usr/x386/lib \
9591 /usr/XFree86/lib/X11 \
9592 \
9593 /usr/lib \
9594 /usr/local/lib \
9595 /usr/unsupported/lib \
9596 /usr/athena/lib \
9597 /usr/local/x11r5/lib \
9598 /usr/lpp/Xamples/lib \
9599 /lib/usr/lib/X11 \
9600 \
9601 /usr/openwin/lib \
9602 /usr/openwin/share/lib \
9603 ; \
ab9b9eab
VZ
9604do
9605 for ac_extension in a so sl; do
698dcdb6 9606 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
9607 ac_x_libraries=$ac_dir
9608 break 2
10f2d63a 9609 fi
10f2d63a 9610 done
ab9b9eab
VZ
9611done
9612fi
698dcdb6
VZ
9613rm -f conftest*
9614fi # $ac_x_libraries = NO
10f2d63a 9615
698dcdb6 9616if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
9617 # Didn't find X anywhere. Cache the known absence of X.
9618 ac_cv_have_x="have_x=no"
9619else
9620 # Record where we found X for the cache.
9621 ac_cv_have_x="have_x=yes \
9622 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9623fi
9624fi
10f2d63a 9625 fi
ab9b9eab
VZ
9626 eval "$ac_cv_have_x"
9627fi # $with_x != no
10f2d63a 9628
ab9b9eab 9629if test "$have_x" != yes; then
698dcdb6 9630 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
9631 no_x=yes
9632else
9633 # If each of the values was on the command line, it overrides each guess.
9634 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9635 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9636 # Update the cache value to reflect the command line values.
9637 ac_cv_have_x="have_x=yes \
9638 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 9639 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 9640fi
10f2d63a 9641
ab9b9eab
VZ
9642if test "$no_x" = yes; then
9643 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 9644 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
9645#define X_DISPLAY_MISSING 1
9646EOF
10f2d63a 9647
ab9b9eab
VZ
9648 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9649else
9650 if test -n "$x_includes"; then
9651 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
9652 fi
9653
ab9b9eab
VZ
9654 # It would also be nice to do this for all -L options, not just this one.
9655 if test -n "$x_libraries"; then
9656 X_LIBS="$X_LIBS -L$x_libraries"
9657 # For Solaris; some versions of Sun CC require a space after -R and
9658 # others require no space. Words are not sufficient . . . .
698dcdb6 9659 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 9660 "SunOS 5"*)
698dcdb6 9661 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
9f41d601 9662echo "configure:9663: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
9663 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
9664 cat > conftest.$ac_ext <<EOF
9f41d601 9665#line 9666 "configure"
ab9b9eab 9666#include "confdefs.h"
10f2d63a 9667
698dcdb6 9668int main() {
788deba1 9669
698dcdb6
VZ
9670; return 0; }
9671EOF
9f41d601 9672if { (eval echo configure:9673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9673 rm -rf conftest*
ab9b9eab
VZ
9674 ac_R_nospace=yes
9675else
698dcdb6
VZ
9676 echo "configure: failed program was:" >&5
9677 cat conftest.$ac_ext >&5
9678 rm -rf conftest*
9679 ac_R_nospace=no
ab9b9eab 9680fi
698dcdb6 9681rm -f conftest*
ab9b9eab 9682 if test $ac_R_nospace = yes; then
698dcdb6 9683 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9684 X_LIBS="$X_LIBS -R$x_libraries"
9685 else
9686 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 9687 cat > conftest.$ac_ext <<EOF
9f41d601 9688#line 9689 "configure"
ab9b9eab 9689#include "confdefs.h"
788deba1 9690
698dcdb6 9691int main() {
ab9b9eab 9692
698dcdb6
VZ
9693; return 0; }
9694EOF
9f41d601 9695if { (eval echo configure:9696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9696 rm -rf conftest*
ab9b9eab
VZ
9697 ac_R_space=yes
9698else
698dcdb6
VZ
9699 echo "configure: failed program was:" >&5
9700 cat conftest.$ac_ext >&5
9701 rm -rf conftest*
9702 ac_R_space=no
ab9b9eab 9703fi
698dcdb6 9704rm -f conftest*
ab9b9eab 9705 if test $ac_R_space = yes; then
698dcdb6 9706 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
9707 X_LIBS="$X_LIBS -R $x_libraries"
9708 else
698dcdb6 9709 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
9710 fi
9711 fi
698dcdb6 9712 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
9713 esac
9714 fi
9715
9716 # Check for system-dependent libraries X programs must link with.
9717 # Do this before checking for the system-independent R6 libraries
9718 # (-lICE), since we may need -lsocket or whatever for X linking.
9719
9720 if test "$ISC" = yes; then
9721 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9722 else
698dcdb6
VZ
9723 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
9724 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 9725 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 9726 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
9f41d601 9727echo "configure:9728: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
9728ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9729if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9730 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9731else
698dcdb6 9732 ac_save_LIBS="$LIBS"
ab9b9eab 9733LIBS="-ldnet $LIBS"
698dcdb6 9734cat > conftest.$ac_ext <<EOF
9f41d601 9735#line 9736 "configure"
ab9b9eab
VZ
9736#include "confdefs.h"
9737/* Override any gcc2 internal prototype to avoid an error. */
9738/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9739 builtin and then its argument prototype would still apply. */
9740char dnet_ntoa();
9741
9742int main() {
9743dnet_ntoa()
9744; return 0; }
9745EOF
9f41d601 9746if { (eval echo configure:9747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9747 rm -rf conftest*
9748 eval "ac_cv_lib_$ac_lib_var=yes"
9749else
9750 echo "configure: failed program was:" >&5
9751 cat conftest.$ac_ext >&5
9752 rm -rf conftest*
9753 eval "ac_cv_lib_$ac_lib_var=no"
9754fi
9755rm -f conftest*
9756LIBS="$ac_save_LIBS"
9757
9758fi
9759if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9760 echo "$ac_t""yes" 1>&6
ab9b9eab 9761 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
9762else
9763 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9764fi
9765
9766 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 9767 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
9f41d601 9768echo "configure:9769: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
9769ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9770if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9771 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9772else
698dcdb6 9773 ac_save_LIBS="$LIBS"
ab9b9eab 9774LIBS="-ldnet_stub $LIBS"
698dcdb6 9775cat > conftest.$ac_ext <<EOF
9f41d601 9776#line 9777 "configure"
ab9b9eab
VZ
9777#include "confdefs.h"
9778/* Override any gcc2 internal prototype to avoid an error. */
9779/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9780 builtin and then its argument prototype would still apply. */
9781char dnet_ntoa();
9782
9783int main() {
9784dnet_ntoa()
9785; return 0; }
9786EOF
9f41d601 9787if { (eval echo configure:9788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9788 rm -rf conftest*
9789 eval "ac_cv_lib_$ac_lib_var=yes"
9790else
9791 echo "configure: failed program was:" >&5
9792 cat conftest.$ac_ext >&5
9793 rm -rf conftest*
9794 eval "ac_cv_lib_$ac_lib_var=no"
9795fi
9796rm -f conftest*
9797LIBS="$ac_save_LIBS"
9798
9799fi
9800if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9801 echo "$ac_t""yes" 1>&6
ab9b9eab 9802 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
9803else
9804 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9805fi
9806
9807 fi
9808
9809 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9810 # to get the SysV transport functions.
698dcdb6 9811 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
9812 # needs -lnsl.
9813 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
9814 # on Irix 5.2, according to dickey@clark.net.
9815 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
9f41d601 9816echo "configure:9817: checking for gethostbyname" >&5
698dcdb6
VZ
9817if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
9818 echo $ac_n "(cached) $ac_c" 1>&6
9819else
9820 cat > conftest.$ac_ext <<EOF
9f41d601 9821#line 9822 "configure"
ab9b9eab
VZ
9822#include "confdefs.h"
9823/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 9824 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
9825#include <assert.h>
9826/* Override any gcc2 internal prototype to avoid an error. */
9827/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9828 builtin and then its argument prototype would still apply. */
9829char gethostbyname();
9830
9831int main() {
ab9b9eab
VZ
9832
9833/* The GNU C library defines this for functions which it implements
9834 to always fail with ENOSYS. Some functions are actually named
9835 something starting with __ and the normal name is an alias. */
9836#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9837choke me
9838#else
698dcdb6 9839gethostbyname();
ab9b9eab
VZ
9840#endif
9841
698dcdb6
VZ
9842; return 0; }
9843EOF
9f41d601 9844if { (eval echo configure:9845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9845 rm -rf conftest*
9846 eval "ac_cv_func_gethostbyname=yes"
9847else
9848 echo "configure: failed program was:" >&5
9849 cat conftest.$ac_ext >&5
9850 rm -rf conftest*
9851 eval "ac_cv_func_gethostbyname=no"
9852fi
9853rm -f conftest*
9854fi
9855
9856if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
9857 echo "$ac_t""yes" 1>&6
9858 :
9859else
9860 echo "$ac_t""no" 1>&6
9861fi
ab9b9eab
VZ
9862
9863 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 9864 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
9f41d601 9865echo "configure:9866: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
9866ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
9867if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9868 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9869else
698dcdb6 9870 ac_save_LIBS="$LIBS"
ab9b9eab 9871LIBS="-lnsl $LIBS"
698dcdb6 9872cat > conftest.$ac_ext <<EOF
9f41d601 9873#line 9874 "configure"
ab9b9eab
VZ
9874#include "confdefs.h"
9875/* Override any gcc2 internal prototype to avoid an error. */
9876/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9877 builtin and then its argument prototype would still apply. */
9878char gethostbyname();
6232543b 9879
698dcdb6
VZ
9880int main() {
9881gethostbyname()
9882; return 0; }
9883EOF
9f41d601 9884if { (eval echo configure:9885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9885 rm -rf conftest*
9886 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 9887else
698dcdb6
VZ
9888 echo "configure: failed program was:" >&5
9889 cat conftest.$ac_ext >&5
9890 rm -rf conftest*
9891 eval "ac_cv_lib_$ac_lib_var=no"
9892fi
9893rm -f conftest*
9894LIBS="$ac_save_LIBS"
1e487827 9895
698dcdb6
VZ
9896fi
9897if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9898 echo "$ac_t""yes" 1>&6
9899 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9900else
9901 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9902fi
9903
9904 fi
9905
9906 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9907 # socket/setsockopt and other routines are undefined under SCO ODT
9908 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
9909 # on later versions), says simon@lia.di.epfl.ch: it contains
9910 # gethostby* variants that don't use the nameserver (or something).
9911 # -lsocket must be given before -lnsl if both are needed.
9912 # We assume that if connect needs -lnsl, so does gethostbyname.
9913 echo $ac_n "checking for connect""... $ac_c" 1>&6
9f41d601 9914echo "configure:9915: checking for connect" >&5
698dcdb6
VZ
9915if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
9916 echo $ac_n "(cached) $ac_c" 1>&6
9917else
9918 cat > conftest.$ac_ext <<EOF
9f41d601 9919#line 9920 "configure"
ab9b9eab
VZ
9920#include "confdefs.h"
9921/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 9922 which can conflict with char connect(); below. */
ab9b9eab
VZ
9923#include <assert.h>
9924/* Override any gcc2 internal prototype to avoid an error. */
9925/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9926 builtin and then its argument prototype would still apply. */
9927char connect();
9928
9929int main() {
ab9b9eab
VZ
9930
9931/* The GNU C library defines this for functions which it implements
9932 to always fail with ENOSYS. Some functions are actually named
9933 something starting with __ and the normal name is an alias. */
9934#if defined (__stub_connect) || defined (__stub___connect)
9935choke me
9936#else
698dcdb6 9937connect();
ab9b9eab
VZ
9938#endif
9939
698dcdb6
VZ
9940; return 0; }
9941EOF
9f41d601 9942if { (eval echo configure:9943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9943 rm -rf conftest*
9944 eval "ac_cv_func_connect=yes"
9945else
9946 echo "configure: failed program was:" >&5
9947 cat conftest.$ac_ext >&5
9948 rm -rf conftest*
9949 eval "ac_cv_func_connect=no"
9950fi
9951rm -f conftest*
9952fi
9953
9954if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
9955 echo "$ac_t""yes" 1>&6
9956 :
9957else
9958 echo "$ac_t""no" 1>&6
9959fi
ab9b9eab
VZ
9960
9961 if test $ac_cv_func_connect = no; then
698dcdb6 9962 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
9f41d601 9963echo "configure:9964: checking for connect in -lsocket" >&5
698dcdb6
VZ
9964ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
9965if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9966 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9967else
698dcdb6 9968 ac_save_LIBS="$LIBS"
ab9b9eab 9969LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 9970cat > conftest.$ac_ext <<EOF
9f41d601 9971#line 9972 "configure"
ab9b9eab
VZ
9972#include "confdefs.h"
9973/* Override any gcc2 internal prototype to avoid an error. */
9974/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9975 builtin and then its argument prototype would still apply. */
9976char connect();
9977
9978int main() {
9979connect()
9980; return 0; }
9981EOF
9f41d601 9982if { (eval echo configure:9983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9983 rm -rf conftest*
9984 eval "ac_cv_lib_$ac_lib_var=yes"
9985else
9986 echo "configure: failed program was:" >&5
9987 cat conftest.$ac_ext >&5
9988 rm -rf conftest*
9989 eval "ac_cv_lib_$ac_lib_var=no"
9990fi
9991rm -f conftest*
9992LIBS="$ac_save_LIBS"
9993
9994fi
9995if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9996 echo "$ac_t""yes" 1>&6
ab9b9eab 9997 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
9998else
9999 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10000fi
10001
10002 fi
10003
698dcdb6
VZ
10004 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
10005 echo $ac_n "checking for remove""... $ac_c" 1>&6
9f41d601 10006echo "configure:10007: checking for remove" >&5
698dcdb6
VZ
10007if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
10008 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10009else
698dcdb6 10010 cat > conftest.$ac_ext <<EOF
9f41d601 10011#line 10012 "configure"
ab9b9eab
VZ
10012#include "confdefs.h"
10013/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10014 which can conflict with char remove(); below. */
ab9b9eab
VZ
10015#include <assert.h>
10016/* Override any gcc2 internal prototype to avoid an error. */
10017/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10018 builtin and then its argument prototype would still apply. */
10019char remove();
10020
10021int main() {
ab9b9eab
VZ
10022
10023/* The GNU C library defines this for functions which it implements
10024 to always fail with ENOSYS. Some functions are actually named
10025 something starting with __ and the normal name is an alias. */
10026#if defined (__stub_remove) || defined (__stub___remove)
10027choke me
10028#else
698dcdb6 10029remove();
ab9b9eab
VZ
10030#endif
10031
698dcdb6
VZ
10032; return 0; }
10033EOF
9f41d601 10034if { (eval echo configure:10035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10035 rm -rf conftest*
10036 eval "ac_cv_func_remove=yes"
10037else
10038 echo "configure: failed program was:" >&5
10039 cat conftest.$ac_ext >&5
10040 rm -rf conftest*
10041 eval "ac_cv_func_remove=no"
10042fi
10043rm -f conftest*
10044fi
10045
10046if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
10047 echo "$ac_t""yes" 1>&6
10048 :
10049else
10050 echo "$ac_t""no" 1>&6
10051fi
ab9b9eab
VZ
10052
10053 if test $ac_cv_func_remove = no; then
698dcdb6 10054 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
9f41d601 10055echo "configure:10056: checking for remove in -lposix" >&5
698dcdb6
VZ
10056ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
10057if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10058 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10059else
698dcdb6 10060 ac_save_LIBS="$LIBS"
ab9b9eab 10061LIBS="-lposix $LIBS"
698dcdb6 10062cat > conftest.$ac_ext <<EOF
9f41d601 10063#line 10064 "configure"
ab9b9eab
VZ
10064#include "confdefs.h"
10065/* Override any gcc2 internal prototype to avoid an error. */
10066/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10067 builtin and then its argument prototype would still apply. */
10068char remove();
10069
10070int main() {
10071remove()
10072; return 0; }
10073EOF
9f41d601 10074if { (eval echo configure:10075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10075 rm -rf conftest*
10076 eval "ac_cv_lib_$ac_lib_var=yes"
10077else
10078 echo "configure: failed program was:" >&5
10079 cat conftest.$ac_ext >&5
10080 rm -rf conftest*
10081 eval "ac_cv_lib_$ac_lib_var=no"
10082fi
10083rm -f conftest*
10084LIBS="$ac_save_LIBS"
10085
10086fi
10087if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10088 echo "$ac_t""yes" 1>&6
ab9b9eab 10089 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
10090else
10091 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10092fi
10093
10094 fi
10095
10096 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 10097 echo $ac_n "checking for shmat""... $ac_c" 1>&6
9f41d601 10098echo "configure:10099: checking for shmat" >&5
698dcdb6
VZ
10099if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
10100 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10101else
698dcdb6 10102 cat > conftest.$ac_ext <<EOF
9f41d601 10103#line 10104 "configure"
ab9b9eab
VZ
10104#include "confdefs.h"
10105/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10106 which can conflict with char shmat(); below. */
ab9b9eab
VZ
10107#include <assert.h>
10108/* Override any gcc2 internal prototype to avoid an error. */
10109/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10110 builtin and then its argument prototype would still apply. */
10111char shmat();
10112
10113int main() {
ab9b9eab
VZ
10114
10115/* The GNU C library defines this for functions which it implements
10116 to always fail with ENOSYS. Some functions are actually named
10117 something starting with __ and the normal name is an alias. */
10118#if defined (__stub_shmat) || defined (__stub___shmat)
10119choke me
10120#else
698dcdb6 10121shmat();
ab9b9eab
VZ
10122#endif
10123
698dcdb6
VZ
10124; return 0; }
10125EOF
9f41d601 10126if { (eval echo configure:10127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10127 rm -rf conftest*
10128 eval "ac_cv_func_shmat=yes"
10129else
10130 echo "configure: failed program was:" >&5
10131 cat conftest.$ac_ext >&5
10132 rm -rf conftest*
10133 eval "ac_cv_func_shmat=no"
10134fi
10135rm -f conftest*
10136fi
10137
10138if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
10139 echo "$ac_t""yes" 1>&6
10140 :
10141else
10142 echo "$ac_t""no" 1>&6
10143fi
ab9b9eab
VZ
10144
10145 if test $ac_cv_func_shmat = no; then
698dcdb6 10146 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
9f41d601 10147echo "configure:10148: checking for shmat in -lipc" >&5
698dcdb6
VZ
10148ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
10149if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10150 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10151else
698dcdb6 10152 ac_save_LIBS="$LIBS"
ab9b9eab 10153LIBS="-lipc $LIBS"
698dcdb6 10154cat > conftest.$ac_ext <<EOF
9f41d601 10155#line 10156 "configure"
ab9b9eab
VZ
10156#include "confdefs.h"
10157/* Override any gcc2 internal prototype to avoid an error. */
10158/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10159 builtin and then its argument prototype would still apply. */
10160char shmat();
10161
10162int main() {
10163shmat()
10164; return 0; }
10165EOF
9f41d601 10166if { (eval echo configure:10167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10167 rm -rf conftest*
10168 eval "ac_cv_lib_$ac_lib_var=yes"
10169else
10170 echo "configure: failed program was:" >&5
10171 cat conftest.$ac_ext >&5
10172 rm -rf conftest*
10173 eval "ac_cv_lib_$ac_lib_var=no"
10174fi
10175rm -f conftest*
10176LIBS="$ac_save_LIBS"
10177
10178fi
10179if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10180 echo "$ac_t""yes" 1>&6
ab9b9eab 10181 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
10182else
10183 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10184fi
10185
10186 fi
10187 fi
10188
10189 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 10190 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
10191 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10192 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10193 # check for ICE first), but we must link in the order -lSM -lICE or
10194 # we get undefined symbols. So assume we have SM if we have ICE.
10195 # These have to be linked with before -lX11, unlike the other
10196 # libraries we check for below, so use a different variable.
698dcdb6
VZ
10197 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10198 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
9f41d601 10199echo "configure:10200: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
10200ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10201if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10202 echo $ac_n "(cached) $ac_c" 1>&6
10203else
10204 ac_save_LIBS="$LIBS"
ab9b9eab 10205LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 10206cat > conftest.$ac_ext <<EOF
9f41d601 10207#line 10208 "configure"
ab9b9eab
VZ
10208#include "confdefs.h"
10209/* Override any gcc2 internal prototype to avoid an error. */
10210/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10211 builtin and then its argument prototype would still apply. */
10212char IceConnectionNumber();
10213
10214int main() {
10215IceConnectionNumber()
10216; return 0; }
10217EOF
9f41d601 10218if { (eval echo configure:10219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10219 rm -rf conftest*
10220 eval "ac_cv_lib_$ac_lib_var=yes"
10221else
10222 echo "configure: failed program was:" >&5
10223 cat conftest.$ac_ext >&5
10224 rm -rf conftest*
10225 eval "ac_cv_lib_$ac_lib_var=no"
10226fi
10227rm -f conftest*
10228LIBS="$ac_save_LIBS"
10229
10230fi
10231if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10232 echo "$ac_t""yes" 1>&6
ab9b9eab 10233 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
10234else
10235 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10236fi
10237
698dcdb6 10238 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
10239
10240fi
10241
1e6feb95
VZ
10242 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10243 LDFLAGS="$LDFLAGS $X_LIBS"
ab9b9eab 10244
1e6feb95
VZ
10245 if test "$wxUSE_MOTIF" = 1; then
10246 if test "$no_x" = "yes"; then
10247 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10248 fi
ab9b9eab 10249
1e6feb95
VZ
10250 GUI_TK_LIBRARY="$X_LIBS"
10251 TOOLKIT_INCLUDE="$X_CFLAGS"
ab9b9eab 10252
1e6feb95 10253 AFMINSTALL=afminstall
dad6c0ea 10254
1e6feb95
VZ
10255
10256 COMPILED_X_PROGRAM=0
cd6d6d5b 10257
1e6feb95 10258 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
9f41d601 10259echo "configure:10260: checking for Motif/Lesstif headers" >&5
1e6feb95 10260
ab9b9eab
VZ
10261ac_find_includes=
10262for ac_dir in $SEARCH_INCLUDE;
10263 do
10264 if test -f "$ac_dir/Xm/Xm.h"; then
10265 ac_find_includes=$ac_dir
10266 break
10267 fi
10268 done
10269
1e6feb95
VZ
10270 if test "$ac_find_includes" != "" ; then
10271 echo "$ac_t""found $ac_find_includes" 1>&6
10272 else
10273 cat > conftest.$ac_ext <<EOF
9f41d601 10274#line 10275 "configure"
cd6d6d5b
VZ
10275#include "confdefs.h"
10276
1e6feb95
VZ
10277 #include <Xm/Xm.h>
10278
698dcdb6 10279int main() {
cd6d6d5b 10280
1e6feb95 10281 int version;
cd6d6d5b 10282
1e6feb95
VZ
10283 version = xmUseVersion;
10284
698dcdb6
VZ
10285; return 0; }
10286EOF
9f41d601 10287if { (eval echo configure:10288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10288 rm -rf conftest*
10289
1e6feb95
VZ
10290 echo "$ac_t""found in default search path" 1>&6
10291 COMPILED_X_PROGRAM=1
10292
cd6d6d5b 10293else
698dcdb6
VZ
10294 echo "configure: failed program was:" >&5
10295 cat conftest.$ac_ext >&5
10296 rm -rf conftest*
10297
1e6feb95
VZ
10298 echo "$ac_t""no" 1>&6
10299 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10300
698dcdb6 10301
cd6d6d5b 10302fi
698dcdb6 10303rm -f conftest*
1e6feb95 10304 fi
ab9b9eab 10305
1e6feb95
VZ
10306 if test "$COMPILED_X_PROGRAM" = 0; then
10307 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
9f41d601 10308echo "configure:10309: checking for Motif/Lesstif library" >&5
1e6feb95 10309
ab9b9eab
VZ
10310ac_find_libraries=
10311for ac_dir in $SEARCH_LIB;
10312 do
10313 for ac_extension in a so sl; do
10314 if test -f "$ac_dir/libXm.$ac_extension"; then
10315 ac_find_libraries=$ac_dir
10316 break 2
10317 fi
10318 done
10319 done
10320
1e6feb95
VZ
10321 if test "$ac_find_libraries" != "" ; then
10322
ab9b9eab
VZ
10323 ac_path_to_include=$ac_find_includes
10324 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10325 result=$?
10326 if test $result = 0; then
10327 ac_path_to_include=""
10328 else
10329 ac_path_to_include="-I$ac_find_includes"
10330 fi
10331
1e6feb95 10332
ab9b9eab
VZ
10333 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10334 result=$?
10335 if test $result = 0; then
10336 ac_path_to_link=""
10337 else
10338 ac_path_to_link="-L$ac_find_libraries"
10339 fi
10340
698dcdb6 10341
1e6feb95
VZ
10342 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10343 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10344 echo "$ac_t""found at $ac_find_libraries" 1>&6
10345 else
10346 cat > conftest.$ac_ext <<EOF
9f41d601 10347#line 10348 "configure"
cd6d6d5b 10348#include "confdefs.h"
ab9b9eab 10349
1e6feb95
VZ
10350 #include <Xm/Xm.h>
10351
698dcdb6 10352int main() {
ab9b9eab 10353
1e6feb95 10354 int version;
ab9b9eab 10355
1e6feb95
VZ
10356 version = xmUseVersion;
10357
698dcdb6
VZ
10358; return 0; }
10359EOF
9f41d601 10360if { (eval echo configure:10361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10361 rm -rf conftest*
10362
1e6feb95
VZ
10363 echo "$ac_t""found in default search path" 1>&6
10364 COMPILED_X_PROGRAM=1
10365
cd6d6d5b 10366else
698dcdb6
VZ
10367 echo "configure: failed program was:" >&5
10368 cat conftest.$ac_ext >&5
10369 rm -rf conftest*
10370
1e6feb95
VZ
10371 echo "$ac_t""no" 1>&6
10372 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10373
698dcdb6 10374
cd6d6d5b 10375fi
698dcdb6 10376rm -f conftest*
1e6feb95 10377 fi
cd6d6d5b 10378 fi
ab9b9eab 10379
1e6feb95
VZ
10380
10381 XPM_LINK=""
10382 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
9f41d601 10383echo "configure:10384: checking for Xpm library" >&5
1e6feb95 10384
ab9b9eab
VZ
10385ac_find_libraries=
10386for ac_dir in $SEARCH_LIB;
10387 do
10388 for ac_extension in a so sl; do
10389 if test -f "$ac_dir/libXpm.$ac_extension"; then
10390 ac_find_libraries=$ac_dir
10391 break 2
10392 fi
10393 done
10394 done
10395
1e6feb95
VZ
10396 if test "$ac_find_libraries" != "" ; then
10397
ab9b9eab
VZ
10398 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10399 result=$?
10400 if test $result = 0; then
10401 ac_path_to_link=""
10402 else
10403 ac_path_to_link="-L$ac_find_libraries"
10404 fi
10405
1e6feb95
VZ
10406 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10407 XPM_LINK="-lXpm "
10408 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
10409#define wxHAVE_LIB_XPM 1
10410EOF
10411
1e6feb95
VZ
10412 echo "$ac_t""found at $ac_find_libraries" 1>&6
10413 else
10414 cat > conftest.$ac_ext <<EOF
9f41d601 10415#line 10416 "configure"
cd6d6d5b
VZ
10416#include "confdefs.h"
10417
1e6feb95
VZ
10418 #include <X11/xpm.h>
10419
698dcdb6 10420int main() {
cd6d6d5b 10421
1e6feb95 10422 int version;
cd6d6d5b 10423
1e6feb95
VZ
10424 version = XpmLibraryVersion();
10425
698dcdb6
VZ
10426; return 0; }
10427EOF
9f41d601 10428if { (eval echo configure:10429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10429 rm -rf conftest*
10430
1e6feb95
VZ
10431 XPM_LINK="-lXpm "
10432 cat >> confdefs.h <<\EOF
3ace2e6d
SN
10433#define wxHAVE_LIB_XPM 1
10434EOF
10435
1e6feb95
VZ
10436 echo "$ac_t""found in default search path" 1>&6
10437 COMPILED_X_PROGRAM=0
10438
cd6d6d5b 10439else
698dcdb6
VZ
10440 echo "configure: failed program was:" >&5
10441 cat conftest.$ac_ext >&5
10442 rm -rf conftest*
10443
1e6feb95
VZ
10444 echo "$ac_t""no" 1>&6
10445 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10446
698dcdb6 10447
cd6d6d5b 10448fi
698dcdb6 10449rm -f conftest*
1e6feb95
VZ
10450 fi
10451
10452 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
10453 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
10454 TOOLKIT=MOTIF
10455 GUIDIST=MOTIF_DIST
ab9b9eab
VZ
10456 fi
10457
1e6feb95
VZ
10458 if test "$wxUSE_MAC" = 1; then
10459 TOOLKIT=MAC
10460 GUIDIST=MACX_DIST
10461 fi
10f2d63a 10462
1e6feb95
VZ
10463 if test "$wxUSE_PM" = 1; then
10464 TOOLKIT=PM
10465 GUIDIST=GTK_DIST
10466 fi
b4085ce6 10467
1e6feb95
VZ
10468 if test "$TOOLKIT" != "PM" ; then
10469 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10470 else
10471 TOOLKIT_DIR="os2"
10472 fi
e07802fc 10473
1e6feb95 10474 TOOLKIT_NAME="${TOOLKIT_DIR}"
10f2d63a 10475
1e6feb95
VZ
10476 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10477
10478 if test "$TOOLKIT_NAME" = "motif"; then
10479 TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10480 fi
10481
10482 if test "$wxUSE_UNIVERSAL" = "yes"; then
10483 TOOLKIT_NAME="${TOOLKIT_NAME}univ"
10484 UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
10485 TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}"
10486 SETUPH_DIR="univ"
f6bcfd97 10487 else
1e6feb95
VZ
10488 SETUPH_DIR="${TOOLKIT_DIR}"
10489 fi
10490
10491 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10492 TOOLKIT_NAME="${TOOLKIT_NAME}d"
f6bcfd97
BP
10493 fi
10494
2224580a 10495 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
1e6feb95
VZ
10496 if test "$wxUSE_UNIVERSAL" = "yes"; then
10497 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__"
10498 fi
10f2d63a 10499
f6bcfd97 10500 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10f2d63a 10501
1e6feb95
VZ
10502 if test "$wxUSE_UNIVERSAL" = "yes"; then
10503 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10504 else
10505 ALL_OBJECTS="\$(GUIOBJS)"
10506 fi
10507
10508 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10509
10510 if test "$TOOLKIT" != "MSW"; then
10511 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10512 fi
10513
10514 if test "$wxUSE_HTML" = "yes"; then
10515 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10516 fi
3fcdd07b 10517
1e6feb95
VZ
10518 if test "$TOOLKIT" != "MSW"; then
10519 if test "$wxUSE_ODBC" = "yes" ; then
10520 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10521 fi
3fcdd07b
VZ
10522 fi
10523
d9d8273d 10524 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 10525 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
10526 fi
10527 if test "$wxUSE_LIBTIFF" = "yes" ; then
10528 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10529 fi
10530 if test "$wxUSE_LIBPNG" = "yes" ; then
10531 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10532 fi
10533 if test "$wxUSE_ZLIB" = "yes" ; then
10534 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10535 fi
3fed1840
RR
10536 if test "$wxUSE_FREETYPE" = "yes" ; then
10537 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10538 fi
2224580a 10539
1e6feb95
VZ
10540 if test "$wxUSE_UNIVERSAL" = "yes"; then
10541 ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)"
10542 else
10543 ALL_DEPFILES="\$(GUIDEPS)"
10544 fi
10545
10546 ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)"
10547
10548 if test "$TOOLKIT" != "MSW"; then
10549 ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)"
10550 fi
10551
10552 if test "$wxUSE_HTML" = "yes"; then
10553 ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)"
10554 fi
10555
879df073 10556 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
1e6feb95 10557 if test "$wxUSE_UNIVERSAL" = "yes"; then
879df073 10558 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
1e6feb95 10559 fi
2224580a
VZ
10560 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10561 RPM_SPEC="wx\$(TOOLKIT).spec"
10562
10563 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10564 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 10565else
dad6c0ea
VZ
10566 USE_GUI=0
10567
f6bcfd97
BP
10568 TOOLKIT_DIR="base"
10569
10570 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10571 TOOLKIT_NAME="${TOOLKIT_DIR}d"
10572 else
10573 TOOLKIT_NAME="${TOOLKIT_DIR}"
10574 fi
10575
07eb77a6
RL
10576 TOOLKIT_DEF="-D__WXBASE__"
10577
b4085ce6
GD
10578 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
10579 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10f2d63a 10580
a20b6d3a
VZ
10581 if test "$wxUSE_ZLIB" = "yes" ; then
10582 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10583 fi
10584
f6bcfd97 10585 WX_LIBRARY="wx_${TOOLKIT_NAME}"
2224580a
VZ
10586
10587 PORT_FILES="src/files.lst"
10588 RPM_FILES="src/rpmfiles.lst"
10589 RPM_SPEC="wxBase.spec"
10590
10591 GUIDIST="BASE_DIST"
10592 DISTDIR="wxBase"
10f2d63a
VZ
10593fi
10594
10595WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
bdad4e7e 10596WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10f2d63a
VZ
10597
10598WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
bdad4e7e 10599WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10f2d63a
VZ
10600
10601WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
bdad4e7e 10602WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10f2d63a
VZ
10603
10604WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
10605WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
10606WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
bdad4e7e
RR
10607WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
10608WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
10609WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10f2d63a
VZ
10610
10611SHARED_LD=
10612PIC_FLAG=
10613WX_ALL=
10614WX_ALL_INSTALLED=
1d62a8b4 10615BURNT_LIBRARY_NAME=
f6bcfd97 10616WX_TARGET_LIBRARY_SONAME=
10f2d63a 10617
698dcdb6 10618
10f2d63a
VZ
10619if test "$wxUSE_SHARED" = "yes"; then
10620 case "${host}" in
10621 *-hp-hpux* )
10622 if test "$GCC" = yes ; then
69ffe1d2 10623 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
10624 PIC_FLAG="-fPIC"
10625 else
f6bcfd97
BP
10626 LDFLAGS="-L/usr/lib"
10627
10f2d63a
VZ
10628 SHARED_LD="${CXX} -b -o"
10629 PIC_FLAG="+Z"
10630 fi
f6bcfd97
BP
10631 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
10632 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
c661ecca 10633 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 10634 WX_ALL_INSTALLED="preinstall_gl"
c661ecca
RR
10635 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
10636 else
10637 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
10638 fi
10f2d63a 10639 ;;
b12915c1
VZ
10640
10641 *-*-linux* )
10f2d63a
VZ
10642 SHARED_LD="${CC} -shared -o"
10643 PIC_FLAG="-fPIC"
00cf1208 10644 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 10645 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
bdad4e7e 10646 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 10647 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 10648 fi
c661ecca
RR
10649 if test "$wxUSE_OPENGL" = "yes"; then
10650 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10651 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10652 else
10653 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10654 WX_ALL="CREATE_LINKS"
422107f9 10655 fi
00cf1208 10656 ;;
10f2d63a
VZ
10657 *-*-irix5* | *-*-irix6* )
10658 if test "$GCC" = yes ; then
10659 SHARED_LD="${CC} -shared -o"
10660 PIC_FLAG="-fPIC"
10661 else
10662 SHARED_LD="${CXX} -shared -o"
10663 fi
c661ecca
RR
10664 if test "$wxUSE_OPENGL" = "yes"; then
10665 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10666 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10667 else
10668 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10669 WX_ALL="CREATE_LINKS"
422107f9 10670 fi
10f2d63a
VZ
10671 ;;
10672 *-*-solaris2* )
10673 if test "$GCC" = yes ; then
10674 SHARED_LD="${CC} -shared -o"
10675 PIC_FLAG="-fPIC"
f6bcfd97
BP
10676
10677 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
10678 else
10679 SHARED_LD="${CXX} -G -o"
10680 PIC_FLAG="-KPIC"
10681 fi
c661ecca
RR
10682 if test "$wxUSE_OPENGL" = "yes"; then
10683 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10684 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10685 else
10686 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10687 WX_ALL="CREATE_LINKS"
10688 fi
10f2d63a
VZ
10689 ;;
10690 *-*-sunos4* )
10691 SHARED_LD="${CC} -shared -o"
10692 PIC_FLAG="-fPIC"
10693 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10694 WX_ALL="CREATE_LINKS"
10695 ;;
95c8801c 10696 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
10f2d63a
VZ
10697 SHARED_LD="${CC} -shared -o"
10698 PIC_FLAG="-fPIC"
37d403aa
JS
10699 if test "$wxUSE_OPENGL" = "yes"; then
10700 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10701 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10702 else
10703 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10704 WX_ALL="CREATE_LINKS"
10705 fi
10f2d63a 10706 ;;
b4085ce6 10707 *-*-darwin* )
ea5999b9
GD
10708 SHARED_LD="${CXX} -dynamiclib -o"
10709 PIC_FLAG="-dynamic -fPIC"
b4085ce6
GD
10710 if test "$wxUSE_OPENGL" = "yes"; then
10711 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10712 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10713 else
10714 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10715 WX_ALL="CREATE_LINKS"
10716 fi
1e6feb95
VZ
10717 WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
10718 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10719 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10720 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
10721 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
10722 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
10723 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
10724 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
10725 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
b4085ce6 10726 ;;
10f2d63a
VZ
10727 *-*-osf* )
10728 SHARED_LD="${CXX} -shared -o"
10729 PIC_FLAG="-fPIC"
10730 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10731 WX_ALL="CREATE_LINKS"
10732 ;;
10733 *-*-dgux5* )
10734 SHARED_LD="${CXX} -shared -o"
10735 PIC_FLAG="-fPIC"
10736 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10737 WX_ALL="CREATE_LINKS"
10738 ;;
10739 *-*-sysv5* )
10740 SHARED_LD="${CC} -shared -o"
10741 PIC_FLAG="-fPIC"
10742 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10743 WX_ALL="CREATE_LINKS"
10744 ;;
10745 *-*-aix* )
10746 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10747 WX_ALL=${WX_LIBRARY_NAME_SHARED}
10748 ;;
1c8183e2 10749 *-*-cygwin* )
10f2d63a 10750 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 10751 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
10752 if test "$wxUSE_OPENGL" = "yes"; then
10753 WX_ALL_INSTALLED="preinstall_gl"
10754 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10755 else
10756 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10757 fi
10f2d63a 10758 ;;
b12915c1 10759 *-*-mingw32* )
10f2d63a 10760 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 10761 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
10762 if test "$wxUSE_OPENGL" = "yes"; then
10763 WX_ALL_INSTALLED="preinstall_gl"
10764 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10765 else
10766 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10767 fi
10f2d63a
VZ
10768 ;;
10769 *-pc-os2_emx )
e07802fc
VZ
10770 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10771 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 10772 ;;
b12915c1 10773 *-*-beos* )
e2b8b066 10774 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
10775 PIC_FLAG="-fPIC"
10776 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10777 WX_ALL="CREATE_LINKS"
10778 ;;
10f2d63a 10779 *)
698dcdb6 10780 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
10781 esac
10782
10783 if test "x$WX_TARGET_LIBRARY" = "x"; then
10784 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 10785 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 10786 fi
3711412e 10787 WX_TARGET_LIBRARY_TYPE="so"
10f2d63a
VZ
10788else
10789 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 10790 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
10791
10792 if test "$wxUSE_OPENGL" = "yes"; then
10793 WX_ALL_INSTALLED="preinstall_gl"
10794 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10795 else
10796 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10797 fi
10798
10799 if test "$wxUSE_GUI" = "no"; then
10800 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
10801 fi
10802
3711412e 10803 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a
VZ
10804fi
10805
698dcdb6
VZ
10806
10807for ac_hdr in strings.h
10f2d63a 10808do
698dcdb6
VZ
10809ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10810echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9f41d601 10811echo "configure:10812: checking for $ac_hdr" >&5
698dcdb6
VZ
10812if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10813 echo $ac_n "(cached) $ac_c" 1>&6
10814else
10815 cat > conftest.$ac_ext <<EOF
9f41d601 10816#line 10817 "configure"
10f2d63a 10817#include "confdefs.h"
698dcdb6
VZ
10818#include <$ac_hdr>
10819EOF
10820ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f41d601 10821{ (eval echo configure:10822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10822ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10823if test -z "$ac_err"; then
10824 rm -rf conftest*
10825 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 10826else
698dcdb6
VZ
10827 echo "$ac_err" >&5
10828 echo "configure: failed program was:" >&5
10f2d63a 10829 cat conftest.$ac_ext >&5
698dcdb6
VZ
10830 rm -rf conftest*
10831 eval "ac_cv_header_$ac_safe=no"
10f2d63a 10832fi
698dcdb6 10833rm -f conftest*
10f2d63a 10834fi
698dcdb6
VZ
10835if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10836 echo "$ac_t""yes" 1>&6
10837 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10838 cat >> confdefs.h <<EOF
10839#define $ac_tr_hdr 1
10f2d63a 10840EOF
698dcdb6
VZ
10841
10842else
10843 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10844fi
10845done
10846
698dcdb6 10847for ac_hdr in stdlib.h
9cfadba2 10848do
698dcdb6
VZ
10849ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10850echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9f41d601 10851echo "configure:10852: checking for $ac_hdr" >&5
698dcdb6
VZ
10852if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10853 echo $ac_n "(cached) $ac_c" 1>&6
10854else
10855 cat > conftest.$ac_ext <<EOF
9f41d601 10856#line 10857 "configure"
9cfadba2 10857#include "confdefs.h"
698dcdb6
VZ
10858#include <$ac_hdr>
10859EOF
10860ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f41d601 10861{ (eval echo configure:10862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10862ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10863if test -z "$ac_err"; then
10864 rm -rf conftest*
10865 eval "ac_cv_header_$ac_safe=yes"
6232543b 10866else
698dcdb6
VZ
10867 echo "$ac_err" >&5
10868 echo "configure: failed program was:" >&5
9cfadba2 10869 cat conftest.$ac_ext >&5
698dcdb6
VZ
10870 rm -rf conftest*
10871 eval "ac_cv_header_$ac_safe=no"
9cfadba2 10872fi
698dcdb6 10873rm -f conftest*
9cfadba2 10874fi
698dcdb6
VZ
10875if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10876 echo "$ac_t""yes" 1>&6
10877 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10878 cat >> confdefs.h <<EOF
10879#define $ac_tr_hdr 1
9cfadba2 10880EOF
698dcdb6
VZ
10881
10882else
10883 echo "$ac_t""no" 1>&6
9cfadba2
VZ
10884fi
10885done
10f2d63a 10886
698dcdb6 10887for ac_hdr in unistd.h
10f2d63a 10888do
698dcdb6
VZ
10889ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10890echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9f41d601 10891echo "configure:10892: checking for $ac_hdr" >&5
698dcdb6
VZ
10892if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10893 echo $ac_n "(cached) $ac_c" 1>&6
10894else
10895 cat > conftest.$ac_ext <<EOF
9f41d601 10896#line 10897 "configure"
10f2d63a 10897#include "confdefs.h"
698dcdb6
VZ
10898#include <$ac_hdr>
10899EOF
10900ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f41d601 10901{ (eval echo configure:10902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10902ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10903if test -z "$ac_err"; then
10904 rm -rf conftest*
10905 eval "ac_cv_header_$ac_safe=yes"
6232543b 10906else
698dcdb6
VZ
10907 echo "$ac_err" >&5
10908 echo "configure: failed program was:" >&5
10f2d63a 10909 cat conftest.$ac_ext >&5
698dcdb6
VZ
10910 rm -rf conftest*
10911 eval "ac_cv_header_$ac_safe=no"
10f2d63a 10912fi
698dcdb6 10913rm -f conftest*
10f2d63a 10914fi
698dcdb6
VZ
10915if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10916 echo "$ac_t""yes" 1>&6
10917 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10918 cat >> confdefs.h <<EOF
10919#define $ac_tr_hdr 1
10f2d63a 10920EOF
698dcdb6
VZ
10921
10922else
10923 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10924fi
10925done
10926
698dcdb6 10927for ac_hdr in wchar.h
10f2d63a 10928do
698dcdb6
VZ
10929ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10930echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9f41d601 10931echo "configure:10932: checking for $ac_hdr" >&5
698dcdb6
VZ
10932if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10933 echo $ac_n "(cached) $ac_c" 1>&6
10934else
10935 cat > conftest.$ac_ext <<EOF
9f41d601 10936#line 10937 "configure"
10f2d63a 10937#include "confdefs.h"
698dcdb6
VZ
10938#include <$ac_hdr>
10939EOF
10940ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f41d601 10941{ (eval echo configure:10942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10942ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10943if test -z "$ac_err"; then
10944 rm -rf conftest*
10945 eval "ac_cv_header_$ac_safe=yes"
6f72b082 10946else
698dcdb6
VZ
10947 echo "$ac_err" >&5
10948 echo "configure: failed program was:" >&5
6f72b082 10949 cat conftest.$ac_ext >&5
698dcdb6
VZ
10950 rm -rf conftest*
10951 eval "ac_cv_header_$ac_safe=no"
6f72b082 10952fi
698dcdb6 10953rm -f conftest*
6f72b082 10954fi
698dcdb6
VZ
10955if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10956 echo "$ac_t""yes" 1>&6
10957 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10958 cat >> confdefs.h <<EOF
10959#define $ac_tr_hdr 1
6f72b082 10960EOF
698dcdb6
VZ
10961
10962else
10963 echo "$ac_t""no" 1>&6
6f72b082
OK
10964fi
10965done
10966
698dcdb6 10967for ac_hdr in wcstr.h
6f72b082 10968do
698dcdb6
VZ
10969ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10970echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9f41d601 10971echo "configure:10972: checking for $ac_hdr" >&5
698dcdb6
VZ
10972if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10973 echo $ac_n "(cached) $ac_c" 1>&6
10974else
10975 cat > conftest.$ac_ext <<EOF
9f41d601 10976#line 10977 "configure"
6f72b082 10977#include "confdefs.h"
698dcdb6
VZ
10978#include <$ac_hdr>
10979EOF
10980ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f41d601 10981{ (eval echo configure:10982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10982ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10983if test -z "$ac_err"; then
10984 rm -rf conftest*
10985 eval "ac_cv_header_$ac_safe=yes"
6f72b082 10986else
698dcdb6
VZ
10987 echo "$ac_err" >&5
10988 echo "configure: failed program was:" >&5
6f72b082 10989 cat conftest.$ac_ext >&5
698dcdb6
VZ
10990 rm -rf conftest*
10991 eval "ac_cv_header_$ac_safe=no"
6f72b082 10992fi
698dcdb6 10993rm -f conftest*
6f72b082 10994fi
698dcdb6
VZ
10995if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10996 echo "$ac_t""yes" 1>&6
10997 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10998 cat >> confdefs.h <<EOF
10999#define $ac_tr_hdr 1
6f72b082 11000EOF
698dcdb6
VZ
11001
11002else
11003 echo "$ac_t""no" 1>&6
6f72b082
OK
11004fi
11005done
11006
698dcdb6 11007for ac_hdr in fnmatch.h
6f72b082 11008do
698dcdb6
VZ
11009ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11010echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9f41d601 11011echo "configure:11012: checking for $ac_hdr" >&5
698dcdb6
VZ
11012if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11013 echo $ac_n "(cached) $ac_c" 1>&6
11014else
11015 cat > conftest.$ac_ext <<EOF
9f41d601 11016#line 11017 "configure"
6f72b082 11017#include "confdefs.h"
698dcdb6
VZ
11018#include <$ac_hdr>
11019EOF
11020ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f41d601 11021{ (eval echo configure:11022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11022ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11023if test -z "$ac_err"; then
11024 rm -rf conftest*
11025 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11026else
698dcdb6
VZ
11027 echo "$ac_err" >&5
11028 echo "configure: failed program was:" >&5
10f2d63a 11029 cat conftest.$ac_ext >&5
698dcdb6
VZ
11030 rm -rf conftest*
11031 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11032fi
698dcdb6 11033rm -f conftest*
10f2d63a 11034fi
698dcdb6
VZ
11035if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11036 echo "$ac_t""yes" 1>&6
11037 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11038 cat >> confdefs.h <<EOF
11039#define $ac_tr_hdr 1
10f2d63a 11040EOF
698dcdb6
VZ
11041
11042else
11043 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11044fi
11045done
11046
698dcdb6 11047for ac_hdr in iconv.h
0fb0dd83 11048do
698dcdb6
VZ
11049ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11050echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9f41d601 11051echo "configure:11052: checking for $ac_hdr" >&5
698dcdb6
VZ
11052if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11053 echo $ac_n "(cached) $ac_c" 1>&6
11054else
11055 cat > conftest.$ac_ext <<EOF
9f41d601 11056#line 11057 "configure"
0fb0dd83 11057#include "confdefs.h"
698dcdb6
VZ
11058#include <$ac_hdr>
11059EOF
11060ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f41d601 11061{ (eval echo configure:11062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11062ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11063if test -z "$ac_err"; then
11064 rm -rf conftest*
11065 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 11066else
698dcdb6
VZ
11067 echo "$ac_err" >&5
11068 echo "configure: failed program was:" >&5
0fb0dd83 11069 cat conftest.$ac_ext >&5
698dcdb6
VZ
11070 rm -rf conftest*
11071 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 11072fi
698dcdb6 11073rm -f conftest*
0fb0dd83 11074fi
698dcdb6
VZ
11075if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11076 echo "$ac_t""yes" 1>&6
11077 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11078 cat >> confdefs.h <<EOF
11079#define $ac_tr_hdr 1
0fb0dd83 11080EOF
698dcdb6
VZ
11081
11082else
11083 echo "$ac_t""no" 1>&6
0fb0dd83
RR
11084fi
11085done
11086
698dcdb6 11087for ac_hdr in langinfo.h
1f8ae82f 11088do
698dcdb6
VZ
11089ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11090echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9f41d601 11091echo "configure:11092: checking for $ac_hdr" >&5
698dcdb6
VZ
11092if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11093 echo $ac_n "(cached) $ac_c" 1>&6
11094else
11095 cat > conftest.$ac_ext <<EOF
9f41d601 11096#line 11097 "configure"
1f8ae82f 11097#include "confdefs.h"
698dcdb6
VZ
11098#include <$ac_hdr>
11099EOF
11100ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f41d601 11101{ (eval echo configure:11102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11102ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11103if test -z "$ac_err"; then
11104 rm -rf conftest*
11105 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 11106else
698dcdb6
VZ
11107 echo "$ac_err" >&5
11108 echo "configure: failed program was:" >&5
1f8ae82f 11109 cat conftest.$ac_ext >&5
698dcdb6
VZ
11110 rm -rf conftest*
11111 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 11112fi
698dcdb6 11113rm -f conftest*
1f8ae82f 11114fi
698dcdb6
VZ
11115if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11116 echo "$ac_t""yes" 1>&6
11117 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11118 cat >> confdefs.h <<EOF
11119#define $ac_tr_hdr 1
1f8ae82f 11120EOF
698dcdb6
VZ
11121
11122else
11123 echo "$ac_t""no" 1>&6
1f8ae82f
GD
11124fi
11125done
11126
698dcdb6 11127
73fd4a60
VZ
11128if test "$wxUSE_GUI" = "yes"; then
11129 if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 11130 for ac_hdr in X11/XKBlib.h
10f2d63a 11131do
698dcdb6
VZ
11132ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11133echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9f41d601 11134echo "configure:11135: checking for $ac_hdr" >&5
698dcdb6
VZ
11135if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11136 echo $ac_n "(cached) $ac_c" 1>&6
11137else
11138 cat > conftest.$ac_ext <<EOF
9f41d601 11139#line 11140 "configure"
10f2d63a 11140#include "confdefs.h"
698dcdb6
VZ
11141#include <$ac_hdr>
11142EOF
11143ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f41d601 11144{ (eval echo configure:11145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11145ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11146if test -z "$ac_err"; then
11147 rm -rf conftest*
11148 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11149else
698dcdb6
VZ
11150 echo "$ac_err" >&5
11151 echo "configure: failed program was:" >&5
10f2d63a 11152 cat conftest.$ac_ext >&5
698dcdb6
VZ
11153 rm -rf conftest*
11154 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11155fi
698dcdb6 11156rm -f conftest*
10f2d63a 11157fi
698dcdb6
VZ
11158if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11159 echo "$ac_t""yes" 1>&6
11160 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11161 cat >> confdefs.h <<EOF
11162#define $ac_tr_hdr 1
10f2d63a 11163EOF
698dcdb6
VZ
11164
11165else
11166 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11167fi
11168done
11169
73fd4a60 11170 fi
10f2d63a
VZ
11171fi
11172
698dcdb6
VZ
11173
11174echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9f41d601 11175echo "configure:11176: checking for ANSI C header files" >&5
698dcdb6
VZ
11176if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11177 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11178else
698dcdb6 11179 cat > conftest.$ac_ext <<EOF
9f41d601 11180#line 11181 "configure"
10f2d63a
VZ
11181#include "confdefs.h"
11182#include <stdlib.h>
11183#include <stdarg.h>
11184#include <string.h>
11185#include <float.h>
698dcdb6
VZ
11186EOF
11187ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f41d601 11188{ (eval echo configure:11189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11189ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11190if test -z "$ac_err"; then
11191 rm -rf conftest*
10f2d63a
VZ
11192 ac_cv_header_stdc=yes
11193else
698dcdb6
VZ
11194 echo "$ac_err" >&5
11195 echo "configure: failed program was:" >&5
10f2d63a 11196 cat conftest.$ac_ext >&5
698dcdb6 11197 rm -rf conftest*
10f2d63a
VZ
11198 ac_cv_header_stdc=no
11199fi
698dcdb6 11200rm -f conftest*
10f2d63a
VZ
11201
11202if test $ac_cv_header_stdc = yes; then
11203 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 11204cat > conftest.$ac_ext <<EOF
9f41d601 11205#line 11206 "configure"
10f2d63a
VZ
11206#include "confdefs.h"
11207#include <string.h>
698dcdb6 11208EOF
10f2d63a
VZ
11209if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11210 egrep "memchr" >/dev/null 2>&1; then
11211 :
11212else
698dcdb6 11213 rm -rf conftest*
10f2d63a
VZ
11214 ac_cv_header_stdc=no
11215fi
11216rm -f conftest*
11217
11218fi
11219
11220if test $ac_cv_header_stdc = yes; then
11221 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 11222cat > conftest.$ac_ext <<EOF
9f41d601 11223#line 11224 "configure"
10f2d63a
VZ
11224#include "confdefs.h"
11225#include <stdlib.h>
698dcdb6 11226EOF
10f2d63a
VZ
11227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11228 egrep "free" >/dev/null 2>&1; then
11229 :
11230else
698dcdb6 11231 rm -rf conftest*
10f2d63a
VZ
11232 ac_cv_header_stdc=no
11233fi
11234rm -f conftest*
11235
11236fi
11237
11238if test $ac_cv_header_stdc = yes; then
11239 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 11240if test "$cross_compiling" = yes; then
10f2d63a
VZ
11241 :
11242else
698dcdb6 11243 cat > conftest.$ac_ext <<EOF
9f41d601 11244#line 11245 "configure"
10f2d63a
VZ
11245#include "confdefs.h"
11246#include <ctype.h>
698dcdb6
VZ
11247#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11248#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 11249#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
11250int main () { int i; for (i = 0; i < 256; i++)
11251if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11252exit (0); }
11253
11254EOF
9f41d601 11255if { (eval echo configure:11256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 11256then
10f2d63a
VZ
11257 :
11258else
698dcdb6
VZ
11259 echo "configure: failed program was:" >&5
11260 cat conftest.$ac_ext >&5
11261 rm -fr conftest*
11262 ac_cv_header_stdc=no
10f2d63a 11263fi
698dcdb6 11264rm -fr conftest*
10f2d63a 11265fi
698dcdb6 11266
10f2d63a
VZ
11267fi
11268fi
1e487827 11269
698dcdb6
VZ
11270echo "$ac_t""$ac_cv_header_stdc" 1>&6
11271if test $ac_cv_header_stdc = yes; then
11272 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11273#define STDC_HEADERS 1
11274EOF
11275
11276fi
11277
698dcdb6 11278echo $ac_n "checking for mode_t""... $ac_c" 1>&6
9f41d601 11279echo "configure:11280: checking for mode_t" >&5
698dcdb6
VZ
11280if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11281 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 11282else
698dcdb6 11283 cat > conftest.$ac_ext <<EOF
9f41d601 11284#line 11285 "configure"
1e487827 11285#include "confdefs.h"
698dcdb6
VZ
11286#include <sys/types.h>
11287#if STDC_HEADERS
11288#include <stdlib.h>
11289#include <stddef.h>
11290#endif
11291EOF
11292if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11293 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11294 rm -rf conftest*
10f2d63a
VZ
11295 ac_cv_type_mode_t=yes
11296else
698dcdb6
VZ
11297 rm -rf conftest*
11298 ac_cv_type_mode_t=no
703e0a69 11299fi
698dcdb6 11300rm -f conftest*
1e487827 11301
698dcdb6
VZ
11302fi
11303echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11304if test $ac_cv_type_mode_t = no; then
11305 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11306#define mode_t int
11307EOF
11308
11309fi
11310
698dcdb6 11311echo $ac_n "checking for off_t""... $ac_c" 1>&6
9f41d601 11312echo "configure:11313: checking for off_t" >&5
698dcdb6
VZ
11313if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11314 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11315else
698dcdb6 11316 cat > conftest.$ac_ext <<EOF
9f41d601 11317#line 11318 "configure"
10f2d63a 11318#include "confdefs.h"
698dcdb6
VZ
11319#include <sys/types.h>
11320#if STDC_HEADERS
11321#include <stdlib.h>
11322#include <stddef.h>
11323#endif
11324EOF
11325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11326 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11327 rm -rf conftest*
10f2d63a
VZ
11328 ac_cv_type_off_t=yes
11329else
698dcdb6
VZ
11330 rm -rf conftest*
11331 ac_cv_type_off_t=no
703e0a69 11332fi
698dcdb6 11333rm -f conftest*
1e487827 11334
698dcdb6
VZ
11335fi
11336echo "$ac_t""$ac_cv_type_off_t" 1>&6
11337if test $ac_cv_type_off_t = no; then
11338 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11339#define off_t long
11340EOF
11341
11342fi
11343
698dcdb6 11344echo $ac_n "checking for pid_t""... $ac_c" 1>&6
9f41d601 11345echo "configure:11346: checking for pid_t" >&5
698dcdb6
VZ
11346if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11347 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11348else
698dcdb6 11349 cat > conftest.$ac_ext <<EOF
9f41d601 11350#line 11351 "configure"
10f2d63a 11351#include "confdefs.h"
698dcdb6
VZ
11352#include <sys/types.h>
11353#if STDC_HEADERS
11354#include <stdlib.h>
11355#include <stddef.h>
11356#endif
11357EOF
11358if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11359 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11360 rm -rf conftest*
10f2d63a
VZ
11361 ac_cv_type_pid_t=yes
11362else
698dcdb6
VZ
11363 rm -rf conftest*
11364 ac_cv_type_pid_t=no
703e0a69 11365fi
698dcdb6 11366rm -f conftest*
1e487827 11367
698dcdb6
VZ
11368fi
11369echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11370if test $ac_cv_type_pid_t = no; then
11371 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11372#define pid_t int
11373EOF
11374
11375fi
11376
698dcdb6 11377echo $ac_n "checking for size_t""... $ac_c" 1>&6
9f41d601 11378echo "configure:11379: checking for size_t" >&5
698dcdb6
VZ
11379if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11380 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11381else
698dcdb6 11382 cat > conftest.$ac_ext <<EOF
9f41d601 11383#line 11384 "configure"
10f2d63a 11384#include "confdefs.h"
698dcdb6
VZ
11385#include <sys/types.h>
11386#if STDC_HEADERS
11387#include <stdlib.h>
11388#include <stddef.h>
11389#endif
11390EOF
11391if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11392 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11393 rm -rf conftest*
10f2d63a
VZ
11394 ac_cv_type_size_t=yes
11395else
698dcdb6
VZ
11396 rm -rf conftest*
11397 ac_cv_type_size_t=no
703e0a69 11398fi
698dcdb6 11399rm -f conftest*
1e487827 11400
698dcdb6
VZ
11401fi
11402echo "$ac_t""$ac_cv_type_size_t" 1>&6
11403if test $ac_cv_type_size_t = no; then
11404 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11405#define size_t unsigned
11406EOF
11407
11408fi
11409
698dcdb6 11410echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
9f41d601 11411echo "configure:11412: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
11412if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
11413 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11414else
698dcdb6 11415 cat > conftest.$ac_ext <<EOF
9f41d601 11416#line 11417 "configure"
10f2d63a
VZ
11417#include "confdefs.h"
11418#include <sys/types.h>
698dcdb6 11419EOF
10f2d63a
VZ
11420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11421 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 11422 rm -rf conftest*
10f2d63a
VZ
11423 ac_cv_type_uid_t=yes
11424else
698dcdb6 11425 rm -rf conftest*
10f2d63a
VZ
11426 ac_cv_type_uid_t=no
11427fi
11428rm -f conftest*
11429
11430fi
1e487827 11431
698dcdb6
VZ
11432echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11433if test $ac_cv_type_uid_t = no; then
11434 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11435#define uid_t int
11436EOF
11437
698dcdb6 11438 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11439#define gid_t int
11440EOF
11441
11442fi
11443
1e487827 11444
698dcdb6 11445echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
9f41d601 11446echo "configure:11447: checking for wchar_t" >&5
698dcdb6
VZ
11447if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
11448 echo $ac_n "(cached) $ac_c" 1>&6
11449else
11450
11451 cat > conftest.$ac_ext <<EOF
9f41d601 11452#line 11453 "configure"
0046ff7c
VS
11453#include "confdefs.h"
11454#include <wchar.h>
698dcdb6 11455int main() {
0046ff7c 11456
d836ee96
VZ
11457 wchar_t wc, *ws;
11458 wc = L'a';
11459 ws = L"Hello, world!";
698dcdb6
VZ
11460
11461; return 0; }
11462EOF
9f41d601 11463if { (eval echo configure:11464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11464 rm -rf conftest*
1f8ae82f
GD
11465 wx_cv_type_wchar_t=yes
11466else
698dcdb6
VZ
11467 echo "configure: failed program was:" >&5
11468 cat conftest.$ac_ext >&5
11469 rm -rf conftest*
11470 cat > conftest.$ac_ext <<EOF
9f41d601 11471#line 11472 "configure"
1f8ae82f
GD
11472#include "confdefs.h"
11473#include <stdlib.h>
698dcdb6 11474int main() {
1f8ae82f 11475
d836ee96
VZ
11476 wchar_t wc, *ws;
11477 wc = L'a';
11478 ws = L"Hello, world!";
698dcdb6
VZ
11479
11480; return 0; }
11481EOF
9f41d601 11482if { (eval echo configure:11483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11483 rm -rf conftest*
0046ff7c
VS
11484 wx_cv_type_wchar_t=yes
11485else
698dcdb6
VZ
11486 echo "configure: failed program was:" >&5
11487 cat conftest.$ac_ext >&5
11488 rm -rf conftest*
11489 wx_cv_type_wchar_t=no
0046ff7c 11490fi
698dcdb6 11491rm -f conftest*
d836ee96 11492
6232543b 11493fi
698dcdb6 11494rm -f conftest*
703e0a69 11495
1e487827 11496fi
698dcdb6
VZ
11497
11498echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
11499
11500if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 11501 cat >> confdefs.h <<\EOF
0046ff7c
VS
11502#define wxUSE_WCHAR_T 1
11503EOF
11504
11505fi
11506
19af3b06
VZ
11507
11508ac_ext=C
11509# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11510ac_cpp='$CXXCPP $CPPFLAGS'
11511ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11512ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11513cross_compiling=$ac_cv_prog_cxx_cross
11514
d836ee96 11515echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
9f41d601 11516echo "configure:11517: checking if size_t is unsigned int" >&5
d836ee96
VZ
11517if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
11518 echo $ac_n "(cached) $ac_c" 1>&6
11519else
dd2c8b7c 11520 cat > conftest.$ac_ext <<EOF
9f41d601 11521#line 11522 "configure"
d836ee96
VZ
11522#include "confdefs.h"
11523#include <stddef.h>
11524int main() {
11525
dd2c8b7c
VZ
11526 return 0; }
11527
d836ee96 11528 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
11529
11530 int bar() {
d836ee96
VZ
11531
11532; return 0; }
11533EOF
9f41d601 11534if { (eval echo configure:11535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
11535 rm -rf conftest*
11536 wx_cv_size_t_is_uint=no
11537else
11538 echo "configure: failed program was:" >&5
11539 cat conftest.$ac_ext >&5
11540 rm -rf conftest*
11541 wx_cv_size_t_is_uint=yes
11542
11543fi
11544rm -f conftest*
11545
11546fi
11547
11548echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
11549
11550if test "$wx_cv_size_t_is_uint" = "yes"; then
11551 cat >> confdefs.h <<\EOF
11552#define wxSIZE_T_IS_UINT 1
11553EOF
11554
11555else
11556 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
9f41d601 11557echo "configure:11558: checking if size_t is unsigned long" >&5
d836ee96
VZ
11558if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
11559 echo $ac_n "(cached) $ac_c" 1>&6
11560else
11561 cat > conftest.$ac_ext <<EOF
9f41d601 11562#line 11563 "configure"
d836ee96
VZ
11563#include "confdefs.h"
11564#include <stddef.h>
11565int main() {
11566
dd2c8b7c
VZ
11567 return 0; }
11568
d836ee96 11569 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
11570
11571 int bar() {
d836ee96
VZ
11572
11573; return 0; }
11574EOF
9f41d601 11575if { (eval echo configure:11576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
11576 rm -rf conftest*
11577 wx_cv_size_t_is_ulong=no
11578else
11579 echo "configure: failed program was:" >&5
11580 cat conftest.$ac_ext >&5
11581 rm -rf conftest*
11582 wx_cv_size_t_is_ulong=yes
11583
11584fi
11585rm -f conftest*
11586
11587fi
11588
11589echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
11590
11591 if test "$wx_cv_size_t_is_ulong" = "yes"; then
11592 cat >> confdefs.h <<\EOF
11593#define wxSIZE_T_IS_ULONG 1
11594EOF
11595
11596 fi
11597fi
11598
19af3b06
VZ
11599ac_ext=c
11600# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11601ac_cpp='$CPP $CPPFLAGS'
11602ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11603ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11604cross_compiling=$ac_cv_prog_cc_cross
11605
11606
1e487827 11607
698dcdb6 11608echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
9f41d601 11609echo "configure:11610: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
11610if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
11611 echo $ac_n "(cached) $ac_c" 1>&6
11612else
11613
11614 cat > conftest.$ac_ext <<EOF
9f41d601 11615#line 11616 "configure"
b12915c1
VZ
11616#include "confdefs.h"
11617#include <pwd.h>
698dcdb6 11618int main() {
b12915c1
VZ
11619
11620 char *p;
11621 struct passwd *pw;
11622 p = pw->pw_gecos;
698dcdb6
VZ
11623
11624; return 0; }
11625EOF
9f41d601 11626if { (eval echo configure:11627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
11627 rm -rf conftest*
11628
b12915c1 11629 wx_cv_struct_pw_gecos=yes
698dcdb6 11630
b12915c1 11631else
698dcdb6
VZ
11632 echo "configure: failed program was:" >&5
11633 cat conftest.$ac_ext >&5
11634 rm -rf conftest*
11635
b12915c1 11636 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
11637
11638
6232543b 11639fi
698dcdb6
VZ
11640rm -f conftest*
11641
703e0a69 11642
1e487827 11643fi
698dcdb6
VZ
11644
11645echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 11646
bd3277fe 11647if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 11648 cat >> confdefs.h <<\EOF
bd3277fe
VZ
11649#define HAVE_PW_GECOS 1
11650EOF
11651
11652fi
11653
698dcdb6
VZ
11654
11655echo $ac_n "checking for working const""... $ac_c" 1>&6
9f41d601 11656echo "configure:11657: checking for working const" >&5
698dcdb6
VZ
11657if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
11658 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11659else
698dcdb6 11660 cat > conftest.$ac_ext <<EOF
9f41d601 11661#line 11662 "configure"
10f2d63a 11662#include "confdefs.h"
698dcdb6
VZ
11663
11664int main() {
11665
11666/* Ultrix mips cc rejects this. */
11667typedef int charset[2]; const charset x;
11668/* SunOS 4.1.1 cc rejects this. */
11669char const *const *ccp;
11670char **p;
11671/* NEC SVR4.0.2 mips cc rejects this. */
11672struct point {int x, y;};
11673static struct point const zero = {0,0};
11674/* AIX XL C 1.02.0.0 rejects this.
11675 It does not let you subtract one const X* pointer from another in an arm
11676 of an if-expression whose if-part is not a constant expression */
11677const char *g = "string";
11678ccp = &g + (g ? g-g : 0);
11679/* HPUX 7.0 cc rejects these. */
11680++ccp;
11681p = (char**) ccp;
11682ccp = (char const *const *) p;
11683{ /* SCO 3.2v4 cc rejects this. */
11684 char *t;
11685 char const *s = 0 ? (char *) 0 : (char const *) 0;
11686
11687 *t++ = 0;
10f2d63a 11688}
698dcdb6
VZ
11689{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11690 int x[] = {25, 17};
11691 const int *foo = &x[0];
11692 ++foo;
703e0a69 11693}
698dcdb6
VZ
11694{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11695 typedef const int *iptr;
11696 iptr p = 0;
11697 ++p;
6232543b 11698}
698dcdb6
VZ
11699{ /* AIX XL C 1.02.0.0 rejects this saying
11700 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11701 struct s { int j; const int *ap[3]; };
11702 struct s *b; b->j = 5;
1e487827 11703}
698dcdb6
VZ
11704{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11705 const int foo = 10;
11706}
11707
11708; return 0; }
11709EOF
9f41d601 11710if { (eval echo configure:11711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11711 rm -rf conftest*
10f2d63a
VZ
11712 ac_cv_c_const=yes
11713else
698dcdb6
VZ
11714 echo "configure: failed program was:" >&5
11715 cat conftest.$ac_ext >&5
11716 rm -rf conftest*
11717 ac_cv_c_const=no
10f2d63a 11718fi
698dcdb6 11719rm -f conftest*
10f2d63a 11720fi
1e487827 11721
698dcdb6
VZ
11722echo "$ac_t""$ac_cv_c_const" 1>&6
11723if test $ac_cv_c_const = no; then
11724 cat >> confdefs.h <<\EOF
11725#define const
10f2d63a
VZ
11726EOF
11727
11728fi
11729
698dcdb6 11730echo $ac_n "checking for inline""... $ac_c" 1>&6
9f41d601 11731echo "configure:11732: checking for inline" >&5
698dcdb6
VZ
11732if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
11733 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
11734else
11735 ac_cv_c_inline=no
11736for ac_kw in inline __inline__ __inline; do
698dcdb6 11737 cat > conftest.$ac_ext <<EOF
9f41d601 11738#line 11739 "configure"
10f2d63a
VZ
11739#include "confdefs.h"
11740
698dcdb6
VZ
11741int main() {
11742} $ac_kw foo() {
11743; return 0; }
11744EOF
9f41d601 11745if { (eval echo configure:11746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11746 rm -rf conftest*
10f2d63a
VZ
11747 ac_cv_c_inline=$ac_kw; break
11748else
698dcdb6
VZ
11749 echo "configure: failed program was:" >&5
11750 cat conftest.$ac_ext >&5
10f2d63a 11751fi
698dcdb6 11752rm -f conftest*
10f2d63a
VZ
11753done
11754
11755fi
698dcdb6
VZ
11756
11757echo "$ac_t""$ac_cv_c_inline" 1>&6
11758case "$ac_cv_c_inline" in
10f2d63a 11759 inline | yes) ;;
698dcdb6
VZ
11760 no) cat >> confdefs.h <<\EOF
11761#define inline
10f2d63a
VZ
11762EOF
11763 ;;
698dcdb6 11764 *) cat >> confdefs.h <<EOF
10f2d63a
VZ
11765#define inline $ac_cv_c_inline
11766EOF
11767 ;;
11768esac
11769
698dcdb6
VZ
11770
11771echo $ac_n "checking size of char""... $ac_c" 1>&6
9f41d601 11772echo "configure:11773: checking size of char" >&5
698dcdb6
VZ
11773if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
11774 echo $ac_n "(cached) $ac_c" 1>&6
6232543b 11775else
1e487827 11776 if test "$cross_compiling" = yes; then
698dcdb6 11777 ac_cv_sizeof_char=1
1e487827 11778else
698dcdb6 11779 cat > conftest.$ac_ext <<EOF
9f41d601 11780#line 11781 "configure"
1e487827 11781#include "confdefs.h"
698dcdb6
VZ
11782#include <stdio.h>
11783main()
1e487827 11784{
698dcdb6
VZ
11785 FILE *f=fopen("conftestval", "w");
11786 if (!f) exit(1);
11787 fprintf(f, "%d\n", sizeof(char));
11788 exit(0);
1e487827 11789}
698dcdb6 11790EOF
9f41d601 11791if { (eval echo configure:11792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11792then
11793 ac_cv_sizeof_char=`cat conftestval`
1e487827 11794else
698dcdb6
VZ
11795 echo "configure: failed program was:" >&5
11796 cat conftest.$ac_ext >&5
11797 rm -fr conftest*
1e487827
VS
11798 ac_cv_sizeof_char=0
11799fi
698dcdb6 11800rm -fr conftest*
1e487827 11801fi
10f2d63a 11802
1e487827 11803fi
698dcdb6
VZ
11804echo "$ac_t""$ac_cv_sizeof_char" 1>&6
11805cat >> confdefs.h <<EOF
11806#define SIZEOF_CHAR $ac_cv_sizeof_char
1e487827 11807EOF
6232543b 11808
703e0a69 11809
698dcdb6 11810echo $ac_n "checking size of short""... $ac_c" 1>&6
9f41d601 11811echo "configure:11812: checking size of short" >&5
698dcdb6
VZ
11812if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
11813 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 11814else
1e487827 11815 if test "$cross_compiling" = yes; then
698dcdb6 11816 ac_cv_sizeof_short=2
1e487827 11817else
698dcdb6 11818 cat > conftest.$ac_ext <<EOF
9f41d601 11819#line 11820 "configure"
1e487827 11820#include "confdefs.h"
698dcdb6
VZ
11821#include <stdio.h>
11822main()
1e487827 11823{
698dcdb6
VZ
11824 FILE *f=fopen("conftestval", "w");
11825 if (!f) exit(1);
11826 fprintf(f, "%d\n", sizeof(short));
11827 exit(0);
1e487827 11828}
698dcdb6 11829EOF
9f41d601 11830if { (eval echo configure:11831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11831then
11832 ac_cv_sizeof_short=`cat conftestval`
1e487827 11833else
698dcdb6
VZ
11834 echo "configure: failed program was:" >&5
11835 cat conftest.$ac_ext >&5
11836 rm -fr conftest*
11837 ac_cv_sizeof_short=0
1e487827 11838fi
698dcdb6 11839rm -fr conftest*
1e487827 11840fi
698dcdb6 11841
1e487827 11842fi
698dcdb6
VZ
11843echo "$ac_t""$ac_cv_sizeof_short" 1>&6
11844cat >> confdefs.h <<EOF
11845#define SIZEOF_SHORT $ac_cv_sizeof_short
11846EOF
11847
11848
11849echo $ac_n "checking size of int *""... $ac_c" 1>&6
9f41d601 11850echo "configure:11851: checking size of int *" >&5
698dcdb6
VZ
11851if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
11852 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
11853else
11854 if test "$cross_compiling" = yes; then
698dcdb6 11855 ac_cv_sizeof_int_p=4
10f2d63a 11856else
698dcdb6 11857 cat > conftest.$ac_ext <<EOF
9f41d601 11858#line 11859 "configure"
10f2d63a 11859#include "confdefs.h"
698dcdb6
VZ
11860#include <stdio.h>
11861main()
10f2d63a 11862{
698dcdb6
VZ
11863 FILE *f=fopen("conftestval", "w");
11864 if (!f) exit(1);
11865 fprintf(f, "%d\n", sizeof(int *));
11866 exit(0);
10f2d63a 11867}
698dcdb6 11868EOF
9f41d601 11869if { (eval echo configure:11870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11870then
11871 ac_cv_sizeof_int_p=`cat conftestval`
10f2d63a 11872else
698dcdb6
VZ
11873 echo "configure: failed program was:" >&5
11874 cat conftest.$ac_ext >&5
11875 rm -fr conftest*
11876 ac_cv_sizeof_int_p=0
6232543b 11877fi
698dcdb6 11878rm -fr conftest*
1e487827 11879fi
698dcdb6 11880
1e487827 11881fi
698dcdb6
VZ
11882echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
11883cat >> confdefs.h <<EOF
11884#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
11885EOF
11886
698dcdb6
VZ
11887
11888echo $ac_n "checking size of int""... $ac_c" 1>&6
9f41d601 11889echo "configure:11890: checking size of int" >&5
698dcdb6
VZ
11890if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
11891 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
11892else
11893 if test "$cross_compiling" = yes; then
698dcdb6 11894 ac_cv_sizeof_int=4
703e0a69 11895else
698dcdb6 11896 cat > conftest.$ac_ext <<EOF
9f41d601 11897#line 11898 "configure"
1e487827 11898#include "confdefs.h"
698dcdb6
VZ
11899#include <stdio.h>
11900main()
1e487827 11901{
698dcdb6
VZ
11902 FILE *f=fopen("conftestval", "w");
11903 if (!f) exit(1);
11904 fprintf(f, "%d\n", sizeof(int));
11905 exit(0);
1e487827 11906}
698dcdb6 11907EOF
9f41d601 11908if { (eval echo configure:11909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11909then
11910 ac_cv_sizeof_int=`cat conftestval`
11911else
11912 echo "configure: failed program was:" >&5
11913 cat conftest.$ac_ext >&5
11914 rm -fr conftest*
11915 ac_cv_sizeof_int=0
703e0a69 11916fi
698dcdb6
VZ
11917rm -fr conftest*
11918fi
11919
11920fi
11921echo "$ac_t""$ac_cv_sizeof_int" 1>&6
11922cat >> confdefs.h <<EOF
11923#define SIZEOF_INT $ac_cv_sizeof_int
11924EOF
11925
11926
11927echo $ac_n "checking size of long""... $ac_c" 1>&6
9f41d601 11928echo "configure:11929: checking size of long" >&5
698dcdb6
VZ
11929if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
11930 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
11931else
11932 if test "$cross_compiling" = yes; then
698dcdb6 11933 ac_cv_sizeof_long=4
10f2d63a 11934else
698dcdb6 11935 cat > conftest.$ac_ext <<EOF
9f41d601 11936#line 11937 "configure"
10f2d63a 11937#include "confdefs.h"
698dcdb6
VZ
11938#include <stdio.h>
11939main()
10f2d63a 11940{
698dcdb6
VZ
11941 FILE *f=fopen("conftestval", "w");
11942 if (!f) exit(1);
11943 fprintf(f, "%d\n", sizeof(long));
11944 exit(0);
10f2d63a 11945}
698dcdb6 11946EOF
9f41d601 11947if { (eval echo configure:11948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11948then
11949 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 11950else
698dcdb6
VZ
11951 echo "configure: failed program was:" >&5
11952 cat conftest.$ac_ext >&5
11953 rm -fr conftest*
11954 ac_cv_sizeof_long=0
10f2d63a 11955fi
698dcdb6 11956rm -fr conftest*
10f2d63a 11957fi
698dcdb6 11958
10f2d63a 11959fi
698dcdb6
VZ
11960echo "$ac_t""$ac_cv_sizeof_long" 1>&6
11961cat >> confdefs.h <<EOF
11962#define SIZEOF_LONG $ac_cv_sizeof_long
11963EOF
11964
11965
11966echo $ac_n "checking size of long long""... $ac_c" 1>&6
9f41d601 11967echo "configure:11968: checking size of long long" >&5
698dcdb6
VZ
11968if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
11969 echo $ac_n "(cached) $ac_c" 1>&6
11970else
11971 if test "$cross_compiling" = yes; then
11972 ac_cv_sizeof_long_long=0
11973else
11974 cat > conftest.$ac_ext <<EOF
9f41d601 11975#line 11976 "configure"
698dcdb6
VZ
11976#include "confdefs.h"
11977#include <stdio.h>
11978main()
11979{
11980 FILE *f=fopen("conftestval", "w");
11981 if (!f) exit(1);
11982 fprintf(f, "%d\n", sizeof(long long));
11983 exit(0);
11984}
11985EOF
9f41d601 11986if { (eval echo configure:11987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11987then
11988 ac_cv_sizeof_long_long=`cat conftestval`
6232543b 11989else
698dcdb6
VZ
11990 echo "configure: failed program was:" >&5
11991 cat conftest.$ac_ext >&5
11992 rm -fr conftest*
6232543b
VS
11993 ac_cv_sizeof_long_long=0
11994fi
698dcdb6
VZ
11995rm -fr conftest*
11996fi
11997
703e0a69 11998fi
698dcdb6
VZ
11999echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
12000cat >> confdefs.h <<EOF
10f2d63a
VZ
12001#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12002EOF
12003
1e487827 12004
698dcdb6
VZ
12005
12006echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
9f41d601 12007echo "configure:12008: checking size of wchar_t" >&5
698dcdb6
VZ
12008if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
12009 echo $ac_n "(cached) $ac_c" 1>&6
12010else
12011
b93d0d08
VS
12012 if test "$cross_compiling" = yes; then
12013 wx_cv_sizeof_wchar_t=4
1e6feb95 12014
b93d0d08 12015else
698dcdb6 12016 cat > conftest.$ac_ext <<EOF
9f41d601 12017#line 12018 "configure"
b93d0d08
VS
12018#include "confdefs.h"
12019
1e6feb95
VZ
12020 #ifdef HAVE_WCHAR_H
12021 # include <wchar.h>
12022 #endif
12023 #ifdef HAVE_STDLIB_H
12024 # include <stdlib.h>
12025 #endif
12026 #include <stdio.h>
12027 int main()
12028 {
12029 FILE *f=fopen("conftestval", "w");
12030 if (!f) exit(1);
12031 fprintf(f, "%i", sizeof(wchar_t));
12032 exit(0);
12033 }
698dcdb6
VZ
12034
12035EOF
9f41d601 12036if { (eval echo configure:12037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12037then
b93d0d08
VS
12038 wx_cv_sizeof_wchar_t=`cat conftestval`
12039else
698dcdb6
VZ
12040 echo "configure: failed program was:" >&5
12041 cat conftest.$ac_ext >&5
12042 rm -fr conftest*
12043 wx_cv_sizeof_wchar_t=0
b93d0d08 12044fi
698dcdb6 12045rm -fr conftest*
b93d0d08
VS
12046fi
12047
698dcdb6 12048
b93d0d08
VS
12049fi
12050
698dcdb6
VZ
12051echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
12052
12053cat >> confdefs.h <<EOF
28c6addc 12054#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
b93d0d08
VS
12055EOF
12056
698dcdb6 12057
698dcdb6 12058echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
9f41d601 12059echo "configure:12060: checking whether byte ordering is bigendian" >&5
698dcdb6
VZ
12060if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
12061 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12062else
12063 ac_cv_c_bigendian=unknown
12064# See if sys/param.h defines the BYTE_ORDER macro.
698dcdb6 12065cat > conftest.$ac_ext <<EOF
9f41d601 12066#line 12067 "configure"
10f2d63a
VZ
12067#include "confdefs.h"
12068#include <sys/types.h>
12069#include <sys/param.h>
698dcdb6 12070int main() {
10f2d63a
VZ
12071
12072#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12073 bogus endian macros
12074#endif
698dcdb6
VZ
12075; return 0; }
12076EOF
9f41d601 12077if { (eval echo configure:12078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12078 rm -rf conftest*
10f2d63a 12079 # It does; now see whether it defined to BIG_ENDIAN or not.
698dcdb6 12080cat > conftest.$ac_ext <<EOF
9f41d601 12081#line 12082 "configure"
10f2d63a
VZ
12082#include "confdefs.h"
12083#include <sys/types.h>
12084#include <sys/param.h>
698dcdb6 12085int main() {
10f2d63a
VZ
12086
12087#if BYTE_ORDER != BIG_ENDIAN
12088 not big endian
12089#endif
698dcdb6
VZ
12090; return 0; }
12091EOF
9f41d601 12092if { (eval echo configure:12093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12093 rm -rf conftest*
10f2d63a
VZ
12094 ac_cv_c_bigendian=yes
12095else
698dcdb6
VZ
12096 echo "configure: failed program was:" >&5
12097 cat conftest.$ac_ext >&5
12098 rm -rf conftest*
12099 ac_cv_c_bigendian=no
10f2d63a 12100fi
698dcdb6 12101rm -f conftest*
10f2d63a 12102else
698dcdb6
VZ
12103 echo "configure: failed program was:" >&5
12104 cat conftest.$ac_ext >&5
10f2d63a 12105fi
698dcdb6 12106rm -f conftest*
10f2d63a
VZ
12107if test $ac_cv_c_bigendian = unknown; then
12108if test "$cross_compiling" = yes; then
12109 ac_cv_c_bigendian=unknown
12110else
698dcdb6 12111 cat > conftest.$ac_ext <<EOF
9f41d601 12112#line 12113 "configure"
10f2d63a
VZ
12113#include "confdefs.h"
12114main () {
12115 /* Are we little or big endian? From Harbison&Steele. */
12116 union
12117 {
12118 long l;
12119 char c[sizeof (long)];
12120 } u;
12121 u.l = 1;
12122 exit (u.c[sizeof (long) - 1] == 1);
12123}
698dcdb6 12124EOF
9f41d601 12125if { (eval echo configure:12126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12126then
10f2d63a
VZ
12127 ac_cv_c_bigendian=no
12128else
698dcdb6
VZ
12129 echo "configure: failed program was:" >&5
12130 cat conftest.$ac_ext >&5
12131 rm -fr conftest*
12132 ac_cv_c_bigendian=yes
10f2d63a 12133fi
698dcdb6 12134rm -fr conftest*
10f2d63a 12135fi
698dcdb6 12136
10f2d63a
VZ
12137fi
12138fi
698dcdb6
VZ
12139
12140echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10f2d63a 12141if test $ac_cv_c_bigendian = unknown; then
698dcdb6 12142 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
12143fi
12144if test $ac_cv_c_bigendian = yes; then
698dcdb6 12145 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12146#define WORDS_BIGENDIAN 1
12147EOF
12148
12149fi
12150
698dcdb6
VZ
12151
12152
10f2d63a 12153 if test "$cross_compiling" = "yes"; then
698dcdb6 12154 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12155#define wxUSE_IOSTREAMH 1
12156EOF
12157
12158 else
698dcdb6
VZ
12159
12160 ac_ext=C
12161# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12162ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12163ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12164ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12165cross_compiling=$ac_cv_prog_cxx_cross
12166
703e0a69 12167
698dcdb6 12168 for ac_hdr in iostream
10f2d63a 12169do
698dcdb6
VZ
12170ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12171echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9f41d601 12172echo "configure:12173: checking for $ac_hdr" >&5
698dcdb6
VZ
12173if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12174 echo $ac_n "(cached) $ac_c" 1>&6
12175else
12176 cat > conftest.$ac_ext <<EOF
9f41d601 12177#line 12178 "configure"
10f2d63a 12178#include "confdefs.h"
698dcdb6
VZ
12179#include <$ac_hdr>
12180EOF
12181ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f41d601 12182{ (eval echo configure:12183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12183ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12184if test -z "$ac_err"; then
12185 rm -rf conftest*
12186 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12187else
698dcdb6
VZ
12188 echo "$ac_err" >&5
12189 echo "configure: failed program was:" >&5
10f2d63a 12190 cat conftest.$ac_ext >&5
698dcdb6
VZ
12191 rm -rf conftest*
12192 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12193fi
698dcdb6 12194rm -f conftest*
10f2d63a 12195fi
698dcdb6
VZ
12196if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12197 echo "$ac_t""yes" 1>&6
12198 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12199 cat >> confdefs.h <<EOF
12200#define $ac_tr_hdr 1
10f2d63a 12201EOF
698dcdb6
VZ
12202
12203else
12204 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12205fi
12206done
12207
698dcdb6 12208
57fe5ed0
VZ
12209 if test "$ac_cv_header_iostream" = "yes" ; then
12210 :
12211 else
698dcdb6 12212 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12213#define wxUSE_IOSTREAMH 1
12214EOF
12215
10f2d63a
VZ
12216 fi
12217
12218 ac_ext=c
698dcdb6 12219# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12220ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12221ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12222ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12223cross_compiling=$ac_cv_prog_cc_cross
10f2d63a
VZ
12224
12225 fi
12226
703e0a69 12227
698dcdb6
VZ
12228
12229 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
9f41d601 12230echo "configure:12231: checking if C++ compiler supports bool" >&5
698dcdb6
VZ
12231if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12232 echo $ac_n "(cached) $ac_c" 1>&6
12233else
12234
12235
12236 ac_ext=C
12237# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12238ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12239ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12240ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12241cross_compiling=$ac_cv_prog_cxx_cross
10f2d63a 12242
698dcdb6
VZ
12243
12244 cat > conftest.$ac_ext <<EOF
9f41d601 12245#line 12246 "configure"
10f2d63a
VZ
12246#include "confdefs.h"
12247
698dcdb6
VZ
12248
12249int main() {
10f2d63a
VZ
12250
12251 bool b = true;
12252
12253 return 0;
698dcdb6
VZ
12254
12255; return 0; }
12256EOF
9f41d601 12257if { (eval echo configure:12258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12258 rm -rf conftest*
12259
10f2d63a 12260 wx_cv_cpp_bool=yes
698dcdb6 12261
10f2d63a 12262else
698dcdb6
VZ
12263 echo "configure: failed program was:" >&5
12264 cat conftest.$ac_ext >&5
12265 rm -rf conftest*
12266
10f2d63a 12267 wx_cv_cpp_bool=no
698dcdb6
VZ
12268
12269
10f2d63a 12270fi
698dcdb6 12271rm -f conftest*
10f2d63a
VZ
12272
12273 ac_ext=c
698dcdb6 12274# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12275ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12276ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12277ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12278cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 12279
698dcdb6 12280
10f2d63a 12281fi
698dcdb6
VZ
12282
12283echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10f2d63a
VZ
12284
12285 if test "$wx_cv_cpp_bool" = "yes"; then
698dcdb6 12286 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12287#define HAVE_BOOL 1
12288EOF
12289
12290 fi
12291
1e487827 12292
698dcdb6 12293
698dcdb6 12294echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
9f41d601 12295echo "configure:12296: checking for wcslen in -lc" >&5
698dcdb6
VZ
12296ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12297if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12298 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12299else
698dcdb6 12300 ac_save_LIBS="$LIBS"
10f2d63a 12301LIBS="-lc $LIBS"
698dcdb6 12302cat > conftest.$ac_ext <<EOF
9f41d601 12303#line 12304 "configure"
10f2d63a
VZ
12304#include "confdefs.h"
12305/* Override any gcc2 internal prototype to avoid an error. */
12306/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12307 builtin and then its argument prototype would still apply. */
12308char wcslen();
12309
12310int main() {
12311wcslen()
12312; return 0; }
12313EOF
9f41d601 12314if { (eval echo configure:12315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12315 rm -rf conftest*
12316 eval "ac_cv_lib_$ac_lib_var=yes"
12317else
12318 echo "configure: failed program was:" >&5
12319 cat conftest.$ac_ext >&5
12320 rm -rf conftest*
12321 eval "ac_cv_lib_$ac_lib_var=no"
12322fi
12323rm -f conftest*
12324LIBS="$ac_save_LIBS"
12325
12326fi
12327if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12328 echo "$ac_t""yes" 1>&6
12329
12330 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12331#define HAVE_WCSLEN 1
12332EOF
12333
12334 WCHAR_LINK=""
698dcdb6 12335
10f2d63a 12336else
698dcdb6 12337 echo "$ac_t""no" 1>&6
10f2d63a 12338
698dcdb6 12339 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
9f41d601 12340echo "configure:12341: checking for wcslen in -lw" >&5
698dcdb6
VZ
12341ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12342if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12343 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12344else
698dcdb6 12345 ac_save_LIBS="$LIBS"
10f2d63a 12346LIBS="-lw $LIBS"
698dcdb6 12347cat > conftest.$ac_ext <<EOF
9f41d601 12348#line 12349 "configure"
10f2d63a
VZ
12349#include "confdefs.h"
12350/* Override any gcc2 internal prototype to avoid an error. */
12351/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12352 builtin and then its argument prototype would still apply. */
12353char wcslen();
12354
12355int main() {
12356wcslen()
12357; return 0; }
12358EOF
9f41d601 12359if { (eval echo configure:12360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12360 rm -rf conftest*
12361 eval "ac_cv_lib_$ac_lib_var=yes"
12362else
12363 echo "configure: failed program was:" >&5
12364 cat conftest.$ac_ext >&5
12365 rm -rf conftest*
12366 eval "ac_cv_lib_$ac_lib_var=no"
12367fi
12368rm -f conftest*
12369LIBS="$ac_save_LIBS"
12370
12371fi
12372if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12373 echo "$ac_t""yes" 1>&6
12374
12375 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12376#define HAVE_WCSLEN 1
12377EOF
12378
12379 WCHAR_LINK="-lw"
698dcdb6
VZ
12380
12381else
12382 echo "$ac_t""no" 1>&6
6232543b 12383fi
10f2d63a 12384
698dcdb6 12385
1e487827 12386fi
703e0a69 12387
698dcdb6
VZ
12388
12389echo $ac_n "checking for vprintf""... $ac_c" 1>&6
9f41d601 12390echo "configure:12391: checking for vprintf" >&5
698dcdb6
VZ
12391if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
12392 echo $ac_n "(cached) $ac_c" 1>&6
12393else
12394 cat > conftest.$ac_ext <<EOF
9f41d601 12395#line 12396 "configure"
10f2d63a
VZ
12396#include "confdefs.h"
12397/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12398 which can conflict with char vprintf(); below. */
10f2d63a
VZ
12399#include <assert.h>
12400/* Override any gcc2 internal prototype to avoid an error. */
12401/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12402 builtin and then its argument prototype would still apply. */
12403char vprintf();
12404
12405int main() {
10f2d63a
VZ
12406
12407/* The GNU C library defines this for functions which it implements
12408 to always fail with ENOSYS. Some functions are actually named
12409 something starting with __ and the normal name is an alias. */
698dcdb6 12410#if defined (__stub_vprintf) || defined (__stub___vprintf)
10f2d63a
VZ
12411choke me
12412#else
698dcdb6 12413vprintf();
10f2d63a
VZ
12414#endif
12415
698dcdb6
VZ
12416; return 0; }
12417EOF
9f41d601 12418if { (eval echo configure:12419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12419 rm -rf conftest*
12420 eval "ac_cv_func_vprintf=yes"
12421else
12422 echo "configure: failed program was:" >&5
12423 cat conftest.$ac_ext >&5
12424 rm -rf conftest*
12425 eval "ac_cv_func_vprintf=no"
12426fi
12427rm -f conftest*
12428fi
12429
12430if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12431 echo "$ac_t""yes" 1>&6
12432 cat >> confdefs.h <<\EOF
12433#define HAVE_VPRINTF 1
12434EOF
12435
12436else
12437 echo "$ac_t""no" 1>&6
12438fi
12439
12440if test "$ac_cv_func_vprintf" != yes; then
12441echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
9f41d601 12442echo "configure:12443: checking for _doprnt" >&5
698dcdb6
VZ
12443if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
12444 echo $ac_n "(cached) $ac_c" 1>&6
12445else
12446 cat > conftest.$ac_ext <<EOF
9f41d601 12447#line 12448 "configure"
10f2d63a
VZ
12448#include "confdefs.h"
12449/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12450 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
12451#include <assert.h>
12452/* Override any gcc2 internal prototype to avoid an error. */
12453/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12454 builtin and then its argument prototype would still apply. */
12455char _doprnt();
12456
12457int main() {
10f2d63a
VZ
12458
12459/* The GNU C library defines this for functions which it implements
12460 to always fail with ENOSYS. Some functions are actually named
12461 something starting with __ and the normal name is an alias. */
12462#if defined (__stub__doprnt) || defined (__stub____doprnt)
12463choke me
12464#else
698dcdb6 12465_doprnt();
10f2d63a
VZ
12466#endif
12467
698dcdb6
VZ
12468; return 0; }
12469EOF
9f41d601 12470if { (eval echo configure:12471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12471 rm -rf conftest*
12472 eval "ac_cv_func__doprnt=yes"
12473else
12474 echo "configure: failed program was:" >&5
12475 cat conftest.$ac_ext >&5
12476 rm -rf conftest*
12477 eval "ac_cv_func__doprnt=no"
12478fi
12479rm -f conftest*
12480fi
12481
12482if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12483 echo "$ac_t""yes" 1>&6
12484 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12485#define HAVE_DOPRNT 1
12486EOF
12487
698dcdb6
VZ
12488else
12489 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12490fi
12491
12492fi
12493
1e487827 12494
698dcdb6
VZ
12495
12496
12497
12498
12499
12500echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
9f41d601 12501echo "configure:12502: checking for vsnprintf" >&5
698dcdb6
VZ
12502if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
12503 echo $ac_n "(cached) $ac_c" 1>&6
12504else
12505
12506 cat > conftest.$ac_ext <<EOF
9f41d601 12507#line 12508 "configure"
f6bcfd97
BP
12508#include "confdefs.h"
12509
12510 #include <stdio.h>
698dcdb6
VZ
12511 #include <stdarg.h>
12512
12513int main() {
10f2d63a 12514
f6bcfd97 12515 int wx_test_vsnprintf(const char *, ...);
10f2d63a 12516
f6bcfd97
BP
12517 wx_test_vsnprintf("%s");
12518 return 0;
12519 }
12520
12521 int wx_test_vsnprintf(const char *fmt, ...)
12522 {
12523 char *s;
12524
12525 va_list argp;
12526 va_start(argp, fmt);
12527 vsnprintf(s, 42, fmt, argp);
12528 va_end(argp);
698dcdb6
VZ
12529
12530; return 0; }
12531EOF
9f41d601 12532if { (eval echo configure:12533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12533 rm -rf conftest*
12534
f6bcfd97 12535 wx_cv_func_vsnprintf=yes
698dcdb6 12536
10f2d63a 12537else
698dcdb6
VZ
12538 echo "configure: failed program was:" >&5
12539 cat conftest.$ac_ext >&5
12540 rm -rf conftest*
12541
12542 cat > conftest.$ac_ext <<EOF
9f41d601 12543#line 12544 "configure"
c521c494
RL
12544#include "confdefs.h"
12545
12546 #include <stdio.h>
12547 #include <stdarg.h>
698dcdb6
VZ
12548
12549int main() {
c521c494
RL
12550
12551 int wx_test_vsnprintf(const char *, ...);
12552
12553 wx_test_vsnprintf("%s");
12554 return 0;
12555 }
12556
12557 int wx_test_vsnprintf(const char *fmt, ...)
12558 {
12559 char *s;
12560
12561 va_list argp;
12562 va_start(argp, fmt);
12563 _vsnprintf(s, 42, fmt, argp);
12564 va_end(argp);
698dcdb6
VZ
12565
12566; return 0; }
12567EOF
9f41d601 12568if { (eval echo configure:12569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12569 rm -rf conftest*
12570
c521c494 12571 wx_cv_func_vsnprintf=yes
698dcdb6 12572
c521c494 12573else
698dcdb6
VZ
12574 echo "configure: failed program was:" >&5
12575 cat conftest.$ac_ext >&5
12576 rm -rf conftest*
12577
c521c494 12578 wx_cv_func_vsnprintf=no
698dcdb6 12579
10f2d63a 12580fi
698dcdb6
VZ
12581rm -f conftest*
12582
6232543b 12583fi
698dcdb6 12584rm -f conftest*
703e0a69 12585
1e487827 12586fi
698dcdb6
VZ
12587
12588echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
10f2d63a 12589
9d8deca0 12590if test "$wx_cv_func_vsnprintf" = yes; then
698dcdb6 12591 cat >> confdefs.h <<\EOF
9d8deca0
VZ
12592#define HAVE_VSNPRINTF 1
12593EOF
12594
12595else
698dcdb6 12596 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9d8deca0
VZ
12597fi
12598
698dcdb6 12599echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
9f41d601 12600echo "configure:12601: checking for vsscanf" >&5
698dcdb6
VZ
12601if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
12602 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12603else
698dcdb6
VZ
12604
12605 cat > conftest.$ac_ext <<EOF
9f41d601 12606#line 12607 "configure"
10f2d63a 12607#include "confdefs.h"
10f2d63a 12608
f6bcfd97
BP
12609 #include <stdio.h>
12610 #include <stdarg.h>
698dcdb6
VZ
12611
12612int main() {
10f2d63a 12613
f6bcfd97 12614 int wx_test_vsscanf(const char *, ...);
10f2d63a 12615
f6bcfd97
BP
12616 wx_test_vsscanf("%d");
12617 return 0;
10f2d63a
VZ
12618 }
12619
f6bcfd97 12620 int wx_test_vsscanf(const char *fmt, ...)
10f2d63a 12621 {
f6bcfd97
BP
12622 va_list argp;
12623 va_start(argp, fmt);
12624 vsscanf("42", fmt, argp);
12625 va_end(argp);
698dcdb6
VZ
12626
12627; return 0; }
12628EOF
9f41d601 12629if { (eval echo configure:12630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12630 rm -rf conftest*
12631
f6bcfd97 12632 wx_cv_func_vsscanf=yes
698dcdb6 12633
10f2d63a 12634else
698dcdb6
VZ
12635 echo "configure: failed program was:" >&5
12636 cat conftest.$ac_ext >&5
12637 rm -rf conftest*
12638
f6bcfd97 12639 wx_cv_func_vsscanf=no
698dcdb6 12640
6232543b 12641fi
698dcdb6 12642rm -f conftest*
703e0a69 12643
1e487827 12644fi
698dcdb6
VZ
12645
12646echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10f2d63a 12647
9d8deca0 12648if test "$wx_cv_func_vsscanf" = yes; then
698dcdb6 12649 cat >> confdefs.h <<\EOF
9d8deca0
VZ
12650#define HAVE_VSSCANF 1
12651EOF
12652
12653fi
12654
95c8801c
VS
12655if test "$TOOLKIT" != "MSW"; then
12656
12657
12658
698dcdb6
VZ
12659ac_ext=C
12660# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12661ac_cpp='$CXXCPP $CPPFLAGS'
12662ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12663ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12664cross_compiling=$ac_cv_prog_cxx_cross
12665
12666echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
9f41d601 12667echo "configure:12668: checking if iconv() takes char**" >&5
698dcdb6
VZ
12668if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
12669 echo $ac_n "(cached) $ac_c" 1>&6
12670else
12671
12672 cat > conftest.$ac_ext <<EOF
9f41d601 12673#line 12674 "configure"
95c8801c
VS
12674#include "confdefs.h"
12675#include <iconv.h>
698dcdb6 12676int main() {
95c8801c
VS
12677
12678 char **inbuf, **outbuf;
19af3b06
VZ
12679 iconv_t cd;
12680 size_t insz, outsz;
12681 iconv(cd, inbuf, &insz, outbuf, &outsz);
698dcdb6
VZ
12682
12683; return 0; }
12684EOF
9f41d601 12685if { (eval echo configure:12686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12686 rm -rf conftest*
95c8801c
VS
12687 wx_cv_iconv_takes_char=yes
12688else
698dcdb6
VZ
12689 echo "configure: failed program was:" >&5
12690 cat conftest.$ac_ext >&5
12691 rm -rf conftest*
12692 wx_cv_iconv_takes_char=no
95c8801c 12693fi
698dcdb6 12694rm -f conftest*
95c8801c
VS
12695
12696fi
698dcdb6
VZ
12697
12698echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
10f2d63a 12699ac_ext=c
698dcdb6 12700# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12701ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12702ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12703ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12704cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 12705
95c8801c 12706if test "$wx_cv_iconv_takes_char" = yes ; then
698dcdb6 12707 cat >> confdefs.h <<\EOF
95c8801c
VS
12708#define WX_ICONV_TAKES_CHAR 1
12709EOF
12710
12711fi
10f2d63a 12712
1e487827 12713
698dcdb6
VZ
12714if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
12715 for ac_func in sigaction
eb4efbdc 12716do
698dcdb6 12717echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f41d601 12718echo "configure:12719: checking for $ac_func" >&5
698dcdb6
VZ
12719if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12720 echo $ac_n "(cached) $ac_c" 1>&6
12721else
12722 cat > conftest.$ac_ext <<EOF
9f41d601 12723#line 12724 "configure"
eb4efbdc
VZ
12724#include "confdefs.h"
12725/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12726 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
12727#include <assert.h>
12728/* Override any gcc2 internal prototype to avoid an error. */
12729/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12730 builtin and then its argument prototype would still apply. */
12731char $ac_func();
12732
12733int main() {
eb4efbdc
VZ
12734
12735/* The GNU C library defines this for functions which it implements
12736 to always fail with ENOSYS. Some functions are actually named
12737 something starting with __ and the normal name is an alias. */
12738#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12739choke me
12740#else
698dcdb6 12741$ac_func();
eb4efbdc
VZ
12742#endif
12743
698dcdb6 12744; return 0; }
eb4efbdc 12745EOF
9f41d601 12746if { (eval echo configure:12747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12747 rm -rf conftest*
12748 eval "ac_cv_func_$ac_func=yes"
12749else
12750 echo "configure: failed program was:" >&5
12751 cat conftest.$ac_ext >&5
12752 rm -rf conftest*
12753 eval "ac_cv_func_$ac_func=no"
12754fi
12755rm -f conftest*
12756fi
eb4efbdc 12757
698dcdb6
VZ
12758if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12759 echo "$ac_t""yes" 1>&6
12760 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12761 cat >> confdefs.h <<EOF
12762#define $ac_tr_func 1
12763EOF
12764
12765else
12766 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
12767fi
12768done
12769
698dcdb6 12770
eb4efbdc 12771 if test "$ac_cv_func_sigaction" = "no"; then
698dcdb6 12772 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
eb4efbdc
VZ
12773 wxUSE_ON_FATAL_EXCEPTION=no
12774 fi
f6bcfd97
BP
12775
12776 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6
VZ
12777
12778 ac_ext=C
12779# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12780ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12781ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12782ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12783cross_compiling=$ac_cv_prog_cxx_cross
6232543b 12784
1e487827 12785
698dcdb6 12786 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
9f41d601 12787echo "configure:12788: checking for sa_handler type" >&5
698dcdb6
VZ
12788if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
12789 echo $ac_n "(cached) $ac_c" 1>&6
12790else
12791
12792 cat > conftest.$ac_ext <<EOF
9f41d601 12793#line 12794 "configure"
f6bcfd97
BP
12794#include "confdefs.h"
12795#include <signal.h>
698dcdb6 12796int main() {
f6bcfd97
BP
12797
12798 extern void testSigHandler(int);
12799
12800 struct sigaction sa;
12801 sa.sa_handler = testSigHandler;
698dcdb6
VZ
12802
12803; return 0; }
12804EOF
9f41d601 12805if { (eval echo configure:12806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12806 rm -rf conftest*
12807
f6bcfd97 12808 wx_cv_type_sa_handler=int
698dcdb6 12809
f6bcfd97 12810else
698dcdb6
VZ
12811 echo "configure: failed program was:" >&5
12812 cat conftest.$ac_ext >&5
12813 rm -rf conftest*
12814
f6bcfd97 12815 wx_cv_type_sa_handler=void
698dcdb6 12816
6232543b 12817fi
698dcdb6
VZ
12818rm -f conftest*
12819
1e487827 12820fi
698dcdb6
VZ
12821
12822echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
f6bcfd97
BP
12823
12824 ac_ext=c
698dcdb6 12825# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
f6bcfd97 12826ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12827ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12828ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12829cross_compiling=$ac_cv_prog_cc_cross
12830
703e0a69 12831
698dcdb6 12832 cat >> confdefs.h <<EOF
f6bcfd97
BP
12833#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
12834EOF
12835
12836 fi
eb4efbdc
VZ
12837fi
12838
10f2d63a
VZ
12839for ac_func in vfork
12840do
698dcdb6 12841echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f41d601 12842echo "configure:12843: checking for $ac_func" >&5
698dcdb6
VZ
12843if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12844 echo $ac_n "(cached) $ac_c" 1>&6
12845else
12846 cat > conftest.$ac_ext <<EOF
9f41d601 12847#line 12848 "configure"
10f2d63a
VZ
12848#include "confdefs.h"
12849/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12850 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
12851#include <assert.h>
12852/* Override any gcc2 internal prototype to avoid an error. */
12853/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12854 builtin and then its argument prototype would still apply. */
12855char $ac_func();
12856
12857int main() {
10f2d63a
VZ
12858
12859/* The GNU C library defines this for functions which it implements
12860 to always fail with ENOSYS. Some functions are actually named
12861 something starting with __ and the normal name is an alias. */
12862#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12863choke me
12864#else
698dcdb6 12865$ac_func();
10f2d63a
VZ
12866#endif
12867
698dcdb6 12868; return 0; }
10f2d63a 12869EOF
9f41d601 12870if { (eval echo configure:12871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12871 rm -rf conftest*
12872 eval "ac_cv_func_$ac_func=yes"
12873else
12874 echo "configure: failed program was:" >&5
12875 cat conftest.$ac_ext >&5
12876 rm -rf conftest*
12877 eval "ac_cv_func_$ac_func=no"
12878fi
12879rm -f conftest*
12880fi
270a909e 12881
698dcdb6
VZ
12882if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12883 echo "$ac_t""yes" 1>&6
12884 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12885 cat >> confdefs.h <<EOF
12886#define $ac_tr_func 1
12887EOF
12888
12889else
12890 echo "$ac_t""no" 1>&6
270a909e
VZ
12891fi
12892done
12893
1e487827 12894
698dcdb6
VZ
12895if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
12896 for ac_func in fcntl flock
4f3c5f06 12897do
698dcdb6 12898echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f41d601 12899echo "configure:12900: checking for $ac_func" >&5
698dcdb6
VZ
12900if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12901 echo $ac_n "(cached) $ac_c" 1>&6
12902else
12903 cat > conftest.$ac_ext <<EOF
9f41d601 12904#line 12905 "configure"
4f3c5f06
VZ
12905#include "confdefs.h"
12906/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12907 which can conflict with char $ac_func(); below. */
4f3c5f06
VZ
12908#include <assert.h>
12909/* Override any gcc2 internal prototype to avoid an error. */
12910/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12911 builtin and then its argument prototype would still apply. */
12912char $ac_func();
12913
12914int main() {
4f3c5f06
VZ
12915
12916/* The GNU C library defines this for functions which it implements
12917 to always fail with ENOSYS. Some functions are actually named
12918 something starting with __ and the normal name is an alias. */
12919#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12920choke me
12921#else
698dcdb6 12922$ac_func();
4f3c5f06
VZ
12923#endif
12924
698dcdb6
VZ
12925; return 0; }
12926EOF
9f41d601 12927if { (eval echo configure:12928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12928 rm -rf conftest*
12929 eval "ac_cv_func_$ac_func=yes"
12930else
12931 echo "configure: failed program was:" >&5
12932 cat conftest.$ac_ext >&5
12933 rm -rf conftest*
12934 eval "ac_cv_func_$ac_func=no"
12935fi
12936rm -f conftest*
12937fi
12938
12939if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12940 echo "$ac_t""yes" 1>&6
12941 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12942 cat >> confdefs.h <<EOF
12943#define $ac_tr_func 1
4f3c5f06
VZ
12944EOF
12945 break
698dcdb6
VZ
12946else
12947 echo "$ac_t""no" 1>&6
4f3c5f06
VZ
12948fi
12949done
12950
698dcdb6 12951
4f3c5f06 12952 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
698dcdb6 12953 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f3c5f06
VZ
12954 wxUSE_SNGLINST_CHECKER=no
12955 fi
12956fi
12957
270a909e
VZ
12958for ac_func in timegm
12959do
698dcdb6 12960echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f41d601 12961echo "configure:12962: checking for $ac_func" >&5
698dcdb6
VZ
12962if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12963 echo $ac_n "(cached) $ac_c" 1>&6
12964else
12965 cat > conftest.$ac_ext <<EOF
9f41d601 12966#line 12967 "configure"
270a909e
VZ
12967#include "confdefs.h"
12968/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12969 which can conflict with char $ac_func(); below. */
270a909e
VZ
12970#include <assert.h>
12971/* Override any gcc2 internal prototype to avoid an error. */
12972/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12973 builtin and then its argument prototype would still apply. */
12974char $ac_func();
12975
12976int main() {
270a909e
VZ
12977
12978/* The GNU C library defines this for functions which it implements
12979 to always fail with ENOSYS. Some functions are actually named
12980 something starting with __ and the normal name is an alias. */
12981#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12982choke me
12983#else
698dcdb6 12984$ac_func();
270a909e
VZ
12985#endif
12986
698dcdb6 12987; return 0; }
270a909e 12988EOF
9f41d601 12989if { (eval echo configure:12990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12990 rm -rf conftest*
12991 eval "ac_cv_func_$ac_func=yes"
12992else
12993 echo "configure: failed program was:" >&5
12994 cat conftest.$ac_ext >&5
12995 rm -rf conftest*
12996 eval "ac_cv_func_$ac_func=no"
12997fi
12998rm -f conftest*
12999fi
10f2d63a 13000
698dcdb6
VZ
13001if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13002 echo "$ac_t""yes" 1>&6
13003 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13004 cat >> confdefs.h <<EOF
13005#define $ac_tr_func 1
13006EOF
13007
13008else
13009 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13010fi
13011done
13012
698dcdb6 13013
8fd0d89b
VZ
13014for ac_func in putenv setenv
13015do
698dcdb6 13016echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f41d601 13017echo "configure:13018: checking for $ac_func" >&5
698dcdb6
VZ
13018if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13019 echo $ac_n "(cached) $ac_c" 1>&6
13020else
13021 cat > conftest.$ac_ext <<EOF
9f41d601 13022#line 13023 "configure"
8fd0d89b
VZ
13023#include "confdefs.h"
13024/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13025 which can conflict with char $ac_func(); below. */
8fd0d89b
VZ
13026#include <assert.h>
13027/* Override any gcc2 internal prototype to avoid an error. */
13028/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13029 builtin and then its argument prototype would still apply. */
13030char $ac_func();
13031
13032int main() {
8fd0d89b
VZ
13033
13034/* The GNU C library defines this for functions which it implements
13035 to always fail with ENOSYS. Some functions are actually named
13036 something starting with __ and the normal name is an alias. */
13037#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13038choke me
13039#else
698dcdb6 13040$ac_func();
8fd0d89b
VZ
13041#endif
13042
698dcdb6
VZ
13043; return 0; }
13044EOF
9f41d601 13045if { (eval echo configure:13046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13046 rm -rf conftest*
13047 eval "ac_cv_func_$ac_func=yes"
13048else
13049 echo "configure: failed program was:" >&5
13050 cat conftest.$ac_ext >&5
13051 rm -rf conftest*
13052 eval "ac_cv_func_$ac_func=no"
13053fi
13054rm -f conftest*
13055fi
13056
13057if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13058 echo "$ac_t""yes" 1>&6
13059 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13060 cat >> confdefs.h <<EOF
13061#define $ac_tr_func 1
8fd0d89b
VZ
13062EOF
13063 break
698dcdb6
VZ
13064else
13065 echo "$ac_t""no" 1>&6
8fd0d89b
VZ
13066fi
13067done
13068
698dcdb6 13069
b12915c1
VZ
13070HAVE_SOME_SLEEP_FUNC=0
13071if test "$USE_BEOS" = 1; then
698dcdb6 13072 cat >> confdefs.h <<\EOF
b12915c1
VZ
13073#define HAVE_SLEEP 1
13074EOF
13075
13076 HAVE_SOME_SLEEP_FUNC=1
13077fi
13078
b4085ce6 13079if test "$USE_MAC" = 1; then
698dcdb6 13080 cat >> confdefs.h <<\EOF
b4085ce6
GD
13081#define HAVE_USLEEP 1
13082EOF
13083
13084 HAVE_SOME_SLEEP_FUNC=1
13085fi
13086
b12915c1
VZ
13087if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
13088 POSIX4_LINK=
698dcdb6 13089 for ac_func in nanosleep
10f2d63a 13090do
698dcdb6 13091echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f41d601 13092echo "configure:13093: checking for $ac_func" >&5
698dcdb6
VZ
13093if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13094 echo $ac_n "(cached) $ac_c" 1>&6
13095else
13096 cat > conftest.$ac_ext <<EOF
9f41d601 13097#line 13098 "configure"
10f2d63a
VZ
13098#include "confdefs.h"
13099/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13100 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13101#include <assert.h>
13102/* Override any gcc2 internal prototype to avoid an error. */
13103/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13104 builtin and then its argument prototype would still apply. */
13105char $ac_func();
13106
13107int main() {
10f2d63a
VZ
13108
13109/* The GNU C library defines this for functions which it implements
13110 to always fail with ENOSYS. Some functions are actually named
13111 something starting with __ and the normal name is an alias. */
13112#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13113choke me
13114#else
698dcdb6 13115$ac_func();
10f2d63a
VZ
13116#endif
13117
698dcdb6
VZ
13118; return 0; }
13119EOF
9f41d601 13120if { (eval echo configure:13121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13121 rm -rf conftest*
13122 eval "ac_cv_func_$ac_func=yes"
13123else
13124 echo "configure: failed program was:" >&5
13125 cat conftest.$ac_ext >&5
13126 rm -rf conftest*
13127 eval "ac_cv_func_$ac_func=no"
13128fi
13129rm -f conftest*
13130fi
13131
13132if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13133 echo "$ac_t""yes" 1>&6
13134 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13135 cat >> confdefs.h <<EOF
13136#define $ac_tr_func 1
13137EOF
13138 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13139#define HAVE_NANOSLEEP 1
13140EOF
13141
13142else
698dcdb6
VZ
13143 echo "$ac_t""no" 1>&6
13144echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
9f41d601 13145echo "configure:13146: checking for nanosleep in -lposix4" >&5
698dcdb6
VZ
13146ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
13147if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13148 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13149else
698dcdb6 13150 ac_save_LIBS="$LIBS"
10f2d63a 13151LIBS="-lposix4 $LIBS"
698dcdb6 13152cat > conftest.$ac_ext <<EOF
9f41d601 13153#line 13154 "configure"
10f2d63a
VZ
13154#include "confdefs.h"
13155/* Override any gcc2 internal prototype to avoid an error. */
13156/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13157 builtin and then its argument prototype would still apply. */
13158char nanosleep();
13159
13160int main() {
13161nanosleep()
13162; return 0; }
13163EOF
9f41d601 13164if { (eval echo configure:13165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13165 rm -rf conftest*
13166 eval "ac_cv_lib_$ac_lib_var=yes"
13167else
13168 echo "configure: failed program was:" >&5
13169 cat conftest.$ac_ext >&5
13170 rm -rf conftest*
13171 eval "ac_cv_lib_$ac_lib_var=no"
13172fi
13173rm -f conftest*
13174LIBS="$ac_save_LIBS"
13175
13176fi
13177if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13178 echo "$ac_t""yes" 1>&6
13179
13180 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13181#define HAVE_NANOSLEEP 1
13182EOF
13183
b12915c1 13184 POSIX4_LINK="-lposix4"
698dcdb6 13185
10f2d63a 13186else
698dcdb6 13187 echo "$ac_t""no" 1>&6
10f2d63a 13188
698dcdb6 13189 for ac_func in usleep
10f2d63a 13190do
698dcdb6 13191echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f41d601 13192echo "configure:13193: checking for $ac_func" >&5
698dcdb6
VZ
13193if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13194 echo $ac_n "(cached) $ac_c" 1>&6
13195else
13196 cat > conftest.$ac_ext <<EOF
9f41d601 13197#line 13198 "configure"
10f2d63a
VZ
13198#include "confdefs.h"
13199/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13200 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13201#include <assert.h>
13202/* Override any gcc2 internal prototype to avoid an error. */
13203/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13204 builtin and then its argument prototype would still apply. */
13205char $ac_func();
13206
13207int main() {
10f2d63a
VZ
13208
13209/* The GNU C library defines this for functions which it implements
13210 to always fail with ENOSYS. Some functions are actually named
13211 something starting with __ and the normal name is an alias. */
13212#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13213choke me
13214#else
698dcdb6 13215$ac_func();
10f2d63a
VZ
13216#endif
13217
698dcdb6
VZ
13218; return 0; }
13219EOF
9f41d601 13220if { (eval echo configure:13221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13221 rm -rf conftest*
13222 eval "ac_cv_func_$ac_func=yes"
13223else
13224 echo "configure: failed program was:" >&5
13225 cat conftest.$ac_ext >&5
13226 rm -rf conftest*
13227 eval "ac_cv_func_$ac_func=no"
13228fi
13229rm -f conftest*
13230fi
13231
13232if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13233 echo "$ac_t""yes" 1>&6
13234 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13235 cat >> confdefs.h <<EOF
13236#define $ac_tr_func 1
13237EOF
13238 cat >> confdefs.h <<\EOF
b4085ce6
GD
13239#define HAVE_USLEEP 1
13240EOF
13241
10f2d63a 13242else
698dcdb6
VZ
13243 echo "$ac_t""no" 1>&6
13244echo "configure: warning: wxSleep() function will not work" 1>&2
13245
10f2d63a
VZ
13246fi
13247done
13248
698dcdb6
VZ
13249
13250
10f2d63a
VZ
13251fi
13252
698dcdb6
VZ
13253
13254
10f2d63a
VZ
13255fi
13256done
13257
b12915c1 13258fi
10f2d63a
VZ
13259
13260for ac_func in uname gethostname
13261do
698dcdb6 13262echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f41d601 13263echo "configure:13264: checking for $ac_func" >&5
698dcdb6
VZ
13264if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13265 echo $ac_n "(cached) $ac_c" 1>&6
13266else
13267 cat > conftest.$ac_ext <<EOF
9f41d601 13268#line 13269 "configure"
10f2d63a
VZ
13269#include "confdefs.h"
13270/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13271 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13272#include <assert.h>
13273/* Override any gcc2 internal prototype to avoid an error. */
13274/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13275 builtin and then its argument prototype would still apply. */
13276char $ac_func();
13277
13278int main() {
10f2d63a
VZ
13279
13280/* The GNU C library defines this for functions which it implements
13281 to always fail with ENOSYS. Some functions are actually named
13282 something starting with __ and the normal name is an alias. */
13283#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13284choke me
13285#else
698dcdb6 13286$ac_func();
10f2d63a
VZ
13287#endif
13288
698dcdb6
VZ
13289; return 0; }
13290EOF
9f41d601 13291if { (eval echo configure:13292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13292 rm -rf conftest*
13293 eval "ac_cv_func_$ac_func=yes"
13294else
13295 echo "configure: failed program was:" >&5
13296 cat conftest.$ac_ext >&5
13297 rm -rf conftest*
13298 eval "ac_cv_func_$ac_func=no"
13299fi
13300rm -f conftest*
13301fi
13302
13303if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13304 echo "$ac_t""yes" 1>&6
13305 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13306 cat >> confdefs.h <<EOF
13307#define $ac_tr_func 1
10f2d63a
VZ
13308EOF
13309 break
698dcdb6
VZ
13310else
13311 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13312fi
13313done
13314
698dcdb6
VZ
13315
13316
13317ac_ext=C
13318# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 13319ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
13320ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13321ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13322cross_compiling=$ac_cv_prog_cxx_cross
13323
6098c7f9 13324
10f2d63a
VZ
13325for ac_func in strtok_r
13326do
698dcdb6 13327echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f41d601 13328echo "configure:13329: checking for $ac_func" >&5
698dcdb6
VZ
13329if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13330 echo $ac_n "(cached) $ac_c" 1>&6
13331else
13332 cat > conftest.$ac_ext <<EOF
9f41d601 13333#line 13334 "configure"
10f2d63a
VZ
13334#include "confdefs.h"
13335/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13336 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13337#include <assert.h>
13338/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
13339#ifdef __cplusplus
13340extern "C"
13341#endif
10f2d63a 13342/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13343 builtin and then its argument prototype would still apply. */
13344char $ac_func();
13345
13346int main() {
10f2d63a
VZ
13347
13348/* The GNU C library defines this for functions which it implements
13349 to always fail with ENOSYS. Some functions are actually named
13350 something starting with __ and the normal name is an alias. */
13351#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13352choke me
13353#else
698dcdb6 13354$ac_func();
10f2d63a
VZ
13355#endif
13356
698dcdb6 13357; return 0; }
10f2d63a 13358EOF
9f41d601 13359if { (eval echo configure:13360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13360 rm -rf conftest*
13361 eval "ac_cv_func_$ac_func=yes"
13362else
13363 echo "configure: failed program was:" >&5
13364 cat conftest.$ac_ext >&5
13365 rm -rf conftest*
13366 eval "ac_cv_func_$ac_func=no"
13367fi
13368rm -f conftest*
13369fi
10f2d63a 13370
698dcdb6
VZ
13371if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13372 echo "$ac_t""yes" 1>&6
13373 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13374 cat >> confdefs.h <<EOF
13375#define $ac_tr_func 1
13376EOF
13377
13378else
13379 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13380fi
13381done
13382
698dcdb6 13383
6098c7f9 13384ac_ext=c
698dcdb6 13385# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 13386ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13387ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13388ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13389cross_compiling=$ac_cv_prog_cc_cross
6232543b 13390
1e487827 13391
698dcdb6 13392INET_LINK=
10f2d63a
VZ
13393for ac_func in inet_addr
13394do
698dcdb6 13395echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f41d601 13396echo "configure:13397: checking for $ac_func" >&5
698dcdb6
VZ
13397if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13398 echo $ac_n "(cached) $ac_c" 1>&6
13399else
13400 cat > conftest.$ac_ext <<EOF
9f41d601 13401#line 13402 "configure"
10f2d63a
VZ
13402#include "confdefs.h"
13403/* System header to define __stub macros and hopefully few prototypes,
698dcdb6
VZ
13404 which can conflict with char $ac_func(); below. */
13405#include <assert.h>
13406/* Override any gcc2 internal prototype to avoid an error. */
10f2d63a 13407/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13408 builtin and then its argument prototype would still apply. */
13409char $ac_func();
13410
13411int main() {
10f2d63a
VZ
13412
13413/* The GNU C library defines this for functions which it implements
13414 to always fail with ENOSYS. Some functions are actually named
1e487827
VS
13415 something starting with __ and the normal name is an alias. */
13416#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13417choke me
13418#else
698dcdb6 13419$ac_func();
1e487827 13420#endif
703e0a69 13421
698dcdb6
VZ
13422; return 0; }
13423EOF
9f41d601 13424if { (eval echo configure:13425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13425 rm -rf conftest*
13426 eval "ac_cv_func_$ac_func=yes"
13427else
13428 echo "configure: failed program was:" >&5
13429 cat conftest.$ac_ext >&5
13430 rm -rf conftest*
13431 eval "ac_cv_func_$ac_func=no"
13432fi
13433rm -f conftest*
13434fi
13435
13436if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13437 echo "$ac_t""yes" 1>&6
13438 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13439 cat >> confdefs.h <<EOF
13440#define $ac_tr_func 1
13441EOF
13442 cat >> confdefs.h <<\EOF
c63c7106
VZ
13443#define HAVE_INET_ADDR 1
13444EOF
13445
10f2d63a 13446else
698dcdb6
VZ
13447 echo "$ac_t""no" 1>&6
13448echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
9f41d601 13449echo "configure:13450: checking for inet_addr in -lnsl" >&5
698dcdb6
VZ
13450ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
13451if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13452 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 13453else
698dcdb6 13454 ac_save_LIBS="$LIBS"
c63c7106 13455LIBS="-lnsl $LIBS"
698dcdb6 13456cat > conftest.$ac_ext <<EOF
9f41d601 13457#line 13458 "configure"
c63c7106
VZ
13458#include "confdefs.h"
13459/* Override any gcc2 internal prototype to avoid an error. */
13460/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13461 builtin and then its argument prototype would still apply. */
13462char inet_addr();
13463
13464int main() {
13465inet_addr()
13466; return 0; }
13467EOF
9f41d601 13468if { (eval echo configure:13469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13469 rm -rf conftest*
13470 eval "ac_cv_lib_$ac_lib_var=yes"
13471else
13472 echo "configure: failed program was:" >&5
13473 cat conftest.$ac_ext >&5
13474 rm -rf conftest*
13475 eval "ac_cv_lib_$ac_lib_var=no"
13476fi
13477rm -f conftest*
13478LIBS="$ac_save_LIBS"
13479
13480fi
13481if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13482 echo "$ac_t""yes" 1>&6
c63c7106
VZ
13483 INET_LINK="nsl"
13484else
698dcdb6
VZ
13485 echo "$ac_t""no" 1>&6
13486echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
9f41d601 13487echo "configure:13488: checking for inet_addr in -lresolv" >&5
698dcdb6
VZ
13488ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
13489if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13490 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 13491else
698dcdb6 13492 ac_save_LIBS="$LIBS"
c63c7106 13493LIBS="-lresolv $LIBS"
698dcdb6 13494cat > conftest.$ac_ext <<EOF
9f41d601 13495#line 13496 "configure"
c63c7106
VZ
13496#include "confdefs.h"
13497/* Override any gcc2 internal prototype to avoid an error. */
13498/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13499 builtin and then its argument prototype would still apply. */
13500char inet_addr();
13501
13502int main() {
13503inet_addr()
13504; return 0; }
13505EOF
9f41d601 13506if { (eval echo configure:13507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13507 rm -rf conftest*
13508 eval "ac_cv_lib_$ac_lib_var=yes"
13509else
13510 echo "configure: failed program was:" >&5
13511 cat conftest.$ac_ext >&5
13512 rm -rf conftest*
13513 eval "ac_cv_lib_$ac_lib_var=no"
13514fi
13515rm -f conftest*
13516LIBS="$ac_save_LIBS"
c63c7106 13517
6232543b 13518fi
698dcdb6
VZ
13519if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13520 echo "$ac_t""yes" 1>&6
13521 INET_LINK="resolv"
13522
13523else
13524 echo "$ac_t""no" 1>&6
13525fi
c63c7106 13526
698dcdb6 13527
1e487827 13528fi
703e0a69 13529
698dcdb6
VZ
13530
13531
10f2d63a
VZ
13532fi
13533done
13534
698dcdb6 13535
10f2d63a
VZ
13536for ac_func in inet_aton
13537do
698dcdb6 13538echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f41d601 13539echo "configure:13540: checking for $ac_func" >&5
698dcdb6
VZ
13540if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13541 echo $ac_n "(cached) $ac_c" 1>&6
13542else
13543 cat > conftest.$ac_ext <<EOF
9f41d601 13544#line 13545 "configure"
10f2d63a
VZ
13545#include "confdefs.h"
13546/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13547 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13548#include <assert.h>
13549/* Override any gcc2 internal prototype to avoid an error. */
13550/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13551 builtin and then its argument prototype would still apply. */
13552char $ac_func();
13553
13554int main() {
10f2d63a
VZ
13555
13556/* The GNU C library defines this for functions which it implements
13557 to always fail with ENOSYS. Some functions are actually named
13558 something starting with __ and the normal name is an alias. */
13559#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13560choke me
13561#else
698dcdb6 13562$ac_func();
10f2d63a
VZ
13563#endif
13564
698dcdb6
VZ
13565; return 0; }
13566EOF
9f41d601 13567if { (eval echo configure:13568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13568 rm -rf conftest*
13569 eval "ac_cv_func_$ac_func=yes"
13570else
13571 echo "configure: failed program was:" >&5
13572 cat conftest.$ac_ext >&5
13573 rm -rf conftest*
13574 eval "ac_cv_func_$ac_func=no"
13575fi
13576rm -f conftest*
13577fi
13578
13579if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13580 echo "$ac_t""yes" 1>&6
13581 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13582 cat >> confdefs.h <<EOF
13583#define $ac_tr_func 1
13584EOF
13585 cat >> confdefs.h <<\EOF
c63c7106
VZ
13586#define HAVE_INET_ATON 1
13587EOF
13588
10f2d63a 13589else
698dcdb6
VZ
13590 echo "$ac_t""no" 1>&6
13591 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
9f41d601 13592echo "configure:13593: checking for inet_aton in -l$INET_LINK" >&5
698dcdb6
VZ
13593ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
13594if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13595 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13596else
698dcdb6 13597 ac_save_LIBS="$LIBS"
c63c7106 13598LIBS="-l$INET_LINK $LIBS"
698dcdb6 13599cat > conftest.$ac_ext <<EOF
9f41d601 13600#line 13601 "configure"
10f2d63a
VZ
13601#include "confdefs.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 inet_aton();
13606
13607int main() {
13608inet_aton()
13609; return 0; }
13610EOF
9f41d601 13611if { (eval echo configure:13612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13612 rm -rf conftest*
13613 eval "ac_cv_lib_$ac_lib_var=yes"
13614else
13615 echo "configure: failed program was:" >&5
13616 cat conftest.$ac_ext >&5
13617 rm -rf conftest*
13618 eval "ac_cv_lib_$ac_lib_var=no"
13619fi
13620rm -f conftest*
13621LIBS="$ac_save_LIBS"
13622
13623fi
13624if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13625 echo "$ac_t""yes" 1>&6
13626 cat >> confdefs.h <<\EOF
c63c7106 13627#define HAVE_INET_ATON 1
10f2d63a
VZ
13628EOF
13629
698dcdb6
VZ
13630else
13631 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13632fi
13633
698dcdb6 13634
c63c7106
VZ
13635fi
13636done
13637
698dcdb6 13638
c63c7106 13639if test "x$INET_LINK" != "x"; then
698dcdb6 13640 cat >> confdefs.h <<\EOF
c63c7106
VZ
13641#define HAVE_INET_ADDR 1
13642EOF
13643
13644 INET_LINK="-l$INET_LINK"
13645fi
10f2d63a
VZ
13646
13647fi
13648
698dcdb6
VZ
13649
13650cat > confcache <<\EOF
10f2d63a
VZ
13651# This file is a shell script that caches the results of configure
13652# tests run on this system so they can be shared between configure
698dcdb6
VZ
13653# scripts and configure runs. It is not useful on other systems.
13654# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 13655#
698dcdb6
VZ
13656# By default, configure uses ./config.cache as the cache file,
13657# creating it if it does not exist already. You can give configure
13658# the --cache-file=FILE option to use a different cache file; that is
13659# what configure does when it calls configure scripts in
13660# subdirectories, so they share the cache.
13661# Giving --cache-file=/dev/null disables caching, for debugging configure.
13662# config.status only pays attention to the cache file if you give it the
13663# --recheck option to rerun configure.
10f2d63a 13664#
698dcdb6 13665EOF
10f2d63a
VZ
13666# The following way of writing the cache mishandles newlines in values,
13667# but we know of no workaround that is simple, portable, and efficient.
13668# So, don't put newlines in cache variables' values.
13669# Ultrix sh set writes to stderr and can't be redirected directly,
13670# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
13671(set) 2>&1 |
13672 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13673 *ac_space=\ *)
13674 # `set' does not quote correctly, so add quotes (double-quote substitution
13675 # turns \\\\ into \\, and sed turns \\ into \).
13676 sed -n \
13677 -e "s/'/'\\\\''/g" \
13678 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13679 ;;
13680 *)
13681 # `set' quotes correctly as required by POSIX, so do not add quotes.
13682 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13683 ;;
13684 esac >> confcache
13685if cmp -s $cache_file confcache; then
13686 :
13687else
10f2d63a 13688 if test -w $cache_file; then
698dcdb6
VZ
13689 echo "updating cache $cache_file"
13690 cat confcache > $cache_file
10f2d63a
VZ
13691 else
13692 echo "not updating unwritable cache $cache_file"
13693 fi
13694fi
13695rm -f confcache
13696
698dcdb6
VZ
13697
13698
b089607b 13699if test "$TOOLKIT" != "MSW"; then
10f2d63a 13700
698dcdb6 13701
10f2d63a
VZ
13702THREADS_LINK=""
13703THREADS_OBJ=""
13704
13705if test "$wxUSE_THREADS" = "yes" ; then
13706 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 13707 echo "configure: warning: Threads are not supported under WINE" 1>&2
10f2d63a 13708 wxUSE_THREADS="no"
b12915c1 13709 elif test "$USE_BEOS" = 1; then
698dcdb6 13710 echo "configure: warning: BeOS threads are not yet supported" 1>&2
b12915c1 13711 wxUSE_THREADS="no"
10f2d63a
VZ
13712 fi
13713fi
13714
13715if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 13716
186837b0 13717 if test "$USE_AIX" = 1; then
f6bcfd97
BP
13718 THREADS_LIB=pthreads
13719 else
13720 THREADS_LIB=pthread
13721 fi
13722
698dcdb6 13723 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
9f41d601 13724echo "configure:13725: checking for pthread_create in -l$THREADS_LIB" >&5
698dcdb6
VZ
13725ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
13726if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13727 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13728else
698dcdb6 13729 ac_save_LIBS="$LIBS"
f6bcfd97 13730LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 13731cat > conftest.$ac_ext <<EOF
9f41d601 13732#line 13733 "configure"
10f2d63a
VZ
13733#include "confdefs.h"
13734/* Override any gcc2 internal prototype to avoid an error. */
13735/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13736 builtin and then its argument prototype would still apply. */
13737char pthread_create();
13738
13739int main() {
13740pthread_create()
13741; return 0; }
13742EOF
9f41d601 13743if { (eval echo configure:13744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13744 rm -rf conftest*
13745 eval "ac_cv_lib_$ac_lib_var=yes"
13746else
13747 echo "configure: failed program was:" >&5
13748 cat conftest.$ac_ext >&5
13749 rm -rf conftest*
13750 eval "ac_cv_lib_$ac_lib_var=no"
13751fi
13752rm -f conftest*
13753LIBS="$ac_save_LIBS"
10f2d63a 13754
698dcdb6
VZ
13755fi
13756if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13757 echo "$ac_t""yes" 1>&6
13758
10f2d63a 13759 THREADS_OBJ="threadpsx.lo"
f6bcfd97 13760 THREADS_LINK=$THREADS_LIB
698dcdb6 13761
10f2d63a 13762else
698dcdb6 13763 echo "$ac_t""no" 1>&6
10f2d63a 13764
698dcdb6 13765 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
9f41d601 13766echo "configure:13767: checking for pthread_create in -lc_r" >&5
698dcdb6
VZ
13767ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
13768if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13769 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13770else
698dcdb6 13771 ac_save_LIBS="$LIBS"
10f2d63a 13772LIBS="-lc_r $LIBS"
698dcdb6 13773cat > conftest.$ac_ext <<EOF
9f41d601 13774#line 13775 "configure"
10f2d63a
VZ
13775#include "confdefs.h"
13776/* Override any gcc2 internal prototype to avoid an error. */
13777/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13778 builtin and then its argument prototype would still apply. */
13779char pthread_create();
13780
13781int main() {
13782pthread_create()
13783; return 0; }
13784EOF
9f41d601 13785if { (eval echo configure:13786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13786 rm -rf conftest*
13787 eval "ac_cv_lib_$ac_lib_var=yes"
13788else
13789 echo "configure: failed program was:" >&5
13790 cat conftest.$ac_ext >&5
13791 rm -rf conftest*
13792 eval "ac_cv_lib_$ac_lib_var=no"
13793fi
13794rm -f conftest*
13795LIBS="$ac_save_LIBS"
10f2d63a 13796
698dcdb6
VZ
13797fi
13798if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13799 echo "$ac_t""yes" 1>&6
13800
10f2d63a
VZ
13801 THREADS_OBJ="threadpsx.lo"
13802 THREADS_LINK="c_r"
698dcdb6 13803
10f2d63a 13804else
698dcdb6 13805 echo "$ac_t""no" 1>&6
10f2d63a 13806
698dcdb6
VZ
13807 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
13808echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
9f41d601 13809echo "configure:13810: checking for sys/prctl.h" >&5
698dcdb6
VZ
13810if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13811 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13812else
698dcdb6 13813 cat > conftest.$ac_ext <<EOF
9f41d601 13814#line 13815 "configure"
10f2d63a
VZ
13815#include "confdefs.h"
13816#include <sys/prctl.h>
698dcdb6
VZ
13817EOF
13818ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f41d601 13819{ (eval echo configure:13820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13820ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13821if test -z "$ac_err"; then
13822 rm -rf conftest*
13823 eval "ac_cv_header_$ac_safe=yes"
1e487827 13824else
698dcdb6
VZ
13825 echo "$ac_err" >&5
13826 echo "configure: failed program was:" >&5
10f2d63a 13827 cat conftest.$ac_ext >&5
698dcdb6
VZ
13828 rm -rf conftest*
13829 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13830fi
698dcdb6 13831rm -f conftest*
10f2d63a 13832fi
698dcdb6
VZ
13833if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13834 echo "$ac_t""yes" 1>&6
13835
1f8ae82f 13836 THREADS_OBJ="threadsgi.lo"
698dcdb6
VZ
13837
13838else
13839 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13840fi
13841
698dcdb6 13842
6232543b 13843fi
10f2d63a 13844
698dcdb6 13845
1e487827 13846fi
703e0a69 13847
698dcdb6 13848
10f2d63a
VZ
13849 if test -z "$THREADS_OBJ" ; then
13850 wxUSE_THREADS=no
698dcdb6 13851 echo "configure: warning: No thread support on this system" 1>&2
10f2d63a
VZ
13852 fi
13853fi
13854
13855if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 13856 for ac_func in thr_setconcurrency
70846f0a 13857do
698dcdb6 13858echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f41d601 13859echo "configure:13860: checking for $ac_func" >&5
698dcdb6
VZ
13860if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13861 echo $ac_n "(cached) $ac_c" 1>&6
13862else
13863 cat > conftest.$ac_ext <<EOF
9f41d601 13864#line 13865 "configure"
70846f0a
VZ
13865#include "confdefs.h"
13866/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13867 which can conflict with char $ac_func(); below. */
70846f0a
VZ
13868#include <assert.h>
13869/* Override any gcc2 internal prototype to avoid an error. */
13870/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13871 builtin and then its argument prototype would still apply. */
13872char $ac_func();
13873
13874int main() {
70846f0a
VZ
13875
13876/* The GNU C library defines this for functions which it implements
13877 to always fail with ENOSYS. Some functions are actually named
13878 something starting with __ and the normal name is an alias. */
13879#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13880choke me
13881#else
698dcdb6 13882$ac_func();
70846f0a
VZ
13883#endif
13884
698dcdb6 13885; return 0; }
70846f0a 13886EOF
9f41d601 13887if { (eval echo configure:13888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13888 rm -rf conftest*
13889 eval "ac_cv_func_$ac_func=yes"
13890else
13891 echo "configure: failed program was:" >&5
13892 cat conftest.$ac_ext >&5
13893 rm -rf conftest*
13894 eval "ac_cv_func_$ac_func=no"
13895fi
13896rm -f conftest*
13897fi
70846f0a 13898
698dcdb6
VZ
13899if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13900 echo "$ac_t""yes" 1>&6
13901 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13902 cat >> confdefs.h <<EOF
13903#define $ac_tr_func 1
13904EOF
13905
13906else
13907 echo "$ac_t""no" 1>&6
70846f0a
VZ
13908fi
13909done
13910
698dcdb6
VZ
13911
13912
13913 for ac_hdr in sched.h
10f2d63a 13914do
698dcdb6
VZ
13915ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13916echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9f41d601 13917echo "configure:13918: checking for $ac_hdr" >&5
698dcdb6
VZ
13918if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13919 echo $ac_n "(cached) $ac_c" 1>&6
13920else
13921 cat > conftest.$ac_ext <<EOF
9f41d601 13922#line 13923 "configure"
10f2d63a 13923#include "confdefs.h"
698dcdb6
VZ
13924#include <$ac_hdr>
13925EOF
13926ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f41d601 13927{ (eval echo configure:13928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13928ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13929if test -z "$ac_err"; then
13930 rm -rf conftest*
13931 eval "ac_cv_header_$ac_safe=yes"
1e487827 13932else
698dcdb6
VZ
13933 echo "$ac_err" >&5
13934 echo "configure: failed program was:" >&5
10f2d63a 13935 cat conftest.$ac_ext >&5
698dcdb6
VZ
13936 rm -rf conftest*
13937 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13938fi
698dcdb6 13939rm -f conftest*
10f2d63a 13940fi
698dcdb6
VZ
13941if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13942 echo "$ac_t""yes" 1>&6
13943 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13944 cat >> confdefs.h <<EOF
13945#define $ac_tr_hdr 1
10f2d63a 13946EOF
698dcdb6
VZ
13947
13948else
13949 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13950fi
13951done
13952
698dcdb6
VZ
13953
13954 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
9f41d601 13955echo "configure:13956: checking for sched_yield in -l$THREADS_LINK" >&5
698dcdb6
VZ
13956ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
13957if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13958 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13959else
698dcdb6 13960 ac_save_LIBS="$LIBS"
10f2d63a 13961LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 13962cat > conftest.$ac_ext <<EOF
9f41d601 13963#line 13964 "configure"
10f2d63a
VZ
13964#include "confdefs.h"
13965/* Override any gcc2 internal prototype to avoid an error. */
13966/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13967 builtin and then its argument prototype would still apply. */
13968char sched_yield();
13969
13970int main() {
13971sched_yield()
13972; return 0; }
13973EOF
9f41d601 13974if { (eval echo configure:13975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13975 rm -rf conftest*
13976 eval "ac_cv_lib_$ac_lib_var=yes"
13977else
13978 echo "configure: failed program was:" >&5
13979 cat conftest.$ac_ext >&5
13980 rm -rf conftest*
13981 eval "ac_cv_lib_$ac_lib_var=no"
13982fi
13983rm -f conftest*
13984LIBS="$ac_save_LIBS"
13985
13986fi
13987if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13988 echo "$ac_t""yes" 1>&6
13989 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13990#define HAVE_SCHED_YIELD 1
13991EOF
13992
13993else
698dcdb6
VZ
13994 echo "$ac_t""no" 1>&6
13995echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
9f41d601 13996echo "configure:13997: checking for sched_yield in -lposix4" >&5
698dcdb6
VZ
13997ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
13998if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13999 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14000else
698dcdb6 14001 ac_save_LIBS="$LIBS"
1e487827 14002LIBS="-lposix4 $LIBS"
698dcdb6 14003cat > conftest.$ac_ext <<EOF
9f41d601 14004#line 14005 "configure"
10f2d63a
VZ
14005#include "confdefs.h"
14006/* Override any gcc2 internal prototype to avoid an error. */
14007/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14008 builtin and then its argument prototype would still apply. */
14009char sched_yield();
14010
14011int main() {
14012sched_yield()
14013; return 0; }
14014EOF
9f41d601 14015if { (eval echo configure:14016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14016 rm -rf conftest*
14017 eval "ac_cv_lib_$ac_lib_var=yes"
14018else
14019 echo "configure: failed program was:" >&5
14020 cat conftest.$ac_ext >&5
14021 rm -rf conftest*
14022 eval "ac_cv_lib_$ac_lib_var=no"
14023fi
14024rm -f conftest*
14025LIBS="$ac_save_LIBS"
14026
14027fi
14028if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14029 echo "$ac_t""yes" 1>&6
14030 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14031#define HAVE_SCHED_YIELD 1
14032EOF
14033 POSIX4_LINK="-lposix4"
14034else
698dcdb6
VZ
14035 echo "$ac_t""no" 1>&6
14036echo "configure: warning: wxThread::Yield will not work properly" 1>&2
14037
6232543b 14038fi
10f2d63a 14039
698dcdb6 14040
1e487827 14041fi
703e0a69 14042
698dcdb6 14043
f6bcfd97 14044 HAVE_PRIOR_FUNCS=0
698dcdb6 14045 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
9f41d601 14046echo "configure:14047: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
698dcdb6
VZ
14047ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
14048if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14049 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14050else
698dcdb6 14051 ac_save_LIBS="$LIBS"
10f2d63a 14052LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14053cat > conftest.$ac_ext <<EOF
9f41d601 14054#line 14055 "configure"
10f2d63a
VZ
14055#include "confdefs.h"
14056/* Override any gcc2 internal prototype to avoid an error. */
14057/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14058 builtin and then its argument prototype would still apply. */
14059char pthread_attr_getschedpolicy();
14060
14061int main() {
14062pthread_attr_getschedpolicy()
14063; return 0; }
14064EOF
9f41d601 14065if { (eval echo configure:14066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14066 rm -rf conftest*
14067 eval "ac_cv_lib_$ac_lib_var=yes"
14068else
14069 echo "configure: failed program was:" >&5
14070 cat conftest.$ac_ext >&5
14071 rm -rf conftest*
14072 eval "ac_cv_lib_$ac_lib_var=no"
14073fi
14074rm -f conftest*
14075LIBS="$ac_save_LIBS"
14076
14077fi
14078if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14079 echo "$ac_t""yes" 1>&6
14080 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
9f41d601 14081echo "configure:14082: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
698dcdb6
VZ
14082ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
14083if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14084 echo $ac_n "(cached) $ac_c" 1>&6
14085else
14086 ac_save_LIBS="$LIBS"
f6bcfd97 14087LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14088cat > conftest.$ac_ext <<EOF
9f41d601 14089#line 14090 "configure"
f6bcfd97
BP
14090#include "confdefs.h"
14091/* Override any gcc2 internal prototype to avoid an error. */
14092/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14093 builtin and then its argument prototype would still apply. */
14094char pthread_attr_setschedparam();
14095
14096int main() {
14097pthread_attr_setschedparam()
14098; return 0; }
14099EOF
9f41d601 14100if { (eval echo configure:14101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14101 rm -rf conftest*
14102 eval "ac_cv_lib_$ac_lib_var=yes"
14103else
14104 echo "configure: failed program was:" >&5
14105 cat conftest.$ac_ext >&5
14106 rm -rf conftest*
14107 eval "ac_cv_lib_$ac_lib_var=no"
14108fi
14109rm -f conftest*
14110LIBS="$ac_save_LIBS"
14111
14112fi
14113if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14114 echo "$ac_t""yes" 1>&6
14115 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
9f41d601 14116echo "configure:14117: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
698dcdb6
VZ
14117ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14118if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14119 echo $ac_n "(cached) $ac_c" 1>&6
14120else
14121 ac_save_LIBS="$LIBS"
f6bcfd97 14122LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14123cat > conftest.$ac_ext <<EOF
9f41d601 14124#line 14125 "configure"
f6bcfd97
BP
14125#include "confdefs.h"
14126/* Override any gcc2 internal prototype to avoid an error. */
14127/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14128 builtin and then its argument prototype would still apply. */
14129char sched_get_priority_max();
14130
14131int main() {
14132sched_get_priority_max()
14133; return 0; }
14134EOF
9f41d601 14135if { (eval echo configure:14136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14136 rm -rf conftest*
14137 eval "ac_cv_lib_$ac_lib_var=yes"
14138else
14139 echo "configure: failed program was:" >&5
14140 cat conftest.$ac_ext >&5
14141 rm -rf conftest*
14142 eval "ac_cv_lib_$ac_lib_var=no"
14143fi
14144rm -f conftest*
14145LIBS="$ac_save_LIBS"
14146
14147fi
14148if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14149 echo "$ac_t""yes" 1>&6
f6bcfd97 14150 HAVE_PRIOR_FUNCS=1
10f2d63a 14151else
698dcdb6
VZ
14152 echo "$ac_t""no" 1>&6
14153echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
9f41d601 14154echo "configure:14155: checking for sched_get_priority_max in -lposix4" >&5
698dcdb6
VZ
14155ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14156if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14157 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 14158else
698dcdb6 14159 ac_save_LIBS="$LIBS"
1e487827 14160LIBS="-lposix4 $LIBS"
698dcdb6 14161cat > conftest.$ac_ext <<EOF
9f41d601 14162#line 14163 "configure"
10f2d63a 14163#include "confdefs.h"
6232543b 14164/* Override any gcc2 internal prototype to avoid an error. */
6232543b 14165/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14166 builtin and then its argument prototype would still apply. */
14167char sched_get_priority_max();
14168
14169int main() {
14170sched_get_priority_max()
14171; return 0; }
14172EOF
9f41d601 14173if { (eval echo configure:14174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14174 rm -rf conftest*
14175 eval "ac_cv_lib_$ac_lib_var=yes"
14176else
14177 echo "configure: failed program was:" >&5
14178 cat conftest.$ac_ext >&5
14179 rm -rf conftest*
14180 eval "ac_cv_lib_$ac_lib_var=no"
14181fi
14182rm -f conftest*
14183LIBS="$ac_save_LIBS"
10f2d63a 14184
698dcdb6
VZ
14185fi
14186if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14187 echo "$ac_t""yes" 1>&6
14188
f6bcfd97
BP
14189 HAVE_PRIOR_FUNCS=1
14190 POSIX4_LINK="-lposix4"
698dcdb6
VZ
14191
14192else
14193 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14194fi
14195
698dcdb6 14196
10f2d63a
VZ
14197fi
14198
698dcdb6
VZ
14199
14200else
14201 echo "$ac_t""no" 1>&6
6232543b 14202fi
10f2d63a 14203
698dcdb6
VZ
14204
14205else
14206 echo "$ac_t""no" 1>&6
1e487827 14207fi
703e0a69 14208
698dcdb6 14209
f6bcfd97 14210 if test "$HAVE_PRIOR_FUNCS" = 1; then
698dcdb6 14211 cat >> confdefs.h <<\EOF
f6bcfd97
BP
14212#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
14213EOF
14214
14215 else
698dcdb6 14216 echo "configure: warning: Setting thread priority will not work" 1>&2
f6bcfd97
BP
14217 fi
14218
698dcdb6 14219 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
9f41d601 14220echo "configure:14221: checking for pthread_cancel in -l$THREADS_LINK" >&5
698dcdb6
VZ
14221ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
14222if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14223 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14224else
698dcdb6 14225 ac_save_LIBS="$LIBS"
10f2d63a 14226LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14227cat > conftest.$ac_ext <<EOF
9f41d601 14228#line 14229 "configure"
10f2d63a
VZ
14229#include "confdefs.h"
14230/* Override any gcc2 internal prototype to avoid an error. */
14231/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14232 builtin and then its argument prototype would still apply. */
14233char pthread_cancel();
14234
14235int main() {
14236pthread_cancel()
14237; return 0; }
14238EOF
9f41d601 14239if { (eval echo configure:14240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14240 rm -rf conftest*
14241 eval "ac_cv_lib_$ac_lib_var=yes"
14242else
14243 echo "configure: failed program was:" >&5
14244 cat conftest.$ac_ext >&5
14245 rm -rf conftest*
14246 eval "ac_cv_lib_$ac_lib_var=no"
14247fi
14248rm -f conftest*
14249LIBS="$ac_save_LIBS"
14250
14251fi
14252if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14253 echo "$ac_t""yes" 1>&6
14254 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14255#define HAVE_PTHREAD_CANCEL 1
14256EOF
14257
14258else
698dcdb6
VZ
14259 echo "$ac_t""no" 1>&6
14260echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10f2d63a
VZ
14261fi
14262
1e487827 14263
698dcdb6 14264 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
9f41d601 14265echo "configure:14266: checking for pthread_cleanup_push/pop" >&5
698dcdb6
VZ
14266if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
14267 echo $ac_n "(cached) $ac_c" 1>&6
14268else
14269
14270 cat > conftest.$ac_ext <<EOF
9f41d601 14271#line 14272 "configure"
10f2d63a
VZ
14272#include "confdefs.h"
14273#include <pthread.h>
698dcdb6 14274int main() {
10f2d63a
VZ
14275
14276 pthread_cleanup_push(NULL, NULL);
14277 pthread_cleanup_pop(0);
698dcdb6
VZ
14278
14279; return 0; }
14280EOF
9f41d601 14281if { (eval echo configure:14282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14282 rm -rf conftest*
14283
10f2d63a 14284 wx_cv_func_pthread_cleanup_push=yes
698dcdb6 14285
10f2d63a 14286else
698dcdb6
VZ
14287 echo "configure: failed program was:" >&5
14288 cat conftest.$ac_ext >&5
14289 rm -rf conftest*
14290
10f2d63a 14291 wx_cv_func_pthread_cleanup_push=no
698dcdb6 14292
6232543b 14293fi
698dcdb6
VZ
14294rm -f conftest*
14295
1e487827 14296fi
698dcdb6
VZ
14297
14298echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
10f2d63a 14299
d9b9876f 14300 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
698dcdb6 14301 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14302#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
14303EOF
14304
14305 fi
14306
698dcdb6
VZ
14307
14308 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
9f41d601 14309echo "configure:14310: checking for pthread_mutexattr_t" >&5
698dcdb6
VZ
14310if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
14311 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 14312else
698dcdb6
VZ
14313
14314 cat > conftest.$ac_ext <<EOF
9f41d601 14315#line 14316 "configure"
d9b9876f
VZ
14316#include "confdefs.h"
14317#include <pthread.h>
698dcdb6 14318int main() {
d9b9876f
VZ
14319
14320 pthread_mutexattr_t attr;
14321 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
698dcdb6
VZ
14322
14323; return 0; }
14324EOF
9f41d601 14325if { (eval echo configure:14326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14326 rm -rf conftest*
14327
d9b9876f 14328 wx_cv_type_pthread_mutexattr_t=yes
698dcdb6 14329
d9b9876f 14330else
698dcdb6
VZ
14331 echo "configure: failed program was:" >&5
14332 cat conftest.$ac_ext >&5
14333 rm -rf conftest*
14334
d9b9876f 14335 wx_cv_type_pthread_mutexattr_t=no
698dcdb6
VZ
14336
14337
6232543b 14338fi
698dcdb6
VZ
14339rm -f conftest*
14340
1e487827 14341fi
698dcdb6
VZ
14342
14343echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
d9b9876f
VZ
14344
14345 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
698dcdb6 14346 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14347#define HAVE_PTHREAD_MUTEXATTR_T 1
14348EOF
14349
14350 else
698dcdb6 14351 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
9f41d601 14352echo "configure:14353: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
698dcdb6
VZ
14353if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
14354 echo $ac_n "(cached) $ac_c" 1>&6
14355else
14356
14357 cat > conftest.$ac_ext <<EOF
9f41d601 14358#line 14359 "configure"
d9b9876f
VZ
14359#include "confdefs.h"
14360#include <pthread.h>
698dcdb6 14361int main() {
d9b9876f
VZ
14362
14363 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
698dcdb6
VZ
14364
14365; return 0; }
14366EOF
9f41d601 14367if { (eval echo configure:14368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14368 rm -rf conftest*
14369
d9b9876f 14370 wx_cv_type_pthread_rec_mutex_init=yes
698dcdb6 14371
d9b9876f 14372else
698dcdb6
VZ
14373 echo "configure: failed program was:" >&5
14374 cat conftest.$ac_ext >&5
14375 rm -rf conftest*
14376
d9b9876f 14377 wx_cv_type_pthread_rec_mutex_init=no
698dcdb6
VZ
14378
14379
6232543b 14380fi
698dcdb6
VZ
14381rm -f conftest*
14382
1e487827 14383fi
698dcdb6
VZ
14384
14385echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
3765e936 14386 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
698dcdb6 14387 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14388#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
14389EOF
14390
14391 else
698dcdb6 14392 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
d9b9876f
VZ
14393 fi
14394 fi
14395
10f2d63a 14396 THREADS_LINK="-l$THREADS_LINK"
186837b0
VZ
14397
14398 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
14399 CFLAGS="${CFLAGS} -mt"
14400 CXXFLAGS="${CXXFLAGS} -mt"
14401 LDFLAGS="${LDFLAGS} -mt"
14402 fi
10f2d63a
VZ
14403fi
14404
14405fi
14406
14407if test "$wxUSE_THREADS" = "yes"; then
698dcdb6 14408 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14409#define wxUSE_THREADS 1
14410EOF
14411
698dcdb6 14412
2c6025bc 14413 if test "$wxUSE_MAC" = "0"; then
10f2d63a 14414 CFLAGS="${CFLAGS} -D_REENTRANT"
2c6025bc
GD
14415 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14416 fi
10f2d63a
VZ
14417
14418 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
14419else
14420 if test "$ac_cv_func_strtok_r" = "yes"; then
698dcdb6 14421 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
9f41d601 14422echo "configure:14423: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
14423 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
14424 CFLAGS="${CFLAGS} -D_REENTRANT"
14425 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
698dcdb6 14426 echo "$ac_t""yes" 1>&6
ab9b9eab 14427 else
698dcdb6 14428 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14429 fi
14430 fi
14431fi
14432
6f72b082 14433if test "$WXGTK20" = 1 ; then
698dcdb6 14434 cat >> confdefs.h <<EOF
6f72b082 14435#define __WXGTK20__ $WXGTK20
13111b2a
VZ
14436EOF
14437
14438 WXGTK12=1
14439fi
14440
10f2d63a 14441if test "$WXGTK12" = 1 ; then
698dcdb6 14442 cat >> confdefs.h <<EOF
10f2d63a
VZ
14443#define __WXGTK12__ $WXGTK12
14444EOF
14445
14446fi
14447
f6bcfd97 14448if test "$WXGTK127" = 1 ; then
698dcdb6 14449 cat >> confdefs.h <<EOF
f6bcfd97
BP
14450#define __WXGTK127__ $WXGTK127
14451EOF
14452
14453fi
14454
10f2d63a
VZ
14455if test "$WXWINE" = 1 ; then
14456 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
14457fi
14458
b4085ce6 14459if test "$wxUSE_MAC" = 1 ; then
2c6025bc 14460 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON"
ea5999b9 14461 CFLAGS="${CFLAGS} -fno-common -fpascal-strings"
0c451ef3 14462 CPPFLAGS="${CPPFLAGS} -cpp-precomp -fno-common -fpascal-strings"
2f51a9ec
GD
14463 # Extract the first word of "Rez", so it can be a program name with args.
14464set dummy Rez; ac_word=$2
698dcdb6 14465echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9f41d601 14466echo "configure:14467: checking for $ac_word" >&5
698dcdb6
VZ
14467if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then
14468 echo $ac_n "(cached) $ac_c" 1>&6
2f51a9ec
GD
14469else
14470 if test -n "$REZ"; then
14471 ac_cv_prog_REZ="$REZ" # Let the user override the test.
14472else
698dcdb6
VZ
14473 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14474 ac_dummy="$PATH"
14475 for ac_dir in $ac_dummy; do
14476 test -z "$ac_dir" && ac_dir=.
14477 if test -f $ac_dir/$ac_word; then
14478 ac_cv_prog_REZ="Rez"
14479 break
14480 fi
14481 done
14482 IFS="$ac_save_ifs"
2f51a9ec
GD
14483 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
14484fi
14485fi
698dcdb6 14486REZ="$ac_cv_prog_REZ"
2f51a9ec 14487if test -n "$REZ"; then
698dcdb6 14488 echo "$ac_t""$REZ" 1>&6
2f51a9ec 14489else
698dcdb6 14490 echo "$ac_t""no" 1>&6
2f51a9ec
GD
14491fi
14492
14493 # Extract the first word of "Derez", so it can be a program name with args.
14494set dummy Derez; ac_word=$2
698dcdb6 14495echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9f41d601 14496echo "configure:14497: checking for $ac_word" >&5
698dcdb6
VZ
14497if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
14498 echo $ac_n "(cached) $ac_c" 1>&6
2f51a9ec
GD
14499else
14500 if test -n "$DEREZ"; then
14501 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
14502else
698dcdb6
VZ
14503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14504 ac_dummy="$PATH"
14505 for ac_dir in $ac_dummy; do
14506 test -z "$ac_dir" && ac_dir=.
14507 if test -f $ac_dir/$ac_word; then
14508 ac_cv_prog_DEREZ="Derez"
14509 break
14510 fi
14511 done
14512 IFS="$ac_save_ifs"
2f51a9ec
GD
14513 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
14514fi
14515fi
698dcdb6 14516DEREZ="$ac_cv_prog_DEREZ"
2f51a9ec 14517if test -n "$DEREZ"; then
698dcdb6 14518 echo "$ac_t""$DEREZ" 1>&6
2f51a9ec 14519else
698dcdb6 14520 echo "$ac_t""no" 1>&6
2f51a9ec
GD
14521fi
14522
14523 RESCOMP=${REZ}
14524 REZFLAGS="-d __UNIX__ -useDF"
14525 DEREZFLAGS="Carbon.r -useDF"
14526 RESFLAGS="Carbon.r -t APPL"
14527 LIBWXMACRES="\$(LIBWX_MACRES)"
14528 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
b4085ce6
GD
14529fi
14530
10f2d63a
VZ
14531if test "$wxUSE_CYGWIN" = 1 ; then
14532 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
14533fi
14534
14535WXDEBUG=
14536
14537if test "$wxUSE_DEBUG_INFO" = "yes" ; then
14538 WXDEBUG="-g"
14539 wxUSE_OPTIMISE=no
14540fi
14541
14542if test "$wxUSE_DEBUG_GDB" = "yes" ; then
14543 wxUSE_DEBUG_INFO=yes
14544 WXDEBUG="-ggdb"
14545fi
14546
14547if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
698dcdb6 14548 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14549#define WXDEBUG 1
14550EOF
14551
14552 WXDEBUG_DEFINE="-D__WXDEBUG__"
14553else
14554 if test "$wxUSE_GTK" = 1 ; then
14555 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
14556 fi
14557fi
14558
14559if test "$wxUSE_MEM_TRACING" = "yes" ; then
698dcdb6 14560 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14561#define wxUSE_MEMORY_TRACING 1
14562EOF
14563
698dcdb6 14564 cat >> confdefs.h <<\EOF
10f2d63a 14565#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
14566EOF
14567
698dcdb6 14568 cat >> confdefs.h <<\EOF
47c13eb7 14569#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
14570EOF
14571
14572 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
14573fi
14574
14575if test "$wxUSE_DMALLOC" = "yes" ; then
14576 DMALLOC_LINK="-ldmalloc"
14577fi
14578
14579PROFILE=
14580if test "$wxUSE_PROFILE" = "yes" ; then
14581 PROFILE="-pg"
14582fi
14583
14584DEP_INFO_FLAGS=
caa2c79b 14585CODE_GEN_FLAGS=
0f3f1cbc 14586CODE_GEN_FLAGS_CXX=
10f2d63a
VZ
14587if test "$GCC" = yes ; then
14588 if test "$wxUSE_NO_RTTI" = "yes" ; then
0f3f1cbc 14589 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
14590 fi
14591 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
0f3f1cbc 14592 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
14593 fi
14594 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 14595 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
14596 fi
14597 if test "$wxUSE_NO_DEPS" = "no" ; then
14598 DEP_INFO_FLAGS="-MMD"
14599 fi
14600fi
14601
698dcdb6 14602
10f2d63a
VZ
14603CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
14604CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
14605if test "$wxUSE_OPTIMISE" = "no" ; then
14606 OPTIMISE=
14607else
14608 if test "$GCC" = yes ; then
14609 OPTIMISE="-O2"
14610 case "${host}" in
14611 i586-*-*|i686-*-* )
14612 OPTIMISE="${OPTIMISE} "
14613 ;;
14614 esac
14615 else
14616 OPTIMISE="-O"
14617 fi
14618fi
14619
54276ccf
VZ
14620if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
14621 cat >> confdefs.h <<\EOF
14622#define WXWIN_COMPATIBILITY_2 1
14623EOF
14624
14625
14626 WXWIN_COMPATIBILITY_2_2="yes"
14627fi
14628
14629if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
14630 cat >> confdefs.h <<\EOF
14631#define WXWIN_COMPATIBILITY_2_2 1
14632EOF
14633
14634fi
14635
698dcdb6 14636
10f2d63a 14637ZLIB_INCLUDE=
422107f9 14638if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
698dcdb6 14639 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14640#define wxUSE_ZLIB 1
14641EOF
14642
422107f9
VZ
14643 if test "$wxUSE_ZLIB" = "yes" ; then
14644 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
14645 else
14646 ZLIB_LINK=
698dcdb6
VZ
14647 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
14648echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
9f41d601 14649echo "configure:14650: checking for zlib.h" >&5
698dcdb6
VZ
14650if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14651 echo $ac_n "(cached) $ac_c" 1>&6
14652else
14653 cat > conftest.$ac_ext <<EOF
9f41d601 14654#line 14655 "configure"
422107f9
VZ
14655#include "confdefs.h"
14656#include <zlib.h>
698dcdb6
VZ
14657EOF
14658ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f41d601 14659{ (eval echo configure:14660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14660ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14661if test -z "$ac_err"; then
14662 rm -rf conftest*
14663 eval "ac_cv_header_$ac_safe=yes"
422107f9 14664else
698dcdb6
VZ
14665 echo "$ac_err" >&5
14666 echo "configure: failed program was:" >&5
422107f9 14667 cat conftest.$ac_ext >&5
698dcdb6
VZ
14668 rm -rf conftest*
14669 eval "ac_cv_header_$ac_safe=no"
422107f9 14670fi
698dcdb6 14671rm -f conftest*
422107f9 14672fi
698dcdb6
VZ
14673if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14674 echo "$ac_t""yes" 1>&6
14675 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
9f41d601 14676echo "configure:14677: checking for deflate in -lz" >&5
698dcdb6
VZ
14677ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
14678if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14679 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 14680else
698dcdb6 14681 ac_save_LIBS="$LIBS"
422107f9 14682LIBS="-lz $LIBS"
698dcdb6 14683cat > conftest.$ac_ext <<EOF
9f41d601 14684#line 14685 "configure"
422107f9
VZ
14685#include "confdefs.h"
14686/* Override any gcc2 internal prototype to avoid an error. */
14687/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14688 builtin and then its argument prototype would still apply. */
14689char deflate();
14690
14691int main() {
14692deflate()
14693; return 0; }
14694EOF
9f41d601 14695if { (eval echo configure:14696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14696 rm -rf conftest*
14697 eval "ac_cv_lib_$ac_lib_var=yes"
14698else
14699 echo "configure: failed program was:" >&5
14700 cat conftest.$ac_ext >&5
14701 rm -rf conftest*
14702 eval "ac_cv_lib_$ac_lib_var=no"
14703fi
14704rm -f conftest*
14705LIBS="$ac_save_LIBS"
14706
14707fi
14708if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14709 echo "$ac_t""yes" 1>&6
422107f9 14710 ZLIB_LINK="-lz"
698dcdb6
VZ
14711else
14712 echo "$ac_t""no" 1>&6
422107f9
VZ
14713fi
14714
698dcdb6
VZ
14715else
14716 echo "$ac_t""no" 1>&6
422107f9
VZ
14717fi
14718
14719 if test "x$ZLIB_LINK" = "x" ; then
698dcdb6 14720 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
422107f9
VZ
14721 fi
14722 fi
10f2d63a
VZ
14723fi
14724
14725PNG_INCLUDE=
422107f9 14726if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
698dcdb6 14727 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14728#define wxUSE_LIBPNG 1
14729EOF
14730
41fd4136 14731 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
698dcdb6 14732 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
422107f9
VZ
14733 wxUSE_LIBPNG=yes
14734 fi
14735
14736 if test "$wxUSE_LIBPNG" = "yes" ; then
14737 PNG_INCLUDE="-I\${top_srcdir}/src/png"
14738 else
14739 PNG_LINK=
698dcdb6
VZ
14740 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
14741echo $ac_n "checking for png.h""... $ac_c" 1>&6
9f41d601 14742echo "configure:14743: checking for png.h" >&5
698dcdb6
VZ
14743if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14744 echo $ac_n "(cached) $ac_c" 1>&6
14745else
14746 cat > conftest.$ac_ext <<EOF
9f41d601 14747#line 14748 "configure"
422107f9
VZ
14748#include "confdefs.h"
14749#include <png.h>
698dcdb6
VZ
14750EOF
14751ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f41d601 14752{ (eval echo configure:14753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14753ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14754if test -z "$ac_err"; then
14755 rm -rf conftest*
14756 eval "ac_cv_header_$ac_safe=yes"
422107f9 14757else
698dcdb6
VZ
14758 echo "$ac_err" >&5
14759 echo "configure: failed program was:" >&5
422107f9 14760 cat conftest.$ac_ext >&5
698dcdb6
VZ
14761 rm -rf conftest*
14762 eval "ac_cv_header_$ac_safe=no"
422107f9 14763fi
698dcdb6 14764rm -f conftest*
422107f9 14765fi
698dcdb6
VZ
14766if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14767 echo "$ac_t""yes" 1>&6
14768 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
9f41d601 14769echo "configure:14770: checking for png_check_sig in -lpng" >&5
698dcdb6
VZ
14770ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
14771if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14772 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 14773else
698dcdb6 14774 ac_save_LIBS="$LIBS"
422107f9 14775LIBS="-lpng -lz -lm $LIBS"
698dcdb6 14776cat > conftest.$ac_ext <<EOF
9f41d601 14777#line 14778 "configure"
422107f9
VZ
14778#include "confdefs.h"
14779/* Override any gcc2 internal prototype to avoid an error. */
14780/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14781 builtin and then its argument prototype would still apply. */
14782char png_check_sig();
14783
14784int main() {
14785png_check_sig()
14786; return 0; }
14787EOF
9f41d601 14788if { (eval echo configure:14789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14789 rm -rf conftest*
14790 eval "ac_cv_lib_$ac_lib_var=yes"
14791else
14792 echo "configure: failed program was:" >&5
14793 cat conftest.$ac_ext >&5
14794 rm -rf conftest*
14795 eval "ac_cv_lib_$ac_lib_var=no"
14796fi
14797rm -f conftest*
14798LIBS="$ac_save_LIBS"
14799
14800fi
14801if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14802 echo "$ac_t""yes" 1>&6
422107f9 14803 PNG_LINK="-lpng"
698dcdb6
VZ
14804else
14805 echo "$ac_t""no" 1>&6
422107f9
VZ
14806fi
14807
698dcdb6
VZ
14808
14809else
14810 echo "$ac_t""no" 1>&6
422107f9
VZ
14811fi
14812
14813 if test "x$PNG_LINK" = "x" ; then
698dcdb6 14814 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
14815 fi
14816 fi
14817
10f2d63a
VZ
14818 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
14819fi
14820
14821JPEG_INCLUDE=
422107f9 14822if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
698dcdb6 14823 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14824#define wxUSE_LIBJPEG 1
14825EOF
14826
422107f9
VZ
14827 if test "$wxUSE_LIBJPEG" = "yes" ; then
14828 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
14829 else
14830 JPEG_LINK=
463abc64 14831 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
9f41d601 14832echo "configure:14833: checking for jpeglib.h" >&5
463abc64 14833 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
698dcdb6
VZ
14834 echo $ac_n "(cached) $ac_c" 1>&6
14835else
14836 cat > conftest.$ac_ext <<EOF
9f41d601 14837#line 14838 "configure"
422107f9 14838#include "confdefs.h"
463abc64
VZ
14839
14840 #undef HAVE_STDLIB_H
14841 #include <stdio.h>
14842 #include <jpeglib.h>
14843
14844int main() {
14845
14846
14847; return 0; }
698dcdb6 14848EOF
9f41d601 14849if { (eval echo configure:14850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 14850 rm -rf conftest*
463abc64 14851 ac_cv_header_jpeglib_h=yes
6232543b 14852else
698dcdb6 14853 echo "configure: failed program was:" >&5
422107f9 14854 cat conftest.$ac_ext >&5
698dcdb6 14855 rm -rf conftest*
463abc64
VZ
14856 ac_cv_header_jpeglib_h=no
14857
422107f9 14858fi
698dcdb6 14859rm -f conftest*
463abc64 14860
422107f9 14861fi
463abc64
VZ
14862
14863 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
14864
14865 if test "$ac_cv_header_jpeglib_h" = "yes"; then
14866 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
9f41d601 14867echo "configure:14868: checking for jpeg_read_header in -ljpeg" >&5
698dcdb6
VZ
14868ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
14869if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14870 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 14871else
698dcdb6 14872 ac_save_LIBS="$LIBS"
422107f9 14873LIBS="-ljpeg $LIBS"
698dcdb6 14874cat > conftest.$ac_ext <<EOF
9f41d601 14875#line 14876 "configure"
422107f9
VZ
14876#include "confdefs.h"
14877/* Override any gcc2 internal prototype to avoid an error. */
14878/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14879 builtin and then its argument prototype would still apply. */
14880char jpeg_read_header();
14881
14882int main() {
14883jpeg_read_header()
14884; return 0; }
14885EOF
9f41d601 14886if { (eval echo configure:14887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14887 rm -rf conftest*
14888 eval "ac_cv_lib_$ac_lib_var=yes"
14889else
14890 echo "configure: failed program was:" >&5
14891 cat conftest.$ac_ext >&5
14892 rm -rf conftest*
14893 eval "ac_cv_lib_$ac_lib_var=no"
14894fi
14895rm -f conftest*
14896LIBS="$ac_save_LIBS"
14897
14898fi
14899if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14900 echo "$ac_t""yes" 1>&6
422107f9 14901 JPEG_LINK="-ljpeg"
698dcdb6
VZ
14902else
14903 echo "$ac_t""no" 1>&6
422107f9
VZ
14904fi
14905
463abc64 14906 fi
422107f9
VZ
14907
14908 if test "x$JPEG_LINK" = "x" ; then
698dcdb6 14909 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
14910 fi
14911 fi
10f2d63a
VZ
14912fi
14913
c7a2bf27 14914TIFF_INCLUDE=
0dcf9893 14915if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
698dcdb6 14916 cat >> confdefs.h <<\EOF
c7a2bf27
RR
14917#define wxUSE_LIBTIFF 1
14918EOF
14919
665bbe97 14920 if test "$wxUSE_LIBTIFF" = "yes" ; then
0dcf9893
VZ
14921 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
14922 else
14923 TIFF_LINK=
698dcdb6
VZ
14924 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
14925echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
9f41d601 14926echo "configure:14927: checking for tiffio.h" >&5
698dcdb6
VZ
14927if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14928 echo $ac_n "(cached) $ac_c" 1>&6
14929else
14930 cat > conftest.$ac_ext <<EOF
9f41d601 14931#line 14932 "configure"
0dcf9893
VZ
14932#include "confdefs.h"
14933#include <tiffio.h>
698dcdb6
VZ
14934EOF
14935ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f41d601 14936{ (eval echo configure:14937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14937ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14938if test -z "$ac_err"; then
14939 rm -rf conftest*
14940 eval "ac_cv_header_$ac_safe=yes"
1e487827 14941else
698dcdb6
VZ
14942 echo "$ac_err" >&5
14943 echo "configure: failed program was:" >&5
0dcf9893 14944 cat conftest.$ac_ext >&5
698dcdb6
VZ
14945 rm -rf conftest*
14946 eval "ac_cv_header_$ac_safe=no"
0dcf9893 14947fi
698dcdb6 14948rm -f conftest*
0dcf9893 14949fi
698dcdb6
VZ
14950if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14951 echo "$ac_t""yes" 1>&6
14952 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
9f41d601 14953echo "configure:14954: checking for TIFFError in -ltiff" >&5
698dcdb6
VZ
14954ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
14955if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14956 echo $ac_n "(cached) $ac_c" 1>&6
0dcf9893 14957else
698dcdb6 14958 ac_save_LIBS="$LIBS"
0dcf9893 14959LIBS="-ltiff -lm $LIBS"
698dcdb6 14960cat > conftest.$ac_ext <<EOF
9f41d601 14961#line 14962 "configure"
0dcf9893
VZ
14962#include "confdefs.h"
14963/* Override any gcc2 internal prototype to avoid an error. */
14964/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14965 builtin and then its argument prototype would still apply. */
14966char TIFFError();
14967
14968int main() {
14969TIFFError()
14970; return 0; }
14971EOF
9f41d601 14972if { (eval echo configure:14973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14973 rm -rf conftest*
14974 eval "ac_cv_lib_$ac_lib_var=yes"
14975else
14976 echo "configure: failed program was:" >&5
14977 cat conftest.$ac_ext >&5
14978 rm -rf conftest*
14979 eval "ac_cv_lib_$ac_lib_var=no"
14980fi
14981rm -f conftest*
14982LIBS="$ac_save_LIBS"
14983
14984fi
14985if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14986 echo "$ac_t""yes" 1>&6
0dcf9893 14987 TIFF_LINK="-ltiff"
698dcdb6
VZ
14988else
14989 echo "$ac_t""no" 1>&6
0dcf9893
VZ
14990fi
14991
698dcdb6
VZ
14992else
14993 echo "$ac_t""no" 1>&6
0dcf9893
VZ
14994fi
14995
14996 if test "x$TIFF_LINK" = "x" ; then
698dcdb6 14997 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
0dcf9893
VZ
14998 fi
14999 fi
c7a2bf27
RR
15000fi
15001
3fed1840
RR
15002FREETYPE_INCLUDE=
15003if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
698dcdb6 15004 cat >> confdefs.h <<\EOF
3fed1840
RR
15005#define wxUSE_FREETYPE 1
15006EOF
15007
15008 if test "$wxUSE_FREETYPE" = "yes" ; then
15009 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
15010 else
15011 FREETYPE_LINK=
698dcdb6
VZ
15012 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
15013echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
9f41d601 15014echo "configure:15015: checking for freetype.h" >&5
698dcdb6
VZ
15015if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15016 echo $ac_n "(cached) $ac_c" 1>&6
15017else
15018 cat > conftest.$ac_ext <<EOF
9f41d601 15019#line 15020 "configure"
3fed1840
RR
15020#include "confdefs.h"
15021#include <freetype.h>
698dcdb6
VZ
15022EOF
15023ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f41d601 15024{ (eval echo configure:15025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15025ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15026if test -z "$ac_err"; then
15027 rm -rf conftest*
15028 eval "ac_cv_header_$ac_safe=yes"
3fed1840 15029else
698dcdb6
VZ
15030 echo "$ac_err" >&5
15031 echo "configure: failed program was:" >&5
3fed1840 15032 cat conftest.$ac_ext >&5
698dcdb6
VZ
15033 rm -rf conftest*
15034 eval "ac_cv_header_$ac_safe=no"
3fed1840 15035fi
698dcdb6 15036rm -f conftest*
3fed1840 15037fi
698dcdb6
VZ
15038if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15039 echo "$ac_t""yes" 1>&6
15040 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
9f41d601 15041echo "configure:15042: checking for FT_Render_Glyph in -lfreetype" >&5
698dcdb6
VZ
15042ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
15043if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15044 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 15045else
698dcdb6 15046 ac_save_LIBS="$LIBS"
3fed1840 15047LIBS="-lfreetype -lm $LIBS"
698dcdb6 15048cat > conftest.$ac_ext <<EOF
9f41d601 15049#line 15050 "configure"
3fed1840
RR
15050#include "confdefs.h"
15051/* Override any gcc2 internal prototype to avoid an error. */
15052/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15053 builtin and then its argument prototype would still apply. */
15054char FT_Render_Glyph();
15055
15056int main() {
15057FT_Render_Glyph()
15058; return 0; }
15059EOF
9f41d601 15060if { (eval echo configure:15061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15061 rm -rf conftest*
15062 eval "ac_cv_lib_$ac_lib_var=yes"
15063else
15064 echo "configure: failed program was:" >&5
15065 cat conftest.$ac_ext >&5
15066 rm -rf conftest*
15067 eval "ac_cv_lib_$ac_lib_var=no"
15068fi
15069rm -f conftest*
15070LIBS="$ac_save_LIBS"
15071
15072fi
15073if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15074 echo "$ac_t""yes" 1>&6
3fed1840 15075 FREETYPE_LINK="-lfreetype"
698dcdb6
VZ
15076else
15077 echo "$ac_t""no" 1>&6
3fed1840
RR
15078fi
15079
698dcdb6
VZ
15080
15081else
15082 echo "$ac_t""no" 1>&6
3fed1840
RR
15083fi
15084
15085 if test "x$FREETYPE_LINK" = "x" ; then
698dcdb6 15086 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
3fed1840
RR
15087 fi
15088 fi
15089fi
15090
10f2d63a 15091if test "$wxUSE_OPENGL" = "yes"; then
698dcdb6
VZ
15092 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15093echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
9f41d601 15094echo "configure:15095: checking for GL/gl.h" >&5
698dcdb6
VZ
15095if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15096 echo $ac_n "(cached) $ac_c" 1>&6
15097else
15098 cat > conftest.$ac_ext <<EOF
9f41d601 15099#line 15100 "configure"
10f2d63a
VZ
15100#include "confdefs.h"
15101#include <GL/gl.h>
698dcdb6
VZ
15102EOF
15103ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f41d601 15104{ (eval echo configure:15105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15105ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15106if test -z "$ac_err"; then
15107 rm -rf conftest*
15108 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 15109else
698dcdb6
VZ
15110 echo "$ac_err" >&5
15111 echo "configure: failed program was:" >&5
10f2d63a 15112 cat conftest.$ac_ext >&5
698dcdb6
VZ
15113 rm -rf conftest*
15114 eval "ac_cv_header_$ac_safe=no"
10f2d63a 15115fi
698dcdb6 15116rm -f conftest*
10f2d63a 15117fi
698dcdb6
VZ
15118if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15119 echo "$ac_t""yes" 1>&6
15120
15121 cat >> confdefs.h <<\EOF
bdad4e7e
RR
15122#define wxUSE_OPENGL 1
15123EOF
15124
698dcdb6 15125 cat >> confdefs.h <<\EOF
bdad4e7e
RR
15126#define wxUSE_GLCANVAS 1
15127EOF
15128
698dcdb6 15129 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
9f41d601 15130echo "configure:15131: checking for glFlush in -lGL" >&5
698dcdb6
VZ
15131ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
15132if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15133 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15134else
698dcdb6 15135 ac_save_LIBS="$LIBS"
bdad4e7e 15136LIBS="-lGL $LIBS"
698dcdb6 15137cat > conftest.$ac_ext <<EOF
9f41d601 15138#line 15139 "configure"
10f2d63a
VZ
15139#include "confdefs.h"
15140/* Override any gcc2 internal prototype to avoid an error. */
15141/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15142 builtin and then its argument prototype would still apply. */
15143char glFlush();
6232543b 15144
698dcdb6
VZ
15145int main() {
15146glFlush()
15147; return 0; }
15148EOF
9f41d601 15149if { (eval echo configure:15150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15150 rm -rf conftest*
15151 eval "ac_cv_lib_$ac_lib_var=yes"
15152else
15153 echo "configure: failed program was:" >&5
15154 cat conftest.$ac_ext >&5
15155 rm -rf conftest*
15156 eval "ac_cv_lib_$ac_lib_var=no"
15157fi
15158rm -f conftest*
15159LIBS="$ac_save_LIBS"
1e487827 15160
698dcdb6
VZ
15161fi
15162if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15163 echo "$ac_t""yes" 1>&6
15164
15165 OPENGL_LINK="-lGL -lGLU"
15166
10f2d63a 15167else
698dcdb6 15168 echo "$ac_t""no" 1>&6
10f2d63a 15169
698dcdb6 15170 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
9f41d601 15171echo "configure:15172: checking for glFlush in -lMesaGL" >&5
698dcdb6
VZ
15172ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
15173if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15174 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15175else
698dcdb6 15176 ac_save_LIBS="$LIBS"
10f2d63a 15177LIBS="-lMesaGL $LIBS"
698dcdb6 15178cat > conftest.$ac_ext <<EOF
9f41d601 15179#line 15180 "configure"
10f2d63a
VZ
15180#include "confdefs.h"
15181/* Override any gcc2 internal prototype to avoid an error. */
15182/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15183 builtin and then its argument prototype would still apply. */
15184char glFlush();
15185
15186int main() {
15187glFlush()
15188; return 0; }
15189EOF
9f41d601 15190if { (eval echo configure:15191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15191 rm -rf conftest*
15192 eval "ac_cv_lib_$ac_lib_var=yes"
15193else
15194 echo "configure: failed program was:" >&5
15195 cat conftest.$ac_ext >&5
15196 rm -rf conftest*
15197 eval "ac_cv_lib_$ac_lib_var=no"
15198fi
15199rm -f conftest*
15200LIBS="$ac_save_LIBS"
10f2d63a 15201
698dcdb6
VZ
15202fi
15203if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15204 echo "$ac_t""yes" 1>&6
15205
f6bcfd97 15206 OPENGL_LINK="-lMesaGL -lMesaGLU"
698dcdb6
VZ
15207
15208else
15209 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15210fi
15211
698dcdb6 15212
10f2d63a
VZ
15213fi
15214
698dcdb6 15215
10f2d63a 15216else
698dcdb6
VZ
15217 echo "$ac_t""no" 1>&6
15218wxUSE_OPENGL=0
10f2d63a
VZ
15219fi
15220
15221fi
15222
698dcdb6 15223
10f2d63a 15224if test "$wxUSE_GUI" = "yes"; then
698dcdb6 15225 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15226#define wxUSE_GUI 1
15227EOF
15228
698dcdb6 15229
10f2d63a 15230 else
698dcdb6 15231 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15232#define wxUSE_NOGUI 1
15233EOF
15234
15235fi
15236
698dcdb6 15237
10f2d63a 15238if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 15239 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15240#define wxUSE_UNIX 1
15241EOF
15242
15243fi
15244
698dcdb6 15245
10f2d63a 15246if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 15247 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15248#define wxUSE_APPLE_IEEE 1
15249EOF
15250
15251fi
15252
1e6feb95
VZ
15253if test "$wxUSE_TIMER" = "yes"; then
15254 cat >> confdefs.h <<\EOF
15255#define wxUSE_TIMER 1
15256EOF
15257
15258fi
15259
10f2d63a 15260if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 15261 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15262#define wxUSE_WAVE 1
15263EOF
15264
15265fi
15266
1e6feb95
VZ
15267if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15268 cat >> confdefs.h <<\EOF
15269#define wxUSE_CMDLINE_PARSER 1
15270EOF
15271
15272fi
15273
15274if test "$wxUSE_STOPWATCH" = "yes"; then
15275 cat >> confdefs.h <<\EOF
15276#define wxUSE_STOPWATCH 1
15277EOF
15278
15279fi
15280
15281if test "$wxUSE_DATETIME" = "yes"; then
15282 cat >> confdefs.h <<\EOF
15283#define wxUSE_DATETIME 1
15284EOF
15285
15286fi
15287
15288if test "$wxUSE_TIMEDATE" = "yes"; then
15289 cat >> confdefs.h <<\EOF
15290#define wxUSE_TIMEDATE 1
15291EOF
15292
15293fi
15294
10f2d63a 15295if test "$wxUSE_FILE" = "yes"; then
698dcdb6 15296 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15297#define wxUSE_FILE 1
15298EOF
15299
15300fi
15301
1e6feb95
VZ
15302if test "$wxUSE_FFILE" = "yes"; then
15303 cat >> confdefs.h <<\EOF
15304#define wxUSE_FFILE 1
15305EOF
15306
15307fi
15308
24528b0c 15309if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 15310 cat >> confdefs.h <<\EOF
24528b0c
VS
15311#define wxUSE_FILESYSTEM 1
15312EOF
15313
15314fi
15315
10f2d63a 15316if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 15317 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15318#define wxUSE_FS_INET 1
15319EOF
15320
15321fi
15322
15323if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 15324 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15325#define wxUSE_FS_ZIP 1
15326EOF
15327
15328fi
15329
15330if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 15331 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15332#define wxUSE_ZIPSTREAM 1
15333EOF
15334
15335fi
15336
eb4efbdc 15337if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 15338 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
15339#define wxUSE_ON_FATAL_EXCEPTION 1
15340EOF
15341
15342fi
15343
4f3c5f06 15344if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 15345 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
15346#define wxUSE_SNGLINST_CHECKER 1
15347EOF
15348
15349fi
15350
10f2d63a 15351if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 15352 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15353#define wxUSE_BUSYINFO 1
15354EOF
15355
15356fi
15357
15358if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 15359 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15360#define wxUSE_STD_IOSTREAM 1
15361EOF
15362
15363fi
15364
15365if test "$wxUSE_TEXTFILE" = "yes"; then
15366 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15367 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 15368 else
698dcdb6 15369 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15370#define wxUSE_TEXTFILE 1
15371EOF
15372
15373 fi
15374fi
15375
15376if test "$wxUSE_CONFIG" = "yes" ; then
15377 if test "$wxUSE_TEXTFILE" != "yes"; then
698dcdb6 15378 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
10f2d63a 15379 else
698dcdb6 15380 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15381#define wxUSE_CONFIG 1
15382EOF
15383
15384 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15385 fi
15386fi
15387
15388if test "$wxUSE_INTL" = "yes" ; then
15389 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15390 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 15391 else
698dcdb6 15392 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15393#define wxUSE_INTL 1
15394EOF
15395
15396 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 15397 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
15398 fi
15399fi
15400
15401if test "$wxUSE_LOG" = "yes"; then
698dcdb6 15402 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15403#define wxUSE_LOG 1
15404EOF
15405
d73be714
VZ
15406
15407 if test "$wxUSE_LOGGUI" = "yes"; then
15408 cat >> confdefs.h <<\EOF
15409#define wxUSE_LOGGUI 1
15410EOF
15411
15412 fi
15413
15414 if test "$wxUSE_LOGWINDOW" = "yes"; then
15415 cat >> confdefs.h <<\EOF
15416#define wxUSE_LOGWINDOW 1
15417EOF
15418
15419 fi
10f2d63a
VZ
15420fi
15421
15422if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 15423 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15424#define wxUSE_LONGLONG 1
15425EOF
15426
15427fi
15428
e8f65ba6 15429if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 15430 cat >> confdefs.h <<\EOF
e8f65ba6
RR
15431#define wxUSE_GEOMETRY 1
15432EOF
15433
15434fi
15435
10f2d63a 15436if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 15437 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15438#define wxUSE_DIALUP_MANAGER 1
15439EOF
15440
70f7a477 15441 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
15442fi
15443
15444if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 15445 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15446#define wxUSE_STREAMS 1
15447EOF
15448
15449fi
15450
1e487827 15451
1e6feb95 15452if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 15453 for ac_func in strptime
83307f33 15454do
698dcdb6 15455echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f41d601 15456echo "configure:15457: checking for $ac_func" >&5
698dcdb6
VZ
15457if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15458 echo $ac_n "(cached) $ac_c" 1>&6
15459else
15460 cat > conftest.$ac_ext <<EOF
9f41d601 15461#line 15462 "configure"
83307f33
VZ
15462#include "confdefs.h"
15463/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15464 which can conflict with char $ac_func(); below. */
83307f33
VZ
15465#include <assert.h>
15466/* Override any gcc2 internal prototype to avoid an error. */
15467/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15468 builtin and then its argument prototype would still apply. */
15469char $ac_func();
15470
15471int main() {
83307f33
VZ
15472
15473/* The GNU C library defines this for functions which it implements
15474 to always fail with ENOSYS. Some functions are actually named
15475 something starting with __ and the normal name is an alias. */
15476#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15477choke me
15478#else
698dcdb6 15479$ac_func();
83307f33
VZ
15480#endif
15481
698dcdb6 15482; return 0; }
83307f33 15483EOF
9f41d601 15484if { (eval echo configure:15485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15485 rm -rf conftest*
15486 eval "ac_cv_func_$ac_func=yes"
15487else
15488 echo "configure: failed program was:" >&5
15489 cat conftest.$ac_ext >&5
15490 rm -rf conftest*
15491 eval "ac_cv_func_$ac_func=no"
15492fi
15493rm -f conftest*
15494fi
83307f33 15495
698dcdb6
VZ
15496if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15497 echo "$ac_t""yes" 1>&6
15498 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15499 cat >> confdefs.h <<EOF
15500#define $ac_tr_func 1
15501EOF
15502
15503else
15504 echo "$ac_t""no" 1>&6
83307f33
VZ
15505fi
15506done
15507
1e487827 15508
698dcdb6 15509 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
9f41d601 15510echo "configure:15511: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
15511if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
15512 echo $ac_n "(cached) $ac_c" 1>&6
15513else
15514
15515 cat > conftest.$ac_ext <<EOF
9f41d601 15516#line 15517 "configure"
360d6699
VZ
15517#include "confdefs.h"
15518
b4085ce6 15519 #include <time.h>
698dcdb6
VZ
15520
15521int main() {
360d6699
VZ
15522
15523 int tz;
4f11a343 15524 tz = timezone;
698dcdb6
VZ
15525
15526; return 0; }
15527EOF
9f41d601 15528if { (eval echo configure:15529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15529 rm -rf conftest*
15530
4f11a343 15531 wx_cv_var_timezone=timezone
698dcdb6 15532
360d6699 15533else
698dcdb6
VZ
15534 echo "configure: failed program was:" >&5
15535 cat conftest.$ac_ext >&5
15536 rm -rf conftest*
15537
15538 cat > conftest.$ac_ext <<EOF
9f41d601 15539#line 15540 "configure"
360d6699
VZ
15540#include "confdefs.h"
15541
b4085ce6 15542 #include <time.h>
698dcdb6
VZ
15543
15544int main() {
360d6699
VZ
15545
15546 int tz;
15547 tz = _timezone;
698dcdb6
VZ
15548
15549; return 0; }
15550EOF
9f41d601 15551if { (eval echo configure:15552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15552 rm -rf conftest*
15553
360d6699 15554 wx_cv_var_timezone=_timezone
698dcdb6 15555
5357c8e8 15556else
698dcdb6
VZ
15557 echo "configure: failed program was:" >&5
15558 cat conftest.$ac_ext >&5
15559 rm -rf conftest*
15560
15561 cat > conftest.$ac_ext <<EOF
9f41d601 15562#line 15563 "configure"
5357c8e8
VZ
15563#include "confdefs.h"
15564
b4085ce6 15565 #include <time.h>
698dcdb6
VZ
15566
15567int main() {
5357c8e8
VZ
15568
15569 int tz;
4f11a343 15570 tz = __timezone;
698dcdb6
VZ
15571
15572; return 0; }
15573EOF
9f41d601 15574if { (eval echo configure:15575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15575 rm -rf conftest*
15576
4f11a343 15577 wx_cv_var_timezone=__timezone
698dcdb6 15578
360d6699 15579else
698dcdb6
VZ
15580 echo "configure: failed program was:" >&5
15581 cat conftest.$ac_ext >&5
15582 rm -rf conftest*
15583 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
15584
360d6699 15585fi
698dcdb6
VZ
15586rm -f conftest*
15587
15588
360d6699 15589fi
698dcdb6
VZ
15590rm -f conftest*
15591
15592
6232543b 15593fi
698dcdb6
VZ
15594rm -f conftest*
15595
15596
1e487827 15597fi
703e0a69 15598
698dcdb6
VZ
15599echo "$ac_t""$wx_cv_var_timezone" 1>&6
15600
15601 cat >> confdefs.h <<EOF
360d6699
VZ
15602#define WX_TIMEZONE $wx_cv_var_timezone
15603EOF
15604
698dcdb6
VZ
15605
15606 for ac_func in localtime
afc31813 15607do
698dcdb6 15608echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f41d601 15609echo "configure:15610: checking for $ac_func" >&5
698dcdb6
VZ
15610if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15611 echo $ac_n "(cached) $ac_c" 1>&6
15612else
15613 cat > conftest.$ac_ext <<EOF
9f41d601 15614#line 15615 "configure"
10f2d63a 15615#include "confdefs.h"
afc31813 15616/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15617 which can conflict with char $ac_func(); below. */
afc31813
VZ
15618#include <assert.h>
15619/* Override any gcc2 internal prototype to avoid an error. */
15620/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15621 builtin and then its argument prototype would still apply. */
15622char $ac_func();
15623
15624int main() {
afc31813
VZ
15625
15626/* The GNU C library defines this for functions which it implements
15627 to always fail with ENOSYS. Some functions are actually named
15628 something starting with __ and the normal name is an alias. */
15629#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15630choke me
15631#else
698dcdb6 15632$ac_func();
afc31813
VZ
15633#endif
15634
698dcdb6 15635; return 0; }
10f2d63a 15636EOF
9f41d601 15637if { (eval echo configure:15638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15638 rm -rf conftest*
15639 eval "ac_cv_func_$ac_func=yes"
15640else
15641 echo "configure: failed program was:" >&5
15642 cat conftest.$ac_ext >&5
15643 rm -rf conftest*
15644 eval "ac_cv_func_$ac_func=no"
15645fi
15646rm -f conftest*
15647fi
afc31813 15648
698dcdb6
VZ
15649if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15650 echo "$ac_t""yes" 1>&6
15651 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15652 cat >> confdefs.h <<EOF
15653#define $ac_tr_func 1
15654EOF
15655
15656else
15657 echo "$ac_t""no" 1>&6
afc31813
VZ
15658fi
15659done
15660
1e487827 15661
698dcdb6
VZ
15662 if test "$ac_cv_func_localtime" = "yes"; then
15663 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
9f41d601 15664echo "configure:15665: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
15665if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
15666 echo $ac_n "(cached) $ac_c" 1>&6
15667else
15668
15669 cat > conftest.$ac_ext <<EOF
9f41d601 15670#line 15671 "configure"
0470b1e6
VZ
15671#include "confdefs.h"
15672
b4085ce6 15673 #include <time.h>
698dcdb6
VZ
15674
15675int main() {
0470b1e6
VZ
15676
15677 struct tm tm;
15678 tm.tm_gmtoff++;
698dcdb6
VZ
15679
15680; return 0; }
15681EOF
9f41d601 15682if { (eval echo configure:15683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15683 rm -rf conftest*
15684
f03a98d8 15685 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 15686
0470b1e6 15687else
698dcdb6
VZ
15688 echo "configure: failed program was:" >&5
15689 cat conftest.$ac_ext >&5
15690 rm -rf conftest*
15691 wx_cv_struct_tm_has_gmtoff=no
15692
0470b1e6 15693fi
698dcdb6
VZ
15694rm -f conftest*
15695
1e487827 15696fi
698dcdb6
VZ
15697
15698echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
15699 fi
15700
15701 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 15702 cat >> confdefs.h <<\EOF
6232543b
VS
15703#define WX_GMTOFF_IN_TM 1
15704EOF
0470b1e6 15705
3fcdd07b
VZ
15706 fi
15707
698dcdb6 15708 for ac_func in gettimeofday ftime
3fcdd07b 15709do
698dcdb6 15710echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f41d601 15711echo "configure:15712: checking for $ac_func" >&5
698dcdb6
VZ
15712if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15713 echo $ac_n "(cached) $ac_c" 1>&6
15714else
15715 cat > conftest.$ac_ext <<EOF
9f41d601 15716#line 15717 "configure"
3fcdd07b
VZ
15717#include "confdefs.h"
15718/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15719 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
15720#include <assert.h>
15721/* Override any gcc2 internal prototype to avoid an error. */
15722/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15723 builtin and then its argument prototype would still apply. */
15724char $ac_func();
15725
15726int main() {
3fcdd07b
VZ
15727
15728/* The GNU C library defines this for functions which it implements
15729 to always fail with ENOSYS. Some functions are actually named
15730 something starting with __ and the normal name is an alias. */
15731#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15732choke me
15733#else
698dcdb6 15734$ac_func();
3fcdd07b
VZ
15735#endif
15736
698dcdb6
VZ
15737; return 0; }
15738EOF
9f41d601 15739if { (eval echo configure:15740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15740 rm -rf conftest*
15741 eval "ac_cv_func_$ac_func=yes"
15742else
15743 echo "configure: failed program was:" >&5
15744 cat conftest.$ac_ext >&5
15745 rm -rf conftest*
15746 eval "ac_cv_func_$ac_func=no"
15747fi
15748rm -f conftest*
15749fi
15750
15751if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15752 echo "$ac_t""yes" 1>&6
15753 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15754 cat >> confdefs.h <<EOF
15755#define $ac_tr_func 1
3fcdd07b
VZ
15756EOF
15757 break
698dcdb6
VZ
15758else
15759 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
15760fi
15761done
15762
afc31813 15763
698dcdb6
VZ
15764 if test "$ac_cv_func_gettimeofday" = "yes"; then
15765 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
9f41d601 15766echo "configure:15767: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
15767if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
15768 echo $ac_n "(cached) $ac_c" 1>&6
15769else
15770
15771
15772 ac_ext=C
15773# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 15774ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
15775ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15776ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15777cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 15778
698dcdb6
VZ
15779
15780 cat > conftest.$ac_ext <<EOF
9f41d601 15781#line 15782 "configure"
10f2d63a 15782#include "confdefs.h"
afc31813
VZ
15783
15784 #include <sys/time.h>
15785 #include <unistd.h>
698dcdb6
VZ
15786
15787int main() {
afc31813
VZ
15788
15789 struct timeval tv;
15790 struct timezone tz;
15791 gettimeofday(&tv, &tz);
698dcdb6
VZ
15792
15793; return 0; }
15794EOF
9f41d601 15795if { (eval echo configure:15796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15796 rm -rf conftest*
afc31813 15797 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 15798else
698dcdb6
VZ
15799 echo "configure: failed program was:" >&5
15800 cat conftest.$ac_ext >&5
15801 rm -rf conftest*
15802 cat > conftest.$ac_ext <<EOF
9f41d601 15803#line 15804 "configure"
10f2d63a 15804#include "confdefs.h"
afc31813
VZ
15805
15806 #include <sys/time.h>
15807 #include <unistd.h>
698dcdb6
VZ
15808
15809int main() {
afc31813
VZ
15810
15811 struct timeval tv;
15812 gettimeofday(&tv);
698dcdb6
VZ
15813
15814; return 0; }
15815EOF
9f41d601 15816if { (eval echo configure:15817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15817 rm -rf conftest*
afc31813 15818 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 15819else
698dcdb6
VZ
15820 echo "configure: failed program was:" >&5
15821 cat conftest.$ac_ext >&5
15822 rm -rf conftest*
15823 wx_cv_func_gettimeofday_has_2_args=unknown
15824
10f2d63a 15825fi
698dcdb6
VZ
15826rm -f conftest*
15827
10f2d63a 15828fi
698dcdb6 15829rm -f conftest*
afc31813 15830 ac_ext=c
698dcdb6 15831# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 15832ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
15833ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15834ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15835cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 15836
698dcdb6 15837
afc31813 15838fi
698dcdb6
VZ
15839
15840echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 15841
afc31813 15842 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 15843 cat >> confdefs.h <<\EOF
afc31813
VZ
15844#define WX_GETTIMEOFDAY_NO_TZ 1
15845EOF
15846
15847 fi
15848 fi
15849
698dcdb6 15850 cat >> confdefs.h <<\EOF
afc31813
VZ
15851#define wxUSE_TIMEDATE 1
15852EOF
15853
15854 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
15855fi
15856
698dcdb6 15857
b089607b
VZ
15858if test "$TOOLKIT" != "MSW"; then
15859
afc31813 15860if test "$wxUSE_SOCKETS" = "yes"; then
698dcdb6 15861 echo $ac_n "checking for socket""... $ac_c" 1>&6
9f41d601 15862echo "configure:15863: checking for socket" >&5
698dcdb6
VZ
15863if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
15864 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 15865else
698dcdb6 15866 cat > conftest.$ac_ext <<EOF
9f41d601 15867#line 15868 "configure"
c63c7106
VZ
15868#include "confdefs.h"
15869/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15870 which can conflict with char socket(); below. */
c63c7106
VZ
15871#include <assert.h>
15872/* Override any gcc2 internal prototype to avoid an error. */
15873/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15874 builtin and then its argument prototype would still apply. */
15875char socket();
15876
15877int main() {
c63c7106
VZ
15878
15879/* The GNU C library defines this for functions which it implements
15880 to always fail with ENOSYS. Some functions are actually named
15881 something starting with __ and the normal name is an alias. */
15882#if defined (__stub_socket) || defined (__stub___socket)
15883choke me
15884#else
698dcdb6 15885socket();
c63c7106
VZ
15886#endif
15887
698dcdb6
VZ
15888; return 0; }
15889EOF
9f41d601 15890if { (eval echo configure:15891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15891 rm -rf conftest*
15892 eval "ac_cv_func_socket=yes"
15893else
15894 echo "configure: failed program was:" >&5
15895 cat conftest.$ac_ext >&5
15896 rm -rf conftest*
15897 eval "ac_cv_func_socket=no"
15898fi
15899rm -f conftest*
15900fi
15901
15902if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
15903 echo "$ac_t""yes" 1>&6
c63c7106
VZ
15904 :
15905else
698dcdb6
VZ
15906 echo "$ac_t""no" 1>&6
15907echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
9f41d601 15908echo "configure:15909: checking for socket in -lsocket" >&5
698dcdb6
VZ
15909ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
15910if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15911 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 15912else
698dcdb6 15913 ac_save_LIBS="$LIBS"
c63c7106 15914LIBS="-lsocket $LIBS"
698dcdb6 15915cat > conftest.$ac_ext <<EOF
9f41d601 15916#line 15917 "configure"
c63c7106
VZ
15917#include "confdefs.h"
15918/* Override any gcc2 internal prototype to avoid an error. */
15919/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15920 builtin and then its argument prototype would still apply. */
15921char socket();
15922
15923int main() {
15924socket()
15925; return 0; }
15926EOF
9f41d601 15927if { (eval echo configure:15928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15928 rm -rf conftest*
15929 eval "ac_cv_lib_$ac_lib_var=yes"
15930else
15931 echo "configure: failed program was:" >&5
15932 cat conftest.$ac_ext >&5
15933 rm -rf conftest*
15934 eval "ac_cv_lib_$ac_lib_var=no"
15935fi
15936rm -f conftest*
15937LIBS="$ac_save_LIBS"
15938
15939fi
15940if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15941 echo "$ac_t""yes" 1>&6
c63c7106 15942 INET_LINK="$INET_LINK -lsocket"
c63c7106 15943else
698dcdb6 15944 echo "$ac_t""no" 1>&6
afc31813 15945
698dcdb6 15946 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
afc31813 15947 wxUSE_SOCKETS=no
698dcdb6
VZ
15948
15949
10f2d63a
VZ
15950fi
15951
698dcdb6 15952
6232543b 15953fi
b089607b 15954
1e487827 15955fi
afc31813 15956
51a9faba 15957
698dcdb6
VZ
15958if test "$wxUSE_SOCKETS" = "yes" ; then
15959 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
9f41d601 15960echo "configure:15961: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
15961if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
15962 echo $ac_n "(cached) $ac_c" 1>&6
15963else
15964
15965
15966 ac_ext=C
15967# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 15968ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
15969ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15970ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15971cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 15972
698dcdb6
VZ
15973
15974 cat > conftest.$ac_ext <<EOF
9f41d601 15975#line 15976 "configure"
afc31813 15976#include "confdefs.h"
51a9faba 15977
3ace2e6d 15978 #include <sys/types.h>
51a9faba 15979 #include <sys/socket.h>
698dcdb6
VZ
15980
15981int main() {
51a9faba
VZ
15982
15983 socklen_t len;
15984 getsockname(0, 0, &len);
698dcdb6
VZ
15985
15986; return 0; }
15987EOF
9f41d601 15988if { (eval echo configure:15989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15989 rm -rf conftest*
51a9faba 15990 wx_cv_type_getsockname3=socklen_t
afc31813 15991else
698dcdb6
VZ
15992 echo "configure: failed program was:" >&5
15993 cat conftest.$ac_ext >&5
15994 rm -rf conftest*
15995 cat > conftest.$ac_ext <<EOF
9f41d601 15996#line 15997 "configure"
afc31813 15997#include "confdefs.h"
51a9faba 15998
3ace2e6d 15999 #include <sys/types.h>
51a9faba 16000 #include <sys/socket.h>
698dcdb6
VZ
16001
16002int main() {
51a9faba
VZ
16003
16004 size_t len;
16005 getsockname(0, 0, &len);
698dcdb6
VZ
16006
16007; return 0; }
16008EOF
9f41d601 16009if { (eval echo configure:16010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16010 rm -rf conftest*
51a9faba 16011 wx_cv_type_getsockname3=size_t
afc31813 16012else
698dcdb6
VZ
16013 echo "configure: failed program was:" >&5
16014 cat conftest.$ac_ext >&5
16015 rm -rf conftest*
16016 cat > conftest.$ac_ext <<EOF
9f41d601 16017#line 16018 "configure"
afc31813 16018#include "confdefs.h"
51a9faba 16019
3ace2e6d 16020 #include <sys/types.h>
51a9faba 16021 #include <sys/socket.h>
698dcdb6
VZ
16022
16023int main() {
51a9faba
VZ
16024
16025 int len;
16026 getsockname(0, 0, &len);
698dcdb6
VZ
16027
16028; return 0; }
16029EOF
9f41d601 16030if { (eval echo configure:16031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16031 rm -rf conftest*
51a9faba 16032 wx_cv_type_getsockname3=int
afc31813 16033else
698dcdb6
VZ
16034 echo "configure: failed program was:" >&5
16035 cat conftest.$ac_ext >&5
16036 rm -rf conftest*
16037 wx_cv_type_getsockname3=unknown
16038
afc31813 16039fi
698dcdb6
VZ
16040rm -f conftest*
16041
afc31813 16042fi
698dcdb6
VZ
16043rm -f conftest*
16044
afc31813 16045fi
698dcdb6 16046rm -f conftest*
51a9faba
VZ
16047
16048 ac_ext=c
698dcdb6 16049# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 16050ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16051ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16052ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16053cross_compiling=$ac_cv_prog_cc_cross
afc31813 16054
698dcdb6 16055
51a9faba 16056fi
698dcdb6
VZ
16057
16058echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba
VZ
16059
16060 if test "$wx_cv_type_getsockname3" = "unknown"; then
16061 wxUSE_SOCKETS=no
698dcdb6 16062 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
51a9faba 16063 else
698dcdb6 16064 cat >> confdefs.h <<EOF
51a9faba
VZ
16065#define SOCKLEN_T $wx_cv_type_getsockname3
16066EOF
16067
16068 fi
16069fi
afc31813 16070
c521c494
RL
16071fi
16072
51a9faba 16073if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 16074 cat >> confdefs.h <<\EOF
afc31813
VZ
16075#define wxUSE_SOCKETS 1
16076EOF
16077
70f7a477 16078 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
16079 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
16080fi
16081
698dcdb6 16082
dc3d889d
VZ
16083if test "$wxUSE_GUI" = "yes"; then
16084
b089607b
VZ
16085if test "$TOOLKIT" != "MSW"; then
16086
ceded8b9 16087if test "$wxUSE_JOYSTICK" = "yes"; then
698dcdb6 16088 for ac_hdr in linux/joystick.h
10f2d63a 16089do
698dcdb6
VZ
16090ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16091echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9f41d601 16092echo "configure:16093: checking for $ac_hdr" >&5
698dcdb6
VZ
16093if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16094 echo $ac_n "(cached) $ac_c" 1>&6
16095else
16096 cat > conftest.$ac_ext <<EOF
9f41d601 16097#line 16098 "configure"
10f2d63a 16098#include "confdefs.h"
698dcdb6
VZ
16099#include <$ac_hdr>
16100EOF
16101ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f41d601 16102{ (eval echo configure:16103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
16103ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16104if test -z "$ac_err"; then
16105 rm -rf conftest*
16106 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 16107else
698dcdb6
VZ
16108 echo "$ac_err" >&5
16109 echo "configure: failed program was:" >&5
10f2d63a 16110 cat conftest.$ac_ext >&5
698dcdb6
VZ
16111 rm -rf conftest*
16112 eval "ac_cv_header_$ac_safe=no"
10f2d63a 16113fi
698dcdb6 16114rm -f conftest*
10f2d63a 16115fi
698dcdb6
VZ
16116if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16117 echo "$ac_t""yes" 1>&6
16118 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16119 cat >> confdefs.h <<EOF
16120#define $ac_tr_hdr 1
10f2d63a 16121EOF
698dcdb6
VZ
16122
16123else
16124 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16125fi
16126done
16127
b089607b 16128 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
ceded8b9 16129 wxUSE_JOYSTICK=no
698dcdb6 16130 echo "configure: warning: Joystick not supported by this system" 1>&2
b089607b
VZ
16131 fi
16132fi
16133
16134fi
16135
ceded8b9 16136if test "$wxUSE_JOYSTICK" = "yes"; then
698dcdb6 16137 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16138#define wxUSE_JOYSTICK 1
16139EOF
16140
16141 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
16142fi
16143
dc3d889d
VZ
16144fi
16145
698dcdb6 16146
b089607b
VZ
16147if test "$TOOLKIT" != "MSW"; then
16148
10f2d63a
VZ
16149HAVE_DL_FUNCS=0
16150HAVE_SHL_FUNCS=0
16151if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
b4085ce6
GD
16152 if test "$USE_MAC" = 1; then
16153 HAVE_DL_FUNCS=1
16154 else
698dcdb6 16155 for ac_func in dlopen
10f2d63a 16156do
698dcdb6 16157echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f41d601 16158echo "configure:16159: checking for $ac_func" >&5
698dcdb6
VZ
16159if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16160 echo $ac_n "(cached) $ac_c" 1>&6
16161else
16162 cat > conftest.$ac_ext <<EOF
9f41d601 16163#line 16164 "configure"
10f2d63a
VZ
16164#include "confdefs.h"
16165/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16166 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16167#include <assert.h>
16168/* Override any gcc2 internal prototype to avoid an error. */
16169/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16170 builtin and then its argument prototype would still apply. */
16171char $ac_func();
16172
16173int main() {
10f2d63a
VZ
16174
16175/* The GNU C library defines this for functions which it implements
16176 to always fail with ENOSYS. Some functions are actually named
16177 something starting with __ and the normal name is an alias. */
16178#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16179choke me
16180#else
698dcdb6 16181$ac_func();
10f2d63a
VZ
16182#endif
16183
698dcdb6
VZ
16184; return 0; }
16185EOF
9f41d601 16186if { (eval echo configure:16187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16187 rm -rf conftest*
16188 eval "ac_cv_func_$ac_func=yes"
16189else
16190 echo "configure: failed program was:" >&5
16191 cat conftest.$ac_ext >&5
16192 rm -rf conftest*
16193 eval "ac_cv_func_$ac_func=no"
16194fi
16195rm -f conftest*
16196fi
16197
16198if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16199 echo "$ac_t""yes" 1>&6
16200 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16201 cat >> confdefs.h <<EOF
16202#define $ac_tr_func 1
16203EOF
16204
16205 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16206#define HAVE_DLOPEN 1
16207EOF
16208
16209 HAVE_DL_FUNCS=1
698dcdb6 16210
10f2d63a 16211else
698dcdb6
VZ
16212 echo "$ac_t""no" 1>&6
16213echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
9f41d601 16214echo "configure:16215: checking for dlopen in -ldl" >&5
698dcdb6
VZ
16215ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16216if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16217 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16218else
698dcdb6 16219 ac_save_LIBS="$LIBS"
10f2d63a 16220LIBS="-ldl $LIBS"
698dcdb6 16221cat > conftest.$ac_ext <<EOF
9f41d601 16222#line 16223 "configure"
10f2d63a
VZ
16223#include "confdefs.h"
16224/* Override any gcc2 internal prototype to avoid an error. */
16225/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16226 builtin and then its argument prototype would still apply. */
16227char dlopen();
16228
16229int main() {
16230dlopen()
16231; return 0; }
16232EOF
9f41d601 16233if { (eval echo configure:16234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16234 rm -rf conftest*
16235 eval "ac_cv_lib_$ac_lib_var=yes"
16236else
16237 echo "configure: failed program was:" >&5
16238 cat conftest.$ac_ext >&5
16239 rm -rf conftest*
16240 eval "ac_cv_lib_$ac_lib_var=no"
16241fi
16242rm -f conftest*
16243LIBS="$ac_save_LIBS"
16244
16245fi
16246if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16247 echo "$ac_t""yes" 1>&6
16248
16249 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16250#define HAVE_DLOPEN 1
16251EOF
16252
16253 HAVE_DL_FUNCS=1
16254 LIBS="$LIBS -ldl"
698dcdb6 16255
10f2d63a 16256else
698dcdb6 16257 echo "$ac_t""no" 1>&6
10f2d63a 16258
698dcdb6 16259 for ac_func in shl_load
10f2d63a 16260do
698dcdb6 16261echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f41d601 16262echo "configure:16263: checking for $ac_func" >&5
698dcdb6
VZ
16263if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16264 echo $ac_n "(cached) $ac_c" 1>&6
16265else
16266 cat > conftest.$ac_ext <<EOF
9f41d601 16267#line 16268 "configure"
10f2d63a
VZ
16268#include "confdefs.h"
16269/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16270 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16271#include <assert.h>
16272/* Override any gcc2 internal prototype to avoid an error. */
16273/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16274 builtin and then its argument prototype would still apply. */
16275char $ac_func();
16276
16277int main() {
10f2d63a
VZ
16278
16279/* The GNU C library defines this for functions which it implements
16280 to always fail with ENOSYS. Some functions are actually named
16281 something starting with __ and the normal name is an alias. */
16282#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16283choke me
16284#else
698dcdb6 16285$ac_func();
10f2d63a
VZ
16286#endif
16287
698dcdb6
VZ
16288; return 0; }
16289EOF
9f41d601 16290if { (eval echo configure:16291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16291 rm -rf conftest*
16292 eval "ac_cv_func_$ac_func=yes"
16293else
16294 echo "configure: failed program was:" >&5
16295 cat conftest.$ac_ext >&5
16296 rm -rf conftest*
16297 eval "ac_cv_func_$ac_func=no"
16298fi
16299rm -f conftest*
16300fi
16301
16302if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16303 echo "$ac_t""yes" 1>&6
16304 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16305 cat >> confdefs.h <<EOF
16306#define $ac_tr_func 1
16307EOF
16308
16309 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16310#define HAVE_SHL_LOAD 1
16311EOF
16312
16313 HAVE_SHL_FUNCS=1
698dcdb6 16314
10f2d63a 16315else
698dcdb6
VZ
16316 echo "$ac_t""no" 1>&6
16317echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
9f41d601 16318echo "configure:16319: checking for dld in -lshl_load" >&5
698dcdb6
VZ
16319ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16320if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16321 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16322else
698dcdb6 16323 ac_save_LIBS="$LIBS"
f6bcfd97 16324LIBS="-lshl_load $LIBS"
698dcdb6 16325cat > conftest.$ac_ext <<EOF
9f41d601 16326#line 16327 "configure"
f6bcfd97
BP
16327#include "confdefs.h"
16328/* Override any gcc2 internal prototype to avoid an error. */
16329/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16330 builtin and then its argument prototype would still apply. */
16331char dld();
16332
16333int main() {
16334dld()
16335; return 0; }
16336EOF
9f41d601 16337if { (eval echo configure:16338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16338 rm -rf conftest*
16339 eval "ac_cv_lib_$ac_lib_var=yes"
16340else
16341 echo "configure: failed program was:" >&5
16342 cat conftest.$ac_ext >&5
16343 rm -rf conftest*
16344 eval "ac_cv_lib_$ac_lib_var=no"
16345fi
16346rm -f conftest*
16347LIBS="$ac_save_LIBS"
f6bcfd97 16348
698dcdb6
VZ
16349fi
16350if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16351 echo "$ac_t""yes" 1>&6
16352
f6bcfd97
BP
16353 HAVE_SHL_FUNCS=1
16354 LIBS="$LIBS -ldld"
698dcdb6
VZ
16355
16356else
16357 echo "$ac_t""no" 1>&6
f6bcfd97
BP
16358fi
16359
698dcdb6 16360
10f2d63a
VZ
16361fi
16362done
16363
698dcdb6 16364
10f2d63a
VZ
16365fi
16366
698dcdb6 16367
10f2d63a
VZ
16368fi
16369done
16370
1e487827 16371
698dcdb6
VZ
16372 if test "$HAVE_DL_FUNCS" = 1; then
16373 for ac_func in dlerror
f6bcfd97 16374do
698dcdb6 16375echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f41d601 16376echo "configure:16377: checking for $ac_func" >&5
698dcdb6
VZ
16377if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16378 echo $ac_n "(cached) $ac_c" 1>&6
16379else
16380 cat > conftest.$ac_ext <<EOF
9f41d601 16381#line 16382 "configure"
f6bcfd97
BP
16382#include "confdefs.h"
16383/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16384 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
16385#include <assert.h>
16386/* Override any gcc2 internal prototype to avoid an error. */
16387/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16388 builtin and then its argument prototype would still apply. */
16389char $ac_func();
16390
16391int main() {
f6bcfd97
BP
16392
16393/* The GNU C library defines this for functions which it implements
16394 to always fail with ENOSYS. Some functions are actually named
16395 something starting with __ and the normal name is an alias. */
16396#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16397choke me
16398#else
698dcdb6 16399$ac_func();
f6bcfd97
BP
16400#endif
16401
698dcdb6
VZ
16402; return 0; }
16403EOF
9f41d601 16404if { (eval echo configure:16405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16405 rm -rf conftest*
16406 eval "ac_cv_func_$ac_func=yes"
16407else
16408 echo "configure: failed program was:" >&5
16409 cat conftest.$ac_ext >&5
16410 rm -rf conftest*
16411 eval "ac_cv_func_$ac_func=no"
16412fi
16413rm -f conftest*
16414fi
16415
16416if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16417 echo "$ac_t""yes" 1>&6
16418 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16419 cat >> confdefs.h <<EOF
16420#define $ac_tr_func 1
16421EOF
16422 cat >> confdefs.h <<\EOF
f6bcfd97
BP
16423#define HAVE_DLERROR 1
16424EOF
16425
16426else
698dcdb6
VZ
16427 echo "$ac_t""no" 1>&6
16428echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
9f41d601 16429echo "configure:16430: checking for dlerror in -ldl" >&5
698dcdb6
VZ
16430ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
16431if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16432 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16433else
698dcdb6 16434 ac_save_LIBS="$LIBS"
f6bcfd97 16435LIBS="-ldl $LIBS"
698dcdb6 16436cat > conftest.$ac_ext <<EOF
9f41d601 16437#line 16438 "configure"
f6bcfd97
BP
16438#include "confdefs.h"
16439/* Override any gcc2 internal prototype to avoid an error. */
16440/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16441 builtin and then its argument prototype would still apply. */
16442char dlerror();
16443
16444int main() {
16445dlerror()
16446; return 0; }
16447EOF
9f41d601 16448if { (eval echo configure:16449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16449 rm -rf conftest*
16450 eval "ac_cv_lib_$ac_lib_var=yes"
16451else
16452 echo "configure: failed program was:" >&5
16453 cat conftest.$ac_ext >&5
16454 rm -rf conftest*
16455 eval "ac_cv_lib_$ac_lib_var=no"
16456fi
16457rm -f conftest*
16458LIBS="$ac_save_LIBS"
16459
16460fi
16461if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16462 echo "$ac_t""yes" 1>&6
16463 cat >> confdefs.h <<\EOF
f6bcfd97
BP
16464#define HAVE_DLERROR 1
16465EOF
16466
698dcdb6
VZ
16467else
16468 echo "$ac_t""no" 1>&6
f6bcfd97
BP
16469fi
16470
16471fi
16472done
16473
16474 fi
b4085ce6 16475 fi
f6bcfd97 16476
10f2d63a
VZ
16477 if test "$HAVE_DL_FUNCS" = 0; then
16478 if test "$HAVE_SHL_FUNCS" = 0; then
16479 if test "$USE_UNIX" = 1; then
698dcdb6 16480 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
16481 wxUSE_DYNLIB_CLASS=no
16482 else
698dcdb6 16483 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
16484 fi
16485 fi
16486 fi
16487fi
16488
b089607b
VZ
16489fi
16490
10f2d63a 16491if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 16492 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16493#define wxUSE_DYNLIB_CLASS 1
16494EOF
16495
b12915c1
VZ
16496else
16497 wxUSE_ODBC=no
16498 wxUSE_SERIAL=no
10f2d63a
VZ
16499fi
16500
698dcdb6 16501
1e6feb95
VZ
16502if test "$wxUSE_FONTMAP" = "yes" ; then
16503 cat >> confdefs.h <<\EOF
16504#define wxUSE_FONTMAP 1
16505EOF
16506
16507fi
16508
10f2d63a 16509if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 16510 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16511#define wxUSE_UNICODE 1
16512EOF
16513
16514fi
16515
16516if test "$wxUSE_WCSRTOMBS" = "yes" ; then
698dcdb6 16517 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16518#define wxUSE_WCSRTOMBS 1
16519EOF
16520
16521fi
16522
16523if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 16524 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16525#define wxUSE_EXPERIMENTAL_PRINTF 1
16526EOF
16527
16528fi
16529
698dcdb6 16530
b12915c1 16531if test "$wxUSE_SERIAL" = "yes" ; then
698dcdb6 16532 cat >> confdefs.h <<\EOF
b12915c1
VZ
16533#define wxUSE_SERIAL 1
16534EOF
16535
16536fi
16537
698dcdb6 16538
10f2d63a
VZ
16539IODBC_C_SRC=""
16540if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 16541 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16542#define wxUSE_ODBC 1
16543EOF
16544
16545 WXODBCFLAG="-D_IODBC_"
16546 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
16547fi
16548
698dcdb6 16549
10f2d63a 16550if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 16551 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16552#define wxUSE_POSTSCRIPT 1
16553EOF
16554
16555fi
16556
698dcdb6 16557cat >> confdefs.h <<\EOF
10f2d63a
VZ
16558#define wxUSE_AFM_FOR_POSTSCRIPT 1
16559EOF
16560
698dcdb6
VZ
16561
16562cat >> confdefs.h <<\EOF
10f2d63a
VZ
16563#define wxUSE_NORMALIZED_PS_FONTS 1
16564EOF
16565
698dcdb6
VZ
16566
16567
10f2d63a 16568if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 16569 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16570#define wxUSE_CONSTRAINTS 1
16571EOF
16572
16573 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
16574fi
16575
16576if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
698dcdb6 16577 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16578#define wxUSE_MDI_ARCHITECTURE 1
16579EOF
16580
16581 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
16582fi
16583
16584if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 16585 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16586#define wxUSE_DOC_VIEW_ARCHITECTURE 1
16587EOF
16588
16589 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
16590 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
16591 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
16592 fi
16593fi
16594
16595if test "$wxUSE_HELP" = "yes"; then
698dcdb6 16596 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16597#define wxUSE_HELP 1
16598EOF
16599
16600 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37
VZ
16601
16602 if test "$wxUSE_WXHTML_HELP" = "yes"; then
16603 cat >> confdefs.h <<\EOF
16604#define wxUSE_WXHTML_HELP 1
16605EOF
16606
16607 fi
10f2d63a
VZ
16608fi
16609
16610if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
16611 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 16612 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 16613 else
698dcdb6 16614 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16615#define wxUSE_PRINTING_ARCHITECTURE 1
16616EOF
16617
16618 fi
16619 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
16620fi
16621
16622if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 16623 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16624#define wxUSE_PROLOGIO 1
16625EOF
16626
16627fi
16628
16629if test "$wxUSE_RESOURCES" = "yes" ; then
3379ed37 16630 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16631#define wxUSE_RESOURCES 1
16632EOF
16633
3379ed37 16634 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
10f2d63a
VZ
16635fi
16636
16637if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 16638 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16639#define wxUSE_X_RESOURCES 1
16640EOF
16641
16642fi
16643
698dcdb6 16644
10f2d63a 16645if test "$wxUSE_IPC" = "yes"; then
eb4efbdc 16646 if test "$wxUSE_SOCKETS" != "yes"; then
698dcdb6 16647 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
eb4efbdc
VZ
16648 fi
16649
698dcdb6 16650 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16651#define wxUSE_IPC 1
16652EOF
16653
16654fi
16655
16656if test "$wxUSE_CLIPBOARD" = "yes"; then
698dcdb6 16657 cat >> confdefs.h <<\EOF
10f2d63a 16658#define wxUSE_CLIPBOARD 1
1e6feb95
VZ
16659EOF
16660
16661 cat >> confdefs.h <<\EOF
16662#define wxUSE_DATAOBJ 1
10f2d63a
VZ
16663EOF
16664
16665fi
16666
16667if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
16668 if test "$wxUSE_GTK" = 1; then
16669 if test "$WXGTK12" != 1; then
698dcdb6 16670 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
10f2d63a
VZ
16671 wxUSE_DRAG_AND_DROP=no
16672 fi
16673 fi
16674
16675 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 16676 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
10f2d63a
VZ
16677 wxUSE_DRAG_AND_DROP=no
16678 fi
16679
2c6025bc 16680 if test "$wxUSE_MAC" = 1; then
698dcdb6 16681 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
2c6025bc
GD
16682 wxUSE_DRAG_AND_DROP=no
16683 fi
16684
10f2d63a 16685 if test "$USE_WIN32" = 1; then
698dcdb6
VZ
16686
16687 for ac_hdr in ole2.h
10f2d63a 16688do
698dcdb6
VZ
16689ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16690echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9f41d601 16691echo "configure:16692: checking for $ac_hdr" >&5
698dcdb6
VZ
16692if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16693 echo $ac_n "(cached) $ac_c" 1>&6
16694else
16695 cat > conftest.$ac_ext <<EOF
9f41d601 16696#line 16697 "configure"
10f2d63a 16697#include "confdefs.h"
698dcdb6
VZ
16698#include <$ac_hdr>
16699EOF
16700ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f41d601 16701{ (eval echo configure:16702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
16702ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16703if test -z "$ac_err"; then
16704 rm -rf conftest*
16705 eval "ac_cv_header_$ac_safe=yes"
1e487827 16706else
698dcdb6
VZ
16707 echo "$ac_err" >&5
16708 echo "configure: failed program was:" >&5
10f2d63a 16709 cat conftest.$ac_ext >&5
698dcdb6
VZ
16710 rm -rf conftest*
16711 eval "ac_cv_header_$ac_safe=no"
10f2d63a 16712fi
698dcdb6 16713rm -f conftest*
10f2d63a 16714fi
698dcdb6
VZ
16715if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16716 echo "$ac_t""yes" 1>&6
16717 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16718 cat >> confdefs.h <<EOF
16719#define $ac_tr_hdr 1
10f2d63a 16720EOF
698dcdb6
VZ
16721
16722else
16723 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16724fi
16725done
16726
698dcdb6 16727
57fe5ed0 16728 if test "$ac_cv_header_ole2_h" = "yes" ; then
c521c494 16729 if test "$GCC" = yes ; then
b64f0a5f
RL
16730 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
16731 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
c521c494 16732 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
b64f0a5f 16733 LIBS="$LIBS -lole32 -luuid"
4f11a343
VS
16734 cat >> confdefs.h <<\EOF
16735#define wxUSE_OLE 1
16736EOF
16737
b64f0a5f
RL
16738
16739 if test "$wxUSE_METAFILE" = "yes"; then
698dcdb6 16740 cat >> confdefs.h <<\EOF
b64f0a5f
RL
16741#define wxUSE_METAFILE 1
16742EOF
16743
698dcdb6 16744 cat >> confdefs.h <<\EOF
b64f0a5f
RL
16745#define wxUSE_ENH_METAFILE 1
16746EOF
16747
16748 fi
c521c494
RL
16749 fi
16750 else
698dcdb6 16751 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
10f2d63a
VZ
16752 wxUSE_DRAG_AND_DROP=no
16753 fi
16754 fi
16755
16756 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 16757 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16758#define wxUSE_DRAG_AND_DROP 1
16759EOF
16760
16761 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
16762 fi
16763
16764fi
16765
16766if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 16767 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16768#define wxUSE_SPLINES 1
16769EOF
16770
16771fi
16772
698dcdb6 16773
1e6feb95
VZ
16774USES_CONTROLS=0
16775if test "$wxUSE_CONTROLS" = "yes"; then
16776 USES_CONTROLS=1
16777fi
16778
10f2d63a 16779if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 16780 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16781#define wxUSE_ACCEL 1
16782EOF
16783
1e6feb95
VZ
16784 USES_CONTROLS=1
16785fi
16786
16787if test "$wxUSE_BUTTON" = "yes"; then
16788 cat >> confdefs.h <<\EOF
16789#define wxUSE_BUTTON 1
16790EOF
16791
16792 USES_CONTROLS=1
16793fi
16794
16795if test "$wxUSE_BMPBUTTON" = "yes"; then
16796 cat >> confdefs.h <<\EOF
16797#define wxUSE_BMPBUTTON 1
16798EOF
16799
16800 USES_CONTROLS=1
16801fi
16802
16803if test "$wxUSE_CALCTRL" = "yes"; then
16804 cat >> confdefs.h <<\EOF
16805#define wxUSE_CALENDARCTRL 1
16806EOF
16807
16808 USES_CONTROLS=1
16809 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
16810fi
16811
16812if test "$wxUSE_CARET" = "yes"; then
698dcdb6 16813 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16814#define wxUSE_CARET 1
16815EOF
16816
1e6feb95 16817 USES_CONTROLS=1
10f2d63a
VZ
16818 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
16819fi
16820
16821if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 16822 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16823#define wxUSE_COMBOBOX 1
16824EOF
16825
1e6feb95 16826 USES_CONTROLS=1
10f2d63a
VZ
16827fi
16828
16829if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 16830 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16831#define wxUSE_CHOICE 1
16832EOF
16833
1e6feb95 16834 USES_CONTROLS=1
10f2d63a
VZ
16835fi
16836
16837if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 16838 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16839#define wxUSE_CHECKBOX 1
16840EOF
16841
1e6feb95 16842 USES_CONTROLS=1
10f2d63a
VZ
16843fi
16844
16845if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 16846 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16847#define wxUSE_CHECKLISTBOX 1
16848EOF
16849
1e6feb95 16850 USES_CONTROLS=1
10f2d63a
VZ
16851 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
16852fi
16853
16854if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 16855 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16856#define wxUSE_GAUGE 1
16857EOF
16858
1e6feb95 16859 USES_CONTROLS=1
10f2d63a
VZ
16860fi
16861
d6a55c4b
VZ
16862if test "$wxUSE_NEW_GRID" = "yes"; then
16863 wxUSE_GRID="yes"
698dcdb6 16864 cat >> confdefs.h <<\EOF
d6a55c4b 16865#define wxUSE_NEW_GRID 1
10f2d63a
VZ
16866EOF
16867
1e6feb95 16868 USES_CONTROLS=1
d6a55c4b 16869 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
16870fi
16871
d6a55c4b 16872if test "$wxUSE_GRID" = "yes"; then
698dcdb6 16873 cat >> confdefs.h <<\EOF
d6a55c4b 16874#define wxUSE_GRID 1
10f2d63a
VZ
16875EOF
16876
1e6feb95 16877 USES_CONTROLS=1
d6a55c4b 16878 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
16879fi
16880
16881if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 16882 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16883#define wxUSE_IMAGLIST 1
16884EOF
16885
16886fi
16887
16888if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 16889 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16890#define wxUSE_LISTBOX 1
16891EOF
16892
1e6feb95 16893 USES_CONTROLS=1
10f2d63a
VZ
16894fi
16895
16896if test "$wxUSE_LISTCTRL" = "yes"; then
16897 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 16898 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16899#define wxUSE_LISTCTRL 1
16900EOF
16901
1e6feb95 16902 USES_CONTROLS=1
10f2d63a
VZ
16903 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
16904 else
698dcdb6 16905 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
16906 fi
16907fi
16908
16909if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 16910 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16911#define wxUSE_NOTEBOOK 1
16912EOF
16913
1e6feb95 16914 USES_CONTROLS=1
10f2d63a
VZ
16915 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
16916fi
16917
16918if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 16919 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16920#define wxUSE_RADIOBOX 1
16921EOF
16922
1e6feb95 16923 USES_CONTROLS=1
10f2d63a
VZ
16924fi
16925
16926if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 16927 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16928#define wxUSE_RADIOBTN 1
16929EOF
16930
1e6feb95 16931 USES_CONTROLS=1
10f2d63a
VZ
16932fi
16933
16934if test "$wxUSE_SASH" = "yes"; then
698dcdb6 16935 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16936#define wxUSE_SASH 1
16937EOF
16938
16939 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
16940fi
16941
16942if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 16943 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16944#define wxUSE_SCROLLBAR 1
16945EOF
16946
1e6feb95 16947 USES_CONTROLS=1
741a9306 16948 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
16949fi
16950
16951if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 16952 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16953#define wxUSE_SLIDER 1
16954EOF
16955
1e6feb95 16956 USES_CONTROLS=1
10f2d63a
VZ
16957fi
16958
16959if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 16960 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16961#define wxUSE_SPINBTN 1
16962EOF
16963
1e6feb95 16964 USES_CONTROLS=1
10f2d63a
VZ
16965fi
16966
56cfaa52 16967if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 16968 cat >> confdefs.h <<\EOF
56cfaa52
RR
16969#define wxUSE_SPINCTRL 1
16970EOF
16971
1e6feb95 16972 USES_CONTROLS=1
56cfaa52
RR
16973fi
16974
10f2d63a 16975if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 16976 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16977#define wxUSE_SPLITTER 1
16978EOF
16979
16980 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
16981fi
16982
16983if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 16984 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16985#define wxUSE_STATBMP 1
16986EOF
16987
1e6feb95 16988 USES_CONTROLS=1
10f2d63a
VZ
16989fi
16990
16991if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 16992 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16993#define wxUSE_STATBOX 1
16994EOF
16995
1e6feb95
VZ
16996 USES_CONTROLS=1
16997fi
16998
16999if test "$wxUSE_STATTEXT" = "yes"; then
17000 cat >> confdefs.h <<\EOF
17001#define wxUSE_STATTEXT 1
17002EOF
17003
17004 USES_CONTROLS=1
10f2d63a
VZ
17005fi
17006
17007if test "$wxUSE_STATLINE" = "yes"; then
17008 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 17009 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 17010 else
698dcdb6 17011 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17012#define wxUSE_STATLINE 1
17013EOF
17014
1e6feb95 17015 USES_CONTROLS=1
10f2d63a
VZ
17016 fi
17017fi
17018
17019if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 17020 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17021#define wxUSE_STATUSBAR 1
17022EOF
17023
1e6feb95 17024 USES_CONTROLS=1
698dcdb6 17025
2286341c 17026 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
17027fi
17028
17029if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 17030 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17031#define wxUSE_TAB_DIALOG 1
17032EOF
17033
17034 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17035fi
17036
1e6feb95
VZ
17037if test "$wxUSE_TEXTCTRL" = "yes"; then
17038 cat >> confdefs.h <<\EOF
17039#define wxUSE_TEXTCTRL 1
17040EOF
17041
17042 USES_CONTROLS=1
17043 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17044fi
17045
1db8dc4a 17046if test "$wxUSE_TOGGLEBTN" = "yes"; then
a45d7ab7
GD
17047 if test "$wxUSE_MAC" = 1; then
17048 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
17049 wxUSE_TOGGLEBTN=no
17050 fi
17051
17052 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17053 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
17054#define wxUSE_TOGGLEBTN 1
17055EOF
17056
1e6feb95 17057 USES_CONTROLS=1
a45d7ab7 17058 fi
1db8dc4a
VZ
17059fi
17060
360d6699 17061if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 17062 cat >> confdefs.h <<\EOF
360d6699
VZ
17063#define wxUSE_TOOLBAR_SIMPLE 1
17064EOF
17065
17066 wxUSE_TOOLBAR="yes"
1e6feb95 17067 USES_CONTROLS=1
360d6699
VZ
17068fi
17069
10f2d63a 17070if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 17071 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17072#define wxUSE_TOOLBAR 1
17073EOF
17074
1e6feb95 17075 USES_CONTROLS=1
698dcdb6 17076
360d6699
VZ
17077 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17078 wxUSE_TOOLBAR_NATIVE="yes"
17079 fi
17080
1e6feb95
VZ
17081 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17082 cat >> confdefs.h <<\EOF
360d6699
VZ
17083#define wxUSE_TOOLBAR_NATIVE 1
17084EOF
17085
1e6feb95
VZ
17086 USES_CONTROLS=1
17087 fi
17088
17089 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
17090fi
17091
10f2d63a
VZ
17092if test "$wxUSE_TOOLTIPS" = "yes"; then
17093 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 17094 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
10f2d63a
VZ
17095 else
17096 if test "$wxUSE_WINE" = 1; then
698dcdb6 17097 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
10f2d63a 17098 else
698dcdb6 17099 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17100#define wxUSE_TOOLTIPS 1
17101EOF
17102
17103 fi
17104 fi
17105fi
17106
17107if test "$wxUSE_TREECTRL" = "yes"; then
17108 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17109 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17110#define wxUSE_TREECTRL 1
17111EOF
17112
1e6feb95 17113 USES_CONTROLS=1
10f2d63a
VZ
17114 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17115 else
698dcdb6 17116 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17117 fi
17118fi
17119
9f41d601 17120if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65
GD
17121 if test "$wxUSE_MAC" = 1; then
17122 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
17123 else
17124 cat >> confdefs.h <<\EOF
9f41d601
RR
17125#define wxUSE_POPUPWIN 1
17126EOF
17127
6abe4b65
GD
17128 USES_CONTROLS=1
17129 fi
9f41d601
RR
17130fi
17131
1e6feb95
VZ
17132if test "$USES_CONTROLS" = 1; then
17133 cat >> confdefs.h <<\EOF
17134#define wxUSE_CONTROLS 1
10f2d63a
VZ
17135EOF
17136
10f2d63a
VZ
17137fi
17138
1e6feb95
VZ
17139
17140
24fd6d87
VZ
17141if test "$wxUSE_DRAGIMAGE" = "yes"; then
17142 cat >> confdefs.h <<\EOF
17143#define wxUSE_DRAGIMAGE 1
17144EOF
17145
17146 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
17147fi
17148
1e6feb95 17149if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 17150 cat >> confdefs.h <<\EOF
1e6feb95 17151#define wxUSE_MENUS 1
10f2d63a
VZ
17152EOF
17153
1e6feb95 17154 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
17155fi
17156
1e6feb95
VZ
17157if test "$wxUSE_METAFILE" = "yes"; then
17158 cat >> confdefs.h <<\EOF
17159#define wxUSE_METAFILE 1
10f2d63a
VZ
17160EOF
17161
10f2d63a
VZ
17162fi
17163
1e6feb95
VZ
17164if test "$wxUSE_MIMETYPE" = "yes"; then
17165 cat >> confdefs.h <<\EOF
17166#define wxUSE_MIMETYPE 1
10f2d63a
VZ
17167EOF
17168
10f2d63a
VZ
17169fi
17170
17171if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 17172 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17173#define wxUSE_MINIFRAME 1
17174EOF
17175
17176 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
17177fi
17178
17179if test "$wxUSE_HTML" = "yes"; then
698dcdb6 17180 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17181#define wxUSE_HTML 1
17182EOF
17183
17184 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
17185 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
17186fi
17187
17188if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 17189 cat >> confdefs.h <<\EOF
1e487827
VS
17190#define wxUSE_VALIDATORS 1
17191EOF
703e0a69 17192
698dcdb6
VZ
17193 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
17194fi
17195
17196if test "$wxUSE_IMAGE" = "yes" ; then
17197 cat >> confdefs.h <<\EOF
17198#define wxUSE_IMAGE 1
17199EOF
17200
17201fi
17202
17203if test "$wxUSE_GIF" = "yes" ; then
17204 cat >> confdefs.h <<\EOF
17205#define wxUSE_GIF 1
17206EOF
17207
17208fi
17209
17210if test "$wxUSE_PCX" = "yes" ; then
17211 cat >> confdefs.h <<\EOF
17212#define wxUSE_PCX 1
17213EOF
17214
17215fi
17216
17217if test "$wxUSE_PNM" = "yes" ; then
17218 cat >> confdefs.h <<\EOF
17219#define wxUSE_PNM 1
17220EOF
17221
17222fi
17223
17224if test "$wxUSE_XPM" = "yes" ; then
17225 cat >> confdefs.h <<\EOF
17226#define wxUSE_XPM 1
17227EOF
17228
17229fi
17230
17231
1e6feb95
VZ
17232if test "$wxUSE_CHOICEDLG" = "yes"; then
17233 cat >> confdefs.h <<\EOF
17234#define wxUSE_CHOICEDLG 1
17235EOF
17236
17237fi
17238
17239if test "$wxUSE_COLOURDLG" = "yes"; then
17240 cat >> confdefs.h <<\EOF
17241#define wxUSE_COLOURDLG 1
17242EOF
17243
17244fi
17245
17246if test "$wxUSE_FILEDLG" = "yes"; then
17247 cat >> confdefs.h <<\EOF
17248#define wxUSE_FILEDLG 1
17249EOF
17250
17251fi
17252
17253if test "$wxUSE_FONTDLG" = "yes"; then
17254 cat >> confdefs.h <<\EOF
17255#define wxUSE_FONTDLG 1
17256EOF
17257
17258fi
17259
17260if test "$wxUSE_DIRDLG" = "yes"; then
17261 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17262 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
17263 else
17264 if test "$wxUSE_TREECTRL" != "yes"; then
17265 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
17266 else
17267 cat >> confdefs.h <<\EOF
17268#define wxUSE_DIRDLG 1
17269EOF
17270
17271 fi
17272 fi
17273fi
17274
17275if test "$wxUSE_MSGDLG" = "yes"; then
17276 cat >> confdefs.h <<\EOF
17277#define wxUSE_MSGDLG 1
17278EOF
17279
17280fi
17281
17282if test "$wxUSE_NUMBERDLG" = "yes"; then
17283 cat >> confdefs.h <<\EOF
17284#define wxUSE_NUMBERDLG 1
17285EOF
17286
17287fi
17288
17289if test "$wxUSE_PROGRESSDLG" = "yes"; then
17290 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17291 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
17292 else
17293 cat >> confdefs.h <<\EOF
17294#define wxUSE_PROGRESSDLG 1
17295EOF
17296
17297 fi
17298fi
17299
17300if test "$wxUSE_STARTUP_TIPS" = "yes"; then
17301 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17302 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
17303 else
17304 cat >> confdefs.h <<\EOF
17305#define wxUSE_STARTUP_TIPS 1
17306EOF
17307
17308 fi
17309fi
17310
17311if test "$wxUSE_TEXTDLG" = "yes"; then
17312 cat >> confdefs.h <<\EOF
17313#define wxUSE_TEXTDLG 1
17314EOF
17315
17316fi
17317
b1f5d087
VZ
17318if test "$wxUSE_WIZARDDLG" = "yes"; then
17319 cat >> confdefs.h <<\EOF
17320#define wxUSE_WIZARDDLG 1
17321EOF
17322
17323 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
17324fi
17325
1e6feb95 17326
698dcdb6
VZ
17327if test "$cross_compiling" = "yes"; then
17328 OSINFO="\"$host\""
17329else
17330 OSINFO=`uname -s -r -m`
17331 OSINFO="\"$OSINFO\""
17332fi
17333
17334cat >> confdefs.h <<EOF
17335#define WXWIN_OS_DESCRIPTION $OSINFO
17336EOF
17337
17338
17339
17340GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
17341OPENGL_LIBS="$OPENGL_LINK"
17342
17343EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
17344if test "$USE_MAC" = 1 ; then
17345 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
17346fi
17347if test "$wxUSE_GUI" = "yes"; then
17348 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
17349fi
17350
17351LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
17352
17353INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
17354
17355if test "$wxUSE_GTK" = 1; then
17356 WXCONFIG_INCLUDE=""
17357else
17358 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
17359fi
17360
17361if test "$GXX" = yes ; then
17362 CXXWARNINGS="-Wall"
17363 fi
17364EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
17365
17366CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
17367CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
17368
17369LDFLAGS="$LDFLAGS $PROFILE"
17370
17371if test "$wxUSE_GUI" = "yes"; then
17372
24fd6d87 17373 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
1e6feb95
VZ
17374 drawing dynamic event font fractal image \
17375 minimal richedit widgets"
17376
17377 if test "$wxUSE_UNIVERSAL" = "yes" ; then
17378 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
17379 fi
698dcdb6
VZ
17380
17381 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
17382else
17383 SAMPLES_SUBDIRS=""
17384fi
17385
17386SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
32832908
VZ
17454
17455
17456
17457
17458
17459
17460
2224580a 17461
dad6c0ea 17462
f6bcfd97
BP
17463
17464
17465
2f51a9ec
GD
17466
17467
17468
17469
17470
17471
f6bcfd97 17472
dad6c0ea 17473
caa2c79b 17474
3711412e 17475
1e6feb95
VZ
17476
17477
0f3f1cbc 17478
10f2d63a
VZ
17479
17480
698dcdb6 17481echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
6abe4b65 17482echo "configure:17479: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
17483set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
17484if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
17485 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17486else
698dcdb6 17487 cat > conftestmake <<\EOF
10f2d63a
VZ
17488all:
17489 @echo 'ac_maketemp="${MAKE}"'
17490EOF
17491# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 17492eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
17493if test -n "$ac_maketemp"; then
17494 eval ac_cv_prog_make_${ac_make}_set=yes
17495else
17496 eval ac_cv_prog_make_${ac_make}_set=no
17497fi
698dcdb6 17498rm -f conftestmake
10f2d63a
VZ
17499fi
17500if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 17501 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
17502 SET_MAKE=
17503else
698dcdb6 17504 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17505 SET_MAKE="MAKE=${MAKE-make}"
17506fi
17507
698dcdb6 17508
00cf1208
RR
17509if test -d include; then
17510 if test -d include/wx; then
1e6feb95
VZ
17511 if test -d include/wx/${SETUPH_DIR}; then
17512 if test -f include/wx/${SETUPH_DIR}/setup.h; then
17513 mv -f include/wx/${SETUPH_DIR}/setup.h setup.h
00cf1208
RR
17514 fi
17515 fi
17516 fi
17517fi
665bbe97 17518
698dcdb6 17519
10f2d63a 17520
2224580a 17521if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 17522 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
17523 wx_cv_path_ifs=$PATH_IFS
17524 wx_cv_program_ext=$PROGRAM_EXT
17525 wx_cv_target_library=$WX_TARGET_LIBRARY
3711412e 17526 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
93a20a27
VS
17527 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
17528 wx_cv_target_library wx_cv_target_libtype
698dcdb6 17529 subdirs="demos samples utils contrib"
2224580a
VZ
17530
17531fi
10f2d63a 17532
698dcdb6
VZ
17533trap '' 1 2 15
17534cat > confcache <<\EOF
10f2d63a
VZ
17535# This file is a shell script that caches the results of configure
17536# tests run on this system so they can be shared between configure
698dcdb6
VZ
17537# scripts and configure runs. It is not useful on other systems.
17538# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 17539#
698dcdb6
VZ
17540# By default, configure uses ./config.cache as the cache file,
17541# creating it if it does not exist already. You can give configure
17542# the --cache-file=FILE option to use a different cache file; that is
17543# what configure does when it calls configure scripts in
17544# subdirectories, so they share the cache.
17545# Giving --cache-file=/dev/null disables caching, for debugging configure.
17546# config.status only pays attention to the cache file if you give it the
17547# --recheck option to rerun configure.
10f2d63a 17548#
698dcdb6 17549EOF
10f2d63a
VZ
17550# The following way of writing the cache mishandles newlines in values,
17551# but we know of no workaround that is simple, portable, and efficient.
17552# So, don't put newlines in cache variables' values.
17553# Ultrix sh set writes to stderr and can't be redirected directly,
17554# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
17555(set) 2>&1 |
17556 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17557 *ac_space=\ *)
17558 # `set' does not quote correctly, so add quotes (double-quote substitution
17559 # turns \\\\ into \\, and sed turns \\ into \).
17560 sed -n \
17561 -e "s/'/'\\\\''/g" \
17562 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17563 ;;
17564 *)
17565 # `set' quotes correctly as required by POSIX, so do not add quotes.
17566 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17567 ;;
17568 esac >> confcache
17569if cmp -s $cache_file confcache; then
17570 :
17571else
10f2d63a 17572 if test -w $cache_file; then
698dcdb6
VZ
17573 echo "updating cache $cache_file"
17574 cat confcache > $cache_file
10f2d63a
VZ
17575 else
17576 echo "not updating unwritable cache $cache_file"
17577 fi
17578fi
17579rm -f confcache
17580
698dcdb6
VZ
17581trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17582
10f2d63a
VZ
17583test "x$prefix" = xNONE && prefix=$ac_default_prefix
17584# Let make expand exec_prefix.
17585test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17586
698dcdb6
VZ
17587# Any assignment to VPATH causes Sun make to only execute
17588# the first set of double-colon rules, so remove it if not needed.
17589# If there is a colon in the path, we need to keep it.
10f2d63a 17590if test "x$srcdir" = x.; then
698dcdb6 17591 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
17592fi
17593
698dcdb6
VZ
17594trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17595
10f2d63a
VZ
17596DEFS=-DHAVE_CONFIG_H
17597
698dcdb6 17598# Without the "./", some shells look in PATH for config.status.
10f2d63a 17599: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
17600
17601echo creating $CONFIG_STATUS
17602rm -f $CONFIG_STATUS
17603cat > $CONFIG_STATUS <<EOF
17604#! /bin/sh
10f2d63a
VZ
17605# Generated automatically by configure.
17606# Run this file to recreate the current configuration.
698dcdb6
VZ
17607# This directory was configured as follows,
17608# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17609#
17610# $0 $ac_configure_args
17611#
10f2d63a 17612# Compiler output produced by configure, useful for debugging
698dcdb6 17613# configure, is in ./config.log if it exists.
1e487827 17614
698dcdb6
VZ
17615ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17616for ac_option
10f2d63a 17617do
698dcdb6 17618 case "\$ac_option" in
10f2d63a 17619 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
17620 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17621 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17622 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17623 echo "$CONFIG_STATUS generated by autoconf version 2.13"
17624 exit 0 ;;
17625 -help | --help | --hel | --he | --h)
17626 echo "\$ac_cs_usage"; exit 0 ;;
17627 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
17628 esac
17629done
17630
698dcdb6
VZ
17631ac_given_srcdir=$srcdir
17632ac_given_INSTALL="$INSTALL"
703e0a69 17633
698dcdb6
VZ
17634trap 'rm -fr `echo "
17635 wx-config
17636 src/make.env
17637 src/makeprog.env
17638 src/makelib.env
17639 Makefile
17640 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 17641EOF
698dcdb6 17642cat >> $CONFIG_STATUS <<EOF
1e487827 17643
698dcdb6
VZ
17644# Protect against being on the right side of a sed subst in config.status.
17645sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17646 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17647$ac_vpsub
17648$extrasub
17649s%@SHELL@%$SHELL%g
17650s%@CFLAGS@%$CFLAGS%g
17651s%@CPPFLAGS@%$CPPFLAGS%g
17652s%@CXXFLAGS@%$CXXFLAGS%g
17653s%@FFLAGS@%$FFLAGS%g
17654s%@DEFS@%$DEFS%g
17655s%@LDFLAGS@%$LDFLAGS%g
17656s%@LIBS@%$LIBS%g
17657s%@exec_prefix@%$exec_prefix%g
17658s%@prefix@%$prefix%g
17659s%@program_transform_name@%$program_transform_name%g
17660s%@bindir@%$bindir%g
17661s%@sbindir@%$sbindir%g
17662s%@libexecdir@%$libexecdir%g
17663s%@datadir@%$datadir%g
17664s%@sysconfdir@%$sysconfdir%g
17665s%@sharedstatedir@%$sharedstatedir%g
17666s%@localstatedir@%$localstatedir%g
17667s%@libdir@%$libdir%g
17668s%@includedir@%$includedir%g
17669s%@oldincludedir@%$oldincludedir%g
17670s%@infodir@%$infodir%g
17671s%@mandir@%$mandir%g
17672s%@host@%$host%g
17673s%@host_alias@%$host_alias%g
17674s%@host_cpu@%$host_cpu%g
17675s%@host_vendor@%$host_vendor%g
17676s%@host_os@%$host_os%g
17677s%@target@%$target%g
17678s%@target_alias@%$target_alias%g
17679s%@target_cpu@%$target_cpu%g
17680s%@target_vendor@%$target_vendor%g
17681s%@target_os@%$target_os%g
17682s%@build@%$build%g
17683s%@build_alias@%$build_alias%g
17684s%@build_cpu@%$build_cpu%g
17685s%@build_vendor@%$build_vendor%g
17686s%@build_os@%$build_os%g
17687s%@CC@%$CC%g
17688s%@CPP@%$CPP%g
17689s%@CXX@%$CXX%g
17690s%@CXXCPP@%$CXXCPP%g
17691s%@RANLIB@%$RANLIB%g
17692s%@AR@%$AR%g
17693s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17694s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17695s%@INSTALL_DATA@%$INSTALL_DATA%g
17696s%@STRIP@%$STRIP%g
17697s%@YACC@%$YACC%g
17698s%@LEX@%$LEX%g
17699s%@LEXLIB@%$LEXLIB%g
17700s%@LN_S@%$LN_S%g
17701s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
698dcdb6
VZ
17702s%@GTK_CFLAGS@%$GTK_CFLAGS%g
17703s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 17704s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
17705s%@X_CFLAGS@%$X_CFLAGS%g
17706s%@X_PRE_LIBS@%$X_PRE_LIBS%g
17707s%@X_LIBS@%$X_LIBS%g
17708s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
17709s%@REZ@%$REZ%g
17710s%@DEREZ@%$DEREZ%g
17711s%@LEX_STEM@%$LEX_STEM%g
17712s%@PATH_IFS@%$PATH_IFS%g
17713s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
17714s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
17715s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
17716s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
17717s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
17718s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
17719s%@WX_LIBRARY@%$WX_LIBRARY%g
17720s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
17721s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
17722s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
17723s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
17724s%@PROGRAM_EXT@%$PROGRAM_EXT%g
17725s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
17726s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
17727s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
17728s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
17729s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
17730s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
17731s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
17732s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
17733s%@WX_ALL@%$WX_ALL%g
17734s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
17735s%@SHARED_LD@%$SHARED_LD%g
17736s%@PIC_FLAG@%$PIC_FLAG%g
17737s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
17738s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
17739s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
17740s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
17741s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
17742s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
17743s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
17744s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
17745s%@USE_GUI@%$USE_GUI%g
17746s%@AFMINSTALL@%$AFMINSTALL%g
1e6feb95 17747s%@SETUPH_DIR@%$SETUPH_DIR%g
698dcdb6
VZ
17748s%@TOOLKIT@%$TOOLKIT%g
17749s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
17750s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
17751s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
17752s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
1e6feb95 17753s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
698dcdb6
VZ
17754s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
17755s%@ALL_OBJECTS@%$ALL_OBJECTS%g
17756s%@ALL_DEPFILES@%$ALL_DEPFILES%g
17757s%@GUIDIST@%$GUIDIST%g
17758s%@PORT_FILES@%$PORT_FILES%g
17759s%@DISTDIR@%$DISTDIR%g
17760s%@RPM_SPEC@%$RPM_SPEC%g
17761s%@RPM_FILES@%$RPM_FILES%g
17762s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
17763s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
17764s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
17765s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
17766s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
17767s%@USER_SUBDIRS@%$USER_SUBDIRS%g
17768s%@EXTRA_LIBS@%$EXTRA_LIBS%g
17769s%@OPENGL_LIBS@%$OPENGL_LIBS%g
17770s%@EXTRADEFS@%$EXTRADEFS%g
17771s%@LD_LIBS@%$LD_LIBS%g
17772s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
17773s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
17774s%@RESPROGRAM@%$RESPROGRAM%g
17775s%@RESCOMP@%$RESCOMP%g
17776s%@RESFLAGS@%$RESFLAGS%g
17777s%@REZFLAGS@%$REZFLAGS%g
17778s%@DEREZFLAGS@%$DEREZFLAGS%g
17779s%@LIBWXMACRES@%$LIBWXMACRES%g
17780s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
17781s%@DLLTOOL@%$DLLTOOL%g
17782s%@AS@%$AS%g
17783s%@NM@%$NM%g
17784s%@LD@%$LD%g
17785s%@MAKEINFO@%$MAKEINFO%g
17786s%@SET_MAKE@%$SET_MAKE%g
17787s%@subdirs@%$subdirs%g
1e487827 17788
1e487827 17789CEOF
1e487827
VS
17790EOF
17791
698dcdb6
VZ
17792cat >> $CONFIG_STATUS <<\EOF
17793
17794# Split the substitutions into bite-sized pieces for seds with
17795# small command number limits, like on Digital OSF/1 and HP-UX.
17796ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17797ac_file=1 # Number of current file.
17798ac_beg=1 # First line for current file.
17799ac_end=$ac_max_sed_cmds # Line after last line for current file.
17800ac_more_lines=:
17801ac_sed_cmds=""
17802while $ac_more_lines; do
17803 if test $ac_beg -gt 1; then
17804 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17805 else
17806 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17807 fi
17808 if test ! -s conftest.s$ac_file; then
17809 ac_more_lines=false
17810 rm -f conftest.s$ac_file
17811 else
17812 if test -z "$ac_sed_cmds"; then
17813 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 17814 else
698dcdb6 17815 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 17816 fi
698dcdb6
VZ
17817 ac_file=`expr $ac_file + 1`
17818 ac_beg=$ac_end
17819 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 17820 fi
698dcdb6
VZ
17821done
17822if test -z "$ac_sed_cmds"; then
17823 ac_sed_cmds=cat
17824fi
17825EOF
10f2d63a 17826
698dcdb6
VZ
17827cat >> $CONFIG_STATUS <<EOF
17828
17829CONFIG_FILES=\${CONFIG_FILES-"wx-config
17830 src/make.env
17831 src/makeprog.env
17832 src/makelib.env
17833 Makefile
17834 "}
10f2d63a 17835EOF
698dcdb6
VZ
17836cat >> $CONFIG_STATUS <<\EOF
17837for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 17838 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
17839 case "$ac_file" in
17840 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17841 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17842 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
17843 esac
17844
698dcdb6 17845 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 17846
698dcdb6
VZ
17847 # Remove last slash and all that follows it. Not all systems have dirname.
17848 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17849 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17850 # The file is in a subdirectory.
17851 test ! -d "$ac_dir" && mkdir "$ac_dir"
17852 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 17853 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 17854 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
17855 else
17856 ac_dir_suffix= ac_dots=
17857 fi
17858
698dcdb6
VZ
17859 case "$ac_given_srcdir" in
17860 .) srcdir=.
17861 if test -z "$ac_dots"; then top_srcdir=.
17862 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17863 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 17864 *) # Relative path.
698dcdb6
VZ
17865 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17866 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
17867 esac
17868
698dcdb6
VZ
17869 case "$ac_given_INSTALL" in
17870 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17871 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
17872 esac
17873
698dcdb6
VZ
17874 echo creating "$ac_file"
17875 rm -f "$ac_file"
17876 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17877 case "$ac_file" in
17878 *Makefile*) ac_comsub="1i\\
17879# $configure_input" ;;
17880 *) ac_comsub= ;;
17881 esac
10f2d63a 17882
698dcdb6
VZ
17883 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17884 sed -e "$ac_comsub
17885s%@configure_input@%$configure_input%g
17886s%@srcdir@%$srcdir%g
17887s%@top_srcdir@%$top_srcdir%g
17888s%@INSTALL@%$INSTALL%g
17889" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17890fi; done
17891rm -f conftest.s*
10f2d63a
VZ
17892
17893# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17894# NAME is the cpp macro being defined and VALUE is the value it is being given.
17895#
17896# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
17897ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17898ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
17899ac_dC='\3'
17900ac_dD='%g'
17901# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17902ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17903ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 17904ac_uC=' '
698dcdb6
VZ
17905ac_uD='\4%g'
17906# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17907ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17908ac_eB='$%\1#\2define\3'
17909ac_eC=' '
17910ac_eD='%g'
10f2d63a 17911
698dcdb6
VZ
17912if test "${CONFIG_HEADERS+set}" != set; then
17913EOF
17914cat >> $CONFIG_STATUS <<EOF
17915 CONFIG_HEADERS="setup.h:setup.h.in"
17916EOF
17917cat >> $CONFIG_STATUS <<\EOF
17918fi
17919for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 17920 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
17921 case "$ac_file" in
17922 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17923 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17924 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
17925 esac
17926
698dcdb6
VZ
17927 echo creating $ac_file
17928
17929 rm -f conftest.frag conftest.in conftest.out
17930 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17931 cat $ac_file_inputs > conftest.in
17932
17933EOF
17934
17935# Transform confdefs.h into a sed script conftest.vals that substitutes
17936# the proper values into config.h.in to produce config.h. And first:
17937# Protect against being on the right side of a sed subst in config.status.
17938# Protect against being in an unquoted here document in config.status.
17939rm -f conftest.vals
17940cat > conftest.hdr <<\EOF
17941s/[\\&%]/\\&/g
17942s%[\\$`]%\\&%g
17943s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17944s%ac_d%ac_u%gp
17945s%ac_u%ac_e%gp
17946EOF
17947sed -n -f conftest.hdr confdefs.h > conftest.vals
17948rm -f conftest.hdr
10f2d63a
VZ
17949
17950# This sed command replaces #undef with comments. This is necessary, for
17951# example, in the case of _POSIX_SOURCE, which is predefined and required
17952# on some systems where configure will not decide to define it.
698dcdb6
VZ
17953cat >> conftest.vals <<\EOF
17954s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
17955EOF
17956
698dcdb6
VZ
17957# Break up conftest.vals because some shells have a limit on
17958# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
17959
17960rm -f conftest.tail
698dcdb6 17961while :
10f2d63a 17962do
698dcdb6
VZ
17963 ac_lines=`grep -c . conftest.vals`
17964 # grep -c gives empty output for an empty file on some AIX systems.
17965 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17966 # Write a limited-size here document to conftest.frag.
17967 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17968 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 17969 echo 'CEOF
698dcdb6
VZ
17970 sed -f conftest.frag conftest.in > conftest.out
17971 rm -f conftest.in
17972 mv conftest.out conftest.in
17973' >> $CONFIG_STATUS
17974 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17975 rm -f conftest.vals
17976 mv conftest.tail conftest.vals
10f2d63a 17977done
698dcdb6
VZ
17978rm -f conftest.vals
17979
17980cat >> $CONFIG_STATUS <<\EOF
17981 rm -f conftest.frag conftest.h
17982 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17983 cat conftest.in >> conftest.h
17984 rm -f conftest.in
17985 if cmp -s $ac_file conftest.h 2>/dev/null; then
17986 echo "$ac_file is unchanged"
17987 rm -f conftest.h
10f2d63a 17988 else
698dcdb6
VZ
17989 # Remove last slash and all that follows it. Not all systems have dirname.
17990 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 17991 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
17992 # The file is in a subdirectory.
17993 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 17994 fi
698dcdb6
VZ
17995 rm -f $ac_file
17996 mv conftest.h $ac_file
10f2d63a 17997 fi
698dcdb6
VZ
17998fi; done
17999
10f2d63a 18000EOF
698dcdb6 18001cat >> $CONFIG_STATUS <<EOF
10f2d63a 18002
1e6feb95 18003 SETUPH_DIR="${SETUPH_DIR}"
698dcdb6
VZ
18004 TOOLKIT_NAME="${TOOLKIT_NAME}"
18005 LN_S="${LN_S}"
18006
18007
18008EOF
18009cat >> $CONFIG_STATUS <<\EOF
10f2d63a 18010
6ef41520 18011 if test ! -f wx${TOOLKIT_NAME}-config; then
991a5759
VZ
18012 chmod +x wx-config
18013 mv wx-config wx${TOOLKIT_NAME}-config
18014 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
18015 fi
665bbe97 18016
698dcdb6 18017
00cf1208
RR
18018 if test ! -d lib; then
18019 mkdir lib
18020 fi
18021 if test ! -d lib/wx; then
18022 mkdir lib/wx
18023 fi
18024 if test ! -d lib/wx/include; then
18025 mkdir lib/wx/include
18026 fi
18027 if test ! -d lib/wx/include/wx; then
18028 mkdir lib/wx/include/wx
18029 fi
f6bcfd97
BP
18030 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
18031 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
00cf1208
RR
18032 fi
18033 if test -f setup.h; then
066b00aa 18034 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
00cf1208 18035 fi
07eb77a6 18036
698dcdb6 18037
10f2d63a
VZ
18038 if test ! -d include; then
18039 mkdir include
18040 fi
18041 if test ! -d include/wx; then
18042 mkdir include/wx
18043 fi
1e6feb95
VZ
18044 if test ! -d include/wx/${SETUPH_DIR}; then
18045 mkdir include/wx/${SETUPH_DIR}
10f2d63a 18046 fi
afc31813 18047 if test -f setup.h; then
1e6feb95 18048 cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h
afc31813 18049 fi
665bbe97 18050
698dcdb6
VZ
18051
18052exit 0
10f2d63a
VZ
18053EOF
18054chmod +x $CONFIG_STATUS
698dcdb6
VZ
18055rm -fr confdefs* $ac_clean_files
18056test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 18057
2224580a
VZ
18058if test "$no_recursion" != yes; then
18059
18060 # Remove --cache-file and --srcdir arguments so they do not pile up.
18061 ac_sub_configure_args=
18062 ac_prev=
18063 for ac_arg in $ac_configure_args; do
18064 if test -n "$ac_prev"; then
18065 ac_prev=
18066 continue
18067 fi
698dcdb6 18068 case "$ac_arg" in
2224580a
VZ
18069 -cache-file | --cache-file | --cache-fil | --cache-fi \
18070 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18071 ac_prev=cache_file ;;
18072 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 18073 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
18074 ;;
18075 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18076 ac_prev=srcdir ;;
18077 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18078 ;;
18079 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18080 esac
18081 done
18082
698dcdb6 18083 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
18084
18085 # Do not complain, so a configure script can configure whichever
18086 # parts of a large source tree are present.
698dcdb6
VZ
18087 if test ! -d $srcdir/$ac_config_dir; then
18088 continue
18089 fi
18090
18091 echo configuring in $ac_config_dir
2224580a 18092
698dcdb6 18093 case "$srcdir" in
2224580a
VZ
18094 .) ;;
18095 *)
698dcdb6
VZ
18096 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18097 else
18098 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18099 fi
18100 ;;
2224580a
VZ
18101 esac
18102
18103 ac_popdir=`pwd`
698dcdb6 18104 cd $ac_config_dir
2224580a 18105
698dcdb6
VZ
18106 # A "../" for each directory in /$ac_config_dir.
18107 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 18108
698dcdb6 18109 case "$srcdir" in
2224580a
VZ
18110 .) # No --srcdir option. We are building in place.
18111 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
18112 /*) # Absolute path.
18113 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 18114 *) # Relative path.
698dcdb6 18115 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
18116 esac
18117
18118 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
18119 if test -f $ac_sub_srcdir/configure; then
18120 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
18121 elif test -f $ac_sub_srcdir/configure.in; then
18122 ac_sub_configure=$ac_configure
18123 else
698dcdb6 18124 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
18125 ac_sub_configure=
18126 fi
18127
18128 # The recursion is here.
18129 if test -n "$ac_sub_configure"; then
698dcdb6 18130
2224580a 18131 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
18132 case "$cache_file" in
18133 /*) ac_sub_cache_file=$cache_file ;;
2224580a 18134 *) # Relative path.
698dcdb6 18135 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 18136 esac
698dcdb6
VZ
18137 case "$ac_given_INSTALL" in
18138 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18139 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18140 esac
2224580a 18141
698dcdb6 18142 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 18143 # The eval makes quoting arguments work.
698dcdb6
VZ
18144 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
18145 then :
18146 else
18147 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
18148 fi
2224580a
VZ
18149 fi
18150
18151 cd $ac_popdir
18152 done
18153fi
18154
698dcdb6 18155