]> git.saurik.com Git - wxWidgets.git/blame - configure
fixed windows.h check and added checks for MS HTML Help
[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 201 --enable-help use help subsystem"
29fd3c0c
VS
202ac_help="$ac_help
203 --enable-mshtmlhelp use MS HTML Help (win32)"
3379ed37
VZ
204ac_help="$ac_help
205 --enable-html use wxHTML sub-library"
206ac_help="$ac_help
207 --enable-htmlhelp use wxHTML-based help"
698dcdb6 208ac_help="$ac_help
8168de4c 209 --enable-constraints use layout-constraints system"
698dcdb6 210ac_help="$ac_help
8168de4c 211 --enable-printarch use printing architecture"
698dcdb6 212ac_help="$ac_help
8168de4c 213 --enable-mdi use multiple document interface architecture"
698dcdb6 214ac_help="$ac_help
8168de4c 215 --enable-loggui use standard GUI logger"
1e6feb95 216ac_help="$ac_help
8168de4c 217 --enable-logwin use wxLogWindow"
1e6feb95 218ac_help="$ac_help
8168de4c 219 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 220ac_help="$ac_help
8168de4c 221 --enable-prologio use Prolog IO library"
698dcdb6 222ac_help="$ac_help
8168de4c 223 --enable-resources use wxWindows resources"
698dcdb6 224ac_help="$ac_help
8168de4c 225 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 226ac_help="$ac_help
8168de4c 227 --enable-clipboard use wxClipboard classes"
698dcdb6 228ac_help="$ac_help
8168de4c 229 --enable-dnd use Drag'n'Drop classes"
698dcdb6 230ac_help="$ac_help
8168de4c 231 --enable-metafile use win32 metafiles"
698dcdb6 232ac_help="$ac_help
8168de4c 233 --enable-wxtree make wxTree library"
698dcdb6 234ac_help="$ac_help
8168de4c 235 --enable-controls use all usual controls"
698dcdb6 236ac_help="$ac_help
8168de4c 237 --enable-accel use accelerators"
698dcdb6 238ac_help="$ac_help
8168de4c 239 --enable-button use wxButton class"
698dcdb6 240ac_help="$ac_help
8168de4c 241 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 242ac_help="$ac_help
8168de4c 243 --enable-calendar use wxCalendarCtrl class"
1e6feb95 244ac_help="$ac_help
8168de4c 245 --enable-caret use wxCaret class"
1e6feb95 246ac_help="$ac_help
8168de4c 247 --enable-checkbox use wxCheckBox class"
698dcdb6 248ac_help="$ac_help
8168de4c 249 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 250ac_help="$ac_help
8168de4c 251 --enable-choice use wxChoice class"
698dcdb6 252ac_help="$ac_help
8168de4c 253 --enable-combobox use wxComboBox classes"
698dcdb6 254ac_help="$ac_help
8168de4c 255 --enable-gauge use wxGauge class"
698dcdb6 256ac_help="$ac_help
8168de4c 257 --enable-grid use wxGrid class"
698dcdb6 258ac_help="$ac_help
8168de4c 259 --enable-newgrid use new wxGrid class"
698dcdb6 260ac_help="$ac_help
8168de4c 261 --enable-imaglist use wxImageList class"
698dcdb6 262ac_help="$ac_help
8168de4c 263 --enable-listbox use wxListBox class"
698dcdb6 264ac_help="$ac_help
8168de4c 265 --enable-listctrl use wxListCtrl class"
698dcdb6 266ac_help="$ac_help
8168de4c 267 --enable-notebook use wxNotebook class"
698dcdb6 268ac_help="$ac_help
8168de4c 269 --enable-radiobox use wxRadioBox class"
698dcdb6 270ac_help="$ac_help
8168de4c 271 --enable-radiobtn use wxRadioButton class"
698dcdb6 272ac_help="$ac_help
8168de4c 273 --enable-sash use wxSashWindow class"
698dcdb6 274ac_help="$ac_help
8168de4c 275 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 276ac_help="$ac_help
8168de4c 277 --enable-slider use wxSlider class"
698dcdb6 278ac_help="$ac_help
8168de4c 279 --enable-spinbtn use wxSpinButton class"
698dcdb6 280ac_help="$ac_help
8168de4c 281 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 282ac_help="$ac_help
8168de4c 283 --enable-splitter use wxSplitterWindow class"
698dcdb6 284ac_help="$ac_help
8168de4c 285 --enable-statbmp use wxStaticBitmap class"
698dcdb6 286ac_help="$ac_help
8168de4c 287 --enable-statbox use wxStaticBox class"
698dcdb6 288ac_help="$ac_help
8168de4c 289 --enable-statline use wxStaticLine class"
698dcdb6 290ac_help="$ac_help
8168de4c 291 --enable-stattext use wxStaticText class"
1e6feb95 292ac_help="$ac_help
8168de4c 293 --enable-statusbar use wxStatusBar class"
698dcdb6 294ac_help="$ac_help
8168de4c 295 --enable-tabdialog use wxTabControl class"
698dcdb6 296ac_help="$ac_help
8168de4c 297 --enable-textctrl use wxTextCtrl class"
1e6feb95 298ac_help="$ac_help
8168de4c 299 --enable-togglebtn use wxToggleButton class"
698dcdb6 300ac_help="$ac_help
8168de4c 301 --enable-toolbar use wxToolBar class"
698dcdb6 302ac_help="$ac_help
8168de4c 303 --enable-tbarnative use native wxToolBar class"
698dcdb6 304ac_help="$ac_help
8168de4c 305 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 306ac_help="$ac_help
8168de4c 307 --enable-treectrl use wxTreeCtrl class"
9f41d601
RR
308ac_help="$ac_help
309 --enable-popupwin use wxPopUpWindow class"
698dcdb6 310ac_help="$ac_help
8168de4c 311 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
698dcdb6 312ac_help="$ac_help
8168de4c 313 --enable-choicedlg use wxChoiceDialog"
1e6feb95 314ac_help="$ac_help
8168de4c 315 --enable-coldlg use wxColourDialog"
1e6feb95 316ac_help="$ac_help
8168de4c 317 --enable-filedlg use wxFileDialog"
1e6feb95 318ac_help="$ac_help
8168de4c 319 --enable-fontdlg use wxFontDialog"
1e6feb95 320ac_help="$ac_help
8168de4c 321 --enable-dirdlg use wxDirDialog"
698dcdb6 322ac_help="$ac_help
8168de4c 323 --enable-msgdlg use wxMessageDialog"
1e6feb95 324ac_help="$ac_help
8168de4c 325 --enable-numberdlg use wxNumberEntryDialog"
1e6feb95 326ac_help="$ac_help
8168de4c 327 --enable-textdlg use wxTextDialog"
698dcdb6 328ac_help="$ac_help
8168de4c 329 --enable-tipdlg use startup tips"
698dcdb6 330ac_help="$ac_help
8168de4c 331 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
332ac_help="$ac_help
333 --enable-wizarddlg use wxWizard"
698dcdb6 334ac_help="$ac_help
8168de4c 335 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 336ac_help="$ac_help
8168de4c 337 --enable-miniframe use wxMiniFrame class"
698dcdb6 338ac_help="$ac_help
8168de4c 339 --enable-tooltips use wxToolTip class"
698dcdb6 340ac_help="$ac_help
8168de4c 341 --enable-splines use spline drawing code"
698dcdb6 342ac_help="$ac_help
8168de4c 343 --enable-validators use wxValidator and derived classes"
698dcdb6 344ac_help="$ac_help
8168de4c 345 --enable-busyinfo use wxBusyInfo"
698dcdb6 346ac_help="$ac_help
8168de4c 347 --enable-joystick compile in joystick support (Linux only)"
698dcdb6 348ac_help="$ac_help
8168de4c 349 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
350ac_help="$ac_help
351 --enable-dragimage use wxDragImage"
1e6feb95 352ac_help="$ac_help
8168de4c 353 --enable-image use wxImage class"
698dcdb6 354ac_help="$ac_help
8168de4c 355 --enable-gif use gif images (GIF file format)"
698dcdb6 356ac_help="$ac_help
8168de4c 357 --enable-pcx use pcx images (PCX file format)"
698dcdb6 358ac_help="$ac_help
8168de4c 359 --enable-pnm use pnm images (PNM file format)"
698dcdb6 360ac_help="$ac_help
8168de4c 361 --enable-xpm use xpm images (XPM file format)"
698dcdb6
VZ
362ac_help="$ac_help
363 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
364ac_help="$ac_help
365 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
366ac_help="$ac_help
367 --disable-gtktest Do not try to compile and run a test GTK program"
368ac_help="$ac_help
369 --with-x use the X Window System"
10f2d63a
VZ
370
371# Initialize some variables set by options.
372# The variables have the same names as the options, with
373# dashes changed to underlines.
698dcdb6
VZ
374build=NONE
375cache_file=./config.cache
10f2d63a 376exec_prefix=NONE
698dcdb6 377host=NONE
10f2d63a 378no_create=
698dcdb6 379nonopt=NONE
10f2d63a
VZ
380no_recursion=
381prefix=NONE
382program_prefix=NONE
383program_suffix=NONE
384program_transform_name=s,x,x,
385silent=
386site=
387srcdir=
698dcdb6 388target=NONE
10f2d63a
VZ
389verbose=
390x_includes=NONE
391x_libraries=NONE
392bindir='${exec_prefix}/bin'
393sbindir='${exec_prefix}/sbin'
394libexecdir='${exec_prefix}/libexec'
395datadir='${prefix}/share'
396sysconfdir='${prefix}/etc'
397sharedstatedir='${prefix}/com'
398localstatedir='${prefix}/var'
399libdir='${exec_prefix}/lib'
400includedir='${prefix}/include'
401oldincludedir='/usr/include'
402infodir='${prefix}/info'
403mandir='${prefix}/man'
404
698dcdb6
VZ
405# Initialize some other variables.
406subdirs=
407MFLAGS= MAKEFLAGS=
408SHELL=${CONFIG_SHELL-/bin/sh}
409# Maximum number of lines to put in a shell here document.
410ac_max_here_lines=12
10f2d63a
VZ
411
412ac_prev=
413for ac_option
414do
698dcdb6 415
10f2d63a
VZ
416 # If the previous option needs an argument, assign it.
417 if test -n "$ac_prev"; then
418 eval "$ac_prev=\$ac_option"
419 ac_prev=
420 continue
421 fi
422
698dcdb6
VZ
423 case "$ac_option" in
424 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
425 *) ac_optarg= ;;
426 esac
10f2d63a
VZ
427
428 # Accept the important Cygnus configure options, so we can diagnose typos.
429
698dcdb6 430 case "$ac_option" in
10f2d63a
VZ
431
432 -bindir | --bindir | --bindi | --bind | --bin | --bi)
433 ac_prev=bindir ;;
434 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 435 bindir="$ac_optarg" ;;
10f2d63a
VZ
436
437 -build | --build | --buil | --bui | --bu)
698dcdb6 438 ac_prev=build ;;
10f2d63a 439 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 440 build="$ac_optarg" ;;
10f2d63a
VZ
441
442 -cache-file | --cache-file | --cache-fil | --cache-fi \
443 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
444 ac_prev=cache_file ;;
445 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
446 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 447 cache_file="$ac_optarg" ;;
10f2d63a
VZ
448
449 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
450 ac_prev=datadir ;;
451 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
452 | --da=*)
698dcdb6 453 datadir="$ac_optarg" ;;
10f2d63a
VZ
454
455 -disable-* | --disable-*)
698dcdb6 456 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 457 # Reject names that are not valid shell variable names.
698dcdb6
VZ
458 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
459 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
460 fi
461 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
462 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
463
464 -enable-* | --enable-*)
698dcdb6 465 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 466 # Reject names that are not valid shell variable names.
698dcdb6
VZ
467 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
468 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
469 fi
470 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
471 case "$ac_option" in
472 *=*) ;;
10f2d63a
VZ
473 *) ac_optarg=yes ;;
474 esac
698dcdb6 475 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
476
477 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
478 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
479 | --exec | --exe | --ex)
480 ac_prev=exec_prefix ;;
481 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
482 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
483 | --exec=* | --exe=* | --ex=*)
698dcdb6 484 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
485
486 -gas | --gas | --ga | --g)
487 # Obsolete; use --with-gas.
488 with_gas=yes ;;
489
698dcdb6
VZ
490 -help | --help | --hel | --he)
491 # Omit some internal or obsolete options to make the list less imposing.
492 # This message is too long to be a string in the A/UX 3.1 sh.
493 cat << EOF
494Usage: configure [options] [host]
495Options: [defaults in brackets after descriptions]
496Configuration:
497 --cache-file=FILE cache test results in FILE
498 --help print this message
499 --no-create do not create output files
500 --quiet, --silent do not print \`checking...' messages
501 --version print the version of autoconf that created configure
502Directory and file names:
503 --prefix=PREFIX install architecture-independent files in PREFIX
504 [$ac_default_prefix]
505 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
506 [same as prefix]
507 --bindir=DIR user executables in DIR [EPREFIX/bin]
508 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
509 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
510 --datadir=DIR read-only architecture-independent data in DIR
511 [PREFIX/share]
512 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
513 --sharedstatedir=DIR modifiable architecture-independent data in DIR
514 [PREFIX/com]
515 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
516 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
517 --includedir=DIR C header files in DIR [PREFIX/include]
518 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
519 --infodir=DIR info documentation in DIR [PREFIX/info]
520 --mandir=DIR man documentation in DIR [PREFIX/man]
521 --srcdir=DIR find the sources in DIR [configure dir or ..]
522 --program-prefix=PREFIX prepend PREFIX to installed program names
523 --program-suffix=SUFFIX append SUFFIX to installed program names
524 --program-transform-name=PROGRAM
525 run sed PROGRAM on installed program names
526EOF
527 cat << EOF
528Host type:
529 --build=BUILD configure for building on BUILD [BUILD=HOST]
530 --host=HOST configure for HOST [guessed]
531 --target=TARGET configure for TARGET [TARGET=HOST]
532Features and packages:
533 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
534 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
535 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
536 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
537 --x-includes=DIR X include files are in DIR
538 --x-libraries=DIR X library files are in DIR
539EOF
540 if test -n "$ac_help"; then
541 echo "--enable and --with options recognized:$ac_help"
542 fi
543 exit 0 ;;
10f2d63a
VZ
544
545 -host | --host | --hos | --ho)
698dcdb6 546 ac_prev=host ;;
10f2d63a 547 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 548 host="$ac_optarg" ;;
10f2d63a
VZ
549
550 -includedir | --includedir | --includedi | --included | --include \
551 | --includ | --inclu | --incl | --inc)
552 ac_prev=includedir ;;
553 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
554 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 555 includedir="$ac_optarg" ;;
10f2d63a
VZ
556
557 -infodir | --infodir | --infodi | --infod | --info | --inf)
558 ac_prev=infodir ;;
559 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 560 infodir="$ac_optarg" ;;
10f2d63a
VZ
561
562 -libdir | --libdir | --libdi | --libd)
563 ac_prev=libdir ;;
564 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 565 libdir="$ac_optarg" ;;
10f2d63a
VZ
566
567 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
568 | --libexe | --libex | --libe)
569 ac_prev=libexecdir ;;
570 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
571 | --libexe=* | --libex=* | --libe=*)
698dcdb6 572 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
573
574 -localstatedir | --localstatedir | --localstatedi | --localstated \
575 | --localstate | --localstat | --localsta | --localst \
576 | --locals | --local | --loca | --loc | --lo)
577 ac_prev=localstatedir ;;
578 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
579 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
580 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 581 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
582
583 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
584 ac_prev=mandir ;;
585 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 586 mandir="$ac_optarg" ;;
10f2d63a
VZ
587
588 -nfp | --nfp | --nf)
589 # Obsolete; use --without-fp.
590 with_fp=no ;;
591
592 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
593 | --no-cr | --no-c)
594 no_create=yes ;;
595
596 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
597 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
598 no_recursion=yes ;;
599
600 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
601 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
602 | --oldin | --oldi | --old | --ol | --o)
603 ac_prev=oldincludedir ;;
604 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
605 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
606 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 607 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
608
609 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
610 ac_prev=prefix ;;
611 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 612 prefix="$ac_optarg" ;;
10f2d63a
VZ
613
614 -program-prefix | --program-prefix | --program-prefi | --program-pref \
615 | --program-pre | --program-pr | --program-p)
616 ac_prev=program_prefix ;;
617 -program-prefix=* | --program-prefix=* | --program-prefi=* \
618 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 619 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
620
621 -program-suffix | --program-suffix | --program-suffi | --program-suff \
622 | --program-suf | --program-su | --program-s)
623 ac_prev=program_suffix ;;
624 -program-suffix=* | --program-suffix=* | --program-suffi=* \
625 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 626 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
627
628 -program-transform-name | --program-transform-name \
629 | --program-transform-nam | --program-transform-na \
630 | --program-transform-n | --program-transform- \
631 | --program-transform | --program-transfor \
632 | --program-transfo | --program-transf \
633 | --program-trans | --program-tran \
634 | --progr-tra | --program-tr | --program-t)
635 ac_prev=program_transform_name ;;
636 -program-transform-name=* | --program-transform-name=* \
637 | --program-transform-nam=* | --program-transform-na=* \
638 | --program-transform-n=* | --program-transform-=* \
639 | --program-transform=* | --program-transfor=* \
640 | --program-transfo=* | --program-transf=* \
641 | --program-trans=* | --program-tran=* \
642 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 643 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
644
645 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
646 | -silent | --silent | --silen | --sile | --sil)
647 silent=yes ;;
648
649 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
650 ac_prev=sbindir ;;
651 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
652 | --sbi=* | --sb=*)
698dcdb6 653 sbindir="$ac_optarg" ;;
10f2d63a
VZ
654
655 -sharedstatedir | --sharedstatedir | --sharedstatedi \
656 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
657 | --sharedst | --shareds | --shared | --share | --shar \
658 | --sha | --sh)
659 ac_prev=sharedstatedir ;;
660 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
661 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
662 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
663 | --sha=* | --sh=*)
698dcdb6 664 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
665
666 -site | --site | --sit)
667 ac_prev=site ;;
668 -site=* | --site=* | --sit=*)
698dcdb6 669 site="$ac_optarg" ;;
10f2d63a
VZ
670
671 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
672 ac_prev=srcdir ;;
673 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 674 srcdir="$ac_optarg" ;;
10f2d63a
VZ
675
676 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
677 | --syscon | --sysco | --sysc | --sys | --sy)
678 ac_prev=sysconfdir ;;
679 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
680 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 681 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
682
683 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 684 ac_prev=target ;;
10f2d63a 685 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 686 target="$ac_optarg" ;;
10f2d63a
VZ
687
688 -v | -verbose | --verbose | --verbos | --verbo | --verb)
689 verbose=yes ;;
690
698dcdb6
VZ
691 -version | --version | --versio | --versi | --vers)
692 echo "configure generated by autoconf version 2.13"
693 exit 0 ;;
10f2d63a
VZ
694
695 -with-* | --with-*)
698dcdb6 696 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 697 # Reject names that are not valid shell variable names.
698dcdb6
VZ
698 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
699 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
700 fi
10f2d63a 701 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
702 case "$ac_option" in
703 *=*) ;;
10f2d63a
VZ
704 *) ac_optarg=yes ;;
705 esac
698dcdb6 706 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
707
708 -without-* | --without-*)
698dcdb6 709 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 710 # Reject names that are not valid shell variable names.
698dcdb6
VZ
711 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
712 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
713 fi
714 ac_package=`echo $ac_package| sed 's/-/_/g'`
715 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
716
717 --x)
718 # Obsolete; use --with-x.
719 with_x=yes ;;
720
721 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
722 | --x-incl | --x-inc | --x-in | --x-i)
723 ac_prev=x_includes ;;
724 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
725 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 726 x_includes="$ac_optarg" ;;
10f2d63a
VZ
727
728 -x-libraries | --x-libraries | --x-librarie | --x-librari \
729 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
730 ac_prev=x_libraries ;;
731 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
732 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 733 x_libraries="$ac_optarg" ;;
10f2d63a 734
698dcdb6 735 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
736 ;;
737
738 *)
698dcdb6
VZ
739 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
740 echo "configure: warning: $ac_option: invalid host type" 1>&2
741 fi
742 if test "x$nonopt" != xNONE; then
743 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
744 fi
745 nonopt="$ac_option"
10f2d63a
VZ
746 ;;
747
748 esac
749done
750
751if test -n "$ac_prev"; then
698dcdb6
VZ
752 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
753fi
754
755trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
756
757# File descriptor usage:
758# 0 standard input
759# 1 file creation
760# 2 errors and warnings
761# 3 some systems may open it to /dev/tty
762# 4 used on the Kubota Titan
763# 6 checking for... messages and results
764# 5 compiler messages saved in config.log
765if test "$silent" = yes; then
766 exec 6>/dev/null
767else
768 exec 6>&1
10f2d63a 769fi
698dcdb6
VZ
770exec 5>./config.log
771
772echo "\
773This file contains any messages produced by compilers while
774running configure, to aid debugging if configure makes a mistake.
775" 1>&5
10f2d63a 776
698dcdb6
VZ
777# Strip out --no-create and --no-recursion so they do not pile up.
778# Also quote any args containing shell metacharacters.
779ac_configure_args=
780for ac_arg
10f2d63a 781do
698dcdb6
VZ
782 case "$ac_arg" in
783 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
784 | --no-cr | --no-c) ;;
785 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
786 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
787 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
788 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
789 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
790 esac
791done
792
698dcdb6
VZ
793# NLS nuisances.
794# Only set these to C if already set. These must not be set unconditionally
795# because not all systems understand e.g. LANG=C (notably SCO).
796# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
797# Non-C LC_CTYPE values break the ctype check.
798if test "${LANG+set}" = set; then LANG=C; export LANG; fi
799if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
800if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
801if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 802
698dcdb6
VZ
803# confdefs.h avoids OS command line length limits that DEFS can exceed.
804rm -rf conftest* confdefs.h
805# AIX cpp loses on an empty file, so make sure it contains at least a newline.
806echo > confdefs.h
10f2d63a 807
698dcdb6
VZ
808# A filename unique to this package, relative to the directory that
809# configure is in, which we can look for to find out if srcdir is correct.
810ac_unique_file=wx-config.in
10f2d63a
VZ
811
812# Find the source files, if location was not specified.
813if test -z "$srcdir"; then
814 ac_srcdir_defaulted=yes
815 # Try the directory containing this script, then its parent.
816 ac_prog=$0
698dcdb6 817 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
818 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
819 srcdir=$ac_confdir
820 if test ! -r $srcdir/$ac_unique_file; then
821 srcdir=..
822 fi
823else
824 ac_srcdir_defaulted=no
825fi
826if test ! -r $srcdir/$ac_unique_file; then
827 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 828 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 829 else
698dcdb6 830 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
831 fi
832fi
698dcdb6 833srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
834
835# Prefer explicitly selected file to automatically selected ones.
836if test -z "$CONFIG_SITE"; then
837 if test "x$prefix" != xNONE; then
838 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
839 else
840 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
841 fi
842fi
843for ac_site_file in $CONFIG_SITE; do
844 if test -r "$ac_site_file"; then
698dcdb6 845 echo "loading site script $ac_site_file"
10f2d63a
VZ
846 . "$ac_site_file"
847 fi
848done
849
850if test -r "$cache_file"; then
698dcdb6
VZ
851 echo "loading cache $cache_file"
852 . $cache_file
10f2d63a 853else
698dcdb6
VZ
854 echo "creating cache $cache_file"
855 > $cache_file
10f2d63a
VZ
856fi
857
858ac_ext=c
698dcdb6 859# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 860ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
861ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
862ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
863cross_compiling=$ac_cv_prog_cc_cross
864
865ac_exeext=
866ac_objext=o
867if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
868 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
869 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
870 ac_n= ac_c='
871' ac_t=' '
872 else
873 ac_n=-n ac_c= ac_t=
874 fi
10f2d63a 875else
698dcdb6 876 ac_n= ac_c='\c' ac_t=
10f2d63a 877fi
698dcdb6
VZ
878
879
10f2d63a 880
7c66a493
VZ
881ac_aux_dir=
882for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
883 if test -f $ac_dir/install-sh; then
884 ac_aux_dir=$ac_dir
885 ac_install_sh="$ac_aux_dir/install-sh -c"
886 break
887 elif test -f $ac_dir/install.sh; then
888 ac_aux_dir=$ac_dir
889 ac_install_sh="$ac_aux_dir/install.sh -c"
890 break
891 fi
892done
893if test -z "$ac_aux_dir"; then
698dcdb6 894 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 895fi
698dcdb6
VZ
896ac_config_guess=$ac_aux_dir/config.guess
897ac_config_sub=$ac_aux_dir/config.sub
898ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 899
698dcdb6
VZ
900
901# Do some error checking and defaulting for the host and target type.
902# The inputs are:
903# configure --host=HOST --target=TARGET --build=BUILD NONOPT
904#
905# The rules are:
906# 1. You are not allowed to specify --host, --target, and nonopt at the
907# same time.
908# 2. Host defaults to nonopt.
909# 3. If nonopt is not specified, then host defaults to the current host,
910# as determined by config.guess.
911# 4. Target and build default to nonopt.
912# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
913
914# The aliases save the names the user supplied, while $host etc.
915# will get canonicalized.
698dcdb6
VZ
916case $host---$target---$nonopt in
917NONE---*---* | *---NONE---* | *---*---NONE) ;;
918*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
919esac
920
921
922# Make sure we can run config.sub.
923if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
924else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
925fi
926
927echo $ac_n "checking host system type""... $ac_c" 1>&6
29fd3c0c 928echo "configure:929: checking host system type" >&5
698dcdb6
VZ
929
930host_alias=$host
931case "$host_alias" in
932NONE)
933 case $nonopt in
934 NONE)
935 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
936 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
937 fi ;;
938 *) host_alias=$nonopt ;;
939 esac ;;
940esac
941
942host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
943host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
944host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
945host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
946echo "$ac_t""$host" 1>&6
947
948echo $ac_n "checking target system type""... $ac_c" 1>&6
29fd3c0c 949echo "configure:950: checking target system type" >&5
698dcdb6
VZ
950
951target_alias=$target
952case "$target_alias" in
953NONE)
954 case $nonopt in
955 NONE) target_alias=$host_alias ;;
956 *) target_alias=$nonopt ;;
957 esac ;;
958esac
959
960target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
961target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
962target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
963target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
964echo "$ac_t""$target" 1>&6
965
966echo $ac_n "checking build system type""... $ac_c" 1>&6
29fd3c0c 967echo "configure:968: checking build system type" >&5
698dcdb6
VZ
968
969build_alias=$build
970case "$build_alias" in
971NONE)
972 case $nonopt in
973 NONE) build_alias=$host_alias ;;
974 *) build_alias=$nonopt ;;
975 esac ;;
976esac
977
978build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
979build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
980build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
981build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
982echo "$ac_t""$build" 1>&6
983
984test "$host_alias" != "$target_alias" &&
7c66a493
VZ
985 test "$program_prefix$program_suffix$program_transform_name" = \
986 NONENONEs,x,x, &&
987 program_prefix=${target_alias}-
988
698dcdb6
VZ
989
990
10f2d63a 991WX_MAJOR_VERSION_NUMBER=2
37d403aa 992WX_MINOR_VERSION_NUMBER=3
6c01ec02 993WX_RELEASE_NUMBER=2
10f2d63a 994
10f2d63a 995WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 996WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 997
6c01ec02 998WX_CURRENT=1
6426998c
RL
999WX_REVISION=0
1000WX_AGE=0
1001
698dcdb6
VZ
1002
1003
10f2d63a
VZ
1004USE_UNIX=1
1005USE_WIN32=0
b12915c1 1006USE_BEOS=0
1216f52d 1007USE_MAC=0
b12915c1 1008
10f2d63a
VZ
1009USE_LINUX=
1010USE_SGI=
1011USE_HPUX=
1012USE_SYSV=
1013USE_SVR4=
1014USE_AIX=
1015USE_SUN=
1016USE_SOLARIS=
1017USE_SUNOS=
1018USE_ALPHA=
1019USE_OSF=
1020USE_BSD=
1021USE_FREEBSD=
95c8801c 1022USE_OPENBSD=
f6bcfd97 1023USE_NETBSD=
10f2d63a
VZ
1024USE_VMS=
1025USE_ULTRIX=
1026USE_CYGWIN=
1027USE_MINGW=
1028USE_DATA_GENERAL=
1029
ab9b9eab
VZ
1030NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1031
1e6feb95 1032ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
10f2d63a
VZ
1033
1034DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1035DEFAULT_wxUSE_MAC=0
1036DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1037DEFAULT_wxUSE_MOTIF=0
1038DEFAULT_wxUSE_MSW=0
e07802fc 1039DEFAULT_wxUSE_PM=0
1e6feb95 1040DEFAULT_wxUSE_WINE=0
10f2d63a
VZ
1041
1042DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1043DEFAULT_DEFAULT_wxUSE_MAC=0
1044DEFAULT_DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1045DEFAULT_DEFAULT_wxUSE_MOTIF=0
1046DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1047DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1048DEFAULT_DEFAULT_wxUSE_WINE=0
10f2d63a 1049
d6a55c4b
VZ
1050PROGRAM_EXT=
1051
10f2d63a
VZ
1052case "${host}" in
1053 *-hp-hpux* )
1054 USE_HPUX=1
1055 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1056 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
698dcdb6 1057 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1058#define __HPUX__ 1
1059EOF
1060
1061 ;;
1062 *-*-linux* )
1063 USE_LINUX=1
698dcdb6 1064 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1065#define __LINUX__ 1
1066EOF
1067
1068 TMP=`uname -m`
1069 if test "x$TMP" = "xalpha"; then
1070 USE_ALPHA=1
698dcdb6 1071 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1072#define __ALPHA__ 1
1073EOF
1074
1075 fi
1076 DEFAULT_DEFAULT_wxUSE_GTK=1
1077 ;;
1078 *-*-irix5* | *-*-irix6* )
1079 USE_SGI=1
1080 USE_SVR4=1
698dcdb6 1081 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1082#define __SGI__ 1
1083EOF
1084
698dcdb6 1085 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1086#define __SVR4__ 1
1087EOF
1088
1089 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1090 ;;
1091 *-*-solaris2* )
1092 USE_SUN=1
1093 USE_SOLARIS=1
1094 USE_SVR4=1
698dcdb6 1095 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1096#define __SUN__ 1
1097EOF
1098
698dcdb6 1099 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1100#define __SOLARIS__ 1
1101EOF
1102
698dcdb6 1103 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1104#define __SVR4__ 1
1105EOF
1106
1107 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1108 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1109 ;;
1110 *-*-sunos4* )
1111 USE_SUN=1
1112 USE_SUNOS=1
1113 USE_BSD=1
698dcdb6 1114 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1115#define __SUN__ 1
1116EOF
1117
698dcdb6 1118 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1119#define __SUNOS__ 1
1120EOF
1121
698dcdb6 1122 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1123#define __BSD__ 1
1124EOF
1125
1126 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1127 ;;
f6bcfd97 1128 *-*-freebsd*)
10f2d63a
VZ
1129 USE_BSD=1
1130 USE_FREEBSD=1
698dcdb6 1131 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1132#define __FREEBSD__ 1
1133EOF
1134
698dcdb6 1135 cat >> confdefs.h <<\EOF
10f2d63a 1136#define __BSD__ 1
95c8801c
VS
1137EOF
1138
1139 DEFAULT_DEFAULT_wxUSE_GTK=1
1140 ;;
1141 *-*-openbsd*)
1142 USE_BSD=1
1143 USE_OPENBSD=1
698dcdb6 1144 cat >> confdefs.h <<\EOF
95c8801c
VS
1145#define __FREEBSD__ 1
1146EOF
1147
698dcdb6 1148 cat >> confdefs.h <<\EOF
95c8801c 1149#define __OPENBSD__ 1
f6bcfd97
BP
1150EOF
1151
1152 DEFAULT_DEFAULT_wxUSE_GTK=1
1153 ;;
1154 *-*-netbsd*)
1155 USE_BSD=1
1156 USE_NETBSD=1
698dcdb6 1157 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1158#define __FREEBSD__ 1
1159EOF
1160
698dcdb6 1161 cat >> confdefs.h <<\EOF
f6bcfd97 1162#define __NETBSD__ 1
10f2d63a
VZ
1163EOF
1164
1165 DEFAULT_DEFAULT_wxUSE_GTK=1
1166 ;;
1167 *-*-osf* )
1168 USE_ALPHA=1
1169 USE_OSF=1
698dcdb6 1170 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1171#define __ALPHA__ 1
1172EOF
1173
698dcdb6 1174 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1175#define __OSF__ 1
1176EOF
1177
1178 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1179 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1180 ;;
1181 *-*-dgux5* )
1182 USE_ALPHA=1
1183 USE_SVR4=1
698dcdb6 1184 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1185#define __ALPHA__ 1
1186EOF
1187
698dcdb6 1188 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1189#define __SVR4__ 1
1190EOF
1191
1192 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1193 ;;
1194 *-*-sysv5* )
1195 USE_SYSV=1
1196 USE_SVR4=1
698dcdb6 1197 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1198#define __SYSV__ 1
1199EOF
1200
698dcdb6 1201 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1202#define __SVR4__ 1
1203EOF
1204
1205 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1206 ;;
1207 *-*-aix* )
1208 USE_AIX=1
1209 USE_SYSV=1
1210 USE_SVR4=1
698dcdb6 1211 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1212#define __AIX__ 1
1213EOF
1214
698dcdb6 1215 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1216#define __SYSV__ 1
1217EOF
1218
698dcdb6 1219 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1220#define __SVR4__ 1
1221EOF
1222
1223 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1224 ;;
1225
1c8183e2 1226 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1227 USE_UNIX=0
1228 USE_WIN32=1
698dcdb6 1229 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1230#define __WIN32__ 1
1231EOF
1232
698dcdb6 1233 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1234#define __WIN95__ 1
1235EOF
1236
698dcdb6 1237 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1238#define __WINDOWS__ 1
1239EOF
1240
698dcdb6 1241 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1242#define __GNUWIN32__ 1
1243EOF
1244
698dcdb6 1245 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1246#define STRICT 1
1247EOF
1248
698dcdb6 1249 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1250#define WINVER 0x0400
1251EOF
1252
cf27ef00 1253 PROGRAM_EXT=".exe"
10f2d63a
VZ
1254 DEFAULT_DEFAULT_wxUSE_MSW=1
1255 ;;
1256
1257 *-pc-os2_emx )
698dcdb6 1258 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1259#define __EMX__ 1
1260EOF
1261
cf27ef00 1262 PROGRAM_EXT=".exe"
e07802fc 1263 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1264 ;;
1265
b4085ce6
GD
1266 *-*-darwin* )
1267 USE_BSD=1
1268 USE_MAC=1
698dcdb6 1269 cat >> confdefs.h <<\EOF
b4085ce6
GD
1270#define __MAC__ 1
1271EOF
1272
698dcdb6 1273 cat >> confdefs.h <<\EOF
b4085ce6
GD
1274#define __BSD__ 1
1275EOF
1276
698dcdb6 1277 cat >> confdefs.h <<\EOF
b4085ce6
GD
1278#define __UNIX__ 1
1279EOF
1280
1281 DEFAULT_DEFAULT_wxUSE_MAC=1
1282 ;;
1283
b12915c1
VZ
1284 *-*-beos* )
1285 USE_BEOS=1
698dcdb6 1286 cat >> confdefs.h <<\EOF
b12915c1
VZ
1287#define __BEOS__ 1
1288EOF
1289
1290 ;;
1291
10f2d63a 1292 *)
698dcdb6 1293 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1294esac
1295
1296if test "$USE_UNIX" = 1 ; then
b12915c1 1297 wxUSE_UNIX=yes
698dcdb6 1298 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1299#define __UNIX__ 1
1300EOF
1301
698dcdb6 1302
b12915c1
VZ
1303 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1304 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1305fi
1306
1307if test "$USE_BEOS" = 1; then
1308 SRC_SUBDIRS="$SRC_SUBDIRS be"
1309 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1310fi
1311
1312if test "$USE_LINUX" = 1; then
698dcdb6 1313 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
29fd3c0c 1314echo "configure:1315: checking for gettext in -lc" >&5
698dcdb6
VZ
1315ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1316if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1317 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 1318else
698dcdb6
VZ
1319 ac_save_LIBS="$LIBS"
1320LIBS="-lc $LIBS"
1321cat > conftest.$ac_ext <<EOF
29fd3c0c 1322#line 1323 "configure"
698dcdb6
VZ
1323#include "confdefs.h"
1324/* Override any gcc2 internal prototype to avoid an error. */
1325/* We use char because int might match the return type of a gcc2
1326 builtin and then its argument prototype would still apply. */
1327char gettext();
10f2d63a 1328
698dcdb6
VZ
1329int main() {
1330gettext()
1331; return 0; }
1332EOF
29fd3c0c 1333if { (eval echo configure:1334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
1334 rm -rf conftest*
1335 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 1336else
698dcdb6
VZ
1337 echo "configure: failed program was:" >&5
1338 cat conftest.$ac_ext >&5
1339 rm -rf conftest*
1340 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 1341fi
698dcdb6
VZ
1342rm -f conftest*
1343LIBS="$ac_save_LIBS"
10f2d63a
VZ
1344
1345fi
698dcdb6
VZ
1346if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1347 echo "$ac_t""yes" 1>&6
1348 cat >> confdefs.h <<\EOF
1349#define wxHAVE_GLIBC2 1
1350EOF
10f2d63a
VZ
1351
1352else
698dcdb6 1353 echo "$ac_t""no" 1>&6
10f2d63a
VZ
1354fi
1355
1356fi
1357
1e487827 1358
1e487827 1359
6232543b 1360
10f2d63a
VZ
1361 wx_arg_cache_file="configarg.cache"
1362 echo "loading argument cache $wx_arg_cache_file"
1363 rm -f ${wx_arg_cache_file}.tmp
1364 touch ${wx_arg_cache_file}.tmp
1365 touch ${wx_arg_cache_file}
698dcdb6 1366
10f2d63a
VZ
1367
1368DEBUG_CONFIGURE=0
1369if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1370 DEFAULT_wxUSE_UNIVERSAL=no
1371
10f2d63a
VZ
1372 DEFAULT_wxUSE_THREADS=yes
1373
1374 DEFAULT_wxUSE_SHARED=yes
00cf1208 1375 DEFAULT_wxUSE_BURNT_NAME=no
1e6feb95 1376 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1377 DEFAULT_wxUSE_PROFILE=no
1378 DEFAULT_wxUSE_NO_DEPS=no
1379 DEFAULT_wxUSE_NO_RTTI=no
1380 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1381 DEFAULT_wxUSE_PERMISSIVE=no
1382 DEFAULT_wxUSE_DEBUG_FLAG=yes
1383 DEFAULT_wxUSE_DEBUG_INFO=yes
1384 DEFAULT_wxUSE_DEBUG_GDB=yes
1385 DEFAULT_wxUSE_MEM_TRACING=no
1386 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1387 DEFAULT_wxUSE_DMALLOC=no
1388 DEFAULT_wxUSE_APPLE_IEEE=no
1389
1390 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1391 DEFAULT_wxUSE_LOGWINDOW=no
1392 DEFAULT_wxUSE_LOGGUI=no
10f2d63a
VZ
1393
1394 DEFAULT_wxUSE_GUI=yes
1e6feb95 1395 DEFAULT_wxUSE_CONTROLS=no
10f2d63a
VZ
1396
1397 DEFAULT_wxUSE_ZLIB=no
1398 DEFAULT_wxUSE_LIBPNG=no
1399 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1400 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1401 DEFAULT_wxUSE_ODBC=no
3fed1840 1402 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1403 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1404
eb4efbdc 1405 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1406 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1407 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1408 DEFAULT_wxUSE_CMDLINE_PARSER=no
1409 DEFAULT_wxUSE_DATETIME=no
1410 DEFAULT_wxUSE_TIMEDATE=no
1411 DEFAULT_wxUSE_TIMER=no
1412 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1413 DEFAULT_wxUSE_FILE=no
1e6feb95 1414 DEFAULT_wxUSE_FFILE=no
10f2d63a 1415 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1416 DEFAULT_wxUSE_WAVE=no
1417 DEFAULT_wxUSE_INTL=no
1418 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1419 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1420 DEFAULT_wxUSE_STREAMS=no
1421 DEFAULT_wxUSE_SOCKETS=no
1422 DEFAULT_wxUSE_DIALUP_MANAGER=no
1423 DEFAULT_wxUSE_SERIAL=no
1424 DEFAULT_wxUSE_JOYSTICK=no
1425 DEFAULT_wxUSE_DYNLIB_CLASS=no
1426 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1427 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1428
1429 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1430 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1431 DEFAULT_wxUSE_POSTSCRIPT=no
1432
1433 DEFAULT_wxUSE_X_RESOURCES=no
1434 DEFAULT_wxUSE_CLIPBOARD=no
1435 DEFAULT_wxUSE_TOOLTIPS=no
1436 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1437 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1438 DEFAULT_wxUSE_SPLINES=no
1439
1440 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1441 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1442 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1443
1444 DEFAULT_wxUSE_PROLOGIO=no
1445 DEFAULT_wxUSE_RESOURCES=no
1446 DEFAULT_wxUSE_CONSTRAINTS=no
1447 DEFAULT_wxUSE_IPC=no
1448 DEFAULT_wxUSE_HELP=no
29fd3c0c
VS
1449 DEFAULT_wxUSE_MS_HTML_HELP=no
1450
3379ed37 1451 DEFAULT_wxUSE_WXHTML_HELP=no
10f2d63a
VZ
1452 DEFAULT_wxUSE_WXTREE=no
1453 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1454 DEFAULT_wxUSE_MIMETYPE=no
10f2d63a
VZ
1455
1456 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1457 DEFAULT_wxUSE_CHOICEDLG=no
1458 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1459 DEFAULT_wxUSE_DIRDLG=no
1e6feb95
VZ
1460 DEFAULT_wxUSE_FILEDLG=no
1461 DEFAULT_wxUSE_FONTDLG=no
1462 DEFAULT_wxUSE_MSGDLG=no
1463 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a
VZ
1464 DEFAULT_wxUSE_TEXTDLG=no
1465 DEFAULT_wxUSE_STARTUP_TIPS=no
1466 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1467 DEFAULT_wxUSE_WIZARDDLG=no
1468
1e6feb95 1469 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1470 DEFAULT_wxUSE_MINIFRAME=no
1471 DEFAULT_wxUSE_HTML=no
24528b0c 1472 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1473 DEFAULT_wxUSE_FS_INET=no
1474 DEFAULT_wxUSE_FS_ZIP=no
1475 DEFAULT_wxUSE_BUSYINFO=no
1476 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1477 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1478
1479 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1480 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1481 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1482 DEFAULT_wxUSE_CALCTRL=no
1483 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1484 DEFAULT_wxUSE_CHECKBOX=no
1485 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1486 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1487 DEFAULT_wxUSE_COMBOBOX=no
1488 DEFAULT_wxUSE_GAUGE=no
1489 DEFAULT_wxUSE_GRID=no
1490 DEFAULT_wxUSE_NEW_GRID=no
1491 DEFAULT_wxUSE_IMAGLIST=no
1492 DEFAULT_wxUSE_LISTBOX=no
1493 DEFAULT_wxUSE_LISTCTRL=no
1494 DEFAULT_wxUSE_NOTEBOOK=no
1495 DEFAULT_wxUSE_RADIOBOX=no
1496 DEFAULT_wxUSE_RADIOBTN=no
1497 DEFAULT_wxUSE_SASH=no
1498 DEFAULT_wxUSE_SCROLLBAR=no
1499 DEFAULT_wxUSE_SLIDER=no
1500 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1501 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1502 DEFAULT_wxUSE_SPLITTER=no
1503 DEFAULT_wxUSE_STATBMP=no
1504 DEFAULT_wxUSE_STATBOX=no
1505 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1506 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1507 DEFAULT_wxUSE_STATUSBAR=yes
1508 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1509 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1510 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1511 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1512 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1513 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1514 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1515 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
1516
1517 DEFAULT_wxUSE_UNICODE=no
1518 DEFAULT_wxUSE_WCSRTOMBS=no
1519
0046ff7c 1520 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1521 DEFAULT_wxUSE_GIF=no
1522 DEFAULT_wxUSE_PCX=no
1523 DEFAULT_wxUSE_PNM=no
0046ff7c 1524 DEFAULT_wxUSE_XPM=no
10f2d63a 1525else
1e6feb95
VZ
1526 DEFAULT_wxUSE_UNIVERSAL=no
1527
10f2d63a
VZ
1528 DEFAULT_wxUSE_THREADS=yes
1529
1530 DEFAULT_wxUSE_SHARED=yes
00cf1208 1531 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1532 DEFAULT_wxUSE_OPTIMISE=yes
1533 DEFAULT_wxUSE_PROFILE=no
1534 DEFAULT_wxUSE_NO_DEPS=no
1535 DEFAULT_wxUSE_NO_RTTI=no
1536 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1537 DEFAULT_wxUSE_PERMISSIVE=no
1538 DEFAULT_wxUSE_DEBUG_FLAG=no
1539 DEFAULT_wxUSE_DEBUG_INFO=no
1540 DEFAULT_wxUSE_DEBUG_GDB=no
1541 DEFAULT_wxUSE_MEM_TRACING=no
1542 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1543 DEFAULT_wxUSE_DMALLOC=no
1544 DEFAULT_wxUSE_APPLE_IEEE=yes
1545
1546 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1547 DEFAULT_wxUSE_LOGWINDOW=yes
1548 DEFAULT_wxUSE_LOGGUI=yes
10f2d63a
VZ
1549
1550 DEFAULT_wxUSE_GUI=yes
1551
1552 DEFAULT_wxUSE_ZLIB=yes
1553 DEFAULT_wxUSE_LIBPNG=yes
1554 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1555 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1556 DEFAULT_wxUSE_ODBC=no
3fed1840 1557 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1558 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1559
eb4efbdc 1560 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1561 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1562 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1563 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1564 DEFAULT_wxUSE_DATETIME=yes
1565 DEFAULT_wxUSE_TIMEDATE=no
1566 DEFAULT_wxUSE_TIMER=yes
1567 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1568 DEFAULT_wxUSE_FILE=yes
1e6feb95 1569 DEFAULT_wxUSE_FFILE=yes
10f2d63a 1570 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1571 DEFAULT_wxUSE_WAVE=no
1572 DEFAULT_wxUSE_INTL=yes
1573 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1574 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1575 DEFAULT_wxUSE_STREAMS=yes
1576 DEFAULT_wxUSE_SOCKETS=yes
1577 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1578 DEFAULT_wxUSE_SERIAL=yes
1579 DEFAULT_wxUSE_JOYSTICK=yes
1580 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1581 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1582 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1583
1584 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1585 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1586 DEFAULT_wxUSE_POSTSCRIPT=yes
1587
1588 DEFAULT_wxUSE_X_RESOURCES=no
1589 DEFAULT_wxUSE_CLIPBOARD=yes
1590 DEFAULT_wxUSE_TOOLTIPS=yes
1591 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1592 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1593 DEFAULT_wxUSE_SPLINES=yes
1594
1595 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1596 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1597 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1598
1599 DEFAULT_wxUSE_PROLOGIO=yes
1600 DEFAULT_wxUSE_RESOURCES=yes
1601 DEFAULT_wxUSE_CONSTRAINTS=yes
1602 DEFAULT_wxUSE_IPC=yes
1603 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1604 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1605 DEFAULT_wxUSE_WXHTML_HELP=yes
10f2d63a
VZ
1606 DEFAULT_wxUSE_WXTREE=yes
1607 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1608 DEFAULT_wxUSE_MIMETYPE=yes
10f2d63a
VZ
1609
1610 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1611 DEFAULT_wxUSE_CHOICEDLG=yes
1612 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1613 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95
VZ
1614 DEFAULT_wxUSE_FILEDLG=yes
1615 DEFAULT_wxUSE_FONTDLG=yes
1616 DEFAULT_wxUSE_MSGDLG=yes
1617 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a
VZ
1618 DEFAULT_wxUSE_TEXTDLG=yes
1619 DEFAULT_wxUSE_STARTUP_TIPS=yes
1620 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1621 DEFAULT_wxUSE_WIZARDDLG=yes
1622
1e6feb95 1623 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1624 DEFAULT_wxUSE_MINIFRAME=yes
1625 DEFAULT_wxUSE_HTML=yes
24528b0c 1626 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1627 DEFAULT_wxUSE_FS_INET=yes
1628 DEFAULT_wxUSE_FS_ZIP=yes
1629 DEFAULT_wxUSE_BUSYINFO=yes
1630 DEFAULT_wxUSE_ZIPSTREAM=yes
1631 DEFAULT_wxUSE_VALIDATORS=yes
1632
1633 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1634 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1635 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1636 DEFAULT_wxUSE_CALCTRL=yes
1637 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1638 DEFAULT_wxUSE_CHECKBOX=yes
1639 DEFAULT_wxUSE_CHECKLST=yes
1640 DEFAULT_wxUSE_CHOICE=yes
1641 DEFAULT_wxUSE_COMBOBOX=yes
1642 DEFAULT_wxUSE_GAUGE=yes
1643 DEFAULT_wxUSE_GRID=yes
cc977e5f 1644 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1645 DEFAULT_wxUSE_IMAGLIST=yes
1646 DEFAULT_wxUSE_LISTBOX=yes
1647 DEFAULT_wxUSE_LISTCTRL=yes
1648 DEFAULT_wxUSE_NOTEBOOK=yes
1649 DEFAULT_wxUSE_RADIOBOX=yes
1650 DEFAULT_wxUSE_RADIOBTN=yes
1651 DEFAULT_wxUSE_SASH=yes
1652 DEFAULT_wxUSE_SCROLLBAR=yes
1653 DEFAULT_wxUSE_SLIDER=yes
1654 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1655 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1656 DEFAULT_wxUSE_SPLITTER=yes
1657 DEFAULT_wxUSE_STATBMP=yes
1658 DEFAULT_wxUSE_STATBOX=yes
1659 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1660 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1661 DEFAULT_wxUSE_STATUSBAR=yes
1662 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1663 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1664 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1665 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1666 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1667 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1668 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1669 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
1670
1671 DEFAULT_wxUSE_UNICODE=no
1672 DEFAULT_wxUSE_WCSRTOMBS=no
1673
0046ff7c 1674 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1675 DEFAULT_wxUSE_GIF=yes
1676 DEFAULT_wxUSE_PCX=yes
1677 DEFAULT_wxUSE_PNM=yes
0046ff7c 1678 DEFAULT_wxUSE_XPM=yes
10f2d63a
VZ
1679fi
1680
698dcdb6
VZ
1681
1682
10f2d63a
VZ
1683for toolkit in `echo $ALL_TOOLKITS`; do
1684 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1685 if test "x$LINE" != x ; then
1686 has_toolkit_in_cache=1
1687 eval "DEFAULT_$LINE"
1688 eval "CACHE_$toolkit=1"
1689 fi
1690done
1691
698dcdb6
VZ
1692
1693
1694 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
29fd3c0c 1695echo "configure:1696: checking for --enable-gui" >&5
10f2d63a
VZ
1696 no_cache=0
1697 # Check whether --enable-gui or --disable-gui was given.
1698if test "${enable_gui+set}" = set; then
1699 enableval="$enable_gui"
698dcdb6 1700
10f2d63a
VZ
1701 if test "$enableval" = yes; then
1702 ac_cv_use_gui='wxUSE_GUI=yes'
1703 else
1704 ac_cv_use_gui='wxUSE_GUI=no'
1705 fi
698dcdb6 1706
10f2d63a 1707else
698dcdb6 1708
10f2d63a
VZ
1709 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1710 if test "x$LINE" != x ; then
1711 eval "DEFAULT_$LINE"
1712 else
1713 no_cache=1
1714 fi
1715
1716 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1717
1718fi
10f2d63a
VZ
1719
1720
1721 eval "$ac_cv_use_gui"
1722 if test "$no_cache" != 1; then
1723 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1724 fi
1725
1726 if test "$wxUSE_GUI" = yes; then
698dcdb6 1727 echo "$ac_t""yes" 1>&6
10f2d63a 1728 else
698dcdb6 1729 echo "$ac_t""no" 1>&6
10f2d63a 1730 fi
698dcdb6 1731
10f2d63a 1732
b12915c1 1733if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1734
1e6feb95
VZ
1735
1736 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
29fd3c0c 1737echo "configure:1738: checking for --enable-universal" >&5
1e6feb95
VZ
1738 no_cache=0
1739 # Check whether --enable-universal or --disable-universal was given.
1740if test "${enable_universal+set}" = set; then
1741 enableval="$enable_universal"
1742
1743 if test "$enableval" = yes; then
1744 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1745 else
1746 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1747 fi
1748
1749else
1750
1751 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1752 if test "x$LINE" != x ; then
1753 eval "DEFAULT_$LINE"
1754 else
1755 no_cache=1
1756 fi
1757
1758 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1759
1760fi
1761
1762
1763 eval "$ac_cv_use_universal"
1764 if test "$no_cache" != 1; then
1765 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1766 fi
1767
1768 if test "$wxUSE_UNIVERSAL" = yes; then
1769 echo "$ac_t""yes" 1>&6
1770 else
1771 echo "$ac_t""no" 1>&6
1772 fi
1773
10f2d63a
VZ
1774# Check whether --with-gtk or --without-gtk was given.
1775if test "${with_gtk+set}" = set; then
1776 withval="$with_gtk"
1777 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1778fi
10f2d63a
VZ
1779
1780# Check whether --with-motif or --without-motif was given.
1781if test "${with_motif+set}" = set; then
1782 withval="$with_motif"
1783 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1784fi
10f2d63a 1785
b4085ce6
GD
1786# Check whether --with-mac or --without-mac was given.
1787if test "${with_mac+set}" = set; then
1788 withval="$with_mac"
1789 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1790fi
b4085ce6 1791
10f2d63a
VZ
1792# Check whether --with-wine or --without-wine was given.
1793if test "${with_wine+set}" = set; then
1794 withval="$with_wine"
1795 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1796fi
10f2d63a
VZ
1797
1798# Check whether --with-cygwin or --without-cygwin was given.
1799if test "${with_cygwin+set}" = set; then
1800 withval="$with_cygwin"
1801 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
698dcdb6 1802fi
10f2d63a
VZ
1803
1804# Check whether --with-mingw or --without-mingw was given.
1805if test "${with_mingw+set}" = set; then
1806 withval="$with_mingw"
1807 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
698dcdb6 1808fi
10f2d63a 1809
e07802fc
VZ
1810# Check whether --with-pm or --without-pm was given.
1811if test "${with_pm+set}" = set; then
1812 withval="$with_pm"
1813 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1814fi
1815
1e6feb95
VZ
1816# Check whether --with-mgl or --without-mgl was given.
1817if test "${with_mgl+set}" = set; then
1818 withval="$with_mgl"
1819 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1820fi
1821
10f2d63a 1822
8168de4c
VZ
1823# Check whether --enable-gtk2 or --disable-gtk2 was given.
1824if test "${enable_gtk2+set}" = set; then
1825 enableval="$enable_gtk2"
1826 wxUSE_GTK2=1
10f2d63a 1827else
8168de4c 1828 wxUSE_GTK2=0
698dcdb6
VZ
1829fi
1830
703e0a69 1831
1e487827 1832
698dcdb6 1833 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
29fd3c0c 1834echo "configure:1835: checking for --with-libpng" >&5
698dcdb6
VZ
1835 no_cache=0
1836 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1837if test "${with_libpng+set}" = set; then
1838 withval="$with_libpng"
698dcdb6 1839
10f2d63a 1840 if test "$withval" = yes; then
b12915c1 1841 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1842 elif test "$withval" = no; then
b12915c1 1843 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1844 elif test "$withval" = sys; then
1845 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1846 else
698dcdb6 1847 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1848 fi
698dcdb6 1849
10f2d63a 1850else
698dcdb6 1851
b12915c1 1852 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1853 if test "x$LINE" != x ; then
1854 eval "DEFAULT_$LINE"
1855 else
1856 no_cache=1
1857 fi
1858
b12915c1 1859 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1860
1861fi
10f2d63a
VZ
1862
1863
b12915c1 1864 eval "$ac_cv_use_libpng"
10f2d63a 1865 if test "$no_cache" != 1; then
b12915c1 1866 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1867 fi
1868
b12915c1 1869 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1870 echo "$ac_t""yes" 1>&6
422107f9 1871 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1872 echo "$ac_t""no" 1>&6
422107f9 1873 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1874 echo "$ac_t""system version" 1>&6
422107f9 1875 else
698dcdb6 1876 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1877 fi
698dcdb6 1878
10f2d63a 1879
698dcdb6 1880 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
29fd3c0c 1881echo "configure:1882: checking for --with-libjpeg" >&5
10f2d63a 1882 no_cache=0
698dcdb6 1883 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1884if test "${with_libjpeg+set}" = set; then
1885 withval="$with_libjpeg"
698dcdb6 1886
10f2d63a 1887 if test "$withval" = yes; then
b12915c1 1888 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1889 elif test "$withval" = no; then
b12915c1 1890 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1891 elif test "$withval" = sys; then
1892 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1893 else
698dcdb6 1894 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1895 fi
698dcdb6 1896
10f2d63a 1897else
698dcdb6 1898
b12915c1 1899 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1900 if test "x$LINE" != x ; then
1901 eval "DEFAULT_$LINE"
1902 else
1903 no_cache=1
1904 fi
1905
b12915c1 1906 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
1907
1908fi
10f2d63a
VZ
1909
1910
b12915c1 1911 eval "$ac_cv_use_libjpeg"
10f2d63a 1912 if test "$no_cache" != 1; then
b12915c1 1913 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1914 fi
1915
b12915c1 1916 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 1917 echo "$ac_t""yes" 1>&6
422107f9 1918 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 1919 echo "$ac_t""no" 1>&6
422107f9 1920 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 1921 echo "$ac_t""system version" 1>&6
422107f9 1922 else
698dcdb6 1923 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1924 fi
698dcdb6 1925
10f2d63a 1926
698dcdb6 1927 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
29fd3c0c 1928echo "configure:1929: checking for --with-libtiff" >&5
10f2d63a 1929 no_cache=0
698dcdb6 1930 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
1931if test "${with_libtiff+set}" = set; then
1932 withval="$with_libtiff"
698dcdb6 1933
10f2d63a 1934 if test "$withval" = yes; then
b12915c1 1935 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1936 elif test "$withval" = no; then
b12915c1 1937 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1938 elif test "$withval" = sys; then
1939 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1940 else
698dcdb6 1941 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1942 fi
698dcdb6 1943
10f2d63a 1944else
698dcdb6 1945
b12915c1 1946 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1947 if test "x$LINE" != x ; then
1948 eval "DEFAULT_$LINE"
1949 else
1950 no_cache=1
1951 fi
1952
b12915c1 1953 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
1954
1955fi
10f2d63a
VZ
1956
1957
b12915c1 1958 eval "$ac_cv_use_libtiff"
10f2d63a 1959 if test "$no_cache" != 1; then
b12915c1 1960 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1961 fi
1962
b12915c1 1963 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 1964 echo "$ac_t""yes" 1>&6
0dcf9893 1965 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 1966 echo "$ac_t""no" 1>&6
0dcf9893 1967 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 1968 echo "$ac_t""system version" 1>&6
0dcf9893 1969 else
698dcdb6 1970 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1971 fi
698dcdb6 1972
10f2d63a 1973
698dcdb6 1974 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
29fd3c0c 1975echo "configure:1976: checking for --with-freetype" >&5
3fed1840 1976 no_cache=0
698dcdb6 1977 # Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
1978if test "${with_freetype+set}" = set; then
1979 withval="$with_freetype"
698dcdb6 1980
3fed1840
RR
1981 if test "$withval" = yes; then
1982 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1983 elif test "$withval" = no; then
1984 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1985 elif test "$withval" = sys; then
1986 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1987 else
698dcdb6 1988 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 1989 fi
698dcdb6 1990
3fed1840 1991else
698dcdb6 1992
3fed1840
RR
1993 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
1994 if test "x$LINE" != x ; then
1995 eval "DEFAULT_$LINE"
1996 else
1997 no_cache=1
1998 fi
1999
2000 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
698dcdb6
VZ
2001
2002fi
3fed1840
RR
2003
2004
2005 eval "$ac_cv_use_freetype"
2006 if test "$no_cache" != 1; then
2007 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2008 fi
2009
2010 if test "$wxUSE_FREETYPE" = yes; then
698dcdb6 2011 echo "$ac_t""yes" 1>&6
3fed1840 2012 elif test "$wxUSE_FREETYPE" = no; then
698dcdb6 2013 echo "$ac_t""no" 1>&6
3fed1840 2014 elif test "$wxUSE_FREETYPE" = sys; then
698dcdb6 2015 echo "$ac_t""system version" 1>&6
3fed1840 2016 else
698dcdb6 2017 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 2018 fi
698dcdb6 2019
3fed1840 2020
698dcdb6 2021 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
29fd3c0c 2022echo "configure:2023: checking for --with-opengl" >&5
10f2d63a 2023 no_cache=0
698dcdb6 2024 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2025if test "${with_opengl+set}" = set; then
2026 withval="$with_opengl"
698dcdb6 2027
10f2d63a 2028 if test "$withval" = yes; then
b12915c1 2029 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2030 else
b12915c1 2031 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2032 fi
698dcdb6 2033
10f2d63a 2034else
698dcdb6 2035
b12915c1 2036 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2037 if test "x$LINE" != x ; then
2038 eval "DEFAULT_$LINE"
2039 else
2040 no_cache=1
2041 fi
2042
b12915c1 2043 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2044
2045fi
10f2d63a
VZ
2046
2047
b12915c1 2048 eval "$ac_cv_use_opengl"
10f2d63a 2049 if test "$no_cache" != 1; then
b12915c1 2050 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2051 fi
2052
b12915c1 2053 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2054 echo "$ac_t""yes" 1>&6
10f2d63a 2055 else
698dcdb6 2056 echo "$ac_t""no" 1>&6
10f2d63a 2057 fi
698dcdb6 2058
10f2d63a 2059
b12915c1
VZ
2060fi
2061
1e487827 2062
698dcdb6 2063 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
29fd3c0c 2064echo "configure:2065: checking for --with-dmalloc" >&5
698dcdb6
VZ
2065 no_cache=0
2066 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2067if test "${with_dmalloc+set}" = set; then
2068 withval="$with_dmalloc"
698dcdb6 2069
c7a2bf27 2070 if test "$withval" = yes; then
b12915c1 2071 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2072 else
b12915c1 2073 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2074 fi
698dcdb6 2075
c7a2bf27 2076else
698dcdb6 2077
b12915c1 2078 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2079 if test "x$LINE" != x ; then
2080 eval "DEFAULT_$LINE"
2081 else
2082 no_cache=1
2083 fi
2084
b12915c1 2085 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2086
2087fi
c7a2bf27
RR
2088
2089
b12915c1 2090 eval "$ac_cv_use_dmalloc"
c7a2bf27 2091 if test "$no_cache" != 1; then
b12915c1 2092 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2093 fi
2094
b12915c1 2095 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2096 echo "$ac_t""yes" 1>&6
c7a2bf27 2097 else
698dcdb6 2098 echo "$ac_t""no" 1>&6
c7a2bf27 2099 fi
698dcdb6 2100
c7a2bf27 2101
698dcdb6 2102 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
29fd3c0c 2103echo "configure:2104: checking for --with-zlib" >&5
10f2d63a 2104 no_cache=0
698dcdb6 2105 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2106if test "${with_zlib+set}" = set; then
2107 withval="$with_zlib"
698dcdb6 2108
10f2d63a 2109 if test "$withval" = yes; then
b12915c1 2110 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2111 elif test "$withval" = no; then
b12915c1 2112 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2113 elif test "$withval" = sys; then
2114 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2115 else
698dcdb6 2116 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2117 fi
698dcdb6 2118
10f2d63a 2119else
698dcdb6 2120
b12915c1 2121 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2122 if test "x$LINE" != x ; then
2123 eval "DEFAULT_$LINE"
2124 else
2125 no_cache=1
2126 fi
2127
b12915c1 2128 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2129
2130fi
10f2d63a
VZ
2131
2132
b12915c1 2133 eval "$ac_cv_use_zlib"
10f2d63a 2134 if test "$no_cache" != 1; then
b12915c1 2135 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2136 fi
2137
b12915c1 2138 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2139 echo "$ac_t""yes" 1>&6
422107f9 2140 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2141 echo "$ac_t""no" 1>&6
422107f9 2142 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2143 echo "$ac_t""system version" 1>&6
422107f9 2144 else
698dcdb6 2145 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2146 fi
698dcdb6 2147
10f2d63a 2148
698dcdb6 2149 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
29fd3c0c 2150echo "configure:2151: checking for --with-odbc" >&5
10f2d63a 2151 no_cache=0
698dcdb6 2152 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2153if test "${with_odbc+set}" = set; then
2154 withval="$with_odbc"
698dcdb6 2155
10f2d63a
VZ
2156 if test "$withval" = yes; then
2157 ac_cv_use_odbc='wxUSE_ODBC=yes'
2158 else
2159 ac_cv_use_odbc='wxUSE_ODBC=no'
2160 fi
698dcdb6 2161
10f2d63a 2162else
698dcdb6 2163
10f2d63a
VZ
2164 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2165 if test "x$LINE" != x ; then
2166 eval "DEFAULT_$LINE"
2167 else
2168 no_cache=1
2169 fi
2170
2171 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2172
2173fi
10f2d63a
VZ
2174
2175
2176 eval "$ac_cv_use_odbc"
2177 if test "$no_cache" != 1; then
2178 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2179 fi
2180
2181 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2182 echo "$ac_t""yes" 1>&6
10f2d63a 2183 else
698dcdb6 2184 echo "$ac_t""no" 1>&6
10f2d63a 2185 fi
698dcdb6
VZ
2186
2187
10f2d63a 2188
698dcdb6
VZ
2189
2190
2191 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
29fd3c0c 2192echo "configure:2193: checking for --enable-shared" >&5
10f2d63a
VZ
2193 no_cache=0
2194 # Check whether --enable-shared or --disable-shared was given.
2195if test "${enable_shared+set}" = set; then
2196 enableval="$enable_shared"
698dcdb6 2197
10f2d63a
VZ
2198 if test "$enableval" = yes; then
2199 ac_cv_use_shared='wxUSE_SHARED=yes'
2200 else
2201 ac_cv_use_shared='wxUSE_SHARED=no'
2202 fi
698dcdb6 2203
10f2d63a 2204else
698dcdb6 2205
10f2d63a
VZ
2206 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2207 if test "x$LINE" != x ; then
2208 eval "DEFAULT_$LINE"
2209 else
2210 no_cache=1
2211 fi
2212
2213 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2214
2215fi
10f2d63a
VZ
2216
2217
2218 eval "$ac_cv_use_shared"
2219 if test "$no_cache" != 1; then
2220 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2221 fi
2222
2223 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2224 echo "$ac_t""yes" 1>&6
10f2d63a 2225 else
698dcdb6 2226 echo "$ac_t""no" 1>&6
10f2d63a 2227 fi
698dcdb6 2228
10f2d63a 2229
698dcdb6 2230 echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6
29fd3c0c 2231echo "configure:2232: checking for --enable-burnt_name" >&5
00cf1208
RR
2232 no_cache=0
2233 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2234if test "${enable_burnt_name+set}" = set; then
2235 enableval="$enable_burnt_name"
698dcdb6 2236
00cf1208
RR
2237 if test "$enableval" = yes; then
2238 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2239 else
2240 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2241 fi
698dcdb6 2242
00cf1208 2243else
698dcdb6 2244
00cf1208
RR
2245 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2246 if test "x$LINE" != x ; then
2247 eval "DEFAULT_$LINE"
2248 else
2249 no_cache=1
2250 fi
2251
2252 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
698dcdb6
VZ
2253
2254fi
00cf1208
RR
2255
2256
2257 eval "$ac_cv_use_burnt_name"
2258 if test "$no_cache" != 1; then
2259 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2260 fi
2261
2262 if test "$wxUSE_BURNT_NAME" = yes; then
698dcdb6 2263 echo "$ac_t""yes" 1>&6
00cf1208 2264 else
698dcdb6 2265 echo "$ac_t""no" 1>&6
00cf1208 2266 fi
698dcdb6 2267
00cf1208 2268
698dcdb6 2269 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
29fd3c0c 2270echo "configure:2271: checking for --enable-optimise" >&5
10f2d63a
VZ
2271 no_cache=0
2272 # Check whether --enable-optimise or --disable-optimise was given.
2273if test "${enable_optimise+set}" = set; then
2274 enableval="$enable_optimise"
698dcdb6 2275
10f2d63a
VZ
2276 if test "$enableval" = yes; then
2277 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2278 else
2279 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2280 fi
698dcdb6 2281
10f2d63a 2282else
698dcdb6 2283
10f2d63a
VZ
2284 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2285 if test "x$LINE" != x ; then
2286 eval "DEFAULT_$LINE"
2287 else
2288 no_cache=1
2289 fi
2290
2291 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2292
2293fi
10f2d63a
VZ
2294
2295
2296 eval "$ac_cv_use_optimise"
2297 if test "$no_cache" != 1; then
2298 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2299 fi
2300
2301 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2302 echo "$ac_t""yes" 1>&6
10f2d63a 2303 else
698dcdb6 2304 echo "$ac_t""no" 1>&6
10f2d63a 2305 fi
698dcdb6 2306
10f2d63a 2307
698dcdb6 2308 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
29fd3c0c 2309echo "configure:2310: checking for --enable-debug" >&5
10f2d63a
VZ
2310 no_cache=0
2311 # Check whether --enable-debug or --disable-debug was given.
2312if test "${enable_debug+set}" = set; then
2313 enableval="$enable_debug"
698dcdb6 2314
10f2d63a
VZ
2315 if test "$enableval" = yes; then
2316 ac_cv_use_debug='wxUSE_DEBUG=yes'
2317 else
2318 ac_cv_use_debug='wxUSE_DEBUG=no'
2319 fi
698dcdb6 2320
10f2d63a 2321else
698dcdb6 2322
10f2d63a
VZ
2323 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2324 if test "x$LINE" != x ; then
2325 eval "DEFAULT_$LINE"
2326 else
2327 no_cache=1
2328 fi
2329
2330 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2331
2332fi
10f2d63a
VZ
2333
2334
2335 eval "$ac_cv_use_debug"
2336 if test "$no_cache" != 1; then
2337 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2338 fi
2339
2340 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2341 echo "$ac_t""yes" 1>&6
10f2d63a 2342 else
698dcdb6 2343 echo "$ac_t""no" 1>&6
10f2d63a 2344 fi
698dcdb6 2345
10f2d63a
VZ
2346
2347if test "$wxUSE_DEBUG" = "yes"; then
2348 DEFAULT_wxUSE_DEBUG_FLAG=yes
2349 DEFAULT_wxUSE_DEBUG_INFO=yes
2350elif test "$wxUSE_DEBUG" = "no"; then
2351 DEFAULT_wxUSE_DEBUG_FLAG=no
2352 DEFAULT_wxUSE_DEBUG_INFO=no
2353fi
2354
698dcdb6
VZ
2355
2356 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
29fd3c0c 2357echo "configure:2358: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2358 no_cache=0
2359 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2360if test "${enable_debug_flag+set}" = set; then
2361 enableval="$enable_debug_flag"
698dcdb6 2362
10f2d63a
VZ
2363 if test "$enableval" = yes; then
2364 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2365 else
2366 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2367 fi
698dcdb6 2368
10f2d63a 2369else
698dcdb6 2370
10f2d63a
VZ
2371 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2372 if test "x$LINE" != x ; then
2373 eval "DEFAULT_$LINE"
2374 else
2375 no_cache=1
2376 fi
2377
2378 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2379
2380fi
10f2d63a
VZ
2381
2382
2383 eval "$ac_cv_use_debug_flag"
2384 if test "$no_cache" != 1; then
2385 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2386 fi
2387
2388 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2389 echo "$ac_t""yes" 1>&6
10f2d63a 2390 else
698dcdb6 2391 echo "$ac_t""no" 1>&6
10f2d63a 2392 fi
698dcdb6 2393
10f2d63a 2394
698dcdb6 2395 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
29fd3c0c 2396echo "configure:2397: checking for --enable-debug_info" >&5
10f2d63a
VZ
2397 no_cache=0
2398 # Check whether --enable-debug_info or --disable-debug_info was given.
2399if test "${enable_debug_info+set}" = set; then
2400 enableval="$enable_debug_info"
698dcdb6 2401
10f2d63a
VZ
2402 if test "$enableval" = yes; then
2403 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2404 else
2405 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2406 fi
698dcdb6 2407
10f2d63a 2408else
698dcdb6 2409
10f2d63a
VZ
2410 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2411 if test "x$LINE" != x ; then
2412 eval "DEFAULT_$LINE"
2413 else
2414 no_cache=1
2415 fi
2416
2417 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2418
2419fi
10f2d63a
VZ
2420
2421
2422 eval "$ac_cv_use_debug_info"
2423 if test "$no_cache" != 1; then
2424 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2425 fi
2426
2427 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2428 echo "$ac_t""yes" 1>&6
10f2d63a 2429 else
698dcdb6 2430 echo "$ac_t""no" 1>&6
10f2d63a 2431 fi
698dcdb6 2432
10f2d63a 2433
698dcdb6 2434 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
29fd3c0c 2435echo "configure:2436: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2436 no_cache=0
2437 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2438if test "${enable_debug_gdb+set}" = set; then
2439 enableval="$enable_debug_gdb"
698dcdb6 2440
10f2d63a
VZ
2441 if test "$enableval" = yes; then
2442 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2443 else
2444 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2445 fi
698dcdb6 2446
10f2d63a 2447else
698dcdb6 2448
10f2d63a
VZ
2449 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2450 if test "x$LINE" != x ; then
2451 eval "DEFAULT_$LINE"
2452 else
2453 no_cache=1
2454 fi
2455
2456 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2457
2458fi
10f2d63a
VZ
2459
2460
2461 eval "$ac_cv_use_debug_gdb"
2462 if test "$no_cache" != 1; then
2463 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2464 fi
2465
2466 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2467 echo "$ac_t""yes" 1>&6
10f2d63a 2468 else
698dcdb6 2469 echo "$ac_t""no" 1>&6
10f2d63a 2470 fi
698dcdb6 2471
10f2d63a 2472
698dcdb6 2473 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
29fd3c0c 2474echo "configure:2475: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2475 no_cache=0
2476 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2477if test "${enable_debug_cntxt+set}" = set; then
2478 enableval="$enable_debug_cntxt"
698dcdb6 2479
10f2d63a
VZ
2480 if test "$enableval" = yes; then
2481 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2482 else
2483 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2484 fi
698dcdb6 2485
10f2d63a 2486else
698dcdb6 2487
10f2d63a
VZ
2488 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2489 if test "x$LINE" != x ; then
2490 eval "DEFAULT_$LINE"
2491 else
2492 no_cache=1
2493 fi
2494
2495 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2496
2497fi
10f2d63a
VZ
2498
2499
2500 eval "$ac_cv_use_debug_cntxt"
2501 if test "$no_cache" != 1; then
2502 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2503 fi
2504
2505 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2506 echo "$ac_t""yes" 1>&6
10f2d63a 2507 else
698dcdb6 2508 echo "$ac_t""no" 1>&6
10f2d63a 2509 fi
698dcdb6 2510
10f2d63a 2511
698dcdb6 2512 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
29fd3c0c 2513echo "configure:2514: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2514 no_cache=0
2515 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2516if test "${enable_mem_tracing+set}" = set; then
2517 enableval="$enable_mem_tracing"
698dcdb6 2518
10f2d63a
VZ
2519 if test "$enableval" = yes; then
2520 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2521 else
2522 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2523 fi
698dcdb6 2524
10f2d63a 2525else
698dcdb6 2526
10f2d63a
VZ
2527 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2528 if test "x$LINE" != x ; then
2529 eval "DEFAULT_$LINE"
2530 else
2531 no_cache=1
2532 fi
2533
2534 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2535
2536fi
10f2d63a
VZ
2537
2538
2539 eval "$ac_cv_use_mem_tracing"
2540 if test "$no_cache" != 1; then
2541 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2542 fi
2543
2544 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2545 echo "$ac_t""yes" 1>&6
10f2d63a 2546 else
698dcdb6 2547 echo "$ac_t""no" 1>&6
10f2d63a 2548 fi
698dcdb6 2549
10f2d63a 2550
698dcdb6 2551 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
29fd3c0c 2552echo "configure:2553: checking for --enable-profile" >&5
10f2d63a
VZ
2553 no_cache=0
2554 # Check whether --enable-profile or --disable-profile was given.
2555if test "${enable_profile+set}" = set; then
2556 enableval="$enable_profile"
698dcdb6 2557
10f2d63a
VZ
2558 if test "$enableval" = yes; then
2559 ac_cv_use_profile='wxUSE_PROFILE=yes'
2560 else
2561 ac_cv_use_profile='wxUSE_PROFILE=no'
2562 fi
698dcdb6 2563
10f2d63a 2564else
698dcdb6 2565
10f2d63a
VZ
2566 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2567 if test "x$LINE" != x ; then
2568 eval "DEFAULT_$LINE"
2569 else
2570 no_cache=1
2571 fi
2572
2573 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2574
2575fi
10f2d63a
VZ
2576
2577
2578 eval "$ac_cv_use_profile"
2579 if test "$no_cache" != 1; then
2580 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2581 fi
2582
2583 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2584 echo "$ac_t""yes" 1>&6
10f2d63a 2585 else
698dcdb6 2586 echo "$ac_t""no" 1>&6
10f2d63a 2587 fi
698dcdb6 2588
10f2d63a 2589
698dcdb6 2590 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
29fd3c0c 2591echo "configure:2592: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2592 no_cache=0
2593 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2594if test "${enable_no_rtti+set}" = set; then
2595 enableval="$enable_no_rtti"
698dcdb6 2596
10f2d63a
VZ
2597 if test "$enableval" = yes; then
2598 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2599 else
2600 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2601 fi
698dcdb6 2602
10f2d63a 2603else
698dcdb6 2604
10f2d63a
VZ
2605 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2606 if test "x$LINE" != x ; then
2607 eval "DEFAULT_$LINE"
2608 else
2609 no_cache=1
2610 fi
2611
2612 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2613
2614fi
10f2d63a
VZ
2615
2616
2617 eval "$ac_cv_use_no_rtti"
2618 if test "$no_cache" != 1; then
2619 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2620 fi
2621
2622 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2623 echo "$ac_t""yes" 1>&6
10f2d63a 2624 else
698dcdb6 2625 echo "$ac_t""no" 1>&6
10f2d63a 2626 fi
698dcdb6 2627
10f2d63a 2628
698dcdb6 2629 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
29fd3c0c 2630echo "configure:2631: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2631 no_cache=0
2632 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2633if test "${enable_no_exceptions+set}" = set; then
2634 enableval="$enable_no_exceptions"
698dcdb6 2635
10f2d63a
VZ
2636 if test "$enableval" = yes; then
2637 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2638 else
2639 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2640 fi
698dcdb6 2641
10f2d63a 2642else
698dcdb6 2643
10f2d63a
VZ
2644 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2645 if test "x$LINE" != x ; then
2646 eval "DEFAULT_$LINE"
2647 else
2648 no_cache=1
2649 fi
2650
2651 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2652
2653fi
10f2d63a
VZ
2654
2655
2656 eval "$ac_cv_use_no_exceptions"
2657 if test "$no_cache" != 1; then
2658 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2659 fi
2660
2661 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2662 echo "$ac_t""yes" 1>&6
10f2d63a 2663 else
698dcdb6 2664 echo "$ac_t""no" 1>&6
10f2d63a 2665 fi
698dcdb6 2666
10f2d63a 2667
698dcdb6 2668 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
29fd3c0c 2669echo "configure:2670: checking for --enable-permissive" >&5
10f2d63a
VZ
2670 no_cache=0
2671 # Check whether --enable-permissive or --disable-permissive was given.
2672if test "${enable_permissive+set}" = set; then
2673 enableval="$enable_permissive"
698dcdb6 2674
10f2d63a
VZ
2675 if test "$enableval" = yes; then
2676 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2677 else
2678 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2679 fi
698dcdb6 2680
10f2d63a 2681else
698dcdb6 2682
10f2d63a
VZ
2683 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2684 if test "x$LINE" != x ; then
2685 eval "DEFAULT_$LINE"
2686 else
2687 no_cache=1
2688 fi
2689
2690 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2691
2692fi
10f2d63a
VZ
2693
2694
2695 eval "$ac_cv_use_permissive"
2696 if test "$no_cache" != 1; then
2697 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2698 fi
2699
2700 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2701 echo "$ac_t""yes" 1>&6
10f2d63a 2702 else
698dcdb6 2703 echo "$ac_t""no" 1>&6
10f2d63a 2704 fi
698dcdb6 2705
10f2d63a 2706
698dcdb6 2707 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
29fd3c0c 2708echo "configure:2709: checking for --enable-no_deps" >&5
10f2d63a
VZ
2709 no_cache=0
2710 # Check whether --enable-no_deps or --disable-no_deps was given.
2711if test "${enable_no_deps+set}" = set; then
2712 enableval="$enable_no_deps"
698dcdb6 2713
10f2d63a
VZ
2714 if test "$enableval" = yes; then
2715 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2716 else
2717 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2718 fi
698dcdb6 2719
10f2d63a 2720else
698dcdb6 2721
10f2d63a
VZ
2722 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2723 if test "x$LINE" != x ; then
2724 eval "DEFAULT_$LINE"
2725 else
2726 no_cache=1
2727 fi
2728
2729 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2730
2731fi
10f2d63a
VZ
2732
2733
2734 eval "$ac_cv_use_no_deps"
2735 if test "$no_cache" != 1; then
2736 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2737 fi
2738
2739 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2740 echo "$ac_t""yes" 1>&6
10f2d63a 2741 else
698dcdb6 2742 echo "$ac_t""no" 1>&6
10f2d63a 2743 fi
698dcdb6
VZ
2744
2745
10f2d63a 2746
54276ccf 2747 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
29fd3c0c 2748echo "configure:2749: checking for --enable-compat20" >&5
54276ccf
VZ
2749 no_cache=0
2750 # Check whether --enable-compat20 or --disable-compat20 was given.
2751if test "${enable_compat20+set}" = set; then
2752 enableval="$enable_compat20"
2753
2754 if test "$enableval" = yes; then
2755 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2756 else
2757 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2758 fi
2759
2760else
2761
2762 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2763 if test "x$LINE" != x ; then
2764 eval "DEFAULT_$LINE"
2765 else
2766 no_cache=1
2767 fi
2768
2769 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2770
2771fi
2772
2773
2774 eval "$ac_cv_use_compat20"
2775 if test "$no_cache" != 1; then
2776 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2777 fi
2778
2779 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2780 echo "$ac_t""yes" 1>&6
2781 else
2782 echo "$ac_t""no" 1>&6
2783 fi
2784
2785
2786 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
29fd3c0c 2787echo "configure:2788: checking for --enable-compat22" >&5
54276ccf
VZ
2788 no_cache=0
2789 # Check whether --enable-compat22 or --disable-compat22 was given.
2790if test "${enable_compat22+set}" = set; then
2791 enableval="$enable_compat22"
2792
2793 if test "$enableval" = yes; then
2794 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2795 else
2796 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2797 fi
2798
2799else
2800
2801 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2802 if test "x$LINE" != x ; then
2803 eval "DEFAULT_$LINE"
2804 else
2805 no_cache=1
2806 fi
2807
2808 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2809
2810fi
2811
2812
2813 eval "$ac_cv_use_compat22"
2814 if test "$no_cache" != 1; then
2815 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2816 fi
2817
2818 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2819 echo "$ac_t""yes" 1>&6
2820 else
2821 echo "$ac_t""no" 1>&6
2822 fi
2823
2824
2825
698dcdb6
VZ
2826
2827 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
29fd3c0c 2828echo "configure:2829: checking for --enable-intl" >&5
10f2d63a
VZ
2829 no_cache=0
2830 # Check whether --enable-intl or --disable-intl was given.
2831if test "${enable_intl+set}" = set; then
2832 enableval="$enable_intl"
698dcdb6 2833
10f2d63a
VZ
2834 if test "$enableval" = yes; then
2835 ac_cv_use_intl='wxUSE_INTL=yes'
2836 else
2837 ac_cv_use_intl='wxUSE_INTL=no'
2838 fi
698dcdb6 2839
10f2d63a 2840else
698dcdb6 2841
10f2d63a
VZ
2842 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2843 if test "x$LINE" != x ; then
2844 eval "DEFAULT_$LINE"
2845 else
2846 no_cache=1
2847 fi
2848
2849 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
2850
2851fi
10f2d63a
VZ
2852
2853
2854 eval "$ac_cv_use_intl"
2855 if test "$no_cache" != 1; then
2856 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2857 fi
2858
2859 if test "$wxUSE_INTL" = yes; then
698dcdb6 2860 echo "$ac_t""yes" 1>&6
10f2d63a 2861 else
698dcdb6 2862 echo "$ac_t""no" 1>&6
10f2d63a 2863 fi
698dcdb6 2864
10f2d63a 2865
698dcdb6 2866 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
29fd3c0c 2867echo "configure:2868: checking for --enable-config" >&5
10f2d63a
VZ
2868 no_cache=0
2869 # Check whether --enable-config or --disable-config was given.
2870if test "${enable_config+set}" = set; then
2871 enableval="$enable_config"
698dcdb6 2872
10f2d63a
VZ
2873 if test "$enableval" = yes; then
2874 ac_cv_use_config='wxUSE_CONFIG=yes'
2875 else
2876 ac_cv_use_config='wxUSE_CONFIG=no'
2877 fi
698dcdb6 2878
10f2d63a 2879else
698dcdb6 2880
10f2d63a
VZ
2881 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2882 if test "x$LINE" != x ; then
2883 eval "DEFAULT_$LINE"
2884 else
2885 no_cache=1
2886 fi
2887
2888 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
2889
2890fi
10f2d63a
VZ
2891
2892
2893 eval "$ac_cv_use_config"
2894 if test "$no_cache" != 1; then
2895 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2896 fi
2897
2898 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 2899 echo "$ac_t""yes" 1>&6
10f2d63a 2900 else
698dcdb6 2901 echo "$ac_t""no" 1>&6
10f2d63a 2902 fi
698dcdb6
VZ
2903
2904
b12915c1 2905
698dcdb6 2906 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
29fd3c0c 2907echo "configure:2908: checking for --enable-sockets" >&5
10f2d63a
VZ
2908 no_cache=0
2909 # Check whether --enable-sockets or --disable-sockets was given.
2910if test "${enable_sockets+set}" = set; then
2911 enableval="$enable_sockets"
698dcdb6 2912
10f2d63a
VZ
2913 if test "$enableval" = yes; then
2914 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2915 else
2916 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2917 fi
698dcdb6 2918
10f2d63a 2919else
698dcdb6 2920
10f2d63a
VZ
2921 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2922 if test "x$LINE" != x ; then
2923 eval "DEFAULT_$LINE"
2924 else
2925 no_cache=1
2926 fi
2927
2928 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
2929
2930fi
10f2d63a
VZ
2931
2932
2933 eval "$ac_cv_use_sockets"
2934 if test "$no_cache" != 1; then
2935 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2936 fi
2937
2938 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 2939 echo "$ac_t""yes" 1>&6
10f2d63a 2940 else
698dcdb6 2941 echo "$ac_t""no" 1>&6
10f2d63a 2942 fi
698dcdb6 2943
b12915c1 2944
698dcdb6
VZ
2945
2946 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
29fd3c0c 2947echo "configure:2948: checking for --enable-ipc" >&5
10f2d63a 2948 no_cache=0
eb4efbdc
VZ
2949 # Check whether --enable-ipc or --disable-ipc was given.
2950if test "${enable_ipc+set}" = set; then
2951 enableval="$enable_ipc"
698dcdb6 2952
10f2d63a 2953 if test "$enableval" = yes; then
eb4efbdc 2954 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 2955 else
eb4efbdc 2956 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 2957 fi
698dcdb6 2958
10f2d63a 2959else
698dcdb6 2960
eb4efbdc 2961 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
2962 if test "x$LINE" != x ; then
2963 eval "DEFAULT_$LINE"
2964 else
2965 no_cache=1
2966 fi
2967
eb4efbdc 2968 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
2969
2970fi
10f2d63a
VZ
2971
2972
eb4efbdc 2973 eval "$ac_cv_use_ipc"
10f2d63a 2974 if test "$no_cache" != 1; then
eb4efbdc 2975 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2976 fi
2977
eb4efbdc 2978 if test "$wxUSE_IPC" = yes; then
698dcdb6 2979 echo "$ac_t""yes" 1>&6
10f2d63a 2980 else
698dcdb6 2981 echo "$ac_t""no" 1>&6
10f2d63a 2982 fi
698dcdb6
VZ
2983
2984
eb4efbdc 2985
1e6feb95 2986 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
29fd3c0c 2987echo "configure:2988: checking for --enable-cmdline" >&5
1e6feb95
VZ
2988 no_cache=0
2989 # Check whether --enable-cmdline or --disable-cmdline was given.
2990if test "${enable_cmdline+set}" = set; then
2991 enableval="$enable_cmdline"
2992
2993 if test "$enableval" = yes; then
2994 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
2995 else
2996 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
2997 fi
2998
2999else
3000
3001 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3002 if test "x$LINE" != x ; then
3003 eval "DEFAULT_$LINE"
3004 else
3005 no_cache=1
3006 fi
3007
3008 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3009
3010fi
3011
3012
3013 eval "$ac_cv_use_cmdline"
3014 if test "$no_cache" != 1; then
3015 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3016 fi
3017
3018 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3019 echo "$ac_t""yes" 1>&6
3020 else
3021 echo "$ac_t""no" 1>&6
3022 fi
3023
3024
3025 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
29fd3c0c 3026echo "configure:3027: checking for --enable-datetime" >&5
1e6feb95
VZ
3027 no_cache=0
3028 # Check whether --enable-datetime or --disable-datetime was given.
3029if test "${enable_datetime+set}" = set; then
3030 enableval="$enable_datetime"
3031
3032 if test "$enableval" = yes; then
3033 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3034 else
3035 ac_cv_use_datetime='wxUSE_DATETIME=no'
3036 fi
3037
3038else
3039
3040 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3041 if test "x$LINE" != x ; then
3042 eval "DEFAULT_$LINE"
3043 else
3044 no_cache=1
3045 fi
3046
3047 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3048
3049fi
3050
3051
3052 eval "$ac_cv_use_datetime"
3053 if test "$no_cache" != 1; then
3054 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3055 fi
3056
3057 if test "$wxUSE_DATETIME" = yes; then
3058 echo "$ac_t""yes" 1>&6
3059 else
3060 echo "$ac_t""no" 1>&6
3061 fi
3062
3063
3064 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
29fd3c0c 3065echo "configure:3066: checking for --enable-timedate" >&5
1e6feb95
VZ
3066 no_cache=0
3067 # Check whether --enable-timedate or --disable-timedate was given.
3068if test "${enable_timedate+set}" = set; then
3069 enableval="$enable_timedate"
3070
3071 if test "$enableval" = yes; then
3072 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3073 else
3074 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3075 fi
3076
3077else
3078
3079 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3080 if test "x$LINE" != x ; then
3081 eval "DEFAULT_$LINE"
3082 else
3083 no_cache=1
3084 fi
3085
3086 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3087
3088fi
3089
3090
3091 eval "$ac_cv_use_timedate"
3092 if test "$no_cache" != 1; then
3093 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3094 fi
3095
3096 if test "$wxUSE_TIMEDATE" = yes; then
3097 echo "$ac_t""yes" 1>&6
3098 else
3099 echo "$ac_t""no" 1>&6
3100 fi
3101
3102
3103 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
29fd3c0c 3104echo "configure:3105: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3105 no_cache=0
3106 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3107if test "${enable_stopwatch+set}" = set; then
3108 enableval="$enable_stopwatch"
3109
3110 if test "$enableval" = yes; then
3111 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3112 else
3113 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3114 fi
3115
3116else
3117
3118 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3119 if test "x$LINE" != x ; then
3120 eval "DEFAULT_$LINE"
3121 else
3122 no_cache=1
3123 fi
3124
3125 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3126
3127fi
3128
3129
3130 eval "$ac_cv_use_stopwatch"
3131 if test "$no_cache" != 1; then
3132 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3133 fi
3134
3135 if test "$wxUSE_STOPWATCH" = yes; then
3136 echo "$ac_t""yes" 1>&6
3137 else
3138 echo "$ac_t""no" 1>&6
3139 fi
3140
3141
698dcdb6 3142 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
29fd3c0c 3143echo "configure:3144: checking for --enable-dialupman" >&5
10f2d63a 3144 no_cache=0
eb4efbdc
VZ
3145 # Check whether --enable-dialupman or --disable-dialupman was given.
3146if test "${enable_dialupman+set}" = set; then
3147 enableval="$enable_dialupman"
698dcdb6 3148
10f2d63a 3149 if test "$enableval" = yes; then
eb4efbdc 3150 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3151 else
eb4efbdc 3152 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3153 fi
698dcdb6 3154
10f2d63a 3155else
698dcdb6 3156
eb4efbdc 3157 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3158 if test "x$LINE" != x ; then
3159 eval "DEFAULT_$LINE"
3160 else
3161 no_cache=1
3162 fi
3163
eb4efbdc 3164 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3165
3166fi
10f2d63a
VZ
3167
3168
eb4efbdc 3169 eval "$ac_cv_use_dialupman"
10f2d63a 3170 if test "$no_cache" != 1; then
eb4efbdc 3171 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3172 fi
3173
eb4efbdc 3174 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3175 echo "$ac_t""yes" 1>&6
10f2d63a 3176 else
698dcdb6 3177 echo "$ac_t""no" 1>&6
10f2d63a 3178 fi
698dcdb6 3179
10f2d63a 3180
698dcdb6 3181 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
29fd3c0c 3182echo "configure:3183: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3183 no_cache=0
3184 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3185if test "${enable_apple_ieee+set}" = set; then
3186 enableval="$enable_apple_ieee"
698dcdb6 3187
10f2d63a
VZ
3188 if test "$enableval" = yes; then
3189 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3190 else
3191 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3192 fi
698dcdb6 3193
10f2d63a 3194else
698dcdb6 3195
10f2d63a
VZ
3196 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3197 if test "x$LINE" != x ; then
3198 eval "DEFAULT_$LINE"
3199 else
3200 no_cache=1
3201 fi
3202
3203 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3204
3205fi
10f2d63a
VZ
3206
3207
3208 eval "$ac_cv_use_apple_ieee"
3209 if test "$no_cache" != 1; then
3210 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3211 fi
3212
3213 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3214 echo "$ac_t""yes" 1>&6
10f2d63a 3215 else
698dcdb6 3216 echo "$ac_t""no" 1>&6
10f2d63a 3217 fi
698dcdb6 3218
10f2d63a 3219
1e6feb95 3220 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
29fd3c0c 3221echo "configure:3222: checking for --enable-timer" >&5
10f2d63a 3222 no_cache=0
1e6feb95
VZ
3223 # Check whether --enable-timer or --disable-timer was given.
3224if test "${enable_timer+set}" = set; then
3225 enableval="$enable_timer"
698dcdb6 3226
10f2d63a 3227 if test "$enableval" = yes; then
1e6feb95 3228 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3229 else
1e6feb95 3230 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3231 fi
698dcdb6 3232
10f2d63a 3233else
698dcdb6 3234
1e6feb95 3235 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3236 if test "x$LINE" != x ; then
3237 eval "DEFAULT_$LINE"
3238 else
3239 no_cache=1
3240 fi
3241
1e6feb95 3242 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3243
3244fi
10f2d63a
VZ
3245
3246
1e6feb95 3247 eval "$ac_cv_use_timer"
10f2d63a 3248 if test "$no_cache" != 1; then
1e6feb95 3249 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3250 fi
3251
1e6feb95 3252 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3253 echo "$ac_t""yes" 1>&6
10f2d63a 3254 else
698dcdb6 3255 echo "$ac_t""no" 1>&6
10f2d63a 3256 fi
698dcdb6 3257
10f2d63a 3258
698dcdb6 3259 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
29fd3c0c 3260echo "configure:3261: checking for --enable-wave" >&5
10f2d63a
VZ
3261 no_cache=0
3262 # Check whether --enable-wave or --disable-wave was given.
3263if test "${enable_wave+set}" = set; then
3264 enableval="$enable_wave"
698dcdb6 3265
10f2d63a
VZ
3266 if test "$enableval" = yes; then
3267 ac_cv_use_wave='wxUSE_WAVE=yes'
3268 else
3269 ac_cv_use_wave='wxUSE_WAVE=no'
3270 fi
698dcdb6 3271
10f2d63a 3272else
698dcdb6 3273
10f2d63a
VZ
3274 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3275 if test "x$LINE" != x ; then
3276 eval "DEFAULT_$LINE"
3277 else
3278 no_cache=1
3279 fi
3280
3281 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3282
3283fi
10f2d63a
VZ
3284
3285
3286 eval "$ac_cv_use_wave"
3287 if test "$no_cache" != 1; then
3288 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3289 fi
3290
3291 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3292 echo "$ac_t""yes" 1>&6
10f2d63a 3293 else
698dcdb6 3294 echo "$ac_t""no" 1>&6
10f2d63a 3295 fi
698dcdb6 3296
10f2d63a 3297
698dcdb6 3298 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
29fd3c0c 3299echo "configure:3300: checking for --enable-fraction" >&5
10f2d63a
VZ
3300 no_cache=0
3301 # Check whether --enable-fraction or --disable-fraction was given.
3302if test "${enable_fraction+set}" = set; then
3303 enableval="$enable_fraction"
698dcdb6 3304
10f2d63a
VZ
3305 if test "$enableval" = yes; then
3306 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3307 else
3308 ac_cv_use_fraction='wxUSE_FRACTION=no'
3309 fi
698dcdb6 3310
10f2d63a 3311else
698dcdb6 3312
10f2d63a
VZ
3313 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3314 if test "x$LINE" != x ; then
3315 eval "DEFAULT_$LINE"
3316 else
3317 no_cache=1
3318 fi
3319
3320 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3321
3322fi
10f2d63a
VZ
3323
3324
3325 eval "$ac_cv_use_fraction"
3326 if test "$no_cache" != 1; then
3327 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3328 fi
3329
3330 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3331 echo "$ac_t""yes" 1>&6
10f2d63a 3332 else
698dcdb6 3333 echo "$ac_t""no" 1>&6
10f2d63a 3334 fi
698dcdb6 3335
10f2d63a 3336
698dcdb6 3337 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
29fd3c0c 3338echo "configure:3339: checking for --enable-dynlib" >&5
10f2d63a
VZ
3339 no_cache=0
3340 # Check whether --enable-dynlib or --disable-dynlib was given.
3341if test "${enable_dynlib+set}" = set; then
3342 enableval="$enable_dynlib"
698dcdb6 3343
10f2d63a
VZ
3344 if test "$enableval" = yes; then
3345 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3346 else
3347 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3348 fi
698dcdb6 3349
10f2d63a 3350else
698dcdb6 3351
10f2d63a
VZ
3352 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3353 if test "x$LINE" != x ; then
3354 eval "DEFAULT_$LINE"
3355 else
3356 no_cache=1
3357 fi
3358
3359 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3360
3361fi
10f2d63a
VZ
3362
3363
3364 eval "$ac_cv_use_dynlib"
3365 if test "$no_cache" != 1; then
3366 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3367 fi
3368
3369 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3370 echo "$ac_t""yes" 1>&6
10f2d63a 3371 else
698dcdb6 3372 echo "$ac_t""no" 1>&6
10f2d63a 3373 fi
698dcdb6 3374
10f2d63a 3375
698dcdb6 3376 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
29fd3c0c 3377echo "configure:3378: checking for --enable-longlong" >&5
10f2d63a
VZ
3378 no_cache=0
3379 # Check whether --enable-longlong or --disable-longlong was given.
3380if test "${enable_longlong+set}" = set; then
3381 enableval="$enable_longlong"
698dcdb6 3382
10f2d63a
VZ
3383 if test "$enableval" = yes; then
3384 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3385 else
3386 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3387 fi
698dcdb6 3388
10f2d63a 3389else
698dcdb6 3390
10f2d63a
VZ
3391 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3392 if test "x$LINE" != x ; then
3393 eval "DEFAULT_$LINE"
3394 else
3395 no_cache=1
3396 fi
3397
3398 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3399
3400fi
10f2d63a
VZ
3401
3402
3403 eval "$ac_cv_use_longlong"
3404 if test "$no_cache" != 1; then
3405 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3406 fi
3407
3408 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3409 echo "$ac_t""yes" 1>&6
10f2d63a 3410 else
698dcdb6 3411 echo "$ac_t""no" 1>&6
10f2d63a 3412 fi
698dcdb6 3413
10f2d63a 3414
698dcdb6 3415 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
29fd3c0c 3416echo "configure:3417: checking for --enable-geometry" >&5
e8f65ba6
RR
3417 no_cache=0
3418 # Check whether --enable-geometry or --disable-geometry was given.
3419if test "${enable_geometry+set}" = set; then
3420 enableval="$enable_geometry"
698dcdb6 3421
e8f65ba6
RR
3422 if test "$enableval" = yes; then
3423 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3424 else
3425 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3426 fi
698dcdb6 3427
e8f65ba6 3428else
698dcdb6 3429
e8f65ba6
RR
3430 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3431 if test "x$LINE" != x ; then
3432 eval "DEFAULT_$LINE"
3433 else
3434 no_cache=1
3435 fi
3436
3437 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3438
3439fi
e8f65ba6
RR
3440
3441
3442 eval "$ac_cv_use_geometry"
3443 if test "$no_cache" != 1; then
3444 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3445 fi
3446
3447 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3448 echo "$ac_t""yes" 1>&6
e8f65ba6 3449 else
698dcdb6 3450 echo "$ac_t""no" 1>&6
e8f65ba6 3451 fi
698dcdb6 3452
e8f65ba6 3453
698dcdb6 3454 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
29fd3c0c 3455echo "configure:3456: checking for --enable-log" >&5
10f2d63a
VZ
3456 no_cache=0
3457 # Check whether --enable-log or --disable-log was given.
3458if test "${enable_log+set}" = set; then
3459 enableval="$enable_log"
698dcdb6 3460
10f2d63a
VZ
3461 if test "$enableval" = yes; then
3462 ac_cv_use_log='wxUSE_LOG=yes'
3463 else
3464 ac_cv_use_log='wxUSE_LOG=no'
3465 fi
698dcdb6 3466
10f2d63a 3467else
698dcdb6 3468
10f2d63a
VZ
3469 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3470 if test "x$LINE" != x ; then
3471 eval "DEFAULT_$LINE"
3472 else
3473 no_cache=1
3474 fi
3475
3476 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3477
3478fi
10f2d63a
VZ
3479
3480
3481 eval "$ac_cv_use_log"
3482 if test "$no_cache" != 1; then
3483 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3484 fi
3485
3486 if test "$wxUSE_LOG" = yes; then
698dcdb6 3487 echo "$ac_t""yes" 1>&6
10f2d63a 3488 else
698dcdb6 3489 echo "$ac_t""no" 1>&6
10f2d63a 3490 fi
698dcdb6 3491
10f2d63a 3492
698dcdb6 3493 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
29fd3c0c 3494echo "configure:3495: checking for --enable-streams" >&5
10f2d63a
VZ
3495 no_cache=0
3496 # Check whether --enable-streams or --disable-streams was given.
3497if test "${enable_streams+set}" = set; then
3498 enableval="$enable_streams"
698dcdb6 3499
10f2d63a
VZ
3500 if test "$enableval" = yes; then
3501 ac_cv_use_streams='wxUSE_STREAMS=yes'
3502 else
3503 ac_cv_use_streams='wxUSE_STREAMS=no'
3504 fi
698dcdb6 3505
10f2d63a 3506else
698dcdb6 3507
10f2d63a
VZ
3508 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3509 if test "x$LINE" != x ; then
3510 eval "DEFAULT_$LINE"
3511 else
3512 no_cache=1
3513 fi
3514
3515 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3516
3517fi
10f2d63a
VZ
3518
3519
3520 eval "$ac_cv_use_streams"
3521 if test "$no_cache" != 1; then
3522 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3523 fi
3524
3525 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3526 echo "$ac_t""yes" 1>&6
10f2d63a 3527 else
698dcdb6 3528 echo "$ac_t""no" 1>&6
10f2d63a 3529 fi
698dcdb6 3530
10f2d63a 3531
698dcdb6 3532 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
29fd3c0c 3533echo "configure:3534: checking for --enable-file" >&5
10f2d63a
VZ
3534 no_cache=0
3535 # Check whether --enable-file or --disable-file was given.
3536if test "${enable_file+set}" = set; then
3537 enableval="$enable_file"
698dcdb6 3538
10f2d63a
VZ
3539 if test "$enableval" = yes; then
3540 ac_cv_use_file='wxUSE_FILE=yes'
3541 else
3542 ac_cv_use_file='wxUSE_FILE=no'
3543 fi
698dcdb6 3544
10f2d63a 3545else
698dcdb6 3546
10f2d63a
VZ
3547 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3548 if test "x$LINE" != x ; then
3549 eval "DEFAULT_$LINE"
3550 else
3551 no_cache=1
3552 fi
3553
3554 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3555
3556fi
10f2d63a
VZ
3557
3558
3559 eval "$ac_cv_use_file"
3560 if test "$no_cache" != 1; then
3561 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3562 fi
3563
3564 if test "$wxUSE_FILE" = yes; then
698dcdb6 3565 echo "$ac_t""yes" 1>&6
10f2d63a 3566 else
698dcdb6 3567 echo "$ac_t""no" 1>&6
10f2d63a 3568 fi
698dcdb6 3569
10f2d63a 3570
1e6feb95 3571 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
29fd3c0c 3572echo "configure:3573: checking for --enable-ffile" >&5
10f2d63a 3573 no_cache=0
1e6feb95
VZ
3574 # Check whether --enable-ffile or --disable-ffile was given.
3575if test "${enable_ffile+set}" = set; then
3576 enableval="$enable_ffile"
698dcdb6 3577
10f2d63a 3578 if test "$enableval" = yes; then
1e6feb95 3579 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3580 else
1e6feb95 3581 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3582 fi
698dcdb6 3583
10f2d63a 3584else
698dcdb6 3585
1e6feb95 3586 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3587 if test "x$LINE" != x ; then
3588 eval "DEFAULT_$LINE"
3589 else
3590 no_cache=1
3591 fi
3592
1e6feb95 3593 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3594
3595fi
10f2d63a
VZ
3596
3597
1e6feb95 3598 eval "$ac_cv_use_ffile"
10f2d63a 3599 if test "$no_cache" != 1; then
1e6feb95 3600 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3601 fi
3602
1e6feb95 3603 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3604 echo "$ac_t""yes" 1>&6
10f2d63a 3605 else
698dcdb6 3606 echo "$ac_t""no" 1>&6
10f2d63a 3607 fi
698dcdb6 3608
10f2d63a 3609
1e6feb95 3610 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
29fd3c0c 3611echo "configure:3612: checking for --enable-textfile" >&5
10f2d63a 3612 no_cache=0
1e6feb95
VZ
3613 # Check whether --enable-textfile or --disable-textfile was given.
3614if test "${enable_textfile+set}" = set; then
3615 enableval="$enable_textfile"
698dcdb6 3616
10f2d63a 3617 if test "$enableval" = yes; then
1e6feb95 3618 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 3619 else
1e6feb95 3620 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 3621 fi
698dcdb6 3622
10f2d63a 3623else
698dcdb6 3624
1e6feb95 3625 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3626 if test "x$LINE" != x ; then
3627 eval "DEFAULT_$LINE"
3628 else
3629 no_cache=1
3630 fi
3631
1e6feb95 3632 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
3633
3634fi
10f2d63a
VZ
3635
3636
1e6feb95 3637 eval "$ac_cv_use_textfile"
10f2d63a 3638 if test "$no_cache" != 1; then
1e6feb95 3639 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3640 fi
3641
1e6feb95 3642 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 3643 echo "$ac_t""yes" 1>&6
10f2d63a 3644 else
698dcdb6 3645 echo "$ac_t""no" 1>&6
10f2d63a 3646 fi
698dcdb6 3647
10f2d63a 3648
1e6feb95 3649 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
29fd3c0c 3650echo "configure:3651: checking for --enable-fontmap" >&5
10f2d63a 3651 no_cache=0
1e6feb95
VZ
3652 # Check whether --enable-fontmap or --disable-fontmap was given.
3653if test "${enable_fontmap+set}" = set; then
3654 enableval="$enable_fontmap"
698dcdb6 3655
10f2d63a 3656 if test "$enableval" = yes; then
1e6feb95 3657 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 3658 else
1e6feb95 3659 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 3660 fi
698dcdb6 3661
10f2d63a 3662else
698dcdb6 3663
1e6feb95 3664 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
3665 if test "x$LINE" != x ; then
3666 eval "DEFAULT_$LINE"
3667 else
3668 no_cache=1
3669 fi
3670
1e6feb95 3671 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
3672
3673fi
10f2d63a
VZ
3674
3675
1e6feb95 3676 eval "$ac_cv_use_fontmap"
10f2d63a 3677 if test "$no_cache" != 1; then
1e6feb95 3678 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3679 fi
3680
1e6feb95 3681 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 3682 echo "$ac_t""yes" 1>&6
10f2d63a 3683 else
698dcdb6 3684 echo "$ac_t""no" 1>&6
10f2d63a 3685 fi
698dcdb6 3686
10f2d63a 3687
1e6feb95 3688 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
29fd3c0c 3689echo "configure:3690: checking for --enable-unicode" >&5
10f2d63a 3690 no_cache=0
1e6feb95
VZ
3691 # Check whether --enable-unicode or --disable-unicode was given.
3692if test "${enable_unicode+set}" = set; then
3693 enableval="$enable_unicode"
3694
3695 if test "$enableval" = yes; then
3696 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3697 else
3698 ac_cv_use_unicode='wxUSE_UNICODE=no'
3699 fi
3700
3701else
3702
3703 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3704 if test "x$LINE" != x ; then
3705 eval "DEFAULT_$LINE"
3706 else
3707 no_cache=1
3708 fi
3709
3710 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3711
3712fi
3713
3714
3715 eval "$ac_cv_use_unicode"
3716 if test "$no_cache" != 1; then
3717 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3718 fi
3719
3720 if test "$wxUSE_UNICODE" = yes; then
3721 echo "$ac_t""yes" 1>&6
3722 else
3723 echo "$ac_t""no" 1>&6
3724 fi
3725
3726
3727 echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6
29fd3c0c 3728echo "configure:3729: checking for --enable-wcsrtombs" >&5
1e6feb95
VZ
3729 no_cache=0
3730 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3731if test "${enable_wcsrtombs+set}" = set; then
3732 enableval="$enable_wcsrtombs"
3733
3734 if test "$enableval" = yes; then
3735 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3736 else
3737 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3738 fi
3739
3740else
3741
3742 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3743 if test "x$LINE" != x ; then
3744 eval "DEFAULT_$LINE"
3745 else
3746 no_cache=1
3747 fi
3748
3749 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3750
3751fi
3752
3753
3754 eval "$ac_cv_use_wcsrtombs"
3755 if test "$no_cache" != 1; then
3756 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3757 fi
3758
3759 if test "$wxUSE_WCSRTOMBS" = yes; then
3760 echo "$ac_t""yes" 1>&6
3761 else
3762 echo "$ac_t""no" 1>&6
3763 fi
3764
3765
3766 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
29fd3c0c 3767echo "configure:3768: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
3768 no_cache=0
3769 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3770if test "${enable_wxprintfv+set}" = set; then
3771 enableval="$enable_wxprintfv"
3772
3773 if test "$enableval" = yes; then
10f2d63a
VZ
3774 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3775 else
3776 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3777 fi
698dcdb6 3778
10f2d63a 3779else
698dcdb6 3780
10f2d63a
VZ
3781 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3782 if test "x$LINE" != x ; then
3783 eval "DEFAULT_$LINE"
3784 else
3785 no_cache=1
3786 fi
3787
3788 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
3789
3790fi
10f2d63a
VZ
3791
3792
3793 eval "$ac_cv_use_wxprintfv"
3794 if test "$no_cache" != 1; then
3795 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3796 fi
3797
3798 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 3799 echo "$ac_t""yes" 1>&6
10f2d63a 3800 else
698dcdb6 3801 echo "$ac_t""no" 1>&6
10f2d63a 3802 fi
698dcdb6 3803
10f2d63a 3804
698dcdb6 3805 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
29fd3c0c 3806echo "configure:3807: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
3807 no_cache=0
3808 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3809if test "${enable_std_iostreams+set}" = set; then
3810 enableval="$enable_std_iostreams"
698dcdb6 3811
10f2d63a
VZ
3812 if test "$enableval" = yes; then
3813 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3814 else
3815 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3816 fi
698dcdb6 3817
10f2d63a 3818else
698dcdb6 3819
10f2d63a
VZ
3820 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3821 if test "x$LINE" != x ; then
3822 eval "DEFAULT_$LINE"
3823 else
3824 no_cache=1
3825 fi
3826
3827 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
3828
3829fi
10f2d63a
VZ
3830
3831
3832 eval "$ac_cv_use_std_iostreams"
3833 if test "$no_cache" != 1; then
3834 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3835 fi
3836
3837 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 3838 echo "$ac_t""yes" 1>&6
10f2d63a 3839 else
698dcdb6 3840 echo "$ac_t""no" 1>&6
10f2d63a 3841 fi
698dcdb6 3842
10f2d63a 3843
698dcdb6 3844 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
29fd3c0c 3845echo "configure:3846: checking for --enable-filesystem" >&5
24528b0c
VS
3846 no_cache=0
3847 # Check whether --enable-filesystem or --disable-filesystem was given.
3848if test "${enable_filesystem+set}" = set; then
3849 enableval="$enable_filesystem"
698dcdb6 3850
24528b0c
VS
3851 if test "$enableval" = yes; then
3852 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3853 else
3854 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3855 fi
698dcdb6 3856
24528b0c 3857else
698dcdb6 3858
24528b0c
VS
3859 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3860 if test "x$LINE" != x ; then
3861 eval "DEFAULT_$LINE"
3862 else
3863 no_cache=1
3864 fi
3865
3866 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
3867
3868fi
24528b0c
VS
3869
3870
3871 eval "$ac_cv_use_filesystem"
3872 if test "$no_cache" != 1; then
3873 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3874 fi
3875
3876 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 3877 echo "$ac_t""yes" 1>&6
24528b0c 3878 else
698dcdb6 3879 echo "$ac_t""no" 1>&6
24528b0c 3880 fi
698dcdb6 3881
24528b0c 3882
698dcdb6 3883 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
29fd3c0c 3884echo "configure:3885: checking for --enable-fs_inet" >&5
10f2d63a
VZ
3885 no_cache=0
3886 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3887if test "${enable_fs_inet+set}" = set; then
3888 enableval="$enable_fs_inet"
698dcdb6 3889
10f2d63a
VZ
3890 if test "$enableval" = yes; then
3891 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3892 else
3893 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3894 fi
698dcdb6 3895
10f2d63a 3896else
698dcdb6 3897
10f2d63a
VZ
3898 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3899 if test "x$LINE" != x ; then
3900 eval "DEFAULT_$LINE"
3901 else
3902 no_cache=1
3903 fi
3904
3905 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
3906
3907fi
10f2d63a
VZ
3908
3909
3910 eval "$ac_cv_use_fs_inet"
3911 if test "$no_cache" != 1; then
3912 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3913 fi
3914
3915 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 3916 echo "$ac_t""yes" 1>&6
10f2d63a 3917 else
698dcdb6 3918 echo "$ac_t""no" 1>&6
10f2d63a 3919 fi
698dcdb6 3920
10f2d63a 3921
698dcdb6 3922 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
29fd3c0c 3923echo "configure:3924: checking for --enable-fs_zip" >&5
10f2d63a
VZ
3924 no_cache=0
3925 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3926if test "${enable_fs_zip+set}" = set; then
3927 enableval="$enable_fs_zip"
698dcdb6 3928
10f2d63a
VZ
3929 if test "$enableval" = yes; then
3930 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3931 else
3932 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3933 fi
698dcdb6 3934
10f2d63a 3935else
698dcdb6 3936
10f2d63a
VZ
3937 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3938 if test "x$LINE" != x ; then
3939 eval "DEFAULT_$LINE"
3940 else
3941 no_cache=1
3942 fi
3943
3944 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
3945
3946fi
10f2d63a
VZ
3947
3948
3949 eval "$ac_cv_use_fs_zip"
3950 if test "$no_cache" != 1; then
3951 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3952 fi
3953
3954 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 3955 echo "$ac_t""yes" 1>&6
10f2d63a 3956 else
698dcdb6 3957 echo "$ac_t""no" 1>&6
10f2d63a 3958 fi
698dcdb6 3959
10f2d63a 3960
698dcdb6 3961 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
29fd3c0c 3962echo "configure:3963: checking for --enable-zipstream" >&5
10f2d63a
VZ
3963 no_cache=0
3964 # Check whether --enable-zipstream or --disable-zipstream was given.
3965if test "${enable_zipstream+set}" = set; then
3966 enableval="$enable_zipstream"
698dcdb6 3967
10f2d63a
VZ
3968 if test "$enableval" = yes; then
3969 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3970 else
3971 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3972 fi
698dcdb6 3973
10f2d63a 3974else
698dcdb6 3975
10f2d63a
VZ
3976 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3977 if test "x$LINE" != x ; then
3978 eval "DEFAULT_$LINE"
3979 else
3980 no_cache=1
3981 fi
3982
3983 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
3984
3985fi
10f2d63a
VZ
3986
3987
3988 eval "$ac_cv_use_zipstream"
3989 if test "$no_cache" != 1; then
3990 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3991 fi
3992
3993 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 3994 echo "$ac_t""yes" 1>&6
10f2d63a 3995 else
698dcdb6 3996 echo "$ac_t""no" 1>&6
10f2d63a 3997 fi
698dcdb6 3998
10f2d63a 3999
698dcdb6
VZ
4000
4001 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
29fd3c0c 4002echo "configure:4003: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4003 no_cache=0
4004 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4005if test "${enable_catch_segvs+set}" = set; then
4006 enableval="$enable_catch_segvs"
698dcdb6 4007
eb4efbdc
VZ
4008 if test "$enableval" = yes; then
4009 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4010 else
4011 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4012 fi
698dcdb6 4013
eb4efbdc 4014else
698dcdb6 4015
eb4efbdc
VZ
4016 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4017 if test "x$LINE" != x ; then
4018 eval "DEFAULT_$LINE"
4019 else
4020 no_cache=1
4021 fi
4022
4023 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4024
4025fi
eb4efbdc
VZ
4026
4027
4028 eval "$ac_cv_use_catch_segvs"
4029 if test "$no_cache" != 1; then
4030 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4031 fi
4032
4033 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4034 echo "$ac_t""yes" 1>&6
eb4efbdc 4035 else
698dcdb6 4036 echo "$ac_t""no" 1>&6
eb4efbdc 4037 fi
698dcdb6 4038
eb4efbdc 4039
698dcdb6 4040 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
29fd3c0c 4041echo "configure:4042: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4042 no_cache=0
4043 # Check whether --enable-snglinst or --disable-snglinst was given.
4044if test "${enable_snglinst+set}" = set; then
4045 enableval="$enable_snglinst"
698dcdb6 4046
4f3c5f06
VZ
4047 if test "$enableval" = yes; then
4048 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4049 else
4050 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4051 fi
698dcdb6 4052
4f3c5f06 4053else
698dcdb6 4054
4f3c5f06
VZ
4055 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4056 if test "x$LINE" != x ; then
4057 eval "DEFAULT_$LINE"
4058 else
4059 no_cache=1
4060 fi
4061
4062 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4063
4064fi
4f3c5f06
VZ
4065
4066
4067 eval "$ac_cv_use_snglinst"
4068 if test "$no_cache" != 1; then
4069 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4070 fi
4071
4072 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4073 echo "$ac_t""yes" 1>&6
4f3c5f06 4074 else
698dcdb6 4075 echo "$ac_t""no" 1>&6
4f3c5f06 4076 fi
698dcdb6
VZ
4077
4078
eb4efbdc 4079
1e6feb95 4080 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
29fd3c0c 4081echo "configure:4082: checking for --enable-mimetype" >&5
1e6feb95
VZ
4082 no_cache=0
4083 # Check whether --enable-mimetype or --disable-mimetype was given.
4084if test "${enable_mimetype+set}" = set; then
4085 enableval="$enable_mimetype"
4086
4087 if test "$enableval" = yes; then
4088 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4089 else
4090 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4091 fi
4092
4093else
4094
4095 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4096 if test "x$LINE" != x ; then
4097 eval "DEFAULT_$LINE"
4098 else
4099 no_cache=1
4100 fi
4101
4102 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4103
4104fi
4105
4106
4107 eval "$ac_cv_use_mimetype"
4108 if test "$no_cache" != 1; then
4109 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4110 fi
4111
4112 if test "$wxUSE_MIMETYPE" = yes; then
4113 echo "$ac_t""yes" 1>&6
4114 else
4115 echo "$ac_t""no" 1>&6
4116 fi
4117
4118
4119
698dcdb6
VZ
4120
4121 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
29fd3c0c 4122echo "configure:4123: checking for --enable-threads" >&5
10f2d63a
VZ
4123 no_cache=0
4124 # Check whether --enable-threads or --disable-threads was given.
4125if test "${enable_threads+set}" = set; then
4126 enableval="$enable_threads"
698dcdb6 4127
10f2d63a
VZ
4128 if test "$enableval" = yes; then
4129 ac_cv_use_threads='wxUSE_THREADS=yes'
4130 else
4131 ac_cv_use_threads='wxUSE_THREADS=no'
4132 fi
698dcdb6 4133
10f2d63a 4134else
698dcdb6 4135
10f2d63a
VZ
4136 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4137 if test "x$LINE" != x ; then
4138 eval "DEFAULT_$LINE"
4139 else
4140 no_cache=1
4141 fi
4142
4143 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4144
4145fi
10f2d63a
VZ
4146
4147
4148 eval "$ac_cv_use_threads"
4149 if test "$no_cache" != 1; then
4150 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4151 fi
4152
4153 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4154 echo "$ac_t""yes" 1>&6
10f2d63a 4155 else
698dcdb6 4156 echo "$ac_t""no" 1>&6
10f2d63a 4157 fi
698dcdb6 4158
10f2d63a 4159
698dcdb6 4160 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
29fd3c0c 4161echo "configure:4162: checking for --enable-serial" >&5
10f2d63a
VZ
4162 no_cache=0
4163 # Check whether --enable-serial or --disable-serial was given.
4164if test "${enable_serial+set}" = set; then
4165 enableval="$enable_serial"
698dcdb6 4166
10f2d63a
VZ
4167 if test "$enableval" = yes; then
4168 ac_cv_use_serial='wxUSE_SERIAL=yes'
4169 else
4170 ac_cv_use_serial='wxUSE_SERIAL=no'
4171 fi
698dcdb6 4172
10f2d63a 4173else
698dcdb6 4174
10f2d63a
VZ
4175 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4176 if test "x$LINE" != x ; then
4177 eval "DEFAULT_$LINE"
4178 else
4179 no_cache=1
4180 fi
4181
4182 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
698dcdb6
VZ
4183
4184fi
10f2d63a
VZ
4185
4186
4187 eval "$ac_cv_use_serial"
4188 if test "$no_cache" != 1; then
4189 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4190 fi
4191
4192 if test "$wxUSE_SERIAL" = yes; then
698dcdb6 4193 echo "$ac_t""yes" 1>&6
10f2d63a 4194 else
698dcdb6 4195 echo "$ac_t""no" 1>&6
10f2d63a 4196 fi
698dcdb6 4197
10f2d63a 4198
b12915c1
VZ
4199if test "$wxUSE_GUI" = "yes"; then
4200
698dcdb6
VZ
4201
4202
4203 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
29fd3c0c 4204echo "configure:4205: checking for --enable-docview" >&5
10f2d63a
VZ
4205 no_cache=0
4206 # Check whether --enable-docview or --disable-docview was given.
4207if test "${enable_docview+set}" = set; then
4208 enableval="$enable_docview"
698dcdb6 4209
10f2d63a
VZ
4210 if test "$enableval" = yes; then
4211 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4212 else
4213 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4214 fi
698dcdb6 4215
10f2d63a 4216else
698dcdb6 4217
10f2d63a
VZ
4218 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4219 if test "x$LINE" != x ; then
4220 eval "DEFAULT_$LINE"
4221 else
4222 no_cache=1
4223 fi
4224
4225 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4226
4227fi
10f2d63a
VZ
4228
4229
4230 eval "$ac_cv_use_docview"
4231 if test "$no_cache" != 1; then
4232 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4233 fi
4234
4235 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4236 echo "$ac_t""yes" 1>&6
10f2d63a 4237 else
698dcdb6 4238 echo "$ac_t""no" 1>&6
10f2d63a 4239 fi
698dcdb6 4240
10f2d63a 4241
698dcdb6 4242 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
29fd3c0c 4243echo "configure:4244: checking for --enable-help" >&5
10f2d63a
VZ
4244 no_cache=0
4245 # Check whether --enable-help or --disable-help was given.
4246if test "${enable_help+set}" = set; then
4247 enableval="$enable_help"
698dcdb6 4248
10f2d63a
VZ
4249 if test "$enableval" = yes; then
4250 ac_cv_use_help='wxUSE_HELP=yes'
4251 else
4252 ac_cv_use_help='wxUSE_HELP=no'
4253 fi
698dcdb6 4254
10f2d63a 4255else
698dcdb6 4256
10f2d63a
VZ
4257 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4258 if test "x$LINE" != x ; then
4259 eval "DEFAULT_$LINE"
4260 else
4261 no_cache=1
4262 fi
4263
4264 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4265
4266fi
10f2d63a
VZ
4267
4268
4269 eval "$ac_cv_use_help"
4270 if test "$no_cache" != 1; then
4271 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4272 fi
4273
4274 if test "$wxUSE_HELP" = yes; then
698dcdb6 4275 echo "$ac_t""yes" 1>&6
10f2d63a 4276 else
698dcdb6 4277 echo "$ac_t""no" 1>&6
10f2d63a 4278 fi
698dcdb6 4279
10f2d63a 4280
29fd3c0c
VS
4281 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4282echo "configure:4283: checking for --enable-mshtmlhelp" >&5
4283 no_cache=0
4284 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4285if test "${enable_mshtmlhelp+set}" = set; then
4286 enableval="$enable_mshtmlhelp"
4287
4288 if test "$enableval" = yes; then
4289 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4290 else
4291 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4292 fi
4293
4294else
4295
4296 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4297 if test "x$LINE" != x ; then
4298 eval "DEFAULT_$LINE"
4299 else
4300 no_cache=1
4301 fi
4302
4303 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4304
4305fi
4306
4307
4308 eval "$ac_cv_use_mshtmlhelp"
4309 if test "$no_cache" != 1; then
4310 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4311 fi
4312
4313 if test "$wxUSE_MS_HTML_HELP" = yes; then
4314 echo "$ac_t""yes" 1>&6
4315 else
4316 echo "$ac_t""no" 1>&6
4317 fi
4318
4319
3379ed37 4320 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
29fd3c0c 4321echo "configure:4322: checking for --enable-html" >&5
3379ed37
VZ
4322 no_cache=0
4323 # Check whether --enable-html or --disable-html was given.
4324if test "${enable_html+set}" = set; then
4325 enableval="$enable_html"
4326
4327 if test "$enableval" = yes; then
4328 ac_cv_use_html='wxUSE_HTML=yes'
4329 else
4330 ac_cv_use_html='wxUSE_HTML=no'
4331 fi
4332
4333else
4334
4335 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4336 if test "x$LINE" != x ; then
4337 eval "DEFAULT_$LINE"
4338 else
4339 no_cache=1
4340 fi
4341
4342 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4343
4344fi
4345
4346
4347 eval "$ac_cv_use_html"
4348 if test "$no_cache" != 1; then
4349 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4350 fi
4351
4352 if test "$wxUSE_HTML" = yes; then
4353 echo "$ac_t""yes" 1>&6
4354 else
4355 echo "$ac_t""no" 1>&6
4356 fi
4357
4358
4359 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
29fd3c0c 4360echo "configure:4361: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4361 no_cache=0
4362 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4363if test "${enable_htmlhelp+set}" = set; then
4364 enableval="$enable_htmlhelp"
4365
4366 if test "$enableval" = yes; then
4367 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4368 else
4369 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4370 fi
4371
4372else
4373
4374 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4375 if test "x$LINE" != x ; then
4376 eval "DEFAULT_$LINE"
4377 else
4378 no_cache=1
4379 fi
4380
4381 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4382
4383fi
4384
4385
4386 eval "$ac_cv_use_htmlhelp"
4387 if test "$no_cache" != 1; then
4388 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4389 fi
4390
4391 if test "$wxUSE_WXHTML_HELP" = yes; then
4392 echo "$ac_t""yes" 1>&6
4393 else
4394 echo "$ac_t""no" 1>&6
4395 fi
4396
4397
698dcdb6 4398 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
29fd3c0c 4399echo "configure:4400: checking for --enable-constraints" >&5
10f2d63a
VZ
4400 no_cache=0
4401 # Check whether --enable-constraints or --disable-constraints was given.
4402if test "${enable_constraints+set}" = set; then
4403 enableval="$enable_constraints"
698dcdb6 4404
10f2d63a
VZ
4405 if test "$enableval" = yes; then
4406 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4407 else
4408 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4409 fi
698dcdb6 4410
10f2d63a 4411else
698dcdb6 4412
10f2d63a
VZ
4413 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4414 if test "x$LINE" != x ; then
4415 eval "DEFAULT_$LINE"
4416 else
4417 no_cache=1
4418 fi
4419
4420 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
4421
4422fi
10f2d63a
VZ
4423
4424
4425 eval "$ac_cv_use_constraints"
4426 if test "$no_cache" != 1; then
4427 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4428 fi
4429
4430 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 4431 echo "$ac_t""yes" 1>&6
10f2d63a 4432 else
698dcdb6 4433 echo "$ac_t""no" 1>&6
10f2d63a 4434 fi
698dcdb6 4435
10f2d63a 4436
698dcdb6 4437 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
29fd3c0c 4438echo "configure:4439: checking for --enable-printarch" >&5
10f2d63a
VZ
4439 no_cache=0
4440 # Check whether --enable-printarch or --disable-printarch was given.
4441if test "${enable_printarch+set}" = set; then
4442 enableval="$enable_printarch"
698dcdb6 4443
10f2d63a
VZ
4444 if test "$enableval" = yes; then
4445 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4446 else
4447 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4448 fi
698dcdb6 4449
10f2d63a 4450else
698dcdb6 4451
10f2d63a
VZ
4452 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4453 if test "x$LINE" != x ; then
4454 eval "DEFAULT_$LINE"
4455 else
4456 no_cache=1
4457 fi
4458
4459 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
4460
4461fi
10f2d63a
VZ
4462
4463
4464 eval "$ac_cv_use_printarch"
4465 if test "$no_cache" != 1; then
4466 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4467 fi
4468
4469 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 4470 echo "$ac_t""yes" 1>&6
10f2d63a 4471 else
698dcdb6 4472 echo "$ac_t""no" 1>&6
10f2d63a 4473 fi
698dcdb6 4474
10f2d63a 4475
698dcdb6 4476 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
29fd3c0c 4477echo "configure:4478: checking for --enable-mdi" >&5
10f2d63a
VZ
4478 no_cache=0
4479 # Check whether --enable-mdi or --disable-mdi was given.
4480if test "${enable_mdi+set}" = set; then
4481 enableval="$enable_mdi"
698dcdb6 4482
10f2d63a
VZ
4483 if test "$enableval" = yes; then
4484 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4485 else
4486 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4487 fi
698dcdb6 4488
10f2d63a 4489else
698dcdb6 4490
10f2d63a
VZ
4491 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4492 if test "x$LINE" != x ; then
4493 eval "DEFAULT_$LINE"
4494 else
4495 no_cache=1
4496 fi
4497
4498 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
4499
4500fi
10f2d63a
VZ
4501
4502
4503 eval "$ac_cv_use_mdi"
4504 if test "$no_cache" != 1; then
4505 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4506 fi
4507
4508 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 4509 echo "$ac_t""yes" 1>&6
10f2d63a 4510 else
698dcdb6 4511 echo "$ac_t""no" 1>&6
10f2d63a 4512 fi
698dcdb6
VZ
4513
4514
1e6feb95 4515 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
29fd3c0c 4516echo "configure:4517: checking for --enable-loggui" >&5
1e6feb95
VZ
4517 no_cache=0
4518 # Check whether --enable-loggui or --disable-loggui was given.
4519if test "${enable_loggui+set}" = set; then
4520 enableval="$enable_loggui"
4521
4522 if test "$enableval" = yes; then
4523 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4524 else
4525 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4526 fi
4527
4528else
4529
4530 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4531 if test "x$LINE" != x ; then
4532 eval "DEFAULT_$LINE"
4533 else
4534 no_cache=1
4535 fi
4536
4537 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4538
4539fi
4540
4541
4542 eval "$ac_cv_use_loggui"
4543 if test "$no_cache" != 1; then
4544 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4545 fi
4546
4547 if test "$wxUSE_LOGGUI" = yes; then
4548 echo "$ac_t""yes" 1>&6
4549 else
4550 echo "$ac_t""no" 1>&6
4551 fi
4552
4553
4554 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
29fd3c0c 4555echo "configure:4556: checking for --enable-logwin" >&5
1e6feb95
VZ
4556 no_cache=0
4557 # Check whether --enable-logwin or --disable-logwin was given.
4558if test "${enable_logwin+set}" = set; then
4559 enableval="$enable_logwin"
4560
4561 if test "$enableval" = yes; then
4562 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4563 else
4564 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4565 fi
4566
4567else
4568
4569 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4570 if test "x$LINE" != x ; then
4571 eval "DEFAULT_$LINE"
4572 else
4573 no_cache=1
4574 fi
4575
4576 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4577
4578fi
4579
4580
4581 eval "$ac_cv_use_logwin"
4582 if test "$no_cache" != 1; then
4583 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4584 fi
4585
4586 if test "$wxUSE_LOGWINDOW" = yes; then
4587 echo "$ac_t""yes" 1>&6
4588 else
4589 echo "$ac_t""no" 1>&6
4590 fi
4591
4592
10f2d63a 4593
698dcdb6 4594 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
29fd3c0c 4595echo "configure:4596: checking for --enable-postscript" >&5
10f2d63a
VZ
4596 no_cache=0
4597 # Check whether --enable-postscript or --disable-postscript was given.
4598if test "${enable_postscript+set}" = set; then
4599 enableval="$enable_postscript"
698dcdb6 4600
10f2d63a
VZ
4601 if test "$enableval" = yes; then
4602 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4603 else
4604 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4605 fi
698dcdb6 4606
10f2d63a 4607else
698dcdb6 4608
10f2d63a
VZ
4609 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4610 if test "x$LINE" != x ; then
4611 eval "DEFAULT_$LINE"
4612 else
4613 no_cache=1
4614 fi
4615
4616 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
4617
4618fi
10f2d63a
VZ
4619
4620
4621 eval "$ac_cv_use_postscript"
4622 if test "$no_cache" != 1; then
4623 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4624 fi
4625
4626 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 4627 echo "$ac_t""yes" 1>&6
10f2d63a 4628 else
698dcdb6 4629 echo "$ac_t""no" 1>&6
10f2d63a 4630 fi
698dcdb6
VZ
4631
4632
4633
10f2d63a 4634
1e6feb95 4635
698dcdb6 4636 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
29fd3c0c 4637echo "configure:4638: checking for --enable-prologio" >&5
10f2d63a
VZ
4638 no_cache=0
4639 # Check whether --enable-prologio or --disable-prologio was given.
4640if test "${enable_prologio+set}" = set; then
4641 enableval="$enable_prologio"
698dcdb6 4642
10f2d63a
VZ
4643 if test "$enableval" = yes; then
4644 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4645 else
4646 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4647 fi
698dcdb6 4648
10f2d63a 4649else
698dcdb6 4650
10f2d63a
VZ
4651 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4652 if test "x$LINE" != x ; then
4653 eval "DEFAULT_$LINE"
4654 else
4655 no_cache=1
4656 fi
4657
4658 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
4659
4660fi
10f2d63a
VZ
4661
4662
4663 eval "$ac_cv_use_prologio"
4664 if test "$no_cache" != 1; then
4665 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4666 fi
4667
4668 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 4669 echo "$ac_t""yes" 1>&6
10f2d63a 4670 else
698dcdb6 4671 echo "$ac_t""no" 1>&6
10f2d63a 4672 fi
698dcdb6 4673
10f2d63a 4674
698dcdb6 4675 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
29fd3c0c 4676echo "configure:4677: checking for --enable-resources" >&5
10f2d63a
VZ
4677 no_cache=0
4678 # Check whether --enable-resources or --disable-resources was given.
4679if test "${enable_resources+set}" = set; then
4680 enableval="$enable_resources"
698dcdb6 4681
10f2d63a
VZ
4682 if test "$enableval" = yes; then
4683 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4684 else
4685 ac_cv_use_resources='wxUSE_RESOURCES=no'
4686 fi
698dcdb6 4687
10f2d63a 4688else
698dcdb6 4689
10f2d63a
VZ
4690 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4691 if test "x$LINE" != x ; then
4692 eval "DEFAULT_$LINE"
4693 else
4694 no_cache=1
4695 fi
4696
4697 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
4698
4699fi
10f2d63a
VZ
4700
4701
4702 eval "$ac_cv_use_resources"
4703 if test "$no_cache" != 1; then
4704 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4705 fi
4706
4707 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 4708 echo "$ac_t""yes" 1>&6
10f2d63a 4709 else
698dcdb6 4710 echo "$ac_t""no" 1>&6
10f2d63a 4711 fi
698dcdb6 4712
10f2d63a 4713
698dcdb6
VZ
4714
4715 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
29fd3c0c 4716echo "configure:4717: checking for --enable-xresources" >&5
10f2d63a
VZ
4717 no_cache=0
4718 # Check whether --enable-xresources or --disable-xresources was given.
4719if test "${enable_xresources+set}" = set; then
4720 enableval="$enable_xresources"
698dcdb6 4721
10f2d63a
VZ
4722 if test "$enableval" = yes; then
4723 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4724 else
4725 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4726 fi
698dcdb6 4727
10f2d63a 4728else
698dcdb6 4729
10f2d63a
VZ
4730 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4731 if test "x$LINE" != x ; then
4732 eval "DEFAULT_$LINE"
4733 else
4734 no_cache=1
4735 fi
4736
4737 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
4738
4739fi
10f2d63a
VZ
4740
4741
4742 eval "$ac_cv_use_xresources"
4743 if test "$no_cache" != 1; then
4744 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4745 fi
4746
4747 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 4748 echo "$ac_t""yes" 1>&6
10f2d63a 4749 else
698dcdb6 4750 echo "$ac_t""no" 1>&6
10f2d63a 4751 fi
698dcdb6
VZ
4752
4753
10f2d63a 4754
698dcdb6
VZ
4755
4756 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
29fd3c0c 4757echo "configure:4758: checking for --enable-clipboard" >&5
10f2d63a
VZ
4758 no_cache=0
4759 # Check whether --enable-clipboard or --disable-clipboard was given.
4760if test "${enable_clipboard+set}" = set; then
4761 enableval="$enable_clipboard"
698dcdb6 4762
10f2d63a
VZ
4763 if test "$enableval" = yes; then
4764 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4765 else
4766 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4767 fi
698dcdb6 4768
10f2d63a 4769else
698dcdb6 4770
10f2d63a
VZ
4771 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4772 if test "x$LINE" != x ; then
4773 eval "DEFAULT_$LINE"
4774 else
4775 no_cache=1
4776 fi
4777
4778 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
4779
4780fi
10f2d63a
VZ
4781
4782
4783 eval "$ac_cv_use_clipboard"
4784 if test "$no_cache" != 1; then
4785 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4786 fi
4787
4788 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 4789 echo "$ac_t""yes" 1>&6
10f2d63a 4790 else
698dcdb6 4791 echo "$ac_t""no" 1>&6
10f2d63a 4792 fi
698dcdb6 4793
10f2d63a 4794
698dcdb6 4795 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
29fd3c0c 4796echo "configure:4797: checking for --enable-dnd" >&5
10f2d63a
VZ
4797 no_cache=0
4798 # Check whether --enable-dnd or --disable-dnd was given.
4799if test "${enable_dnd+set}" = set; then
4800 enableval="$enable_dnd"
698dcdb6 4801
10f2d63a
VZ
4802 if test "$enableval" = yes; then
4803 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4804 else
4805 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4806 fi
698dcdb6 4807
10f2d63a 4808else
698dcdb6 4809
10f2d63a
VZ
4810 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4811 if test "x$LINE" != x ; then
4812 eval "DEFAULT_$LINE"
4813 else
4814 no_cache=1
4815 fi
4816
4817 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
4818
4819fi
10f2d63a
VZ
4820
4821
4822 eval "$ac_cv_use_dnd"
4823 if test "$no_cache" != 1; then
4824 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4825 fi
4826
4827 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 4828 echo "$ac_t""yes" 1>&6
10f2d63a 4829 else
698dcdb6 4830 echo "$ac_t""no" 1>&6
10f2d63a 4831 fi
698dcdb6 4832
10f2d63a 4833
698dcdb6 4834 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
29fd3c0c 4835echo "configure:4836: checking for --enable-metafile" >&5
b64f0a5f
RL
4836 no_cache=0
4837 # Check whether --enable-metafile or --disable-metafile was given.
4838if test "${enable_metafile+set}" = set; then
4839 enableval="$enable_metafile"
698dcdb6 4840
b64f0a5f
RL
4841 if test "$enableval" = yes; then
4842 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4843 else
4844 ac_cv_use_metafile='wxUSE_METAFILE=no'
4845 fi
698dcdb6 4846
b64f0a5f 4847else
698dcdb6 4848
b64f0a5f
RL
4849 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4850 if test "x$LINE" != x ; then
4851 eval "DEFAULT_$LINE"
4852 else
4853 no_cache=1
4854 fi
4855
4856 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
4857
4858fi
b64f0a5f
RL
4859
4860
4861 eval "$ac_cv_use_metafile"
4862 if test "$no_cache" != 1; then
4863 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4864 fi
4865
4866 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 4867 echo "$ac_t""yes" 1>&6
b64f0a5f 4868 else
698dcdb6 4869 echo "$ac_t""no" 1>&6
b64f0a5f 4870 fi
698dcdb6
VZ
4871
4872
10f2d63a 4873
698dcdb6 4874 echo $ac_n "checking for --enable-wxtree""... $ac_c" 1>&6
29fd3c0c 4875echo "configure:4876: checking for --enable-wxtree" >&5
10f2d63a
VZ
4876 no_cache=0
4877 # Check whether --enable-wxtree or --disable-wxtree was given.
4878if test "${enable_wxtree+set}" = set; then
4879 enableval="$enable_wxtree"
698dcdb6 4880
10f2d63a
VZ
4881 if test "$enableval" = yes; then
4882 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
4883 else
4884 ac_cv_use_wxtree='wxUSE_WXTREE=no'
4885 fi
698dcdb6 4886
10f2d63a 4887else
698dcdb6 4888
10f2d63a
VZ
4889 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
4890 if test "x$LINE" != x ; then
4891 eval "DEFAULT_$LINE"
4892 else
4893 no_cache=1
4894 fi
4895
4896 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
698dcdb6
VZ
4897
4898fi
10f2d63a
VZ
4899
4900
4901 eval "$ac_cv_use_wxtree"
4902 if test "$no_cache" != 1; then
4903 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
4904 fi
4905
4906 if test "$wxUSE_WXTREE" = yes; then
698dcdb6 4907 echo "$ac_t""yes" 1>&6
10f2d63a 4908 else
698dcdb6 4909 echo "$ac_t""no" 1>&6
10f2d63a 4910 fi
698dcdb6 4911
10f2d63a 4912
698dcdb6
VZ
4913
4914
4915 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
29fd3c0c 4916echo "configure:4917: checking for --enable-controls" >&5
10f2d63a
VZ
4917 no_cache=0
4918 # Check whether --enable-controls or --disable-controls was given.
4919if test "${enable_controls+set}" = set; then
4920 enableval="$enable_controls"
698dcdb6 4921
10f2d63a
VZ
4922 if test "$enableval" = yes; then
4923 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4924 else
4925 ac_cv_use_controls='wxUSE_CONTROLS=no'
4926 fi
698dcdb6 4927
10f2d63a 4928else
698dcdb6 4929
10f2d63a
VZ
4930 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4931 if test "x$LINE" != x ; then
4932 eval "DEFAULT_$LINE"
4933 else
4934 no_cache=1
4935 fi
4936
4937 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
4938
4939fi
10f2d63a
VZ
4940
4941
4942 eval "$ac_cv_use_controls"
4943 if test "$no_cache" != 1; then
4944 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
4945 fi
4946
4947 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 4948 echo "$ac_t""yes" 1>&6
10f2d63a 4949 else
698dcdb6 4950 echo "$ac_t""no" 1>&6
10f2d63a 4951 fi
698dcdb6 4952
10f2d63a
VZ
4953
4954if test "$wxUSE_CONTROLS" = "yes"; then
4955 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
4956 DEFAULT_wxUSE_BMPBUTTON=yes
4957 DEFAULT_wxUSE_BUTTON=yes
4958 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
4959 DEFAULT_wxUSE_CARET=yes
4960 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
4961 DEFAULT_wxUSE_CHECKBOX=yes
4962 DEFAULT_wxUSE_CHECKLISTBOX=yes
4963 DEFAULT_wxUSE_CHOICE=yes
4964 DEFAULT_wxUSE_GAUGE=yes
4965 DEFAULT_wxUSE_GRID=yes
cc977e5f 4966 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
4967 DEFAULT_wxUSE_IMAGLIST=yes
4968 DEFAULT_wxUSE_LISTBOX=yes
4969 DEFAULT_wxUSE_LISTCTRL=yes
4970 DEFAULT_wxUSE_NOTEBOOK=yes
4971 DEFAULT_wxUSE_RADIOBOX=yes
4972 DEFAULT_wxUSE_RADIOBTN=yes
4973 DEFAULT_wxUSE_SASH=yes
4974 DEFAULT_wxUSE_SCROLLBAR=yes
4975 DEFAULT_wxUSE_SLIDER=yes
4976 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 4977 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
4978 DEFAULT_wxUSE_SPLITTER=yes
4979 DEFAULT_wxUSE_STATBMP=yes
4980 DEFAULT_wxUSE_STATBOX=yes
4981 DEFAULT_wxUSE_STATLINE=yes
4982 DEFAULT_wxUSE_STATUSBAR=yes
4983 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 4984 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 4985 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
4986 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4987 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
4988 DEFAULT_wxUSE_TOOLTIPS=yes
4989 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 4990 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
4991elif test "$wxUSE_CONTROLS" = "no"; then
4992 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
4993 DEFAULT_wxUSE_BMPBUTTON=no
4994 DEFAULT_wxUSE_BUTTON=no
4995 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
4996 DEFAULT_wxUSE_CARET=no
4997 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
4998 DEFAULT_wxUSE_CHECKBOX=no
4999 DEFAULT_wxUSE_CHECKLISTBOX=no
5000 DEFAULT_wxUSE_CHOICE=no
5001 DEFAULT_wxUSE_GAUGE=no
5002 DEFAULT_wxUSE_GRID=no
5003 DEFAULT_wxUSE_NEW_GRID=no
5004 DEFAULT_wxUSE_IMAGLIST=no
5005 DEFAULT_wxUSE_LISTBOX=no
5006 DEFAULT_wxUSE_LISTCTRL=no
5007 DEFAULT_wxUSE_NOTEBOOK=no
5008 DEFAULT_wxUSE_RADIOBOX=no
5009 DEFAULT_wxUSE_RADIOBTN=no
5010 DEFAULT_wxUSE_SASH=no
5011 DEFAULT_wxUSE_SCROLLBAR=no
5012 DEFAULT_wxUSE_SLIDER=no
5013 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5014 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5015 DEFAULT_wxUSE_SPLITTER=no
5016 DEFAULT_wxUSE_STATBMP=no
5017 DEFAULT_wxUSE_STATBOX=no
5018 DEFAULT_wxUSE_STATLINE=no
5019 DEFAULT_wxUSE_STATUSBAR=no
5020 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5021 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5022 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5023 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5024 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5025 DEFAULT_wxUSE_TOOLTIPS=no
5026 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5027 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
5028fi
5029
698dcdb6
VZ
5030
5031 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
29fd3c0c 5032echo "configure:5033: checking for --enable-accel" >&5
10f2d63a
VZ
5033 no_cache=0
5034 # Check whether --enable-accel or --disable-accel was given.
5035if test "${enable_accel+set}" = set; then
5036 enableval="$enable_accel"
698dcdb6 5037
10f2d63a
VZ
5038 if test "$enableval" = yes; then
5039 ac_cv_use_accel='wxUSE_ACCEL=yes'
5040 else
5041 ac_cv_use_accel='wxUSE_ACCEL=no'
5042 fi
698dcdb6 5043
10f2d63a 5044else
698dcdb6 5045
10f2d63a
VZ
5046 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5047 if test "x$LINE" != x ; then
5048 eval "DEFAULT_$LINE"
5049 else
5050 no_cache=1
5051 fi
5052
5053 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5054
5055fi
10f2d63a
VZ
5056
5057
5058 eval "$ac_cv_use_accel"
5059 if test "$no_cache" != 1; then
5060 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5061 fi
5062
5063 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5064 echo "$ac_t""yes" 1>&6
10f2d63a 5065 else
698dcdb6 5066 echo "$ac_t""no" 1>&6
10f2d63a 5067 fi
698dcdb6 5068
10f2d63a 5069
1e6feb95 5070 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
29fd3c0c 5071echo "configure:5072: checking for --enable-button" >&5
10f2d63a 5072 no_cache=0
1e6feb95
VZ
5073 # Check whether --enable-button or --disable-button was given.
5074if test "${enable_button+set}" = set; then
5075 enableval="$enable_button"
698dcdb6 5076
10f2d63a 5077 if test "$enableval" = yes; then
1e6feb95 5078 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5079 else
1e6feb95 5080 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5081 fi
698dcdb6 5082
10f2d63a 5083else
698dcdb6 5084
1e6feb95 5085 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5086 if test "x$LINE" != x ; then
5087 eval "DEFAULT_$LINE"
5088 else
5089 no_cache=1
5090 fi
5091
1e6feb95 5092 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5093
5094fi
10f2d63a
VZ
5095
5096
1e6feb95 5097 eval "$ac_cv_use_button"
10f2d63a 5098 if test "$no_cache" != 1; then
1e6feb95 5099 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5100 fi
5101
1e6feb95 5102 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5103 echo "$ac_t""yes" 1>&6
10f2d63a 5104 else
698dcdb6 5105 echo "$ac_t""no" 1>&6
10f2d63a 5106 fi
698dcdb6 5107
10f2d63a 5108
698dcdb6 5109 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
29fd3c0c 5110echo "configure:5111: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5111 no_cache=0
5112 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5113if test "${enable_bmpbutton+set}" = set; then
5114 enableval="$enable_bmpbutton"
698dcdb6 5115
10f2d63a
VZ
5116 if test "$enableval" = yes; then
5117 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5118 else
5119 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5120 fi
698dcdb6 5121
10f2d63a 5122else
698dcdb6 5123
10f2d63a
VZ
5124 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5125 if test "x$LINE" != x ; then
5126 eval "DEFAULT_$LINE"
5127 else
5128 no_cache=1
5129 fi
5130
5131 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5132
5133fi
10f2d63a
VZ
5134
5135
5136 eval "$ac_cv_use_bmpbutton"
5137 if test "$no_cache" != 1; then
5138 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5139 fi
5140
5141 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5142 echo "$ac_t""yes" 1>&6
10f2d63a 5143 else
698dcdb6 5144 echo "$ac_t""no" 1>&6
10f2d63a 5145 fi
698dcdb6 5146
10f2d63a 5147
1e6feb95 5148 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
29fd3c0c 5149echo "configure:5150: checking for --enable-calendar" >&5
1e6feb95
VZ
5150 no_cache=0
5151 # Check whether --enable-calendar or --disable-calendar was given.
5152if test "${enable_calendar+set}" = set; then
5153 enableval="$enable_calendar"
5154
5155 if test "$enableval" = yes; then
5156 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5157 else
5158 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5159 fi
5160
5161else
5162
5163 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5164 if test "x$LINE" != x ; then
5165 eval "DEFAULT_$LINE"
5166 else
5167 no_cache=1
5168 fi
5169
5170 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5171
5172fi
5173
5174
5175 eval "$ac_cv_use_calendar"
5176 if test "$no_cache" != 1; then
5177 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5178 fi
5179
5180 if test "$wxUSE_CALCTRL" = yes; then
5181 echo "$ac_t""yes" 1>&6
5182 else
5183 echo "$ac_t""no" 1>&6
5184 fi
5185
5186
5187 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
29fd3c0c 5188echo "configure:5189: checking for --enable-caret" >&5
1e6feb95
VZ
5189 no_cache=0
5190 # Check whether --enable-caret or --disable-caret was given.
5191if test "${enable_caret+set}" = set; then
5192 enableval="$enable_caret"
5193
5194 if test "$enableval" = yes; then
5195 ac_cv_use_caret='wxUSE_CARET=yes'
5196 else
5197 ac_cv_use_caret='wxUSE_CARET=no'
5198 fi
5199
5200else
5201
5202 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5203 if test "x$LINE" != x ; then
5204 eval "DEFAULT_$LINE"
5205 else
5206 no_cache=1
5207 fi
5208
5209 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5210
5211fi
5212
5213
5214 eval "$ac_cv_use_caret"
5215 if test "$no_cache" != 1; then
5216 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5217 fi
5218
5219 if test "$wxUSE_CARET" = yes; then
5220 echo "$ac_t""yes" 1>&6
5221 else
5222 echo "$ac_t""no" 1>&6
5223 fi
5224
5225
698dcdb6 5226 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
29fd3c0c 5227echo "configure:5228: checking for --enable-checkbox" >&5
10f2d63a
VZ
5228 no_cache=0
5229 # Check whether --enable-checkbox or --disable-checkbox was given.
5230if test "${enable_checkbox+set}" = set; then
5231 enableval="$enable_checkbox"
698dcdb6 5232
10f2d63a
VZ
5233 if test "$enableval" = yes; then
5234 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5235 else
5236 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5237 fi
698dcdb6 5238
10f2d63a 5239else
698dcdb6 5240
10f2d63a
VZ
5241 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5242 if test "x$LINE" != x ; then
5243 eval "DEFAULT_$LINE"
5244 else
5245 no_cache=1
5246 fi
5247
5248 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5249
5250fi
10f2d63a
VZ
5251
5252
5253 eval "$ac_cv_use_checkbox"
5254 if test "$no_cache" != 1; then
5255 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5256 fi
5257
5258 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5259 echo "$ac_t""yes" 1>&6
10f2d63a 5260 else
698dcdb6 5261 echo "$ac_t""no" 1>&6
10f2d63a 5262 fi
698dcdb6 5263
10f2d63a 5264
698dcdb6 5265 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
29fd3c0c 5266echo "configure:5267: checking for --enable-checklst" >&5
10f2d63a
VZ
5267 no_cache=0
5268 # Check whether --enable-checklst or --disable-checklst was given.
5269if test "${enable_checklst+set}" = set; then
5270 enableval="$enable_checklst"
698dcdb6 5271
10f2d63a
VZ
5272 if test "$enableval" = yes; then
5273 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5274 else
5275 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5276 fi
698dcdb6 5277
10f2d63a 5278else
698dcdb6 5279
10f2d63a
VZ
5280 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5281 if test "x$LINE" != x ; then
5282 eval "DEFAULT_$LINE"
5283 else
5284 no_cache=1
5285 fi
5286
5287 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5288
5289fi
10f2d63a
VZ
5290
5291
5292 eval "$ac_cv_use_checklst"
5293 if test "$no_cache" != 1; then
5294 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5295 fi
5296
5297 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5298 echo "$ac_t""yes" 1>&6
10f2d63a 5299 else
698dcdb6 5300 echo "$ac_t""no" 1>&6
10f2d63a 5301 fi
698dcdb6 5302
10f2d63a 5303
698dcdb6 5304 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
29fd3c0c 5305echo "configure:5306: checking for --enable-choice" >&5
10f2d63a
VZ
5306 no_cache=0
5307 # Check whether --enable-choice or --disable-choice was given.
5308if test "${enable_choice+set}" = set; then
5309 enableval="$enable_choice"
698dcdb6 5310
10f2d63a
VZ
5311 if test "$enableval" = yes; then
5312 ac_cv_use_choice='wxUSE_CHOICE=yes'
5313 else
5314 ac_cv_use_choice='wxUSE_CHOICE=no'
5315 fi
698dcdb6 5316
10f2d63a 5317else
698dcdb6 5318
10f2d63a
VZ
5319 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5320 if test "x$LINE" != x ; then
5321 eval "DEFAULT_$LINE"
5322 else
5323 no_cache=1
5324 fi
5325
5326 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5327
5328fi
10f2d63a
VZ
5329
5330
5331 eval "$ac_cv_use_choice"
5332 if test "$no_cache" != 1; then
5333 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5334 fi
5335
5336 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5337 echo "$ac_t""yes" 1>&6
10f2d63a 5338 else
698dcdb6 5339 echo "$ac_t""no" 1>&6
10f2d63a 5340 fi
698dcdb6 5341
10f2d63a 5342
698dcdb6 5343 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
29fd3c0c 5344echo "configure:5345: checking for --enable-combobox" >&5
10f2d63a
VZ
5345 no_cache=0
5346 # Check whether --enable-combobox or --disable-combobox was given.
5347if test "${enable_combobox+set}" = set; then
5348 enableval="$enable_combobox"
698dcdb6 5349
10f2d63a
VZ
5350 if test "$enableval" = yes; then
5351 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5352 else
5353 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5354 fi
698dcdb6 5355
10f2d63a 5356else
698dcdb6 5357
10f2d63a
VZ
5358 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5359 if test "x$LINE" != x ; then
5360 eval "DEFAULT_$LINE"
5361 else
5362 no_cache=1
5363 fi
5364
5365 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
5366
5367fi
10f2d63a
VZ
5368
5369
5370 eval "$ac_cv_use_combobox"
5371 if test "$no_cache" != 1; then
5372 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5373 fi
5374
5375 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 5376 echo "$ac_t""yes" 1>&6
10f2d63a 5377 else
698dcdb6 5378 echo "$ac_t""no" 1>&6
10f2d63a 5379 fi
698dcdb6 5380
10f2d63a 5381
698dcdb6 5382 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
29fd3c0c 5383echo "configure:5384: checking for --enable-gauge" >&5
10f2d63a
VZ
5384 no_cache=0
5385 # Check whether --enable-gauge or --disable-gauge was given.
5386if test "${enable_gauge+set}" = set; then
5387 enableval="$enable_gauge"
698dcdb6 5388
10f2d63a
VZ
5389 if test "$enableval" = yes; then
5390 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5391 else
5392 ac_cv_use_gauge='wxUSE_GAUGE=no'
5393 fi
698dcdb6 5394
10f2d63a 5395else
698dcdb6 5396
10f2d63a
VZ
5397 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5398 if test "x$LINE" != x ; then
5399 eval "DEFAULT_$LINE"
5400 else
5401 no_cache=1
5402 fi
5403
5404 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
5405
5406fi
10f2d63a
VZ
5407
5408
5409 eval "$ac_cv_use_gauge"
5410 if test "$no_cache" != 1; then
5411 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5412 fi
5413
5414 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 5415 echo "$ac_t""yes" 1>&6
10f2d63a 5416 else
698dcdb6 5417 echo "$ac_t""no" 1>&6
10f2d63a 5418 fi
698dcdb6 5419
10f2d63a 5420
698dcdb6 5421 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
29fd3c0c 5422echo "configure:5423: checking for --enable-grid" >&5
10f2d63a
VZ
5423 no_cache=0
5424 # Check whether --enable-grid or --disable-grid was given.
5425if test "${enable_grid+set}" = set; then
5426 enableval="$enable_grid"
698dcdb6 5427
10f2d63a
VZ
5428 if test "$enableval" = yes; then
5429 ac_cv_use_grid='wxUSE_GRID=yes'
5430 else
5431 ac_cv_use_grid='wxUSE_GRID=no'
5432 fi
698dcdb6 5433
10f2d63a 5434else
698dcdb6 5435
10f2d63a
VZ
5436 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5437 if test "x$LINE" != x ; then
5438 eval "DEFAULT_$LINE"
5439 else
5440 no_cache=1
5441 fi
5442
5443 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
5444
5445fi
10f2d63a
VZ
5446
5447
5448 eval "$ac_cv_use_grid"
5449 if test "$no_cache" != 1; then
5450 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5451 fi
5452
5453 if test "$wxUSE_GRID" = yes; then
698dcdb6 5454 echo "$ac_t""yes" 1>&6
10f2d63a 5455 else
698dcdb6 5456 echo "$ac_t""no" 1>&6
10f2d63a 5457 fi
698dcdb6 5458
10f2d63a 5459
698dcdb6 5460 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
29fd3c0c 5461echo "configure:5462: checking for --enable-newgrid" >&5
10f2d63a
VZ
5462 no_cache=0
5463 # Check whether --enable-newgrid or --disable-newgrid was given.
5464if test "${enable_newgrid+set}" = set; then
5465 enableval="$enable_newgrid"
698dcdb6 5466
10f2d63a
VZ
5467 if test "$enableval" = yes; then
5468 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5469 else
5470 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5471 fi
698dcdb6 5472
10f2d63a 5473else
698dcdb6 5474
10f2d63a
VZ
5475 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5476 if test "x$LINE" != x ; then
5477 eval "DEFAULT_$LINE"
5478 else
5479 no_cache=1
5480 fi
5481
5482 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
5483
5484fi
10f2d63a
VZ
5485
5486
5487 eval "$ac_cv_use_newgrid"
5488 if test "$no_cache" != 1; then
5489 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5490 fi
5491
5492 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 5493 echo "$ac_t""yes" 1>&6
10f2d63a 5494 else
698dcdb6 5495 echo "$ac_t""no" 1>&6
10f2d63a 5496 fi
698dcdb6 5497
10f2d63a 5498
698dcdb6 5499 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
29fd3c0c 5500echo "configure:5501: checking for --enable-imaglist" >&5
10f2d63a
VZ
5501 no_cache=0
5502 # Check whether --enable-imaglist or --disable-imaglist was given.
5503if test "${enable_imaglist+set}" = set; then
5504 enableval="$enable_imaglist"
698dcdb6 5505
10f2d63a
VZ
5506 if test "$enableval" = yes; then
5507 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5508 else
5509 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5510 fi
698dcdb6 5511
10f2d63a 5512else
698dcdb6 5513
10f2d63a
VZ
5514 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5515 if test "x$LINE" != x ; then
5516 eval "DEFAULT_$LINE"
5517 else
5518 no_cache=1
5519 fi
5520
5521 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
5522
5523fi
10f2d63a
VZ
5524
5525
5526 eval "$ac_cv_use_imaglist"
5527 if test "$no_cache" != 1; then
5528 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5529 fi
5530
5531 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 5532 echo "$ac_t""yes" 1>&6
10f2d63a 5533 else
698dcdb6 5534 echo "$ac_t""no" 1>&6
10f2d63a 5535 fi
698dcdb6 5536
10f2d63a 5537
698dcdb6 5538 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
29fd3c0c 5539echo "configure:5540: checking for --enable-listbox" >&5
10f2d63a
VZ
5540 no_cache=0
5541 # Check whether --enable-listbox or --disable-listbox was given.
5542if test "${enable_listbox+set}" = set; then
5543 enableval="$enable_listbox"
698dcdb6 5544
10f2d63a
VZ
5545 if test "$enableval" = yes; then
5546 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5547 else
5548 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5549 fi
698dcdb6 5550
10f2d63a 5551else
698dcdb6 5552
10f2d63a
VZ
5553 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5554 if test "x$LINE" != x ; then
5555 eval "DEFAULT_$LINE"
5556 else
5557 no_cache=1
5558 fi
5559
5560 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
5561
5562fi
10f2d63a
VZ
5563
5564
5565 eval "$ac_cv_use_listbox"
5566 if test "$no_cache" != 1; then
5567 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5568 fi
5569
5570 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 5571 echo "$ac_t""yes" 1>&6
10f2d63a 5572 else
698dcdb6 5573 echo "$ac_t""no" 1>&6
10f2d63a 5574 fi
698dcdb6 5575
10f2d63a 5576
698dcdb6 5577 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
29fd3c0c 5578echo "configure:5579: checking for --enable-listctrl" >&5
10f2d63a
VZ
5579 no_cache=0
5580 # Check whether --enable-listctrl or --disable-listctrl was given.
5581if test "${enable_listctrl+set}" = set; then
5582 enableval="$enable_listctrl"
698dcdb6 5583
10f2d63a
VZ
5584 if test "$enableval" = yes; then
5585 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5586 else
5587 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5588 fi
698dcdb6 5589
10f2d63a 5590else
698dcdb6 5591
10f2d63a
VZ
5592 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5593 if test "x$LINE" != x ; then
5594 eval "DEFAULT_$LINE"
5595 else
5596 no_cache=1
5597 fi
5598
5599 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
5600
5601fi
10f2d63a
VZ
5602
5603
5604 eval "$ac_cv_use_listctrl"
5605 if test "$no_cache" != 1; then
5606 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5607 fi
5608
5609 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 5610 echo "$ac_t""yes" 1>&6
10f2d63a 5611 else
698dcdb6 5612 echo "$ac_t""no" 1>&6
10f2d63a 5613 fi
698dcdb6 5614
10f2d63a 5615
698dcdb6 5616 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
29fd3c0c 5617echo "configure:5618: checking for --enable-notebook" >&5
10f2d63a
VZ
5618 no_cache=0
5619 # Check whether --enable-notebook or --disable-notebook was given.
5620if test "${enable_notebook+set}" = set; then
5621 enableval="$enable_notebook"
698dcdb6 5622
10f2d63a
VZ
5623 if test "$enableval" = yes; then
5624 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5625 else
5626 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5627 fi
698dcdb6 5628
10f2d63a 5629else
698dcdb6 5630
10f2d63a
VZ
5631 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5632 if test "x$LINE" != x ; then
5633 eval "DEFAULT_$LINE"
5634 else
5635 no_cache=1
5636 fi
5637
5638 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
5639
5640fi
10f2d63a
VZ
5641
5642
5643 eval "$ac_cv_use_notebook"
5644 if test "$no_cache" != 1; then
5645 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5646 fi
5647
5648 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 5649 echo "$ac_t""yes" 1>&6
10f2d63a 5650 else
698dcdb6 5651 echo "$ac_t""no" 1>&6
10f2d63a 5652 fi
698dcdb6 5653
10f2d63a 5654
698dcdb6 5655 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
29fd3c0c 5656echo "configure:5657: checking for --enable-radiobox" >&5
10f2d63a
VZ
5657 no_cache=0
5658 # Check whether --enable-radiobox or --disable-radiobox was given.
5659if test "${enable_radiobox+set}" = set; then
5660 enableval="$enable_radiobox"
698dcdb6 5661
10f2d63a
VZ
5662 if test "$enableval" = yes; then
5663 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5664 else
5665 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5666 fi
698dcdb6 5667
10f2d63a 5668else
698dcdb6 5669
10f2d63a
VZ
5670 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5671 if test "x$LINE" != x ; then
5672 eval "DEFAULT_$LINE"
5673 else
5674 no_cache=1
5675 fi
5676
5677 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
5678
5679fi
10f2d63a
VZ
5680
5681
5682 eval "$ac_cv_use_radiobox"
5683 if test "$no_cache" != 1; then
5684 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5685 fi
5686
5687 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 5688 echo "$ac_t""yes" 1>&6
10f2d63a 5689 else
698dcdb6 5690 echo "$ac_t""no" 1>&6
10f2d63a 5691 fi
698dcdb6 5692
10f2d63a 5693
698dcdb6 5694 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
29fd3c0c 5695echo "configure:5696: checking for --enable-radiobtn" >&5
10f2d63a
VZ
5696 no_cache=0
5697 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5698if test "${enable_radiobtn+set}" = set; then
5699 enableval="$enable_radiobtn"
698dcdb6 5700
10f2d63a
VZ
5701 if test "$enableval" = yes; then
5702 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5703 else
5704 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5705 fi
698dcdb6 5706
10f2d63a 5707else
698dcdb6 5708
10f2d63a
VZ
5709 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5710 if test "x$LINE" != x ; then
5711 eval "DEFAULT_$LINE"
5712 else
5713 no_cache=1
5714 fi
5715
5716 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
5717
5718fi
10f2d63a
VZ
5719
5720
5721 eval "$ac_cv_use_radiobtn"
5722 if test "$no_cache" != 1; then
5723 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5724 fi
5725
5726 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 5727 echo "$ac_t""yes" 1>&6
10f2d63a 5728 else
698dcdb6 5729 echo "$ac_t""no" 1>&6
10f2d63a 5730 fi
698dcdb6 5731
10f2d63a 5732
698dcdb6 5733 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
29fd3c0c 5734echo "configure:5735: checking for --enable-sash" >&5
10f2d63a
VZ
5735 no_cache=0
5736 # Check whether --enable-sash or --disable-sash was given.
5737if test "${enable_sash+set}" = set; then
5738 enableval="$enable_sash"
698dcdb6 5739
10f2d63a
VZ
5740 if test "$enableval" = yes; then
5741 ac_cv_use_sash='wxUSE_SASH=yes'
5742 else
5743 ac_cv_use_sash='wxUSE_SASH=no'
5744 fi
698dcdb6 5745
10f2d63a 5746else
698dcdb6 5747
10f2d63a
VZ
5748 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5749 if test "x$LINE" != x ; then
5750 eval "DEFAULT_$LINE"
5751 else
5752 no_cache=1
5753 fi
5754
5755 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
5756
5757fi
10f2d63a
VZ
5758
5759
5760 eval "$ac_cv_use_sash"
5761 if test "$no_cache" != 1; then
5762 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5763 fi
5764
5765 if test "$wxUSE_SASH" = yes; then
698dcdb6 5766 echo "$ac_t""yes" 1>&6
10f2d63a 5767 else
698dcdb6 5768 echo "$ac_t""no" 1>&6
10f2d63a 5769 fi
698dcdb6 5770
10f2d63a 5771
698dcdb6 5772 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
29fd3c0c 5773echo "configure:5774: checking for --enable-scrollbar" >&5
10f2d63a
VZ
5774 no_cache=0
5775 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5776if test "${enable_scrollbar+set}" = set; then
5777 enableval="$enable_scrollbar"
698dcdb6 5778
10f2d63a
VZ
5779 if test "$enableval" = yes; then
5780 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5781 else
5782 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5783 fi
698dcdb6 5784
10f2d63a 5785else
698dcdb6 5786
10f2d63a
VZ
5787 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5788 if test "x$LINE" != x ; then
5789 eval "DEFAULT_$LINE"
5790 else
5791 no_cache=1
5792 fi
5793
5794 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
5795
5796fi
10f2d63a
VZ
5797
5798
5799 eval "$ac_cv_use_scrollbar"
5800 if test "$no_cache" != 1; then
5801 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5802 fi
5803
5804 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 5805 echo "$ac_t""yes" 1>&6
10f2d63a 5806 else
698dcdb6 5807 echo "$ac_t""no" 1>&6
10f2d63a 5808 fi
698dcdb6 5809
10f2d63a 5810
698dcdb6 5811 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
29fd3c0c 5812echo "configure:5813: checking for --enable-slider" >&5
10f2d63a
VZ
5813 no_cache=0
5814 # Check whether --enable-slider or --disable-slider was given.
5815if test "${enable_slider+set}" = set; then
5816 enableval="$enable_slider"
698dcdb6 5817
10f2d63a
VZ
5818 if test "$enableval" = yes; then
5819 ac_cv_use_slider='wxUSE_SLIDER=yes'
5820 else
5821 ac_cv_use_slider='wxUSE_SLIDER=no'
5822 fi
698dcdb6 5823
10f2d63a 5824else
698dcdb6 5825
10f2d63a
VZ
5826 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5827 if test "x$LINE" != x ; then
5828 eval "DEFAULT_$LINE"
5829 else
5830 no_cache=1
5831 fi
5832
5833 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
5834
5835fi
10f2d63a
VZ
5836
5837
5838 eval "$ac_cv_use_slider"
5839 if test "$no_cache" != 1; then
5840 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5841 fi
5842
5843 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 5844 echo "$ac_t""yes" 1>&6
10f2d63a 5845 else
698dcdb6 5846 echo "$ac_t""no" 1>&6
10f2d63a 5847 fi
698dcdb6 5848
10f2d63a 5849
698dcdb6 5850 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
29fd3c0c 5851echo "configure:5852: checking for --enable-spinbtn" >&5
10f2d63a
VZ
5852 no_cache=0
5853 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5854if test "${enable_spinbtn+set}" = set; then
5855 enableval="$enable_spinbtn"
698dcdb6 5856
10f2d63a
VZ
5857 if test "$enableval" = yes; then
5858 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5859 else
5860 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5861 fi
698dcdb6 5862
10f2d63a 5863else
698dcdb6 5864
10f2d63a
VZ
5865 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5866 if test "x$LINE" != x ; then
5867 eval "DEFAULT_$LINE"
5868 else
5869 no_cache=1
5870 fi
5871
5872 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
5873
5874fi
10f2d63a
VZ
5875
5876
5877 eval "$ac_cv_use_spinbtn"
5878 if test "$no_cache" != 1; then
5879 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5880 fi
5881
5882 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 5883 echo "$ac_t""yes" 1>&6
10f2d63a 5884 else
698dcdb6 5885 echo "$ac_t""no" 1>&6
10f2d63a 5886 fi
698dcdb6 5887
10f2d63a 5888
698dcdb6 5889 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
29fd3c0c 5890echo "configure:5891: checking for --enable-spinctrl" >&5
56cfaa52
RR
5891 no_cache=0
5892 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5893if test "${enable_spinctrl+set}" = set; then
5894 enableval="$enable_spinctrl"
698dcdb6 5895
56cfaa52
RR
5896 if test "$enableval" = yes; then
5897 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
5898 else
5899 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
5900 fi
698dcdb6 5901
56cfaa52 5902else
698dcdb6 5903
56cfaa52
RR
5904 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
5905 if test "x$LINE" != x ; then
5906 eval "DEFAULT_$LINE"
5907 else
5908 no_cache=1
5909 fi
5910
5911 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
5912
5913fi
56cfaa52
RR
5914
5915
5916 eval "$ac_cv_use_spinctrl"
5917 if test "$no_cache" != 1; then
5918 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
5919 fi
5920
5921 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 5922 echo "$ac_t""yes" 1>&6
56cfaa52 5923 else
698dcdb6 5924 echo "$ac_t""no" 1>&6
56cfaa52 5925 fi
698dcdb6 5926
56cfaa52 5927
698dcdb6 5928 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
29fd3c0c 5929echo "configure:5930: checking for --enable-splitter" >&5
10f2d63a
VZ
5930 no_cache=0
5931 # Check whether --enable-splitter or --disable-splitter was given.
5932if test "${enable_splitter+set}" = set; then
5933 enableval="$enable_splitter"
698dcdb6 5934
10f2d63a
VZ
5935 if test "$enableval" = yes; then
5936 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
5937 else
5938 ac_cv_use_splitter='wxUSE_SPLITTER=no'
5939 fi
698dcdb6 5940
10f2d63a 5941else
698dcdb6 5942
10f2d63a
VZ
5943 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
5944 if test "x$LINE" != x ; then
5945 eval "DEFAULT_$LINE"
5946 else
5947 no_cache=1
5948 fi
5949
5950 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
5951
5952fi
10f2d63a
VZ
5953
5954
5955 eval "$ac_cv_use_splitter"
5956 if test "$no_cache" != 1; then
5957 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
5958 fi
5959
5960 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 5961 echo "$ac_t""yes" 1>&6
10f2d63a 5962 else
698dcdb6 5963 echo "$ac_t""no" 1>&6
10f2d63a 5964 fi
698dcdb6 5965
10f2d63a 5966
698dcdb6 5967 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
29fd3c0c 5968echo "configure:5969: checking for --enable-statbmp" >&5
10f2d63a
VZ
5969 no_cache=0
5970 # Check whether --enable-statbmp or --disable-statbmp was given.
5971if test "${enable_statbmp+set}" = set; then
5972 enableval="$enable_statbmp"
698dcdb6 5973
10f2d63a
VZ
5974 if test "$enableval" = yes; then
5975 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
5976 else
5977 ac_cv_use_statbmp='wxUSE_STATBMP=no'
5978 fi
698dcdb6 5979
10f2d63a 5980else
698dcdb6 5981
10f2d63a
VZ
5982 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
5983 if test "x$LINE" != x ; then
5984 eval "DEFAULT_$LINE"
5985 else
5986 no_cache=1
5987 fi
5988
5989 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
5990
5991fi
10f2d63a
VZ
5992
5993
5994 eval "$ac_cv_use_statbmp"
5995 if test "$no_cache" != 1; then
5996 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
5997 fi
5998
5999 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6000 echo "$ac_t""yes" 1>&6
10f2d63a 6001 else
698dcdb6 6002 echo "$ac_t""no" 1>&6
10f2d63a 6003 fi
698dcdb6 6004
10f2d63a 6005
698dcdb6 6006 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
29fd3c0c 6007echo "configure:6008: checking for --enable-statbox" >&5
10f2d63a
VZ
6008 no_cache=0
6009 # Check whether --enable-statbox or --disable-statbox was given.
6010if test "${enable_statbox+set}" = set; then
6011 enableval="$enable_statbox"
698dcdb6 6012
10f2d63a
VZ
6013 if test "$enableval" = yes; then
6014 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6015 else
6016 ac_cv_use_statbox='wxUSE_STATBOX=no'
6017 fi
698dcdb6 6018
10f2d63a 6019else
698dcdb6 6020
10f2d63a
VZ
6021 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6022 if test "x$LINE" != x ; then
6023 eval "DEFAULT_$LINE"
6024 else
6025 no_cache=1
6026 fi
6027
6028 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6029
6030fi
10f2d63a
VZ
6031
6032
6033 eval "$ac_cv_use_statbox"
6034 if test "$no_cache" != 1; then
6035 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6036 fi
6037
6038 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6039 echo "$ac_t""yes" 1>&6
10f2d63a 6040 else
698dcdb6 6041 echo "$ac_t""no" 1>&6
10f2d63a 6042 fi
698dcdb6 6043
10f2d63a 6044
698dcdb6 6045 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
29fd3c0c 6046echo "configure:6047: checking for --enable-statline" >&5
10f2d63a
VZ
6047 no_cache=0
6048 # Check whether --enable-statline or --disable-statline was given.
6049if test "${enable_statline+set}" = set; then
6050 enableval="$enable_statline"
698dcdb6 6051
10f2d63a
VZ
6052 if test "$enableval" = yes; then
6053 ac_cv_use_statline='wxUSE_STATLINE=yes'
6054 else
6055 ac_cv_use_statline='wxUSE_STATLINE=no'
6056 fi
698dcdb6 6057
10f2d63a 6058else
698dcdb6 6059
10f2d63a
VZ
6060 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6061 if test "x$LINE" != x ; then
6062 eval "DEFAULT_$LINE"
6063 else
6064 no_cache=1
6065 fi
6066
6067 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6068
6069fi
10f2d63a
VZ
6070
6071
6072 eval "$ac_cv_use_statline"
6073 if test "$no_cache" != 1; then
6074 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6075 fi
6076
6077 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6078 echo "$ac_t""yes" 1>&6
10f2d63a 6079 else
698dcdb6 6080 echo "$ac_t""no" 1>&6
10f2d63a 6081 fi
698dcdb6 6082
10f2d63a 6083
1e6feb95 6084 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
29fd3c0c 6085echo "configure:6086: checking for --enable-stattext" >&5
1e6feb95
VZ
6086 no_cache=0
6087 # Check whether --enable-stattext or --disable-stattext was given.
6088if test "${enable_stattext+set}" = set; then
6089 enableval="$enable_stattext"
6090
6091 if test "$enableval" = yes; then
6092 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6093 else
6094 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6095 fi
6096
6097else
6098
6099 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6100 if test "x$LINE" != x ; then
6101 eval "DEFAULT_$LINE"
6102 else
6103 no_cache=1
6104 fi
6105
6106 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6107
6108fi
6109
6110
6111 eval "$ac_cv_use_stattext"
6112 if test "$no_cache" != 1; then
6113 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6114 fi
6115
6116 if test "$wxUSE_STATTEXT" = yes; then
6117 echo "$ac_t""yes" 1>&6
6118 else
6119 echo "$ac_t""no" 1>&6
6120 fi
6121
6122
698dcdb6 6123 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
29fd3c0c 6124echo "configure:6125: checking for --enable-statusbar" >&5
10f2d63a
VZ
6125 no_cache=0
6126 # Check whether --enable-statusbar or --disable-statusbar was given.
6127if test "${enable_statusbar+set}" = set; then
6128 enableval="$enable_statusbar"
698dcdb6 6129
10f2d63a
VZ
6130 if test "$enableval" = yes; then
6131 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6132 else
6133 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6134 fi
698dcdb6 6135
10f2d63a 6136else
698dcdb6 6137
10f2d63a
VZ
6138 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6139 if test "x$LINE" != x ; then
6140 eval "DEFAULT_$LINE"
6141 else
6142 no_cache=1
6143 fi
6144
6145 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6146
6147fi
10f2d63a
VZ
6148
6149
6150 eval "$ac_cv_use_statusbar"
6151 if test "$no_cache" != 1; then
6152 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6153 fi
6154
6155 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6156 echo "$ac_t""yes" 1>&6
10f2d63a 6157 else
698dcdb6 6158 echo "$ac_t""no" 1>&6
10f2d63a 6159 fi
698dcdb6 6160
10f2d63a 6161
698dcdb6 6162 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
29fd3c0c 6163echo "configure:6164: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6164 no_cache=0
6165 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6166if test "${enable_tabdialog+set}" = set; then
6167 enableval="$enable_tabdialog"
698dcdb6 6168
10f2d63a
VZ
6169 if test "$enableval" = yes; then
6170 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6171 else
6172 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6173 fi
698dcdb6 6174
10f2d63a 6175else
698dcdb6 6176
10f2d63a
VZ
6177 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6178 if test "x$LINE" != x ; then
6179 eval "DEFAULT_$LINE"
6180 else
6181 no_cache=1
6182 fi
6183
6184 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6185
6186fi
10f2d63a
VZ
6187
6188
6189 eval "$ac_cv_use_tabdialog"
6190 if test "$no_cache" != 1; then
6191 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6192 fi
6193
6194 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6195 echo "$ac_t""yes" 1>&6
10f2d63a 6196 else
698dcdb6 6197 echo "$ac_t""no" 1>&6
10f2d63a 6198 fi
698dcdb6 6199
10f2d63a 6200
1e6feb95 6201 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
29fd3c0c 6202echo "configure:6203: checking for --enable-textctrl" >&5
1e6feb95
VZ
6203 no_cache=0
6204 # Check whether --enable-textctrl or --disable-textctrl was given.
6205if test "${enable_textctrl+set}" = set; then
6206 enableval="$enable_textctrl"
6207
6208 if test "$enableval" = yes; then
6209 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6210 else
6211 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6212 fi
6213
6214else
6215
6216 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6217 if test "x$LINE" != x ; then
6218 eval "DEFAULT_$LINE"
6219 else
6220 no_cache=1
6221 fi
6222
6223 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6224
6225fi
6226
6227
6228 eval "$ac_cv_use_textctrl"
6229 if test "$no_cache" != 1; then
6230 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6231 fi
6232
6233 if test "$wxUSE_TEXTCTRL" = yes; then
6234 echo "$ac_t""yes" 1>&6
6235 else
6236 echo "$ac_t""no" 1>&6
6237 fi
6238
6239
698dcdb6 6240 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
29fd3c0c 6241echo "configure:6242: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6242 no_cache=0
6243 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6244if test "${enable_togglebtn+set}" = set; then
6245 enableval="$enable_togglebtn"
698dcdb6 6246
1db8dc4a
VZ
6247 if test "$enableval" = yes; then
6248 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6249 else
6250 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6251 fi
698dcdb6 6252
1db8dc4a 6253else
698dcdb6 6254
1db8dc4a
VZ
6255 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6256 if test "x$LINE" != x ; then
6257 eval "DEFAULT_$LINE"
6258 else
6259 no_cache=1
6260 fi
6261
6262 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6263
6264fi
1db8dc4a
VZ
6265
6266
6267 eval "$ac_cv_use_togglebtn"
6268 if test "$no_cache" != 1; then
6269 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6270 fi
6271
6272 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6273 echo "$ac_t""yes" 1>&6
1db8dc4a 6274 else
698dcdb6 6275 echo "$ac_t""no" 1>&6
1db8dc4a 6276 fi
698dcdb6 6277
1db8dc4a 6278
698dcdb6 6279 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
29fd3c0c 6280echo "configure:6281: checking for --enable-toolbar" >&5
10f2d63a
VZ
6281 no_cache=0
6282 # Check whether --enable-toolbar or --disable-toolbar was given.
6283if test "${enable_toolbar+set}" = set; then
6284 enableval="$enable_toolbar"
698dcdb6 6285
10f2d63a
VZ
6286 if test "$enableval" = yes; then
6287 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6288 else
6289 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6290 fi
698dcdb6 6291
10f2d63a 6292else
698dcdb6 6293
10f2d63a
VZ
6294 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6295 if test "x$LINE" != x ; then
6296 eval "DEFAULT_$LINE"
6297 else
6298 no_cache=1
6299 fi
6300
6301 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
6302
6303fi
10f2d63a
VZ
6304
6305
6306 eval "$ac_cv_use_toolbar"
6307 if test "$no_cache" != 1; then
6308 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6309 fi
6310
6311 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 6312 echo "$ac_t""yes" 1>&6
10f2d63a 6313 else
698dcdb6 6314 echo "$ac_t""no" 1>&6
10f2d63a 6315 fi
698dcdb6 6316
10f2d63a 6317
698dcdb6 6318 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
29fd3c0c 6319echo "configure:6320: checking for --enable-tbarnative" >&5
360d6699
VZ
6320 no_cache=0
6321 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6322if test "${enable_tbarnative+set}" = set; then
6323 enableval="$enable_tbarnative"
698dcdb6 6324
360d6699
VZ
6325 if test "$enableval" = yes; then
6326 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6327 else
6328 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6329 fi
698dcdb6 6330
360d6699 6331else
698dcdb6 6332
360d6699
VZ
6333 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6334 if test "x$LINE" != x ; then
6335 eval "DEFAULT_$LINE"
6336 else
6337 no_cache=1
6338 fi
6339
6340 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
6341
6342fi
360d6699
VZ
6343
6344
6345 eval "$ac_cv_use_tbarnative"
6346 if test "$no_cache" != 1; then
6347 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6348 fi
6349
6350 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 6351 echo "$ac_t""yes" 1>&6
360d6699 6352 else
698dcdb6 6353 echo "$ac_t""no" 1>&6
360d6699 6354 fi
698dcdb6 6355
360d6699 6356
698dcdb6 6357 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
29fd3c0c 6358echo "configure:6359: checking for --enable-tbarsmpl" >&5
360d6699
VZ
6359 no_cache=0
6360 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6361if test "${enable_tbarsmpl+set}" = set; then
6362 enableval="$enable_tbarsmpl"
698dcdb6 6363
360d6699
VZ
6364 if test "$enableval" = yes; then
6365 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6366 else
6367 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6368 fi
698dcdb6 6369
360d6699 6370else
698dcdb6 6371
360d6699
VZ
6372 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6373 if test "x$LINE" != x ; then
6374 eval "DEFAULT_$LINE"
6375 else
6376 no_cache=1
6377 fi
6378
6379 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
6380
6381fi
360d6699
VZ
6382
6383
6384 eval "$ac_cv_use_tbarsmpl"
6385 if test "$no_cache" != 1; then
6386 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6387 fi
6388
6389 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 6390 echo "$ac_t""yes" 1>&6
360d6699 6391 else
698dcdb6 6392 echo "$ac_t""no" 1>&6
360d6699 6393 fi
698dcdb6 6394
360d6699 6395
698dcdb6 6396 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
29fd3c0c 6397echo "configure:6398: checking for --enable-treectrl" >&5
10f2d63a
VZ
6398 no_cache=0
6399 # Check whether --enable-treectrl or --disable-treectrl was given.
6400if test "${enable_treectrl+set}" = set; then
6401 enableval="$enable_treectrl"
698dcdb6 6402
10f2d63a
VZ
6403 if test "$enableval" = yes; then
6404 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6405 else
6406 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6407 fi
698dcdb6 6408
10f2d63a 6409else
698dcdb6 6410
10f2d63a
VZ
6411 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6412 if test "x$LINE" != x ; then
6413 eval "DEFAULT_$LINE"
6414 else
6415 no_cache=1
6416 fi
6417
6418 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
6419
6420fi
10f2d63a
VZ
6421
6422
1e6feb95
VZ
6423 eval "$ac_cv_use_treectrl"
6424 if test "$no_cache" != 1; then
6425 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6426 fi
6427
6428 if test "$wxUSE_TREECTRL" = yes; then
6429 echo "$ac_t""yes" 1>&6
6430 else
6431 echo "$ac_t""no" 1>&6
6432 fi
6433
6434
9f41d601 6435 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
29fd3c0c 6436echo "configure:6437: checking for --enable-popupwin" >&5
9f41d601
RR
6437 no_cache=0
6438 # Check whether --enable-popupwin or --disable-popupwin was given.
6439if test "${enable_popupwin+set}" = set; then
6440 enableval="$enable_popupwin"
6441
6442 if test "$enableval" = yes; then
6443 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6444 else
6445 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6446 fi
6447
6448else
6449
6450 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6451 if test "x$LINE" != x ; then
6452 eval "DEFAULT_$LINE"
6453 else
6454 no_cache=1
6455 fi
6456
6457 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6458
6459fi
6460
6461
6462 eval "$ac_cv_use_popupwin"
6463 if test "$no_cache" != 1; then
6464 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6465 fi
6466
6467 if test "$wxUSE_POPUPWIN" = yes; then
6468 echo "$ac_t""yes" 1>&6
6469 else
6470 echo "$ac_t""no" 1>&6
6471 fi
6472
6473
1e6feb95
VZ
6474
6475
6476 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
29fd3c0c 6477echo "configure:6478: checking for --enable-commondlg" >&5
1e6feb95
VZ
6478 no_cache=0
6479 # Check whether --enable-commondlg or --disable-commondlg was given.
6480if test "${enable_commondlg+set}" = set; then
6481 enableval="$enable_commondlg"
6482
6483 if test "$enableval" = yes; then
6484 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6485 else
6486 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6487 fi
6488
6489else
6490
6491 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6492 if test "x$LINE" != x ; then
6493 eval "DEFAULT_$LINE"
6494 else
6495 no_cache=1
6496 fi
6497
6498 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6499
6500fi
6501
6502
6503 eval "$ac_cv_use_commondlg"
6504 if test "$no_cache" != 1; then
6505 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6506 fi
6507
6508 if test "$wxUSE_COMMONDLGS" = yes; then
6509 echo "$ac_t""yes" 1>&6
6510 else
6511 echo "$ac_t""no" 1>&6
6512 fi
6513
6514
6515 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
29fd3c0c 6516echo "configure:6517: checking for --enable-choicedlg" >&5
1e6feb95
VZ
6517 no_cache=0
6518 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6519if test "${enable_choicedlg+set}" = set; then
6520 enableval="$enable_choicedlg"
6521
6522 if test "$enableval" = yes; then
6523 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6524 else
6525 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6526 fi
6527
6528else
6529
6530 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6531 if test "x$LINE" != x ; then
6532 eval "DEFAULT_$LINE"
6533 else
6534 no_cache=1
6535 fi
6536
6537 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6538
6539fi
6540
6541
6542 eval "$ac_cv_use_choicedlg"
6543 if test "$no_cache" != 1; then
6544 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6545 fi
6546
6547 if test "$wxUSE_CHOICEDLG" = yes; then
6548 echo "$ac_t""yes" 1>&6
6549 else
6550 echo "$ac_t""no" 1>&6
6551 fi
6552
6553
6554 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
29fd3c0c 6555echo "configure:6556: checking for --enable-coldlg" >&5
1e6feb95
VZ
6556 no_cache=0
6557 # Check whether --enable-coldlg or --disable-coldlg was given.
6558if test "${enable_coldlg+set}" = set; then
6559 enableval="$enable_coldlg"
6560
6561 if test "$enableval" = yes; then
6562 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6563 else
6564 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6565 fi
6566
6567else
6568
6569 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6570 if test "x$LINE" != x ; then
6571 eval "DEFAULT_$LINE"
6572 else
6573 no_cache=1
6574 fi
6575
6576 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6577
6578fi
6579
6580
6581 eval "$ac_cv_use_coldlg"
6582 if test "$no_cache" != 1; then
6583 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6584 fi
6585
6586 if test "$wxUSE_COLOURDLG" = yes; then
6587 echo "$ac_t""yes" 1>&6
6588 else
6589 echo "$ac_t""no" 1>&6
6590 fi
6591
6592
6593 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
29fd3c0c 6594echo "configure:6595: checking for --enable-filedlg" >&5
1e6feb95
VZ
6595 no_cache=0
6596 # Check whether --enable-filedlg or --disable-filedlg was given.
6597if test "${enable_filedlg+set}" = set; then
6598 enableval="$enable_filedlg"
6599
6600 if test "$enableval" = yes; then
6601 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6602 else
6603 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6604 fi
6605
6606else
6607
6608 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6609 if test "x$LINE" != x ; then
6610 eval "DEFAULT_$LINE"
6611 else
6612 no_cache=1
6613 fi
6614
6615 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6616
6617fi
6618
6619
6620 eval "$ac_cv_use_filedlg"
6621 if test "$no_cache" != 1; then
6622 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6623 fi
6624
6625 if test "$wxUSE_FILEDLG" = yes; then
6626 echo "$ac_t""yes" 1>&6
6627 else
6628 echo "$ac_t""no" 1>&6
6629 fi
6630
6631
6632 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
29fd3c0c 6633echo "configure:6634: checking for --enable-fontdlg" >&5
1e6feb95
VZ
6634 no_cache=0
6635 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6636if test "${enable_fontdlg+set}" = set; then
6637 enableval="$enable_fontdlg"
6638
6639 if test "$enableval" = yes; then
6640 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6641 else
6642 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6643 fi
6644
6645else
6646
6647 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6648 if test "x$LINE" != x ; then
6649 eval "DEFAULT_$LINE"
6650 else
6651 no_cache=1
6652 fi
6653
6654 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6655
6656fi
6657
6658
6659 eval "$ac_cv_use_fontdlg"
6660 if test "$no_cache" != 1; then
6661 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6662 fi
6663
6664 if test "$wxUSE_FONTDLG" = yes; then
6665 echo "$ac_t""yes" 1>&6
6666 else
6667 echo "$ac_t""no" 1>&6
6668 fi
6669
6670
6671 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
29fd3c0c 6672echo "configure:6673: checking for --enable-dirdlg" >&5
1e6feb95
VZ
6673 no_cache=0
6674 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6675if test "${enable_dirdlg+set}" = set; then
6676 enableval="$enable_dirdlg"
6677
6678 if test "$enableval" = yes; then
6679 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6680 else
6681 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6682 fi
6683
6684else
6685
6686 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6687 if test "x$LINE" != x ; then
6688 eval "DEFAULT_$LINE"
6689 else
6690 no_cache=1
6691 fi
6692
6693 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6694
6695fi
6696
6697
6698 eval "$ac_cv_use_dirdlg"
10f2d63a 6699 if test "$no_cache" != 1; then
1e6feb95 6700 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6701 fi
6702
1e6feb95 6703 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 6704 echo "$ac_t""yes" 1>&6
10f2d63a 6705 else
698dcdb6 6706 echo "$ac_t""no" 1>&6
10f2d63a 6707 fi
698dcdb6
VZ
6708
6709
1e6feb95 6710 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
29fd3c0c 6711echo "configure:6712: checking for --enable-msgdlg" >&5
10f2d63a 6712 no_cache=0
1e6feb95
VZ
6713 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6714if test "${enable_msgdlg+set}" = set; then
6715 enableval="$enable_msgdlg"
698dcdb6 6716
10f2d63a 6717 if test "$enableval" = yes; then
1e6feb95 6718 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 6719 else
1e6feb95 6720 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 6721 fi
698dcdb6 6722
10f2d63a 6723else
698dcdb6 6724
1e6feb95 6725 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6726 if test "x$LINE" != x ; then
6727 eval "DEFAULT_$LINE"
6728 else
6729 no_cache=1
6730 fi
6731
1e6feb95 6732 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
6733
6734fi
10f2d63a
VZ
6735
6736
1e6feb95 6737 eval "$ac_cv_use_msgdlg"
10f2d63a 6738 if test "$no_cache" != 1; then
1e6feb95 6739 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6740 fi
6741
1e6feb95 6742 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 6743 echo "$ac_t""yes" 1>&6
10f2d63a 6744 else
698dcdb6 6745 echo "$ac_t""no" 1>&6
10f2d63a 6746 fi
698dcdb6 6747
10f2d63a 6748
1e6feb95 6749 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
29fd3c0c 6750echo "configure:6751: checking for --enable-numberdlg" >&5
10f2d63a 6751 no_cache=0
1e6feb95
VZ
6752 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6753if test "${enable_numberdlg+set}" = set; then
6754 enableval="$enable_numberdlg"
698dcdb6 6755
10f2d63a 6756 if test "$enableval" = yes; then
1e6feb95 6757 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 6758 else
1e6feb95 6759 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 6760 fi
698dcdb6 6761
10f2d63a 6762else
698dcdb6 6763
1e6feb95 6764 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6765 if test "x$LINE" != x ; then
6766 eval "DEFAULT_$LINE"
6767 else
6768 no_cache=1
6769 fi
6770
1e6feb95 6771 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
6772
6773fi
10f2d63a
VZ
6774
6775
1e6feb95 6776 eval "$ac_cv_use_numberdlg"
10f2d63a 6777 if test "$no_cache" != 1; then
1e6feb95 6778 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6779 fi
6780
1e6feb95 6781 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 6782 echo "$ac_t""yes" 1>&6
10f2d63a 6783 else
698dcdb6 6784 echo "$ac_t""no" 1>&6
10f2d63a 6785 fi
698dcdb6 6786
10f2d63a 6787
698dcdb6 6788 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
29fd3c0c 6789echo "configure:6790: checking for --enable-textdlg" >&5
10f2d63a
VZ
6790 no_cache=0
6791 # Check whether --enable-textdlg or --disable-textdlg was given.
6792if test "${enable_textdlg+set}" = set; then
6793 enableval="$enable_textdlg"
698dcdb6 6794
10f2d63a
VZ
6795 if test "$enableval" = yes; then
6796 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6797 else
6798 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6799 fi
698dcdb6 6800
10f2d63a 6801else
698dcdb6 6802
10f2d63a
VZ
6803 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6804 if test "x$LINE" != x ; then
6805 eval "DEFAULT_$LINE"
6806 else
6807 no_cache=1
6808 fi
6809
6810 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
6811
6812fi
10f2d63a
VZ
6813
6814
6815 eval "$ac_cv_use_textdlg"
6816 if test "$no_cache" != 1; then
6817 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
6818 fi
6819
6820 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 6821 echo "$ac_t""yes" 1>&6
10f2d63a 6822 else
698dcdb6 6823 echo "$ac_t""no" 1>&6
10f2d63a 6824 fi
698dcdb6 6825
10f2d63a 6826
698dcdb6 6827 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
29fd3c0c 6828echo "configure:6829: checking for --enable-tipdlg" >&5
10f2d63a
VZ
6829 no_cache=0
6830 # Check whether --enable-tipdlg or --disable-tipdlg was given.
6831if test "${enable_tipdlg+set}" = set; then
6832 enableval="$enable_tipdlg"
698dcdb6 6833
10f2d63a
VZ
6834 if test "$enableval" = yes; then
6835 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
6836 else
6837 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
6838 fi
698dcdb6 6839
10f2d63a 6840else
698dcdb6 6841
10f2d63a
VZ
6842 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
6843 if test "x$LINE" != x ; then
6844 eval "DEFAULT_$LINE"
6845 else
6846 no_cache=1
6847 fi
6848
6849 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
6850
6851fi
10f2d63a
VZ
6852
6853
6854 eval "$ac_cv_use_tipdlg"
6855 if test "$no_cache" != 1; then
6856 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
6857 fi
6858
6859 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 6860 echo "$ac_t""yes" 1>&6
10f2d63a 6861 else
698dcdb6 6862 echo "$ac_t""no" 1>&6
10f2d63a 6863 fi
698dcdb6 6864
10f2d63a 6865
698dcdb6 6866 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
29fd3c0c 6867echo "configure:6868: checking for --enable-progressdlg" >&5
10f2d63a
VZ
6868 no_cache=0
6869 # Check whether --enable-progressdlg or --disable-progressdlg was given.
6870if test "${enable_progressdlg+set}" = set; then
6871 enableval="$enable_progressdlg"
698dcdb6 6872
10f2d63a
VZ
6873 if test "$enableval" = yes; then
6874 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
6875 else
6876 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
6877 fi
698dcdb6 6878
10f2d63a 6879else
698dcdb6 6880
10f2d63a
VZ
6881 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
6882 if test "x$LINE" != x ; then
6883 eval "DEFAULT_$LINE"
6884 else
6885 no_cache=1
6886 fi
6887
6888 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
6889
6890fi
10f2d63a
VZ
6891
6892
6893 eval "$ac_cv_use_progressdlg"
6894 if test "$no_cache" != 1; then
6895 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
6896 fi
6897
6898 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 6899 echo "$ac_t""yes" 1>&6
10f2d63a 6900 else
698dcdb6 6901 echo "$ac_t""no" 1>&6
10f2d63a 6902 fi
698dcdb6 6903
10f2d63a 6904
b1f5d087 6905 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
29fd3c0c 6906echo "configure:6907: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
6907 no_cache=0
6908 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
6909if test "${enable_wizarddlg+set}" = set; then
6910 enableval="$enable_wizarddlg"
6911
6912 if test "$enableval" = yes; then
6913 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
6914 else
6915 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
6916 fi
6917
6918else
6919
6920 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
6921 if test "x$LINE" != x ; then
6922 eval "DEFAULT_$LINE"
6923 else
6924 no_cache=1
6925 fi
6926
6927 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
6928
6929fi
6930
6931
6932 eval "$ac_cv_use_wizarddlg"
6933 if test "$no_cache" != 1; then
6934 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
6935 fi
6936
6937 if test "$wxUSE_WIZARDDLG" = yes; then
6938 echo "$ac_t""yes" 1>&6
6939 else
6940 echo "$ac_t""no" 1>&6
6941 fi
6942
6943
6944
6945
1e6feb95 6946 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
29fd3c0c 6947echo "configure:6948: checking for --enable-menus" >&5
1e6feb95
VZ
6948 no_cache=0
6949 # Check whether --enable-menus or --disable-menus was given.
6950if test "${enable_menus+set}" = set; then
6951 enableval="$enable_menus"
6952
6953 if test "$enableval" = yes; then
6954 ac_cv_use_menus='wxUSE_MENUS=yes'
6955 else
6956 ac_cv_use_menus='wxUSE_MENUS=no'
6957 fi
6958
6959else
6960
6961 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
6962 if test "x$LINE" != x ; then
6963 eval "DEFAULT_$LINE"
6964 else
6965 no_cache=1
6966 fi
6967
6968 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
6969
6970fi
6971
6972
6973 eval "$ac_cv_use_menus"
6974 if test "$no_cache" != 1; then
6975 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
6976 fi
6977
6978 if test "$wxUSE_MENUS" = yes; then
6979 echo "$ac_t""yes" 1>&6
6980 else
6981 echo "$ac_t""no" 1>&6
6982 fi
6983
6984
698dcdb6 6985 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
29fd3c0c 6986echo "configure:6987: checking for --enable-miniframe" >&5
10f2d63a
VZ
6987 no_cache=0
6988 # Check whether --enable-miniframe or --disable-miniframe was given.
6989if test "${enable_miniframe+set}" = set; then
6990 enableval="$enable_miniframe"
698dcdb6 6991
10f2d63a
VZ
6992 if test "$enableval" = yes; then
6993 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
6994 else
6995 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
6996 fi
698dcdb6 6997
10f2d63a 6998else
698dcdb6 6999
10f2d63a
VZ
7000 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7001 if test "x$LINE" != x ; then
7002 eval "DEFAULT_$LINE"
7003 else
7004 no_cache=1
7005 fi
7006
7007 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7008
7009fi
10f2d63a
VZ
7010
7011
7012 eval "$ac_cv_use_miniframe"
7013 if test "$no_cache" != 1; then
7014 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7015 fi
7016
7017 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7018 echo "$ac_t""yes" 1>&6
10f2d63a 7019 else
698dcdb6 7020 echo "$ac_t""no" 1>&6
10f2d63a 7021 fi
698dcdb6 7022
10f2d63a 7023
698dcdb6 7024 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
29fd3c0c 7025echo "configure:7026: checking for --enable-tooltips" >&5
10f2d63a
VZ
7026 no_cache=0
7027 # Check whether --enable-tooltips or --disable-tooltips was given.
7028if test "${enable_tooltips+set}" = set; then
7029 enableval="$enable_tooltips"
698dcdb6 7030
10f2d63a
VZ
7031 if test "$enableval" = yes; then
7032 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7033 else
7034 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7035 fi
698dcdb6 7036
10f2d63a 7037else
698dcdb6 7038
10f2d63a
VZ
7039 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7040 if test "x$LINE" != x ; then
7041 eval "DEFAULT_$LINE"
7042 else
7043 no_cache=1
7044 fi
7045
7046 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7047
7048fi
10f2d63a
VZ
7049
7050
7051 eval "$ac_cv_use_tooltips"
7052 if test "$no_cache" != 1; then
7053 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7054 fi
7055
7056 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7057 echo "$ac_t""yes" 1>&6
10f2d63a 7058 else
698dcdb6 7059 echo "$ac_t""no" 1>&6
10f2d63a 7060 fi
698dcdb6 7061
10f2d63a 7062
698dcdb6 7063 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
29fd3c0c 7064echo "configure:7065: checking for --enable-splines" >&5
10f2d63a
VZ
7065 no_cache=0
7066 # Check whether --enable-splines or --disable-splines was given.
7067if test "${enable_splines+set}" = set; then
7068 enableval="$enable_splines"
698dcdb6 7069
10f2d63a
VZ
7070 if test "$enableval" = yes; then
7071 ac_cv_use_splines='wxUSE_SPLINES=yes'
7072 else
7073 ac_cv_use_splines='wxUSE_SPLINES=no'
7074 fi
698dcdb6 7075
10f2d63a 7076else
698dcdb6 7077
10f2d63a
VZ
7078 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7079 if test "x$LINE" != x ; then
7080 eval "DEFAULT_$LINE"
7081 else
7082 no_cache=1
7083 fi
7084
7085 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7086
7087fi
10f2d63a
VZ
7088
7089
7090 eval "$ac_cv_use_splines"
7091 if test "$no_cache" != 1; then
7092 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7093 fi
7094
7095 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7096 echo "$ac_t""yes" 1>&6
10f2d63a 7097 else
698dcdb6 7098 echo "$ac_t""no" 1>&6
10f2d63a 7099 fi
698dcdb6 7100
10f2d63a 7101
698dcdb6 7102 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
29fd3c0c 7103echo "configure:7104: checking for --enable-validators" >&5
10f2d63a
VZ
7104 no_cache=0
7105 # Check whether --enable-validators or --disable-validators was given.
7106if test "${enable_validators+set}" = set; then
7107 enableval="$enable_validators"
698dcdb6 7108
10f2d63a
VZ
7109 if test "$enableval" = yes; then
7110 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7111 else
7112 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7113 fi
698dcdb6 7114
10f2d63a 7115else
698dcdb6 7116
10f2d63a
VZ
7117 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7118 if test "x$LINE" != x ; then
7119 eval "DEFAULT_$LINE"
7120 else
7121 no_cache=1
7122 fi
7123
7124 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7125
7126fi
10f2d63a
VZ
7127
7128
7129 eval "$ac_cv_use_validators"
7130 if test "$no_cache" != 1; then
7131 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7132 fi
7133
7134 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7135 echo "$ac_t""yes" 1>&6
10f2d63a 7136 else
698dcdb6 7137 echo "$ac_t""no" 1>&6
10f2d63a 7138 fi
698dcdb6 7139
10f2d63a 7140
698dcdb6 7141 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
29fd3c0c 7142echo "configure:7143: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7143 no_cache=0
7144 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7145if test "${enable_busyinfo+set}" = set; then
7146 enableval="$enable_busyinfo"
698dcdb6 7147
10f2d63a
VZ
7148 if test "$enableval" = yes; then
7149 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7150 else
7151 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7152 fi
698dcdb6 7153
10f2d63a 7154else
698dcdb6 7155
10f2d63a
VZ
7156 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7157 if test "x$LINE" != x ; then
7158 eval "DEFAULT_$LINE"
7159 else
7160 no_cache=1
7161 fi
7162
7163 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
7164
7165fi
10f2d63a
VZ
7166
7167
7168 eval "$ac_cv_use_busyinfo"
7169 if test "$no_cache" != 1; then
7170 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7171 fi
7172
7173 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 7174 echo "$ac_t""yes" 1>&6
10f2d63a 7175 else
698dcdb6 7176 echo "$ac_t""no" 1>&6
10f2d63a 7177 fi
698dcdb6 7178
10f2d63a 7179
698dcdb6 7180 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
29fd3c0c 7181echo "configure:7182: checking for --enable-joystick" >&5
f6bcfd97
BP
7182 no_cache=0
7183 # Check whether --enable-joystick or --disable-joystick was given.
7184if test "${enable_joystick+set}" = set; then
7185 enableval="$enable_joystick"
698dcdb6 7186
f6bcfd97
BP
7187 if test "$enableval" = yes; then
7188 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7189 else
7190 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7191 fi
698dcdb6 7192
f6bcfd97 7193else
698dcdb6 7194
f6bcfd97
BP
7195 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7196 if test "x$LINE" != x ; then
7197 eval "DEFAULT_$LINE"
7198 else
7199 no_cache=1
7200 fi
7201
7202 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
7203
7204fi
f6bcfd97
BP
7205
7206
7207 eval "$ac_cv_use_joystick"
7208 if test "$no_cache" != 1; then
7209 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7210 fi
7211
7212 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 7213 echo "$ac_t""yes" 1>&6
f6bcfd97 7214 else
698dcdb6 7215 echo "$ac_t""no" 1>&6
f6bcfd97 7216 fi
698dcdb6
VZ
7217
7218
1e6feb95 7219 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
29fd3c0c 7220echo "configure:7221: checking for --enable-metafile" >&5
1e6feb95
VZ
7221 no_cache=0
7222 # Check whether --enable-metafile or --disable-metafile was given.
7223if test "${enable_metafile+set}" = set; then
7224 enableval="$enable_metafile"
7225
7226 if test "$enableval" = yes; then
7227 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7228 else
7229 ac_cv_use_metafile='wxUSE_METAFILE=no'
7230 fi
7231
7232else
7233
7234 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7235 if test "x$LINE" != x ; then
7236 eval "DEFAULT_$LINE"
7237 else
7238 no_cache=1
7239 fi
7240
7241 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7242
7243fi
7244
7245
7246 eval "$ac_cv_use_metafile"
7247 if test "$no_cache" != 1; then
7248 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7249 fi
7250
7251 if test "$wxUSE_METAFILE" = yes; then
7252 echo "$ac_t""yes" 1>&6
7253 else
7254 echo "$ac_t""no" 1>&6
7255 fi
7256
7257
24fd6d87 7258 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
29fd3c0c 7259echo "configure:7260: checking for --enable-dragimage" >&5
24fd6d87
VZ
7260 no_cache=0
7261 # Check whether --enable-dragimage or --disable-dragimage was given.
7262if test "${enable_dragimage+set}" = set; then
7263 enableval="$enable_dragimage"
7264
7265 if test "$enableval" = yes; then
7266 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7267 else
7268 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7269 fi
7270
7271else
7272
7273 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7274 if test "x$LINE" != x ; then
7275 eval "DEFAULT_$LINE"
7276 else
7277 no_cache=1
7278 fi
7279
7280 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7281
7282fi
7283
7284
7285 eval "$ac_cv_use_dragimage"
7286 if test "$no_cache" != 1; then
7287 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7288 fi
7289
7290 if test "$wxUSE_DRAGIMAGE" = yes; then
7291 echo "$ac_t""yes" 1>&6
7292 else
7293 echo "$ac_t""no" 1>&6
7294 fi
7295
7296
10f2d63a 7297
698dcdb6
VZ
7298
7299 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
29fd3c0c 7300echo "configure:7301: checking for --enable-image" >&5
0046ff7c
VS
7301 no_cache=0
7302 # Check whether --enable-image or --disable-image was given.
7303if test "${enable_image+set}" = set; then
7304 enableval="$enable_image"
698dcdb6 7305
0046ff7c
VS
7306 if test "$enableval" = yes; then
7307 ac_cv_use_image='wxUSE_IMAGE=yes'
7308 else
7309 ac_cv_use_image='wxUSE_IMAGE=no'
7310 fi
698dcdb6 7311
0046ff7c 7312else
698dcdb6 7313
0046ff7c
VS
7314 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7315 if test "x$LINE" != x ; then
7316 eval "DEFAULT_$LINE"
7317 else
7318 no_cache=1
7319 fi
7320
7321 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
7322
7323fi
0046ff7c
VS
7324
7325
7326 eval "$ac_cv_use_image"
7327 if test "$no_cache" != 1; then
7328 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7329 fi
7330
7331 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 7332 echo "$ac_t""yes" 1>&6
0046ff7c 7333 else
698dcdb6 7334 echo "$ac_t""no" 1>&6
0046ff7c 7335 fi
698dcdb6 7336
0046ff7c 7337
698dcdb6 7338 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
29fd3c0c 7339echo "configure:7340: checking for --enable-gif" >&5
10f2d63a
VZ
7340 no_cache=0
7341 # Check whether --enable-gif or --disable-gif was given.
7342if test "${enable_gif+set}" = set; then
7343 enableval="$enable_gif"
698dcdb6 7344
10f2d63a
VZ
7345 if test "$enableval" = yes; then
7346 ac_cv_use_gif='wxUSE_GIF=yes'
7347 else
7348 ac_cv_use_gif='wxUSE_GIF=no'
7349 fi
698dcdb6 7350
10f2d63a 7351else
698dcdb6 7352
10f2d63a
VZ
7353 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7354 if test "x$LINE" != x ; then
7355 eval "DEFAULT_$LINE"
7356 else
7357 no_cache=1
7358 fi
7359
7360 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
7361
7362fi
10f2d63a
VZ
7363
7364
7365 eval "$ac_cv_use_gif"
7366 if test "$no_cache" != 1; then
7367 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7368 fi
7369
7370 if test "$wxUSE_GIF" = yes; then
698dcdb6 7371 echo "$ac_t""yes" 1>&6
10f2d63a 7372 else
698dcdb6 7373 echo "$ac_t""no" 1>&6
10f2d63a 7374 fi
698dcdb6 7375
10f2d63a 7376
698dcdb6 7377 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
29fd3c0c 7378echo "configure:7379: checking for --enable-pcx" >&5
10f2d63a
VZ
7379 no_cache=0
7380 # Check whether --enable-pcx or --disable-pcx was given.
7381if test "${enable_pcx+set}" = set; then
7382 enableval="$enable_pcx"
698dcdb6 7383
10f2d63a
VZ
7384 if test "$enableval" = yes; then
7385 ac_cv_use_pcx='wxUSE_PCX=yes'
7386 else
7387 ac_cv_use_pcx='wxUSE_PCX=no'
7388 fi
698dcdb6 7389
10f2d63a 7390else
698dcdb6 7391
10f2d63a
VZ
7392 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7393 if test "x$LINE" != x ; then
7394 eval "DEFAULT_$LINE"
7395 else
7396 no_cache=1
7397 fi
7398
7399 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
7400
7401fi
10f2d63a
VZ
7402
7403
7404 eval "$ac_cv_use_pcx"
7405 if test "$no_cache" != 1; then
7406 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7407 fi
7408
7409 if test "$wxUSE_PCX" = yes; then
698dcdb6 7410 echo "$ac_t""yes" 1>&6
10f2d63a 7411 else
698dcdb6 7412 echo "$ac_t""no" 1>&6
10f2d63a 7413 fi
698dcdb6 7414
10f2d63a 7415
698dcdb6 7416 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
29fd3c0c 7417echo "configure:7418: checking for --enable-pnm" >&5
10f2d63a
VZ
7418 no_cache=0
7419 # Check whether --enable-pnm or --disable-pnm was given.
7420if test "${enable_pnm+set}" = set; then
7421 enableval="$enable_pnm"
698dcdb6 7422
10f2d63a
VZ
7423 if test "$enableval" = yes; then
7424 ac_cv_use_pnm='wxUSE_PNM=yes'
7425 else
7426 ac_cv_use_pnm='wxUSE_PNM=no'
7427 fi
698dcdb6 7428
10f2d63a 7429else
698dcdb6 7430
10f2d63a
VZ
7431 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7432 if test "x$LINE" != x ; then
7433 eval "DEFAULT_$LINE"
7434 else
7435 no_cache=1
7436 fi
7437
7438 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
7439
7440fi
10f2d63a
VZ
7441
7442
7443 eval "$ac_cv_use_pnm"
7444 if test "$no_cache" != 1; then
7445 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7446 fi
7447
7448 if test "$wxUSE_PNM" = yes; then
698dcdb6 7449 echo "$ac_t""yes" 1>&6
10f2d63a 7450 else
698dcdb6 7451 echo "$ac_t""no" 1>&6
10f2d63a 7452 fi
698dcdb6 7453
10f2d63a 7454
698dcdb6 7455 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
29fd3c0c 7456echo "configure:7457: checking for --enable-pnm" >&5
0046ff7c
VS
7457 no_cache=0
7458 # Check whether --enable-pnm or --disable-pnm was given.
7459if test "${enable_pnm+set}" = set; then
7460 enableval="$enable_pnm"
698dcdb6 7461
0046ff7c
VS
7462 if test "$enableval" = yes; then
7463 ac_cv_use_pnm='wxUSE_XPM=yes'
7464 else
7465 ac_cv_use_pnm='wxUSE_XPM=no'
7466 fi
698dcdb6 7467
0046ff7c 7468else
698dcdb6 7469
0046ff7c
VS
7470 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7471 if test "x$LINE" != x ; then
7472 eval "DEFAULT_$LINE"
7473 else
7474 no_cache=1
7475 fi
7476
7477 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
7478
7479fi
0046ff7c
VS
7480
7481
7482 eval "$ac_cv_use_pnm"
7483 if test "$no_cache" != 1; then
7484 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7485 fi
7486
7487 if test "$wxUSE_XPM" = yes; then
698dcdb6 7488 echo "$ac_t""yes" 1>&6
0046ff7c 7489 else
698dcdb6 7490 echo "$ac_t""no" 1>&6
0046ff7c 7491 fi
698dcdb6 7492
0046ff7c 7493
b12915c1
VZ
7494fi
7495
698dcdb6 7496
10f2d63a
VZ
7497 echo "saving argument cache $wx_arg_cache_file"
7498 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 7499
10f2d63a 7500
698dcdb6
VZ
7501
7502echo $ac_n "checking for toolkit""... $ac_c" 1>&6
29fd3c0c 7503echo "configure:7504: checking for toolkit" >&5
10f2d63a
VZ
7504
7505if test "$wxUSE_GUI" = "yes"; then
7506
b12915c1 7507if test "$USE_BEOS" = 1; then
698dcdb6 7508 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
b12915c1
VZ
7509fi
7510
10f2d63a
VZ
7511if test "$TOOLKIT_GIVEN" = 1; then
7512 for toolkit in `echo $ALL_TOOLKITS`; do
7513 var=wxUSE_$toolkit
7514 eval "value=\$${var}"
7515 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7516 done
7517else
7518 for toolkit in `echo $ALL_TOOLKITS`; do
7519 if test "$has_toolkit_in_cache" != 1; then
7520 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7521 else
7522 var=DEFAULT_wxUSE_$toolkit
7523 fi
7524 eval "wxUSE_$toolkit=\$${var}"
7525 done
7526fi
7527
1e6feb95 7528NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}`
cf27ef00 7529
ec14dd32
VZ
7530case "${host}" in
7531 *-pc-os2_emx )
7532 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7533 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7534 LEX_STEM="lexyy"
7535 ;;
7536 *)
7537 PATH_IFS=':'
7538 LEX_STEM="lex.yy"
7539 ;;
7540esac
10f2d63a
VZ
7541
7542case "$NUM_TOOLKITS" in
7543 1)
7544 ;;
7545 0)
698dcdb6 7546 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
10f2d63a
VZ
7547 ;;
7548 *)
698dcdb6 7549 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
10f2d63a
VZ
7550esac
7551
7552for toolkit in `echo $ALL_TOOLKITS`; do
7553 var=wxUSE_$toolkit
7554 eval "value=\$${var}"
7555 if test "x$value" != x; then
7556 cache_var=CACHE_$toolkit
7557 eval "cache=\$${cache_var}"
7558 if test "$cache" = 1; then
7559 echo "$var=$value" >> ${wx_arg_cache_file}
7560 fi
7561 if test "$value" = 1; then
8168de4c
VZ
7562 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7563 echo "$ac_t""$toolkit_echo" 1>&6
10f2d63a
VZ
7564 fi
7565 fi
7566done
7567
7568else
cf27ef00 7569 PATH_IFS=':'
698dcdb6 7570 echo "$ac_t""base only" 1>&6
10f2d63a
VZ
7571fi
7572
698dcdb6
VZ
7573
7574cat > confcache <<\EOF
10f2d63a
VZ
7575# This file is a shell script that caches the results of configure
7576# tests run on this system so they can be shared between configure
698dcdb6
VZ
7577# scripts and configure runs. It is not useful on other systems.
7578# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 7579#
698dcdb6
VZ
7580# By default, configure uses ./config.cache as the cache file,
7581# creating it if it does not exist already. You can give configure
7582# the --cache-file=FILE option to use a different cache file; that is
7583# what configure does when it calls configure scripts in
7584# subdirectories, so they share the cache.
7585# Giving --cache-file=/dev/null disables caching, for debugging configure.
7586# config.status only pays attention to the cache file if you give it the
7587# --recheck option to rerun configure.
10f2d63a 7588#
698dcdb6 7589EOF
10f2d63a
VZ
7590# The following way of writing the cache mishandles newlines in values,
7591# but we know of no workaround that is simple, portable, and efficient.
7592# So, don't put newlines in cache variables' values.
7593# Ultrix sh set writes to stderr and can't be redirected directly,
7594# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
7595(set) 2>&1 |
7596 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7597 *ac_space=\ *)
7598 # `set' does not quote correctly, so add quotes (double-quote substitution
7599 # turns \\\\ into \\, and sed turns \\ into \).
7600 sed -n \
7601 -e "s/'/'\\\\''/g" \
7602 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7603 ;;
7604 *)
7605 # `set' quotes correctly as required by POSIX, so do not add quotes.
7606 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7607 ;;
7608 esac >> confcache
7609if cmp -s $cache_file confcache; then
7610 :
7611else
10f2d63a 7612 if test -w $cache_file; then
698dcdb6
VZ
7613 echo "updating cache $cache_file"
7614 cat confcache > $cache_file
10f2d63a
VZ
7615 else
7616 echo "not updating unwritable cache $cache_file"
7617 fi
7618fi
7619rm -f confcache
7620
698dcdb6 7621
e59890c3 7622if test "$build" != "$host" ; then
10f2d63a
VZ
7623 CC=$host_alias-gcc
7624 CXX=$host_alias-c++
7625 AR=$host_alias-ar
7626 RANLIB=$host_alias-ranlib
7627 DLLTOOL=$host_alias-dlltool
32832908 7628 RESCOMP=$host_alias-windres
10f2d63a
VZ
7629 LD=$host_alias-ld
7630 NM=$host_alias-nm
7631 STRIP=$host_alias-strip
10f2d63a
VZ
7632fi
7633
698dcdb6 7634# Extract the first word of "gcc", so it can be a program name with args.
1e487827 7635set dummy gcc; ac_word=$2
698dcdb6 7636echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
29fd3c0c 7637echo "configure:7638: checking for $ac_word" >&5
698dcdb6
VZ
7638if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7639 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
7640else
7641 if test -n "$CC"; then
7642 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 7643else
698dcdb6
VZ
7644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7645 ac_dummy="$PATH"
7646 for ac_dir in $ac_dummy; do
7647 test -z "$ac_dir" && ac_dir=.
7648 if test -f $ac_dir/$ac_word; then
7649 ac_cv_prog_CC="gcc"
7650 break
7651 fi
7652 done
7653 IFS="$ac_save_ifs"
10f2d63a 7654fi
6232543b 7655fi
698dcdb6 7656CC="$ac_cv_prog_CC"
6232543b 7657if test -n "$CC"; then
698dcdb6 7658 echo "$ac_t""$CC" 1>&6
1e487827 7659else
698dcdb6 7660 echo "$ac_t""no" 1>&6
1e487827 7661fi
6232543b 7662
1e487827
VS
7663if test -z "$CC"; then
7664 # Extract the first word of "cc", so it can be a program name with args.
7665set dummy cc; ac_word=$2
698dcdb6 7666echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
29fd3c0c 7667echo "configure:7668: checking for $ac_word" >&5
698dcdb6
VZ
7668if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7669 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7670else
7671 if test -n "$CC"; then
7672 ac_cv_prog_CC="$CC" # Let the user override the test.
7673else
698dcdb6 7674 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 7675 ac_prog_rejected=no
698dcdb6
VZ
7676 ac_dummy="$PATH"
7677 for ac_dir in $ac_dummy; do
7678 test -z "$ac_dir" && ac_dir=.
7679 if test -f $ac_dir/$ac_word; then
7680 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7681 ac_prog_rejected=yes
7682 continue
7683 fi
7684 ac_cv_prog_CC="cc"
7685 break
7686 fi
7687 done
7688 IFS="$ac_save_ifs"
1e487827
VS
7689if test $ac_prog_rejected = yes; then
7690 # We found a bogon in the path, so make sure we never use it.
7691 set dummy $ac_cv_prog_CC
7692 shift
698dcdb6 7693 if test $# -gt 0; then
1e487827
VS
7694 # We chose a different compiler from the bogus one.
7695 # However, it has the same basename, so the bogon will be chosen
7696 # first if we set CC to just the basename; use the full file name.
7697 shift
698dcdb6 7698 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
7699 shift
7700 ac_cv_prog_CC="$@"
703e0a69 7701 fi
1e487827
VS
7702fi
7703fi
7704fi
698dcdb6 7705CC="$ac_cv_prog_CC"
1e487827 7706if test -n "$CC"; then
698dcdb6 7707 echo "$ac_t""$CC" 1>&6
703e0a69 7708else
698dcdb6 7709 echo "$ac_t""no" 1>&6
703e0a69 7710fi
1e487827 7711
698dcdb6
VZ
7712 if test -z "$CC"; then
7713 case "`uname -s`" in
7714 *win32* | *WIN32*)
7715 # Extract the first word of "cl", so it can be a program name with args.
7716set dummy cl; ac_word=$2
7717echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
29fd3c0c 7718echo "configure:7719: checking for $ac_word" >&5
698dcdb6
VZ
7719if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7720 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7721else
7722 if test -n "$CC"; then
7723 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 7724else
698dcdb6
VZ
7725 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7726 ac_dummy="$PATH"
7727 for ac_dir in $ac_dummy; do
7728 test -z "$ac_dir" && ac_dir=.
7729 if test -f $ac_dir/$ac_word; then
7730 ac_cv_prog_CC="cl"
7731 break
7732 fi
7733 done
7734 IFS="$ac_save_ifs"
703e0a69 7735fi
1e487827 7736fi
698dcdb6 7737CC="$ac_cv_prog_CC"
1e487827 7738if test -n "$CC"; then
698dcdb6 7739 echo "$ac_t""$CC" 1>&6
1e487827 7740else
698dcdb6 7741 echo "$ac_t""no" 1>&6
1e487827 7742fi
698dcdb6
VZ
7743 ;;
7744 esac
7745 fi
7746 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
7747fi
7748
698dcdb6 7749echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
29fd3c0c 7750echo "configure:7751: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 7751
698dcdb6
VZ
7752ac_ext=c
7753# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7754ac_cpp='$CPP $CPPFLAGS'
7755ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7756ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7757cross_compiling=$ac_cv_prog_cc_cross
6232543b 7758
698dcdb6 7759cat > conftest.$ac_ext << EOF
1e487827 7760
29fd3c0c 7761#line 7762 "configure"
1e487827
VS
7762#include "confdefs.h"
7763
698dcdb6
VZ
7764main(){return(0);}
7765EOF
29fd3c0c 7766if { (eval echo configure:7767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
7767 ac_cv_prog_cc_works=yes
7768 # If we can't run a trivial program, we are probably using a cross compiler.
7769 if (./conftest; exit) 2>/dev/null; then
7770 ac_cv_prog_cc_cross=no
7771 else
7772 ac_cv_prog_cc_cross=yes
7773 fi
7774else
7775 echo "configure: failed program was:" >&5
7776 cat conftest.$ac_ext >&5
7777 ac_cv_prog_cc_works=no
7778fi
7779rm -fr conftest*
7780ac_ext=c
7781# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7782ac_cpp='$CPP $CPPFLAGS'
7783ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7784ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7785cross_compiling=$ac_cv_prog_cc_cross
7786
7787echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
7788if test $ac_cv_prog_cc_works = no; then
7789 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
7790fi
7791echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
29fd3c0c 7792echo "configure:7793: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
7793echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
7794cross_compiling=$ac_cv_prog_cc_cross
7795
7796echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
29fd3c0c 7797echo "configure:7798: checking whether we are using GNU C" >&5
698dcdb6
VZ
7798if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
7799 echo $ac_n "(cached) $ac_c" 1>&6
7800else
7801 cat > conftest.c <<EOF
7802#ifdef __GNUC__
7803 yes;
1e487827 7804#endif
698dcdb6 7805EOF
29fd3c0c 7806if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
7807 ac_cv_prog_gcc=yes
7808else
7809 ac_cv_prog_gcc=no
7810fi
7811fi
1e487827 7812
698dcdb6 7813echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 7814
698dcdb6
VZ
7815if test $ac_cv_prog_gcc = yes; then
7816 GCC=yes
7817else
7818 GCC=
7819fi
1e487827 7820
698dcdb6
VZ
7821ac_test_CFLAGS="${CFLAGS+set}"
7822ac_save_CFLAGS="$CFLAGS"
7823CFLAGS=
7824echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
29fd3c0c 7825echo "configure:7826: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
7826if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
7827 echo $ac_n "(cached) $ac_c" 1>&6
7828else
7829 echo 'void f(){}' > conftest.c
7830if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
7831 ac_cv_prog_cc_g=yes
7832else
698dcdb6 7833 ac_cv_prog_cc_g=no
10f2d63a 7834fi
698dcdb6
VZ
7835rm -f conftest*
7836
10f2d63a 7837fi
698dcdb6
VZ
7838
7839echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 7840if test "$ac_test_CFLAGS" = set; then
698dcdb6 7841 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
7842elif test $ac_cv_prog_cc_g = yes; then
7843 if test "$GCC" = yes; then
7844 CFLAGS="-g -O2"
7845 else
7846 CFLAGS="-g"
7847 fi
7848else
7849 if test "$GCC" = yes; then
7850 CFLAGS="-O2"
7851 else
7852 CFLAGS=
7853 fi
7854fi
7855
7856
7857CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
7858
698dcdb6 7859echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
29fd3c0c 7860echo "configure:7861: checking how to run the C preprocessor" >&5
10f2d63a
VZ
7861# On Suns, sometimes $CPP names a directory.
7862if test -n "$CPP" && test -d "$CPP"; then
7863 CPP=
7864fi
7865if test -z "$CPP"; then
698dcdb6
VZ
7866if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
7867 echo $ac_n "(cached) $ac_c" 1>&6
7868else
7869 # This must be in double quotes, not single quotes, because CPP may get
7870 # substituted into the Makefile and "${CC-cc}" will confuse make.
7871 CPP="${CC-cc} -E"
10f2d63a 7872 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
7873 # not just through cpp.
7874 cat > conftest.$ac_ext <<EOF
29fd3c0c 7875#line 7876 "configure"
10f2d63a
VZ
7876#include "confdefs.h"
7877#include <assert.h>
698dcdb6
VZ
7878Syntax Error
7879EOF
7880ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29fd3c0c 7881{ (eval echo configure:7882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
7882ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7883if test -z "$ac_err"; then
10f2d63a
VZ
7884 :
7885else
698dcdb6
VZ
7886 echo "$ac_err" >&5
7887 echo "configure: failed program was:" >&5
10f2d63a 7888 cat conftest.$ac_ext >&5
698dcdb6
VZ
7889 rm -rf conftest*
7890 CPP="${CC-cc} -E -traditional-cpp"
7891 cat > conftest.$ac_ext <<EOF
29fd3c0c 7892#line 7893 "configure"
10f2d63a 7893#include "confdefs.h"
698dcdb6
VZ
7894#include <assert.h>
7895Syntax Error
7896EOF
7897ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29fd3c0c 7898{ (eval echo configure:7899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
7899ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7900if test -z "$ac_err"; then
7901 :
10f2d63a 7902else
698dcdb6
VZ
7903 echo "$ac_err" >&5
7904 echo "configure: failed program was:" >&5
10f2d63a 7905 cat conftest.$ac_ext >&5
698dcdb6
VZ
7906 rm -rf conftest*
7907 CPP="${CC-cc} -nologo -E"
7908 cat > conftest.$ac_ext <<EOF
29fd3c0c 7909#line 7910 "configure"
10f2d63a
VZ
7910#include "confdefs.h"
7911#include <assert.h>
698dcdb6
VZ
7912Syntax Error
7913EOF
7914ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29fd3c0c 7915{ (eval echo configure:7916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
7916ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7917if test -z "$ac_err"; then
10f2d63a
VZ
7918 :
7919else
698dcdb6
VZ
7920 echo "$ac_err" >&5
7921 echo "configure: failed program was:" >&5
10f2d63a 7922 cat conftest.$ac_ext >&5
698dcdb6
VZ
7923 rm -rf conftest*
7924 CPP=/lib/cpp
10f2d63a 7925fi
698dcdb6 7926rm -f conftest*
10f2d63a 7927fi
698dcdb6 7928rm -f conftest*
703e0a69 7929fi
698dcdb6
VZ
7930rm -f conftest*
7931 ac_cv_prog_CPP="$CPP"
7932fi
7933 CPP="$ac_cv_prog_CPP"
10f2d63a 7934else
698dcdb6 7935 ac_cv_prog_CPP="$CPP"
10f2d63a 7936fi
698dcdb6 7937echo "$ac_t""$CPP" 1>&6
10f2d63a
VZ
7938
7939
698dcdb6
VZ
7940if test $ac_cv_prog_gcc = yes; then
7941 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
29fd3c0c 7942echo "configure:7943: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
7943if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
7944 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
7945else
7946 ac_pattern="Autoconf.*'x'"
698dcdb6 7947 cat > conftest.$ac_ext <<EOF
29fd3c0c 7948#line 7949 "configure"
10f2d63a
VZ
7949#include "confdefs.h"
7950#include <sgtty.h>
7951Autoconf TIOCGETP
698dcdb6 7952EOF
10f2d63a
VZ
7953if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7954 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 7955 rm -rf conftest*
10f2d63a
VZ
7956 ac_cv_prog_gcc_traditional=yes
7957else
698dcdb6 7958 rm -rf conftest*
10f2d63a
VZ
7959 ac_cv_prog_gcc_traditional=no
7960fi
7961rm -f conftest*
7962
698dcdb6 7963
10f2d63a 7964 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 7965 cat > conftest.$ac_ext <<EOF
29fd3c0c 7966#line 7967 "configure"
10f2d63a
VZ
7967#include "confdefs.h"
7968#include <termio.h>
7969Autoconf TCGETA
698dcdb6 7970EOF
10f2d63a
VZ
7971if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7972 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 7973 rm -rf conftest*
10f2d63a
VZ
7974 ac_cv_prog_gcc_traditional=yes
7975fi
7976rm -f conftest*
7977
7978 fi
7979fi
698dcdb6
VZ
7980
7981echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
7982 if test $ac_cv_prog_gcc_traditional = yes; then
7983 CC="$CC -traditional"
7984 fi
7985fi
7986
703e0a69 7987
698dcdb6
VZ
7988
7989ac_ext=C
7990# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 7991ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
7992ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7993ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7994cross_compiling=$ac_cv_prog_cxx_cross
7995
7996
7997for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
7998do
7999# Extract the first word of "$ac_prog", so it can be a program name with args.
8000set dummy $ac_prog; ac_word=$2
8001echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
29fd3c0c 8002echo "configure:8003: checking for $ac_word" >&5
698dcdb6
VZ
8003if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8004 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8005else
8006 if test -n "$CXX"; then
8007 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8008else
698dcdb6
VZ
8009 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8010 ac_dummy="$PATH"
8011 for ac_dir in $ac_dummy; do
8012 test -z "$ac_dir" && ac_dir=.
8013 if test -f $ac_dir/$ac_word; then
8014 ac_cv_prog_CXX="$ac_prog"
8015 break
8016 fi
8017 done
8018 IFS="$ac_save_ifs"
10f2d63a
VZ
8019fi
8020fi
698dcdb6 8021CXX="$ac_cv_prog_CXX"
10f2d63a 8022if test -n "$CXX"; then
698dcdb6 8023 echo "$ac_t""$CXX" 1>&6
10f2d63a 8024else
698dcdb6 8025 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8026fi
8027
698dcdb6 8028test -n "$CXX" && break
10f2d63a 8029done
698dcdb6 8030test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
8031
8032
698dcdb6 8033echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
29fd3c0c 8034echo "configure:8035: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 8035
698dcdb6
VZ
8036ac_ext=C
8037# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8038ac_cpp='$CXXCPP $CPPFLAGS'
8039ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8040ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8041cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 8042
698dcdb6
VZ
8043cat > conftest.$ac_ext << EOF
8044
29fd3c0c 8045#line 8046 "configure"
10f2d63a
VZ
8046#include "confdefs.h"
8047
698dcdb6
VZ
8048int main(){return(0);}
8049EOF
29fd3c0c 8050if { (eval echo configure:8051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8051 ac_cv_prog_cxx_works=yes
8052 # If we can't run a trivial program, we are probably using a cross compiler.
8053 if (./conftest; exit) 2>/dev/null; then
8054 ac_cv_prog_cxx_cross=no
8055 else
8056 ac_cv_prog_cxx_cross=yes
8057 fi
8058else
8059 echo "configure: failed program was:" >&5
8060 cat conftest.$ac_ext >&5
8061 ac_cv_prog_cxx_works=no
8062fi
8063rm -fr conftest*
8064ac_ext=C
8065# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8066ac_cpp='$CXXCPP $CPPFLAGS'
8067ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8068ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8069cross_compiling=$ac_cv_prog_cxx_cross
8070
8071echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8072if test $ac_cv_prog_cxx_works = no; then
8073 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8074fi
8075echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
29fd3c0c 8076echo "configure:8077: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8077echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8078cross_compiling=$ac_cv_prog_cxx_cross
8079
8080echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
29fd3c0c 8081echo "configure:8082: checking whether we are using GNU C++" >&5
698dcdb6
VZ
8082if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8083 echo $ac_n "(cached) $ac_c" 1>&6
8084else
8085 cat > conftest.C <<EOF
8086#ifdef __GNUC__
8087 yes;
10f2d63a 8088#endif
698dcdb6 8089EOF
29fd3c0c 8090if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8091 ac_cv_prog_gxx=yes
8092else
8093 ac_cv_prog_gxx=no
8094fi
8095fi
10f2d63a 8096
698dcdb6 8097echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 8098
698dcdb6
VZ
8099if test $ac_cv_prog_gxx = yes; then
8100 GXX=yes
8101else
8102 GXX=
8103fi
10f2d63a 8104
698dcdb6
VZ
8105ac_test_CXXFLAGS="${CXXFLAGS+set}"
8106ac_save_CXXFLAGS="$CXXFLAGS"
8107CXXFLAGS=
8108echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
29fd3c0c 8109echo "configure:8110: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
8110if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8111 echo $ac_n "(cached) $ac_c" 1>&6
8112else
8113 echo 'void f(){}' > conftest.cc
8114if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
8115 ac_cv_prog_cxx_g=yes
8116else
698dcdb6 8117 ac_cv_prog_cxx_g=no
10f2d63a 8118fi
698dcdb6
VZ
8119rm -f conftest*
8120
10f2d63a 8121fi
698dcdb6
VZ
8122
8123echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 8124if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 8125 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
8126elif test $ac_cv_prog_cxx_g = yes; then
8127 if test "$GXX" = yes; then
8128 CXXFLAGS="-g -O2"
8129 else
8130 CXXFLAGS="-g"
8131 fi
8132else
8133 if test "$GXX" = yes; then
8134 CXXFLAGS="-O2"
8135 else
8136 CXXFLAGS=
8137 fi
8138fi
8139
8140
698dcdb6 8141echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
29fd3c0c 8142echo "configure:8143: checking how to run the C++ preprocessor" >&5
1e487827 8143if test -z "$CXXCPP"; then
698dcdb6
VZ
8144if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
8145 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 8146else
698dcdb6
VZ
8147 ac_ext=C
8148# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8149ac_cpp='$CXXCPP $CPPFLAGS'
8150ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8151ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8152cross_compiling=$ac_cv_prog_cxx_cross
8153 CXXCPP="${CXX-g++} -E"
8154 cat > conftest.$ac_ext <<EOF
29fd3c0c 8155#line 8156 "configure"
1e487827 8156#include "confdefs.h"
698dcdb6
VZ
8157#include <stdlib.h>
8158EOF
8159ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29fd3c0c 8160{ (eval echo configure:8161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8161ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8162if test -z "$ac_err"; then
1e487827
VS
8163 :
8164else
698dcdb6
VZ
8165 echo "$ac_err" >&5
8166 echo "configure: failed program was:" >&5
1e487827 8167 cat conftest.$ac_ext >&5
698dcdb6
VZ
8168 rm -rf conftest*
8169 CXXCPP=/lib/cpp
1e487827 8170fi
698dcdb6
VZ
8171rm -f conftest*
8172 ac_cv_prog_CXXCPP="$CXXCPP"
8173ac_ext=C
8174# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8175ac_cpp='$CXXCPP $CPPFLAGS'
8176ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8177ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8178cross_compiling=$ac_cv_prog_cxx_cross
1e487827 8179fi
1e487827 8180fi
698dcdb6
VZ
8181CXXCPP="$ac_cv_prog_CXXCPP"
8182echo "$ac_t""$CXXCPP" 1>&6
1e487827 8183
10f2d63a
VZ
8184
8185CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8186
8187ac_ext=c
698dcdb6 8188# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 8189ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
8190ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8191ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8192cross_compiling=$ac_cv_prog_cc_cross
8193
8194
8195# Extract the first word of "ranlib", so it can be a program name with args.
8196set dummy ranlib; ac_word=$2
8197echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
29fd3c0c 8198echo "configure:8199: checking for $ac_word" >&5
698dcdb6
VZ
8199if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8200 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8201else
8202 if test -n "$RANLIB"; then
8203 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8204else
698dcdb6
VZ
8205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8206 ac_dummy="$PATH"
8207 for ac_dir in $ac_dummy; do
8208 test -z "$ac_dir" && ac_dir=.
8209 if test -f $ac_dir/$ac_word; then
8210 ac_cv_prog_RANLIB="ranlib"
8211 break
8212 fi
8213 done
8214 IFS="$ac_save_ifs"
8215 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
8216fi
8217fi
698dcdb6 8218RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 8219if test -n "$RANLIB"; then
698dcdb6 8220 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 8221else
698dcdb6 8222 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8223fi
8224
8225
8226# Extract the first word of "ar", so it can be a program name with args.
8227set dummy ar; ac_word=$2
698dcdb6 8228echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
29fd3c0c 8229echo "configure:8230: checking for $ac_word" >&5
698dcdb6
VZ
8230if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8231 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8232else
8233 if test -n "$AR"; then
8234 ac_cv_prog_AR="$AR" # Let the user override the test.
8235else
698dcdb6
VZ
8236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8237 ac_dummy="$PATH"
8238 for ac_dir in $ac_dummy; do
8239 test -z "$ac_dir" && ac_dir=.
8240 if test -f $ac_dir/$ac_word; then
8241 ac_cv_prog_AR="ar"
8242 break
8243 fi
8244 done
8245 IFS="$ac_save_ifs"
10f2d63a
VZ
8246 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8247fi
8248fi
698dcdb6 8249AR="$ac_cv_prog_AR"
10f2d63a 8250if test -n "$AR"; then
698dcdb6 8251 echo "$ac_t""$AR" 1>&6
10f2d63a 8252else
698dcdb6 8253 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8254fi
8255
698dcdb6 8256
10f2d63a
VZ
8257# Find a good install program. We prefer a C program (faster),
8258# so one script is as good as another. But avoid the broken or
8259# incompatible versions:
8260# SysV /etc/install, /usr/sbin/install
8261# SunOS /usr/etc/install
8262# IRIX /sbin/install
8263# AIX /bin/install
8264# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8265# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8266# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8267# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 8268echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
29fd3c0c 8269echo "configure:8270: checking for a BSD compatible install" >&5
10f2d63a 8270if test -z "$INSTALL"; then
698dcdb6
VZ
8271if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8272 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8273else
698dcdb6 8274 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
8275 for ac_dir in $PATH; do
8276 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
8277 case "$ac_dir/" in
8278 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
8279 *)
8280 # OSF1 and SCO ODT 3.0 have their own names for install.
8281 # Don't use installbsd from OSF since it installs stuff as root
8282 # by default.
8283 for ac_prog in ginstall scoinst install; do
698dcdb6 8284 if test -f $ac_dir/$ac_prog; then
10f2d63a 8285 if test $ac_prog = install &&
698dcdb6 8286 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
8287 # AIX install. It has an incompatible calling convention.
8288 :
8289 else
8290 ac_cv_path_install="$ac_dir/$ac_prog -c"
8291 break 2
8292 fi
8293 fi
8294 done
8295 ;;
8296 esac
8297 done
698dcdb6 8298 IFS="$ac_save_IFS"
10f2d63a
VZ
8299
8300fi
8301 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 8302 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
8303 else
8304 # As a last resort, use the slow shell script. We don't cache a
8305 # path for INSTALL within a source directory, because that will
8306 # break other packages using the cache if that directory is
8307 # removed, or if the path is relative.
698dcdb6 8308 INSTALL="$ac_install_sh"
10f2d63a
VZ
8309 fi
8310fi
698dcdb6 8311echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
8312
8313# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8314# It thinks the first close brace ends the variable substitution.
8315test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8316
698dcdb6 8317test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
8318
8319test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8320
698dcdb6 8321
10f2d63a
VZ
8322# Extract the first word of "strip", so it can be a program name with args.
8323set dummy strip; ac_word=$2
698dcdb6 8324echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
29fd3c0c 8325echo "configure:8326: checking for $ac_word" >&5
698dcdb6
VZ
8326if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8327 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8328else
8329 if test -n "$STRIP"; then
8330 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8331else
698dcdb6
VZ
8332 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8333 ac_dummy="$PATH"
8334 for ac_dir in $ac_dummy; do
8335 test -z "$ac_dir" && ac_dir=.
8336 if test -f $ac_dir/$ac_word; then
8337 ac_cv_prog_STRIP="strip"
8338 break
8339 fi
8340 done
8341 IFS="$ac_save_ifs"
10f2d63a
VZ
8342 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8343fi
8344fi
698dcdb6 8345STRIP="$ac_cv_prog_STRIP"
10f2d63a 8346if test -n "$STRIP"; then
698dcdb6 8347 echo "$ac_t""$STRIP" 1>&6
10f2d63a 8348else
698dcdb6 8349 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8350fi
8351
698dcdb6
VZ
8352
8353echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
29fd3c0c 8354echo "configure:8355: checking make for VPATH support" >&5
10f2d63a
VZ
8355cat - << EOF > confMake
8356check : file
8357 cp \$? \$@
8358 cp \$? final_file
8359EOF
8360
8361if test ! -d sub ; then
8362 mkdir sub
8363fi
8364echo dummy > sub/file
f6bcfd97 8365${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
8366RESULT=$?
8367rm -f sub/file check final_file confMake
8368rmdir sub
8369if test "$RESULT" = 0; then
698dcdb6 8370 echo "$ac_t""yes" 1>&6
10f2d63a 8371else
698dcdb6
VZ
8372 echo "$ac_t""no" 1>&6
8373 { echo "configure: error:
1e487827
VS
8374You need a make-utility that is able to use the variable
8375VPATH correctly.
8376If your version of make does not support VPATH correctly,
8377please install GNU-make (possibly as gmake), and start
8378configure with the following command:
8379export MAKE=gmake; ./configure for sh-type shells
8380setenv MAKE gmake; ./configure for csh-type shells
8381Also please do remember to use gmake in this case every time
8382you are trying to compile.
698dcdb6 8383" 1>&2; exit 1; }
10f2d63a
VZ
8384fi
8385
8386for ac_prog in 'bison -y' byacc
8387do
698dcdb6 8388# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 8389set dummy $ac_prog; ac_word=$2
698dcdb6 8390echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
29fd3c0c 8391echo "configure:8392: checking for $ac_word" >&5
698dcdb6
VZ
8392if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8393 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8394else
8395 if test -n "$YACC"; then
8396 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8397else
698dcdb6
VZ
8398 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8399 ac_dummy="$PATH"
8400 for ac_dir in $ac_dummy; do
8401 test -z "$ac_dir" && ac_dir=.
8402 if test -f $ac_dir/$ac_word; then
8403 ac_cv_prog_YACC="$ac_prog"
8404 break
8405 fi
8406 done
8407 IFS="$ac_save_ifs"
10f2d63a
VZ
8408fi
8409fi
698dcdb6 8410YACC="$ac_cv_prog_YACC"
10f2d63a 8411if test -n "$YACC"; then
698dcdb6 8412 echo "$ac_t""$YACC" 1>&6
10f2d63a 8413else
698dcdb6 8414 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8415fi
8416
698dcdb6 8417test -n "$YACC" && break
10f2d63a
VZ
8418done
8419test -n "$YACC" || YACC="yacc"
8420
698dcdb6
VZ
8421
8422# Extract the first word of "flex", so it can be a program name with args.
8423set dummy flex; ac_word=$2
8424echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
29fd3c0c 8425echo "configure:8426: checking for $ac_word" >&5
698dcdb6
VZ
8426if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8427 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8428else
8429 if test -n "$LEX"; then
8430 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8431else
698dcdb6
VZ
8432 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8433 ac_dummy="$PATH"
8434 for ac_dir in $ac_dummy; do
8435 test -z "$ac_dir" && ac_dir=.
8436 if test -f $ac_dir/$ac_word; then
8437 ac_cv_prog_LEX="flex"
8438 break
8439 fi
8440 done
8441 IFS="$ac_save_ifs"
8442 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
8443fi
8444fi
698dcdb6 8445LEX="$ac_cv_prog_LEX"
10f2d63a 8446if test -n "$LEX"; then
698dcdb6 8447 echo "$ac_t""$LEX" 1>&6
10f2d63a 8448else
698dcdb6 8449 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8450fi
8451
8452if test -z "$LEXLIB"
8453then
698dcdb6
VZ
8454 case "$LEX" in
8455 flex*) ac_lib=fl ;;
8456 *) ac_lib=l ;;
8457 esac
8458 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
29fd3c0c 8459echo "configure:8460: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
8460ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8461if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8462 echo $ac_n "(cached) $ac_c" 1>&6
8463else
8464 ac_save_LIBS="$LIBS"
8465LIBS="-l$ac_lib $LIBS"
8466cat > conftest.$ac_ext <<EOF
29fd3c0c 8467#line 8468 "configure"
10f2d63a
VZ
8468#include "confdefs.h"
8469/* Override any gcc2 internal prototype to avoid an error. */
8470/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
8471 builtin and then its argument prototype would still apply. */
8472char yywrap();
10f2d63a 8473
698dcdb6
VZ
8474int main() {
8475yywrap()
8476; return 0; }
8477EOF
29fd3c0c 8478if { (eval echo configure:8479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8479 rm -rf conftest*
8480 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 8481else
698dcdb6
VZ
8482 echo "configure: failed program was:" >&5
8483 cat conftest.$ac_ext >&5
8484 rm -rf conftest*
8485 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 8486fi
698dcdb6
VZ
8487rm -f conftest*
8488LIBS="$ac_save_LIBS"
8489
10f2d63a 8490fi
698dcdb6
VZ
8491if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8492 echo "$ac_t""yes" 1>&6
8493 LEXLIB="-l$ac_lib"
8494else
8495 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8496fi
8497
8498fi
8499
8500
698dcdb6 8501echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
29fd3c0c 8502echo "configure:8503: checking whether ln -s works" >&5
698dcdb6
VZ
8503if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8504 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8505else
698dcdb6
VZ
8506 rm -f conftestdata
8507if ln -s X conftestdata 2>/dev/null
8508then
8509 rm -f conftestdata
8510 ac_cv_prog_LN_S="ln -s"
10f2d63a 8511else
698dcdb6 8512 ac_cv_prog_LN_S=ln
10f2d63a
VZ
8513fi
8514fi
698dcdb6
VZ
8515LN_S="$ac_cv_prog_LN_S"
8516if test "$ac_cv_prog_LN_S" = "ln -s"; then
8517 echo "$ac_t""yes" 1>&6
10f2d63a 8518else
698dcdb6 8519 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8520fi
8521
8522
8523
8524SEARCH_INCLUDE="\
8525 /usr/local/include \
8526 \
8527 /usr/Motif-1.2/include \
8528 /usr/Motif-2.1/include \
8529 \
8530 /usr/include/Motif1.2 \
8531 /opt/xpm/include/X11 \
8532 /opt/GBxpm/include/ \
8533 /opt/GBxpm/X11/include/ \
8534 \
8535 /usr/Motif1.2/include \
8536 /usr/dt/include \
afc31813
VZ
8537 /usr/openwin/include \
8538 \
10f2d63a
VZ
8539 /usr/include/Xm \
8540 \
8541 /usr/X11R6/include \
afc31813 8542 /usr/X11R6.4/include \
10f2d63a
VZ
8543 /usr/X11R5/include \
8544 /usr/X11R4/include \
8545 \
10f2d63a
VZ
8546 /usr/include/X11R6 \
8547 /usr/include/X11R5 \
8548 /usr/include/X11R4 \
8549 \
8550 /usr/local/X11R6/include \
8551 /usr/local/X11R5/include \
8552 /usr/local/X11R4/include \
8553 \
8554 /usr/local/include/X11R6 \
8555 /usr/local/include/X11R5 \
8556 /usr/local/include/X11R4 \
8557 \
8558 /usr/X11/include \
8559 /usr/include/X11 \
8560 /usr/local/X11/include \
8561 /usr/local/include/X11 \
8562 \
8563 /usr/X386/include \
8564 /usr/x386/include \
8565 /usr/XFree86/include/X11 \
8566 \
cf27ef00 8567 X:/XFree86/include \
ec14dd32
VZ
8568 X:/XFree86/include/X11 \
8569 \
10f2d63a
VZ
8570 /usr/include/gtk \
8571 /usr/local/include/gtk \
8572 /usr/include/glib \
8573 /usr/local/include/glib \
8574 \
8575 /usr/include/qt \
8576 /usr/local/include/qt \
8577 \
8578 /usr/include/windows \
8579 /usr/include/wine \
8580 /usr/local/include/wine \
8581 \
8582 /usr/unsupported/include \
8583 /usr/athena/include \
8584 /usr/local/x11r5/include \
8585 /usr/lpp/Xamples/include \
8586 \
10f2d63a 8587 /usr/openwin/share/include \
928b5c08
VZ
8588 \
8589 /usr/include"
10f2d63a
VZ
8590
8591SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8592
698dcdb6
VZ
8593
8594cat > confcache <<\EOF
10f2d63a
VZ
8595# This file is a shell script that caches the results of configure
8596# tests run on this system so they can be shared between configure
698dcdb6
VZ
8597# scripts and configure runs. It is not useful on other systems.
8598# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8599#
698dcdb6
VZ
8600# By default, configure uses ./config.cache as the cache file,
8601# creating it if it does not exist already. You can give configure
8602# the --cache-file=FILE option to use a different cache file; that is
8603# what configure does when it calls configure scripts in
8604# subdirectories, so they share the cache.
8605# Giving --cache-file=/dev/null disables caching, for debugging configure.
8606# config.status only pays attention to the cache file if you give it the
8607# --recheck option to rerun configure.
10f2d63a 8608#
698dcdb6 8609EOF
10f2d63a
VZ
8610# The following way of writing the cache mishandles newlines in values,
8611# but we know of no workaround that is simple, portable, and efficient.
8612# So, don't put newlines in cache variables' values.
8613# Ultrix sh set writes to stderr and can't be redirected directly,
8614# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8615(set) 2>&1 |
8616 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8617 *ac_space=\ *)
8618 # `set' does not quote correctly, so add quotes (double-quote substitution
8619 # turns \\\\ into \\, and sed turns \\ into \).
8620 sed -n \
8621 -e "s/'/'\\\\''/g" \
8622 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8623 ;;
8624 *)
8625 # `set' quotes correctly as required by POSIX, so do not add quotes.
8626 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8627 ;;
8628 esac >> confcache
8629if cmp -s $cache_file confcache; then
8630 :
8631else
10f2d63a 8632 if test -w $cache_file; then
698dcdb6
VZ
8633 echo "updating cache $cache_file"
8634 cat confcache > $cache_file
10f2d63a
VZ
8635 else
8636 echo "not updating unwritable cache $cache_file"
8637 fi
8638fi
8639rm -f confcache
8640
698dcdb6
VZ
8641
8642
dad6c0ea
VZ
8643AFMINSTALL=
8644
10f2d63a 8645if test "$wxUSE_GUI" = "yes"; then
1e6feb95 8646 USE_GUI=1
10f2d63a 8647
1e6feb95
VZ
8648 TOOLKIT=
8649 TOOLKIT_INCLUDE=
10f2d63a 8650
1e6feb95
VZ
8651 GUI_TK_LIBRARY=
8652 GUI_TK_LINK=
10f2d63a 8653
1e6feb95
VZ
8654 WXGTK12=
8655 WXGTK127=
8656 WXGTK20=
10f2d63a 8657
1e6feb95 8658 WXWINE=
10f2d63a 8659
1e6feb95 8660 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
29fd3c0c
VS
8661 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
8662echo $ac_n "checking for windows.h""... $ac_c" 1>&6
8663echo "configure:8664: checking for windows.h" >&5
d4158b5d
VS
8664if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8665 echo $ac_n "(cached) $ac_c" 1>&6
8666else
8667 cat > conftest.$ac_ext <<EOF
29fd3c0c 8668#line 8669 "configure"
d4158b5d 8669#include "confdefs.h"
29fd3c0c 8670#include <windows.h>
d4158b5d
VS
8671EOF
8672ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29fd3c0c 8673{ (eval echo configure:8674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4158b5d
VS
8674ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8675if test -z "$ac_err"; then
8676 rm -rf conftest*
8677 eval "ac_cv_header_$ac_safe=yes"
8678else
8679 echo "$ac_err" >&5
8680 echo "configure: failed program was:" >&5
8681 cat conftest.$ac_ext >&5
8682 rm -rf conftest*
8683 eval "ac_cv_header_$ac_safe=no"
8684fi
8685rm -f conftest*
8686fi
8687if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8688 echo "$ac_t""yes" 1>&6
29fd3c0c 8689 :
d4158b5d
VS
8690else
8691 echo "$ac_t""no" 1>&6
d4158b5d 8692
29fd3c0c
VS
8693 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
8694
8695fi
10f2d63a 8696
29fd3c0c 8697
1e6feb95
VZ
8698 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
8699 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
f6bcfd97 8700
1e6feb95
VZ
8701 if test "$wxUSE_ODBC" = "yes" ; then
8702 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
8703 fi
10f2d63a 8704
1e6feb95
VZ
8705 if test "$wxUSE_MINGW" = 1; then
8706 LDFLAGS="$LDFLAGS -mwindows"
8707 fi
32832908 8708
1e6feb95
VZ
8709 TOOLKIT=MSW
8710 GUIDIST=MSW_DIST
32832908 8711
1e6feb95
VZ
8712 RCINCSWITCH="--include-dir"
8713 RCDEFSWITCH="--define"
8714 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
8715 RCINPUTSWITCH="-i"
8716 RCOUTPUTSWITCH="-o"
8717 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
32832908 8718
1e6feb95
VZ
8719 RESPROGRAM="\$(RES_PROGRAM)"
8720 fi
10f2d63a 8721
1e6feb95 8722 if test "$wxUSE_GTK" = 1; then
8168de4c 8723 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
29fd3c0c 8724echo "configure:8725: checking for GTK+ version" >&5
8168de4c
VZ
8725
8726 gtk_version_cached=1
8727 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
8728 echo $ac_n "(cached) $ac_c" 1>&6
8729else
8730
8731 gtk_version_cached=0
8732 echo "$ac_t""""" 1>&6
8733
8734 wx_cv_lib_gtk=
8735 if test "x$wxUSE_GTK2" = "xyes"; then
8736 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6f72b082
OK
8737if test "${with_gtk_prefix+set}" = set; then
8738 withval="$with_gtk_prefix"
8739 gtk_config_prefix="$withval"
8740else
8741 gtk_config_prefix=""
698dcdb6 8742fi
6f72b082
OK
8743
8744# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
8745if test "${with_gtk_exec_prefix+set}" = set; then
8746 withval="$with_gtk_exec_prefix"
8747 gtk_config_exec_prefix="$withval"
8748else
8749 gtk_config_exec_prefix=""
698dcdb6
VZ
8750fi
8751
6f72b082
OK
8752# Check whether --enable-gtktest or --disable-gtktest was given.
8753if test "${enable_gtktest+set}" = set; then
8754 enableval="$enable_gtktest"
698dcdb6 8755 :
6f72b082
OK
8756else
8757 enable_gtktest=yes
698dcdb6
VZ
8758fi
8759
6f72b082 8760
8168de4c 8761 for module in .
6f72b082
OK
8762 do
8763 case "$module" in
8168de4c 8764 gthread)
6f72b082
OK
8765 gtk_config_args="$gtk_config_args gthread"
8766 ;;
8767 esac
8768 done
8769
8770 if test x$gtk_config_exec_prefix != x ; then
8771 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8772 if test x${GTK_CONFIG_2_0+set} != xset ; then
8773 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
8774 fi
8775 fi
8776 if test x$gtk_config_prefix != x ; then
8777 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8778 if test x${GTK_CONFIG_2_0+set} != xset ; then
8779 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
8780 fi
8781 fi
8782
8783 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
8784set dummy gtk-config-2.0; ac_word=$2
698dcdb6 8785echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
29fd3c0c 8786echo "configure:8787: checking for $ac_word" >&5
698dcdb6
VZ
8787if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
8788 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 8789else
698dcdb6
VZ
8790 case "$GTK_CONFIG_2_0" in
8791 /*)
6f72b082
OK
8792 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
8793 ;;
698dcdb6
VZ
8794 ?:/*)
8795 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
8796 ;;
6f72b082 8797 *)
698dcdb6
VZ
8798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8799 ac_dummy="$PATH"
8800 for ac_dir in $ac_dummy; do
8801 test -z "$ac_dir" && ac_dir=.
8802 if test -f $ac_dir/$ac_word; then
8803 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
8804 break
8805 fi
8806 done
8807 IFS="$ac_save_ifs"
6f72b082
OK
8808 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
8809 ;;
8810esac
8811fi
698dcdb6 8812GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 8813if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 8814 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 8815else
698dcdb6 8816 echo "$ac_t""no" 1>&6
6f72b082
OK
8817fi
8818
8819 min_gtk_version=1.3.1
698dcdb6 8820 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
29fd3c0c 8821echo "configure:8822: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
8822 no_gtk=""
8823 if test "$GTK_CONFIG_2_0" = "no" ; then
8824 no_gtk=yes
8825 else
8826 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
8827 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
8828 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8829 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8830 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8831 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8832 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8833 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8834 if test "x$enable_gtktest" = "xyes" ; then
8835 ac_save_CFLAGS="$CFLAGS"
8836 ac_save_LIBS="$LIBS"
8837 CFLAGS="$CFLAGS $GTK_CFLAGS"
8838 LIBS="$GTK_LIBS $LIBS"
8839 rm -f conf.gtktest
8840 if test "$cross_compiling" = yes; then
8841 echo $ac_n "cross compiling; assumed OK... $ac_c"
8842else
698dcdb6 8843 cat > conftest.$ac_ext <<EOF
29fd3c0c 8844#line 8845 "configure"
6f72b082
OK
8845#include "confdefs.h"
8846
8847#include <gtk/gtk.h>
8848#include <stdio.h>
8849#include <stdlib.h>
8850
8168de4c 8851int
6f72b082
OK
8852main ()
8853{
8854 int major, minor, micro;
8855 char *tmp_version;
8856
8857 system ("touch conf.gtktest");
8858
8859 /* HP/UX 9 (%@#!) writes to sscanf strings */
8860 tmp_version = g_strdup("$min_gtk_version");
8861 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8862 printf("%s, bad version string\n", "$min_gtk_version");
8863 exit(1);
8864 }
8865
8866 if ((gtk_major_version != $gtk_config_major_version) ||
8867 (gtk_minor_version != $gtk_config_minor_version) ||
8868 (gtk_micro_version != $gtk_config_micro_version))
8869 {
8168de4c 8870 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
8871 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
8872 gtk_major_version, gtk_minor_version, gtk_micro_version);
8873 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
8874 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
8875 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8876 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8877 printf("*** required on your system.\n");
8878 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
8879 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
8880 printf("*** before re-running configure\n");
8168de4c 8881 }
6f72b082
OK
8882#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
8883 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8168de4c 8884 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
8885 (gtk_micro_version != GTK_MICRO_VERSION))
8886 {
8887 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8168de4c 8888 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 8889 printf("*** library (version %d.%d.%d)\n",
8168de4c 8890 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082
OK
8891 }
8892#endif /* defined (GTK_MAJOR_VERSION) ... */
8893 else
8894 {
8895 if ((gtk_major_version > major) ||
8896 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8897 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
8898 {
8899 return 0;
8900 }
8901 else
8902 {
8903 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
8904 gtk_major_version, gtk_minor_version, gtk_micro_version);
8905 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8168de4c 8906 major, minor, micro);
6f72b082
OK
8907 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
8908 printf("***\n");
8909 printf("*** If you have already installed a sufficiently new version, this error\n");
8910 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
8911 printf("*** being found. The easiest way to fix this is to remove the old version\n");
8912 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
8913 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
8914 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
8915 printf("*** so that the correct libraries are found at run-time))\n");
8916 }
8917 }
8918 return 1;
8919}
8920
698dcdb6 8921EOF
29fd3c0c 8922if { (eval echo configure:8923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 8923then
6f72b082
OK
8924 :
8925else
698dcdb6
VZ
8926 echo "configure: failed program was:" >&5
8927 cat conftest.$ac_ext >&5
8928 rm -fr conftest*
8929 no_gtk=yes
6f72b082 8930fi
698dcdb6 8931rm -fr conftest*
6f72b082 8932fi
698dcdb6 8933
6f72b082
OK
8934 CFLAGS="$ac_save_CFLAGS"
8935 LIBS="$ac_save_LIBS"
8936 fi
8937 fi
8938 if test "x$no_gtk" = x ; then
698dcdb6 8939 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8168de4c 8940 wx_cv_lib_gtk=2.0
6f72b082 8941 else
698dcdb6 8942 echo "$ac_t""no" 1>&6
6f72b082
OK
8943 if test "$GTK_CONFIG_2_0" = "no" ; then
8944 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
8945 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
8946 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
8947 echo "*** full path to gtk-config-2.0."
8948 else
8949 if test -f conf.gtktest ; then
8950 :
8951 else
8952 echo "*** Could not run GTK test program, checking why..."
8953 CFLAGS="$CFLAGS $GTK_CFLAGS"
8954 LIBS="$LIBS $GTK_LIBS"
698dcdb6 8955 cat > conftest.$ac_ext <<EOF
29fd3c0c 8956#line 8957 "configure"
6f72b082
OK
8957#include "confdefs.h"
8958
8959#include <gtk/gtk.h>
8960#include <stdio.h>
8961
698dcdb6
VZ
8962int main() {
8963 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
8964; return 0; }
8965EOF
29fd3c0c 8966if { (eval echo configure:8967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 8967 rm -rf conftest*
6f72b082
OK
8968 echo "*** The test program compiled, but did not run. This usually means"
8969 echo "*** that the run-time linker is not finding GTK or finding the wrong"
8970 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
8971 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8972 echo "*** to the installed location Also, make sure you have run ldconfig if that"
8973 echo "*** is required on your system"
8168de4c 8974 echo "***"
6f72b082
OK
8975 echo "*** If you have an old version installed, it is best to remove it, although"
8976 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8977 echo "***"
8978 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
8979 echo "*** came with the system with the command"
8980 echo "***"
698dcdb6 8981 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 8982else
698dcdb6
VZ
8983 echo "configure: failed program was:" >&5
8984 cat conftest.$ac_ext >&5
8985 rm -rf conftest*
8986 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
8987 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
8988 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
698dcdb6 8989 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 8990fi
698dcdb6 8991rm -f conftest*
6f72b082
OK
8992 CFLAGS="$ac_save_CFLAGS"
8993 LIBS="$ac_save_LIBS"
8994 fi
8995 fi
8996 GTK_CFLAGS=""
8997 GTK_LIBS=""
8168de4c
VZ
8998 gthread
8999 fi
9000
9001
9002 rm -f conf.gtktest
9003
9004 fi
9005
9006 if test -z "$wx_cv_lib_gtk"; then
9007
10f2d63a
VZ
9008 if test x$gtk_config_exec_prefix != x ; then
9009 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9010 if test x${GTK_CONFIG+set} != xset ; then
9011 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9012 fi
9013 fi
9014 if test x$gtk_config_prefix != x ; then
9015 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9016 if test x${GTK_CONFIG+set} != xset ; then
9017 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9018 fi
9019 fi
9020
9021 # Extract the first word of "gtk-config", so it can be a program name with args.
9022set dummy gtk-config; ac_word=$2
698dcdb6 9023echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
29fd3c0c 9024echo "configure:9025: checking for $ac_word" >&5
698dcdb6
VZ
9025if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9026 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 9027else
698dcdb6
VZ
9028 case "$GTK_CONFIG" in
9029 /*)
f6bcfd97
BP
9030 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9031 ;;
698dcdb6
VZ
9032 ?:/*)
9033 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9034 ;;
f6bcfd97 9035 *)
698dcdb6
VZ
9036 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9037 ac_dummy="$PATH"
9038 for ac_dir in $ac_dummy; do
9039 test -z "$ac_dir" && ac_dir=.
9040 if test -f $ac_dir/$ac_word; then
9041 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9042 break
9043 fi
9044 done
9045 IFS="$ac_save_ifs"
f6bcfd97
BP
9046 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9047 ;;
9048esac
9049fi
698dcdb6 9050GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 9051if test -n "$GTK_CONFIG"; then
698dcdb6 9052 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 9053else
698dcdb6 9054 echo "$ac_t""no" 1>&6
f6bcfd97
BP
9055fi
9056
9057 min_gtk_version=1.2.7
698dcdb6 9058 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
29fd3c0c 9059echo "configure:9060: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
9060 no_gtk=""
9061 if test "$GTK_CONFIG" != "no" ; then
9062 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9063 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9064 ac_save_CFLAGS="$CFLAGS"
9065 ac_save_LIBS="$LIBS"
9066 CFLAGS="$CFLAGS $GTK_CFLAGS"
9067 LIBS="$LIBS $GTK_LIBS"
9068 if test "$cross_compiling" = yes; then
9069 echo $ac_n "cross compiling; assumed OK... $ac_c"
9070else
698dcdb6 9071 cat > conftest.$ac_ext <<EOF
29fd3c0c 9072#line 9073 "configure"
f6bcfd97
BP
9073#include "confdefs.h"
9074
9075#include <gtk/gtk.h>
9076#include <gtk/gtkfeatures.h>
9077#include <stdio.h>
9078#include <stdlib.h>
9079
9080int
9081main ()
9082{
9083 int major, minor, micro;
9084
9085 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9086 printf("%s, bad version string\n", "$min_gtk_version");
9087 exit(1);
9088 }
9089
9090 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9091 (GTK_MINOR_VERSION != gtk_minor_version) ||
9092 (GTK_MICRO_VERSION != gtk_micro_version)) {
9093 printf("Headers vs. library version mismatch!\n");
9094 exit(1);
9095 }
9096
9097 if (gtk_minor_version == 1) return FALSE;
9098
9099 return !((gtk_major_version > major) ||
9100 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9101 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9102}
9103
698dcdb6 9104EOF
29fd3c0c 9105if { (eval echo configure:9106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9106then
f6bcfd97
BP
9107 :
9108else
698dcdb6
VZ
9109 echo "configure: failed program was:" >&5
9110 cat conftest.$ac_ext >&5
9111 rm -fr conftest*
9112 no_gtk=yes
f6bcfd97 9113fi
698dcdb6 9114rm -fr conftest*
f6bcfd97 9115fi
698dcdb6 9116
f6bcfd97
BP
9117 CFLAGS="$ac_save_CFLAGS"
9118 LIBS="$ac_save_LIBS"
9119 else
9120 no_gtk=yes
9121 fi
9122 if test "x$no_gtk" = x ; then
698dcdb6 9123 echo "$ac_t""yes" 1>&6
8168de4c 9124 wx_cv_lib_gtk=1.2.7
f6bcfd97 9125 else
698dcdb6 9126 echo "$ac_t""no" 1>&6
f6bcfd97
BP
9127 GTK_CFLAGS=""
9128 GTK_LIBS=""
9129 :
9130 fi
698dcdb6
VZ
9131
9132
f6bcfd97 9133
8168de4c
VZ
9134 fi
9135
9136 if test -z "$wx_cv_lib_gtk"; then
9137
f6bcfd97
BP
9138 if test x$gtk_config_exec_prefix != x ; then
9139 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9140 if test x${GTK_CONFIG+set} != xset ; then
9141 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9142 fi
9143 fi
9144 if test x$gtk_config_prefix != x ; then
9145 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9146 if test x${GTK_CONFIG+set} != xset ; then
9147 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9148 fi
9149 fi
9150
9151 # Extract the first word of "gtk-config", so it can be a program name with args.
9152set dummy gtk-config; ac_word=$2
698dcdb6 9153echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
29fd3c0c 9154echo "configure:9155: checking for $ac_word" >&5
698dcdb6
VZ
9155if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9156 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9157else
698dcdb6
VZ
9158 case "$GTK_CONFIG" in
9159 /*)
10f2d63a
VZ
9160 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9161 ;;
698dcdb6
VZ
9162 ?:/*)
9163 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9164 ;;
10f2d63a 9165 *)
698dcdb6
VZ
9166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9167 ac_dummy="$PATH"
9168 for ac_dir in $ac_dummy; do
9169 test -z "$ac_dir" && ac_dir=.
9170 if test -f $ac_dir/$ac_word; then
9171 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9172 break
9173 fi
9174 done
9175 IFS="$ac_save_ifs"
10f2d63a
VZ
9176 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9177 ;;
9178esac
9179fi
698dcdb6 9180GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 9181if test -n "$GTK_CONFIG"; then
698dcdb6 9182 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 9183else
698dcdb6 9184 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9185fi
9186
04165bec 9187 min_gtk_version=1.2.3
698dcdb6 9188 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
29fd3c0c 9189echo "configure:9190: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
9190 no_gtk=""
9191 if test "$GTK_CONFIG" != "no" ; then
9192 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 9193 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
9194 ac_save_CFLAGS="$CFLAGS"
9195 ac_save_LIBS="$LIBS"
9196 CFLAGS="$CFLAGS $GTK_CFLAGS"
9197 LIBS="$LIBS $GTK_LIBS"
9198 if test "$cross_compiling" = yes; then
9199 echo $ac_n "cross compiling; assumed OK... $ac_c"
9200else
698dcdb6 9201 cat > conftest.$ac_ext <<EOF
29fd3c0c 9202#line 9203 "configure"
10f2d63a
VZ
9203#include "confdefs.h"
9204
9205#include <gtk/gtk.h>
f49f2b0c 9206#include <gtk/gtkfeatures.h>
10f2d63a 9207#include <stdio.h>
32832908 9208#include <stdlib.h>
10f2d63a
VZ
9209
9210int
9211main ()
9212{
9213 int major, minor, micro;
9214
9215 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9216 printf("%s, bad version string\n", "$min_gtk_version");
9217 exit(1);
9218 }
9219
f49f2b0c
RR
9220 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9221 (GTK_MINOR_VERSION != gtk_minor_version) ||
9222 (GTK_MICRO_VERSION != gtk_micro_version)) {
9223 printf("Headers vs. library version mismatch!\n");
9224 exit(1);
9225 }
9226
10f2d63a
VZ
9227 if (gtk_minor_version == 1) return FALSE;
9228
9229 return !((gtk_major_version > major) ||
9230 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9231 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9232}
9233
698dcdb6 9234EOF
29fd3c0c 9235if { (eval echo configure:9236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9236then
10f2d63a
VZ
9237 :
9238else
698dcdb6
VZ
9239 echo "configure: failed program was:" >&5
9240 cat conftest.$ac_ext >&5
9241 rm -fr conftest*
9242 no_gtk=yes
10f2d63a 9243fi
698dcdb6 9244rm -fr conftest*
10f2d63a 9245fi
698dcdb6 9246
10f2d63a
VZ
9247 CFLAGS="$ac_save_CFLAGS"
9248 LIBS="$ac_save_LIBS"
9249 else
9250 no_gtk=yes
9251 fi
9252 if test "x$no_gtk" = x ; then
698dcdb6 9253 echo "$ac_t""yes" 1>&6
8168de4c 9254 wx_cv_lib_gtk=1.2.3
10f2d63a 9255 else
698dcdb6 9256 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9257 GTK_CFLAGS=""
9258 GTK_LIBS=""
7e99ad86 9259 :
10f2d63a 9260 fi
698dcdb6
VZ
9261
9262
10f2d63a 9263
8168de4c
VZ
9264 fi
9265
9266 if test -z "$wx_cv_lib_gtk"; then
9267 wx_cv_lib_gtk=none
138be253
VZ
9268 else
9269 wx_cv_cflags_gtk=$GTK_CFLAGS
9270 wx_cv_libs_gtk=$GTK_LIBS
8168de4c
VZ
9271 fi
9272
1e6feb95 9273
8168de4c 9274fi
703e0a69 9275
698dcdb6 9276
8168de4c
VZ
9277 if test "$gtk_version_cached" = 1; then
9278 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
1e6feb95 9279 fi
698dcdb6 9280
8168de4c
VZ
9281 case "$wx_cv_lib_gtk" in
9282 2.0) WXGTK20=1
9283 ;;
9284 1.2.7) WXGTK127=1
d1a8d972 9285 WXGTK12=1
8168de4c
VZ
9286 ;;
9287 1.2.3) WXGTK12=1
9288 ;;
9289 *) { echo "configure: error:
9290Please check that gtk-config is in path, the directory
9291where GTK+ libraries are installed (returned by
9292'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9293equivalent variable and GTK+ is version 1.2.3 or above.
9294 " 1>&2; exit 1; }
9295 ;;
9296 esac
2224580a 9297
138be253 9298 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11dfaa5f 9299 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
698dcdb6 9300
1e6feb95
VZ
9301 AFMINSTALL=afminstall
9302 TOOLKIT=GTK
9303 GUIDIST=GTK_DIST
7ec2881a 9304
1e6feb95 9305 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
29fd3c0c 9306echo "configure:9307: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
9307ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9308if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9309 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 9310else
698dcdb6 9311 ac_save_LIBS="$LIBS"
7ec2881a 9312LIBS="-lgdk $LIBS"
698dcdb6 9313cat > conftest.$ac_ext <<EOF
29fd3c0c 9314#line 9315 "configure"
7ec2881a
RR
9315#include "confdefs.h"
9316/* Override any gcc2 internal prototype to avoid an error. */
9317/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9318 builtin and then its argument prototype would still apply. */
9319char gdk_im_open();
9320
9321int main() {
9322gdk_im_open()
9323; return 0; }
9324EOF
29fd3c0c 9325if { (eval echo configure:9326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9326 rm -rf conftest*
9327 eval "ac_cv_lib_$ac_lib_var=yes"
9328else
9329 echo "configure: failed program was:" >&5
9330 cat conftest.$ac_ext >&5
9331 rm -rf conftest*
9332 eval "ac_cv_lib_$ac_lib_var=no"
9333fi
9334rm -f conftest*
9335LIBS="$ac_save_LIBS"
9336
9337fi
9338if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9339 echo "$ac_t""yes" 1>&6
9340 cat >> confdefs.h <<\EOF
7ec2881a
RR
9341#define HAVE_XIM 1
9342EOF
9343
698dcdb6
VZ
9344else
9345 echo "$ac_t""no" 1>&6
7ec2881a
RR
9346fi
9347
1e6feb95 9348 fi
10f2d63a 9349
1e6feb95
VZ
9350 if test "$wxUSE_MGL" = 1; then
9351
9352 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
29fd3c0c 9353echo "configure:9354: checking for SciTech MGL library" >&5
1e6feb95
VZ
9354 if test "x$MGL_ROOT" = x ; then
9355 echo "$ac_t""not found" 1>&6
9356 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9357 else
9358 echo "$ac_t""$MGL_ROOT" 1>&6
9359 fi
9360
9361 MGL_OS=linux/gcc/glibc
9362 MGL_LIB_TYPE=""
9363
9364 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9365 if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then
9366 MGL_LIB_TYPE=debug
9367 fi
9368 fi
9369 if test "x$MGL_LIB_TYPE" = x ; then
9370 if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then
9371 MGL_LIB_TYPE=release
9372 else
9373 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9374 fi
9375 fi
9376
9377 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9378 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm"
9379
9380 AFMINSTALL=afminstall
9381 TOOLKIT=MGL
9382 GUIDIST=MGL_DIST
9383 fi
9384
9385 if test "$wxUSE_WINE" = 1; then
9386 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
29fd3c0c 9387echo "configure:9388: checking for WINE includes" >&5
1e6feb95 9388
10f2d63a
VZ
9389ac_find_includes=
9390for ac_dir in $SEARCH_INCLUDE;
9391 do
9392 if test -f "$ac_dir/windows.h"; then
9393 ac_find_includes=$ac_dir
9394 break
9395 fi
9396 done
9397
1e6feb95
VZ
9398 if test "$ac_find_includes" != "" ; then
9399 echo "$ac_t""found $ac_find_includes" 1>&6
9400 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
9401 else
9402 echo "$ac_t""no" 1>&6
9403 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9404 fi
10f2d63a 9405
1e6feb95
VZ
9406 XPM_LINK=""
9407 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
29fd3c0c 9408echo "configure:9409: checking for Xpm library" >&5
1e6feb95 9409
10f2d63a
VZ
9410ac_find_libraries=
9411for ac_dir in $SEARCH_LIB;
9412 do
9413 for ac_extension in a so sl; do
9414 if test -f "$ac_dir/libXpm.$ac_extension"; then
9415 ac_find_libraries=$ac_dir
9416 break 2
9417 fi
9418 done
9419 done
9420
1e6feb95
VZ
9421 if test "$ac_find_libraries" != "" ; then
9422 GUI_TK_LIBRARY="-L$ac_find_libraries"
9423 XPM_LINK="-lXpm"
9424 cat >> confdefs.h <<\EOF
10f2d63a
VZ
9425#define wxHAVE_LIB_XPM 1
9426EOF
9427
1e6feb95
VZ
9428 echo "$ac_t""found at $ac_find_libraries" 1>&6
9429 else
9430 echo "$ac_t""no" 1>&6
9431 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9432 fi
10f2d63a 9433
1e6feb95
VZ
9434 MESA_LINK=""
9435 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
29fd3c0c 9436echo "configure:9437: checking for Mesa library" >&5
1e6feb95 9437
10f2d63a
VZ
9438ac_find_libraries=
9439for ac_dir in $SEARCH_LIB;
9440 do
9441 for ac_extension in a so sl; do
9442 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9443 ac_find_libraries=$ac_dir
9444 break 2
9445 fi
9446 done
9447 done
9448
1e6feb95
VZ
9449 if test "$ac_find_libraries" != "" ; then
9450 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9451 MESA_LINK="-lMesaGL"
9452 echo "$ac_t""found at $ac_find_libraries" 1>&6
9453 else
9454 { echo "configure: error: no" 1>&2; exit 1; }
9455 fi
10f2d63a 9456
1e6feb95
VZ
9457 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9458 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9459 WXWINE=1
9460 TOOLKIT=MSW
9461 GUIDIST=MSW_DIST
9462 fi
698dcdb6 9463
1e6feb95
VZ
9464
9465 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
9466# paths, otherwise set no_x=yes.
9467# Uses ac_ vars as temps to allow command line to override cache and checks.
9468# --without-x overrides everything else, but does not touch the cache.
9469echo $ac_n "checking for X""... $ac_c" 1>&6
29fd3c0c 9470echo "configure:9471: checking for X" >&5
ab9b9eab
VZ
9471
9472# Check whether --with-x or --without-x was given.
9473if test "${with_x+set}" = set; then
9474 withval="$with_x"
698dcdb6
VZ
9475 :
9476fi
ba337fe7 9477
ab9b9eab
VZ
9478# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9479if test "x$with_x" = xno; then
9480 # The user explicitly disabled X.
9481 have_x=disabled
9482else
9483 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9484 # Both variables are already set.
9485 have_x=yes
9486 else
698dcdb6
VZ
9487if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9488 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
9489else
9490 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
9491ac_x_includes=NO ac_x_libraries=NO
9492rm -fr conftestdir
9493if mkdir conftestdir; then
9494 cd conftestdir
ab9b9eab 9495 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 9496 cat > Imakefile <<'EOF'
ab9b9eab
VZ
9497acfindx:
9498 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9499EOF
9500 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9501 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9502 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9503 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 9504 for ac_extension in a so sl; do
ab9b9eab 9505 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 9506 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 9507 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
9508 fi
9509 done
ab9b9eab
VZ
9510 # Screen out bogus values from the imake configuration. They are
9511 # bogus both because they are the default anyway, and because
9512 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 9513 case "$ac_im_incroot" in
ab9b9eab 9514 /usr/include) ;;
698dcdb6 9515 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 9516 esac
698dcdb6 9517 case "$ac_im_usrlibdir" in
ab9b9eab 9518 /usr/lib | /lib) ;;
698dcdb6 9519 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 9520 esac
ba337fe7 9521 fi
ab9b9eab 9522 cd ..
698dcdb6 9523 rm -fr conftestdir
ab9b9eab 9524fi
10f2d63a 9525
698dcdb6
VZ
9526if test "$ac_x_includes" = NO; then
9527 # Guess where to find include files, by looking for this one X11 .h file.
9528 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9529
ab9b9eab 9530 # First, try using that file with no special directory specified.
698dcdb6 9531cat > conftest.$ac_ext <<EOF
29fd3c0c 9532#line 9533 "configure"
ab9b9eab 9533#include "confdefs.h"
698dcdb6
VZ
9534#include <$x_direct_test_include>
9535EOF
9536ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29fd3c0c 9537{ (eval echo configure:9538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
9538ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9539if test -z "$ac_err"; then
9540 rm -rf conftest*
ab9b9eab
VZ
9541 # We can compile using X headers with no special include directory.
9542ac_x_includes=
9543else
698dcdb6
VZ
9544 echo "$ac_err" >&5
9545 echo "configure: failed program was:" >&5
ab9b9eab 9546 cat conftest.$ac_ext >&5
698dcdb6
VZ
9547 rm -rf conftest*
9548 # Look for the header file in a standard set of common directories.
9549# Check X11 before X11Rn because it is often a symlink to the current release.
9550 for ac_dir in \
9551 /usr/X11/include \
9552 /usr/X11R6/include \
9553 /usr/X11R5/include \
9554 /usr/X11R4/include \
9555 \
9556 /usr/include/X11 \
9557 /usr/include/X11R6 \
9558 /usr/include/X11R5 \
9559 /usr/include/X11R4 \
9560 \
9561 /usr/local/X11/include \
9562 /usr/local/X11R6/include \
9563 /usr/local/X11R5/include \
9564 /usr/local/X11R4/include \
9565 \
9566 /usr/local/include/X11 \
9567 /usr/local/include/X11R6 \
9568 /usr/local/include/X11R5 \
9569 /usr/local/include/X11R4 \
9570 \
9571 /usr/X386/include \
9572 /usr/x386/include \
9573 /usr/XFree86/include/X11 \
9574 \
9575 /usr/include \
9576 /usr/local/include \
9577 /usr/unsupported/include \
9578 /usr/athena/include \
9579 /usr/local/x11r5/include \
9580 /usr/lpp/Xamples/include \
9581 \
9582 /usr/openwin/include \
9583 /usr/openwin/share/include \
9584 ; \
9585 do
9586 if test -r "$ac_dir/$x_direct_test_include"; then
9587 ac_x_includes=$ac_dir
9588 break
9589 fi
9590 done
ab9b9eab 9591fi
698dcdb6
VZ
9592rm -f conftest*
9593fi # $ac_x_includes = NO
10f2d63a 9594
698dcdb6 9595if test "$ac_x_libraries" = NO; then
ab9b9eab 9596 # Check for the libraries.
698dcdb6
VZ
9597
9598 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9599 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9600
ab9b9eab
VZ
9601 # See if we find them without any special options.
9602 # Don't add to $LIBS permanently.
698dcdb6
VZ
9603 ac_save_LIBS="$LIBS"
9604 LIBS="-l$x_direct_test_library $LIBS"
9605cat > conftest.$ac_ext <<EOF
29fd3c0c 9606#line 9607 "configure"
ab9b9eab 9607#include "confdefs.h"
698dcdb6
VZ
9608
9609int main() {
9610${x_direct_test_function}()
9611; return 0; }
9612EOF
29fd3c0c 9613if { (eval echo configure:9614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9614 rm -rf conftest*
9615 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
9616# We can link X programs with no special library path.
9617ac_x_libraries=
9618else
698dcdb6
VZ
9619 echo "configure: failed program was:" >&5
9620 cat conftest.$ac_ext >&5
9621 rm -rf conftest*
9622 LIBS="$ac_save_LIBS"
9623# First see if replacing the include by lib works.
9624# Check X11 before X11Rn because it is often a symlink to the current release.
9625for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9626 /usr/X11/lib \
9627 /usr/X11R6/lib \
9628 /usr/X11R5/lib \
9629 /usr/X11R4/lib \
9630 \
9631 /usr/lib/X11 \
9632 /usr/lib/X11R6 \
9633 /usr/lib/X11R5 \
9634 /usr/lib/X11R4 \
9635 \
9636 /usr/local/X11/lib \
9637 /usr/local/X11R6/lib \
9638 /usr/local/X11R5/lib \
9639 /usr/local/X11R4/lib \
9640 \
9641 /usr/local/lib/X11 \
9642 /usr/local/lib/X11R6 \
9643 /usr/local/lib/X11R5 \
9644 /usr/local/lib/X11R4 \
9645 \
9646 /usr/X386/lib \
9647 /usr/x386/lib \
9648 /usr/XFree86/lib/X11 \
9649 \
9650 /usr/lib \
9651 /usr/local/lib \
9652 /usr/unsupported/lib \
9653 /usr/athena/lib \
9654 /usr/local/x11r5/lib \
9655 /usr/lpp/Xamples/lib \
9656 /lib/usr/lib/X11 \
9657 \
9658 /usr/openwin/lib \
9659 /usr/openwin/share/lib \
9660 ; \
ab9b9eab
VZ
9661do
9662 for ac_extension in a so sl; do
698dcdb6 9663 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
9664 ac_x_libraries=$ac_dir
9665 break 2
10f2d63a 9666 fi
10f2d63a 9667 done
ab9b9eab
VZ
9668done
9669fi
698dcdb6
VZ
9670rm -f conftest*
9671fi # $ac_x_libraries = NO
10f2d63a 9672
698dcdb6 9673if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
9674 # Didn't find X anywhere. Cache the known absence of X.
9675 ac_cv_have_x="have_x=no"
9676else
9677 # Record where we found X for the cache.
9678 ac_cv_have_x="have_x=yes \
9679 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9680fi
9681fi
10f2d63a 9682 fi
ab9b9eab
VZ
9683 eval "$ac_cv_have_x"
9684fi # $with_x != no
10f2d63a 9685
ab9b9eab 9686if test "$have_x" != yes; then
698dcdb6 9687 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
9688 no_x=yes
9689else
9690 # If each of the values was on the command line, it overrides each guess.
9691 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9692 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9693 # Update the cache value to reflect the command line values.
9694 ac_cv_have_x="have_x=yes \
9695 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 9696 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 9697fi
10f2d63a 9698
ab9b9eab
VZ
9699if test "$no_x" = yes; then
9700 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 9701 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
9702#define X_DISPLAY_MISSING 1
9703EOF
10f2d63a 9704
ab9b9eab
VZ
9705 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9706else
9707 if test -n "$x_includes"; then
9708 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
9709 fi
9710
ab9b9eab
VZ
9711 # It would also be nice to do this for all -L options, not just this one.
9712 if test -n "$x_libraries"; then
9713 X_LIBS="$X_LIBS -L$x_libraries"
9714 # For Solaris; some versions of Sun CC require a space after -R and
9715 # others require no space. Words are not sufficient . . . .
698dcdb6 9716 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 9717 "SunOS 5"*)
698dcdb6 9718 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
29fd3c0c 9719echo "configure:9720: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
9720 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
9721 cat > conftest.$ac_ext <<EOF
29fd3c0c 9722#line 9723 "configure"
ab9b9eab 9723#include "confdefs.h"
10f2d63a 9724
698dcdb6 9725int main() {
788deba1 9726
698dcdb6
VZ
9727; return 0; }
9728EOF
29fd3c0c 9729if { (eval echo configure:9730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9730 rm -rf conftest*
ab9b9eab
VZ
9731 ac_R_nospace=yes
9732else
698dcdb6
VZ
9733 echo "configure: failed program was:" >&5
9734 cat conftest.$ac_ext >&5
9735 rm -rf conftest*
9736 ac_R_nospace=no
ab9b9eab 9737fi
698dcdb6 9738rm -f conftest*
ab9b9eab 9739 if test $ac_R_nospace = yes; then
698dcdb6 9740 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9741 X_LIBS="$X_LIBS -R$x_libraries"
9742 else
9743 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 9744 cat > conftest.$ac_ext <<EOF
29fd3c0c 9745#line 9746 "configure"
ab9b9eab 9746#include "confdefs.h"
788deba1 9747
698dcdb6 9748int main() {
ab9b9eab 9749
698dcdb6
VZ
9750; return 0; }
9751EOF
29fd3c0c 9752if { (eval echo configure:9753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9753 rm -rf conftest*
ab9b9eab
VZ
9754 ac_R_space=yes
9755else
698dcdb6
VZ
9756 echo "configure: failed program was:" >&5
9757 cat conftest.$ac_ext >&5
9758 rm -rf conftest*
9759 ac_R_space=no
ab9b9eab 9760fi
698dcdb6 9761rm -f conftest*
ab9b9eab 9762 if test $ac_R_space = yes; then
698dcdb6 9763 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
9764 X_LIBS="$X_LIBS -R $x_libraries"
9765 else
698dcdb6 9766 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
9767 fi
9768 fi
698dcdb6 9769 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
9770 esac
9771 fi
9772
9773 # Check for system-dependent libraries X programs must link with.
9774 # Do this before checking for the system-independent R6 libraries
9775 # (-lICE), since we may need -lsocket or whatever for X linking.
9776
9777 if test "$ISC" = yes; then
9778 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9779 else
698dcdb6
VZ
9780 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
9781 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 9782 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 9783 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
29fd3c0c 9784echo "configure:9785: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
9785ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9786if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9787 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9788else
698dcdb6 9789 ac_save_LIBS="$LIBS"
ab9b9eab 9790LIBS="-ldnet $LIBS"
698dcdb6 9791cat > conftest.$ac_ext <<EOF
29fd3c0c 9792#line 9793 "configure"
ab9b9eab
VZ
9793#include "confdefs.h"
9794/* Override any gcc2 internal prototype to avoid an error. */
9795/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9796 builtin and then its argument prototype would still apply. */
9797char dnet_ntoa();
9798
9799int main() {
9800dnet_ntoa()
9801; return 0; }
9802EOF
29fd3c0c 9803if { (eval echo configure:9804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9804 rm -rf conftest*
9805 eval "ac_cv_lib_$ac_lib_var=yes"
9806else
9807 echo "configure: failed program was:" >&5
9808 cat conftest.$ac_ext >&5
9809 rm -rf conftest*
9810 eval "ac_cv_lib_$ac_lib_var=no"
9811fi
9812rm -f conftest*
9813LIBS="$ac_save_LIBS"
9814
9815fi
9816if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9817 echo "$ac_t""yes" 1>&6
ab9b9eab 9818 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
9819else
9820 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9821fi
9822
9823 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 9824 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
29fd3c0c 9825echo "configure:9826: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
9826ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9827if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9828 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9829else
698dcdb6 9830 ac_save_LIBS="$LIBS"
ab9b9eab 9831LIBS="-ldnet_stub $LIBS"
698dcdb6 9832cat > conftest.$ac_ext <<EOF
29fd3c0c 9833#line 9834 "configure"
ab9b9eab
VZ
9834#include "confdefs.h"
9835/* Override any gcc2 internal prototype to avoid an error. */
9836/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9837 builtin and then its argument prototype would still apply. */
9838char dnet_ntoa();
9839
9840int main() {
9841dnet_ntoa()
9842; return 0; }
9843EOF
29fd3c0c 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_lib_$ac_lib_var=yes"
9847else
9848 echo "configure: failed program was:" >&5
9849 cat conftest.$ac_ext >&5
9850 rm -rf conftest*
9851 eval "ac_cv_lib_$ac_lib_var=no"
9852fi
9853rm -f conftest*
9854LIBS="$ac_save_LIBS"
9855
9856fi
9857if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9858 echo "$ac_t""yes" 1>&6
ab9b9eab 9859 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
9860else
9861 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9862fi
9863
9864 fi
9865
9866 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9867 # to get the SysV transport functions.
698dcdb6 9868 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
9869 # needs -lnsl.
9870 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
9871 # on Irix 5.2, according to dickey@clark.net.
9872 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
29fd3c0c 9873echo "configure:9874: checking for gethostbyname" >&5
698dcdb6
VZ
9874if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
9875 echo $ac_n "(cached) $ac_c" 1>&6
9876else
9877 cat > conftest.$ac_ext <<EOF
29fd3c0c 9878#line 9879 "configure"
ab9b9eab
VZ
9879#include "confdefs.h"
9880/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 9881 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
9882#include <assert.h>
9883/* Override any gcc2 internal prototype to avoid an error. */
9884/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9885 builtin and then its argument prototype would still apply. */
9886char gethostbyname();
9887
9888int main() {
ab9b9eab
VZ
9889
9890/* The GNU C library defines this for functions which it implements
9891 to always fail with ENOSYS. Some functions are actually named
9892 something starting with __ and the normal name is an alias. */
9893#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9894choke me
9895#else
698dcdb6 9896gethostbyname();
ab9b9eab
VZ
9897#endif
9898
698dcdb6
VZ
9899; return 0; }
9900EOF
29fd3c0c 9901if { (eval echo configure:9902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9902 rm -rf conftest*
9903 eval "ac_cv_func_gethostbyname=yes"
9904else
9905 echo "configure: failed program was:" >&5
9906 cat conftest.$ac_ext >&5
9907 rm -rf conftest*
9908 eval "ac_cv_func_gethostbyname=no"
9909fi
9910rm -f conftest*
9911fi
9912
9913if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
9914 echo "$ac_t""yes" 1>&6
9915 :
9916else
9917 echo "$ac_t""no" 1>&6
9918fi
ab9b9eab
VZ
9919
9920 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 9921 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
29fd3c0c 9922echo "configure:9923: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
9923ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
9924if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9925 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9926else
698dcdb6 9927 ac_save_LIBS="$LIBS"
ab9b9eab 9928LIBS="-lnsl $LIBS"
698dcdb6 9929cat > conftest.$ac_ext <<EOF
29fd3c0c 9930#line 9931 "configure"
ab9b9eab
VZ
9931#include "confdefs.h"
9932/* Override any gcc2 internal prototype to avoid an error. */
9933/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9934 builtin and then its argument prototype would still apply. */
9935char gethostbyname();
6232543b 9936
698dcdb6
VZ
9937int main() {
9938gethostbyname()
9939; return 0; }
9940EOF
29fd3c0c 9941if { (eval echo configure:9942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9942 rm -rf conftest*
9943 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 9944else
698dcdb6
VZ
9945 echo "configure: failed program was:" >&5
9946 cat conftest.$ac_ext >&5
9947 rm -rf conftest*
9948 eval "ac_cv_lib_$ac_lib_var=no"
9949fi
9950rm -f conftest*
9951LIBS="$ac_save_LIBS"
1e487827 9952
698dcdb6
VZ
9953fi
9954if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9955 echo "$ac_t""yes" 1>&6
9956 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9957else
9958 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9959fi
9960
9961 fi
9962
9963 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9964 # socket/setsockopt and other routines are undefined under SCO ODT
9965 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
9966 # on later versions), says simon@lia.di.epfl.ch: it contains
9967 # gethostby* variants that don't use the nameserver (or something).
9968 # -lsocket must be given before -lnsl if both are needed.
9969 # We assume that if connect needs -lnsl, so does gethostbyname.
9970 echo $ac_n "checking for connect""... $ac_c" 1>&6
29fd3c0c 9971echo "configure:9972: checking for connect" >&5
698dcdb6
VZ
9972if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
9973 echo $ac_n "(cached) $ac_c" 1>&6
9974else
9975 cat > conftest.$ac_ext <<EOF
29fd3c0c 9976#line 9977 "configure"
ab9b9eab
VZ
9977#include "confdefs.h"
9978/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 9979 which can conflict with char connect(); below. */
ab9b9eab
VZ
9980#include <assert.h>
9981/* Override any gcc2 internal prototype to avoid an error. */
9982/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9983 builtin and then its argument prototype would still apply. */
9984char connect();
9985
9986int main() {
ab9b9eab
VZ
9987
9988/* The GNU C library defines this for functions which it implements
9989 to always fail with ENOSYS. Some functions are actually named
9990 something starting with __ and the normal name is an alias. */
9991#if defined (__stub_connect) || defined (__stub___connect)
9992choke me
9993#else
698dcdb6 9994connect();
ab9b9eab
VZ
9995#endif
9996
698dcdb6
VZ
9997; return 0; }
9998EOF
29fd3c0c 9999if { (eval echo configure:10000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10000 rm -rf conftest*
10001 eval "ac_cv_func_connect=yes"
10002else
10003 echo "configure: failed program was:" >&5
10004 cat conftest.$ac_ext >&5
10005 rm -rf conftest*
10006 eval "ac_cv_func_connect=no"
10007fi
10008rm -f conftest*
10009fi
10010
10011if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
10012 echo "$ac_t""yes" 1>&6
10013 :
10014else
10015 echo "$ac_t""no" 1>&6
10016fi
ab9b9eab
VZ
10017
10018 if test $ac_cv_func_connect = no; then
698dcdb6 10019 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
29fd3c0c 10020echo "configure:10021: checking for connect in -lsocket" >&5
698dcdb6
VZ
10021ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
10022if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10023 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10024else
698dcdb6 10025 ac_save_LIBS="$LIBS"
ab9b9eab 10026LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 10027cat > conftest.$ac_ext <<EOF
29fd3c0c 10028#line 10029 "configure"
ab9b9eab
VZ
10029#include "confdefs.h"
10030/* Override any gcc2 internal prototype to avoid an error. */
10031/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10032 builtin and then its argument prototype would still apply. */
10033char connect();
10034
10035int main() {
10036connect()
10037; return 0; }
10038EOF
29fd3c0c 10039if { (eval echo configure:10040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10040 rm -rf conftest*
10041 eval "ac_cv_lib_$ac_lib_var=yes"
10042else
10043 echo "configure: failed program was:" >&5
10044 cat conftest.$ac_ext >&5
10045 rm -rf conftest*
10046 eval "ac_cv_lib_$ac_lib_var=no"
10047fi
10048rm -f conftest*
10049LIBS="$ac_save_LIBS"
10050
10051fi
10052if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10053 echo "$ac_t""yes" 1>&6
ab9b9eab 10054 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
10055else
10056 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10057fi
10058
10059 fi
10060
698dcdb6
VZ
10061 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
10062 echo $ac_n "checking for remove""... $ac_c" 1>&6
29fd3c0c 10063echo "configure:10064: checking for remove" >&5
698dcdb6
VZ
10064if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
10065 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10066else
698dcdb6 10067 cat > conftest.$ac_ext <<EOF
29fd3c0c 10068#line 10069 "configure"
ab9b9eab
VZ
10069#include "confdefs.h"
10070/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10071 which can conflict with char remove(); below. */
ab9b9eab
VZ
10072#include <assert.h>
10073/* Override any gcc2 internal prototype to avoid an error. */
10074/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10075 builtin and then its argument prototype would still apply. */
10076char remove();
10077
10078int main() {
ab9b9eab
VZ
10079
10080/* The GNU C library defines this for functions which it implements
10081 to always fail with ENOSYS. Some functions are actually named
10082 something starting with __ and the normal name is an alias. */
10083#if defined (__stub_remove) || defined (__stub___remove)
10084choke me
10085#else
698dcdb6 10086remove();
ab9b9eab
VZ
10087#endif
10088
698dcdb6
VZ
10089; return 0; }
10090EOF
29fd3c0c 10091if { (eval echo configure:10092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10092 rm -rf conftest*
10093 eval "ac_cv_func_remove=yes"
10094else
10095 echo "configure: failed program was:" >&5
10096 cat conftest.$ac_ext >&5
10097 rm -rf conftest*
10098 eval "ac_cv_func_remove=no"
10099fi
10100rm -f conftest*
10101fi
10102
10103if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
10104 echo "$ac_t""yes" 1>&6
10105 :
10106else
10107 echo "$ac_t""no" 1>&6
10108fi
ab9b9eab
VZ
10109
10110 if test $ac_cv_func_remove = no; then
698dcdb6 10111 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
29fd3c0c 10112echo "configure:10113: checking for remove in -lposix" >&5
698dcdb6
VZ
10113ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
10114if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10115 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10116else
698dcdb6 10117 ac_save_LIBS="$LIBS"
ab9b9eab 10118LIBS="-lposix $LIBS"
698dcdb6 10119cat > conftest.$ac_ext <<EOF
29fd3c0c 10120#line 10121 "configure"
ab9b9eab
VZ
10121#include "confdefs.h"
10122/* Override any gcc2 internal prototype to avoid an error. */
10123/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10124 builtin and then its argument prototype would still apply. */
10125char remove();
10126
10127int main() {
10128remove()
10129; return 0; }
10130EOF
29fd3c0c 10131if { (eval echo configure:10132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10132 rm -rf conftest*
10133 eval "ac_cv_lib_$ac_lib_var=yes"
10134else
10135 echo "configure: failed program was:" >&5
10136 cat conftest.$ac_ext >&5
10137 rm -rf conftest*
10138 eval "ac_cv_lib_$ac_lib_var=no"
10139fi
10140rm -f conftest*
10141LIBS="$ac_save_LIBS"
10142
10143fi
10144if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10145 echo "$ac_t""yes" 1>&6
ab9b9eab 10146 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
10147else
10148 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10149fi
10150
10151 fi
10152
10153 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 10154 echo $ac_n "checking for shmat""... $ac_c" 1>&6
29fd3c0c 10155echo "configure:10156: checking for shmat" >&5
698dcdb6
VZ
10156if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
10157 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10158else
698dcdb6 10159 cat > conftest.$ac_ext <<EOF
29fd3c0c 10160#line 10161 "configure"
ab9b9eab
VZ
10161#include "confdefs.h"
10162/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10163 which can conflict with char shmat(); below. */
ab9b9eab
VZ
10164#include <assert.h>
10165/* Override any gcc2 internal prototype to avoid an error. */
10166/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10167 builtin and then its argument prototype would still apply. */
10168char shmat();
10169
10170int main() {
ab9b9eab
VZ
10171
10172/* The GNU C library defines this for functions which it implements
10173 to always fail with ENOSYS. Some functions are actually named
10174 something starting with __ and the normal name is an alias. */
10175#if defined (__stub_shmat) || defined (__stub___shmat)
10176choke me
10177#else
698dcdb6 10178shmat();
ab9b9eab
VZ
10179#endif
10180
698dcdb6
VZ
10181; return 0; }
10182EOF
29fd3c0c 10183if { (eval echo configure:10184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10184 rm -rf conftest*
10185 eval "ac_cv_func_shmat=yes"
10186else
10187 echo "configure: failed program was:" >&5
10188 cat conftest.$ac_ext >&5
10189 rm -rf conftest*
10190 eval "ac_cv_func_shmat=no"
10191fi
10192rm -f conftest*
10193fi
10194
10195if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
10196 echo "$ac_t""yes" 1>&6
10197 :
10198else
10199 echo "$ac_t""no" 1>&6
10200fi
ab9b9eab
VZ
10201
10202 if test $ac_cv_func_shmat = no; then
698dcdb6 10203 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
29fd3c0c 10204echo "configure:10205: checking for shmat in -lipc" >&5
698dcdb6
VZ
10205ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
10206if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10207 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10208else
698dcdb6 10209 ac_save_LIBS="$LIBS"
ab9b9eab 10210LIBS="-lipc $LIBS"
698dcdb6 10211cat > conftest.$ac_ext <<EOF
29fd3c0c 10212#line 10213 "configure"
ab9b9eab
VZ
10213#include "confdefs.h"
10214/* Override any gcc2 internal prototype to avoid an error. */
10215/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10216 builtin and then its argument prototype would still apply. */
10217char shmat();
10218
10219int main() {
10220shmat()
10221; return 0; }
10222EOF
29fd3c0c 10223if { (eval echo configure:10224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10224 rm -rf conftest*
10225 eval "ac_cv_lib_$ac_lib_var=yes"
10226else
10227 echo "configure: failed program was:" >&5
10228 cat conftest.$ac_ext >&5
10229 rm -rf conftest*
10230 eval "ac_cv_lib_$ac_lib_var=no"
10231fi
10232rm -f conftest*
10233LIBS="$ac_save_LIBS"
10234
10235fi
10236if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10237 echo "$ac_t""yes" 1>&6
ab9b9eab 10238 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
10239else
10240 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10241fi
10242
10243 fi
10244 fi
10245
10246 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 10247 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
10248 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10249 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10250 # check for ICE first), but we must link in the order -lSM -lICE or
10251 # we get undefined symbols. So assume we have SM if we have ICE.
10252 # These have to be linked with before -lX11, unlike the other
10253 # libraries we check for below, so use a different variable.
698dcdb6
VZ
10254 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10255 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
29fd3c0c 10256echo "configure:10257: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
10257ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10258if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10259 echo $ac_n "(cached) $ac_c" 1>&6
10260else
10261 ac_save_LIBS="$LIBS"
ab9b9eab 10262LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 10263cat > conftest.$ac_ext <<EOF
29fd3c0c 10264#line 10265 "configure"
ab9b9eab
VZ
10265#include "confdefs.h"
10266/* Override any gcc2 internal prototype to avoid an error. */
10267/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10268 builtin and then its argument prototype would still apply. */
10269char IceConnectionNumber();
10270
10271int main() {
10272IceConnectionNumber()
10273; return 0; }
10274EOF
29fd3c0c 10275if { (eval echo configure:10276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10276 rm -rf conftest*
10277 eval "ac_cv_lib_$ac_lib_var=yes"
10278else
10279 echo "configure: failed program was:" >&5
10280 cat conftest.$ac_ext >&5
10281 rm -rf conftest*
10282 eval "ac_cv_lib_$ac_lib_var=no"
10283fi
10284rm -f conftest*
10285LIBS="$ac_save_LIBS"
10286
10287fi
10288if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10289 echo "$ac_t""yes" 1>&6
ab9b9eab 10290 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
10291else
10292 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10293fi
10294
698dcdb6 10295 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
10296
10297fi
10298
1e6feb95
VZ
10299 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10300 LDFLAGS="$LDFLAGS $X_LIBS"
ab9b9eab 10301
1e6feb95
VZ
10302 if test "$wxUSE_MOTIF" = 1; then
10303 if test "$no_x" = "yes"; then
10304 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10305 fi
ab9b9eab 10306
1e6feb95
VZ
10307 GUI_TK_LIBRARY="$X_LIBS"
10308 TOOLKIT_INCLUDE="$X_CFLAGS"
ab9b9eab 10309
1e6feb95 10310 AFMINSTALL=afminstall
dad6c0ea 10311
1e6feb95
VZ
10312
10313 COMPILED_X_PROGRAM=0
cd6d6d5b 10314
1e6feb95 10315 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
29fd3c0c 10316echo "configure:10317: checking for Motif/Lesstif headers" >&5
1e6feb95 10317
ab9b9eab
VZ
10318ac_find_includes=
10319for ac_dir in $SEARCH_INCLUDE;
10320 do
10321 if test -f "$ac_dir/Xm/Xm.h"; then
10322 ac_find_includes=$ac_dir
10323 break
10324 fi
10325 done
10326
1e6feb95
VZ
10327 if test "$ac_find_includes" != "" ; then
10328 echo "$ac_t""found $ac_find_includes" 1>&6
10329 else
10330 cat > conftest.$ac_ext <<EOF
29fd3c0c 10331#line 10332 "configure"
cd6d6d5b
VZ
10332#include "confdefs.h"
10333
1e6feb95
VZ
10334 #include <Xm/Xm.h>
10335
698dcdb6 10336int main() {
cd6d6d5b 10337
1e6feb95 10338 int version;
cd6d6d5b 10339
1e6feb95
VZ
10340 version = xmUseVersion;
10341
698dcdb6
VZ
10342; return 0; }
10343EOF
29fd3c0c 10344if { (eval echo configure:10345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10345 rm -rf conftest*
10346
1e6feb95
VZ
10347 echo "$ac_t""found in default search path" 1>&6
10348 COMPILED_X_PROGRAM=1
10349
cd6d6d5b 10350else
698dcdb6
VZ
10351 echo "configure: failed program was:" >&5
10352 cat conftest.$ac_ext >&5
10353 rm -rf conftest*
10354
1e6feb95
VZ
10355 echo "$ac_t""no" 1>&6
10356 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10357
698dcdb6 10358
cd6d6d5b 10359fi
698dcdb6 10360rm -f conftest*
1e6feb95 10361 fi
ab9b9eab 10362
1e6feb95
VZ
10363 if test "$COMPILED_X_PROGRAM" = 0; then
10364 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
29fd3c0c 10365echo "configure:10366: checking for Motif/Lesstif library" >&5
1e6feb95 10366
ab9b9eab
VZ
10367ac_find_libraries=
10368for ac_dir in $SEARCH_LIB;
10369 do
10370 for ac_extension in a so sl; do
10371 if test -f "$ac_dir/libXm.$ac_extension"; then
10372 ac_find_libraries=$ac_dir
10373 break 2
10374 fi
10375 done
10376 done
10377
1e6feb95
VZ
10378 if test "$ac_find_libraries" != "" ; then
10379
ab9b9eab
VZ
10380 ac_path_to_include=$ac_find_includes
10381 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10382 result=$?
10383 if test $result = 0; then
10384 ac_path_to_include=""
10385 else
10386 ac_path_to_include="-I$ac_find_includes"
10387 fi
10388
1e6feb95 10389
ab9b9eab
VZ
10390 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10391 result=$?
10392 if test $result = 0; then
10393 ac_path_to_link=""
10394 else
10395 ac_path_to_link="-L$ac_find_libraries"
10396 fi
10397
698dcdb6 10398
1e6feb95
VZ
10399 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10400 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10401 echo "$ac_t""found at $ac_find_libraries" 1>&6
10402 else
10403 cat > conftest.$ac_ext <<EOF
29fd3c0c 10404#line 10405 "configure"
cd6d6d5b 10405#include "confdefs.h"
ab9b9eab 10406
1e6feb95
VZ
10407 #include <Xm/Xm.h>
10408
698dcdb6 10409int main() {
ab9b9eab 10410
1e6feb95 10411 int version;
ab9b9eab 10412
1e6feb95
VZ
10413 version = xmUseVersion;
10414
698dcdb6
VZ
10415; return 0; }
10416EOF
29fd3c0c 10417if { (eval echo configure:10418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10418 rm -rf conftest*
10419
1e6feb95
VZ
10420 echo "$ac_t""found in default search path" 1>&6
10421 COMPILED_X_PROGRAM=1
10422
cd6d6d5b 10423else
698dcdb6
VZ
10424 echo "configure: failed program was:" >&5
10425 cat conftest.$ac_ext >&5
10426 rm -rf conftest*
10427
1e6feb95
VZ
10428 echo "$ac_t""no" 1>&6
10429 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10430
698dcdb6 10431
cd6d6d5b 10432fi
698dcdb6 10433rm -f conftest*
1e6feb95 10434 fi
cd6d6d5b 10435 fi
ab9b9eab 10436
1e6feb95
VZ
10437
10438 XPM_LINK=""
10439 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
29fd3c0c 10440echo "configure:10441: checking for Xpm library" >&5
1e6feb95 10441
ab9b9eab
VZ
10442ac_find_libraries=
10443for ac_dir in $SEARCH_LIB;
10444 do
10445 for ac_extension in a so sl; do
10446 if test -f "$ac_dir/libXpm.$ac_extension"; then
10447 ac_find_libraries=$ac_dir
10448 break 2
10449 fi
10450 done
10451 done
10452
1e6feb95
VZ
10453 if test "$ac_find_libraries" != "" ; then
10454
ab9b9eab
VZ
10455 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10456 result=$?
10457 if test $result = 0; then
10458 ac_path_to_link=""
10459 else
10460 ac_path_to_link="-L$ac_find_libraries"
10461 fi
10462
1e6feb95
VZ
10463 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10464 XPM_LINK="-lXpm "
10465 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
10466#define wxHAVE_LIB_XPM 1
10467EOF
10468
1e6feb95
VZ
10469 echo "$ac_t""found at $ac_find_libraries" 1>&6
10470 else
10471 cat > conftest.$ac_ext <<EOF
29fd3c0c 10472#line 10473 "configure"
cd6d6d5b
VZ
10473#include "confdefs.h"
10474
1e6feb95
VZ
10475 #include <X11/xpm.h>
10476
698dcdb6 10477int main() {
cd6d6d5b 10478
1e6feb95 10479 int version;
cd6d6d5b 10480
1e6feb95
VZ
10481 version = XpmLibraryVersion();
10482
698dcdb6
VZ
10483; return 0; }
10484EOF
29fd3c0c 10485if { (eval echo configure:10486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10486 rm -rf conftest*
10487
1e6feb95
VZ
10488 XPM_LINK="-lXpm "
10489 cat >> confdefs.h <<\EOF
3ace2e6d
SN
10490#define wxHAVE_LIB_XPM 1
10491EOF
10492
1e6feb95
VZ
10493 echo "$ac_t""found in default search path" 1>&6
10494 COMPILED_X_PROGRAM=0
10495
cd6d6d5b 10496else
698dcdb6
VZ
10497 echo "configure: failed program was:" >&5
10498 cat conftest.$ac_ext >&5
10499 rm -rf conftest*
10500
1e6feb95
VZ
10501 echo "$ac_t""no" 1>&6
10502 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10503
698dcdb6 10504
cd6d6d5b 10505fi
698dcdb6 10506rm -f conftest*
1e6feb95
VZ
10507 fi
10508
10509 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
10510 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
10511 TOOLKIT=MOTIF
10512 GUIDIST=MOTIF_DIST
ab9b9eab
VZ
10513 fi
10514
1e6feb95
VZ
10515 if test "$wxUSE_MAC" = 1; then
10516 TOOLKIT=MAC
10517 GUIDIST=MACX_DIST
10518 fi
10f2d63a 10519
1e6feb95
VZ
10520 if test "$wxUSE_PM" = 1; then
10521 TOOLKIT=PM
10522 GUIDIST=GTK_DIST
10523 fi
b4085ce6 10524
1e6feb95
VZ
10525 if test "$TOOLKIT" != "PM" ; then
10526 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10527 else
10528 TOOLKIT_DIR="os2"
10529 fi
e07802fc 10530
1e6feb95 10531 TOOLKIT_NAME="${TOOLKIT_DIR}"
10f2d63a 10532
1e6feb95
VZ
10533 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10534
10535 if test "$TOOLKIT_NAME" = "motif"; then
10536 TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10537 fi
10538
10539 if test "$wxUSE_UNIVERSAL" = "yes"; then
10540 TOOLKIT_NAME="${TOOLKIT_NAME}univ"
10541 UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
10542 TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}"
10543 SETUPH_DIR="univ"
f6bcfd97 10544 else
1e6feb95
VZ
10545 SETUPH_DIR="${TOOLKIT_DIR}"
10546 fi
10547
10548 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10549 TOOLKIT_NAME="${TOOLKIT_NAME}d"
f6bcfd97
BP
10550 fi
10551
2224580a 10552 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
1e6feb95
VZ
10553 if test "$wxUSE_UNIVERSAL" = "yes"; then
10554 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__"
10555 fi
10f2d63a 10556
f6bcfd97 10557 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10f2d63a 10558
1e6feb95
VZ
10559 if test "$wxUSE_UNIVERSAL" = "yes"; then
10560 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10561 else
10562 ALL_OBJECTS="\$(GUIOBJS)"
10563 fi
10564
10565 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10566
10567 if test "$TOOLKIT" != "MSW"; then
10568 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10569 fi
10570
10571 if test "$wxUSE_HTML" = "yes"; then
10572 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10573 fi
3fcdd07b 10574
1e6feb95
VZ
10575 if test "$TOOLKIT" != "MSW"; then
10576 if test "$wxUSE_ODBC" = "yes" ; then
10577 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10578 fi
3fcdd07b
VZ
10579 fi
10580
d9d8273d 10581 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 10582 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
10583 fi
10584 if test "$wxUSE_LIBTIFF" = "yes" ; then
10585 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10586 fi
10587 if test "$wxUSE_LIBPNG" = "yes" ; then
10588 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10589 fi
10590 if test "$wxUSE_ZLIB" = "yes" ; then
10591 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10592 fi
3fed1840
RR
10593 if test "$wxUSE_FREETYPE" = "yes" ; then
10594 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10595 fi
2224580a 10596
1e6feb95
VZ
10597 if test "$wxUSE_UNIVERSAL" = "yes"; then
10598 ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)"
10599 else
10600 ALL_DEPFILES="\$(GUIDEPS)"
10601 fi
10602
10603 ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)"
10604
10605 if test "$TOOLKIT" != "MSW"; then
10606 ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)"
10607 fi
10608
10609 if test "$wxUSE_HTML" = "yes"; then
10610 ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)"
10611 fi
10612
879df073 10613 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
1e6feb95 10614 if test "$wxUSE_UNIVERSAL" = "yes"; then
879df073 10615 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
1e6feb95 10616 fi
2224580a
VZ
10617 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10618 RPM_SPEC="wx\$(TOOLKIT).spec"
10619
10620 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10621 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 10622else
dad6c0ea
VZ
10623 USE_GUI=0
10624
f6bcfd97
BP
10625 TOOLKIT_DIR="base"
10626
10627 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10628 TOOLKIT_NAME="${TOOLKIT_DIR}d"
10629 else
10630 TOOLKIT_NAME="${TOOLKIT_DIR}"
10631 fi
10632
07eb77a6
RL
10633 TOOLKIT_DEF="-D__WXBASE__"
10634
b4085ce6
GD
10635 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
10636 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10f2d63a 10637
a20b6d3a
VZ
10638 if test "$wxUSE_ZLIB" = "yes" ; then
10639 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10640 fi
10641
f6bcfd97 10642 WX_LIBRARY="wx_${TOOLKIT_NAME}"
2224580a
VZ
10643
10644 PORT_FILES="src/files.lst"
10645 RPM_FILES="src/rpmfiles.lst"
10646 RPM_SPEC="wxBase.spec"
10647
10648 GUIDIST="BASE_DIST"
10649 DISTDIR="wxBase"
10f2d63a
VZ
10650fi
10651
10652WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
bdad4e7e 10653WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10f2d63a
VZ
10654
10655WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
bdad4e7e 10656WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10f2d63a
VZ
10657
10658WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
bdad4e7e 10659WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10f2d63a
VZ
10660
10661WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
10662WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
10663WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
bdad4e7e
RR
10664WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
10665WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
10666WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10f2d63a
VZ
10667
10668SHARED_LD=
10669PIC_FLAG=
10670WX_ALL=
10671WX_ALL_INSTALLED=
1d62a8b4 10672BURNT_LIBRARY_NAME=
f6bcfd97 10673WX_TARGET_LIBRARY_SONAME=
10f2d63a 10674
698dcdb6 10675
10f2d63a
VZ
10676if test "$wxUSE_SHARED" = "yes"; then
10677 case "${host}" in
10678 *-hp-hpux* )
10679 if test "$GCC" = yes ; then
69ffe1d2 10680 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
10681 PIC_FLAG="-fPIC"
10682 else
f6bcfd97
BP
10683 LDFLAGS="-L/usr/lib"
10684
10f2d63a
VZ
10685 SHARED_LD="${CXX} -b -o"
10686 PIC_FLAG="+Z"
10687 fi
f6bcfd97
BP
10688 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
10689 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
c661ecca 10690 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 10691 WX_ALL_INSTALLED="preinstall_gl"
c661ecca
RR
10692 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
10693 else
10694 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
10695 fi
10f2d63a 10696 ;;
b12915c1
VZ
10697
10698 *-*-linux* )
10f2d63a
VZ
10699 SHARED_LD="${CC} -shared -o"
10700 PIC_FLAG="-fPIC"
00cf1208 10701 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 10702 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
bdad4e7e 10703 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 10704 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 10705 fi
c661ecca
RR
10706 if test "$wxUSE_OPENGL" = "yes"; then
10707 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10708 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10709 else
10710 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10711 WX_ALL="CREATE_LINKS"
422107f9 10712 fi
00cf1208 10713 ;;
10f2d63a
VZ
10714 *-*-irix5* | *-*-irix6* )
10715 if test "$GCC" = yes ; then
10716 SHARED_LD="${CC} -shared -o"
10717 PIC_FLAG="-fPIC"
10718 else
10719 SHARED_LD="${CXX} -shared -o"
10720 fi
c661ecca
RR
10721 if test "$wxUSE_OPENGL" = "yes"; then
10722 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10723 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10724 else
10725 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10726 WX_ALL="CREATE_LINKS"
422107f9 10727 fi
10f2d63a
VZ
10728 ;;
10729 *-*-solaris2* )
10730 if test "$GCC" = yes ; then
10731 SHARED_LD="${CC} -shared -o"
10732 PIC_FLAG="-fPIC"
f6bcfd97
BP
10733
10734 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
10735 else
10736 SHARED_LD="${CXX} -G -o"
10737 PIC_FLAG="-KPIC"
10738 fi
c661ecca
RR
10739 if test "$wxUSE_OPENGL" = "yes"; then
10740 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10741 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10742 else
10743 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10744 WX_ALL="CREATE_LINKS"
10745 fi
10f2d63a
VZ
10746 ;;
10747 *-*-sunos4* )
10748 SHARED_LD="${CC} -shared -o"
10749 PIC_FLAG="-fPIC"
10750 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10751 WX_ALL="CREATE_LINKS"
10752 ;;
95c8801c 10753 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
10f2d63a
VZ
10754 SHARED_LD="${CC} -shared -o"
10755 PIC_FLAG="-fPIC"
37d403aa
JS
10756 if test "$wxUSE_OPENGL" = "yes"; then
10757 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10758 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10759 else
10760 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10761 WX_ALL="CREATE_LINKS"
10762 fi
10f2d63a 10763 ;;
b4085ce6 10764 *-*-darwin* )
ea5999b9
GD
10765 SHARED_LD="${CXX} -dynamiclib -o"
10766 PIC_FLAG="-dynamic -fPIC"
b4085ce6
GD
10767 if test "$wxUSE_OPENGL" = "yes"; then
10768 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10769 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10770 else
10771 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10772 WX_ALL="CREATE_LINKS"
10773 fi
1e6feb95
VZ
10774 WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
10775 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10776 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10777 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
10778 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
10779 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
10780 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
10781 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
10782 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
b4085ce6 10783 ;;
10f2d63a
VZ
10784 *-*-osf* )
10785 SHARED_LD="${CXX} -shared -o"
10786 PIC_FLAG="-fPIC"
10787 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10788 WX_ALL="CREATE_LINKS"
10789 ;;
10790 *-*-dgux5* )
10791 SHARED_LD="${CXX} -shared -o"
10792 PIC_FLAG="-fPIC"
10793 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10794 WX_ALL="CREATE_LINKS"
10795 ;;
10796 *-*-sysv5* )
10797 SHARED_LD="${CC} -shared -o"
10798 PIC_FLAG="-fPIC"
10799 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10800 WX_ALL="CREATE_LINKS"
10801 ;;
10802 *-*-aix* )
10803 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10804 WX_ALL=${WX_LIBRARY_NAME_SHARED}
10805 ;;
1c8183e2 10806 *-*-cygwin* )
10f2d63a 10807 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 10808 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
10809 if test "$wxUSE_OPENGL" = "yes"; then
10810 WX_ALL_INSTALLED="preinstall_gl"
10811 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10812 else
10813 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10814 fi
10f2d63a 10815 ;;
b12915c1 10816 *-*-mingw32* )
10f2d63a 10817 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 10818 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
10819 if test "$wxUSE_OPENGL" = "yes"; then
10820 WX_ALL_INSTALLED="preinstall_gl"
10821 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10822 else
10823 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10824 fi
10f2d63a
VZ
10825 ;;
10826 *-pc-os2_emx )
e07802fc
VZ
10827 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10828 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 10829 ;;
b12915c1 10830 *-*-beos* )
e2b8b066 10831 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
10832 PIC_FLAG="-fPIC"
10833 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10834 WX_ALL="CREATE_LINKS"
10835 ;;
10f2d63a 10836 *)
698dcdb6 10837 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
10838 esac
10839
10840 if test "x$WX_TARGET_LIBRARY" = "x"; then
10841 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 10842 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 10843 fi
3711412e 10844 WX_TARGET_LIBRARY_TYPE="so"
10f2d63a
VZ
10845else
10846 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 10847 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
10848
10849 if test "$wxUSE_OPENGL" = "yes"; then
10850 WX_ALL_INSTALLED="preinstall_gl"
10851 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10852 else
10853 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10854 fi
10855
10856 if test "$wxUSE_GUI" = "no"; then
10857 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
10858 fi
10859
3711412e 10860 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a
VZ
10861fi
10862
698dcdb6
VZ
10863
10864for ac_hdr in strings.h
10f2d63a 10865do
698dcdb6
VZ
10866ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10867echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
29fd3c0c 10868echo "configure:10869: checking for $ac_hdr" >&5
698dcdb6
VZ
10869if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10870 echo $ac_n "(cached) $ac_c" 1>&6
10871else
10872 cat > conftest.$ac_ext <<EOF
29fd3c0c 10873#line 10874 "configure"
10f2d63a 10874#include "confdefs.h"
698dcdb6
VZ
10875#include <$ac_hdr>
10876EOF
10877ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29fd3c0c 10878{ (eval echo configure:10879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10879ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10880if test -z "$ac_err"; then
10881 rm -rf conftest*
10882 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 10883else
698dcdb6
VZ
10884 echo "$ac_err" >&5
10885 echo "configure: failed program was:" >&5
10f2d63a 10886 cat conftest.$ac_ext >&5
698dcdb6
VZ
10887 rm -rf conftest*
10888 eval "ac_cv_header_$ac_safe=no"
10f2d63a 10889fi
698dcdb6 10890rm -f conftest*
10f2d63a 10891fi
698dcdb6
VZ
10892if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10893 echo "$ac_t""yes" 1>&6
10894 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10895 cat >> confdefs.h <<EOF
10896#define $ac_tr_hdr 1
10f2d63a 10897EOF
698dcdb6
VZ
10898
10899else
10900 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10901fi
10902done
10903
698dcdb6 10904for ac_hdr in stdlib.h
9cfadba2 10905do
698dcdb6
VZ
10906ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10907echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
29fd3c0c 10908echo "configure:10909: checking for $ac_hdr" >&5
698dcdb6
VZ
10909if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10910 echo $ac_n "(cached) $ac_c" 1>&6
10911else
10912 cat > conftest.$ac_ext <<EOF
29fd3c0c 10913#line 10914 "configure"
9cfadba2 10914#include "confdefs.h"
698dcdb6
VZ
10915#include <$ac_hdr>
10916EOF
10917ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29fd3c0c 10918{ (eval echo configure:10919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10919ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10920if test -z "$ac_err"; then
10921 rm -rf conftest*
10922 eval "ac_cv_header_$ac_safe=yes"
6232543b 10923else
698dcdb6
VZ
10924 echo "$ac_err" >&5
10925 echo "configure: failed program was:" >&5
9cfadba2 10926 cat conftest.$ac_ext >&5
698dcdb6
VZ
10927 rm -rf conftest*
10928 eval "ac_cv_header_$ac_safe=no"
9cfadba2 10929fi
698dcdb6 10930rm -f conftest*
9cfadba2 10931fi
698dcdb6
VZ
10932if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10933 echo "$ac_t""yes" 1>&6
10934 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10935 cat >> confdefs.h <<EOF
10936#define $ac_tr_hdr 1
9cfadba2 10937EOF
698dcdb6
VZ
10938
10939else
10940 echo "$ac_t""no" 1>&6
9cfadba2
VZ
10941fi
10942done
10f2d63a 10943
698dcdb6 10944for ac_hdr in unistd.h
10f2d63a 10945do
698dcdb6
VZ
10946ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10947echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
29fd3c0c 10948echo "configure:10949: checking for $ac_hdr" >&5
698dcdb6
VZ
10949if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10950 echo $ac_n "(cached) $ac_c" 1>&6
10951else
10952 cat > conftest.$ac_ext <<EOF
29fd3c0c 10953#line 10954 "configure"
10f2d63a 10954#include "confdefs.h"
698dcdb6
VZ
10955#include <$ac_hdr>
10956EOF
10957ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29fd3c0c 10958{ (eval echo configure:10959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10959ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10960if test -z "$ac_err"; then
10961 rm -rf conftest*
10962 eval "ac_cv_header_$ac_safe=yes"
6232543b 10963else
698dcdb6
VZ
10964 echo "$ac_err" >&5
10965 echo "configure: failed program was:" >&5
10f2d63a 10966 cat conftest.$ac_ext >&5
698dcdb6
VZ
10967 rm -rf conftest*
10968 eval "ac_cv_header_$ac_safe=no"
10f2d63a 10969fi
698dcdb6 10970rm -f conftest*
10f2d63a 10971fi
698dcdb6
VZ
10972if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10973 echo "$ac_t""yes" 1>&6
10974 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10975 cat >> confdefs.h <<EOF
10976#define $ac_tr_hdr 1
10f2d63a 10977EOF
698dcdb6
VZ
10978
10979else
10980 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10981fi
10982done
10983
698dcdb6 10984for ac_hdr in wchar.h
10f2d63a 10985do
698dcdb6
VZ
10986ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10987echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
29fd3c0c 10988echo "configure:10989: checking for $ac_hdr" >&5
698dcdb6
VZ
10989if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10990 echo $ac_n "(cached) $ac_c" 1>&6
10991else
10992 cat > conftest.$ac_ext <<EOF
29fd3c0c 10993#line 10994 "configure"
10f2d63a 10994#include "confdefs.h"
698dcdb6
VZ
10995#include <$ac_hdr>
10996EOF
10997ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29fd3c0c 10998{ (eval echo configure:10999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10999ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11000if test -z "$ac_err"; then
11001 rm -rf conftest*
11002 eval "ac_cv_header_$ac_safe=yes"
6f72b082 11003else
698dcdb6
VZ
11004 echo "$ac_err" >&5
11005 echo "configure: failed program was:" >&5
6f72b082 11006 cat conftest.$ac_ext >&5
698dcdb6
VZ
11007 rm -rf conftest*
11008 eval "ac_cv_header_$ac_safe=no"
6f72b082 11009fi
698dcdb6 11010rm -f conftest*
6f72b082 11011fi
698dcdb6
VZ
11012if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11013 echo "$ac_t""yes" 1>&6
11014 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11015 cat >> confdefs.h <<EOF
11016#define $ac_tr_hdr 1
6f72b082 11017EOF
698dcdb6
VZ
11018
11019else
11020 echo "$ac_t""no" 1>&6
6f72b082
OK
11021fi
11022done
11023
698dcdb6 11024for ac_hdr in wcstr.h
6f72b082 11025do
698dcdb6
VZ
11026ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11027echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
29fd3c0c 11028echo "configure:11029: checking for $ac_hdr" >&5
698dcdb6
VZ
11029if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11030 echo $ac_n "(cached) $ac_c" 1>&6
11031else
11032 cat > conftest.$ac_ext <<EOF
29fd3c0c 11033#line 11034 "configure"
6f72b082 11034#include "confdefs.h"
698dcdb6
VZ
11035#include <$ac_hdr>
11036EOF
11037ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29fd3c0c 11038{ (eval echo configure:11039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11039ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11040if test -z "$ac_err"; then
11041 rm -rf conftest*
11042 eval "ac_cv_header_$ac_safe=yes"
6f72b082 11043else
698dcdb6
VZ
11044 echo "$ac_err" >&5
11045 echo "configure: failed program was:" >&5
6f72b082 11046 cat conftest.$ac_ext >&5
698dcdb6
VZ
11047 rm -rf conftest*
11048 eval "ac_cv_header_$ac_safe=no"
6f72b082 11049fi
698dcdb6 11050rm -f conftest*
6f72b082 11051fi
698dcdb6
VZ
11052if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11053 echo "$ac_t""yes" 1>&6
11054 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11055 cat >> confdefs.h <<EOF
11056#define $ac_tr_hdr 1
6f72b082 11057EOF
698dcdb6
VZ
11058
11059else
11060 echo "$ac_t""no" 1>&6
6f72b082
OK
11061fi
11062done
11063
698dcdb6 11064for ac_hdr in fnmatch.h
6f72b082 11065do
698dcdb6
VZ
11066ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11067echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
29fd3c0c 11068echo "configure:11069: checking for $ac_hdr" >&5
698dcdb6
VZ
11069if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11070 echo $ac_n "(cached) $ac_c" 1>&6
11071else
11072 cat > conftest.$ac_ext <<EOF
29fd3c0c 11073#line 11074 "configure"
6f72b082 11074#include "confdefs.h"
698dcdb6
VZ
11075#include <$ac_hdr>
11076EOF
11077ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29fd3c0c 11078{ (eval echo configure:11079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11079ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11080if test -z "$ac_err"; then
11081 rm -rf conftest*
11082 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11083else
698dcdb6
VZ
11084 echo "$ac_err" >&5
11085 echo "configure: failed program was:" >&5
10f2d63a 11086 cat conftest.$ac_ext >&5
698dcdb6
VZ
11087 rm -rf conftest*
11088 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11089fi
698dcdb6 11090rm -f conftest*
10f2d63a 11091fi
698dcdb6
VZ
11092if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11093 echo "$ac_t""yes" 1>&6
11094 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11095 cat >> confdefs.h <<EOF
11096#define $ac_tr_hdr 1
10f2d63a 11097EOF
698dcdb6
VZ
11098
11099else
11100 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11101fi
11102done
11103
698dcdb6 11104for ac_hdr in iconv.h
0fb0dd83 11105do
698dcdb6
VZ
11106ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11107echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
29fd3c0c 11108echo "configure:11109: checking for $ac_hdr" >&5
698dcdb6
VZ
11109if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11110 echo $ac_n "(cached) $ac_c" 1>&6
11111else
11112 cat > conftest.$ac_ext <<EOF
29fd3c0c 11113#line 11114 "configure"
0fb0dd83 11114#include "confdefs.h"
698dcdb6
VZ
11115#include <$ac_hdr>
11116EOF
11117ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29fd3c0c 11118{ (eval echo configure:11119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11119ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11120if test -z "$ac_err"; then
11121 rm -rf conftest*
11122 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 11123else
698dcdb6
VZ
11124 echo "$ac_err" >&5
11125 echo "configure: failed program was:" >&5
0fb0dd83 11126 cat conftest.$ac_ext >&5
698dcdb6
VZ
11127 rm -rf conftest*
11128 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 11129fi
698dcdb6 11130rm -f conftest*
0fb0dd83 11131fi
698dcdb6
VZ
11132if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11133 echo "$ac_t""yes" 1>&6
11134 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11135 cat >> confdefs.h <<EOF
11136#define $ac_tr_hdr 1
0fb0dd83 11137EOF
698dcdb6
VZ
11138
11139else
11140 echo "$ac_t""no" 1>&6
0fb0dd83
RR
11141fi
11142done
11143
698dcdb6 11144for ac_hdr in langinfo.h
1f8ae82f 11145do
698dcdb6
VZ
11146ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11147echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
29fd3c0c 11148echo "configure:11149: checking for $ac_hdr" >&5
698dcdb6
VZ
11149if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11150 echo $ac_n "(cached) $ac_c" 1>&6
11151else
11152 cat > conftest.$ac_ext <<EOF
29fd3c0c 11153#line 11154 "configure"
1f8ae82f 11154#include "confdefs.h"
698dcdb6
VZ
11155#include <$ac_hdr>
11156EOF
11157ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29fd3c0c 11158{ (eval echo configure:11159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11159ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11160if test -z "$ac_err"; then
11161 rm -rf conftest*
11162 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 11163else
698dcdb6
VZ
11164 echo "$ac_err" >&5
11165 echo "configure: failed program was:" >&5
1f8ae82f 11166 cat conftest.$ac_ext >&5
698dcdb6
VZ
11167 rm -rf conftest*
11168 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 11169fi
698dcdb6 11170rm -f conftest*
1f8ae82f 11171fi
698dcdb6
VZ
11172if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11173 echo "$ac_t""yes" 1>&6
11174 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11175 cat >> confdefs.h <<EOF
11176#define $ac_tr_hdr 1
1f8ae82f 11177EOF
698dcdb6
VZ
11178
11179else
11180 echo "$ac_t""no" 1>&6
1f8ae82f
GD
11181fi
11182done
11183
698dcdb6 11184
73fd4a60
VZ
11185if test "$wxUSE_GUI" = "yes"; then
11186 if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 11187 for ac_hdr in X11/XKBlib.h
10f2d63a 11188do
698dcdb6
VZ
11189ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11190echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
29fd3c0c 11191echo "configure:11192: checking for $ac_hdr" >&5
698dcdb6
VZ
11192if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11193 echo $ac_n "(cached) $ac_c" 1>&6
11194else
11195 cat > conftest.$ac_ext <<EOF
29fd3c0c 11196#line 11197 "configure"
10f2d63a 11197#include "confdefs.h"
698dcdb6
VZ
11198#include <$ac_hdr>
11199EOF
11200ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29fd3c0c 11201{ (eval echo configure:11202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11202ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11203if test -z "$ac_err"; then
11204 rm -rf conftest*
11205 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11206else
698dcdb6
VZ
11207 echo "$ac_err" >&5
11208 echo "configure: failed program was:" >&5
10f2d63a 11209 cat conftest.$ac_ext >&5
698dcdb6
VZ
11210 rm -rf conftest*
11211 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11212fi
698dcdb6 11213rm -f conftest*
10f2d63a 11214fi
698dcdb6
VZ
11215if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11216 echo "$ac_t""yes" 1>&6
11217 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11218 cat >> confdefs.h <<EOF
11219#define $ac_tr_hdr 1
10f2d63a 11220EOF
698dcdb6
VZ
11221
11222else
11223 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11224fi
11225done
11226
73fd4a60 11227 fi
10f2d63a
VZ
11228fi
11229
29fd3c0c
VS
11230if test "$wxUSE_MS_HTML_HELP" = "yes"; then
11231 for ac_hdr in w32api.h
11232do
11233ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11234echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11235echo "configure:11236: checking for $ac_hdr" >&5
11236if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11237 echo $ac_n "(cached) $ac_c" 1>&6
11238else
11239 cat > conftest.$ac_ext <<EOF
11240#line 11241 "configure"
11241#include "confdefs.h"
11242#include <$ac_hdr>
11243EOF
11244ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11245{ (eval echo configure:11246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11246ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11247if test -z "$ac_err"; then
11248 rm -rf conftest*
11249 eval "ac_cv_header_$ac_safe=yes"
11250else
11251 echo "$ac_err" >&5
11252 echo "configure: failed program was:" >&5
11253 cat conftest.$ac_ext >&5
11254 rm -rf conftest*
11255 eval "ac_cv_header_$ac_safe=no"
11256fi
11257rm -f conftest*
11258fi
11259if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11260 echo "$ac_t""yes" 1>&6
11261 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11262 cat >> confdefs.h <<EOF
11263#define $ac_tr_hdr 1
11264EOF
11265
11266else
11267 echo "$ac_t""no" 1>&6
11268fi
11269done
11270
11271fi
11272
698dcdb6
VZ
11273
11274echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
29fd3c0c 11275echo "configure:11276: checking for ANSI C header files" >&5
698dcdb6
VZ
11276if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11277 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11278else
698dcdb6 11279 cat > conftest.$ac_ext <<EOF
29fd3c0c 11280#line 11281 "configure"
10f2d63a
VZ
11281#include "confdefs.h"
11282#include <stdlib.h>
11283#include <stdarg.h>
11284#include <string.h>
11285#include <float.h>
698dcdb6
VZ
11286EOF
11287ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29fd3c0c 11288{ (eval echo configure:11289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11289ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11290if test -z "$ac_err"; then
11291 rm -rf conftest*
10f2d63a
VZ
11292 ac_cv_header_stdc=yes
11293else
698dcdb6
VZ
11294 echo "$ac_err" >&5
11295 echo "configure: failed program was:" >&5
10f2d63a 11296 cat conftest.$ac_ext >&5
698dcdb6 11297 rm -rf conftest*
10f2d63a
VZ
11298 ac_cv_header_stdc=no
11299fi
698dcdb6 11300rm -f conftest*
10f2d63a
VZ
11301
11302if test $ac_cv_header_stdc = yes; then
11303 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 11304cat > conftest.$ac_ext <<EOF
29fd3c0c 11305#line 11306 "configure"
10f2d63a
VZ
11306#include "confdefs.h"
11307#include <string.h>
698dcdb6 11308EOF
10f2d63a
VZ
11309if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11310 egrep "memchr" >/dev/null 2>&1; then
11311 :
11312else
698dcdb6 11313 rm -rf conftest*
10f2d63a
VZ
11314 ac_cv_header_stdc=no
11315fi
11316rm -f conftest*
11317
11318fi
11319
11320if test $ac_cv_header_stdc = yes; then
11321 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 11322cat > conftest.$ac_ext <<EOF
29fd3c0c 11323#line 11324 "configure"
10f2d63a
VZ
11324#include "confdefs.h"
11325#include <stdlib.h>
698dcdb6 11326EOF
10f2d63a
VZ
11327if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11328 egrep "free" >/dev/null 2>&1; then
11329 :
11330else
698dcdb6 11331 rm -rf conftest*
10f2d63a
VZ
11332 ac_cv_header_stdc=no
11333fi
11334rm -f conftest*
11335
11336fi
11337
11338if test $ac_cv_header_stdc = yes; then
11339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 11340if test "$cross_compiling" = yes; then
10f2d63a
VZ
11341 :
11342else
698dcdb6 11343 cat > conftest.$ac_ext <<EOF
29fd3c0c 11344#line 11345 "configure"
10f2d63a
VZ
11345#include "confdefs.h"
11346#include <ctype.h>
698dcdb6
VZ
11347#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11348#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 11349#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
11350int main () { int i; for (i = 0; i < 256; i++)
11351if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11352exit (0); }
11353
11354EOF
29fd3c0c 11355if { (eval echo configure:11356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 11356then
10f2d63a
VZ
11357 :
11358else
698dcdb6
VZ
11359 echo "configure: failed program was:" >&5
11360 cat conftest.$ac_ext >&5
11361 rm -fr conftest*
11362 ac_cv_header_stdc=no
10f2d63a 11363fi
698dcdb6 11364rm -fr conftest*
10f2d63a 11365fi
698dcdb6 11366
10f2d63a
VZ
11367fi
11368fi
1e487827 11369
698dcdb6
VZ
11370echo "$ac_t""$ac_cv_header_stdc" 1>&6
11371if test $ac_cv_header_stdc = yes; then
11372 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11373#define STDC_HEADERS 1
11374EOF
11375
11376fi
11377
698dcdb6 11378echo $ac_n "checking for mode_t""... $ac_c" 1>&6
29fd3c0c 11379echo "configure:11380: checking for mode_t" >&5
698dcdb6
VZ
11380if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11381 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 11382else
698dcdb6 11383 cat > conftest.$ac_ext <<EOF
29fd3c0c 11384#line 11385 "configure"
1e487827 11385#include "confdefs.h"
698dcdb6
VZ
11386#include <sys/types.h>
11387#if STDC_HEADERS
11388#include <stdlib.h>
11389#include <stddef.h>
11390#endif
11391EOF
11392if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11393 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11394 rm -rf conftest*
10f2d63a
VZ
11395 ac_cv_type_mode_t=yes
11396else
698dcdb6
VZ
11397 rm -rf conftest*
11398 ac_cv_type_mode_t=no
703e0a69 11399fi
698dcdb6 11400rm -f conftest*
1e487827 11401
698dcdb6
VZ
11402fi
11403echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11404if test $ac_cv_type_mode_t = no; then
11405 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11406#define mode_t int
11407EOF
11408
11409fi
11410
698dcdb6 11411echo $ac_n "checking for off_t""... $ac_c" 1>&6
29fd3c0c 11412echo "configure:11413: checking for off_t" >&5
698dcdb6
VZ
11413if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11414 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11415else
698dcdb6 11416 cat > conftest.$ac_ext <<EOF
29fd3c0c 11417#line 11418 "configure"
10f2d63a 11418#include "confdefs.h"
698dcdb6
VZ
11419#include <sys/types.h>
11420#if STDC_HEADERS
11421#include <stdlib.h>
11422#include <stddef.h>
11423#endif
11424EOF
11425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11426 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11427 rm -rf conftest*
10f2d63a
VZ
11428 ac_cv_type_off_t=yes
11429else
698dcdb6
VZ
11430 rm -rf conftest*
11431 ac_cv_type_off_t=no
703e0a69 11432fi
698dcdb6 11433rm -f conftest*
1e487827 11434
698dcdb6
VZ
11435fi
11436echo "$ac_t""$ac_cv_type_off_t" 1>&6
11437if test $ac_cv_type_off_t = no; then
11438 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11439#define off_t long
11440EOF
11441
11442fi
11443
698dcdb6 11444echo $ac_n "checking for pid_t""... $ac_c" 1>&6
29fd3c0c 11445echo "configure:11446: checking for pid_t" >&5
698dcdb6
VZ
11446if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11447 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11448else
698dcdb6 11449 cat > conftest.$ac_ext <<EOF
29fd3c0c 11450#line 11451 "configure"
10f2d63a 11451#include "confdefs.h"
698dcdb6
VZ
11452#include <sys/types.h>
11453#if STDC_HEADERS
11454#include <stdlib.h>
11455#include <stddef.h>
11456#endif
11457EOF
11458if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11459 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11460 rm -rf conftest*
10f2d63a
VZ
11461 ac_cv_type_pid_t=yes
11462else
698dcdb6
VZ
11463 rm -rf conftest*
11464 ac_cv_type_pid_t=no
703e0a69 11465fi
698dcdb6 11466rm -f conftest*
1e487827 11467
698dcdb6
VZ
11468fi
11469echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11470if test $ac_cv_type_pid_t = no; then
11471 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11472#define pid_t int
11473EOF
11474
11475fi
11476
698dcdb6 11477echo $ac_n "checking for size_t""... $ac_c" 1>&6
29fd3c0c 11478echo "configure:11479: checking for size_t" >&5
698dcdb6
VZ
11479if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11480 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11481else
698dcdb6 11482 cat > conftest.$ac_ext <<EOF
29fd3c0c 11483#line 11484 "configure"
10f2d63a 11484#include "confdefs.h"
698dcdb6
VZ
11485#include <sys/types.h>
11486#if STDC_HEADERS
11487#include <stdlib.h>
11488#include <stddef.h>
11489#endif
11490EOF
11491if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11492 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11493 rm -rf conftest*
10f2d63a
VZ
11494 ac_cv_type_size_t=yes
11495else
698dcdb6
VZ
11496 rm -rf conftest*
11497 ac_cv_type_size_t=no
703e0a69 11498fi
698dcdb6 11499rm -f conftest*
1e487827 11500
698dcdb6
VZ
11501fi
11502echo "$ac_t""$ac_cv_type_size_t" 1>&6
11503if test $ac_cv_type_size_t = no; then
11504 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11505#define size_t unsigned
11506EOF
11507
11508fi
11509
698dcdb6 11510echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
29fd3c0c 11511echo "configure:11512: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
11512if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
11513 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11514else
698dcdb6 11515 cat > conftest.$ac_ext <<EOF
29fd3c0c 11516#line 11517 "configure"
10f2d63a
VZ
11517#include "confdefs.h"
11518#include <sys/types.h>
698dcdb6 11519EOF
10f2d63a
VZ
11520if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11521 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 11522 rm -rf conftest*
10f2d63a
VZ
11523 ac_cv_type_uid_t=yes
11524else
698dcdb6 11525 rm -rf conftest*
10f2d63a
VZ
11526 ac_cv_type_uid_t=no
11527fi
11528rm -f conftest*
11529
11530fi
1e487827 11531
698dcdb6
VZ
11532echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11533if test $ac_cv_type_uid_t = no; then
11534 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11535#define uid_t int
11536EOF
11537
698dcdb6 11538 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11539#define gid_t int
11540EOF
11541
11542fi
11543
1e487827 11544
698dcdb6 11545echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
29fd3c0c 11546echo "configure:11547: checking for wchar_t" >&5
698dcdb6
VZ
11547if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
11548 echo $ac_n "(cached) $ac_c" 1>&6
11549else
11550
11551 cat > conftest.$ac_ext <<EOF
29fd3c0c 11552#line 11553 "configure"
0046ff7c
VS
11553#include "confdefs.h"
11554#include <wchar.h>
698dcdb6 11555int main() {
0046ff7c 11556
d836ee96
VZ
11557 wchar_t wc, *ws;
11558 wc = L'a';
11559 ws = L"Hello, world!";
698dcdb6
VZ
11560
11561; return 0; }
11562EOF
29fd3c0c 11563if { (eval echo configure:11564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11564 rm -rf conftest*
1f8ae82f
GD
11565 wx_cv_type_wchar_t=yes
11566else
698dcdb6
VZ
11567 echo "configure: failed program was:" >&5
11568 cat conftest.$ac_ext >&5
11569 rm -rf conftest*
11570 cat > conftest.$ac_ext <<EOF
29fd3c0c 11571#line 11572 "configure"
1f8ae82f
GD
11572#include "confdefs.h"
11573#include <stdlib.h>
698dcdb6 11574int main() {
1f8ae82f 11575
d836ee96
VZ
11576 wchar_t wc, *ws;
11577 wc = L'a';
11578 ws = L"Hello, world!";
698dcdb6
VZ
11579
11580; return 0; }
11581EOF
29fd3c0c 11582if { (eval echo configure:11583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11583 rm -rf conftest*
0046ff7c
VS
11584 wx_cv_type_wchar_t=yes
11585else
698dcdb6
VZ
11586 echo "configure: failed program was:" >&5
11587 cat conftest.$ac_ext >&5
11588 rm -rf conftest*
11589 wx_cv_type_wchar_t=no
0046ff7c 11590fi
698dcdb6 11591rm -f conftest*
d836ee96 11592
6232543b 11593fi
698dcdb6 11594rm -f conftest*
703e0a69 11595
1e487827 11596fi
698dcdb6
VZ
11597
11598echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
11599
11600if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 11601 cat >> confdefs.h <<\EOF
0046ff7c
VS
11602#define wxUSE_WCHAR_T 1
11603EOF
11604
11605fi
11606
19af3b06
VZ
11607
11608ac_ext=C
11609# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11610ac_cpp='$CXXCPP $CPPFLAGS'
11611ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11612ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11613cross_compiling=$ac_cv_prog_cxx_cross
11614
d836ee96 11615echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
29fd3c0c 11616echo "configure:11617: checking if size_t is unsigned int" >&5
d836ee96
VZ
11617if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
11618 echo $ac_n "(cached) $ac_c" 1>&6
11619else
dd2c8b7c 11620 cat > conftest.$ac_ext <<EOF
29fd3c0c 11621#line 11622 "configure"
d836ee96
VZ
11622#include "confdefs.h"
11623#include <stddef.h>
11624int main() {
11625
dd2c8b7c
VZ
11626 return 0; }
11627
d836ee96 11628 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
11629
11630 int bar() {
d836ee96
VZ
11631
11632; return 0; }
11633EOF
29fd3c0c 11634if { (eval echo configure:11635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
11635 rm -rf conftest*
11636 wx_cv_size_t_is_uint=no
11637else
11638 echo "configure: failed program was:" >&5
11639 cat conftest.$ac_ext >&5
11640 rm -rf conftest*
11641 wx_cv_size_t_is_uint=yes
11642
11643fi
11644rm -f conftest*
11645
11646fi
11647
11648echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
11649
11650if test "$wx_cv_size_t_is_uint" = "yes"; then
11651 cat >> confdefs.h <<\EOF
11652#define wxSIZE_T_IS_UINT 1
11653EOF
11654
11655else
11656 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
29fd3c0c 11657echo "configure:11658: checking if size_t is unsigned long" >&5
d836ee96
VZ
11658if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
11659 echo $ac_n "(cached) $ac_c" 1>&6
11660else
11661 cat > conftest.$ac_ext <<EOF
29fd3c0c 11662#line 11663 "configure"
d836ee96
VZ
11663#include "confdefs.h"
11664#include <stddef.h>
11665int main() {
11666
dd2c8b7c
VZ
11667 return 0; }
11668
d836ee96 11669 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
11670
11671 int bar() {
d836ee96
VZ
11672
11673; return 0; }
11674EOF
29fd3c0c 11675if { (eval echo configure:11676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
11676 rm -rf conftest*
11677 wx_cv_size_t_is_ulong=no
11678else
11679 echo "configure: failed program was:" >&5
11680 cat conftest.$ac_ext >&5
11681 rm -rf conftest*
11682 wx_cv_size_t_is_ulong=yes
11683
11684fi
11685rm -f conftest*
11686
11687fi
11688
11689echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
11690
11691 if test "$wx_cv_size_t_is_ulong" = "yes"; then
11692 cat >> confdefs.h <<\EOF
11693#define wxSIZE_T_IS_ULONG 1
11694EOF
11695
11696 fi
11697fi
11698
19af3b06
VZ
11699ac_ext=c
11700# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11701ac_cpp='$CPP $CPPFLAGS'
11702ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11703ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11704cross_compiling=$ac_cv_prog_cc_cross
11705
11706
1e487827 11707
698dcdb6 11708echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
29fd3c0c 11709echo "configure:11710: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
11710if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
11711 echo $ac_n "(cached) $ac_c" 1>&6
11712else
11713
11714 cat > conftest.$ac_ext <<EOF
29fd3c0c 11715#line 11716 "configure"
b12915c1
VZ
11716#include "confdefs.h"
11717#include <pwd.h>
698dcdb6 11718int main() {
b12915c1
VZ
11719
11720 char *p;
11721 struct passwd *pw;
11722 p = pw->pw_gecos;
698dcdb6
VZ
11723
11724; return 0; }
11725EOF
29fd3c0c 11726if { (eval echo configure:11727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
11727 rm -rf conftest*
11728
b12915c1 11729 wx_cv_struct_pw_gecos=yes
698dcdb6 11730
b12915c1 11731else
698dcdb6
VZ
11732 echo "configure: failed program was:" >&5
11733 cat conftest.$ac_ext >&5
11734 rm -rf conftest*
11735
b12915c1 11736 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
11737
11738
6232543b 11739fi
698dcdb6
VZ
11740rm -f conftest*
11741
703e0a69 11742
1e487827 11743fi
698dcdb6
VZ
11744
11745echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 11746
bd3277fe 11747if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 11748 cat >> confdefs.h <<\EOF
bd3277fe
VZ
11749#define HAVE_PW_GECOS 1
11750EOF
11751
11752fi
11753
698dcdb6
VZ
11754
11755echo $ac_n "checking for working const""... $ac_c" 1>&6
29fd3c0c 11756echo "configure:11757: checking for working const" >&5
698dcdb6
VZ
11757if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
11758 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11759else
698dcdb6 11760 cat > conftest.$ac_ext <<EOF
29fd3c0c 11761#line 11762 "configure"
10f2d63a 11762#include "confdefs.h"
698dcdb6
VZ
11763
11764int main() {
11765
11766/* Ultrix mips cc rejects this. */
11767typedef int charset[2]; const charset x;
11768/* SunOS 4.1.1 cc rejects this. */
11769char const *const *ccp;
11770char **p;
11771/* NEC SVR4.0.2 mips cc rejects this. */
11772struct point {int x, y;};
11773static struct point const zero = {0,0};
11774/* AIX XL C 1.02.0.0 rejects this.
11775 It does not let you subtract one const X* pointer from another in an arm
11776 of an if-expression whose if-part is not a constant expression */
11777const char *g = "string";
11778ccp = &g + (g ? g-g : 0);
11779/* HPUX 7.0 cc rejects these. */
11780++ccp;
11781p = (char**) ccp;
11782ccp = (char const *const *) p;
11783{ /* SCO 3.2v4 cc rejects this. */
11784 char *t;
11785 char const *s = 0 ? (char *) 0 : (char const *) 0;
11786
11787 *t++ = 0;
10f2d63a 11788}
698dcdb6
VZ
11789{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11790 int x[] = {25, 17};
11791 const int *foo = &x[0];
11792 ++foo;
703e0a69 11793}
698dcdb6
VZ
11794{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11795 typedef const int *iptr;
11796 iptr p = 0;
11797 ++p;
6232543b 11798}
698dcdb6
VZ
11799{ /* AIX XL C 1.02.0.0 rejects this saying
11800 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11801 struct s { int j; const int *ap[3]; };
11802 struct s *b; b->j = 5;
1e487827 11803}
698dcdb6
VZ
11804{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11805 const int foo = 10;
11806}
11807
11808; return 0; }
11809EOF
29fd3c0c 11810if { (eval echo configure:11811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11811 rm -rf conftest*
10f2d63a
VZ
11812 ac_cv_c_const=yes
11813else
698dcdb6
VZ
11814 echo "configure: failed program was:" >&5
11815 cat conftest.$ac_ext >&5
11816 rm -rf conftest*
11817 ac_cv_c_const=no
10f2d63a 11818fi
698dcdb6 11819rm -f conftest*
10f2d63a 11820fi
1e487827 11821
698dcdb6
VZ
11822echo "$ac_t""$ac_cv_c_const" 1>&6
11823if test $ac_cv_c_const = no; then
11824 cat >> confdefs.h <<\EOF
11825#define const
10f2d63a
VZ
11826EOF
11827
11828fi
11829
698dcdb6 11830echo $ac_n "checking for inline""... $ac_c" 1>&6
29fd3c0c 11831echo "configure:11832: checking for inline" >&5
698dcdb6
VZ
11832if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
11833 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
11834else
11835 ac_cv_c_inline=no
11836for ac_kw in inline __inline__ __inline; do
698dcdb6 11837 cat > conftest.$ac_ext <<EOF
29fd3c0c 11838#line 11839 "configure"
10f2d63a
VZ
11839#include "confdefs.h"
11840
698dcdb6
VZ
11841int main() {
11842} $ac_kw foo() {
11843; return 0; }
11844EOF
29fd3c0c 11845if { (eval echo configure:11846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11846 rm -rf conftest*
10f2d63a
VZ
11847 ac_cv_c_inline=$ac_kw; break
11848else
698dcdb6
VZ
11849 echo "configure: failed program was:" >&5
11850 cat conftest.$ac_ext >&5
10f2d63a 11851fi
698dcdb6 11852rm -f conftest*
10f2d63a
VZ
11853done
11854
11855fi
698dcdb6
VZ
11856
11857echo "$ac_t""$ac_cv_c_inline" 1>&6
11858case "$ac_cv_c_inline" in
10f2d63a 11859 inline | yes) ;;
698dcdb6
VZ
11860 no) cat >> confdefs.h <<\EOF
11861#define inline
10f2d63a
VZ
11862EOF
11863 ;;
698dcdb6 11864 *) cat >> confdefs.h <<EOF
10f2d63a
VZ
11865#define inline $ac_cv_c_inline
11866EOF
11867 ;;
11868esac
11869
698dcdb6
VZ
11870
11871echo $ac_n "checking size of char""... $ac_c" 1>&6
29fd3c0c 11872echo "configure:11873: checking size of char" >&5
698dcdb6
VZ
11873if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
11874 echo $ac_n "(cached) $ac_c" 1>&6
6232543b 11875else
1e487827 11876 if test "$cross_compiling" = yes; then
698dcdb6 11877 ac_cv_sizeof_char=1
1e487827 11878else
698dcdb6 11879 cat > conftest.$ac_ext <<EOF
29fd3c0c 11880#line 11881 "configure"
1e487827 11881#include "confdefs.h"
698dcdb6
VZ
11882#include <stdio.h>
11883main()
1e487827 11884{
698dcdb6
VZ
11885 FILE *f=fopen("conftestval", "w");
11886 if (!f) exit(1);
11887 fprintf(f, "%d\n", sizeof(char));
11888 exit(0);
1e487827 11889}
698dcdb6 11890EOF
29fd3c0c 11891if { (eval echo configure:11892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11892then
11893 ac_cv_sizeof_char=`cat conftestval`
1e487827 11894else
698dcdb6
VZ
11895 echo "configure: failed program was:" >&5
11896 cat conftest.$ac_ext >&5
11897 rm -fr conftest*
1e487827
VS
11898 ac_cv_sizeof_char=0
11899fi
698dcdb6 11900rm -fr conftest*
1e487827 11901fi
10f2d63a 11902
1e487827 11903fi
698dcdb6
VZ
11904echo "$ac_t""$ac_cv_sizeof_char" 1>&6
11905cat >> confdefs.h <<EOF
11906#define SIZEOF_CHAR $ac_cv_sizeof_char
1e487827 11907EOF
6232543b 11908
703e0a69 11909
698dcdb6 11910echo $ac_n "checking size of short""... $ac_c" 1>&6
29fd3c0c 11911echo "configure:11912: checking size of short" >&5
698dcdb6
VZ
11912if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
11913 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 11914else
1e487827 11915 if test "$cross_compiling" = yes; then
698dcdb6 11916 ac_cv_sizeof_short=2
1e487827 11917else
698dcdb6 11918 cat > conftest.$ac_ext <<EOF
29fd3c0c 11919#line 11920 "configure"
1e487827 11920#include "confdefs.h"
698dcdb6
VZ
11921#include <stdio.h>
11922main()
1e487827 11923{
698dcdb6
VZ
11924 FILE *f=fopen("conftestval", "w");
11925 if (!f) exit(1);
11926 fprintf(f, "%d\n", sizeof(short));
11927 exit(0);
1e487827 11928}
698dcdb6 11929EOF
29fd3c0c 11930if { (eval echo configure:11931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11931then
11932 ac_cv_sizeof_short=`cat conftestval`
1e487827 11933else
698dcdb6
VZ
11934 echo "configure: failed program was:" >&5
11935 cat conftest.$ac_ext >&5
11936 rm -fr conftest*
11937 ac_cv_sizeof_short=0
1e487827 11938fi
698dcdb6 11939rm -fr conftest*
1e487827 11940fi
698dcdb6 11941
1e487827 11942fi
698dcdb6
VZ
11943echo "$ac_t""$ac_cv_sizeof_short" 1>&6
11944cat >> confdefs.h <<EOF
11945#define SIZEOF_SHORT $ac_cv_sizeof_short
11946EOF
11947
11948
11949echo $ac_n "checking size of int *""... $ac_c" 1>&6
29fd3c0c 11950echo "configure:11951: checking size of int *" >&5
698dcdb6
VZ
11951if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
11952 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
11953else
11954 if test "$cross_compiling" = yes; then
698dcdb6 11955 ac_cv_sizeof_int_p=4
10f2d63a 11956else
698dcdb6 11957 cat > conftest.$ac_ext <<EOF
29fd3c0c 11958#line 11959 "configure"
10f2d63a 11959#include "confdefs.h"
698dcdb6
VZ
11960#include <stdio.h>
11961main()
10f2d63a 11962{
698dcdb6
VZ
11963 FILE *f=fopen("conftestval", "w");
11964 if (!f) exit(1);
11965 fprintf(f, "%d\n", sizeof(int *));
11966 exit(0);
10f2d63a 11967}
698dcdb6 11968EOF
29fd3c0c 11969if { (eval echo configure:11970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11970then
11971 ac_cv_sizeof_int_p=`cat conftestval`
10f2d63a 11972else
698dcdb6
VZ
11973 echo "configure: failed program was:" >&5
11974 cat conftest.$ac_ext >&5
11975 rm -fr conftest*
11976 ac_cv_sizeof_int_p=0
6232543b 11977fi
698dcdb6 11978rm -fr conftest*
1e487827 11979fi
698dcdb6 11980
1e487827 11981fi
698dcdb6
VZ
11982echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
11983cat >> confdefs.h <<EOF
11984#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
11985EOF
11986
698dcdb6
VZ
11987
11988echo $ac_n "checking size of int""... $ac_c" 1>&6
29fd3c0c 11989echo "configure:11990: checking size of int" >&5
698dcdb6
VZ
11990if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
11991 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
11992else
11993 if test "$cross_compiling" = yes; then
698dcdb6 11994 ac_cv_sizeof_int=4
703e0a69 11995else
698dcdb6 11996 cat > conftest.$ac_ext <<EOF
29fd3c0c 11997#line 11998 "configure"
1e487827 11998#include "confdefs.h"
698dcdb6
VZ
11999#include <stdio.h>
12000main()
1e487827 12001{
698dcdb6
VZ
12002 FILE *f=fopen("conftestval", "w");
12003 if (!f) exit(1);
12004 fprintf(f, "%d\n", sizeof(int));
12005 exit(0);
1e487827 12006}
698dcdb6 12007EOF
29fd3c0c 12008if { (eval echo configure:12009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12009then
12010 ac_cv_sizeof_int=`cat conftestval`
12011else
12012 echo "configure: failed program was:" >&5
12013 cat conftest.$ac_ext >&5
12014 rm -fr conftest*
12015 ac_cv_sizeof_int=0
703e0a69 12016fi
698dcdb6
VZ
12017rm -fr conftest*
12018fi
12019
12020fi
12021echo "$ac_t""$ac_cv_sizeof_int" 1>&6
12022cat >> confdefs.h <<EOF
12023#define SIZEOF_INT $ac_cv_sizeof_int
12024EOF
12025
12026
12027echo $ac_n "checking size of long""... $ac_c" 1>&6
29fd3c0c 12028echo "configure:12029: checking size of long" >&5
698dcdb6
VZ
12029if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
12030 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12031else
12032 if test "$cross_compiling" = yes; then
698dcdb6 12033 ac_cv_sizeof_long=4
10f2d63a 12034else
698dcdb6 12035 cat > conftest.$ac_ext <<EOF
29fd3c0c 12036#line 12037 "configure"
10f2d63a 12037#include "confdefs.h"
698dcdb6
VZ
12038#include <stdio.h>
12039main()
10f2d63a 12040{
698dcdb6
VZ
12041 FILE *f=fopen("conftestval", "w");
12042 if (!f) exit(1);
12043 fprintf(f, "%d\n", sizeof(long));
12044 exit(0);
10f2d63a 12045}
698dcdb6 12046EOF
29fd3c0c 12047if { (eval echo configure:12048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12048then
12049 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 12050else
698dcdb6
VZ
12051 echo "configure: failed program was:" >&5
12052 cat conftest.$ac_ext >&5
12053 rm -fr conftest*
12054 ac_cv_sizeof_long=0
10f2d63a 12055fi
698dcdb6 12056rm -fr conftest*
10f2d63a 12057fi
698dcdb6 12058
10f2d63a 12059fi
698dcdb6
VZ
12060echo "$ac_t""$ac_cv_sizeof_long" 1>&6
12061cat >> confdefs.h <<EOF
12062#define SIZEOF_LONG $ac_cv_sizeof_long
12063EOF
12064
12065
12066echo $ac_n "checking size of long long""... $ac_c" 1>&6
29fd3c0c 12067echo "configure:12068: checking size of long long" >&5
698dcdb6
VZ
12068if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
12069 echo $ac_n "(cached) $ac_c" 1>&6
12070else
12071 if test "$cross_compiling" = yes; then
12072 ac_cv_sizeof_long_long=0
12073else
12074 cat > conftest.$ac_ext <<EOF
29fd3c0c 12075#line 12076 "configure"
698dcdb6
VZ
12076#include "confdefs.h"
12077#include <stdio.h>
12078main()
12079{
12080 FILE *f=fopen("conftestval", "w");
12081 if (!f) exit(1);
12082 fprintf(f, "%d\n", sizeof(long long));
12083 exit(0);
12084}
12085EOF
29fd3c0c 12086if { (eval echo configure:12087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12087then
12088 ac_cv_sizeof_long_long=`cat conftestval`
6232543b 12089else
698dcdb6
VZ
12090 echo "configure: failed program was:" >&5
12091 cat conftest.$ac_ext >&5
12092 rm -fr conftest*
6232543b
VS
12093 ac_cv_sizeof_long_long=0
12094fi
698dcdb6
VZ
12095rm -fr conftest*
12096fi
12097
703e0a69 12098fi
698dcdb6
VZ
12099echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
12100cat >> confdefs.h <<EOF
10f2d63a
VZ
12101#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12102EOF
12103
1e487827 12104
698dcdb6
VZ
12105
12106echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
29fd3c0c 12107echo "configure:12108: checking size of wchar_t" >&5
698dcdb6
VZ
12108if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
12109 echo $ac_n "(cached) $ac_c" 1>&6
12110else
12111
b93d0d08
VS
12112 if test "$cross_compiling" = yes; then
12113 wx_cv_sizeof_wchar_t=4
1e6feb95 12114
b93d0d08 12115else
698dcdb6 12116 cat > conftest.$ac_ext <<EOF
29fd3c0c 12117#line 12118 "configure"
b93d0d08
VS
12118#include "confdefs.h"
12119
1e6feb95
VZ
12120 #ifdef HAVE_WCHAR_H
12121 # include <wchar.h>
12122 #endif
12123 #ifdef HAVE_STDLIB_H
12124 # include <stdlib.h>
12125 #endif
12126 #include <stdio.h>
12127 int main()
12128 {
12129 FILE *f=fopen("conftestval", "w");
12130 if (!f) exit(1);
12131 fprintf(f, "%i", sizeof(wchar_t));
12132 exit(0);
12133 }
698dcdb6
VZ
12134
12135EOF
29fd3c0c 12136if { (eval echo configure:12137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12137then
b93d0d08
VS
12138 wx_cv_sizeof_wchar_t=`cat conftestval`
12139else
698dcdb6
VZ
12140 echo "configure: failed program was:" >&5
12141 cat conftest.$ac_ext >&5
12142 rm -fr conftest*
12143 wx_cv_sizeof_wchar_t=0
b93d0d08 12144fi
698dcdb6 12145rm -fr conftest*
b93d0d08
VS
12146fi
12147
698dcdb6 12148
b93d0d08
VS
12149fi
12150
698dcdb6
VZ
12151echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
12152
12153cat >> confdefs.h <<EOF
28c6addc 12154#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
b93d0d08
VS
12155EOF
12156
698dcdb6 12157
698dcdb6 12158echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
29fd3c0c 12159echo "configure:12160: checking whether byte ordering is bigendian" >&5
698dcdb6
VZ
12160if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
12161 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12162else
12163 ac_cv_c_bigendian=unknown
12164# See if sys/param.h defines the BYTE_ORDER macro.
698dcdb6 12165cat > conftest.$ac_ext <<EOF
29fd3c0c 12166#line 12167 "configure"
10f2d63a
VZ
12167#include "confdefs.h"
12168#include <sys/types.h>
12169#include <sys/param.h>
698dcdb6 12170int main() {
10f2d63a
VZ
12171
12172#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12173 bogus endian macros
12174#endif
698dcdb6
VZ
12175; return 0; }
12176EOF
29fd3c0c 12177if { (eval echo configure:12178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12178 rm -rf conftest*
10f2d63a 12179 # It does; now see whether it defined to BIG_ENDIAN or not.
698dcdb6 12180cat > conftest.$ac_ext <<EOF
29fd3c0c 12181#line 12182 "configure"
10f2d63a
VZ
12182#include "confdefs.h"
12183#include <sys/types.h>
12184#include <sys/param.h>
698dcdb6 12185int main() {
10f2d63a
VZ
12186
12187#if BYTE_ORDER != BIG_ENDIAN
12188 not big endian
12189#endif
698dcdb6
VZ
12190; return 0; }
12191EOF
29fd3c0c 12192if { (eval echo configure:12193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12193 rm -rf conftest*
10f2d63a
VZ
12194 ac_cv_c_bigendian=yes
12195else
698dcdb6
VZ
12196 echo "configure: failed program was:" >&5
12197 cat conftest.$ac_ext >&5
12198 rm -rf conftest*
12199 ac_cv_c_bigendian=no
10f2d63a 12200fi
698dcdb6 12201rm -f conftest*
10f2d63a 12202else
698dcdb6
VZ
12203 echo "configure: failed program was:" >&5
12204 cat conftest.$ac_ext >&5
10f2d63a 12205fi
698dcdb6 12206rm -f conftest*
10f2d63a
VZ
12207if test $ac_cv_c_bigendian = unknown; then
12208if test "$cross_compiling" = yes; then
12209 ac_cv_c_bigendian=unknown
12210else
698dcdb6 12211 cat > conftest.$ac_ext <<EOF
29fd3c0c 12212#line 12213 "configure"
10f2d63a
VZ
12213#include "confdefs.h"
12214main () {
12215 /* Are we little or big endian? From Harbison&Steele. */
12216 union
12217 {
12218 long l;
12219 char c[sizeof (long)];
12220 } u;
12221 u.l = 1;
12222 exit (u.c[sizeof (long) - 1] == 1);
12223}
698dcdb6 12224EOF
29fd3c0c 12225if { (eval echo configure:12226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12226then
10f2d63a
VZ
12227 ac_cv_c_bigendian=no
12228else
698dcdb6
VZ
12229 echo "configure: failed program was:" >&5
12230 cat conftest.$ac_ext >&5
12231 rm -fr conftest*
12232 ac_cv_c_bigendian=yes
10f2d63a 12233fi
698dcdb6 12234rm -fr conftest*
10f2d63a 12235fi
698dcdb6 12236
10f2d63a
VZ
12237fi
12238fi
698dcdb6
VZ
12239
12240echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10f2d63a 12241if test $ac_cv_c_bigendian = unknown; then
698dcdb6 12242 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
12243fi
12244if test $ac_cv_c_bigendian = yes; then
698dcdb6 12245 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12246#define WORDS_BIGENDIAN 1
12247EOF
12248
12249fi
12250
698dcdb6
VZ
12251
12252
10f2d63a 12253 if test "$cross_compiling" = "yes"; then
698dcdb6 12254 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12255#define wxUSE_IOSTREAMH 1
12256EOF
12257
12258 else
698dcdb6
VZ
12259
12260 ac_ext=C
12261# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12262ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12263ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12264ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12265cross_compiling=$ac_cv_prog_cxx_cross
12266
703e0a69 12267
698dcdb6 12268 for ac_hdr in iostream
10f2d63a 12269do
698dcdb6
VZ
12270ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12271echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
29fd3c0c 12272echo "configure:12273: checking for $ac_hdr" >&5
698dcdb6
VZ
12273if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12274 echo $ac_n "(cached) $ac_c" 1>&6
12275else
12276 cat > conftest.$ac_ext <<EOF
29fd3c0c 12277#line 12278 "configure"
10f2d63a 12278#include "confdefs.h"
698dcdb6
VZ
12279#include <$ac_hdr>
12280EOF
12281ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29fd3c0c 12282{ (eval echo configure:12283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12283ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12284if test -z "$ac_err"; then
12285 rm -rf conftest*
12286 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12287else
698dcdb6
VZ
12288 echo "$ac_err" >&5
12289 echo "configure: failed program was:" >&5
10f2d63a 12290 cat conftest.$ac_ext >&5
698dcdb6
VZ
12291 rm -rf conftest*
12292 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12293fi
698dcdb6 12294rm -f conftest*
10f2d63a 12295fi
698dcdb6
VZ
12296if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12297 echo "$ac_t""yes" 1>&6
12298 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12299 cat >> confdefs.h <<EOF
12300#define $ac_tr_hdr 1
10f2d63a 12301EOF
698dcdb6
VZ
12302
12303else
12304 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12305fi
12306done
12307
698dcdb6 12308
57fe5ed0
VZ
12309 if test "$ac_cv_header_iostream" = "yes" ; then
12310 :
12311 else
698dcdb6 12312 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12313#define wxUSE_IOSTREAMH 1
12314EOF
12315
10f2d63a
VZ
12316 fi
12317
12318 ac_ext=c
698dcdb6 12319# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12320ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12321ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12322ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12323cross_compiling=$ac_cv_prog_cc_cross
10f2d63a
VZ
12324
12325 fi
12326
703e0a69 12327
698dcdb6
VZ
12328
12329 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
29fd3c0c 12330echo "configure:12331: checking if C++ compiler supports bool" >&5
698dcdb6
VZ
12331if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12332 echo $ac_n "(cached) $ac_c" 1>&6
12333else
12334
12335
12336 ac_ext=C
12337# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12338ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12339ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12340ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12341cross_compiling=$ac_cv_prog_cxx_cross
10f2d63a 12342
698dcdb6
VZ
12343
12344 cat > conftest.$ac_ext <<EOF
29fd3c0c 12345#line 12346 "configure"
10f2d63a
VZ
12346#include "confdefs.h"
12347
698dcdb6
VZ
12348
12349int main() {
10f2d63a
VZ
12350
12351 bool b = true;
12352
12353 return 0;
698dcdb6
VZ
12354
12355; return 0; }
12356EOF
29fd3c0c 12357if { (eval echo configure:12358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12358 rm -rf conftest*
12359
10f2d63a 12360 wx_cv_cpp_bool=yes
698dcdb6 12361
10f2d63a 12362else
698dcdb6
VZ
12363 echo "configure: failed program was:" >&5
12364 cat conftest.$ac_ext >&5
12365 rm -rf conftest*
12366
10f2d63a 12367 wx_cv_cpp_bool=no
698dcdb6
VZ
12368
12369
10f2d63a 12370fi
698dcdb6 12371rm -f conftest*
10f2d63a
VZ
12372
12373 ac_ext=c
698dcdb6 12374# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12375ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12376ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12377ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12378cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 12379
698dcdb6 12380
10f2d63a 12381fi
698dcdb6
VZ
12382
12383echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10f2d63a
VZ
12384
12385 if test "$wx_cv_cpp_bool" = "yes"; then
698dcdb6 12386 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12387#define HAVE_BOOL 1
12388EOF
12389
12390 fi
12391
1e487827 12392
698dcdb6 12393
698dcdb6 12394echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
29fd3c0c 12395echo "configure:12396: checking for wcslen in -lc" >&5
698dcdb6
VZ
12396ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12397if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12398 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12399else
698dcdb6 12400 ac_save_LIBS="$LIBS"
10f2d63a 12401LIBS="-lc $LIBS"
698dcdb6 12402cat > conftest.$ac_ext <<EOF
29fd3c0c 12403#line 12404 "configure"
10f2d63a
VZ
12404#include "confdefs.h"
12405/* Override any gcc2 internal prototype to avoid an error. */
12406/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12407 builtin and then its argument prototype would still apply. */
12408char wcslen();
12409
12410int main() {
12411wcslen()
12412; return 0; }
12413EOF
29fd3c0c 12414if { (eval echo configure:12415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12415 rm -rf conftest*
12416 eval "ac_cv_lib_$ac_lib_var=yes"
12417else
12418 echo "configure: failed program was:" >&5
12419 cat conftest.$ac_ext >&5
12420 rm -rf conftest*
12421 eval "ac_cv_lib_$ac_lib_var=no"
12422fi
12423rm -f conftest*
12424LIBS="$ac_save_LIBS"
12425
12426fi
12427if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12428 echo "$ac_t""yes" 1>&6
12429
12430 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12431#define HAVE_WCSLEN 1
12432EOF
12433
12434 WCHAR_LINK=""
698dcdb6 12435
10f2d63a 12436else
698dcdb6 12437 echo "$ac_t""no" 1>&6
10f2d63a 12438
698dcdb6 12439 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
29fd3c0c 12440echo "configure:12441: checking for wcslen in -lw" >&5
698dcdb6
VZ
12441ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12442if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12443 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12444else
698dcdb6 12445 ac_save_LIBS="$LIBS"
10f2d63a 12446LIBS="-lw $LIBS"
698dcdb6 12447cat > conftest.$ac_ext <<EOF
29fd3c0c 12448#line 12449 "configure"
10f2d63a
VZ
12449#include "confdefs.h"
12450/* Override any gcc2 internal prototype to avoid an error. */
12451/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12452 builtin and then its argument prototype would still apply. */
12453char wcslen();
12454
12455int main() {
12456wcslen()
12457; return 0; }
12458EOF
29fd3c0c 12459if { (eval echo configure:12460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12460 rm -rf conftest*
12461 eval "ac_cv_lib_$ac_lib_var=yes"
12462else
12463 echo "configure: failed program was:" >&5
12464 cat conftest.$ac_ext >&5
12465 rm -rf conftest*
12466 eval "ac_cv_lib_$ac_lib_var=no"
12467fi
12468rm -f conftest*
12469LIBS="$ac_save_LIBS"
12470
12471fi
12472if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12473 echo "$ac_t""yes" 1>&6
12474
12475 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12476#define HAVE_WCSLEN 1
12477EOF
12478
12479 WCHAR_LINK="-lw"
698dcdb6
VZ
12480
12481else
12482 echo "$ac_t""no" 1>&6
6232543b 12483fi
10f2d63a 12484
698dcdb6 12485
1e487827 12486fi
703e0a69 12487
698dcdb6
VZ
12488
12489echo $ac_n "checking for vprintf""... $ac_c" 1>&6
29fd3c0c 12490echo "configure:12491: checking for vprintf" >&5
698dcdb6
VZ
12491if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
12492 echo $ac_n "(cached) $ac_c" 1>&6
12493else
12494 cat > conftest.$ac_ext <<EOF
29fd3c0c 12495#line 12496 "configure"
10f2d63a
VZ
12496#include "confdefs.h"
12497/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12498 which can conflict with char vprintf(); below. */
10f2d63a
VZ
12499#include <assert.h>
12500/* Override any gcc2 internal prototype to avoid an error. */
12501/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12502 builtin and then its argument prototype would still apply. */
12503char vprintf();
12504
12505int main() {
10f2d63a
VZ
12506
12507/* The GNU C library defines this for functions which it implements
12508 to always fail with ENOSYS. Some functions are actually named
12509 something starting with __ and the normal name is an alias. */
698dcdb6 12510#if defined (__stub_vprintf) || defined (__stub___vprintf)
10f2d63a
VZ
12511choke me
12512#else
698dcdb6 12513vprintf();
10f2d63a
VZ
12514#endif
12515
698dcdb6
VZ
12516; return 0; }
12517EOF
29fd3c0c 12518if { (eval echo configure:12519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12519 rm -rf conftest*
12520 eval "ac_cv_func_vprintf=yes"
12521else
12522 echo "configure: failed program was:" >&5
12523 cat conftest.$ac_ext >&5
12524 rm -rf conftest*
12525 eval "ac_cv_func_vprintf=no"
12526fi
12527rm -f conftest*
12528fi
12529
12530if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12531 echo "$ac_t""yes" 1>&6
12532 cat >> confdefs.h <<\EOF
12533#define HAVE_VPRINTF 1
12534EOF
12535
12536else
12537 echo "$ac_t""no" 1>&6
12538fi
12539
12540if test "$ac_cv_func_vprintf" != yes; then
12541echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
29fd3c0c 12542echo "configure:12543: checking for _doprnt" >&5
698dcdb6
VZ
12543if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
12544 echo $ac_n "(cached) $ac_c" 1>&6
12545else
12546 cat > conftest.$ac_ext <<EOF
29fd3c0c 12547#line 12548 "configure"
10f2d63a
VZ
12548#include "confdefs.h"
12549/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12550 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
12551#include <assert.h>
12552/* Override any gcc2 internal prototype to avoid an error. */
12553/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12554 builtin and then its argument prototype would still apply. */
12555char _doprnt();
12556
12557int main() {
10f2d63a
VZ
12558
12559/* The GNU C library defines this for functions which it implements
12560 to always fail with ENOSYS. Some functions are actually named
12561 something starting with __ and the normal name is an alias. */
12562#if defined (__stub__doprnt) || defined (__stub____doprnt)
12563choke me
12564#else
698dcdb6 12565_doprnt();
10f2d63a
VZ
12566#endif
12567
698dcdb6
VZ
12568; return 0; }
12569EOF
29fd3c0c 12570if { (eval echo configure:12571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12571 rm -rf conftest*
12572 eval "ac_cv_func__doprnt=yes"
12573else
12574 echo "configure: failed program was:" >&5
12575 cat conftest.$ac_ext >&5
12576 rm -rf conftest*
12577 eval "ac_cv_func__doprnt=no"
12578fi
12579rm -f conftest*
12580fi
12581
12582if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12583 echo "$ac_t""yes" 1>&6
12584 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12585#define HAVE_DOPRNT 1
12586EOF
12587
698dcdb6
VZ
12588else
12589 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12590fi
12591
12592fi
12593
1e487827 12594
698dcdb6
VZ
12595
12596
12597
12598
12599
12600echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
29fd3c0c 12601echo "configure:12602: checking for vsnprintf" >&5
698dcdb6
VZ
12602if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
12603 echo $ac_n "(cached) $ac_c" 1>&6
12604else
12605
12606 cat > conftest.$ac_ext <<EOF
29fd3c0c 12607#line 12608 "configure"
f6bcfd97
BP
12608#include "confdefs.h"
12609
12610 #include <stdio.h>
698dcdb6
VZ
12611 #include <stdarg.h>
12612
12613int main() {
10f2d63a 12614
f6bcfd97 12615 int wx_test_vsnprintf(const char *, ...);
10f2d63a 12616
f6bcfd97
BP
12617 wx_test_vsnprintf("%s");
12618 return 0;
12619 }
12620
12621 int wx_test_vsnprintf(const char *fmt, ...)
12622 {
12623 char *s;
12624
12625 va_list argp;
12626 va_start(argp, fmt);
12627 vsnprintf(s, 42, fmt, argp);
12628 va_end(argp);
698dcdb6
VZ
12629
12630; return 0; }
12631EOF
29fd3c0c 12632if { (eval echo configure:12633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12633 rm -rf conftest*
12634
f6bcfd97 12635 wx_cv_func_vsnprintf=yes
698dcdb6 12636
10f2d63a 12637else
698dcdb6
VZ
12638 echo "configure: failed program was:" >&5
12639 cat conftest.$ac_ext >&5
12640 rm -rf conftest*
12641
12642 cat > conftest.$ac_ext <<EOF
29fd3c0c 12643#line 12644 "configure"
c521c494
RL
12644#include "confdefs.h"
12645
12646 #include <stdio.h>
12647 #include <stdarg.h>
698dcdb6
VZ
12648
12649int main() {
c521c494
RL
12650
12651 int wx_test_vsnprintf(const char *, ...);
12652
12653 wx_test_vsnprintf("%s");
12654 return 0;
12655 }
12656
12657 int wx_test_vsnprintf(const char *fmt, ...)
12658 {
12659 char *s;
12660
12661 va_list argp;
12662 va_start(argp, fmt);
12663 _vsnprintf(s, 42, fmt, argp);
12664 va_end(argp);
698dcdb6
VZ
12665
12666; return 0; }
12667EOF
29fd3c0c 12668if { (eval echo configure:12669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12669 rm -rf conftest*
12670
c521c494 12671 wx_cv_func_vsnprintf=yes
698dcdb6 12672
c521c494 12673else
698dcdb6
VZ
12674 echo "configure: failed program was:" >&5
12675 cat conftest.$ac_ext >&5
12676 rm -rf conftest*
12677
c521c494 12678 wx_cv_func_vsnprintf=no
698dcdb6 12679
10f2d63a 12680fi
698dcdb6
VZ
12681rm -f conftest*
12682
6232543b 12683fi
698dcdb6 12684rm -f conftest*
703e0a69 12685
1e487827 12686fi
698dcdb6
VZ
12687
12688echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
10f2d63a 12689
9d8deca0 12690if test "$wx_cv_func_vsnprintf" = yes; then
698dcdb6 12691 cat >> confdefs.h <<\EOF
9d8deca0
VZ
12692#define HAVE_VSNPRINTF 1
12693EOF
12694
12695else
698dcdb6 12696 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9d8deca0
VZ
12697fi
12698
698dcdb6 12699echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
29fd3c0c 12700echo "configure:12701: checking for vsscanf" >&5
698dcdb6
VZ
12701if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
12702 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12703else
698dcdb6
VZ
12704
12705 cat > conftest.$ac_ext <<EOF
29fd3c0c 12706#line 12707 "configure"
10f2d63a 12707#include "confdefs.h"
10f2d63a 12708
f6bcfd97
BP
12709 #include <stdio.h>
12710 #include <stdarg.h>
698dcdb6
VZ
12711
12712int main() {
10f2d63a 12713
f6bcfd97 12714 int wx_test_vsscanf(const char *, ...);
10f2d63a 12715
f6bcfd97
BP
12716 wx_test_vsscanf("%d");
12717 return 0;
10f2d63a
VZ
12718 }
12719
f6bcfd97 12720 int wx_test_vsscanf(const char *fmt, ...)
10f2d63a 12721 {
f6bcfd97
BP
12722 va_list argp;
12723 va_start(argp, fmt);
12724 vsscanf("42", fmt, argp);
12725 va_end(argp);
698dcdb6
VZ
12726
12727; return 0; }
12728EOF
29fd3c0c 12729if { (eval echo configure:12730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12730 rm -rf conftest*
12731
f6bcfd97 12732 wx_cv_func_vsscanf=yes
698dcdb6 12733
10f2d63a 12734else
698dcdb6
VZ
12735 echo "configure: failed program was:" >&5
12736 cat conftest.$ac_ext >&5
12737 rm -rf conftest*
12738
f6bcfd97 12739 wx_cv_func_vsscanf=no
698dcdb6 12740
6232543b 12741fi
698dcdb6 12742rm -f conftest*
703e0a69 12743
1e487827 12744fi
698dcdb6
VZ
12745
12746echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10f2d63a 12747
9d8deca0 12748if test "$wx_cv_func_vsscanf" = yes; then
698dcdb6 12749 cat >> confdefs.h <<\EOF
9d8deca0
VZ
12750#define HAVE_VSSCANF 1
12751EOF
12752
12753fi
12754
95c8801c
VS
12755if test "$TOOLKIT" != "MSW"; then
12756
12757
12758
698dcdb6
VZ
12759ac_ext=C
12760# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12761ac_cpp='$CXXCPP $CPPFLAGS'
12762ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12763ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12764cross_compiling=$ac_cv_prog_cxx_cross
12765
12766echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
29fd3c0c 12767echo "configure:12768: checking if iconv() takes char**" >&5
698dcdb6
VZ
12768if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
12769 echo $ac_n "(cached) $ac_c" 1>&6
12770else
12771
12772 cat > conftest.$ac_ext <<EOF
29fd3c0c 12773#line 12774 "configure"
95c8801c
VS
12774#include "confdefs.h"
12775#include <iconv.h>
698dcdb6 12776int main() {
95c8801c
VS
12777
12778 char **inbuf, **outbuf;
19af3b06
VZ
12779 iconv_t cd;
12780 size_t insz, outsz;
12781 iconv(cd, inbuf, &insz, outbuf, &outsz);
698dcdb6
VZ
12782
12783; return 0; }
12784EOF
29fd3c0c 12785if { (eval echo configure:12786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12786 rm -rf conftest*
95c8801c
VS
12787 wx_cv_iconv_takes_char=yes
12788else
698dcdb6
VZ
12789 echo "configure: failed program was:" >&5
12790 cat conftest.$ac_ext >&5
12791 rm -rf conftest*
12792 wx_cv_iconv_takes_char=no
95c8801c 12793fi
698dcdb6 12794rm -f conftest*
95c8801c
VS
12795
12796fi
698dcdb6
VZ
12797
12798echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
10f2d63a 12799ac_ext=c
698dcdb6 12800# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12801ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12802ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12803ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12804cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 12805
95c8801c 12806if test "$wx_cv_iconv_takes_char" = yes ; then
698dcdb6 12807 cat >> confdefs.h <<\EOF
95c8801c
VS
12808#define WX_ICONV_TAKES_CHAR 1
12809EOF
12810
12811fi
10f2d63a 12812
1e487827 12813
698dcdb6
VZ
12814if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
12815 for ac_func in sigaction
eb4efbdc 12816do
698dcdb6 12817echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29fd3c0c 12818echo "configure:12819: checking for $ac_func" >&5
698dcdb6
VZ
12819if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12820 echo $ac_n "(cached) $ac_c" 1>&6
12821else
12822 cat > conftest.$ac_ext <<EOF
29fd3c0c 12823#line 12824 "configure"
eb4efbdc
VZ
12824#include "confdefs.h"
12825/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12826 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
12827#include <assert.h>
12828/* Override any gcc2 internal prototype to avoid an error. */
12829/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12830 builtin and then its argument prototype would still apply. */
12831char $ac_func();
12832
12833int main() {
eb4efbdc
VZ
12834
12835/* The GNU C library defines this for functions which it implements
12836 to always fail with ENOSYS. Some functions are actually named
12837 something starting with __ and the normal name is an alias. */
12838#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12839choke me
12840#else
698dcdb6 12841$ac_func();
eb4efbdc
VZ
12842#endif
12843
698dcdb6 12844; return 0; }
eb4efbdc 12845EOF
29fd3c0c 12846if { (eval echo configure:12847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12847 rm -rf conftest*
12848 eval "ac_cv_func_$ac_func=yes"
12849else
12850 echo "configure: failed program was:" >&5
12851 cat conftest.$ac_ext >&5
12852 rm -rf conftest*
12853 eval "ac_cv_func_$ac_func=no"
12854fi
12855rm -f conftest*
12856fi
eb4efbdc 12857
698dcdb6
VZ
12858if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12859 echo "$ac_t""yes" 1>&6
12860 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12861 cat >> confdefs.h <<EOF
12862#define $ac_tr_func 1
12863EOF
12864
12865else
12866 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
12867fi
12868done
12869
698dcdb6 12870
eb4efbdc 12871 if test "$ac_cv_func_sigaction" = "no"; then
698dcdb6 12872 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
eb4efbdc
VZ
12873 wxUSE_ON_FATAL_EXCEPTION=no
12874 fi
f6bcfd97
BP
12875
12876 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6
VZ
12877
12878 ac_ext=C
12879# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12880ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12881ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12882ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12883cross_compiling=$ac_cv_prog_cxx_cross
6232543b 12884
1e487827 12885
698dcdb6 12886 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
29fd3c0c 12887echo "configure:12888: checking for sa_handler type" >&5
698dcdb6
VZ
12888if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
12889 echo $ac_n "(cached) $ac_c" 1>&6
12890else
12891
12892 cat > conftest.$ac_ext <<EOF
29fd3c0c 12893#line 12894 "configure"
f6bcfd97
BP
12894#include "confdefs.h"
12895#include <signal.h>
698dcdb6 12896int main() {
f6bcfd97
BP
12897
12898 extern void testSigHandler(int);
12899
12900 struct sigaction sa;
12901 sa.sa_handler = testSigHandler;
698dcdb6
VZ
12902
12903; return 0; }
12904EOF
29fd3c0c 12905if { (eval echo configure:12906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12906 rm -rf conftest*
12907
f6bcfd97 12908 wx_cv_type_sa_handler=int
698dcdb6 12909
f6bcfd97 12910else
698dcdb6
VZ
12911 echo "configure: failed program was:" >&5
12912 cat conftest.$ac_ext >&5
12913 rm -rf conftest*
12914
f6bcfd97 12915 wx_cv_type_sa_handler=void
698dcdb6 12916
6232543b 12917fi
698dcdb6
VZ
12918rm -f conftest*
12919
1e487827 12920fi
698dcdb6
VZ
12921
12922echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
f6bcfd97
BP
12923
12924 ac_ext=c
698dcdb6 12925# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
f6bcfd97 12926ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12927ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12928ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12929cross_compiling=$ac_cv_prog_cc_cross
12930
703e0a69 12931
698dcdb6 12932 cat >> confdefs.h <<EOF
f6bcfd97
BP
12933#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
12934EOF
12935
12936 fi
eb4efbdc
VZ
12937fi
12938
10f2d63a
VZ
12939for ac_func in vfork
12940do
698dcdb6 12941echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29fd3c0c 12942echo "configure:12943: checking for $ac_func" >&5
698dcdb6
VZ
12943if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12944 echo $ac_n "(cached) $ac_c" 1>&6
12945else
12946 cat > conftest.$ac_ext <<EOF
29fd3c0c 12947#line 12948 "configure"
10f2d63a
VZ
12948#include "confdefs.h"
12949/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12950 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
12951#include <assert.h>
12952/* Override any gcc2 internal prototype to avoid an error. */
12953/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12954 builtin and then its argument prototype would still apply. */
12955char $ac_func();
12956
12957int main() {
10f2d63a
VZ
12958
12959/* The GNU C library defines this for functions which it implements
12960 to always fail with ENOSYS. Some functions are actually named
12961 something starting with __ and the normal name is an alias. */
12962#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12963choke me
12964#else
698dcdb6 12965$ac_func();
10f2d63a
VZ
12966#endif
12967
698dcdb6 12968; return 0; }
10f2d63a 12969EOF
29fd3c0c 12970if { (eval echo configure:12971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12971 rm -rf conftest*
12972 eval "ac_cv_func_$ac_func=yes"
12973else
12974 echo "configure: failed program was:" >&5
12975 cat conftest.$ac_ext >&5
12976 rm -rf conftest*
12977 eval "ac_cv_func_$ac_func=no"
12978fi
12979rm -f conftest*
12980fi
270a909e 12981
698dcdb6
VZ
12982if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12983 echo "$ac_t""yes" 1>&6
12984 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12985 cat >> confdefs.h <<EOF
12986#define $ac_tr_func 1
12987EOF
12988
12989else
12990 echo "$ac_t""no" 1>&6
270a909e
VZ
12991fi
12992done
12993
1e487827 12994
698dcdb6
VZ
12995if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
12996 for ac_func in fcntl flock
4f3c5f06 12997do
698dcdb6 12998echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29fd3c0c 12999echo "configure:13000: checking for $ac_func" >&5
698dcdb6
VZ
13000if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13001 echo $ac_n "(cached) $ac_c" 1>&6
13002else
13003 cat > conftest.$ac_ext <<EOF
29fd3c0c 13004#line 13005 "configure"
4f3c5f06
VZ
13005#include "confdefs.h"
13006/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13007 which can conflict with char $ac_func(); below. */
4f3c5f06
VZ
13008#include <assert.h>
13009/* Override any gcc2 internal prototype to avoid an error. */
13010/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13011 builtin and then its argument prototype would still apply. */
13012char $ac_func();
13013
13014int main() {
4f3c5f06
VZ
13015
13016/* The GNU C library defines this for functions which it implements
13017 to always fail with ENOSYS. Some functions are actually named
13018 something starting with __ and the normal name is an alias. */
13019#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13020choke me
13021#else
698dcdb6 13022$ac_func();
4f3c5f06
VZ
13023#endif
13024
698dcdb6
VZ
13025; return 0; }
13026EOF
29fd3c0c 13027if { (eval echo configure:13028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13028 rm -rf conftest*
13029 eval "ac_cv_func_$ac_func=yes"
13030else
13031 echo "configure: failed program was:" >&5
13032 cat conftest.$ac_ext >&5
13033 rm -rf conftest*
13034 eval "ac_cv_func_$ac_func=no"
13035fi
13036rm -f conftest*
13037fi
13038
13039if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13040 echo "$ac_t""yes" 1>&6
13041 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13042 cat >> confdefs.h <<EOF
13043#define $ac_tr_func 1
4f3c5f06
VZ
13044EOF
13045 break
698dcdb6
VZ
13046else
13047 echo "$ac_t""no" 1>&6
4f3c5f06
VZ
13048fi
13049done
13050
698dcdb6 13051
4f3c5f06 13052 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
698dcdb6 13053 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f3c5f06
VZ
13054 wxUSE_SNGLINST_CHECKER=no
13055 fi
13056fi
13057
270a909e
VZ
13058for ac_func in timegm
13059do
698dcdb6 13060echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29fd3c0c 13061echo "configure:13062: checking for $ac_func" >&5
698dcdb6
VZ
13062if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13063 echo $ac_n "(cached) $ac_c" 1>&6
13064else
13065 cat > conftest.$ac_ext <<EOF
29fd3c0c 13066#line 13067 "configure"
270a909e
VZ
13067#include "confdefs.h"
13068/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13069 which can conflict with char $ac_func(); below. */
270a909e
VZ
13070#include <assert.h>
13071/* Override any gcc2 internal prototype to avoid an error. */
13072/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13073 builtin and then its argument prototype would still apply. */
13074char $ac_func();
13075
13076int main() {
270a909e
VZ
13077
13078/* The GNU C library defines this for functions which it implements
13079 to always fail with ENOSYS. Some functions are actually named
13080 something starting with __ and the normal name is an alias. */
13081#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13082choke me
13083#else
698dcdb6 13084$ac_func();
270a909e
VZ
13085#endif
13086
698dcdb6 13087; return 0; }
270a909e 13088EOF
29fd3c0c 13089if { (eval echo configure:13090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13090 rm -rf conftest*
13091 eval "ac_cv_func_$ac_func=yes"
13092else
13093 echo "configure: failed program was:" >&5
13094 cat conftest.$ac_ext >&5
13095 rm -rf conftest*
13096 eval "ac_cv_func_$ac_func=no"
13097fi
13098rm -f conftest*
13099fi
10f2d63a 13100
698dcdb6
VZ
13101if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13102 echo "$ac_t""yes" 1>&6
13103 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13104 cat >> confdefs.h <<EOF
13105#define $ac_tr_func 1
13106EOF
13107
13108else
13109 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13110fi
13111done
13112
698dcdb6 13113
8fd0d89b
VZ
13114for ac_func in putenv setenv
13115do
698dcdb6 13116echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29fd3c0c 13117echo "configure:13118: checking for $ac_func" >&5
698dcdb6
VZ
13118if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13119 echo $ac_n "(cached) $ac_c" 1>&6
13120else
13121 cat > conftest.$ac_ext <<EOF
29fd3c0c 13122#line 13123 "configure"
8fd0d89b
VZ
13123#include "confdefs.h"
13124/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13125 which can conflict with char $ac_func(); below. */
8fd0d89b
VZ
13126#include <assert.h>
13127/* Override any gcc2 internal prototype to avoid an error. */
13128/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13129 builtin and then its argument prototype would still apply. */
13130char $ac_func();
13131
13132int main() {
8fd0d89b
VZ
13133
13134/* The GNU C library defines this for functions which it implements
13135 to always fail with ENOSYS. Some functions are actually named
13136 something starting with __ and the normal name is an alias. */
13137#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13138choke me
13139#else
698dcdb6 13140$ac_func();
8fd0d89b
VZ
13141#endif
13142
698dcdb6
VZ
13143; return 0; }
13144EOF
29fd3c0c 13145if { (eval echo configure:13146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13146 rm -rf conftest*
13147 eval "ac_cv_func_$ac_func=yes"
13148else
13149 echo "configure: failed program was:" >&5
13150 cat conftest.$ac_ext >&5
13151 rm -rf conftest*
13152 eval "ac_cv_func_$ac_func=no"
13153fi
13154rm -f conftest*
13155fi
13156
13157if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13158 echo "$ac_t""yes" 1>&6
13159 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13160 cat >> confdefs.h <<EOF
13161#define $ac_tr_func 1
8fd0d89b
VZ
13162EOF
13163 break
698dcdb6
VZ
13164else
13165 echo "$ac_t""no" 1>&6
8fd0d89b
VZ
13166fi
13167done
13168
698dcdb6 13169
b12915c1
VZ
13170HAVE_SOME_SLEEP_FUNC=0
13171if test "$USE_BEOS" = 1; then
698dcdb6 13172 cat >> confdefs.h <<\EOF
b12915c1
VZ
13173#define HAVE_SLEEP 1
13174EOF
13175
13176 HAVE_SOME_SLEEP_FUNC=1
13177fi
13178
b4085ce6 13179if test "$USE_MAC" = 1; then
698dcdb6 13180 cat >> confdefs.h <<\EOF
b4085ce6
GD
13181#define HAVE_USLEEP 1
13182EOF
13183
13184 HAVE_SOME_SLEEP_FUNC=1
13185fi
13186
b12915c1
VZ
13187if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
13188 POSIX4_LINK=
698dcdb6 13189 for ac_func in nanosleep
10f2d63a 13190do
698dcdb6 13191echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29fd3c0c 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
29fd3c0c 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
29fd3c0c 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
10f2d63a
VZ
13239#define HAVE_NANOSLEEP 1
13240EOF
13241
13242else
698dcdb6
VZ
13243 echo "$ac_t""no" 1>&6
13244echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
29fd3c0c 13245echo "configure:13246: checking for nanosleep in -lposix4" >&5
698dcdb6
VZ
13246ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
13247if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13248 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13249else
698dcdb6 13250 ac_save_LIBS="$LIBS"
10f2d63a 13251LIBS="-lposix4 $LIBS"
698dcdb6 13252cat > conftest.$ac_ext <<EOF
29fd3c0c 13253#line 13254 "configure"
10f2d63a
VZ
13254#include "confdefs.h"
13255/* Override any gcc2 internal prototype to avoid an error. */
13256/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13257 builtin and then its argument prototype would still apply. */
13258char nanosleep();
13259
13260int main() {
13261nanosleep()
13262; return 0; }
13263EOF
29fd3c0c 13264if { (eval echo configure:13265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13265 rm -rf conftest*
13266 eval "ac_cv_lib_$ac_lib_var=yes"
13267else
13268 echo "configure: failed program was:" >&5
13269 cat conftest.$ac_ext >&5
13270 rm -rf conftest*
13271 eval "ac_cv_lib_$ac_lib_var=no"
13272fi
13273rm -f conftest*
13274LIBS="$ac_save_LIBS"
13275
13276fi
13277if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13278 echo "$ac_t""yes" 1>&6
13279
13280 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13281#define HAVE_NANOSLEEP 1
13282EOF
13283
b12915c1 13284 POSIX4_LINK="-lposix4"
698dcdb6 13285
10f2d63a 13286else
698dcdb6 13287 echo "$ac_t""no" 1>&6
10f2d63a 13288
698dcdb6 13289 for ac_func in usleep
10f2d63a 13290do
698dcdb6 13291echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29fd3c0c 13292echo "configure:13293: checking for $ac_func" >&5
698dcdb6
VZ
13293if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13294 echo $ac_n "(cached) $ac_c" 1>&6
13295else
13296 cat > conftest.$ac_ext <<EOF
29fd3c0c 13297#line 13298 "configure"
10f2d63a
VZ
13298#include "confdefs.h"
13299/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13300 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13301#include <assert.h>
13302/* Override any gcc2 internal prototype to avoid an error. */
13303/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13304 builtin and then its argument prototype would still apply. */
13305char $ac_func();
13306
13307int main() {
10f2d63a
VZ
13308
13309/* The GNU C library defines this for functions which it implements
13310 to always fail with ENOSYS. Some functions are actually named
13311 something starting with __ and the normal name is an alias. */
13312#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13313choke me
13314#else
698dcdb6 13315$ac_func();
10f2d63a
VZ
13316#endif
13317
698dcdb6
VZ
13318; return 0; }
13319EOF
29fd3c0c 13320if { (eval echo configure:13321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13321 rm -rf conftest*
13322 eval "ac_cv_func_$ac_func=yes"
13323else
13324 echo "configure: failed program was:" >&5
13325 cat conftest.$ac_ext >&5
13326 rm -rf conftest*
13327 eval "ac_cv_func_$ac_func=no"
13328fi
13329rm -f conftest*
13330fi
13331
13332if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13333 echo "$ac_t""yes" 1>&6
13334 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13335 cat >> confdefs.h <<EOF
13336#define $ac_tr_func 1
13337EOF
13338 cat >> confdefs.h <<\EOF
b4085ce6
GD
13339#define HAVE_USLEEP 1
13340EOF
13341
10f2d63a 13342else
698dcdb6
VZ
13343 echo "$ac_t""no" 1>&6
13344echo "configure: warning: wxSleep() function will not work" 1>&2
13345
10f2d63a
VZ
13346fi
13347done
13348
698dcdb6
VZ
13349
13350
10f2d63a
VZ
13351fi
13352
698dcdb6
VZ
13353
13354
10f2d63a
VZ
13355fi
13356done
13357
b12915c1 13358fi
10f2d63a
VZ
13359
13360for ac_func in uname gethostname
13361do
698dcdb6 13362echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29fd3c0c 13363echo "configure:13364: checking for $ac_func" >&5
698dcdb6
VZ
13364if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13365 echo $ac_n "(cached) $ac_c" 1>&6
13366else
13367 cat > conftest.$ac_ext <<EOF
29fd3c0c 13368#line 13369 "configure"
10f2d63a
VZ
13369#include "confdefs.h"
13370/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13371 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13372#include <assert.h>
13373/* Override any gcc2 internal prototype to avoid an error. */
13374/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13375 builtin and then its argument prototype would still apply. */
13376char $ac_func();
13377
13378int main() {
10f2d63a
VZ
13379
13380/* The GNU C library defines this for functions which it implements
13381 to always fail with ENOSYS. Some functions are actually named
13382 something starting with __ and the normal name is an alias. */
13383#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13384choke me
13385#else
698dcdb6 13386$ac_func();
10f2d63a
VZ
13387#endif
13388
698dcdb6
VZ
13389; return 0; }
13390EOF
29fd3c0c 13391if { (eval echo configure:13392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13392 rm -rf conftest*
13393 eval "ac_cv_func_$ac_func=yes"
13394else
13395 echo "configure: failed program was:" >&5
13396 cat conftest.$ac_ext >&5
13397 rm -rf conftest*
13398 eval "ac_cv_func_$ac_func=no"
13399fi
13400rm -f conftest*
13401fi
13402
13403if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13404 echo "$ac_t""yes" 1>&6
13405 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13406 cat >> confdefs.h <<EOF
13407#define $ac_tr_func 1
10f2d63a
VZ
13408EOF
13409 break
698dcdb6
VZ
13410else
13411 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13412fi
13413done
13414
698dcdb6
VZ
13415
13416
13417ac_ext=C
13418# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 13419ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
13420ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13421ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13422cross_compiling=$ac_cv_prog_cxx_cross
13423
6098c7f9 13424
10f2d63a
VZ
13425for ac_func in strtok_r
13426do
698dcdb6 13427echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29fd3c0c 13428echo "configure:13429: checking for $ac_func" >&5
698dcdb6
VZ
13429if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13430 echo $ac_n "(cached) $ac_c" 1>&6
13431else
13432 cat > conftest.$ac_ext <<EOF
29fd3c0c 13433#line 13434 "configure"
10f2d63a
VZ
13434#include "confdefs.h"
13435/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13436 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13437#include <assert.h>
13438/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
13439#ifdef __cplusplus
13440extern "C"
13441#endif
10f2d63a 13442/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13443 builtin and then its argument prototype would still apply. */
13444char $ac_func();
13445
13446int main() {
10f2d63a
VZ
13447
13448/* The GNU C library defines this for functions which it implements
13449 to always fail with ENOSYS. Some functions are actually named
13450 something starting with __ and the normal name is an alias. */
13451#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13452choke me
13453#else
698dcdb6 13454$ac_func();
10f2d63a
VZ
13455#endif
13456
698dcdb6 13457; return 0; }
10f2d63a 13458EOF
29fd3c0c 13459if { (eval echo configure:13460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13460 rm -rf conftest*
13461 eval "ac_cv_func_$ac_func=yes"
13462else
13463 echo "configure: failed program was:" >&5
13464 cat conftest.$ac_ext >&5
13465 rm -rf conftest*
13466 eval "ac_cv_func_$ac_func=no"
13467fi
13468rm -f conftest*
13469fi
10f2d63a 13470
698dcdb6
VZ
13471if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13472 echo "$ac_t""yes" 1>&6
13473 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13474 cat >> confdefs.h <<EOF
13475#define $ac_tr_func 1
13476EOF
13477
13478else
13479 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13480fi
13481done
13482
698dcdb6 13483
6098c7f9 13484ac_ext=c
698dcdb6 13485# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 13486ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13487ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13488ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13489cross_compiling=$ac_cv_prog_cc_cross
6232543b 13490
1e487827 13491
698dcdb6 13492INET_LINK=
10f2d63a
VZ
13493for ac_func in inet_addr
13494do
698dcdb6 13495echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29fd3c0c 13496echo "configure:13497: checking for $ac_func" >&5
698dcdb6
VZ
13497if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13498 echo $ac_n "(cached) $ac_c" 1>&6
13499else
13500 cat > conftest.$ac_ext <<EOF
29fd3c0c 13501#line 13502 "configure"
10f2d63a
VZ
13502#include "confdefs.h"
13503/* System header to define __stub macros and hopefully few prototypes,
698dcdb6
VZ
13504 which can conflict with char $ac_func(); below. */
13505#include <assert.h>
13506/* Override any gcc2 internal prototype to avoid an error. */
10f2d63a 13507/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13508 builtin and then its argument prototype would still apply. */
13509char $ac_func();
13510
13511int main() {
10f2d63a
VZ
13512
13513/* The GNU C library defines this for functions which it implements
13514 to always fail with ENOSYS. Some functions are actually named
1e487827
VS
13515 something starting with __ and the normal name is an alias. */
13516#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13517choke me
13518#else
698dcdb6 13519$ac_func();
1e487827 13520#endif
703e0a69 13521
698dcdb6
VZ
13522; return 0; }
13523EOF
29fd3c0c 13524if { (eval echo configure:13525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13525 rm -rf conftest*
13526 eval "ac_cv_func_$ac_func=yes"
13527else
13528 echo "configure: failed program was:" >&5
13529 cat conftest.$ac_ext >&5
13530 rm -rf conftest*
13531 eval "ac_cv_func_$ac_func=no"
13532fi
13533rm -f conftest*
13534fi
13535
13536if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13537 echo "$ac_t""yes" 1>&6
13538 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13539 cat >> confdefs.h <<EOF
13540#define $ac_tr_func 1
13541EOF
13542 cat >> confdefs.h <<\EOF
c63c7106
VZ
13543#define HAVE_INET_ADDR 1
13544EOF
13545
10f2d63a 13546else
698dcdb6
VZ
13547 echo "$ac_t""no" 1>&6
13548echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
29fd3c0c 13549echo "configure:13550: checking for inet_addr in -lnsl" >&5
698dcdb6
VZ
13550ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
13551if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13552 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 13553else
698dcdb6 13554 ac_save_LIBS="$LIBS"
c63c7106 13555LIBS="-lnsl $LIBS"
698dcdb6 13556cat > conftest.$ac_ext <<EOF
29fd3c0c 13557#line 13558 "configure"
c63c7106
VZ
13558#include "confdefs.h"
13559/* Override any gcc2 internal prototype to avoid an error. */
13560/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13561 builtin and then its argument prototype would still apply. */
13562char inet_addr();
13563
13564int main() {
13565inet_addr()
13566; return 0; }
13567EOF
29fd3c0c 13568if { (eval echo configure:13569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13569 rm -rf conftest*
13570 eval "ac_cv_lib_$ac_lib_var=yes"
13571else
13572 echo "configure: failed program was:" >&5
13573 cat conftest.$ac_ext >&5
13574 rm -rf conftest*
13575 eval "ac_cv_lib_$ac_lib_var=no"
13576fi
13577rm -f conftest*
13578LIBS="$ac_save_LIBS"
13579
13580fi
13581if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13582 echo "$ac_t""yes" 1>&6
c63c7106
VZ
13583 INET_LINK="nsl"
13584else
698dcdb6
VZ
13585 echo "$ac_t""no" 1>&6
13586echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
29fd3c0c 13587echo "configure:13588: checking for inet_addr in -lresolv" >&5
698dcdb6
VZ
13588ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
13589if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13590 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 13591else
698dcdb6 13592 ac_save_LIBS="$LIBS"
c63c7106 13593LIBS="-lresolv $LIBS"
698dcdb6 13594cat > conftest.$ac_ext <<EOF
29fd3c0c 13595#line 13596 "configure"
c63c7106
VZ
13596#include "confdefs.h"
13597/* Override any gcc2 internal prototype to avoid an error. */
13598/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13599 builtin and then its argument prototype would still apply. */
13600char inet_addr();
13601
13602int main() {
13603inet_addr()
13604; return 0; }
13605EOF
29fd3c0c 13606if { (eval echo configure:13607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13607 rm -rf conftest*
13608 eval "ac_cv_lib_$ac_lib_var=yes"
13609else
13610 echo "configure: failed program was:" >&5
13611 cat conftest.$ac_ext >&5
13612 rm -rf conftest*
13613 eval "ac_cv_lib_$ac_lib_var=no"
13614fi
13615rm -f conftest*
13616LIBS="$ac_save_LIBS"
c63c7106 13617
6232543b 13618fi
698dcdb6
VZ
13619if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13620 echo "$ac_t""yes" 1>&6
13621 INET_LINK="resolv"
13622
13623else
13624 echo "$ac_t""no" 1>&6
13625fi
c63c7106 13626
698dcdb6 13627
1e487827 13628fi
703e0a69 13629
698dcdb6
VZ
13630
13631
10f2d63a
VZ
13632fi
13633done
13634
698dcdb6 13635
10f2d63a
VZ
13636for ac_func in inet_aton
13637do
698dcdb6 13638echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29fd3c0c 13639echo "configure:13640: checking for $ac_func" >&5
698dcdb6
VZ
13640if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13641 echo $ac_n "(cached) $ac_c" 1>&6
13642else
13643 cat > conftest.$ac_ext <<EOF
29fd3c0c 13644#line 13645 "configure"
10f2d63a
VZ
13645#include "confdefs.h"
13646/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13647 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13648#include <assert.h>
13649/* Override any gcc2 internal prototype to avoid an error. */
13650/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13651 builtin and then its argument prototype would still apply. */
13652char $ac_func();
13653
13654int main() {
10f2d63a
VZ
13655
13656/* The GNU C library defines this for functions which it implements
13657 to always fail with ENOSYS. Some functions are actually named
13658 something starting with __ and the normal name is an alias. */
13659#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13660choke me
13661#else
698dcdb6 13662$ac_func();
10f2d63a
VZ
13663#endif
13664
698dcdb6
VZ
13665; return 0; }
13666EOF
29fd3c0c 13667if { (eval echo configure:13668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13668 rm -rf conftest*
13669 eval "ac_cv_func_$ac_func=yes"
13670else
13671 echo "configure: failed program was:" >&5
13672 cat conftest.$ac_ext >&5
13673 rm -rf conftest*
13674 eval "ac_cv_func_$ac_func=no"
13675fi
13676rm -f conftest*
13677fi
13678
13679if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13680 echo "$ac_t""yes" 1>&6
13681 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13682 cat >> confdefs.h <<EOF
13683#define $ac_tr_func 1
13684EOF
13685 cat >> confdefs.h <<\EOF
c63c7106
VZ
13686#define HAVE_INET_ATON 1
13687EOF
13688
10f2d63a 13689else
698dcdb6
VZ
13690 echo "$ac_t""no" 1>&6
13691 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
29fd3c0c 13692echo "configure:13693: checking for inet_aton in -l$INET_LINK" >&5
698dcdb6
VZ
13693ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
13694if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13695 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13696else
698dcdb6 13697 ac_save_LIBS="$LIBS"
c63c7106 13698LIBS="-l$INET_LINK $LIBS"
698dcdb6 13699cat > conftest.$ac_ext <<EOF
29fd3c0c 13700#line 13701 "configure"
10f2d63a
VZ
13701#include "confdefs.h"
13702/* Override any gcc2 internal prototype to avoid an error. */
13703/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13704 builtin and then its argument prototype would still apply. */
13705char inet_aton();
13706
13707int main() {
13708inet_aton()
13709; return 0; }
13710EOF
29fd3c0c 13711if { (eval echo configure:13712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13712 rm -rf conftest*
13713 eval "ac_cv_lib_$ac_lib_var=yes"
13714else
13715 echo "configure: failed program was:" >&5
13716 cat conftest.$ac_ext >&5
13717 rm -rf conftest*
13718 eval "ac_cv_lib_$ac_lib_var=no"
13719fi
13720rm -f conftest*
13721LIBS="$ac_save_LIBS"
13722
13723fi
13724if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13725 echo "$ac_t""yes" 1>&6
13726 cat >> confdefs.h <<\EOF
c63c7106 13727#define HAVE_INET_ATON 1
10f2d63a
VZ
13728EOF
13729
698dcdb6
VZ
13730else
13731 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13732fi
13733
698dcdb6 13734
c63c7106
VZ
13735fi
13736done
13737
698dcdb6 13738
c63c7106 13739if test "x$INET_LINK" != "x"; then
698dcdb6 13740 cat >> confdefs.h <<\EOF
c63c7106
VZ
13741#define HAVE_INET_ADDR 1
13742EOF
13743
13744 INET_LINK="-l$INET_LINK"
13745fi
10f2d63a
VZ
13746
13747fi
13748
698dcdb6
VZ
13749
13750cat > confcache <<\EOF
10f2d63a
VZ
13751# This file is a shell script that caches the results of configure
13752# tests run on this system so they can be shared between configure
698dcdb6
VZ
13753# scripts and configure runs. It is not useful on other systems.
13754# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 13755#
698dcdb6
VZ
13756# By default, configure uses ./config.cache as the cache file,
13757# creating it if it does not exist already. You can give configure
13758# the --cache-file=FILE option to use a different cache file; that is
13759# what configure does when it calls configure scripts in
13760# subdirectories, so they share the cache.
13761# Giving --cache-file=/dev/null disables caching, for debugging configure.
13762# config.status only pays attention to the cache file if you give it the
13763# --recheck option to rerun configure.
10f2d63a 13764#
698dcdb6 13765EOF
10f2d63a
VZ
13766# The following way of writing the cache mishandles newlines in values,
13767# but we know of no workaround that is simple, portable, and efficient.
13768# So, don't put newlines in cache variables' values.
13769# Ultrix sh set writes to stderr and can't be redirected directly,
13770# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
13771(set) 2>&1 |
13772 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13773 *ac_space=\ *)
13774 # `set' does not quote correctly, so add quotes (double-quote substitution
13775 # turns \\\\ into \\, and sed turns \\ into \).
13776 sed -n \
13777 -e "s/'/'\\\\''/g" \
13778 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13779 ;;
13780 *)
13781 # `set' quotes correctly as required by POSIX, so do not add quotes.
13782 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13783 ;;
13784 esac >> confcache
13785if cmp -s $cache_file confcache; then
13786 :
13787else
10f2d63a 13788 if test -w $cache_file; then
698dcdb6
VZ
13789 echo "updating cache $cache_file"
13790 cat confcache > $cache_file
10f2d63a
VZ
13791 else
13792 echo "not updating unwritable cache $cache_file"
13793 fi
13794fi
13795rm -f confcache
13796
698dcdb6
VZ
13797
13798
b089607b 13799if test "$TOOLKIT" != "MSW"; then
10f2d63a 13800
698dcdb6 13801
10f2d63a
VZ
13802THREADS_LINK=""
13803THREADS_OBJ=""
13804
13805if test "$wxUSE_THREADS" = "yes" ; then
13806 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 13807 echo "configure: warning: Threads are not supported under WINE" 1>&2
10f2d63a 13808 wxUSE_THREADS="no"
b12915c1 13809 elif test "$USE_BEOS" = 1; then
698dcdb6 13810 echo "configure: warning: BeOS threads are not yet supported" 1>&2
b12915c1 13811 wxUSE_THREADS="no"
10f2d63a
VZ
13812 fi
13813fi
13814
13815if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 13816
186837b0 13817 if test "$USE_AIX" = 1; then
f6bcfd97
BP
13818 THREADS_LIB=pthreads
13819 else
13820 THREADS_LIB=pthread
13821 fi
13822
698dcdb6 13823 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
29fd3c0c 13824echo "configure:13825: checking for pthread_create in -l$THREADS_LIB" >&5
698dcdb6
VZ
13825ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
13826if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13827 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13828else
698dcdb6 13829 ac_save_LIBS="$LIBS"
f6bcfd97 13830LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 13831cat > conftest.$ac_ext <<EOF
29fd3c0c 13832#line 13833 "configure"
10f2d63a
VZ
13833#include "confdefs.h"
13834/* Override any gcc2 internal prototype to avoid an error. */
13835/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13836 builtin and then its argument prototype would still apply. */
13837char pthread_create();
13838
13839int main() {
13840pthread_create()
13841; return 0; }
13842EOF
29fd3c0c 13843if { (eval echo configure:13844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13844 rm -rf conftest*
13845 eval "ac_cv_lib_$ac_lib_var=yes"
13846else
13847 echo "configure: failed program was:" >&5
13848 cat conftest.$ac_ext >&5
13849 rm -rf conftest*
13850 eval "ac_cv_lib_$ac_lib_var=no"
13851fi
13852rm -f conftest*
13853LIBS="$ac_save_LIBS"
10f2d63a 13854
698dcdb6
VZ
13855fi
13856if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13857 echo "$ac_t""yes" 1>&6
13858
10f2d63a 13859 THREADS_OBJ="threadpsx.lo"
f6bcfd97 13860 THREADS_LINK=$THREADS_LIB
698dcdb6 13861
10f2d63a 13862else
698dcdb6 13863 echo "$ac_t""no" 1>&6
10f2d63a 13864
698dcdb6 13865 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
29fd3c0c 13866echo "configure:13867: checking for pthread_create in -lc_r" >&5
698dcdb6
VZ
13867ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
13868if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13869 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13870else
698dcdb6 13871 ac_save_LIBS="$LIBS"
10f2d63a 13872LIBS="-lc_r $LIBS"
698dcdb6 13873cat > conftest.$ac_ext <<EOF
29fd3c0c 13874#line 13875 "configure"
10f2d63a
VZ
13875#include "confdefs.h"
13876/* Override any gcc2 internal prototype to avoid an error. */
13877/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13878 builtin and then its argument prototype would still apply. */
13879char pthread_create();
13880
13881int main() {
13882pthread_create()
13883; return 0; }
13884EOF
29fd3c0c 13885if { (eval echo configure:13886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13886 rm -rf conftest*
13887 eval "ac_cv_lib_$ac_lib_var=yes"
13888else
13889 echo "configure: failed program was:" >&5
13890 cat conftest.$ac_ext >&5
13891 rm -rf conftest*
13892 eval "ac_cv_lib_$ac_lib_var=no"
13893fi
13894rm -f conftest*
13895LIBS="$ac_save_LIBS"
10f2d63a 13896
698dcdb6
VZ
13897fi
13898if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13899 echo "$ac_t""yes" 1>&6
13900
10f2d63a
VZ
13901 THREADS_OBJ="threadpsx.lo"
13902 THREADS_LINK="c_r"
698dcdb6 13903
10f2d63a 13904else
698dcdb6 13905 echo "$ac_t""no" 1>&6
10f2d63a 13906
698dcdb6
VZ
13907 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
13908echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
29fd3c0c 13909echo "configure:13910: checking for sys/prctl.h" >&5
698dcdb6
VZ
13910if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13911 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13912else
698dcdb6 13913 cat > conftest.$ac_ext <<EOF
29fd3c0c 13914#line 13915 "configure"
10f2d63a
VZ
13915#include "confdefs.h"
13916#include <sys/prctl.h>
698dcdb6
VZ
13917EOF
13918ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29fd3c0c 13919{ (eval echo configure:13920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13920ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13921if test -z "$ac_err"; then
13922 rm -rf conftest*
13923 eval "ac_cv_header_$ac_safe=yes"
1e487827 13924else
698dcdb6
VZ
13925 echo "$ac_err" >&5
13926 echo "configure: failed program was:" >&5
10f2d63a 13927 cat conftest.$ac_ext >&5
698dcdb6
VZ
13928 rm -rf conftest*
13929 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13930fi
698dcdb6 13931rm -f conftest*
10f2d63a 13932fi
698dcdb6
VZ
13933if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13934 echo "$ac_t""yes" 1>&6
13935
1f8ae82f 13936 THREADS_OBJ="threadsgi.lo"
698dcdb6
VZ
13937
13938else
13939 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13940fi
13941
698dcdb6 13942
6232543b 13943fi
10f2d63a 13944
698dcdb6 13945
1e487827 13946fi
703e0a69 13947
698dcdb6 13948
10f2d63a
VZ
13949 if test -z "$THREADS_OBJ" ; then
13950 wxUSE_THREADS=no
698dcdb6 13951 echo "configure: warning: No thread support on this system" 1>&2
10f2d63a
VZ
13952 fi
13953fi
13954
13955if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 13956 for ac_func in thr_setconcurrency
70846f0a 13957do
698dcdb6 13958echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29fd3c0c 13959echo "configure:13960: checking for $ac_func" >&5
698dcdb6
VZ
13960if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13961 echo $ac_n "(cached) $ac_c" 1>&6
13962else
13963 cat > conftest.$ac_ext <<EOF
29fd3c0c 13964#line 13965 "configure"
70846f0a
VZ
13965#include "confdefs.h"
13966/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13967 which can conflict with char $ac_func(); below. */
70846f0a
VZ
13968#include <assert.h>
13969/* Override any gcc2 internal prototype to avoid an error. */
13970/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13971 builtin and then its argument prototype would still apply. */
13972char $ac_func();
13973
13974int main() {
70846f0a
VZ
13975
13976/* The GNU C library defines this for functions which it implements
13977 to always fail with ENOSYS. Some functions are actually named
13978 something starting with __ and the normal name is an alias. */
13979#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13980choke me
13981#else
698dcdb6 13982$ac_func();
70846f0a
VZ
13983#endif
13984
698dcdb6 13985; return 0; }
70846f0a 13986EOF
29fd3c0c 13987if { (eval echo configure:13988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13988 rm -rf conftest*
13989 eval "ac_cv_func_$ac_func=yes"
13990else
13991 echo "configure: failed program was:" >&5
13992 cat conftest.$ac_ext >&5
13993 rm -rf conftest*
13994 eval "ac_cv_func_$ac_func=no"
13995fi
13996rm -f conftest*
13997fi
70846f0a 13998
698dcdb6
VZ
13999if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14000 echo "$ac_t""yes" 1>&6
14001 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14002 cat >> confdefs.h <<EOF
14003#define $ac_tr_func 1
14004EOF
14005
14006else
14007 echo "$ac_t""no" 1>&6
70846f0a
VZ
14008fi
14009done
14010
698dcdb6
VZ
14011
14012
14013 for ac_hdr in sched.h
10f2d63a 14014do
698dcdb6
VZ
14015ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14016echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
29fd3c0c 14017echo "configure:14018: checking for $ac_hdr" >&5
698dcdb6
VZ
14018if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14019 echo $ac_n "(cached) $ac_c" 1>&6
14020else
14021 cat > conftest.$ac_ext <<EOF
29fd3c0c 14022#line 14023 "configure"
10f2d63a 14023#include "confdefs.h"
698dcdb6
VZ
14024#include <$ac_hdr>
14025EOF
14026ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29fd3c0c 14027{ (eval echo configure:14028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14028ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14029if test -z "$ac_err"; then
14030 rm -rf conftest*
14031 eval "ac_cv_header_$ac_safe=yes"
1e487827 14032else
698dcdb6
VZ
14033 echo "$ac_err" >&5
14034 echo "configure: failed program was:" >&5
10f2d63a 14035 cat conftest.$ac_ext >&5
698dcdb6
VZ
14036 rm -rf conftest*
14037 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14038fi
698dcdb6 14039rm -f conftest*
10f2d63a 14040fi
698dcdb6
VZ
14041if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14042 echo "$ac_t""yes" 1>&6
14043 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14044 cat >> confdefs.h <<EOF
14045#define $ac_tr_hdr 1
10f2d63a 14046EOF
698dcdb6
VZ
14047
14048else
14049 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14050fi
14051done
14052
698dcdb6
VZ
14053
14054 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
29fd3c0c 14055echo "configure:14056: checking for sched_yield in -l$THREADS_LINK" >&5
698dcdb6
VZ
14056ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
14057if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14058 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14059else
698dcdb6 14060 ac_save_LIBS="$LIBS"
10f2d63a 14061LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14062cat > conftest.$ac_ext <<EOF
29fd3c0c 14063#line 14064 "configure"
10f2d63a
VZ
14064#include "confdefs.h"
14065/* Override any gcc2 internal prototype to avoid an error. */
14066/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14067 builtin and then its argument prototype would still apply. */
14068char sched_yield();
14069
14070int main() {
14071sched_yield()
14072; return 0; }
14073EOF
29fd3c0c 14074if { (eval echo configure:14075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14075 rm -rf conftest*
14076 eval "ac_cv_lib_$ac_lib_var=yes"
14077else
14078 echo "configure: failed program was:" >&5
14079 cat conftest.$ac_ext >&5
14080 rm -rf conftest*
14081 eval "ac_cv_lib_$ac_lib_var=no"
14082fi
14083rm -f conftest*
14084LIBS="$ac_save_LIBS"
14085
14086fi
14087if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14088 echo "$ac_t""yes" 1>&6
14089 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14090#define HAVE_SCHED_YIELD 1
14091EOF
14092
14093else
698dcdb6
VZ
14094 echo "$ac_t""no" 1>&6
14095echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
29fd3c0c 14096echo "configure:14097: checking for sched_yield in -lposix4" >&5
698dcdb6
VZ
14097ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
14098if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14099 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14100else
698dcdb6 14101 ac_save_LIBS="$LIBS"
1e487827 14102LIBS="-lposix4 $LIBS"
698dcdb6 14103cat > conftest.$ac_ext <<EOF
29fd3c0c 14104#line 14105 "configure"
10f2d63a
VZ
14105#include "confdefs.h"
14106/* Override any gcc2 internal prototype to avoid an error. */
14107/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14108 builtin and then its argument prototype would still apply. */
14109char sched_yield();
14110
14111int main() {
14112sched_yield()
14113; return 0; }
14114EOF
29fd3c0c 14115if { (eval echo configure:14116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14116 rm -rf conftest*
14117 eval "ac_cv_lib_$ac_lib_var=yes"
14118else
14119 echo "configure: failed program was:" >&5
14120 cat conftest.$ac_ext >&5
14121 rm -rf conftest*
14122 eval "ac_cv_lib_$ac_lib_var=no"
14123fi
14124rm -f conftest*
14125LIBS="$ac_save_LIBS"
14126
14127fi
14128if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14129 echo "$ac_t""yes" 1>&6
14130 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14131#define HAVE_SCHED_YIELD 1
14132EOF
14133 POSIX4_LINK="-lposix4"
14134else
698dcdb6
VZ
14135 echo "$ac_t""no" 1>&6
14136echo "configure: warning: wxThread::Yield will not work properly" 1>&2
14137
6232543b 14138fi
10f2d63a 14139
698dcdb6 14140
1e487827 14141fi
703e0a69 14142
698dcdb6 14143
f6bcfd97 14144 HAVE_PRIOR_FUNCS=0
698dcdb6 14145 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
29fd3c0c 14146echo "configure:14147: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
698dcdb6
VZ
14147ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
14148if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14149 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14150else
698dcdb6 14151 ac_save_LIBS="$LIBS"
10f2d63a 14152LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14153cat > conftest.$ac_ext <<EOF
29fd3c0c 14154#line 14155 "configure"
10f2d63a
VZ
14155#include "confdefs.h"
14156/* Override any gcc2 internal prototype to avoid an error. */
14157/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14158 builtin and then its argument prototype would still apply. */
14159char pthread_attr_getschedpolicy();
14160
14161int main() {
14162pthread_attr_getschedpolicy()
14163; return 0; }
14164EOF
29fd3c0c 14165if { (eval echo configure:14166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14166 rm -rf conftest*
14167 eval "ac_cv_lib_$ac_lib_var=yes"
14168else
14169 echo "configure: failed program was:" >&5
14170 cat conftest.$ac_ext >&5
14171 rm -rf conftest*
14172 eval "ac_cv_lib_$ac_lib_var=no"
14173fi
14174rm -f conftest*
14175LIBS="$ac_save_LIBS"
14176
14177fi
14178if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14179 echo "$ac_t""yes" 1>&6
14180 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
29fd3c0c 14181echo "configure:14182: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
698dcdb6
VZ
14182ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
14183if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14184 echo $ac_n "(cached) $ac_c" 1>&6
14185else
14186 ac_save_LIBS="$LIBS"
f6bcfd97 14187LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14188cat > conftest.$ac_ext <<EOF
29fd3c0c 14189#line 14190 "configure"
f6bcfd97
BP
14190#include "confdefs.h"
14191/* Override any gcc2 internal prototype to avoid an error. */
14192/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14193 builtin and then its argument prototype would still apply. */
14194char pthread_attr_setschedparam();
14195
14196int main() {
14197pthread_attr_setschedparam()
14198; return 0; }
14199EOF
29fd3c0c 14200if { (eval echo configure:14201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14201 rm -rf conftest*
14202 eval "ac_cv_lib_$ac_lib_var=yes"
14203else
14204 echo "configure: failed program was:" >&5
14205 cat conftest.$ac_ext >&5
14206 rm -rf conftest*
14207 eval "ac_cv_lib_$ac_lib_var=no"
14208fi
14209rm -f conftest*
14210LIBS="$ac_save_LIBS"
14211
14212fi
14213if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14214 echo "$ac_t""yes" 1>&6
14215 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
29fd3c0c 14216echo "configure:14217: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
698dcdb6
VZ
14217ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14218if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14219 echo $ac_n "(cached) $ac_c" 1>&6
14220else
14221 ac_save_LIBS="$LIBS"
f6bcfd97 14222LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14223cat > conftest.$ac_ext <<EOF
29fd3c0c 14224#line 14225 "configure"
f6bcfd97
BP
14225#include "confdefs.h"
14226/* Override any gcc2 internal prototype to avoid an error. */
14227/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14228 builtin and then its argument prototype would still apply. */
14229char sched_get_priority_max();
14230
14231int main() {
14232sched_get_priority_max()
14233; return 0; }
14234EOF
29fd3c0c 14235if { (eval echo configure:14236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14236 rm -rf conftest*
14237 eval "ac_cv_lib_$ac_lib_var=yes"
14238else
14239 echo "configure: failed program was:" >&5
14240 cat conftest.$ac_ext >&5
14241 rm -rf conftest*
14242 eval "ac_cv_lib_$ac_lib_var=no"
14243fi
14244rm -f conftest*
14245LIBS="$ac_save_LIBS"
14246
14247fi
14248if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14249 echo "$ac_t""yes" 1>&6
f6bcfd97 14250 HAVE_PRIOR_FUNCS=1
10f2d63a 14251else
698dcdb6
VZ
14252 echo "$ac_t""no" 1>&6
14253echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
29fd3c0c 14254echo "configure:14255: checking for sched_get_priority_max in -lposix4" >&5
698dcdb6
VZ
14255ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14256if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14257 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 14258else
698dcdb6 14259 ac_save_LIBS="$LIBS"
1e487827 14260LIBS="-lposix4 $LIBS"
698dcdb6 14261cat > conftest.$ac_ext <<EOF
29fd3c0c 14262#line 14263 "configure"
10f2d63a 14263#include "confdefs.h"
6232543b 14264/* Override any gcc2 internal prototype to avoid an error. */
6232543b 14265/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14266 builtin and then its argument prototype would still apply. */
14267char sched_get_priority_max();
14268
14269int main() {
14270sched_get_priority_max()
14271; return 0; }
14272EOF
29fd3c0c 14273if { (eval echo configure:14274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14274 rm -rf conftest*
14275 eval "ac_cv_lib_$ac_lib_var=yes"
14276else
14277 echo "configure: failed program was:" >&5
14278 cat conftest.$ac_ext >&5
14279 rm -rf conftest*
14280 eval "ac_cv_lib_$ac_lib_var=no"
14281fi
14282rm -f conftest*
14283LIBS="$ac_save_LIBS"
10f2d63a 14284
698dcdb6
VZ
14285fi
14286if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14287 echo "$ac_t""yes" 1>&6
14288
f6bcfd97
BP
14289 HAVE_PRIOR_FUNCS=1
14290 POSIX4_LINK="-lposix4"
698dcdb6
VZ
14291
14292else
14293 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14294fi
14295
698dcdb6 14296
10f2d63a
VZ
14297fi
14298
698dcdb6
VZ
14299
14300else
14301 echo "$ac_t""no" 1>&6
6232543b 14302fi
10f2d63a 14303
698dcdb6
VZ
14304
14305else
14306 echo "$ac_t""no" 1>&6
1e487827 14307fi
703e0a69 14308
698dcdb6 14309
f6bcfd97 14310 if test "$HAVE_PRIOR_FUNCS" = 1; then
698dcdb6 14311 cat >> confdefs.h <<\EOF
f6bcfd97
BP
14312#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
14313EOF
14314
14315 else
698dcdb6 14316 echo "configure: warning: Setting thread priority will not work" 1>&2
f6bcfd97
BP
14317 fi
14318
698dcdb6 14319 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
29fd3c0c 14320echo "configure:14321: checking for pthread_cancel in -l$THREADS_LINK" >&5
698dcdb6
VZ
14321ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
14322if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14323 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14324else
698dcdb6 14325 ac_save_LIBS="$LIBS"
10f2d63a 14326LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14327cat > conftest.$ac_ext <<EOF
29fd3c0c 14328#line 14329 "configure"
10f2d63a
VZ
14329#include "confdefs.h"
14330/* Override any gcc2 internal prototype to avoid an error. */
14331/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14332 builtin and then its argument prototype would still apply. */
14333char pthread_cancel();
14334
14335int main() {
14336pthread_cancel()
14337; return 0; }
14338EOF
29fd3c0c 14339if { (eval echo configure:14340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14340 rm -rf conftest*
14341 eval "ac_cv_lib_$ac_lib_var=yes"
14342else
14343 echo "configure: failed program was:" >&5
14344 cat conftest.$ac_ext >&5
14345 rm -rf conftest*
14346 eval "ac_cv_lib_$ac_lib_var=no"
14347fi
14348rm -f conftest*
14349LIBS="$ac_save_LIBS"
14350
14351fi
14352if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14353 echo "$ac_t""yes" 1>&6
14354 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14355#define HAVE_PTHREAD_CANCEL 1
14356EOF
14357
14358else
698dcdb6
VZ
14359 echo "$ac_t""no" 1>&6
14360echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10f2d63a
VZ
14361fi
14362
1e487827 14363
698dcdb6 14364 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
29fd3c0c 14365echo "configure:14366: checking for pthread_cleanup_push/pop" >&5
698dcdb6
VZ
14366if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
14367 echo $ac_n "(cached) $ac_c" 1>&6
14368else
14369
14370 cat > conftest.$ac_ext <<EOF
29fd3c0c 14371#line 14372 "configure"
10f2d63a
VZ
14372#include "confdefs.h"
14373#include <pthread.h>
698dcdb6 14374int main() {
10f2d63a
VZ
14375
14376 pthread_cleanup_push(NULL, NULL);
14377 pthread_cleanup_pop(0);
698dcdb6
VZ
14378
14379; return 0; }
14380EOF
29fd3c0c 14381if { (eval echo configure:14382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14382 rm -rf conftest*
14383
10f2d63a 14384 wx_cv_func_pthread_cleanup_push=yes
698dcdb6 14385
10f2d63a 14386else
698dcdb6
VZ
14387 echo "configure: failed program was:" >&5
14388 cat conftest.$ac_ext >&5
14389 rm -rf conftest*
14390
10f2d63a 14391 wx_cv_func_pthread_cleanup_push=no
698dcdb6 14392
6232543b 14393fi
698dcdb6
VZ
14394rm -f conftest*
14395
1e487827 14396fi
698dcdb6
VZ
14397
14398echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
10f2d63a 14399
d9b9876f 14400 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
698dcdb6 14401 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14402#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
14403EOF
14404
14405 fi
14406
698dcdb6
VZ
14407
14408 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
29fd3c0c 14409echo "configure:14410: checking for pthread_mutexattr_t" >&5
698dcdb6
VZ
14410if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
14411 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 14412else
698dcdb6
VZ
14413
14414 cat > conftest.$ac_ext <<EOF
29fd3c0c 14415#line 14416 "configure"
d9b9876f
VZ
14416#include "confdefs.h"
14417#include <pthread.h>
698dcdb6 14418int main() {
d9b9876f
VZ
14419
14420 pthread_mutexattr_t attr;
14421 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
698dcdb6
VZ
14422
14423; return 0; }
14424EOF
29fd3c0c 14425if { (eval echo configure:14426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14426 rm -rf conftest*
14427
d9b9876f 14428 wx_cv_type_pthread_mutexattr_t=yes
698dcdb6 14429
d9b9876f 14430else
698dcdb6
VZ
14431 echo "configure: failed program was:" >&5
14432 cat conftest.$ac_ext >&5
14433 rm -rf conftest*
14434
d9b9876f 14435 wx_cv_type_pthread_mutexattr_t=no
698dcdb6
VZ
14436
14437
6232543b 14438fi
698dcdb6
VZ
14439rm -f conftest*
14440
1e487827 14441fi
698dcdb6
VZ
14442
14443echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
d9b9876f
VZ
14444
14445 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
698dcdb6 14446 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14447#define HAVE_PTHREAD_MUTEXATTR_T 1
14448EOF
14449
14450 else
698dcdb6 14451 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
29fd3c0c 14452echo "configure:14453: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
698dcdb6
VZ
14453if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
14454 echo $ac_n "(cached) $ac_c" 1>&6
14455else
14456
14457 cat > conftest.$ac_ext <<EOF
29fd3c0c 14458#line 14459 "configure"
d9b9876f
VZ
14459#include "confdefs.h"
14460#include <pthread.h>
698dcdb6 14461int main() {
d9b9876f
VZ
14462
14463 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
698dcdb6
VZ
14464
14465; return 0; }
14466EOF
29fd3c0c 14467if { (eval echo configure:14468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14468 rm -rf conftest*
14469
d9b9876f 14470 wx_cv_type_pthread_rec_mutex_init=yes
698dcdb6 14471
d9b9876f 14472else
698dcdb6
VZ
14473 echo "configure: failed program was:" >&5
14474 cat conftest.$ac_ext >&5
14475 rm -rf conftest*
14476
d9b9876f 14477 wx_cv_type_pthread_rec_mutex_init=no
698dcdb6
VZ
14478
14479
6232543b 14480fi
698dcdb6
VZ
14481rm -f conftest*
14482
1e487827 14483fi
698dcdb6
VZ
14484
14485echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
3765e936 14486 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
698dcdb6 14487 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14488#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
14489EOF
14490
14491 else
698dcdb6 14492 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
d9b9876f
VZ
14493 fi
14494 fi
14495
10f2d63a 14496 THREADS_LINK="-l$THREADS_LINK"
186837b0
VZ
14497
14498 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
14499 CFLAGS="${CFLAGS} -mt"
14500 CXXFLAGS="${CXXFLAGS} -mt"
14501 LDFLAGS="${LDFLAGS} -mt"
14502 fi
10f2d63a
VZ
14503fi
14504
14505fi
14506
14507if test "$wxUSE_THREADS" = "yes"; then
698dcdb6 14508 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14509#define wxUSE_THREADS 1
14510EOF
14511
698dcdb6 14512
2c6025bc 14513 if test "$wxUSE_MAC" = "0"; then
10f2d63a 14514 CFLAGS="${CFLAGS} -D_REENTRANT"
2c6025bc
GD
14515 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14516 fi
10f2d63a
VZ
14517
14518 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
14519else
14520 if test "$ac_cv_func_strtok_r" = "yes"; then
698dcdb6 14521 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
29fd3c0c 14522echo "configure:14523: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
14523 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
14524 CFLAGS="${CFLAGS} -D_REENTRANT"
14525 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
698dcdb6 14526 echo "$ac_t""yes" 1>&6
ab9b9eab 14527 else
698dcdb6 14528 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14529 fi
14530 fi
14531fi
14532
6f72b082 14533if test "$WXGTK20" = 1 ; then
698dcdb6 14534 cat >> confdefs.h <<EOF
6f72b082 14535#define __WXGTK20__ $WXGTK20
13111b2a
VZ
14536EOF
14537
14538 WXGTK12=1
14539fi
14540
10f2d63a 14541if test "$WXGTK12" = 1 ; then
698dcdb6 14542 cat >> confdefs.h <<EOF
10f2d63a
VZ
14543#define __WXGTK12__ $WXGTK12
14544EOF
14545
14546fi
14547
f6bcfd97 14548if test "$WXGTK127" = 1 ; then
698dcdb6 14549 cat >> confdefs.h <<EOF
f6bcfd97
BP
14550#define __WXGTK127__ $WXGTK127
14551EOF
14552
14553fi
14554
10f2d63a
VZ
14555if test "$WXWINE" = 1 ; then
14556 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
14557fi
14558
b4085ce6 14559if test "$wxUSE_MAC" = 1 ; then
2c6025bc 14560 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON"
ea5999b9 14561 CFLAGS="${CFLAGS} -fno-common -fpascal-strings"
0c451ef3 14562 CPPFLAGS="${CPPFLAGS} -cpp-precomp -fno-common -fpascal-strings"
2f51a9ec
GD
14563 # Extract the first word of "Rez", so it can be a program name with args.
14564set dummy Rez; ac_word=$2
698dcdb6 14565echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
29fd3c0c 14566echo "configure:14567: checking for $ac_word" >&5
698dcdb6
VZ
14567if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then
14568 echo $ac_n "(cached) $ac_c" 1>&6
2f51a9ec
GD
14569else
14570 if test -n "$REZ"; then
14571 ac_cv_prog_REZ="$REZ" # Let the user override the test.
14572else
698dcdb6
VZ
14573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14574 ac_dummy="$PATH"
14575 for ac_dir in $ac_dummy; do
14576 test -z "$ac_dir" && ac_dir=.
14577 if test -f $ac_dir/$ac_word; then
14578 ac_cv_prog_REZ="Rez"
14579 break
14580 fi
14581 done
14582 IFS="$ac_save_ifs"
2f51a9ec
GD
14583 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
14584fi
14585fi
698dcdb6 14586REZ="$ac_cv_prog_REZ"
2f51a9ec 14587if test -n "$REZ"; then
698dcdb6 14588 echo "$ac_t""$REZ" 1>&6
2f51a9ec 14589else
698dcdb6 14590 echo "$ac_t""no" 1>&6
2f51a9ec
GD
14591fi
14592
14593 # Extract the first word of "Derez", so it can be a program name with args.
14594set dummy Derez; ac_word=$2
698dcdb6 14595echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
29fd3c0c 14596echo "configure:14597: checking for $ac_word" >&5
698dcdb6
VZ
14597if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
14598 echo $ac_n "(cached) $ac_c" 1>&6
2f51a9ec
GD
14599else
14600 if test -n "$DEREZ"; then
14601 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
14602else
698dcdb6
VZ
14603 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14604 ac_dummy="$PATH"
14605 for ac_dir in $ac_dummy; do
14606 test -z "$ac_dir" && ac_dir=.
14607 if test -f $ac_dir/$ac_word; then
14608 ac_cv_prog_DEREZ="Derez"
14609 break
14610 fi
14611 done
14612 IFS="$ac_save_ifs"
2f51a9ec
GD
14613 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
14614fi
14615fi
698dcdb6 14616DEREZ="$ac_cv_prog_DEREZ"
2f51a9ec 14617if test -n "$DEREZ"; then
698dcdb6 14618 echo "$ac_t""$DEREZ" 1>&6
2f51a9ec 14619else
698dcdb6 14620 echo "$ac_t""no" 1>&6
2f51a9ec
GD
14621fi
14622
14623 RESCOMP=${REZ}
14624 REZFLAGS="-d __UNIX__ -useDF"
14625 DEREZFLAGS="Carbon.r -useDF"
14626 RESFLAGS="Carbon.r -t APPL"
14627 LIBWXMACRES="\$(LIBWX_MACRES)"
14628 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
b4085ce6
GD
14629fi
14630
10f2d63a
VZ
14631if test "$wxUSE_CYGWIN" = 1 ; then
14632 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
14633fi
14634
14635WXDEBUG=
14636
14637if test "$wxUSE_DEBUG_INFO" = "yes" ; then
14638 WXDEBUG="-g"
14639 wxUSE_OPTIMISE=no
14640fi
14641
14642if test "$wxUSE_DEBUG_GDB" = "yes" ; then
14643 wxUSE_DEBUG_INFO=yes
14644 WXDEBUG="-ggdb"
14645fi
14646
14647if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
698dcdb6 14648 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14649#define WXDEBUG 1
14650EOF
14651
14652 WXDEBUG_DEFINE="-D__WXDEBUG__"
14653else
14654 if test "$wxUSE_GTK" = 1 ; then
14655 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
14656 fi
14657fi
14658
14659if test "$wxUSE_MEM_TRACING" = "yes" ; then
698dcdb6 14660 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14661#define wxUSE_MEMORY_TRACING 1
14662EOF
14663
698dcdb6 14664 cat >> confdefs.h <<\EOF
10f2d63a 14665#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
14666EOF
14667
698dcdb6 14668 cat >> confdefs.h <<\EOF
47c13eb7 14669#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
14670EOF
14671
14672 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
14673fi
14674
14675if test "$wxUSE_DMALLOC" = "yes" ; then
14676 DMALLOC_LINK="-ldmalloc"
14677fi
14678
14679PROFILE=
14680if test "$wxUSE_PROFILE" = "yes" ; then
14681 PROFILE="-pg"
14682fi
14683
14684DEP_INFO_FLAGS=
caa2c79b 14685CODE_GEN_FLAGS=
0f3f1cbc 14686CODE_GEN_FLAGS_CXX=
10f2d63a
VZ
14687if test "$GCC" = yes ; then
14688 if test "$wxUSE_NO_RTTI" = "yes" ; then
0f3f1cbc 14689 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
14690 fi
14691 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
0f3f1cbc 14692 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
14693 fi
14694 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 14695 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
14696 fi
14697 if test "$wxUSE_NO_DEPS" = "no" ; then
14698 DEP_INFO_FLAGS="-MMD"
14699 fi
14700fi
14701
698dcdb6 14702
10f2d63a
VZ
14703CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
14704CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
14705if test "$wxUSE_OPTIMISE" = "no" ; then
14706 OPTIMISE=
14707else
14708 if test "$GCC" = yes ; then
14709 OPTIMISE="-O2"
14710 case "${host}" in
14711 i586-*-*|i686-*-* )
14712 OPTIMISE="${OPTIMISE} "
14713 ;;
14714 esac
14715 else
14716 OPTIMISE="-O"
14717 fi
14718fi
14719
54276ccf
VZ
14720if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
14721 cat >> confdefs.h <<\EOF
14722#define WXWIN_COMPATIBILITY_2 1
14723EOF
14724
14725
14726 WXWIN_COMPATIBILITY_2_2="yes"
14727fi
14728
14729if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
14730 cat >> confdefs.h <<\EOF
14731#define WXWIN_COMPATIBILITY_2_2 1
14732EOF
14733
14734fi
14735
698dcdb6 14736
10f2d63a 14737ZLIB_INCLUDE=
422107f9 14738if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
698dcdb6 14739 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14740#define wxUSE_ZLIB 1
14741EOF
14742
422107f9
VZ
14743 if test "$wxUSE_ZLIB" = "yes" ; then
14744 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
14745 else
14746 ZLIB_LINK=
698dcdb6
VZ
14747 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
14748echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
29fd3c0c 14749echo "configure:14750: checking for zlib.h" >&5
698dcdb6
VZ
14750if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14751 echo $ac_n "(cached) $ac_c" 1>&6
14752else
14753 cat > conftest.$ac_ext <<EOF
29fd3c0c 14754#line 14755 "configure"
422107f9
VZ
14755#include "confdefs.h"
14756#include <zlib.h>
698dcdb6
VZ
14757EOF
14758ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29fd3c0c 14759{ (eval echo configure:14760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14760ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14761if test -z "$ac_err"; then
14762 rm -rf conftest*
14763 eval "ac_cv_header_$ac_safe=yes"
422107f9 14764else
698dcdb6
VZ
14765 echo "$ac_err" >&5
14766 echo "configure: failed program was:" >&5
422107f9 14767 cat conftest.$ac_ext >&5
698dcdb6
VZ
14768 rm -rf conftest*
14769 eval "ac_cv_header_$ac_safe=no"
422107f9 14770fi
698dcdb6 14771rm -f conftest*
422107f9 14772fi
698dcdb6
VZ
14773if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14774 echo "$ac_t""yes" 1>&6
14775 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
29fd3c0c 14776echo "configure:14777: checking for deflate in -lz" >&5
698dcdb6
VZ
14777ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
14778if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14779 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 14780else
698dcdb6 14781 ac_save_LIBS="$LIBS"
422107f9 14782LIBS="-lz $LIBS"
698dcdb6 14783cat > conftest.$ac_ext <<EOF
29fd3c0c 14784#line 14785 "configure"
422107f9
VZ
14785#include "confdefs.h"
14786/* Override any gcc2 internal prototype to avoid an error. */
14787/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14788 builtin and then its argument prototype would still apply. */
14789char deflate();
14790
14791int main() {
14792deflate()
14793; return 0; }
14794EOF
29fd3c0c 14795if { (eval echo configure:14796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14796 rm -rf conftest*
14797 eval "ac_cv_lib_$ac_lib_var=yes"
14798else
14799 echo "configure: failed program was:" >&5
14800 cat conftest.$ac_ext >&5
14801 rm -rf conftest*
14802 eval "ac_cv_lib_$ac_lib_var=no"
14803fi
14804rm -f conftest*
14805LIBS="$ac_save_LIBS"
14806
14807fi
14808if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14809 echo "$ac_t""yes" 1>&6
422107f9 14810 ZLIB_LINK="-lz"
698dcdb6
VZ
14811else
14812 echo "$ac_t""no" 1>&6
422107f9
VZ
14813fi
14814
698dcdb6
VZ
14815else
14816 echo "$ac_t""no" 1>&6
422107f9
VZ
14817fi
14818
14819 if test "x$ZLIB_LINK" = "x" ; then
698dcdb6 14820 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
422107f9
VZ
14821 fi
14822 fi
10f2d63a
VZ
14823fi
14824
14825PNG_INCLUDE=
422107f9 14826if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
698dcdb6 14827 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14828#define wxUSE_LIBPNG 1
14829EOF
14830
41fd4136 14831 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
698dcdb6 14832 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
422107f9
VZ
14833 wxUSE_LIBPNG=yes
14834 fi
14835
14836 if test "$wxUSE_LIBPNG" = "yes" ; then
14837 PNG_INCLUDE="-I\${top_srcdir}/src/png"
14838 else
14839 PNG_LINK=
698dcdb6
VZ
14840 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
14841echo $ac_n "checking for png.h""... $ac_c" 1>&6
29fd3c0c 14842echo "configure:14843: checking for png.h" >&5
698dcdb6
VZ
14843if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14844 echo $ac_n "(cached) $ac_c" 1>&6
14845else
14846 cat > conftest.$ac_ext <<EOF
29fd3c0c 14847#line 14848 "configure"
422107f9
VZ
14848#include "confdefs.h"
14849#include <png.h>
698dcdb6
VZ
14850EOF
14851ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29fd3c0c 14852{ (eval echo configure:14853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14853ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14854if test -z "$ac_err"; then
14855 rm -rf conftest*
14856 eval "ac_cv_header_$ac_safe=yes"
422107f9 14857else
698dcdb6
VZ
14858 echo "$ac_err" >&5
14859 echo "configure: failed program was:" >&5
422107f9 14860 cat conftest.$ac_ext >&5
698dcdb6
VZ
14861 rm -rf conftest*
14862 eval "ac_cv_header_$ac_safe=no"
422107f9 14863fi
698dcdb6 14864rm -f conftest*
422107f9 14865fi
698dcdb6
VZ
14866if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14867 echo "$ac_t""yes" 1>&6
14868 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
29fd3c0c 14869echo "configure:14870: checking for png_check_sig in -lpng" >&5
698dcdb6
VZ
14870ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
14871if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14872 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 14873else
698dcdb6 14874 ac_save_LIBS="$LIBS"
422107f9 14875LIBS="-lpng -lz -lm $LIBS"
698dcdb6 14876cat > conftest.$ac_ext <<EOF
29fd3c0c 14877#line 14878 "configure"
422107f9
VZ
14878#include "confdefs.h"
14879/* Override any gcc2 internal prototype to avoid an error. */
14880/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14881 builtin and then its argument prototype would still apply. */
14882char png_check_sig();
14883
14884int main() {
14885png_check_sig()
14886; return 0; }
14887EOF
29fd3c0c 14888if { (eval echo configure:14889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14889 rm -rf conftest*
14890 eval "ac_cv_lib_$ac_lib_var=yes"
14891else
14892 echo "configure: failed program was:" >&5
14893 cat conftest.$ac_ext >&5
14894 rm -rf conftest*
14895 eval "ac_cv_lib_$ac_lib_var=no"
14896fi
14897rm -f conftest*
14898LIBS="$ac_save_LIBS"
14899
14900fi
14901if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14902 echo "$ac_t""yes" 1>&6
422107f9 14903 PNG_LINK="-lpng"
698dcdb6
VZ
14904else
14905 echo "$ac_t""no" 1>&6
422107f9
VZ
14906fi
14907
698dcdb6
VZ
14908
14909else
14910 echo "$ac_t""no" 1>&6
422107f9
VZ
14911fi
14912
14913 if test "x$PNG_LINK" = "x" ; then
698dcdb6 14914 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
14915 fi
14916 fi
14917
10f2d63a
VZ
14918 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
14919fi
14920
14921JPEG_INCLUDE=
422107f9 14922if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
698dcdb6 14923 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14924#define wxUSE_LIBJPEG 1
14925EOF
14926
422107f9
VZ
14927 if test "$wxUSE_LIBJPEG" = "yes" ; then
14928 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
14929 else
14930 JPEG_LINK=
463abc64 14931 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
29fd3c0c 14932echo "configure:14933: checking for jpeglib.h" >&5
463abc64 14933 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
698dcdb6
VZ
14934 echo $ac_n "(cached) $ac_c" 1>&6
14935else
14936 cat > conftest.$ac_ext <<EOF
29fd3c0c 14937#line 14938 "configure"
422107f9 14938#include "confdefs.h"
463abc64
VZ
14939
14940 #undef HAVE_STDLIB_H
14941 #include <stdio.h>
14942 #include <jpeglib.h>
14943
14944int main() {
14945
14946
14947; return 0; }
698dcdb6 14948EOF
29fd3c0c 14949if { (eval echo configure:14950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 14950 rm -rf conftest*
463abc64 14951 ac_cv_header_jpeglib_h=yes
6232543b 14952else
698dcdb6 14953 echo "configure: failed program was:" >&5
422107f9 14954 cat conftest.$ac_ext >&5
698dcdb6 14955 rm -rf conftest*
463abc64
VZ
14956 ac_cv_header_jpeglib_h=no
14957
422107f9 14958fi
698dcdb6 14959rm -f conftest*
463abc64 14960
422107f9 14961fi
463abc64
VZ
14962
14963 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
14964
14965 if test "$ac_cv_header_jpeglib_h" = "yes"; then
14966 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
29fd3c0c 14967echo "configure:14968: checking for jpeg_read_header in -ljpeg" >&5
698dcdb6
VZ
14968ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
14969if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14970 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 14971else
698dcdb6 14972 ac_save_LIBS="$LIBS"
422107f9 14973LIBS="-ljpeg $LIBS"
698dcdb6 14974cat > conftest.$ac_ext <<EOF
29fd3c0c 14975#line 14976 "configure"
422107f9
VZ
14976#include "confdefs.h"
14977/* Override any gcc2 internal prototype to avoid an error. */
14978/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14979 builtin and then its argument prototype would still apply. */
14980char jpeg_read_header();
14981
14982int main() {
14983jpeg_read_header()
14984; return 0; }
14985EOF
29fd3c0c 14986if { (eval echo configure:14987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14987 rm -rf conftest*
14988 eval "ac_cv_lib_$ac_lib_var=yes"
14989else
14990 echo "configure: failed program was:" >&5
14991 cat conftest.$ac_ext >&5
14992 rm -rf conftest*
14993 eval "ac_cv_lib_$ac_lib_var=no"
14994fi
14995rm -f conftest*
14996LIBS="$ac_save_LIBS"
14997
14998fi
14999if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15000 echo "$ac_t""yes" 1>&6
422107f9 15001 JPEG_LINK="-ljpeg"
698dcdb6
VZ
15002else
15003 echo "$ac_t""no" 1>&6
422107f9
VZ
15004fi
15005
463abc64 15006 fi
422107f9
VZ
15007
15008 if test "x$JPEG_LINK" = "x" ; then
698dcdb6 15009 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
15010 fi
15011 fi
10f2d63a
VZ
15012fi
15013
c7a2bf27 15014TIFF_INCLUDE=
0dcf9893 15015if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
698dcdb6 15016 cat >> confdefs.h <<\EOF
c7a2bf27
RR
15017#define wxUSE_LIBTIFF 1
15018EOF
15019
665bbe97 15020 if test "$wxUSE_LIBTIFF" = "yes" ; then
0dcf9893
VZ
15021 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
15022 else
15023 TIFF_LINK=
698dcdb6
VZ
15024 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
15025echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
29fd3c0c 15026echo "configure:15027: checking for tiffio.h" >&5
698dcdb6
VZ
15027if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15028 echo $ac_n "(cached) $ac_c" 1>&6
15029else
15030 cat > conftest.$ac_ext <<EOF
29fd3c0c 15031#line 15032 "configure"
0dcf9893
VZ
15032#include "confdefs.h"
15033#include <tiffio.h>
698dcdb6
VZ
15034EOF
15035ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29fd3c0c 15036{ (eval echo configure:15037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15037ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15038if test -z "$ac_err"; then
15039 rm -rf conftest*
15040 eval "ac_cv_header_$ac_safe=yes"
1e487827 15041else
698dcdb6
VZ
15042 echo "$ac_err" >&5
15043 echo "configure: failed program was:" >&5
0dcf9893 15044 cat conftest.$ac_ext >&5
698dcdb6
VZ
15045 rm -rf conftest*
15046 eval "ac_cv_header_$ac_safe=no"
0dcf9893 15047fi
698dcdb6 15048rm -f conftest*
0dcf9893 15049fi
698dcdb6
VZ
15050if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15051 echo "$ac_t""yes" 1>&6
15052 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
29fd3c0c 15053echo "configure:15054: checking for TIFFError in -ltiff" >&5
698dcdb6
VZ
15054ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
15055if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15056 echo $ac_n "(cached) $ac_c" 1>&6
0dcf9893 15057else
698dcdb6 15058 ac_save_LIBS="$LIBS"
0dcf9893 15059LIBS="-ltiff -lm $LIBS"
698dcdb6 15060cat > conftest.$ac_ext <<EOF
29fd3c0c 15061#line 15062 "configure"
0dcf9893
VZ
15062#include "confdefs.h"
15063/* Override any gcc2 internal prototype to avoid an error. */
15064/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15065 builtin and then its argument prototype would still apply. */
15066char TIFFError();
15067
15068int main() {
15069TIFFError()
15070; return 0; }
15071EOF
29fd3c0c 15072if { (eval echo configure:15073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15073 rm -rf conftest*
15074 eval "ac_cv_lib_$ac_lib_var=yes"
15075else
15076 echo "configure: failed program was:" >&5
15077 cat conftest.$ac_ext >&5
15078 rm -rf conftest*
15079 eval "ac_cv_lib_$ac_lib_var=no"
15080fi
15081rm -f conftest*
15082LIBS="$ac_save_LIBS"
15083
15084fi
15085if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15086 echo "$ac_t""yes" 1>&6
0dcf9893 15087 TIFF_LINK="-ltiff"
698dcdb6
VZ
15088else
15089 echo "$ac_t""no" 1>&6
0dcf9893
VZ
15090fi
15091
698dcdb6
VZ
15092else
15093 echo "$ac_t""no" 1>&6
0dcf9893
VZ
15094fi
15095
15096 if test "x$TIFF_LINK" = "x" ; then
698dcdb6 15097 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
0dcf9893
VZ
15098 fi
15099 fi
c7a2bf27
RR
15100fi
15101
3fed1840
RR
15102FREETYPE_INCLUDE=
15103if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
698dcdb6 15104 cat >> confdefs.h <<\EOF
3fed1840
RR
15105#define wxUSE_FREETYPE 1
15106EOF
15107
15108 if test "$wxUSE_FREETYPE" = "yes" ; then
15109 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
15110 else
15111 FREETYPE_LINK=
698dcdb6
VZ
15112 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
15113echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
29fd3c0c 15114echo "configure:15115: checking for freetype.h" >&5
698dcdb6
VZ
15115if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15116 echo $ac_n "(cached) $ac_c" 1>&6
15117else
15118 cat > conftest.$ac_ext <<EOF
29fd3c0c 15119#line 15120 "configure"
3fed1840
RR
15120#include "confdefs.h"
15121#include <freetype.h>
698dcdb6
VZ
15122EOF
15123ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29fd3c0c 15124{ (eval echo configure:15125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15125ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15126if test -z "$ac_err"; then
15127 rm -rf conftest*
15128 eval "ac_cv_header_$ac_safe=yes"
3fed1840 15129else
698dcdb6
VZ
15130 echo "$ac_err" >&5
15131 echo "configure: failed program was:" >&5
3fed1840 15132 cat conftest.$ac_ext >&5
698dcdb6
VZ
15133 rm -rf conftest*
15134 eval "ac_cv_header_$ac_safe=no"
3fed1840 15135fi
698dcdb6 15136rm -f conftest*
3fed1840 15137fi
698dcdb6
VZ
15138if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15139 echo "$ac_t""yes" 1>&6
15140 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
29fd3c0c 15141echo "configure:15142: checking for FT_Render_Glyph in -lfreetype" >&5
698dcdb6
VZ
15142ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
15143if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15144 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 15145else
698dcdb6 15146 ac_save_LIBS="$LIBS"
3fed1840 15147LIBS="-lfreetype -lm $LIBS"
698dcdb6 15148cat > conftest.$ac_ext <<EOF
29fd3c0c 15149#line 15150 "configure"
3fed1840
RR
15150#include "confdefs.h"
15151/* Override any gcc2 internal prototype to avoid an error. */
15152/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15153 builtin and then its argument prototype would still apply. */
15154char FT_Render_Glyph();
15155
15156int main() {
15157FT_Render_Glyph()
15158; return 0; }
15159EOF
29fd3c0c 15160if { (eval echo configure:15161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15161 rm -rf conftest*
15162 eval "ac_cv_lib_$ac_lib_var=yes"
15163else
15164 echo "configure: failed program was:" >&5
15165 cat conftest.$ac_ext >&5
15166 rm -rf conftest*
15167 eval "ac_cv_lib_$ac_lib_var=no"
15168fi
15169rm -f conftest*
15170LIBS="$ac_save_LIBS"
15171
15172fi
15173if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15174 echo "$ac_t""yes" 1>&6
3fed1840 15175 FREETYPE_LINK="-lfreetype"
698dcdb6
VZ
15176else
15177 echo "$ac_t""no" 1>&6
3fed1840
RR
15178fi
15179
698dcdb6
VZ
15180
15181else
15182 echo "$ac_t""no" 1>&6
3fed1840
RR
15183fi
15184
15185 if test "x$FREETYPE_LINK" = "x" ; then
698dcdb6 15186 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
3fed1840
RR
15187 fi
15188 fi
15189fi
15190
10f2d63a 15191if test "$wxUSE_OPENGL" = "yes"; then
698dcdb6
VZ
15192 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15193echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
29fd3c0c 15194echo "configure:15195: checking for GL/gl.h" >&5
698dcdb6
VZ
15195if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15196 echo $ac_n "(cached) $ac_c" 1>&6
15197else
15198 cat > conftest.$ac_ext <<EOF
29fd3c0c 15199#line 15200 "configure"
10f2d63a
VZ
15200#include "confdefs.h"
15201#include <GL/gl.h>
698dcdb6
VZ
15202EOF
15203ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29fd3c0c 15204{ (eval echo configure:15205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15205ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15206if test -z "$ac_err"; then
15207 rm -rf conftest*
15208 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 15209else
698dcdb6
VZ
15210 echo "$ac_err" >&5
15211 echo "configure: failed program was:" >&5
10f2d63a 15212 cat conftest.$ac_ext >&5
698dcdb6
VZ
15213 rm -rf conftest*
15214 eval "ac_cv_header_$ac_safe=no"
10f2d63a 15215fi
698dcdb6 15216rm -f conftest*
10f2d63a 15217fi
698dcdb6
VZ
15218if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15219 echo "$ac_t""yes" 1>&6
15220
15221 cat >> confdefs.h <<\EOF
bdad4e7e
RR
15222#define wxUSE_OPENGL 1
15223EOF
15224
698dcdb6 15225 cat >> confdefs.h <<\EOF
bdad4e7e
RR
15226#define wxUSE_GLCANVAS 1
15227EOF
15228
698dcdb6 15229 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
29fd3c0c 15230echo "configure:15231: checking for glFlush in -lGL" >&5
698dcdb6
VZ
15231ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
15232if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15233 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15234else
698dcdb6 15235 ac_save_LIBS="$LIBS"
bdad4e7e 15236LIBS="-lGL $LIBS"
698dcdb6 15237cat > conftest.$ac_ext <<EOF
29fd3c0c 15238#line 15239 "configure"
10f2d63a
VZ
15239#include "confdefs.h"
15240/* Override any gcc2 internal prototype to avoid an error. */
15241/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15242 builtin and then its argument prototype would still apply. */
15243char glFlush();
6232543b 15244
698dcdb6
VZ
15245int main() {
15246glFlush()
15247; return 0; }
15248EOF
29fd3c0c 15249if { (eval echo configure:15250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15250 rm -rf conftest*
15251 eval "ac_cv_lib_$ac_lib_var=yes"
15252else
15253 echo "configure: failed program was:" >&5
15254 cat conftest.$ac_ext >&5
15255 rm -rf conftest*
15256 eval "ac_cv_lib_$ac_lib_var=no"
15257fi
15258rm -f conftest*
15259LIBS="$ac_save_LIBS"
1e487827 15260
698dcdb6
VZ
15261fi
15262if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15263 echo "$ac_t""yes" 1>&6
15264
15265 OPENGL_LINK="-lGL -lGLU"
15266
10f2d63a 15267else
698dcdb6 15268 echo "$ac_t""no" 1>&6
10f2d63a 15269
698dcdb6 15270 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
29fd3c0c 15271echo "configure:15272: checking for glFlush in -lMesaGL" >&5
698dcdb6
VZ
15272ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
15273if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15274 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15275else
698dcdb6 15276 ac_save_LIBS="$LIBS"
10f2d63a 15277LIBS="-lMesaGL $LIBS"
698dcdb6 15278cat > conftest.$ac_ext <<EOF
29fd3c0c 15279#line 15280 "configure"
10f2d63a
VZ
15280#include "confdefs.h"
15281/* Override any gcc2 internal prototype to avoid an error. */
15282/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15283 builtin and then its argument prototype would still apply. */
15284char glFlush();
15285
15286int main() {
15287glFlush()
15288; return 0; }
15289EOF
29fd3c0c 15290if { (eval echo configure:15291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15291 rm -rf conftest*
15292 eval "ac_cv_lib_$ac_lib_var=yes"
15293else
15294 echo "configure: failed program was:" >&5
15295 cat conftest.$ac_ext >&5
15296 rm -rf conftest*
15297 eval "ac_cv_lib_$ac_lib_var=no"
15298fi
15299rm -f conftest*
15300LIBS="$ac_save_LIBS"
10f2d63a 15301
698dcdb6
VZ
15302fi
15303if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15304 echo "$ac_t""yes" 1>&6
15305
f6bcfd97 15306 OPENGL_LINK="-lMesaGL -lMesaGLU"
698dcdb6
VZ
15307
15308else
15309 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15310fi
15311
698dcdb6 15312
10f2d63a
VZ
15313fi
15314
698dcdb6 15315
10f2d63a 15316else
698dcdb6
VZ
15317 echo "$ac_t""no" 1>&6
15318wxUSE_OPENGL=0
10f2d63a
VZ
15319fi
15320
15321fi
15322
698dcdb6 15323
10f2d63a 15324if test "$wxUSE_GUI" = "yes"; then
698dcdb6 15325 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15326#define wxUSE_GUI 1
15327EOF
15328
698dcdb6 15329
10f2d63a 15330 else
698dcdb6 15331 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15332#define wxUSE_NOGUI 1
15333EOF
15334
15335fi
15336
698dcdb6 15337
10f2d63a 15338if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 15339 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15340#define wxUSE_UNIX 1
15341EOF
15342
15343fi
15344
698dcdb6 15345
10f2d63a 15346if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 15347 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15348#define wxUSE_APPLE_IEEE 1
15349EOF
15350
15351fi
15352
1e6feb95
VZ
15353if test "$wxUSE_TIMER" = "yes"; then
15354 cat >> confdefs.h <<\EOF
15355#define wxUSE_TIMER 1
15356EOF
15357
15358fi
15359
10f2d63a 15360if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 15361 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15362#define wxUSE_WAVE 1
15363EOF
15364
15365fi
15366
1e6feb95
VZ
15367if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15368 cat >> confdefs.h <<\EOF
15369#define wxUSE_CMDLINE_PARSER 1
15370EOF
15371
15372fi
15373
15374if test "$wxUSE_STOPWATCH" = "yes"; then
15375 cat >> confdefs.h <<\EOF
15376#define wxUSE_STOPWATCH 1
15377EOF
15378
15379fi
15380
15381if test "$wxUSE_DATETIME" = "yes"; then
15382 cat >> confdefs.h <<\EOF
15383#define wxUSE_DATETIME 1
15384EOF
15385
15386fi
15387
15388if test "$wxUSE_TIMEDATE" = "yes"; then
15389 cat >> confdefs.h <<\EOF
15390#define wxUSE_TIMEDATE 1
15391EOF
15392
15393fi
15394
10f2d63a 15395if test "$wxUSE_FILE" = "yes"; then
698dcdb6 15396 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15397#define wxUSE_FILE 1
15398EOF
15399
15400fi
15401
1e6feb95
VZ
15402if test "$wxUSE_FFILE" = "yes"; then
15403 cat >> confdefs.h <<\EOF
15404#define wxUSE_FFILE 1
15405EOF
15406
15407fi
15408
24528b0c 15409if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 15410 cat >> confdefs.h <<\EOF
24528b0c
VS
15411#define wxUSE_FILESYSTEM 1
15412EOF
15413
15414fi
15415
10f2d63a 15416if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 15417 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15418#define wxUSE_FS_INET 1
15419EOF
15420
15421fi
15422
15423if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 15424 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15425#define wxUSE_FS_ZIP 1
15426EOF
15427
15428fi
15429
15430if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 15431 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15432#define wxUSE_ZIPSTREAM 1
15433EOF
15434
15435fi
15436
eb4efbdc 15437if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 15438 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
15439#define wxUSE_ON_FATAL_EXCEPTION 1
15440EOF
15441
15442fi
15443
4f3c5f06 15444if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 15445 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
15446#define wxUSE_SNGLINST_CHECKER 1
15447EOF
15448
15449fi
15450
10f2d63a 15451if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 15452 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15453#define wxUSE_BUSYINFO 1
15454EOF
15455
15456fi
15457
15458if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 15459 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15460#define wxUSE_STD_IOSTREAM 1
15461EOF
15462
15463fi
15464
15465if test "$wxUSE_TEXTFILE" = "yes"; then
15466 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15467 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 15468 else
698dcdb6 15469 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15470#define wxUSE_TEXTFILE 1
15471EOF
15472
15473 fi
15474fi
15475
15476if test "$wxUSE_CONFIG" = "yes" ; then
15477 if test "$wxUSE_TEXTFILE" != "yes"; then
698dcdb6 15478 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
10f2d63a 15479 else
698dcdb6 15480 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15481#define wxUSE_CONFIG 1
15482EOF
15483
15484 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15485 fi
15486fi
15487
15488if test "$wxUSE_INTL" = "yes" ; then
15489 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15490 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 15491 else
698dcdb6 15492 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15493#define wxUSE_INTL 1
15494EOF
15495
15496 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 15497 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
15498 fi
15499fi
15500
15501if test "$wxUSE_LOG" = "yes"; then
698dcdb6 15502 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15503#define wxUSE_LOG 1
15504EOF
15505
d73be714
VZ
15506
15507 if test "$wxUSE_LOGGUI" = "yes"; then
15508 cat >> confdefs.h <<\EOF
15509#define wxUSE_LOGGUI 1
15510EOF
15511
15512 fi
15513
15514 if test "$wxUSE_LOGWINDOW" = "yes"; then
15515 cat >> confdefs.h <<\EOF
15516#define wxUSE_LOGWINDOW 1
15517EOF
15518
15519 fi
10f2d63a
VZ
15520fi
15521
15522if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 15523 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15524#define wxUSE_LONGLONG 1
15525EOF
15526
15527fi
15528
e8f65ba6 15529if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 15530 cat >> confdefs.h <<\EOF
e8f65ba6
RR
15531#define wxUSE_GEOMETRY 1
15532EOF
15533
15534fi
15535
10f2d63a 15536if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 15537 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15538#define wxUSE_DIALUP_MANAGER 1
15539EOF
15540
70f7a477 15541 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
15542fi
15543
15544if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 15545 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15546#define wxUSE_STREAMS 1
15547EOF
15548
15549fi
15550
1e487827 15551
1e6feb95 15552if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 15553 for ac_func in strptime
83307f33 15554do
698dcdb6 15555echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29fd3c0c 15556echo "configure:15557: checking for $ac_func" >&5
698dcdb6
VZ
15557if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15558 echo $ac_n "(cached) $ac_c" 1>&6
15559else
15560 cat > conftest.$ac_ext <<EOF
29fd3c0c 15561#line 15562 "configure"
83307f33
VZ
15562#include "confdefs.h"
15563/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15564 which can conflict with char $ac_func(); below. */
83307f33
VZ
15565#include <assert.h>
15566/* Override any gcc2 internal prototype to avoid an error. */
15567/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15568 builtin and then its argument prototype would still apply. */
15569char $ac_func();
15570
15571int main() {
83307f33
VZ
15572
15573/* The GNU C library defines this for functions which it implements
15574 to always fail with ENOSYS. Some functions are actually named
15575 something starting with __ and the normal name is an alias. */
15576#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15577choke me
15578#else
698dcdb6 15579$ac_func();
83307f33
VZ
15580#endif
15581
698dcdb6 15582; return 0; }
83307f33 15583EOF
29fd3c0c 15584if { (eval echo configure:15585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15585 rm -rf conftest*
15586 eval "ac_cv_func_$ac_func=yes"
15587else
15588 echo "configure: failed program was:" >&5
15589 cat conftest.$ac_ext >&5
15590 rm -rf conftest*
15591 eval "ac_cv_func_$ac_func=no"
15592fi
15593rm -f conftest*
15594fi
83307f33 15595
698dcdb6
VZ
15596if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15597 echo "$ac_t""yes" 1>&6
15598 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15599 cat >> confdefs.h <<EOF
15600#define $ac_tr_func 1
15601EOF
15602
15603else
15604 echo "$ac_t""no" 1>&6
83307f33
VZ
15605fi
15606done
15607
1e487827 15608
698dcdb6 15609 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
29fd3c0c 15610echo "configure:15611: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
15611if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
15612 echo $ac_n "(cached) $ac_c" 1>&6
15613else
15614
15615 cat > conftest.$ac_ext <<EOF
29fd3c0c 15616#line 15617 "configure"
360d6699
VZ
15617#include "confdefs.h"
15618
b4085ce6 15619 #include <time.h>
698dcdb6
VZ
15620
15621int main() {
360d6699
VZ
15622
15623 int tz;
4f11a343 15624 tz = timezone;
698dcdb6
VZ
15625
15626; return 0; }
15627EOF
29fd3c0c 15628if { (eval echo configure:15629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15629 rm -rf conftest*
15630
4f11a343 15631 wx_cv_var_timezone=timezone
698dcdb6 15632
360d6699 15633else
698dcdb6
VZ
15634 echo "configure: failed program was:" >&5
15635 cat conftest.$ac_ext >&5
15636 rm -rf conftest*
15637
15638 cat > conftest.$ac_ext <<EOF
29fd3c0c 15639#line 15640 "configure"
360d6699
VZ
15640#include "confdefs.h"
15641
b4085ce6 15642 #include <time.h>
698dcdb6
VZ
15643
15644int main() {
360d6699
VZ
15645
15646 int tz;
15647 tz = _timezone;
698dcdb6
VZ
15648
15649; return 0; }
15650EOF
29fd3c0c 15651if { (eval echo configure:15652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15652 rm -rf conftest*
15653
360d6699 15654 wx_cv_var_timezone=_timezone
698dcdb6 15655
5357c8e8 15656else
698dcdb6
VZ
15657 echo "configure: failed program was:" >&5
15658 cat conftest.$ac_ext >&5
15659 rm -rf conftest*
15660
15661 cat > conftest.$ac_ext <<EOF
29fd3c0c 15662#line 15663 "configure"
5357c8e8
VZ
15663#include "confdefs.h"
15664
b4085ce6 15665 #include <time.h>
698dcdb6
VZ
15666
15667int main() {
5357c8e8
VZ
15668
15669 int tz;
4f11a343 15670 tz = __timezone;
698dcdb6
VZ
15671
15672; return 0; }
15673EOF
29fd3c0c 15674if { (eval echo configure:15675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15675 rm -rf conftest*
15676
4f11a343 15677 wx_cv_var_timezone=__timezone
698dcdb6 15678
360d6699 15679else
698dcdb6
VZ
15680 echo "configure: failed program was:" >&5
15681 cat conftest.$ac_ext >&5
15682 rm -rf conftest*
15683 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
15684
360d6699 15685fi
698dcdb6
VZ
15686rm -f conftest*
15687
15688
360d6699 15689fi
698dcdb6
VZ
15690rm -f conftest*
15691
15692
6232543b 15693fi
698dcdb6
VZ
15694rm -f conftest*
15695
15696
1e487827 15697fi
703e0a69 15698
698dcdb6
VZ
15699echo "$ac_t""$wx_cv_var_timezone" 1>&6
15700
15701 cat >> confdefs.h <<EOF
360d6699
VZ
15702#define WX_TIMEZONE $wx_cv_var_timezone
15703EOF
15704
698dcdb6
VZ
15705
15706 for ac_func in localtime
afc31813 15707do
698dcdb6 15708echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29fd3c0c 15709echo "configure:15710: checking for $ac_func" >&5
698dcdb6
VZ
15710if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15711 echo $ac_n "(cached) $ac_c" 1>&6
15712else
15713 cat > conftest.$ac_ext <<EOF
29fd3c0c 15714#line 15715 "configure"
10f2d63a 15715#include "confdefs.h"
afc31813 15716/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15717 which can conflict with char $ac_func(); below. */
afc31813
VZ
15718#include <assert.h>
15719/* Override any gcc2 internal prototype to avoid an error. */
15720/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15721 builtin and then its argument prototype would still apply. */
15722char $ac_func();
15723
15724int main() {
afc31813
VZ
15725
15726/* The GNU C library defines this for functions which it implements
15727 to always fail with ENOSYS. Some functions are actually named
15728 something starting with __ and the normal name is an alias. */
15729#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15730choke me
15731#else
698dcdb6 15732$ac_func();
afc31813
VZ
15733#endif
15734
698dcdb6 15735; return 0; }
10f2d63a 15736EOF
29fd3c0c 15737if { (eval echo configure:15738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15738 rm -rf conftest*
15739 eval "ac_cv_func_$ac_func=yes"
15740else
15741 echo "configure: failed program was:" >&5
15742 cat conftest.$ac_ext >&5
15743 rm -rf conftest*
15744 eval "ac_cv_func_$ac_func=no"
15745fi
15746rm -f conftest*
15747fi
afc31813 15748
698dcdb6
VZ
15749if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15750 echo "$ac_t""yes" 1>&6
15751 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15752 cat >> confdefs.h <<EOF
15753#define $ac_tr_func 1
15754EOF
15755
15756else
15757 echo "$ac_t""no" 1>&6
afc31813
VZ
15758fi
15759done
15760
1e487827 15761
698dcdb6
VZ
15762 if test "$ac_cv_func_localtime" = "yes"; then
15763 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
29fd3c0c 15764echo "configure:15765: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
15765if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
15766 echo $ac_n "(cached) $ac_c" 1>&6
15767else
15768
15769 cat > conftest.$ac_ext <<EOF
29fd3c0c 15770#line 15771 "configure"
0470b1e6
VZ
15771#include "confdefs.h"
15772
b4085ce6 15773 #include <time.h>
698dcdb6
VZ
15774
15775int main() {
0470b1e6
VZ
15776
15777 struct tm tm;
15778 tm.tm_gmtoff++;
698dcdb6
VZ
15779
15780; return 0; }
15781EOF
29fd3c0c 15782if { (eval echo configure:15783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15783 rm -rf conftest*
15784
f03a98d8 15785 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 15786
0470b1e6 15787else
698dcdb6
VZ
15788 echo "configure: failed program was:" >&5
15789 cat conftest.$ac_ext >&5
15790 rm -rf conftest*
15791 wx_cv_struct_tm_has_gmtoff=no
15792
0470b1e6 15793fi
698dcdb6
VZ
15794rm -f conftest*
15795
1e487827 15796fi
698dcdb6
VZ
15797
15798echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
15799 fi
15800
15801 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 15802 cat >> confdefs.h <<\EOF
6232543b
VS
15803#define WX_GMTOFF_IN_TM 1
15804EOF
0470b1e6 15805
3fcdd07b
VZ
15806 fi
15807
698dcdb6 15808 for ac_func in gettimeofday ftime
3fcdd07b 15809do
698dcdb6 15810echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29fd3c0c 15811echo "configure:15812: checking for $ac_func" >&5
698dcdb6
VZ
15812if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15813 echo $ac_n "(cached) $ac_c" 1>&6
15814else
15815 cat > conftest.$ac_ext <<EOF
29fd3c0c 15816#line 15817 "configure"
3fcdd07b
VZ
15817#include "confdefs.h"
15818/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15819 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
15820#include <assert.h>
15821/* Override any gcc2 internal prototype to avoid an error. */
15822/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15823 builtin and then its argument prototype would still apply. */
15824char $ac_func();
15825
15826int main() {
3fcdd07b
VZ
15827
15828/* The GNU C library defines this for functions which it implements
15829 to always fail with ENOSYS. Some functions are actually named
15830 something starting with __ and the normal name is an alias. */
15831#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15832choke me
15833#else
698dcdb6 15834$ac_func();
3fcdd07b
VZ
15835#endif
15836
698dcdb6
VZ
15837; return 0; }
15838EOF
29fd3c0c 15839if { (eval echo configure:15840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15840 rm -rf conftest*
15841 eval "ac_cv_func_$ac_func=yes"
15842else
15843 echo "configure: failed program was:" >&5
15844 cat conftest.$ac_ext >&5
15845 rm -rf conftest*
15846 eval "ac_cv_func_$ac_func=no"
15847fi
15848rm -f conftest*
15849fi
15850
15851if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15852 echo "$ac_t""yes" 1>&6
15853 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15854 cat >> confdefs.h <<EOF
15855#define $ac_tr_func 1
3fcdd07b
VZ
15856EOF
15857 break
698dcdb6
VZ
15858else
15859 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
15860fi
15861done
15862
afc31813 15863
698dcdb6
VZ
15864 if test "$ac_cv_func_gettimeofday" = "yes"; then
15865 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
29fd3c0c 15866echo "configure:15867: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
15867if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
15868 echo $ac_n "(cached) $ac_c" 1>&6
15869else
15870
15871
15872 ac_ext=C
15873# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 15874ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
15875ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15876ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15877cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 15878
698dcdb6
VZ
15879
15880 cat > conftest.$ac_ext <<EOF
29fd3c0c 15881#line 15882 "configure"
10f2d63a 15882#include "confdefs.h"
afc31813
VZ
15883
15884 #include <sys/time.h>
15885 #include <unistd.h>
698dcdb6
VZ
15886
15887int main() {
afc31813
VZ
15888
15889 struct timeval tv;
15890 struct timezone tz;
15891 gettimeofday(&tv, &tz);
698dcdb6
VZ
15892
15893; return 0; }
15894EOF
29fd3c0c 15895if { (eval echo configure:15896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15896 rm -rf conftest*
afc31813 15897 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 15898else
698dcdb6
VZ
15899 echo "configure: failed program was:" >&5
15900 cat conftest.$ac_ext >&5
15901 rm -rf conftest*
15902 cat > conftest.$ac_ext <<EOF
29fd3c0c 15903#line 15904 "configure"
10f2d63a 15904#include "confdefs.h"
afc31813
VZ
15905
15906 #include <sys/time.h>
15907 #include <unistd.h>
698dcdb6
VZ
15908
15909int main() {
afc31813
VZ
15910
15911 struct timeval tv;
15912 gettimeofday(&tv);
698dcdb6
VZ
15913
15914; return 0; }
15915EOF
29fd3c0c 15916if { (eval echo configure:15917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15917 rm -rf conftest*
afc31813 15918 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 15919else
698dcdb6
VZ
15920 echo "configure: failed program was:" >&5
15921 cat conftest.$ac_ext >&5
15922 rm -rf conftest*
15923 wx_cv_func_gettimeofday_has_2_args=unknown
15924
10f2d63a 15925fi
698dcdb6
VZ
15926rm -f conftest*
15927
10f2d63a 15928fi
698dcdb6 15929rm -f conftest*
afc31813 15930 ac_ext=c
698dcdb6 15931# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 15932ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
15933ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15934ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15935cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 15936
698dcdb6 15937
afc31813 15938fi
698dcdb6
VZ
15939
15940echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 15941
afc31813 15942 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 15943 cat >> confdefs.h <<\EOF
afc31813
VZ
15944#define WX_GETTIMEOFDAY_NO_TZ 1
15945EOF
15946
15947 fi
15948 fi
15949
698dcdb6 15950 cat >> confdefs.h <<\EOF
afc31813
VZ
15951#define wxUSE_TIMEDATE 1
15952EOF
15953
15954 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
15955fi
15956
698dcdb6 15957
b089607b
VZ
15958if test "$TOOLKIT" != "MSW"; then
15959
afc31813 15960if test "$wxUSE_SOCKETS" = "yes"; then
698dcdb6 15961 echo $ac_n "checking for socket""... $ac_c" 1>&6
29fd3c0c 15962echo "configure:15963: checking for socket" >&5
698dcdb6
VZ
15963if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
15964 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 15965else
698dcdb6 15966 cat > conftest.$ac_ext <<EOF
29fd3c0c 15967#line 15968 "configure"
c63c7106
VZ
15968#include "confdefs.h"
15969/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15970 which can conflict with char socket(); below. */
c63c7106
VZ
15971#include <assert.h>
15972/* Override any gcc2 internal prototype to avoid an error. */
15973/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15974 builtin and then its argument prototype would still apply. */
15975char socket();
15976
15977int main() {
c63c7106
VZ
15978
15979/* The GNU C library defines this for functions which it implements
15980 to always fail with ENOSYS. Some functions are actually named
15981 something starting with __ and the normal name is an alias. */
15982#if defined (__stub_socket) || defined (__stub___socket)
15983choke me
15984#else
698dcdb6 15985socket();
c63c7106
VZ
15986#endif
15987
698dcdb6
VZ
15988; return 0; }
15989EOF
29fd3c0c 15990if { (eval echo configure:15991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15991 rm -rf conftest*
15992 eval "ac_cv_func_socket=yes"
15993else
15994 echo "configure: failed program was:" >&5
15995 cat conftest.$ac_ext >&5
15996 rm -rf conftest*
15997 eval "ac_cv_func_socket=no"
15998fi
15999rm -f conftest*
16000fi
16001
16002if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16003 echo "$ac_t""yes" 1>&6
c63c7106
VZ
16004 :
16005else
698dcdb6
VZ
16006 echo "$ac_t""no" 1>&6
16007echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
29fd3c0c 16008echo "configure:16009: checking for socket in -lsocket" >&5
698dcdb6
VZ
16009ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16010if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16011 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16012else
698dcdb6 16013 ac_save_LIBS="$LIBS"
c63c7106 16014LIBS="-lsocket $LIBS"
698dcdb6 16015cat > conftest.$ac_ext <<EOF
29fd3c0c 16016#line 16017 "configure"
c63c7106
VZ
16017#include "confdefs.h"
16018/* Override any gcc2 internal prototype to avoid an error. */
16019/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16020 builtin and then its argument prototype would still apply. */
16021char socket();
16022
16023int main() {
16024socket()
16025; return 0; }
16026EOF
29fd3c0c 16027if { (eval echo configure:16028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16028 rm -rf conftest*
16029 eval "ac_cv_lib_$ac_lib_var=yes"
16030else
16031 echo "configure: failed program was:" >&5
16032 cat conftest.$ac_ext >&5
16033 rm -rf conftest*
16034 eval "ac_cv_lib_$ac_lib_var=no"
16035fi
16036rm -f conftest*
16037LIBS="$ac_save_LIBS"
16038
16039fi
16040if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16041 echo "$ac_t""yes" 1>&6
c63c7106 16042 INET_LINK="$INET_LINK -lsocket"
c63c7106 16043else
698dcdb6 16044 echo "$ac_t""no" 1>&6
afc31813 16045
698dcdb6 16046 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
afc31813 16047 wxUSE_SOCKETS=no
698dcdb6
VZ
16048
16049
10f2d63a
VZ
16050fi
16051
698dcdb6 16052
6232543b 16053fi
b089607b 16054
1e487827 16055fi
afc31813 16056
51a9faba 16057
698dcdb6
VZ
16058if test "$wxUSE_SOCKETS" = "yes" ; then
16059 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
29fd3c0c 16060echo "configure:16061: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
16061if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16062 echo $ac_n "(cached) $ac_c" 1>&6
16063else
16064
16065
16066 ac_ext=C
16067# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16068ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16069ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16070ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16071cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16072
698dcdb6
VZ
16073
16074 cat > conftest.$ac_ext <<EOF
29fd3c0c 16075#line 16076 "configure"
afc31813 16076#include "confdefs.h"
51a9faba 16077
3ace2e6d 16078 #include <sys/types.h>
51a9faba 16079 #include <sys/socket.h>
698dcdb6
VZ
16080
16081int main() {
51a9faba
VZ
16082
16083 socklen_t len;
16084 getsockname(0, 0, &len);
698dcdb6
VZ
16085
16086; return 0; }
16087EOF
29fd3c0c 16088if { (eval echo configure:16089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16089 rm -rf conftest*
51a9faba 16090 wx_cv_type_getsockname3=socklen_t
afc31813 16091else
698dcdb6
VZ
16092 echo "configure: failed program was:" >&5
16093 cat conftest.$ac_ext >&5
16094 rm -rf conftest*
16095 cat > conftest.$ac_ext <<EOF
29fd3c0c 16096#line 16097 "configure"
afc31813 16097#include "confdefs.h"
51a9faba 16098
3ace2e6d 16099 #include <sys/types.h>
51a9faba 16100 #include <sys/socket.h>
698dcdb6
VZ
16101
16102int main() {
51a9faba
VZ
16103
16104 size_t len;
16105 getsockname(0, 0, &len);
698dcdb6
VZ
16106
16107; return 0; }
16108EOF
29fd3c0c 16109if { (eval echo configure:16110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16110 rm -rf conftest*
51a9faba 16111 wx_cv_type_getsockname3=size_t
afc31813 16112else
698dcdb6
VZ
16113 echo "configure: failed program was:" >&5
16114 cat conftest.$ac_ext >&5
16115 rm -rf conftest*
16116 cat > conftest.$ac_ext <<EOF
29fd3c0c 16117#line 16118 "configure"
afc31813 16118#include "confdefs.h"
51a9faba 16119
3ace2e6d 16120 #include <sys/types.h>
51a9faba 16121 #include <sys/socket.h>
698dcdb6
VZ
16122
16123int main() {
51a9faba
VZ
16124
16125 int len;
16126 getsockname(0, 0, &len);
698dcdb6
VZ
16127
16128; return 0; }
16129EOF
29fd3c0c 16130if { (eval echo configure:16131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16131 rm -rf conftest*
51a9faba 16132 wx_cv_type_getsockname3=int
afc31813 16133else
698dcdb6
VZ
16134 echo "configure: failed program was:" >&5
16135 cat conftest.$ac_ext >&5
16136 rm -rf conftest*
16137 wx_cv_type_getsockname3=unknown
16138
afc31813 16139fi
698dcdb6
VZ
16140rm -f conftest*
16141
afc31813 16142fi
698dcdb6
VZ
16143rm -f conftest*
16144
afc31813 16145fi
698dcdb6 16146rm -f conftest*
51a9faba
VZ
16147
16148 ac_ext=c
698dcdb6 16149# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 16150ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16151ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16152ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16153cross_compiling=$ac_cv_prog_cc_cross
afc31813 16154
698dcdb6 16155
51a9faba 16156fi
698dcdb6
VZ
16157
16158echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba
VZ
16159
16160 if test "$wx_cv_type_getsockname3" = "unknown"; then
16161 wxUSE_SOCKETS=no
698dcdb6 16162 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
51a9faba 16163 else
698dcdb6 16164 cat >> confdefs.h <<EOF
51a9faba
VZ
16165#define SOCKLEN_T $wx_cv_type_getsockname3
16166EOF
16167
16168 fi
16169fi
afc31813 16170
c521c494
RL
16171fi
16172
51a9faba 16173if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 16174 cat >> confdefs.h <<\EOF
afc31813
VZ
16175#define wxUSE_SOCKETS 1
16176EOF
16177
70f7a477 16178 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
16179 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
16180fi
16181
698dcdb6 16182
dc3d889d
VZ
16183if test "$wxUSE_GUI" = "yes"; then
16184
b089607b
VZ
16185if test "$TOOLKIT" != "MSW"; then
16186
ceded8b9 16187if test "$wxUSE_JOYSTICK" = "yes"; then
698dcdb6 16188 for ac_hdr in linux/joystick.h
10f2d63a 16189do
698dcdb6
VZ
16190ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16191echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
29fd3c0c 16192echo "configure:16193: checking for $ac_hdr" >&5
698dcdb6
VZ
16193if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16194 echo $ac_n "(cached) $ac_c" 1>&6
16195else
16196 cat > conftest.$ac_ext <<EOF
29fd3c0c 16197#line 16198 "configure"
10f2d63a 16198#include "confdefs.h"
698dcdb6
VZ
16199#include <$ac_hdr>
16200EOF
16201ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29fd3c0c 16202{ (eval echo configure:16203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
16203ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16204if test -z "$ac_err"; then
16205 rm -rf conftest*
16206 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 16207else
698dcdb6
VZ
16208 echo "$ac_err" >&5
16209 echo "configure: failed program was:" >&5
10f2d63a 16210 cat conftest.$ac_ext >&5
698dcdb6
VZ
16211 rm -rf conftest*
16212 eval "ac_cv_header_$ac_safe=no"
10f2d63a 16213fi
698dcdb6 16214rm -f conftest*
10f2d63a 16215fi
698dcdb6
VZ
16216if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16217 echo "$ac_t""yes" 1>&6
16218 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16219 cat >> confdefs.h <<EOF
16220#define $ac_tr_hdr 1
10f2d63a 16221EOF
698dcdb6
VZ
16222
16223else
16224 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16225fi
16226done
16227
b089607b 16228 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
ceded8b9 16229 wxUSE_JOYSTICK=no
698dcdb6 16230 echo "configure: warning: Joystick not supported by this system" 1>&2
b089607b
VZ
16231 fi
16232fi
16233
16234fi
16235
ceded8b9 16236if test "$wxUSE_JOYSTICK" = "yes"; then
698dcdb6 16237 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16238#define wxUSE_JOYSTICK 1
16239EOF
16240
16241 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
16242fi
16243
dc3d889d
VZ
16244fi
16245
698dcdb6 16246
b089607b
VZ
16247if test "$TOOLKIT" != "MSW"; then
16248
10f2d63a
VZ
16249HAVE_DL_FUNCS=0
16250HAVE_SHL_FUNCS=0
16251if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
b4085ce6
GD
16252 if test "$USE_MAC" = 1; then
16253 HAVE_DL_FUNCS=1
16254 else
698dcdb6 16255 for ac_func in dlopen
10f2d63a 16256do
698dcdb6 16257echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29fd3c0c 16258echo "configure:16259: checking for $ac_func" >&5
698dcdb6
VZ
16259if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16260 echo $ac_n "(cached) $ac_c" 1>&6
16261else
16262 cat > conftest.$ac_ext <<EOF
29fd3c0c 16263#line 16264 "configure"
10f2d63a
VZ
16264#include "confdefs.h"
16265/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16266 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16267#include <assert.h>
16268/* Override any gcc2 internal prototype to avoid an error. */
16269/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16270 builtin and then its argument prototype would still apply. */
16271char $ac_func();
16272
16273int main() {
10f2d63a
VZ
16274
16275/* The GNU C library defines this for functions which it implements
16276 to always fail with ENOSYS. Some functions are actually named
16277 something starting with __ and the normal name is an alias. */
16278#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16279choke me
16280#else
698dcdb6 16281$ac_func();
10f2d63a
VZ
16282#endif
16283
698dcdb6
VZ
16284; return 0; }
16285EOF
29fd3c0c 16286if { (eval echo configure:16287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16287 rm -rf conftest*
16288 eval "ac_cv_func_$ac_func=yes"
16289else
16290 echo "configure: failed program was:" >&5
16291 cat conftest.$ac_ext >&5
16292 rm -rf conftest*
16293 eval "ac_cv_func_$ac_func=no"
16294fi
16295rm -f conftest*
16296fi
16297
16298if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16299 echo "$ac_t""yes" 1>&6
16300 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16301 cat >> confdefs.h <<EOF
16302#define $ac_tr_func 1
16303EOF
16304
16305 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16306#define HAVE_DLOPEN 1
16307EOF
16308
16309 HAVE_DL_FUNCS=1
698dcdb6 16310
10f2d63a 16311else
698dcdb6
VZ
16312 echo "$ac_t""no" 1>&6
16313echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
29fd3c0c 16314echo "configure:16315: checking for dlopen in -ldl" >&5
698dcdb6
VZ
16315ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16316if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16317 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16318else
698dcdb6 16319 ac_save_LIBS="$LIBS"
10f2d63a 16320LIBS="-ldl $LIBS"
698dcdb6 16321cat > conftest.$ac_ext <<EOF
29fd3c0c 16322#line 16323 "configure"
10f2d63a
VZ
16323#include "confdefs.h"
16324/* Override any gcc2 internal prototype to avoid an error. */
16325/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16326 builtin and then its argument prototype would still apply. */
16327char dlopen();
16328
16329int main() {
16330dlopen()
16331; return 0; }
16332EOF
29fd3c0c 16333if { (eval echo configure:16334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16334 rm -rf conftest*
16335 eval "ac_cv_lib_$ac_lib_var=yes"
16336else
16337 echo "configure: failed program was:" >&5
16338 cat conftest.$ac_ext >&5
16339 rm -rf conftest*
16340 eval "ac_cv_lib_$ac_lib_var=no"
16341fi
16342rm -f conftest*
16343LIBS="$ac_save_LIBS"
16344
16345fi
16346if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16347 echo "$ac_t""yes" 1>&6
16348
16349 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16350#define HAVE_DLOPEN 1
16351EOF
16352
16353 HAVE_DL_FUNCS=1
16354 LIBS="$LIBS -ldl"
698dcdb6 16355
10f2d63a 16356else
698dcdb6 16357 echo "$ac_t""no" 1>&6
10f2d63a 16358
698dcdb6 16359 for ac_func in shl_load
10f2d63a 16360do
698dcdb6 16361echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29fd3c0c 16362echo "configure:16363: checking for $ac_func" >&5
698dcdb6
VZ
16363if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16364 echo $ac_n "(cached) $ac_c" 1>&6
16365else
16366 cat > conftest.$ac_ext <<EOF
29fd3c0c 16367#line 16368 "configure"
10f2d63a
VZ
16368#include "confdefs.h"
16369/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16370 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16371#include <assert.h>
16372/* Override any gcc2 internal prototype to avoid an error. */
16373/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16374 builtin and then its argument prototype would still apply. */
16375char $ac_func();
16376
16377int main() {
10f2d63a
VZ
16378
16379/* The GNU C library defines this for functions which it implements
16380 to always fail with ENOSYS. Some functions are actually named
16381 something starting with __ and the normal name is an alias. */
16382#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16383choke me
16384#else
698dcdb6 16385$ac_func();
10f2d63a
VZ
16386#endif
16387
698dcdb6
VZ
16388; return 0; }
16389EOF
29fd3c0c 16390if { (eval echo configure:16391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16391 rm -rf conftest*
16392 eval "ac_cv_func_$ac_func=yes"
16393else
16394 echo "configure: failed program was:" >&5
16395 cat conftest.$ac_ext >&5
16396 rm -rf conftest*
16397 eval "ac_cv_func_$ac_func=no"
16398fi
16399rm -f conftest*
16400fi
16401
16402if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16403 echo "$ac_t""yes" 1>&6
16404 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16405 cat >> confdefs.h <<EOF
16406#define $ac_tr_func 1
16407EOF
16408
16409 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16410#define HAVE_SHL_LOAD 1
16411EOF
16412
16413 HAVE_SHL_FUNCS=1
698dcdb6 16414
10f2d63a 16415else
698dcdb6
VZ
16416 echo "$ac_t""no" 1>&6
16417echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
29fd3c0c 16418echo "configure:16419: checking for dld in -lshl_load" >&5
698dcdb6
VZ
16419ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16420if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16421 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16422else
698dcdb6 16423 ac_save_LIBS="$LIBS"
f6bcfd97 16424LIBS="-lshl_load $LIBS"
698dcdb6 16425cat > conftest.$ac_ext <<EOF
29fd3c0c 16426#line 16427 "configure"
f6bcfd97
BP
16427#include "confdefs.h"
16428/* Override any gcc2 internal prototype to avoid an error. */
16429/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16430 builtin and then its argument prototype would still apply. */
16431char dld();
16432
16433int main() {
16434dld()
16435; return 0; }
16436EOF
29fd3c0c 16437if { (eval echo configure:16438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16438 rm -rf conftest*
16439 eval "ac_cv_lib_$ac_lib_var=yes"
16440else
16441 echo "configure: failed program was:" >&5
16442 cat conftest.$ac_ext >&5
16443 rm -rf conftest*
16444 eval "ac_cv_lib_$ac_lib_var=no"
16445fi
16446rm -f conftest*
16447LIBS="$ac_save_LIBS"
f6bcfd97 16448
698dcdb6
VZ
16449fi
16450if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16451 echo "$ac_t""yes" 1>&6
16452
f6bcfd97
BP
16453 HAVE_SHL_FUNCS=1
16454 LIBS="$LIBS -ldld"
698dcdb6
VZ
16455
16456else
16457 echo "$ac_t""no" 1>&6
f6bcfd97
BP
16458fi
16459
698dcdb6 16460
10f2d63a
VZ
16461fi
16462done
16463
698dcdb6 16464
10f2d63a
VZ
16465fi
16466
698dcdb6 16467
10f2d63a
VZ
16468fi
16469done
16470
1e487827 16471
698dcdb6
VZ
16472 if test "$HAVE_DL_FUNCS" = 1; then
16473 for ac_func in dlerror
f6bcfd97 16474do
698dcdb6 16475echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
29fd3c0c 16476echo "configure:16477: checking for $ac_func" >&5
698dcdb6
VZ
16477if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16478 echo $ac_n "(cached) $ac_c" 1>&6
16479else
16480 cat > conftest.$ac_ext <<EOF
29fd3c0c 16481#line 16482 "configure"
f6bcfd97
BP
16482#include "confdefs.h"
16483/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16484 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
16485#include <assert.h>
16486/* Override any gcc2 internal prototype to avoid an error. */
16487/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16488 builtin and then its argument prototype would still apply. */
16489char $ac_func();
16490
16491int main() {
f6bcfd97
BP
16492
16493/* The GNU C library defines this for functions which it implements
16494 to always fail with ENOSYS. Some functions are actually named
16495 something starting with __ and the normal name is an alias. */
16496#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16497choke me
16498#else
698dcdb6 16499$ac_func();
f6bcfd97
BP
16500#endif
16501
698dcdb6
VZ
16502; return 0; }
16503EOF
29fd3c0c 16504if { (eval echo configure:16505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16505 rm -rf conftest*
16506 eval "ac_cv_func_$ac_func=yes"
16507else
16508 echo "configure: failed program was:" >&5
16509 cat conftest.$ac_ext >&5
16510 rm -rf conftest*
16511 eval "ac_cv_func_$ac_func=no"
16512fi
16513rm -f conftest*
16514fi
16515
16516if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16517 echo "$ac_t""yes" 1>&6
16518 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16519 cat >> confdefs.h <<EOF
16520#define $ac_tr_func 1
16521EOF
16522 cat >> confdefs.h <<\EOF
f6bcfd97
BP
16523#define HAVE_DLERROR 1
16524EOF
16525
16526else
698dcdb6
VZ
16527 echo "$ac_t""no" 1>&6
16528echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
29fd3c0c 16529echo "configure:16530: checking for dlerror in -ldl" >&5
698dcdb6
VZ
16530ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
16531if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16532 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16533else
698dcdb6 16534 ac_save_LIBS="$LIBS"
f6bcfd97 16535LIBS="-ldl $LIBS"
698dcdb6 16536cat > conftest.$ac_ext <<EOF
29fd3c0c 16537#line 16538 "configure"
f6bcfd97
BP
16538#include "confdefs.h"
16539/* Override any gcc2 internal prototype to avoid an error. */
16540/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16541 builtin and then its argument prototype would still apply. */
16542char dlerror();
16543
16544int main() {
16545dlerror()
16546; return 0; }
16547EOF
29fd3c0c 16548if { (eval echo configure:16549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16549 rm -rf conftest*
16550 eval "ac_cv_lib_$ac_lib_var=yes"
16551else
16552 echo "configure: failed program was:" >&5
16553 cat conftest.$ac_ext >&5
16554 rm -rf conftest*
16555 eval "ac_cv_lib_$ac_lib_var=no"
16556fi
16557rm -f conftest*
16558LIBS="$ac_save_LIBS"
16559
16560fi
16561if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16562 echo "$ac_t""yes" 1>&6
16563 cat >> confdefs.h <<\EOF
f6bcfd97
BP
16564#define HAVE_DLERROR 1
16565EOF
16566
698dcdb6
VZ
16567else
16568 echo "$ac_t""no" 1>&6
f6bcfd97
BP
16569fi
16570
16571fi
16572done
16573
16574 fi
b4085ce6 16575 fi
f6bcfd97 16576
10f2d63a
VZ
16577 if test "$HAVE_DL_FUNCS" = 0; then
16578 if test "$HAVE_SHL_FUNCS" = 0; then
16579 if test "$USE_UNIX" = 1; then
698dcdb6 16580 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
16581 wxUSE_DYNLIB_CLASS=no
16582 else
698dcdb6 16583 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
16584 fi
16585 fi
16586 fi
16587fi
16588
b089607b
VZ
16589fi
16590
10f2d63a 16591if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 16592 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16593#define wxUSE_DYNLIB_CLASS 1
16594EOF
16595
b12915c1
VZ
16596else
16597 wxUSE_ODBC=no
16598 wxUSE_SERIAL=no
10f2d63a
VZ
16599fi
16600
698dcdb6 16601
1e6feb95
VZ
16602if test "$wxUSE_FONTMAP" = "yes" ; then
16603 cat >> confdefs.h <<\EOF
16604#define wxUSE_FONTMAP 1
16605EOF
16606
16607fi
16608
10f2d63a 16609if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 16610 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16611#define wxUSE_UNICODE 1
16612EOF
16613
16614fi
16615
16616if test "$wxUSE_WCSRTOMBS" = "yes" ; then
698dcdb6 16617 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16618#define wxUSE_WCSRTOMBS 1
16619EOF
16620
16621fi
16622
16623if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 16624 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16625#define wxUSE_EXPERIMENTAL_PRINTF 1
16626EOF
16627
16628fi
16629
698dcdb6 16630
b12915c1 16631if test "$wxUSE_SERIAL" = "yes" ; then
698dcdb6 16632 cat >> confdefs.h <<\EOF
b12915c1
VZ
16633#define wxUSE_SERIAL 1
16634EOF
16635
16636fi
16637
698dcdb6 16638
10f2d63a
VZ
16639IODBC_C_SRC=""
16640if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 16641 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16642#define wxUSE_ODBC 1
16643EOF
16644
16645 WXODBCFLAG="-D_IODBC_"
16646 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
16647fi
16648
698dcdb6 16649
10f2d63a 16650if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 16651 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16652#define wxUSE_POSTSCRIPT 1
16653EOF
16654
16655fi
16656
698dcdb6 16657cat >> confdefs.h <<\EOF
10f2d63a
VZ
16658#define wxUSE_AFM_FOR_POSTSCRIPT 1
16659EOF
16660
698dcdb6
VZ
16661
16662cat >> confdefs.h <<\EOF
10f2d63a
VZ
16663#define wxUSE_NORMALIZED_PS_FONTS 1
16664EOF
16665
698dcdb6
VZ
16666
16667
10f2d63a 16668if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 16669 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16670#define wxUSE_CONSTRAINTS 1
16671EOF
16672
16673 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
16674fi
16675
16676if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
698dcdb6 16677 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16678#define wxUSE_MDI_ARCHITECTURE 1
16679EOF
16680
16681 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
16682fi
16683
16684if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 16685 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16686#define wxUSE_DOC_VIEW_ARCHITECTURE 1
16687EOF
16688
16689 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
16690 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
16691 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
16692 fi
16693fi
16694
16695if test "$wxUSE_HELP" = "yes"; then
698dcdb6 16696 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16697#define wxUSE_HELP 1
16698EOF
16699
16700 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37
VZ
16701
16702 if test "$wxUSE_WXHTML_HELP" = "yes"; then
16703 cat >> confdefs.h <<\EOF
16704#define wxUSE_WXHTML_HELP 1
16705EOF
16706
29fd3c0c
VS
16707 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
16708echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
16709echo "configure:16710: checking for htmlhelp.h" >&5
16710if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16711 echo $ac_n "(cached) $ac_c" 1>&6
16712else
16713 cat > conftest.$ac_ext <<EOF
16714#line 16715 "configure"
16715#include "confdefs.h"
16716#include <htmlhelp.h>
16717EOF
16718ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16719{ (eval echo configure:16720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16720ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16721if test -z "$ac_err"; then
16722 rm -rf conftest*
16723 eval "ac_cv_header_$ac_safe=yes"
16724else
16725 echo "$ac_err" >&5
16726 echo "configure: failed program was:" >&5
16727 cat conftest.$ac_ext >&5
16728 rm -rf conftest*
16729 eval "ac_cv_header_$ac_safe=no"
16730fi
16731rm -f conftest*
16732fi
16733if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16734 echo "$ac_t""yes" 1>&6
16735
16736 cat >> confdefs.h <<\EOF
16737#define wxUSE_MS_HTML_HELP 1
16738EOF
16739
16740
16741else
16742 echo "$ac_t""no" 1>&6
16743
16744 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h so it won't be compiled without it" 1>&2
16745 wxUSE_MS_HTML_HELP=no
16746
16747fi
16748
3379ed37 16749 fi
10f2d63a
VZ
16750fi
16751
16752if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
16753 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 16754 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 16755 else
698dcdb6 16756 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16757#define wxUSE_PRINTING_ARCHITECTURE 1
16758EOF
16759
16760 fi
16761 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
16762fi
16763
16764if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 16765 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16766#define wxUSE_PROLOGIO 1
16767EOF
16768
16769fi
16770
16771if test "$wxUSE_RESOURCES" = "yes" ; then
3379ed37 16772 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16773#define wxUSE_RESOURCES 1
16774EOF
16775
3379ed37 16776 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
10f2d63a
VZ
16777fi
16778
16779if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 16780 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16781#define wxUSE_X_RESOURCES 1
16782EOF
16783
16784fi
16785
698dcdb6 16786
10f2d63a 16787if test "$wxUSE_IPC" = "yes"; then
eb4efbdc 16788 if test "$wxUSE_SOCKETS" != "yes"; then
698dcdb6 16789 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
eb4efbdc
VZ
16790 fi
16791
698dcdb6 16792 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16793#define wxUSE_IPC 1
16794EOF
16795
16796fi
16797
16798if test "$wxUSE_CLIPBOARD" = "yes"; then
698dcdb6 16799 cat >> confdefs.h <<\EOF
10f2d63a 16800#define wxUSE_CLIPBOARD 1
1e6feb95
VZ
16801EOF
16802
16803 cat >> confdefs.h <<\EOF
16804#define wxUSE_DATAOBJ 1
10f2d63a
VZ
16805EOF
16806
16807fi
16808
16809if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
16810 if test "$wxUSE_GTK" = 1; then
16811 if test "$WXGTK12" != 1; then
698dcdb6 16812 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
10f2d63a
VZ
16813 wxUSE_DRAG_AND_DROP=no
16814 fi
16815 fi
16816
16817 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 16818 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
10f2d63a
VZ
16819 wxUSE_DRAG_AND_DROP=no
16820 fi
16821
2c6025bc 16822 if test "$wxUSE_MAC" = 1; then
698dcdb6 16823 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
2c6025bc
GD
16824 wxUSE_DRAG_AND_DROP=no
16825 fi
16826
10f2d63a 16827 if test "$USE_WIN32" = 1; then
698dcdb6
VZ
16828
16829 for ac_hdr in ole2.h
10f2d63a 16830do
698dcdb6
VZ
16831ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16832echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
29fd3c0c 16833echo "configure:16834: checking for $ac_hdr" >&5
698dcdb6
VZ
16834if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16835 echo $ac_n "(cached) $ac_c" 1>&6
16836else
16837 cat > conftest.$ac_ext <<EOF
29fd3c0c 16838#line 16839 "configure"
10f2d63a 16839#include "confdefs.h"
698dcdb6
VZ
16840#include <$ac_hdr>
16841EOF
16842ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29fd3c0c 16843{ (eval echo configure:16844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
16844ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16845if test -z "$ac_err"; then
16846 rm -rf conftest*
16847 eval "ac_cv_header_$ac_safe=yes"
1e487827 16848else
698dcdb6
VZ
16849 echo "$ac_err" >&5
16850 echo "configure: failed program was:" >&5
10f2d63a 16851 cat conftest.$ac_ext >&5
698dcdb6
VZ
16852 rm -rf conftest*
16853 eval "ac_cv_header_$ac_safe=no"
10f2d63a 16854fi
698dcdb6 16855rm -f conftest*
10f2d63a 16856fi
698dcdb6
VZ
16857if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16858 echo "$ac_t""yes" 1>&6
16859 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16860 cat >> confdefs.h <<EOF
16861#define $ac_tr_hdr 1
10f2d63a 16862EOF
698dcdb6
VZ
16863
16864else
16865 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16866fi
16867done
16868
698dcdb6 16869
57fe5ed0 16870 if test "$ac_cv_header_ole2_h" = "yes" ; then
c521c494 16871 if test "$GCC" = yes ; then
b64f0a5f
RL
16872 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
16873 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
c521c494 16874 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
b64f0a5f 16875 LIBS="$LIBS -lole32 -luuid"
4f11a343
VS
16876 cat >> confdefs.h <<\EOF
16877#define wxUSE_OLE 1
16878EOF
16879
b64f0a5f
RL
16880
16881 if test "$wxUSE_METAFILE" = "yes"; then
698dcdb6 16882 cat >> confdefs.h <<\EOF
b64f0a5f
RL
16883#define wxUSE_METAFILE 1
16884EOF
16885
698dcdb6 16886 cat >> confdefs.h <<\EOF
b64f0a5f
RL
16887#define wxUSE_ENH_METAFILE 1
16888EOF
16889
16890 fi
c521c494
RL
16891 fi
16892 else
698dcdb6 16893 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
10f2d63a
VZ
16894 wxUSE_DRAG_AND_DROP=no
16895 fi
16896 fi
16897
16898 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 16899 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16900#define wxUSE_DRAG_AND_DROP 1
16901EOF
16902
16903 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
16904 fi
16905
16906fi
16907
16908if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 16909 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16910#define wxUSE_SPLINES 1
16911EOF
16912
16913fi
16914
698dcdb6 16915
1e6feb95
VZ
16916USES_CONTROLS=0
16917if test "$wxUSE_CONTROLS" = "yes"; then
16918 USES_CONTROLS=1
16919fi
16920
10f2d63a 16921if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 16922 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16923#define wxUSE_ACCEL 1
16924EOF
16925
1e6feb95
VZ
16926 USES_CONTROLS=1
16927fi
16928
16929if test "$wxUSE_BUTTON" = "yes"; then
16930 cat >> confdefs.h <<\EOF
16931#define wxUSE_BUTTON 1
16932EOF
16933
16934 USES_CONTROLS=1
16935fi
16936
16937if test "$wxUSE_BMPBUTTON" = "yes"; then
16938 cat >> confdefs.h <<\EOF
16939#define wxUSE_BMPBUTTON 1
16940EOF
16941
16942 USES_CONTROLS=1
16943fi
16944
16945if test "$wxUSE_CALCTRL" = "yes"; then
16946 cat >> confdefs.h <<\EOF
16947#define wxUSE_CALENDARCTRL 1
16948EOF
16949
16950 USES_CONTROLS=1
16951 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
16952fi
16953
16954if test "$wxUSE_CARET" = "yes"; then
698dcdb6 16955 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16956#define wxUSE_CARET 1
16957EOF
16958
1e6feb95 16959 USES_CONTROLS=1
10f2d63a
VZ
16960 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
16961fi
16962
16963if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 16964 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16965#define wxUSE_COMBOBOX 1
16966EOF
16967
1e6feb95 16968 USES_CONTROLS=1
10f2d63a
VZ
16969fi
16970
16971if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 16972 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16973#define wxUSE_CHOICE 1
16974EOF
16975
1e6feb95 16976 USES_CONTROLS=1
10f2d63a
VZ
16977fi
16978
16979if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 16980 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16981#define wxUSE_CHECKBOX 1
16982EOF
16983
1e6feb95 16984 USES_CONTROLS=1
10f2d63a
VZ
16985fi
16986
16987if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 16988 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16989#define wxUSE_CHECKLISTBOX 1
16990EOF
16991
1e6feb95 16992 USES_CONTROLS=1
10f2d63a
VZ
16993 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
16994fi
16995
16996if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 16997 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16998#define wxUSE_GAUGE 1
16999EOF
17000
1e6feb95 17001 USES_CONTROLS=1
10f2d63a
VZ
17002fi
17003
d6a55c4b
VZ
17004if test "$wxUSE_NEW_GRID" = "yes"; then
17005 wxUSE_GRID="yes"
698dcdb6 17006 cat >> confdefs.h <<\EOF
d6a55c4b 17007#define wxUSE_NEW_GRID 1
10f2d63a
VZ
17008EOF
17009
1e6feb95 17010 USES_CONTROLS=1
d6a55c4b 17011 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
17012fi
17013
d6a55c4b 17014if test "$wxUSE_GRID" = "yes"; then
698dcdb6 17015 cat >> confdefs.h <<\EOF
d6a55c4b 17016#define wxUSE_GRID 1
10f2d63a
VZ
17017EOF
17018
1e6feb95 17019 USES_CONTROLS=1
d6a55c4b 17020 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
17021fi
17022
17023if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17024 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17025#define wxUSE_IMAGLIST 1
17026EOF
17027
17028fi
17029
17030if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 17031 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17032#define wxUSE_LISTBOX 1
17033EOF
17034
1e6feb95 17035 USES_CONTROLS=1
10f2d63a
VZ
17036fi
17037
17038if test "$wxUSE_LISTCTRL" = "yes"; then
17039 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17040 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17041#define wxUSE_LISTCTRL 1
17042EOF
17043
1e6feb95 17044 USES_CONTROLS=1
10f2d63a
VZ
17045 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17046 else
698dcdb6 17047 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17048 fi
17049fi
17050
17051if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 17052 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17053#define wxUSE_NOTEBOOK 1
17054EOF
17055
1e6feb95 17056 USES_CONTROLS=1
10f2d63a
VZ
17057 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17058fi
17059
17060if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 17061 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17062#define wxUSE_RADIOBOX 1
17063EOF
17064
1e6feb95 17065 USES_CONTROLS=1
10f2d63a
VZ
17066fi
17067
17068if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 17069 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17070#define wxUSE_RADIOBTN 1
17071EOF
17072
1e6feb95 17073 USES_CONTROLS=1
10f2d63a
VZ
17074fi
17075
17076if test "$wxUSE_SASH" = "yes"; then
698dcdb6 17077 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17078#define wxUSE_SASH 1
17079EOF
17080
17081 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17082fi
17083
17084if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 17085 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17086#define wxUSE_SCROLLBAR 1
17087EOF
17088
1e6feb95 17089 USES_CONTROLS=1
741a9306 17090 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
17091fi
17092
17093if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 17094 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17095#define wxUSE_SLIDER 1
17096EOF
17097
1e6feb95 17098 USES_CONTROLS=1
10f2d63a
VZ
17099fi
17100
17101if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 17102 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17103#define wxUSE_SPINBTN 1
17104EOF
17105
1e6feb95 17106 USES_CONTROLS=1
10f2d63a
VZ
17107fi
17108
56cfaa52 17109if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 17110 cat >> confdefs.h <<\EOF
56cfaa52
RR
17111#define wxUSE_SPINCTRL 1
17112EOF
17113
1e6feb95 17114 USES_CONTROLS=1
56cfaa52
RR
17115fi
17116
10f2d63a 17117if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 17118 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17119#define wxUSE_SPLITTER 1
17120EOF
17121
17122 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17123fi
17124
17125if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 17126 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17127#define wxUSE_STATBMP 1
17128EOF
17129
1e6feb95 17130 USES_CONTROLS=1
10f2d63a
VZ
17131fi
17132
17133if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 17134 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17135#define wxUSE_STATBOX 1
17136EOF
17137
1e6feb95
VZ
17138 USES_CONTROLS=1
17139fi
17140
17141if test "$wxUSE_STATTEXT" = "yes"; then
17142 cat >> confdefs.h <<\EOF
17143#define wxUSE_STATTEXT 1
17144EOF
17145
17146 USES_CONTROLS=1
10f2d63a
VZ
17147fi
17148
17149if test "$wxUSE_STATLINE" = "yes"; then
17150 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 17151 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 17152 else
698dcdb6 17153 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17154#define wxUSE_STATLINE 1
17155EOF
17156
1e6feb95 17157 USES_CONTROLS=1
10f2d63a
VZ
17158 fi
17159fi
17160
17161if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 17162 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17163#define wxUSE_STATUSBAR 1
17164EOF
17165
1e6feb95 17166 USES_CONTROLS=1
698dcdb6 17167
2286341c 17168 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
17169fi
17170
17171if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 17172 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17173#define wxUSE_TAB_DIALOG 1
17174EOF
17175
17176 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17177fi
17178
1e6feb95
VZ
17179if test "$wxUSE_TEXTCTRL" = "yes"; then
17180 cat >> confdefs.h <<\EOF
17181#define wxUSE_TEXTCTRL 1
17182EOF
17183
17184 USES_CONTROLS=1
17185 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17186fi
17187
1db8dc4a 17188if test "$wxUSE_TOGGLEBTN" = "yes"; then
a45d7ab7
GD
17189 if test "$wxUSE_MAC" = 1; then
17190 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
17191 wxUSE_TOGGLEBTN=no
17192 fi
17193
17194 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17195 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
17196#define wxUSE_TOGGLEBTN 1
17197EOF
17198
1e6feb95 17199 USES_CONTROLS=1
a45d7ab7 17200 fi
1db8dc4a
VZ
17201fi
17202
360d6699 17203if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 17204 cat >> confdefs.h <<\EOF
360d6699
VZ
17205#define wxUSE_TOOLBAR_SIMPLE 1
17206EOF
17207
17208 wxUSE_TOOLBAR="yes"
1e6feb95 17209 USES_CONTROLS=1
360d6699
VZ
17210fi
17211
10f2d63a 17212if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 17213 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17214#define wxUSE_TOOLBAR 1
17215EOF
17216
1e6feb95 17217 USES_CONTROLS=1
698dcdb6 17218
360d6699
VZ
17219 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17220 wxUSE_TOOLBAR_NATIVE="yes"
17221 fi
17222
1e6feb95
VZ
17223 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17224 cat >> confdefs.h <<\EOF
360d6699
VZ
17225#define wxUSE_TOOLBAR_NATIVE 1
17226EOF
17227
1e6feb95
VZ
17228 USES_CONTROLS=1
17229 fi
17230
17231 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
17232fi
17233
10f2d63a
VZ
17234if test "$wxUSE_TOOLTIPS" = "yes"; then
17235 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 17236 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
10f2d63a
VZ
17237 else
17238 if test "$wxUSE_WINE" = 1; then
698dcdb6 17239 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
10f2d63a 17240 else
698dcdb6 17241 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17242#define wxUSE_TOOLTIPS 1
17243EOF
17244
17245 fi
17246 fi
17247fi
17248
17249if test "$wxUSE_TREECTRL" = "yes"; then
17250 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17251 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17252#define wxUSE_TREECTRL 1
17253EOF
17254
1e6feb95 17255 USES_CONTROLS=1
10f2d63a
VZ
17256 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17257 else
698dcdb6 17258 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17259 fi
17260fi
17261
9f41d601 17262if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65
GD
17263 if test "$wxUSE_MAC" = 1; then
17264 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
17265 else
17266 cat >> confdefs.h <<\EOF
9f41d601
RR
17267#define wxUSE_POPUPWIN 1
17268EOF
17269
6abe4b65
GD
17270 USES_CONTROLS=1
17271 fi
9f41d601
RR
17272fi
17273
1e6feb95
VZ
17274if test "$USES_CONTROLS" = 1; then
17275 cat >> confdefs.h <<\EOF
17276#define wxUSE_CONTROLS 1
10f2d63a
VZ
17277EOF
17278
10f2d63a
VZ
17279fi
17280
1e6feb95
VZ
17281
17282
24fd6d87
VZ
17283if test "$wxUSE_DRAGIMAGE" = "yes"; then
17284 cat >> confdefs.h <<\EOF
17285#define wxUSE_DRAGIMAGE 1
17286EOF
17287
17288 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
17289fi
17290
1e6feb95 17291if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 17292 cat >> confdefs.h <<\EOF
1e6feb95 17293#define wxUSE_MENUS 1
10f2d63a
VZ
17294EOF
17295
1e6feb95 17296 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
17297fi
17298
1e6feb95
VZ
17299if test "$wxUSE_METAFILE" = "yes"; then
17300 cat >> confdefs.h <<\EOF
17301#define wxUSE_METAFILE 1
10f2d63a
VZ
17302EOF
17303
10f2d63a
VZ
17304fi
17305
1e6feb95
VZ
17306if test "$wxUSE_MIMETYPE" = "yes"; then
17307 cat >> confdefs.h <<\EOF
17308#define wxUSE_MIMETYPE 1
10f2d63a
VZ
17309EOF
17310
10f2d63a
VZ
17311fi
17312
17313if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 17314 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17315#define wxUSE_MINIFRAME 1
17316EOF
17317
17318 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
17319fi
17320
17321if test "$wxUSE_HTML" = "yes"; then
698dcdb6 17322 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17323#define wxUSE_HTML 1
17324EOF
17325
17326 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
17327 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
17328fi
17329
17330if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 17331 cat >> confdefs.h <<\EOF
1e487827
VS
17332#define wxUSE_VALIDATORS 1
17333EOF
703e0a69 17334
698dcdb6
VZ
17335 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
17336fi
17337
17338if test "$wxUSE_IMAGE" = "yes" ; then
17339 cat >> confdefs.h <<\EOF
17340#define wxUSE_IMAGE 1
17341EOF
17342
17343fi
17344
17345if test "$wxUSE_GIF" = "yes" ; then
17346 cat >> confdefs.h <<\EOF
17347#define wxUSE_GIF 1
17348EOF
17349
17350fi
17351
17352if test "$wxUSE_PCX" = "yes" ; then
17353 cat >> confdefs.h <<\EOF
17354#define wxUSE_PCX 1
17355EOF
17356
17357fi
17358
17359if test "$wxUSE_PNM" = "yes" ; then
17360 cat >> confdefs.h <<\EOF
17361#define wxUSE_PNM 1
17362EOF
17363
17364fi
17365
17366if test "$wxUSE_XPM" = "yes" ; then
17367 cat >> confdefs.h <<\EOF
17368#define wxUSE_XPM 1
17369EOF
17370
17371fi
17372
17373
1e6feb95
VZ
17374if test "$wxUSE_CHOICEDLG" = "yes"; then
17375 cat >> confdefs.h <<\EOF
17376#define wxUSE_CHOICEDLG 1
17377EOF
17378
17379fi
17380
17381if test "$wxUSE_COLOURDLG" = "yes"; then
17382 cat >> confdefs.h <<\EOF
17383#define wxUSE_COLOURDLG 1
17384EOF
17385
17386fi
17387
17388if test "$wxUSE_FILEDLG" = "yes"; then
17389 cat >> confdefs.h <<\EOF
17390#define wxUSE_FILEDLG 1
17391EOF
17392
17393fi
17394
17395if test "$wxUSE_FONTDLG" = "yes"; then
17396 cat >> confdefs.h <<\EOF
17397#define wxUSE_FONTDLG 1
17398EOF
17399
17400fi
17401
17402if test "$wxUSE_DIRDLG" = "yes"; then
17403 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17404 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
17405 else
17406 if test "$wxUSE_TREECTRL" != "yes"; then
17407 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
17408 else
17409 cat >> confdefs.h <<\EOF
17410#define wxUSE_DIRDLG 1
17411EOF
17412
17413 fi
17414 fi
17415fi
17416
17417if test "$wxUSE_MSGDLG" = "yes"; then
17418 cat >> confdefs.h <<\EOF
17419#define wxUSE_MSGDLG 1
17420EOF
17421
17422fi
17423
17424if test "$wxUSE_NUMBERDLG" = "yes"; then
17425 cat >> confdefs.h <<\EOF
17426#define wxUSE_NUMBERDLG 1
17427EOF
17428
17429fi
17430
17431if test "$wxUSE_PROGRESSDLG" = "yes"; then
17432 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17433 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
17434 else
17435 cat >> confdefs.h <<\EOF
17436#define wxUSE_PROGRESSDLG 1
17437EOF
17438
17439 fi
17440fi
17441
17442if test "$wxUSE_STARTUP_TIPS" = "yes"; then
17443 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17444 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
17445 else
17446 cat >> confdefs.h <<\EOF
17447#define wxUSE_STARTUP_TIPS 1
17448EOF
17449
17450 fi
17451fi
17452
17453if test "$wxUSE_TEXTDLG" = "yes"; then
17454 cat >> confdefs.h <<\EOF
17455#define wxUSE_TEXTDLG 1
17456EOF
17457
17458fi
17459
b1f5d087
VZ
17460if test "$wxUSE_WIZARDDLG" = "yes"; then
17461 cat >> confdefs.h <<\EOF
17462#define wxUSE_WIZARDDLG 1
17463EOF
17464
17465 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
17466fi
17467
1e6feb95 17468
698dcdb6
VZ
17469if test "$cross_compiling" = "yes"; then
17470 OSINFO="\"$host\""
17471else
17472 OSINFO=`uname -s -r -m`
17473 OSINFO="\"$OSINFO\""
17474fi
17475
17476cat >> confdefs.h <<EOF
17477#define WXWIN_OS_DESCRIPTION $OSINFO
17478EOF
17479
17480
17481
17482GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
17483OPENGL_LIBS="$OPENGL_LINK"
17484
17485EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
17486if test "$USE_MAC" = 1 ; then
17487 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
17488fi
17489if test "$wxUSE_GUI" = "yes"; then
17490 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
17491fi
17492
17493LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
17494
17495INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
17496
17497if test "$wxUSE_GTK" = 1; then
17498 WXCONFIG_INCLUDE=""
17499else
17500 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
17501fi
17502
17503if test "$GXX" = yes ; then
17504 CXXWARNINGS="-Wall"
17505 fi
17506EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
17507
17508CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
17509CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
17510
17511LDFLAGS="$LDFLAGS $PROFILE"
17512
17513if test "$wxUSE_GUI" = "yes"; then
17514
24fd6d87 17515 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
1e6feb95
VZ
17516 drawing dynamic event font fractal image \
17517 minimal richedit widgets"
17518
17519 if test "$wxUSE_UNIVERSAL" = "yes" ; then
17520 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
17521 fi
698dcdb6
VZ
17522
17523 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
17524else
17525 SAMPLES_SUBDIRS=""
17526fi
17527
17528SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
32832908
VZ
17596
17597
17598
17599
17600
17601
17602
2224580a 17603
dad6c0ea 17604
f6bcfd97
BP
17605
17606
17607
2f51a9ec
GD
17608
17609
17610
17611
17612
17613
f6bcfd97 17614
dad6c0ea 17615
caa2c79b 17616
3711412e 17617
1e6feb95
VZ
17618
17619
0f3f1cbc 17620
10f2d63a
VZ
17621
17622
698dcdb6 17623echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
29fd3c0c 17624echo "configure:17625: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
17625set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
17626if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
17627 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17628else
698dcdb6 17629 cat > conftestmake <<\EOF
10f2d63a
VZ
17630all:
17631 @echo 'ac_maketemp="${MAKE}"'
17632EOF
17633# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 17634eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
17635if test -n "$ac_maketemp"; then
17636 eval ac_cv_prog_make_${ac_make}_set=yes
17637else
17638 eval ac_cv_prog_make_${ac_make}_set=no
17639fi
698dcdb6 17640rm -f conftestmake
10f2d63a
VZ
17641fi
17642if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 17643 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
17644 SET_MAKE=
17645else
698dcdb6 17646 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17647 SET_MAKE="MAKE=${MAKE-make}"
17648fi
17649
698dcdb6 17650
00cf1208
RR
17651if test -d include; then
17652 if test -d include/wx; then
1e6feb95
VZ
17653 if test -d include/wx/${SETUPH_DIR}; then
17654 if test -f include/wx/${SETUPH_DIR}/setup.h; then
17655 mv -f include/wx/${SETUPH_DIR}/setup.h setup.h
00cf1208
RR
17656 fi
17657 fi
17658 fi
17659fi
665bbe97 17660
698dcdb6 17661
10f2d63a 17662
2224580a 17663if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 17664 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
17665 wx_cv_path_ifs=$PATH_IFS
17666 wx_cv_program_ext=$PROGRAM_EXT
17667 wx_cv_target_library=$WX_TARGET_LIBRARY
3711412e 17668 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
93a20a27
VS
17669 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
17670 wx_cv_target_library wx_cv_target_libtype
698dcdb6 17671 subdirs="demos samples utils contrib"
2224580a
VZ
17672
17673fi
10f2d63a 17674
698dcdb6
VZ
17675trap '' 1 2 15
17676cat > confcache <<\EOF
10f2d63a
VZ
17677# This file is a shell script that caches the results of configure
17678# tests run on this system so they can be shared between configure
698dcdb6
VZ
17679# scripts and configure runs. It is not useful on other systems.
17680# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 17681#
698dcdb6
VZ
17682# By default, configure uses ./config.cache as the cache file,
17683# creating it if it does not exist already. You can give configure
17684# the --cache-file=FILE option to use a different cache file; that is
17685# what configure does when it calls configure scripts in
17686# subdirectories, so they share the cache.
17687# Giving --cache-file=/dev/null disables caching, for debugging configure.
17688# config.status only pays attention to the cache file if you give it the
17689# --recheck option to rerun configure.
10f2d63a 17690#
698dcdb6 17691EOF
10f2d63a
VZ
17692# The following way of writing the cache mishandles newlines in values,
17693# but we know of no workaround that is simple, portable, and efficient.
17694# So, don't put newlines in cache variables' values.
17695# Ultrix sh set writes to stderr and can't be redirected directly,
17696# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
17697(set) 2>&1 |
17698 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17699 *ac_space=\ *)
17700 # `set' does not quote correctly, so add quotes (double-quote substitution
17701 # turns \\\\ into \\, and sed turns \\ into \).
17702 sed -n \
17703 -e "s/'/'\\\\''/g" \
17704 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17705 ;;
17706 *)
17707 # `set' quotes correctly as required by POSIX, so do not add quotes.
17708 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17709 ;;
17710 esac >> confcache
17711if cmp -s $cache_file confcache; then
17712 :
17713else
10f2d63a 17714 if test -w $cache_file; then
698dcdb6
VZ
17715 echo "updating cache $cache_file"
17716 cat confcache > $cache_file
10f2d63a
VZ
17717 else
17718 echo "not updating unwritable cache $cache_file"
17719 fi
17720fi
17721rm -f confcache
17722
698dcdb6
VZ
17723trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17724
10f2d63a
VZ
17725test "x$prefix" = xNONE && prefix=$ac_default_prefix
17726# Let make expand exec_prefix.
17727test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17728
698dcdb6
VZ
17729# Any assignment to VPATH causes Sun make to only execute
17730# the first set of double-colon rules, so remove it if not needed.
17731# If there is a colon in the path, we need to keep it.
10f2d63a 17732if test "x$srcdir" = x.; then
698dcdb6 17733 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
17734fi
17735
698dcdb6
VZ
17736trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17737
10f2d63a
VZ
17738DEFS=-DHAVE_CONFIG_H
17739
698dcdb6 17740# Without the "./", some shells look in PATH for config.status.
10f2d63a 17741: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
17742
17743echo creating $CONFIG_STATUS
17744rm -f $CONFIG_STATUS
17745cat > $CONFIG_STATUS <<EOF
17746#! /bin/sh
10f2d63a
VZ
17747# Generated automatically by configure.
17748# Run this file to recreate the current configuration.
698dcdb6
VZ
17749# This directory was configured as follows,
17750# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17751#
17752# $0 $ac_configure_args
17753#
10f2d63a 17754# Compiler output produced by configure, useful for debugging
698dcdb6 17755# configure, is in ./config.log if it exists.
1e487827 17756
698dcdb6
VZ
17757ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17758for ac_option
10f2d63a 17759do
698dcdb6 17760 case "\$ac_option" in
10f2d63a 17761 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
17762 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17763 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17764 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17765 echo "$CONFIG_STATUS generated by autoconf version 2.13"
17766 exit 0 ;;
17767 -help | --help | --hel | --he | --h)
17768 echo "\$ac_cs_usage"; exit 0 ;;
17769 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
17770 esac
17771done
17772
698dcdb6
VZ
17773ac_given_srcdir=$srcdir
17774ac_given_INSTALL="$INSTALL"
703e0a69 17775
698dcdb6
VZ
17776trap 'rm -fr `echo "
17777 wx-config
17778 src/make.env
17779 src/makeprog.env
17780 src/makelib.env
17781 Makefile
17782 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 17783EOF
698dcdb6 17784cat >> $CONFIG_STATUS <<EOF
1e487827 17785
698dcdb6
VZ
17786# Protect against being on the right side of a sed subst in config.status.
17787sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17788 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17789$ac_vpsub
17790$extrasub
17791s%@SHELL@%$SHELL%g
17792s%@CFLAGS@%$CFLAGS%g
17793s%@CPPFLAGS@%$CPPFLAGS%g
17794s%@CXXFLAGS@%$CXXFLAGS%g
17795s%@FFLAGS@%$FFLAGS%g
17796s%@DEFS@%$DEFS%g
17797s%@LDFLAGS@%$LDFLAGS%g
17798s%@LIBS@%$LIBS%g
17799s%@exec_prefix@%$exec_prefix%g
17800s%@prefix@%$prefix%g
17801s%@program_transform_name@%$program_transform_name%g
17802s%@bindir@%$bindir%g
17803s%@sbindir@%$sbindir%g
17804s%@libexecdir@%$libexecdir%g
17805s%@datadir@%$datadir%g
17806s%@sysconfdir@%$sysconfdir%g
17807s%@sharedstatedir@%$sharedstatedir%g
17808s%@localstatedir@%$localstatedir%g
17809s%@libdir@%$libdir%g
17810s%@includedir@%$includedir%g
17811s%@oldincludedir@%$oldincludedir%g
17812s%@infodir@%$infodir%g
17813s%@mandir@%$mandir%g
17814s%@host@%$host%g
17815s%@host_alias@%$host_alias%g
17816s%@host_cpu@%$host_cpu%g
17817s%@host_vendor@%$host_vendor%g
17818s%@host_os@%$host_os%g
17819s%@target@%$target%g
17820s%@target_alias@%$target_alias%g
17821s%@target_cpu@%$target_cpu%g
17822s%@target_vendor@%$target_vendor%g
17823s%@target_os@%$target_os%g
17824s%@build@%$build%g
17825s%@build_alias@%$build_alias%g
17826s%@build_cpu@%$build_cpu%g
17827s%@build_vendor@%$build_vendor%g
17828s%@build_os@%$build_os%g
17829s%@CC@%$CC%g
17830s%@CPP@%$CPP%g
17831s%@CXX@%$CXX%g
17832s%@CXXCPP@%$CXXCPP%g
17833s%@RANLIB@%$RANLIB%g
17834s%@AR@%$AR%g
17835s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17836s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17837s%@INSTALL_DATA@%$INSTALL_DATA%g
17838s%@STRIP@%$STRIP%g
17839s%@YACC@%$YACC%g
17840s%@LEX@%$LEX%g
17841s%@LEXLIB@%$LEXLIB%g
17842s%@LN_S@%$LN_S%g
17843s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
698dcdb6
VZ
17844s%@GTK_CFLAGS@%$GTK_CFLAGS%g
17845s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 17846s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
17847s%@X_CFLAGS@%$X_CFLAGS%g
17848s%@X_PRE_LIBS@%$X_PRE_LIBS%g
17849s%@X_LIBS@%$X_LIBS%g
17850s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
17851s%@REZ@%$REZ%g
17852s%@DEREZ@%$DEREZ%g
17853s%@LEX_STEM@%$LEX_STEM%g
17854s%@PATH_IFS@%$PATH_IFS%g
17855s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
17856s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
17857s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
17858s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
17859s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
17860s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
17861s%@WX_LIBRARY@%$WX_LIBRARY%g
17862s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
17863s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
17864s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
17865s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
17866s%@PROGRAM_EXT@%$PROGRAM_EXT%g
17867s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
17868s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
17869s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
17870s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
17871s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
17872s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
17873s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
17874s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
17875s%@WX_ALL@%$WX_ALL%g
17876s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
17877s%@SHARED_LD@%$SHARED_LD%g
17878s%@PIC_FLAG@%$PIC_FLAG%g
17879s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
17880s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
17881s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
17882s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
17883s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
17884s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
17885s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
17886s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
17887s%@USE_GUI@%$USE_GUI%g
17888s%@AFMINSTALL@%$AFMINSTALL%g
1e6feb95 17889s%@SETUPH_DIR@%$SETUPH_DIR%g
698dcdb6
VZ
17890s%@TOOLKIT@%$TOOLKIT%g
17891s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
17892s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
17893s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
17894s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
1e6feb95 17895s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
698dcdb6
VZ
17896s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
17897s%@ALL_OBJECTS@%$ALL_OBJECTS%g
17898s%@ALL_DEPFILES@%$ALL_DEPFILES%g
17899s%@GUIDIST@%$GUIDIST%g
17900s%@PORT_FILES@%$PORT_FILES%g
17901s%@DISTDIR@%$DISTDIR%g
17902s%@RPM_SPEC@%$RPM_SPEC%g
17903s%@RPM_FILES@%$RPM_FILES%g
17904s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
17905s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
17906s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
17907s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
17908s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
17909s%@USER_SUBDIRS@%$USER_SUBDIRS%g
17910s%@EXTRA_LIBS@%$EXTRA_LIBS%g
17911s%@OPENGL_LIBS@%$OPENGL_LIBS%g
17912s%@EXTRADEFS@%$EXTRADEFS%g
17913s%@LD_LIBS@%$LD_LIBS%g
17914s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
17915s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
17916s%@RESPROGRAM@%$RESPROGRAM%g
17917s%@RESCOMP@%$RESCOMP%g
17918s%@RESFLAGS@%$RESFLAGS%g
17919s%@REZFLAGS@%$REZFLAGS%g
17920s%@DEREZFLAGS@%$DEREZFLAGS%g
17921s%@LIBWXMACRES@%$LIBWXMACRES%g
17922s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
17923s%@DLLTOOL@%$DLLTOOL%g
17924s%@AS@%$AS%g
17925s%@NM@%$NM%g
17926s%@LD@%$LD%g
17927s%@MAKEINFO@%$MAKEINFO%g
17928s%@SET_MAKE@%$SET_MAKE%g
17929s%@subdirs@%$subdirs%g
1e487827 17930
1e487827 17931CEOF
1e487827
VS
17932EOF
17933
698dcdb6
VZ
17934cat >> $CONFIG_STATUS <<\EOF
17935
17936# Split the substitutions into bite-sized pieces for seds with
17937# small command number limits, like on Digital OSF/1 and HP-UX.
17938ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17939ac_file=1 # Number of current file.
17940ac_beg=1 # First line for current file.
17941ac_end=$ac_max_sed_cmds # Line after last line for current file.
17942ac_more_lines=:
17943ac_sed_cmds=""
17944while $ac_more_lines; do
17945 if test $ac_beg -gt 1; then
17946 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17947 else
17948 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17949 fi
17950 if test ! -s conftest.s$ac_file; then
17951 ac_more_lines=false
17952 rm -f conftest.s$ac_file
17953 else
17954 if test -z "$ac_sed_cmds"; then
17955 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 17956 else
698dcdb6 17957 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 17958 fi
698dcdb6
VZ
17959 ac_file=`expr $ac_file + 1`
17960 ac_beg=$ac_end
17961 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 17962 fi
698dcdb6
VZ
17963done
17964if test -z "$ac_sed_cmds"; then
17965 ac_sed_cmds=cat
17966fi
17967EOF
10f2d63a 17968
698dcdb6
VZ
17969cat >> $CONFIG_STATUS <<EOF
17970
17971CONFIG_FILES=\${CONFIG_FILES-"wx-config
17972 src/make.env
17973 src/makeprog.env
17974 src/makelib.env
17975 Makefile
17976 "}
10f2d63a 17977EOF
698dcdb6
VZ
17978cat >> $CONFIG_STATUS <<\EOF
17979for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 17980 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
17981 case "$ac_file" in
17982 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17983 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17984 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
17985 esac
17986
698dcdb6 17987 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 17988
698dcdb6
VZ
17989 # Remove last slash and all that follows it. Not all systems have dirname.
17990 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17991 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17992 # The file is in a subdirectory.
17993 test ! -d "$ac_dir" && mkdir "$ac_dir"
17994 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 17995 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 17996 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
17997 else
17998 ac_dir_suffix= ac_dots=
17999 fi
18000
698dcdb6
VZ
18001 case "$ac_given_srcdir" in
18002 .) srcdir=.
18003 if test -z "$ac_dots"; then top_srcdir=.
18004 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18005 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 18006 *) # Relative path.
698dcdb6
VZ
18007 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18008 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
18009 esac
18010
698dcdb6
VZ
18011 case "$ac_given_INSTALL" in
18012 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18013 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
18014 esac
18015
698dcdb6
VZ
18016 echo creating "$ac_file"
18017 rm -f "$ac_file"
18018 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18019 case "$ac_file" in
18020 *Makefile*) ac_comsub="1i\\
18021# $configure_input" ;;
18022 *) ac_comsub= ;;
18023 esac
10f2d63a 18024
698dcdb6
VZ
18025 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18026 sed -e "$ac_comsub
18027s%@configure_input@%$configure_input%g
18028s%@srcdir@%$srcdir%g
18029s%@top_srcdir@%$top_srcdir%g
18030s%@INSTALL@%$INSTALL%g
18031" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18032fi; done
18033rm -f conftest.s*
10f2d63a
VZ
18034
18035# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18036# NAME is the cpp macro being defined and VALUE is the value it is being given.
18037#
18038# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
18039ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18040ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18041ac_dC='\3'
18042ac_dD='%g'
18043# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18044ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18045ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 18046ac_uC=' '
698dcdb6
VZ
18047ac_uD='\4%g'
18048# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18049ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18050ac_eB='$%\1#\2define\3'
18051ac_eC=' '
18052ac_eD='%g'
10f2d63a 18053
698dcdb6
VZ
18054if test "${CONFIG_HEADERS+set}" != set; then
18055EOF
18056cat >> $CONFIG_STATUS <<EOF
18057 CONFIG_HEADERS="setup.h:setup.h.in"
18058EOF
18059cat >> $CONFIG_STATUS <<\EOF
18060fi
18061for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 18062 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
18063 case "$ac_file" in
18064 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18065 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18066 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
18067 esac
18068
698dcdb6
VZ
18069 echo creating $ac_file
18070
18071 rm -f conftest.frag conftest.in conftest.out
18072 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18073 cat $ac_file_inputs > conftest.in
18074
18075EOF
18076
18077# Transform confdefs.h into a sed script conftest.vals that substitutes
18078# the proper values into config.h.in to produce config.h. And first:
18079# Protect against being on the right side of a sed subst in config.status.
18080# Protect against being in an unquoted here document in config.status.
18081rm -f conftest.vals
18082cat > conftest.hdr <<\EOF
18083s/[\\&%]/\\&/g
18084s%[\\$`]%\\&%g
18085s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18086s%ac_d%ac_u%gp
18087s%ac_u%ac_e%gp
18088EOF
18089sed -n -f conftest.hdr confdefs.h > conftest.vals
18090rm -f conftest.hdr
10f2d63a
VZ
18091
18092# This sed command replaces #undef with comments. This is necessary, for
18093# example, in the case of _POSIX_SOURCE, which is predefined and required
18094# on some systems where configure will not decide to define it.
698dcdb6
VZ
18095cat >> conftest.vals <<\EOF
18096s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
18097EOF
18098
698dcdb6
VZ
18099# Break up conftest.vals because some shells have a limit on
18100# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
18101
18102rm -f conftest.tail
698dcdb6 18103while :
10f2d63a 18104do
698dcdb6
VZ
18105 ac_lines=`grep -c . conftest.vals`
18106 # grep -c gives empty output for an empty file on some AIX systems.
18107 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18108 # Write a limited-size here document to conftest.frag.
18109 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18110 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 18111 echo 'CEOF
698dcdb6
VZ
18112 sed -f conftest.frag conftest.in > conftest.out
18113 rm -f conftest.in
18114 mv conftest.out conftest.in
18115' >> $CONFIG_STATUS
18116 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18117 rm -f conftest.vals
18118 mv conftest.tail conftest.vals
10f2d63a 18119done
698dcdb6
VZ
18120rm -f conftest.vals
18121
18122cat >> $CONFIG_STATUS <<\EOF
18123 rm -f conftest.frag conftest.h
18124 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18125 cat conftest.in >> conftest.h
18126 rm -f conftest.in
18127 if cmp -s $ac_file conftest.h 2>/dev/null; then
18128 echo "$ac_file is unchanged"
18129 rm -f conftest.h
10f2d63a 18130 else
698dcdb6
VZ
18131 # Remove last slash and all that follows it. Not all systems have dirname.
18132 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 18133 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
18134 # The file is in a subdirectory.
18135 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 18136 fi
698dcdb6
VZ
18137 rm -f $ac_file
18138 mv conftest.h $ac_file
10f2d63a 18139 fi
698dcdb6
VZ
18140fi; done
18141
10f2d63a 18142EOF
698dcdb6 18143cat >> $CONFIG_STATUS <<EOF
10f2d63a 18144
1e6feb95 18145 SETUPH_DIR="${SETUPH_DIR}"
698dcdb6
VZ
18146 TOOLKIT_NAME="${TOOLKIT_NAME}"
18147 LN_S="${LN_S}"
18148
18149
18150EOF
18151cat >> $CONFIG_STATUS <<\EOF
10f2d63a 18152
6ef41520 18153 if test ! -f wx${TOOLKIT_NAME}-config; then
991a5759
VZ
18154 chmod +x wx-config
18155 mv wx-config wx${TOOLKIT_NAME}-config
18156 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
18157 fi
665bbe97 18158
698dcdb6 18159
00cf1208
RR
18160 if test ! -d lib; then
18161 mkdir lib
18162 fi
18163 if test ! -d lib/wx; then
18164 mkdir lib/wx
18165 fi
18166 if test ! -d lib/wx/include; then
18167 mkdir lib/wx/include
18168 fi
18169 if test ! -d lib/wx/include/wx; then
18170 mkdir lib/wx/include/wx
18171 fi
f6bcfd97
BP
18172 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
18173 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
00cf1208
RR
18174 fi
18175 if test -f setup.h; then
066b00aa 18176 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
00cf1208 18177 fi
07eb77a6 18178
698dcdb6 18179
10f2d63a
VZ
18180 if test ! -d include; then
18181 mkdir include
18182 fi
18183 if test ! -d include/wx; then
18184 mkdir include/wx
18185 fi
1e6feb95
VZ
18186 if test ! -d include/wx/${SETUPH_DIR}; then
18187 mkdir include/wx/${SETUPH_DIR}
10f2d63a 18188 fi
afc31813 18189 if test -f setup.h; then
1e6feb95 18190 cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h
afc31813 18191 fi
665bbe97 18192
698dcdb6
VZ
18193
18194exit 0
10f2d63a
VZ
18195EOF
18196chmod +x $CONFIG_STATUS
698dcdb6
VZ
18197rm -fr confdefs* $ac_clean_files
18198test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 18199
2224580a
VZ
18200if test "$no_recursion" != yes; then
18201
18202 # Remove --cache-file and --srcdir arguments so they do not pile up.
18203 ac_sub_configure_args=
18204 ac_prev=
18205 for ac_arg in $ac_configure_args; do
18206 if test -n "$ac_prev"; then
18207 ac_prev=
18208 continue
18209 fi
698dcdb6 18210 case "$ac_arg" in
2224580a
VZ
18211 -cache-file | --cache-file | --cache-fil | --cache-fi \
18212 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18213 ac_prev=cache_file ;;
18214 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 18215 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
18216 ;;
18217 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18218 ac_prev=srcdir ;;
18219 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18220 ;;
18221 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18222 esac
18223 done
18224
698dcdb6 18225 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
18226
18227 # Do not complain, so a configure script can configure whichever
18228 # parts of a large source tree are present.
698dcdb6
VZ
18229 if test ! -d $srcdir/$ac_config_dir; then
18230 continue
18231 fi
18232
18233 echo configuring in $ac_config_dir
2224580a 18234
698dcdb6 18235 case "$srcdir" in
2224580a
VZ
18236 .) ;;
18237 *)
698dcdb6
VZ
18238 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18239 else
18240 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18241 fi
18242 ;;
2224580a
VZ
18243 esac
18244
18245 ac_popdir=`pwd`
698dcdb6 18246 cd $ac_config_dir
2224580a 18247
698dcdb6
VZ
18248 # A "../" for each directory in /$ac_config_dir.
18249 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 18250
698dcdb6 18251 case "$srcdir" in
2224580a
VZ
18252 .) # No --srcdir option. We are building in place.
18253 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
18254 /*) # Absolute path.
18255 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 18256 *) # Relative path.
698dcdb6 18257 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
18258 esac
18259
18260 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
18261 if test -f $ac_sub_srcdir/configure; then
18262 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
18263 elif test -f $ac_sub_srcdir/configure.in; then
18264 ac_sub_configure=$ac_configure
18265 else
698dcdb6 18266 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
18267 ac_sub_configure=
18268 fi
18269
18270 # The recursion is here.
18271 if test -n "$ac_sub_configure"; then
698dcdb6 18272
2224580a 18273 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
18274 case "$cache_file" in
18275 /*) ac_sub_cache_file=$cache_file ;;
2224580a 18276 *) # Relative path.
698dcdb6 18277 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 18278 esac
698dcdb6
VZ
18279 case "$ac_given_INSTALL" in
18280 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18281 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18282 esac
2224580a 18283
698dcdb6 18284 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 18285 # The eval makes quoting arguments work.
698dcdb6
VZ
18286 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
18287 then :
18288 else
18289 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
18290 fi
2224580a
VZ
18291 fi
18292
18293 cd $ac_popdir
18294 done
18295fi
18296
698dcdb6 18297