]> git.saurik.com Git - wxWidgets.git/blame - configure
highlight the focused item in non report mode too
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
698dcdb6 3# From configure.in Id: configure.in
703e0a69
VZ
4
5
6
7
8
703e0a69
VZ
9
10
1e487827 11
1e487827 12
698dcdb6
VZ
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
8168de4c
VZ
38
39# Configure paths for GTK+
40# Owen Taylor 97-11-3
698dcdb6
VZ
41
42
43
44
698dcdb6
VZ
45
46
47# Guess values for system-dependent variables and create Makefiles.
48# Generated automatically using autoconf version 2.13
49# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
50#
51# This configure script is free software; the Free Software Foundation
52# gives unlimited permission to copy, distribute and modify it.
53
54# Defaults:
55ac_help=
56ac_default_prefix=/usr/local
57# Any additions from configure.in:
58ac_help="$ac_help
8168de4c 59 --enable-gui use GUI classes"
1e6feb95 60ac_help="$ac_help
8168de4c 61 --enable-universal use wxWindows GUI controls instead of native ones"
698dcdb6
VZ
62ac_help="$ac_help
63 --with-gtk use GTK+"
64ac_help="$ac_help
65 --with-motif use Motif/Lesstif"
66ac_help="$ac_help
67 --with-mac use Mac OS X"
68ac_help="$ac_help
69 --with-wine use WINE"
70ac_help="$ac_help
71 --with-cygwin use Cygwin for MS-Windows"
72ac_help="$ac_help
73 --with-mingw use GCC Minimal MS-Windows"
74ac_help="$ac_help
75 --with-pm use OS/2 Presentation Manager"
1e6feb95
VZ
76ac_help="$ac_help
77 --with-mgl use MGL"
698dcdb6 78ac_help="$ac_help
8168de4c 79 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
698dcdb6 80ac_help="$ac_help
8168de4c 81 --with-libpng use libpng (PNG image format)"
698dcdb6 82ac_help="$ac_help
8168de4c 83 --with-libjpeg use libjpeg (JPEG file format)"
698dcdb6 84ac_help="$ac_help
8168de4c 85 --with-libtiff use libtiff (TIFF file format)"
698dcdb6 86ac_help="$ac_help
8168de4c 87 --with-freetype use freetype (font rasterizer)"
698dcdb6 88ac_help="$ac_help
8168de4c 89 --with-opengl use OpenGL (or Mesa)"
698dcdb6 90ac_help="$ac_help
8168de4c 91 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
3e44f09d
VZ
92ac_help="$ac_help
93 --with-regex enable support for wxRegEx class"
698dcdb6 94ac_help="$ac_help
8168de4c 95 --with-zlib use zlib for LZW compression"
698dcdb6 96ac_help="$ac_help
8168de4c 97 --with-odbc use the IODBC and wxODBC classes"
698dcdb6 98ac_help="$ac_help
8168de4c 99 --enable-shared create shared library code"
698dcdb6 100ac_help="$ac_help
8168de4c 101 --enable-burnt_name create set name in shared library "
698dcdb6 102ac_help="$ac_help
8168de4c 103 --enable-optimise create optimised code"
698dcdb6 104ac_help="$ac_help
8168de4c 105 --enable-debug same as debug_flag and debug_info"
698dcdb6 106ac_help="$ac_help
8168de4c 107 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
698dcdb6 108ac_help="$ac_help
8168de4c 109 --enable-debug_info create code with debugging information"
698dcdb6 110ac_help="$ac_help
8168de4c 111 --enable-debug_gdb create code with extra GDB debugging information"
698dcdb6 112ac_help="$ac_help
8168de4c 113 --enable-debug_cntxt use wxDebugContext"
698dcdb6 114ac_help="$ac_help
8168de4c 115 --enable-mem_tracing create code with memory tracing"
698dcdb6 116ac_help="$ac_help
8168de4c 117 --enable-profile create code with profiling information"
698dcdb6 118ac_help="$ac_help
8168de4c 119 --enable-no_rtti create code without RTTI information"
698dcdb6 120ac_help="$ac_help
8168de4c 121 --enable-no_exceptions create code without exceptions information"
698dcdb6 122ac_help="$ac_help
8168de4c 123 --enable-permissive compile code disregarding strict ANSI"
698dcdb6 124ac_help="$ac_help
8168de4c 125 --enable-no_deps create code without dependency information"
54276ccf
VZ
126ac_help="$ac_help
127 --enable-compat20 enable wxWin 2.0 compatibility"
128ac_help="$ac_help
129 --enable-compat22 enable wxWin 2.2 compatibility"
698dcdb6 130ac_help="$ac_help
8168de4c 131 --enable-intl use internationalization system"
698dcdb6 132ac_help="$ac_help
8168de4c 133 --enable-config use wxConfig (and derived) classes"
698dcdb6 134ac_help="$ac_help
8168de4c 135 --enable-sockets use socket/network classes"
698dcdb6 136ac_help="$ac_help
8168de4c 137 --enable-ipc use interprocess communication (wxSocket etc.)"
698dcdb6 138ac_help="$ac_help
8168de4c 139 --enable-cmdline use wxCmdLineParser class"
1e6feb95 140ac_help="$ac_help
8168de4c 141 --enable-datetime use wxDateTime class"
1e6feb95 142ac_help="$ac_help
8168de4c 143 --enable-timedate use obsolete wxDate/wxTime classes"
1e6feb95 144ac_help="$ac_help
8168de4c 145 --enable-stopwatch use wxStopWatch class"
1e6feb95 146ac_help="$ac_help
8168de4c 147 --enable-dialupman use dialup network classes"
698dcdb6 148ac_help="$ac_help
8168de4c 149 --enable-apple_ieee use the Apple IEEE codec"
698dcdb6 150ac_help="$ac_help
8168de4c 151 --enable-timer use wxTimer class"
698dcdb6 152ac_help="$ac_help
8168de4c 153 --enable-wave use wxWave class"
698dcdb6 154ac_help="$ac_help
8168de4c 155 --enable-fraction use wxFraction class"
698dcdb6 156ac_help="$ac_help
8168de4c 157 --enable-dynlib use wxLibrary class for DLL loading"
698dcdb6 158ac_help="$ac_help
8168de4c 159 --enable-longlong use wxLongLong class"
698dcdb6 160ac_help="$ac_help
8168de4c 161 --enable-geometry use geometry class"
698dcdb6 162ac_help="$ac_help
8168de4c 163 --enable-log use logging system"
698dcdb6 164ac_help="$ac_help
8168de4c 165 --enable-streams use wxStream etc classes"
698dcdb6 166ac_help="$ac_help
8168de4c 167 --enable-file use wxFile classes"
698dcdb6 168ac_help="$ac_help
8168de4c 169 --enable-ffile use wxFFile classes"
1e6feb95 170ac_help="$ac_help
8168de4c 171 --enable-textfile use wxTextFile classes"
698dcdb6 172ac_help="$ac_help
8168de4c 173 --enable-fontmap use font encodings conversion classes"
1e6feb95 174ac_help="$ac_help
8168de4c 175 --enable-unicode compile wxString with Unicode support"
698dcdb6 176ac_help="$ac_help
8168de4c 177 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
698dcdb6 178ac_help="$ac_help
8168de4c 179 --enable-wxprintfv use wxWindows implementation of vprintf()"
698dcdb6 180ac_help="$ac_help
8168de4c 181 --enable-std_iostreams use standard C++ stream classes"
698dcdb6 182ac_help="$ac_help
8168de4c 183 --enable-filesystem use virtual file systems classes"
698dcdb6 184ac_help="$ac_help
8168de4c 185 --enable-fs_inet use virtual HTTP/FTP filesystems"
698dcdb6 186ac_help="$ac_help
8168de4c 187 --enable-fs_zip use virtual ZIP filesystems"
698dcdb6 188ac_help="$ac_help
8168de4c 189 --enable-zipstream use wxZipInputStream"
698dcdb6 190ac_help="$ac_help
8168de4c 191 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
698dcdb6 192ac_help="$ac_help
8168de4c 193 --enable-snglinst use wxSingleInstanceChecker class"
698dcdb6 194ac_help="$ac_help
8168de4c 195 --enable-mimetypes use wxMimeTypesManager"
3e44f09d
VZ
196ac_help="$ac_help
197 --enable-sysoptions use wxSystemOptions"
1e6feb95 198ac_help="$ac_help
8168de4c 199 --enable-threads use threads"
698dcdb6 200ac_help="$ac_help
8168de4c 201 --enable-serial use class serialization"
698dcdb6 202ac_help="$ac_help
8168de4c 203 --enable-docview use document view architecture"
698dcdb6 204ac_help="$ac_help
3379ed37 205 --enable-help use help subsystem"
29fd3c0c
VS
206ac_help="$ac_help
207 --enable-mshtmlhelp use MS HTML Help (win32)"
3379ed37
VZ
208ac_help="$ac_help
209 --enable-html use wxHTML sub-library"
210ac_help="$ac_help
211 --enable-htmlhelp use wxHTML-based help"
698dcdb6 212ac_help="$ac_help
8168de4c 213 --enable-constraints use layout-constraints system"
698dcdb6 214ac_help="$ac_help
8168de4c 215 --enable-printarch use printing architecture"
698dcdb6 216ac_help="$ac_help
8168de4c 217 --enable-mdi use multiple document interface architecture"
698dcdb6 218ac_help="$ac_help
8168de4c 219 --enable-loggui use standard GUI logger"
1e6feb95 220ac_help="$ac_help
8168de4c 221 --enable-logwin use wxLogWindow"
1e6feb95 222ac_help="$ac_help
8168de4c 223 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 224ac_help="$ac_help
8168de4c 225 --enable-prologio use Prolog IO library"
698dcdb6 226ac_help="$ac_help
8168de4c 227 --enable-resources use wxWindows resources"
698dcdb6 228ac_help="$ac_help
8168de4c 229 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 230ac_help="$ac_help
8168de4c 231 --enable-clipboard use wxClipboard classes"
698dcdb6 232ac_help="$ac_help
8168de4c 233 --enable-dnd use Drag'n'Drop classes"
698dcdb6 234ac_help="$ac_help
8168de4c 235 --enable-metafile use win32 metafiles"
698dcdb6 236ac_help="$ac_help
24176f2c 237 --enable-treelayout use wxTreeLayout classes"
698dcdb6 238ac_help="$ac_help
8168de4c 239 --enable-controls use all usual controls"
698dcdb6 240ac_help="$ac_help
8168de4c 241 --enable-accel use accelerators"
698dcdb6 242ac_help="$ac_help
8168de4c 243 --enable-button use wxButton class"
698dcdb6 244ac_help="$ac_help
8168de4c 245 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 246ac_help="$ac_help
8168de4c 247 --enable-calendar use wxCalendarCtrl class"
1e6feb95 248ac_help="$ac_help
8168de4c 249 --enable-caret use wxCaret class"
1e6feb95 250ac_help="$ac_help
8168de4c 251 --enable-checkbox use wxCheckBox class"
698dcdb6 252ac_help="$ac_help
8168de4c 253 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 254ac_help="$ac_help
8168de4c 255 --enable-choice use wxChoice class"
698dcdb6 256ac_help="$ac_help
8168de4c 257 --enable-combobox use wxComboBox classes"
698dcdb6 258ac_help="$ac_help
8168de4c 259 --enable-gauge use wxGauge class"
698dcdb6 260ac_help="$ac_help
8168de4c 261 --enable-grid use wxGrid class"
698dcdb6 262ac_help="$ac_help
8168de4c 263 --enable-newgrid use new wxGrid class"
698dcdb6 264ac_help="$ac_help
8168de4c 265 --enable-imaglist use wxImageList class"
698dcdb6 266ac_help="$ac_help
8168de4c 267 --enable-listbox use wxListBox class"
698dcdb6 268ac_help="$ac_help
8168de4c 269 --enable-listctrl use wxListCtrl class"
698dcdb6 270ac_help="$ac_help
8168de4c 271 --enable-notebook use wxNotebook class"
24176f2c
GD
272ac_help="$ac_help
273 --enable-propsheet use wxPropertySheet class"
698dcdb6 274ac_help="$ac_help
8168de4c 275 --enable-radiobox use wxRadioBox class"
698dcdb6 276ac_help="$ac_help
8168de4c 277 --enable-radiobtn use wxRadioButton class"
698dcdb6 278ac_help="$ac_help
8168de4c 279 --enable-sash use wxSashWindow class"
698dcdb6 280ac_help="$ac_help
8168de4c 281 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 282ac_help="$ac_help
8168de4c 283 --enable-slider use wxSlider class"
698dcdb6 284ac_help="$ac_help
8168de4c 285 --enable-spinbtn use wxSpinButton class"
698dcdb6 286ac_help="$ac_help
8168de4c 287 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 288ac_help="$ac_help
8168de4c 289 --enable-splitter use wxSplitterWindow class"
698dcdb6 290ac_help="$ac_help
8168de4c 291 --enable-statbmp use wxStaticBitmap class"
698dcdb6 292ac_help="$ac_help
8168de4c 293 --enable-statbox use wxStaticBox class"
698dcdb6 294ac_help="$ac_help
8168de4c 295 --enable-statline use wxStaticLine class"
698dcdb6 296ac_help="$ac_help
8168de4c 297 --enable-stattext use wxStaticText class"
1e6feb95 298ac_help="$ac_help
8168de4c 299 --enable-statusbar use wxStatusBar class"
698dcdb6 300ac_help="$ac_help
8168de4c 301 --enable-tabdialog use wxTabControl class"
698dcdb6 302ac_help="$ac_help
8168de4c 303 --enable-textctrl use wxTextCtrl class"
1e6feb95 304ac_help="$ac_help
8168de4c 305 --enable-togglebtn use wxToggleButton class"
698dcdb6 306ac_help="$ac_help
8168de4c 307 --enable-toolbar use wxToolBar class"
698dcdb6 308ac_help="$ac_help
8168de4c 309 --enable-tbarnative use native wxToolBar class"
698dcdb6 310ac_help="$ac_help
8168de4c 311 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 312ac_help="$ac_help
8168de4c 313 --enable-treectrl use wxTreeCtrl class"
9f41d601
RR
314ac_help="$ac_help
315 --enable-popupwin use wxPopUpWindow class"
698dcdb6 316ac_help="$ac_help
8168de4c 317 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
698dcdb6 318ac_help="$ac_help
8168de4c 319 --enable-choicedlg use wxChoiceDialog"
1e6feb95 320ac_help="$ac_help
8168de4c 321 --enable-coldlg use wxColourDialog"
1e6feb95 322ac_help="$ac_help
8168de4c 323 --enable-filedlg use wxFileDialog"
1e6feb95 324ac_help="$ac_help
8168de4c 325 --enable-fontdlg use wxFontDialog"
1e6feb95 326ac_help="$ac_help
8168de4c 327 --enable-dirdlg use wxDirDialog"
698dcdb6 328ac_help="$ac_help
8168de4c 329 --enable-msgdlg use wxMessageDialog"
1e6feb95 330ac_help="$ac_help
8168de4c 331 --enable-numberdlg use wxNumberEntryDialog"
1e6feb95 332ac_help="$ac_help
8168de4c 333 --enable-textdlg use wxTextDialog"
698dcdb6 334ac_help="$ac_help
8168de4c 335 --enable-tipdlg use startup tips"
698dcdb6 336ac_help="$ac_help
8168de4c 337 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
338ac_help="$ac_help
339 --enable-wizarddlg use wxWizard"
698dcdb6 340ac_help="$ac_help
8168de4c 341 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 342ac_help="$ac_help
8168de4c 343 --enable-miniframe use wxMiniFrame class"
698dcdb6 344ac_help="$ac_help
8168de4c 345 --enable-tooltips use wxToolTip class"
698dcdb6 346ac_help="$ac_help
8168de4c 347 --enable-splines use spline drawing code"
698dcdb6 348ac_help="$ac_help
8168de4c 349 --enable-validators use wxValidator and derived classes"
698dcdb6 350ac_help="$ac_help
8168de4c 351 --enable-busyinfo use wxBusyInfo"
698dcdb6 352ac_help="$ac_help
8168de4c 353 --enable-joystick compile in joystick support (Linux only)"
698dcdb6 354ac_help="$ac_help
8168de4c 355 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
356ac_help="$ac_help
357 --enable-dragimage use wxDragImage"
1e6feb95 358ac_help="$ac_help
8168de4c 359 --enable-image use wxImage class"
698dcdb6 360ac_help="$ac_help
8168de4c 361 --enable-gif use gif images (GIF file format)"
698dcdb6 362ac_help="$ac_help
8168de4c 363 --enable-pcx use pcx images (PCX file format)"
698dcdb6 364ac_help="$ac_help
8168de4c 365 --enable-pnm use pnm images (PNM file format)"
698dcdb6 366ac_help="$ac_help
8168de4c 367 --enable-xpm use xpm images (XPM file format)"
698dcdb6
VZ
368ac_help="$ac_help
369 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
370ac_help="$ac_help
371 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
372ac_help="$ac_help
373 --disable-gtktest Do not try to compile and run a test GTK program"
374ac_help="$ac_help
375 --with-x use the X Window System"
10f2d63a
VZ
376
377# Initialize some variables set by options.
378# The variables have the same names as the options, with
379# dashes changed to underlines.
698dcdb6
VZ
380build=NONE
381cache_file=./config.cache
10f2d63a 382exec_prefix=NONE
698dcdb6 383host=NONE
10f2d63a 384no_create=
698dcdb6 385nonopt=NONE
10f2d63a
VZ
386no_recursion=
387prefix=NONE
388program_prefix=NONE
389program_suffix=NONE
390program_transform_name=s,x,x,
391silent=
392site=
393srcdir=
698dcdb6 394target=NONE
10f2d63a
VZ
395verbose=
396x_includes=NONE
397x_libraries=NONE
398bindir='${exec_prefix}/bin'
399sbindir='${exec_prefix}/sbin'
400libexecdir='${exec_prefix}/libexec'
401datadir='${prefix}/share'
402sysconfdir='${prefix}/etc'
403sharedstatedir='${prefix}/com'
404localstatedir='${prefix}/var'
405libdir='${exec_prefix}/lib'
406includedir='${prefix}/include'
407oldincludedir='/usr/include'
408infodir='${prefix}/info'
409mandir='${prefix}/man'
410
698dcdb6
VZ
411# Initialize some other variables.
412subdirs=
413MFLAGS= MAKEFLAGS=
414SHELL=${CONFIG_SHELL-/bin/sh}
415# Maximum number of lines to put in a shell here document.
416ac_max_here_lines=12
10f2d63a
VZ
417
418ac_prev=
419for ac_option
420do
698dcdb6 421
10f2d63a
VZ
422 # If the previous option needs an argument, assign it.
423 if test -n "$ac_prev"; then
424 eval "$ac_prev=\$ac_option"
425 ac_prev=
426 continue
427 fi
428
698dcdb6
VZ
429 case "$ac_option" in
430 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
431 *) ac_optarg= ;;
432 esac
10f2d63a
VZ
433
434 # Accept the important Cygnus configure options, so we can diagnose typos.
435
698dcdb6 436 case "$ac_option" in
10f2d63a
VZ
437
438 -bindir | --bindir | --bindi | --bind | --bin | --bi)
439 ac_prev=bindir ;;
440 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 441 bindir="$ac_optarg" ;;
10f2d63a
VZ
442
443 -build | --build | --buil | --bui | --bu)
698dcdb6 444 ac_prev=build ;;
10f2d63a 445 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 446 build="$ac_optarg" ;;
10f2d63a
VZ
447
448 -cache-file | --cache-file | --cache-fil | --cache-fi \
449 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
450 ac_prev=cache_file ;;
451 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
452 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 453 cache_file="$ac_optarg" ;;
10f2d63a
VZ
454
455 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
456 ac_prev=datadir ;;
457 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
458 | --da=*)
698dcdb6 459 datadir="$ac_optarg" ;;
10f2d63a
VZ
460
461 -disable-* | --disable-*)
698dcdb6 462 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 463 # Reject names that are not valid shell variable names.
698dcdb6
VZ
464 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
465 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
466 fi
467 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
468 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
469
470 -enable-* | --enable-*)
698dcdb6 471 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 472 # Reject names that are not valid shell variable names.
698dcdb6
VZ
473 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
474 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
475 fi
476 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
477 case "$ac_option" in
478 *=*) ;;
10f2d63a
VZ
479 *) ac_optarg=yes ;;
480 esac
698dcdb6 481 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
482
483 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
484 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
485 | --exec | --exe | --ex)
486 ac_prev=exec_prefix ;;
487 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
488 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
489 | --exec=* | --exe=* | --ex=*)
698dcdb6 490 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
491
492 -gas | --gas | --ga | --g)
493 # Obsolete; use --with-gas.
494 with_gas=yes ;;
495
698dcdb6
VZ
496 -help | --help | --hel | --he)
497 # Omit some internal or obsolete options to make the list less imposing.
498 # This message is too long to be a string in the A/UX 3.1 sh.
499 cat << EOF
500Usage: configure [options] [host]
501Options: [defaults in brackets after descriptions]
502Configuration:
503 --cache-file=FILE cache test results in FILE
504 --help print this message
505 --no-create do not create output files
506 --quiet, --silent do not print \`checking...' messages
507 --version print the version of autoconf that created configure
508Directory and file names:
509 --prefix=PREFIX install architecture-independent files in PREFIX
510 [$ac_default_prefix]
511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
512 [same as prefix]
513 --bindir=DIR user executables in DIR [EPREFIX/bin]
514 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
515 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
516 --datadir=DIR read-only architecture-independent data in DIR
517 [PREFIX/share]
518 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
519 --sharedstatedir=DIR modifiable architecture-independent data in DIR
520 [PREFIX/com]
521 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
522 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
523 --includedir=DIR C header files in DIR [PREFIX/include]
524 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
525 --infodir=DIR info documentation in DIR [PREFIX/info]
526 --mandir=DIR man documentation in DIR [PREFIX/man]
527 --srcdir=DIR find the sources in DIR [configure dir or ..]
528 --program-prefix=PREFIX prepend PREFIX to installed program names
529 --program-suffix=SUFFIX append SUFFIX to installed program names
530 --program-transform-name=PROGRAM
531 run sed PROGRAM on installed program names
532EOF
533 cat << EOF
534Host type:
535 --build=BUILD configure for building on BUILD [BUILD=HOST]
536 --host=HOST configure for HOST [guessed]
537 --target=TARGET configure for TARGET [TARGET=HOST]
538Features and packages:
539 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
540 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
541 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
542 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
543 --x-includes=DIR X include files are in DIR
544 --x-libraries=DIR X library files are in DIR
545EOF
546 if test -n "$ac_help"; then
547 echo "--enable and --with options recognized:$ac_help"
548 fi
549 exit 0 ;;
10f2d63a
VZ
550
551 -host | --host | --hos | --ho)
698dcdb6 552 ac_prev=host ;;
10f2d63a 553 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 554 host="$ac_optarg" ;;
10f2d63a
VZ
555
556 -includedir | --includedir | --includedi | --included | --include \
557 | --includ | --inclu | --incl | --inc)
558 ac_prev=includedir ;;
559 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
560 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 561 includedir="$ac_optarg" ;;
10f2d63a
VZ
562
563 -infodir | --infodir | --infodi | --infod | --info | --inf)
564 ac_prev=infodir ;;
565 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 566 infodir="$ac_optarg" ;;
10f2d63a
VZ
567
568 -libdir | --libdir | --libdi | --libd)
569 ac_prev=libdir ;;
570 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 571 libdir="$ac_optarg" ;;
10f2d63a
VZ
572
573 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
574 | --libexe | --libex | --libe)
575 ac_prev=libexecdir ;;
576 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
577 | --libexe=* | --libex=* | --libe=*)
698dcdb6 578 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
579
580 -localstatedir | --localstatedir | --localstatedi | --localstated \
581 | --localstate | --localstat | --localsta | --localst \
582 | --locals | --local | --loca | --loc | --lo)
583 ac_prev=localstatedir ;;
584 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
585 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
586 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 587 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
588
589 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
590 ac_prev=mandir ;;
591 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 592 mandir="$ac_optarg" ;;
10f2d63a
VZ
593
594 -nfp | --nfp | --nf)
595 # Obsolete; use --without-fp.
596 with_fp=no ;;
597
598 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
599 | --no-cr | --no-c)
600 no_create=yes ;;
601
602 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
603 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
604 no_recursion=yes ;;
605
606 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
607 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
608 | --oldin | --oldi | --old | --ol | --o)
609 ac_prev=oldincludedir ;;
610 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
611 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
612 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 613 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
614
615 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
616 ac_prev=prefix ;;
617 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 618 prefix="$ac_optarg" ;;
10f2d63a
VZ
619
620 -program-prefix | --program-prefix | --program-prefi | --program-pref \
621 | --program-pre | --program-pr | --program-p)
622 ac_prev=program_prefix ;;
623 -program-prefix=* | --program-prefix=* | --program-prefi=* \
624 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 625 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
626
627 -program-suffix | --program-suffix | --program-suffi | --program-suff \
628 | --program-suf | --program-su | --program-s)
629 ac_prev=program_suffix ;;
630 -program-suffix=* | --program-suffix=* | --program-suffi=* \
631 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 632 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
633
634 -program-transform-name | --program-transform-name \
635 | --program-transform-nam | --program-transform-na \
636 | --program-transform-n | --program-transform- \
637 | --program-transform | --program-transfor \
638 | --program-transfo | --program-transf \
639 | --program-trans | --program-tran \
640 | --progr-tra | --program-tr | --program-t)
641 ac_prev=program_transform_name ;;
642 -program-transform-name=* | --program-transform-name=* \
643 | --program-transform-nam=* | --program-transform-na=* \
644 | --program-transform-n=* | --program-transform-=* \
645 | --program-transform=* | --program-transfor=* \
646 | --program-transfo=* | --program-transf=* \
647 | --program-trans=* | --program-tran=* \
648 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 649 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
650
651 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
652 | -silent | --silent | --silen | --sile | --sil)
653 silent=yes ;;
654
655 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
656 ac_prev=sbindir ;;
657 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
658 | --sbi=* | --sb=*)
698dcdb6 659 sbindir="$ac_optarg" ;;
10f2d63a
VZ
660
661 -sharedstatedir | --sharedstatedir | --sharedstatedi \
662 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
663 | --sharedst | --shareds | --shared | --share | --shar \
664 | --sha | --sh)
665 ac_prev=sharedstatedir ;;
666 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
667 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
668 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
669 | --sha=* | --sh=*)
698dcdb6 670 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
671
672 -site | --site | --sit)
673 ac_prev=site ;;
674 -site=* | --site=* | --sit=*)
698dcdb6 675 site="$ac_optarg" ;;
10f2d63a
VZ
676
677 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
678 ac_prev=srcdir ;;
679 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 680 srcdir="$ac_optarg" ;;
10f2d63a
VZ
681
682 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
683 | --syscon | --sysco | --sysc | --sys | --sy)
684 ac_prev=sysconfdir ;;
685 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
686 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 687 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
688
689 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 690 ac_prev=target ;;
10f2d63a 691 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 692 target="$ac_optarg" ;;
10f2d63a
VZ
693
694 -v | -verbose | --verbose | --verbos | --verbo | --verb)
695 verbose=yes ;;
696
698dcdb6
VZ
697 -version | --version | --versio | --versi | --vers)
698 echo "configure generated by autoconf version 2.13"
699 exit 0 ;;
10f2d63a
VZ
700
701 -with-* | --with-*)
698dcdb6 702 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 703 # Reject names that are not valid shell variable names.
698dcdb6
VZ
704 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
705 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
706 fi
10f2d63a 707 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
708 case "$ac_option" in
709 *=*) ;;
10f2d63a
VZ
710 *) ac_optarg=yes ;;
711 esac
698dcdb6 712 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
713
714 -without-* | --without-*)
698dcdb6 715 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 716 # Reject names that are not valid shell variable names.
698dcdb6
VZ
717 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
718 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
719 fi
720 ac_package=`echo $ac_package| sed 's/-/_/g'`
721 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
722
723 --x)
724 # Obsolete; use --with-x.
725 with_x=yes ;;
726
727 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
728 | --x-incl | --x-inc | --x-in | --x-i)
729 ac_prev=x_includes ;;
730 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
731 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 732 x_includes="$ac_optarg" ;;
10f2d63a
VZ
733
734 -x-libraries | --x-libraries | --x-librarie | --x-librari \
735 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
736 ac_prev=x_libraries ;;
737 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
738 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 739 x_libraries="$ac_optarg" ;;
10f2d63a 740
698dcdb6 741 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
742 ;;
743
744 *)
698dcdb6
VZ
745 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
746 echo "configure: warning: $ac_option: invalid host type" 1>&2
747 fi
748 if test "x$nonopt" != xNONE; then
749 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
750 fi
751 nonopt="$ac_option"
10f2d63a
VZ
752 ;;
753
754 esac
755done
756
757if test -n "$ac_prev"; then
698dcdb6
VZ
758 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
759fi
760
761trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
762
763# File descriptor usage:
764# 0 standard input
765# 1 file creation
766# 2 errors and warnings
767# 3 some systems may open it to /dev/tty
768# 4 used on the Kubota Titan
769# 6 checking for... messages and results
770# 5 compiler messages saved in config.log
771if test "$silent" = yes; then
772 exec 6>/dev/null
773else
774 exec 6>&1
10f2d63a 775fi
698dcdb6
VZ
776exec 5>./config.log
777
778echo "\
779This file contains any messages produced by compilers while
780running configure, to aid debugging if configure makes a mistake.
781" 1>&5
10f2d63a 782
698dcdb6
VZ
783# Strip out --no-create and --no-recursion so they do not pile up.
784# Also quote any args containing shell metacharacters.
785ac_configure_args=
786for ac_arg
10f2d63a 787do
698dcdb6
VZ
788 case "$ac_arg" in
789 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
790 | --no-cr | --no-c) ;;
791 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
792 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
793 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
794 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
795 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
796 esac
797done
798
698dcdb6
VZ
799# NLS nuisances.
800# Only set these to C if already set. These must not be set unconditionally
801# because not all systems understand e.g. LANG=C (notably SCO).
802# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
803# Non-C LC_CTYPE values break the ctype check.
804if test "${LANG+set}" = set; then LANG=C; export LANG; fi
805if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
806if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
807if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 808
698dcdb6
VZ
809# confdefs.h avoids OS command line length limits that DEFS can exceed.
810rm -rf conftest* confdefs.h
811# AIX cpp loses on an empty file, so make sure it contains at least a newline.
812echo > confdefs.h
10f2d63a 813
698dcdb6
VZ
814# A filename unique to this package, relative to the directory that
815# configure is in, which we can look for to find out if srcdir is correct.
816ac_unique_file=wx-config.in
10f2d63a
VZ
817
818# Find the source files, if location was not specified.
819if test -z "$srcdir"; then
820 ac_srcdir_defaulted=yes
821 # Try the directory containing this script, then its parent.
822 ac_prog=$0
698dcdb6 823 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
824 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
825 srcdir=$ac_confdir
826 if test ! -r $srcdir/$ac_unique_file; then
827 srcdir=..
828 fi
829else
830 ac_srcdir_defaulted=no
831fi
832if test ! -r $srcdir/$ac_unique_file; then
833 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 834 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 835 else
698dcdb6 836 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
837 fi
838fi
698dcdb6 839srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
840
841# Prefer explicitly selected file to automatically selected ones.
842if test -z "$CONFIG_SITE"; then
843 if test "x$prefix" != xNONE; then
844 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
845 else
846 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
847 fi
848fi
849for ac_site_file in $CONFIG_SITE; do
850 if test -r "$ac_site_file"; then
698dcdb6 851 echo "loading site script $ac_site_file"
10f2d63a
VZ
852 . "$ac_site_file"
853 fi
854done
855
856if test -r "$cache_file"; then
698dcdb6
VZ
857 echo "loading cache $cache_file"
858 . $cache_file
10f2d63a 859else
698dcdb6
VZ
860 echo "creating cache $cache_file"
861 > $cache_file
10f2d63a
VZ
862fi
863
864ac_ext=c
698dcdb6 865# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 866ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
867ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
868ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
869cross_compiling=$ac_cv_prog_cc_cross
870
871ac_exeext=
872ac_objext=o
873if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
874 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
875 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
876 ac_n= ac_c='
877' ac_t=' '
878 else
879 ac_n=-n ac_c= ac_t=
880 fi
10f2d63a 881else
698dcdb6 882 ac_n= ac_c='\c' ac_t=
10f2d63a 883fi
698dcdb6
VZ
884
885
10f2d63a 886
7c66a493
VZ
887ac_aux_dir=
888for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
889 if test -f $ac_dir/install-sh; then
890 ac_aux_dir=$ac_dir
891 ac_install_sh="$ac_aux_dir/install-sh -c"
892 break
893 elif test -f $ac_dir/install.sh; then
894 ac_aux_dir=$ac_dir
895 ac_install_sh="$ac_aux_dir/install.sh -c"
896 break
897 fi
898done
899if test -z "$ac_aux_dir"; then
698dcdb6 900 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 901fi
698dcdb6
VZ
902ac_config_guess=$ac_aux_dir/config.guess
903ac_config_sub=$ac_aux_dir/config.sub
904ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 905
698dcdb6
VZ
906
907# Do some error checking and defaulting for the host and target type.
908# The inputs are:
909# configure --host=HOST --target=TARGET --build=BUILD NONOPT
910#
911# The rules are:
912# 1. You are not allowed to specify --host, --target, and nonopt at the
913# same time.
914# 2. Host defaults to nonopt.
915# 3. If nonopt is not specified, then host defaults to the current host,
916# as determined by config.guess.
917# 4. Target and build default to nonopt.
918# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
919
920# The aliases save the names the user supplied, while $host etc.
921# will get canonicalized.
698dcdb6
VZ
922case $host---$target---$nonopt in
923NONE---*---* | *---NONE---* | *---*---NONE) ;;
924*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
925esac
926
927
928# Make sure we can run config.sub.
929if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
930else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
931fi
932
933echo $ac_n "checking host system type""... $ac_c" 1>&6
24176f2c 934echo "configure:935: checking host system type" >&5
698dcdb6
VZ
935
936host_alias=$host
937case "$host_alias" in
938NONE)
939 case $nonopt in
940 NONE)
941 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
942 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
943 fi ;;
944 *) host_alias=$nonopt ;;
945 esac ;;
946esac
947
948host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
949host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
950host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
951host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
952echo "$ac_t""$host" 1>&6
953
954echo $ac_n "checking target system type""... $ac_c" 1>&6
24176f2c 955echo "configure:956: checking target system type" >&5
698dcdb6
VZ
956
957target_alias=$target
958case "$target_alias" in
959NONE)
960 case $nonopt in
961 NONE) target_alias=$host_alias ;;
962 *) target_alias=$nonopt ;;
963 esac ;;
964esac
965
966target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
967target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
968target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
969target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
970echo "$ac_t""$target" 1>&6
971
972echo $ac_n "checking build system type""... $ac_c" 1>&6
24176f2c 973echo "configure:974: checking build system type" >&5
698dcdb6
VZ
974
975build_alias=$build
976case "$build_alias" in
977NONE)
978 case $nonopt in
979 NONE) build_alias=$host_alias ;;
980 *) build_alias=$nonopt ;;
981 esac ;;
982esac
983
984build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
985build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
986build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
987build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
988echo "$ac_t""$build" 1>&6
989
990test "$host_alias" != "$target_alias" &&
7c66a493
VZ
991 test "$program_prefix$program_suffix$program_transform_name" = \
992 NONENONEs,x,x, &&
993 program_prefix=${target_alias}-
994
698dcdb6
VZ
995
996
10f2d63a 997WX_MAJOR_VERSION_NUMBER=2
37d403aa 998WX_MINOR_VERSION_NUMBER=3
6c01ec02 999WX_RELEASE_NUMBER=2
10f2d63a 1000
10f2d63a 1001WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1002WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1003
6c01ec02 1004WX_CURRENT=1
6426998c
RL
1005WX_REVISION=0
1006WX_AGE=0
1007
698dcdb6
VZ
1008
1009
10f2d63a
VZ
1010USE_UNIX=1
1011USE_WIN32=0
b12915c1 1012USE_BEOS=0
1216f52d 1013USE_MAC=0
b12915c1 1014
10f2d63a
VZ
1015USE_LINUX=
1016USE_SGI=
1017USE_HPUX=
1018USE_SYSV=
1019USE_SVR4=
1020USE_AIX=
1021USE_SUN=
1022USE_SOLARIS=
1023USE_SUNOS=
1024USE_ALPHA=
1025USE_OSF=
1026USE_BSD=
f11bdd03 1027USE_DARWIN=
10f2d63a 1028USE_FREEBSD=
95c8801c 1029USE_OPENBSD=
f6bcfd97 1030USE_NETBSD=
10f2d63a
VZ
1031USE_VMS=
1032USE_ULTRIX=
1033USE_CYGWIN=
1034USE_MINGW=
1035USE_DATA_GENERAL=
1036
ab9b9eab
VZ
1037NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1038
1e6feb95 1039ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
10f2d63a
VZ
1040
1041DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1042DEFAULT_wxUSE_MAC=0
1043DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1044DEFAULT_wxUSE_MOTIF=0
1045DEFAULT_wxUSE_MSW=0
e07802fc 1046DEFAULT_wxUSE_PM=0
1e6feb95 1047DEFAULT_wxUSE_WINE=0
10f2d63a
VZ
1048
1049DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1050DEFAULT_DEFAULT_wxUSE_MAC=0
1051DEFAULT_DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1052DEFAULT_DEFAULT_wxUSE_MOTIF=0
1053DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1054DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1055DEFAULT_DEFAULT_wxUSE_WINE=0
10f2d63a 1056
d6a55c4b
VZ
1057PROGRAM_EXT=
1058
10f2d63a
VZ
1059case "${host}" in
1060 *-hp-hpux* )
1061 USE_HPUX=1
1062 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1063 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
698dcdb6 1064 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1065#define __HPUX__ 1
1066EOF
1067
1068 ;;
1069 *-*-linux* )
1070 USE_LINUX=1
698dcdb6 1071 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1072#define __LINUX__ 1
1073EOF
1074
1075 TMP=`uname -m`
1076 if test "x$TMP" = "xalpha"; then
1077 USE_ALPHA=1
698dcdb6 1078 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1079#define __ALPHA__ 1
1080EOF
1081
1082 fi
1083 DEFAULT_DEFAULT_wxUSE_GTK=1
1084 ;;
1085 *-*-irix5* | *-*-irix6* )
1086 USE_SGI=1
1087 USE_SVR4=1
698dcdb6 1088 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1089#define __SGI__ 1
1090EOF
1091
698dcdb6 1092 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1093#define __SVR4__ 1
1094EOF
1095
1096 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1097 ;;
1098 *-*-solaris2* )
1099 USE_SUN=1
1100 USE_SOLARIS=1
1101 USE_SVR4=1
698dcdb6 1102 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1103#define __SUN__ 1
1104EOF
1105
698dcdb6 1106 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1107#define __SOLARIS__ 1
1108EOF
1109
698dcdb6 1110 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1111#define __SVR4__ 1
1112EOF
1113
1114 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1115 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1116 ;;
1117 *-*-sunos4* )
1118 USE_SUN=1
1119 USE_SUNOS=1
1120 USE_BSD=1
698dcdb6 1121 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1122#define __SUN__ 1
1123EOF
1124
698dcdb6 1125 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1126#define __SUNOS__ 1
1127EOF
1128
698dcdb6 1129 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1130#define __BSD__ 1
1131EOF
1132
1133 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1134 ;;
f6bcfd97 1135 *-*-freebsd*)
10f2d63a
VZ
1136 USE_BSD=1
1137 USE_FREEBSD=1
698dcdb6 1138 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1139#define __FREEBSD__ 1
1140EOF
1141
698dcdb6 1142 cat >> confdefs.h <<\EOF
10f2d63a 1143#define __BSD__ 1
95c8801c
VS
1144EOF
1145
1146 DEFAULT_DEFAULT_wxUSE_GTK=1
1147 ;;
1148 *-*-openbsd*)
1149 USE_BSD=1
1150 USE_OPENBSD=1
698dcdb6 1151 cat >> confdefs.h <<\EOF
95c8801c
VS
1152#define __FREEBSD__ 1
1153EOF
1154
698dcdb6 1155 cat >> confdefs.h <<\EOF
95c8801c 1156#define __OPENBSD__ 1
f6bcfd97
BP
1157EOF
1158
1159 DEFAULT_DEFAULT_wxUSE_GTK=1
1160 ;;
1161 *-*-netbsd*)
1162 USE_BSD=1
1163 USE_NETBSD=1
698dcdb6 1164 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1165#define __FREEBSD__ 1
1166EOF
1167
698dcdb6 1168 cat >> confdefs.h <<\EOF
f6bcfd97 1169#define __NETBSD__ 1
10f2d63a
VZ
1170EOF
1171
1172 DEFAULT_DEFAULT_wxUSE_GTK=1
1173 ;;
1174 *-*-osf* )
1175 USE_ALPHA=1
1176 USE_OSF=1
698dcdb6 1177 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1178#define __ALPHA__ 1
1179EOF
1180
698dcdb6 1181 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1182#define __OSF__ 1
1183EOF
1184
1185 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1186 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1187 ;;
1188 *-*-dgux5* )
1189 USE_ALPHA=1
1190 USE_SVR4=1
698dcdb6 1191 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1192#define __ALPHA__ 1
1193EOF
1194
698dcdb6 1195 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1196#define __SVR4__ 1
1197EOF
1198
1199 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1200 ;;
1201 *-*-sysv5* )
1202 USE_SYSV=1
1203 USE_SVR4=1
698dcdb6 1204 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1205#define __SYSV__ 1
1206EOF
1207
698dcdb6 1208 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1209#define __SVR4__ 1
1210EOF
1211
1212 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1213 ;;
1214 *-*-aix* )
1215 USE_AIX=1
1216 USE_SYSV=1
1217 USE_SVR4=1
698dcdb6 1218 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1219#define __AIX__ 1
1220EOF
1221
698dcdb6 1222 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1223#define __SYSV__ 1
1224EOF
1225
698dcdb6 1226 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1227#define __SVR4__ 1
1228EOF
1229
1230 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1231 ;;
1232
1c8183e2 1233 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1234 USE_UNIX=0
1235 USE_WIN32=1
698dcdb6 1236 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1237#define __WIN32__ 1
1238EOF
1239
698dcdb6 1240 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1241#define __WIN95__ 1
1242EOF
1243
698dcdb6 1244 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1245#define __WINDOWS__ 1
1246EOF
1247
698dcdb6 1248 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1249#define __GNUWIN32__ 1
1250EOF
1251
698dcdb6 1252 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1253#define STRICT 1
1254EOF
1255
698dcdb6 1256 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1257#define WINVER 0x0400
1258EOF
1259
cf27ef00 1260 PROGRAM_EXT=".exe"
10f2d63a
VZ
1261 DEFAULT_DEFAULT_wxUSE_MSW=1
1262 ;;
1263
1264 *-pc-os2_emx )
698dcdb6 1265 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1266#define __EMX__ 1
1267EOF
1268
cf27ef00 1269 PROGRAM_EXT=".exe"
e07802fc 1270 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1271 ;;
1272
b4085ce6
GD
1273 *-*-darwin* )
1274 USE_BSD=1
f11bdd03 1275 USE_DARWIN=1
698dcdb6 1276 cat >> confdefs.h <<\EOF
f11bdd03 1277#define __BSD__ 1
b4085ce6
GD
1278EOF
1279
698dcdb6 1280 cat >> confdefs.h <<\EOF
f11bdd03 1281#define __DARWIN__ 1
b4085ce6
GD
1282EOF
1283
698dcdb6 1284 cat >> confdefs.h <<\EOF
b4085ce6
GD
1285#define __UNIX__ 1
1286EOF
1287
1288 DEFAULT_DEFAULT_wxUSE_MAC=1
1289 ;;
1290
b12915c1
VZ
1291 *-*-beos* )
1292 USE_BEOS=1
698dcdb6 1293 cat >> confdefs.h <<\EOF
b12915c1
VZ
1294#define __BEOS__ 1
1295EOF
1296
1297 ;;
1298
10f2d63a 1299 *)
698dcdb6 1300 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1301esac
1302
1303if test "$USE_UNIX" = 1 ; then
b12915c1 1304 wxUSE_UNIX=yes
698dcdb6 1305 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1306#define __UNIX__ 1
1307EOF
1308
698dcdb6 1309
b12915c1
VZ
1310 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1311 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1312fi
1313
1314if test "$USE_BEOS" = 1; then
1315 SRC_SUBDIRS="$SRC_SUBDIRS be"
1316 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1317fi
1318
1319if test "$USE_LINUX" = 1; then
698dcdb6 1320 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
24176f2c 1321echo "configure:1322: checking for gettext in -lc" >&5
698dcdb6
VZ
1322ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1323if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 1325else
698dcdb6
VZ
1326 ac_save_LIBS="$LIBS"
1327LIBS="-lc $LIBS"
1328cat > conftest.$ac_ext <<EOF
24176f2c 1329#line 1330 "configure"
698dcdb6
VZ
1330#include "confdefs.h"
1331/* Override any gcc2 internal prototype to avoid an error. */
1332/* We use char because int might match the return type of a gcc2
1333 builtin and then its argument prototype would still apply. */
1334char gettext();
10f2d63a 1335
698dcdb6
VZ
1336int main() {
1337gettext()
1338; return 0; }
1339EOF
24176f2c 1340if { (eval echo configure:1341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
1341 rm -rf conftest*
1342 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 1343else
698dcdb6
VZ
1344 echo "configure: failed program was:" >&5
1345 cat conftest.$ac_ext >&5
1346 rm -rf conftest*
1347 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 1348fi
698dcdb6
VZ
1349rm -f conftest*
1350LIBS="$ac_save_LIBS"
10f2d63a
VZ
1351
1352fi
698dcdb6
VZ
1353if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1354 echo "$ac_t""yes" 1>&6
1355 cat >> confdefs.h <<\EOF
1356#define wxHAVE_GLIBC2 1
1357EOF
10f2d63a
VZ
1358
1359else
698dcdb6 1360 echo "$ac_t""no" 1>&6
10f2d63a
VZ
1361fi
1362
1363fi
1364
1e487827 1365
1e487827 1366
6232543b 1367
10f2d63a
VZ
1368 wx_arg_cache_file="configarg.cache"
1369 echo "loading argument cache $wx_arg_cache_file"
1370 rm -f ${wx_arg_cache_file}.tmp
1371 touch ${wx_arg_cache_file}.tmp
1372 touch ${wx_arg_cache_file}
698dcdb6 1373
10f2d63a
VZ
1374
1375DEBUG_CONFIGURE=0
1376if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1377 DEFAULT_wxUSE_UNIVERSAL=no
1378
10f2d63a
VZ
1379 DEFAULT_wxUSE_THREADS=yes
1380
1381 DEFAULT_wxUSE_SHARED=yes
00cf1208 1382 DEFAULT_wxUSE_BURNT_NAME=no
1e6feb95 1383 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1384 DEFAULT_wxUSE_PROFILE=no
1385 DEFAULT_wxUSE_NO_DEPS=no
1386 DEFAULT_wxUSE_NO_RTTI=no
1387 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1388 DEFAULT_wxUSE_PERMISSIVE=no
1389 DEFAULT_wxUSE_DEBUG_FLAG=yes
1390 DEFAULT_wxUSE_DEBUG_INFO=yes
1391 DEFAULT_wxUSE_DEBUG_GDB=yes
1392 DEFAULT_wxUSE_MEM_TRACING=no
1393 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1394 DEFAULT_wxUSE_DMALLOC=no
1395 DEFAULT_wxUSE_APPLE_IEEE=no
1396
1397 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1398 DEFAULT_wxUSE_LOGWINDOW=no
1399 DEFAULT_wxUSE_LOGGUI=no
10f2d63a
VZ
1400
1401 DEFAULT_wxUSE_GUI=yes
1e6feb95 1402 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1403
3e44f09d 1404 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1405 DEFAULT_wxUSE_ZLIB=no
1406 DEFAULT_wxUSE_LIBPNG=no
1407 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1408 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1409 DEFAULT_wxUSE_ODBC=no
3fed1840 1410 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1411 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1412
eb4efbdc 1413 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1414 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1415 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1416 DEFAULT_wxUSE_CMDLINE_PARSER=no
1417 DEFAULT_wxUSE_DATETIME=no
1418 DEFAULT_wxUSE_TIMEDATE=no
1419 DEFAULT_wxUSE_TIMER=no
1420 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1421 DEFAULT_wxUSE_FILE=no
1e6feb95 1422 DEFAULT_wxUSE_FFILE=no
10f2d63a 1423 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1424 DEFAULT_wxUSE_WAVE=no
1425 DEFAULT_wxUSE_INTL=no
1426 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1427 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1428 DEFAULT_wxUSE_STREAMS=no
1429 DEFAULT_wxUSE_SOCKETS=no
1430 DEFAULT_wxUSE_DIALUP_MANAGER=no
1431 DEFAULT_wxUSE_SERIAL=no
1432 DEFAULT_wxUSE_JOYSTICK=no
1433 DEFAULT_wxUSE_DYNLIB_CLASS=no
1434 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1435 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1436
1437 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1438 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1439 DEFAULT_wxUSE_POSTSCRIPT=no
1440
1441 DEFAULT_wxUSE_X_RESOURCES=no
1442 DEFAULT_wxUSE_CLIPBOARD=no
1443 DEFAULT_wxUSE_TOOLTIPS=no
1444 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1445 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1446 DEFAULT_wxUSE_SPLINES=no
1447
1448 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1449 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1450 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1451
1452 DEFAULT_wxUSE_PROLOGIO=no
1453 DEFAULT_wxUSE_RESOURCES=no
1454 DEFAULT_wxUSE_CONSTRAINTS=no
1455 DEFAULT_wxUSE_IPC=no
1456 DEFAULT_wxUSE_HELP=no
29fd3c0c 1457 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1458 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1459 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1460 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1461 DEFAULT_wxUSE_MIMETYPE=no
3e44f09d 1462 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1463
1464 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1465 DEFAULT_wxUSE_CHOICEDLG=no
1466 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1467 DEFAULT_wxUSE_DIRDLG=no
1e6feb95
VZ
1468 DEFAULT_wxUSE_FILEDLG=no
1469 DEFAULT_wxUSE_FONTDLG=no
1470 DEFAULT_wxUSE_MSGDLG=no
1471 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a
VZ
1472 DEFAULT_wxUSE_TEXTDLG=no
1473 DEFAULT_wxUSE_STARTUP_TIPS=no
1474 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1475 DEFAULT_wxUSE_WIZARDDLG=no
1476
1e6feb95 1477 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1478 DEFAULT_wxUSE_MINIFRAME=no
1479 DEFAULT_wxUSE_HTML=no
24528b0c 1480 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1481 DEFAULT_wxUSE_FS_INET=no
1482 DEFAULT_wxUSE_FS_ZIP=no
1483 DEFAULT_wxUSE_BUSYINFO=no
1484 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1485 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1486
1487 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1488 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1489 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1490 DEFAULT_wxUSE_CALCTRL=no
1491 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1492 DEFAULT_wxUSE_CHECKBOX=no
1493 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1494 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1495 DEFAULT_wxUSE_COMBOBOX=no
1496 DEFAULT_wxUSE_GAUGE=no
1497 DEFAULT_wxUSE_GRID=no
1498 DEFAULT_wxUSE_NEW_GRID=no
1499 DEFAULT_wxUSE_IMAGLIST=no
1500 DEFAULT_wxUSE_LISTBOX=no
1501 DEFAULT_wxUSE_LISTCTRL=no
1502 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1503 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1504 DEFAULT_wxUSE_RADIOBOX=no
1505 DEFAULT_wxUSE_RADIOBTN=no
1506 DEFAULT_wxUSE_SASH=no
1507 DEFAULT_wxUSE_SCROLLBAR=no
1508 DEFAULT_wxUSE_SLIDER=no
1509 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1510 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1511 DEFAULT_wxUSE_SPLITTER=no
1512 DEFAULT_wxUSE_STATBMP=no
1513 DEFAULT_wxUSE_STATBOX=no
1514 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1515 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1516 DEFAULT_wxUSE_STATUSBAR=yes
1517 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1518 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1519 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1520 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1521 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1522 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1523 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1524 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
1525
1526 DEFAULT_wxUSE_UNICODE=no
1527 DEFAULT_wxUSE_WCSRTOMBS=no
1528
0046ff7c 1529 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1530 DEFAULT_wxUSE_GIF=no
1531 DEFAULT_wxUSE_PCX=no
1532 DEFAULT_wxUSE_PNM=no
0046ff7c 1533 DEFAULT_wxUSE_XPM=no
10f2d63a 1534else
1e6feb95
VZ
1535 DEFAULT_wxUSE_UNIVERSAL=no
1536
10f2d63a
VZ
1537 DEFAULT_wxUSE_THREADS=yes
1538
1539 DEFAULT_wxUSE_SHARED=yes
00cf1208 1540 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1541 DEFAULT_wxUSE_OPTIMISE=yes
1542 DEFAULT_wxUSE_PROFILE=no
1543 DEFAULT_wxUSE_NO_DEPS=no
1544 DEFAULT_wxUSE_NO_RTTI=no
1545 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1546 DEFAULT_wxUSE_PERMISSIVE=no
1547 DEFAULT_wxUSE_DEBUG_FLAG=no
1548 DEFAULT_wxUSE_DEBUG_INFO=no
1549 DEFAULT_wxUSE_DEBUG_GDB=no
1550 DEFAULT_wxUSE_MEM_TRACING=no
1551 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1552 DEFAULT_wxUSE_DMALLOC=no
1553 DEFAULT_wxUSE_APPLE_IEEE=yes
1554
1555 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1556 DEFAULT_wxUSE_LOGWINDOW=yes
1557 DEFAULT_wxUSE_LOGGUI=yes
10f2d63a
VZ
1558
1559 DEFAULT_wxUSE_GUI=yes
1560
831b3152 1561 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1562 DEFAULT_wxUSE_ZLIB=yes
1563 DEFAULT_wxUSE_LIBPNG=yes
1564 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1565 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1566 DEFAULT_wxUSE_ODBC=no
3fed1840 1567 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1568 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1569
eb4efbdc 1570 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1571 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1572 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1573 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1574 DEFAULT_wxUSE_DATETIME=yes
1575 DEFAULT_wxUSE_TIMEDATE=no
1576 DEFAULT_wxUSE_TIMER=yes
1577 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1578 DEFAULT_wxUSE_FILE=yes
1e6feb95 1579 DEFAULT_wxUSE_FFILE=yes
10f2d63a 1580 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1581 DEFAULT_wxUSE_WAVE=no
1582 DEFAULT_wxUSE_INTL=yes
1583 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1584 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1585 DEFAULT_wxUSE_STREAMS=yes
1586 DEFAULT_wxUSE_SOCKETS=yes
1587 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1588 DEFAULT_wxUSE_SERIAL=yes
1589 DEFAULT_wxUSE_JOYSTICK=yes
1590 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1591 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1592 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1593
1594 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1595 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1596 DEFAULT_wxUSE_POSTSCRIPT=yes
1597
1598 DEFAULT_wxUSE_X_RESOURCES=no
1599 DEFAULT_wxUSE_CLIPBOARD=yes
1600 DEFAULT_wxUSE_TOOLTIPS=yes
1601 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1602 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1603 DEFAULT_wxUSE_SPLINES=yes
1604
1605 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1606 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1607 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1608
1609 DEFAULT_wxUSE_PROLOGIO=yes
1610 DEFAULT_wxUSE_RESOURCES=yes
1611 DEFAULT_wxUSE_CONSTRAINTS=yes
1612 DEFAULT_wxUSE_IPC=yes
1613 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1614 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1615 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1616 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1617 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1618 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1619 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1620
1621 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1622 DEFAULT_wxUSE_CHOICEDLG=yes
1623 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1624 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95
VZ
1625 DEFAULT_wxUSE_FILEDLG=yes
1626 DEFAULT_wxUSE_FONTDLG=yes
1627 DEFAULT_wxUSE_MSGDLG=yes
1628 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a
VZ
1629 DEFAULT_wxUSE_TEXTDLG=yes
1630 DEFAULT_wxUSE_STARTUP_TIPS=yes
1631 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1632 DEFAULT_wxUSE_WIZARDDLG=yes
1633
1e6feb95 1634 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1635 DEFAULT_wxUSE_MINIFRAME=yes
1636 DEFAULT_wxUSE_HTML=yes
24528b0c 1637 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1638 DEFAULT_wxUSE_FS_INET=yes
1639 DEFAULT_wxUSE_FS_ZIP=yes
1640 DEFAULT_wxUSE_BUSYINFO=yes
1641 DEFAULT_wxUSE_ZIPSTREAM=yes
1642 DEFAULT_wxUSE_VALIDATORS=yes
1643
1644 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1645 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1646 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1647 DEFAULT_wxUSE_CALCTRL=yes
1648 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1649 DEFAULT_wxUSE_CHECKBOX=yes
1650 DEFAULT_wxUSE_CHECKLST=yes
1651 DEFAULT_wxUSE_CHOICE=yes
1652 DEFAULT_wxUSE_COMBOBOX=yes
1653 DEFAULT_wxUSE_GAUGE=yes
1654 DEFAULT_wxUSE_GRID=yes
cc977e5f 1655 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1656 DEFAULT_wxUSE_IMAGLIST=yes
1657 DEFAULT_wxUSE_LISTBOX=yes
1658 DEFAULT_wxUSE_LISTCTRL=yes
1659 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1660 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1661 DEFAULT_wxUSE_RADIOBOX=yes
1662 DEFAULT_wxUSE_RADIOBTN=yes
1663 DEFAULT_wxUSE_SASH=yes
1664 DEFAULT_wxUSE_SCROLLBAR=yes
1665 DEFAULT_wxUSE_SLIDER=yes
1666 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1667 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1668 DEFAULT_wxUSE_SPLITTER=yes
1669 DEFAULT_wxUSE_STATBMP=yes
1670 DEFAULT_wxUSE_STATBOX=yes
1671 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1672 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1673 DEFAULT_wxUSE_STATUSBAR=yes
1674 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1675 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1676 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1677 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1678 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1679 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1680 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1681 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
1682
1683 DEFAULT_wxUSE_UNICODE=no
1684 DEFAULT_wxUSE_WCSRTOMBS=no
1685
0046ff7c 1686 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1687 DEFAULT_wxUSE_GIF=yes
1688 DEFAULT_wxUSE_PCX=yes
1689 DEFAULT_wxUSE_PNM=yes
0046ff7c 1690 DEFAULT_wxUSE_XPM=yes
10f2d63a
VZ
1691fi
1692
698dcdb6
VZ
1693
1694
10f2d63a
VZ
1695for toolkit in `echo $ALL_TOOLKITS`; do
1696 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1697 if test "x$LINE" != x ; then
1698 has_toolkit_in_cache=1
1699 eval "DEFAULT_$LINE"
1700 eval "CACHE_$toolkit=1"
1701 fi
1702done
1703
698dcdb6
VZ
1704
1705
1706 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
24176f2c 1707echo "configure:1708: checking for --enable-gui" >&5
10f2d63a
VZ
1708 no_cache=0
1709 # Check whether --enable-gui or --disable-gui was given.
1710if test "${enable_gui+set}" = set; then
1711 enableval="$enable_gui"
698dcdb6 1712
10f2d63a
VZ
1713 if test "$enableval" = yes; then
1714 ac_cv_use_gui='wxUSE_GUI=yes'
1715 else
1716 ac_cv_use_gui='wxUSE_GUI=no'
1717 fi
698dcdb6 1718
10f2d63a 1719else
698dcdb6 1720
10f2d63a
VZ
1721 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1722 if test "x$LINE" != x ; then
1723 eval "DEFAULT_$LINE"
1724 else
1725 no_cache=1
1726 fi
1727
1728 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1729
1730fi
10f2d63a
VZ
1731
1732
1733 eval "$ac_cv_use_gui"
1734 if test "$no_cache" != 1; then
1735 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1736 fi
1737
1738 if test "$wxUSE_GUI" = yes; then
698dcdb6 1739 echo "$ac_t""yes" 1>&6
10f2d63a 1740 else
698dcdb6 1741 echo "$ac_t""no" 1>&6
10f2d63a 1742 fi
698dcdb6 1743
10f2d63a 1744
b12915c1 1745if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1746
1e6feb95
VZ
1747
1748 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
24176f2c 1749echo "configure:1750: checking for --enable-universal" >&5
1e6feb95
VZ
1750 no_cache=0
1751 # Check whether --enable-universal or --disable-universal was given.
1752if test "${enable_universal+set}" = set; then
1753 enableval="$enable_universal"
1754
1755 if test "$enableval" = yes; then
1756 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1757 else
1758 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1759 fi
1760
1761else
1762
1763 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1764 if test "x$LINE" != x ; then
1765 eval "DEFAULT_$LINE"
1766 else
1767 no_cache=1
1768 fi
1769
1770 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1771
1772fi
1773
1774
1775 eval "$ac_cv_use_universal"
1776 if test "$no_cache" != 1; then
1777 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1778 fi
1779
1780 if test "$wxUSE_UNIVERSAL" = yes; then
1781 echo "$ac_t""yes" 1>&6
1782 else
1783 echo "$ac_t""no" 1>&6
1784 fi
1785
10f2d63a
VZ
1786# Check whether --with-gtk or --without-gtk was given.
1787if test "${with_gtk+set}" = set; then
1788 withval="$with_gtk"
1789 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1790fi
10f2d63a
VZ
1791
1792# Check whether --with-motif or --without-motif was given.
1793if test "${with_motif+set}" = set; then
1794 withval="$with_motif"
1795 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1796fi
10f2d63a 1797
b4085ce6
GD
1798# Check whether --with-mac or --without-mac was given.
1799if test "${with_mac+set}" = set; then
1800 withval="$with_mac"
1801 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1802fi
b4085ce6 1803
10f2d63a
VZ
1804# Check whether --with-wine or --without-wine was given.
1805if test "${with_wine+set}" = set; then
1806 withval="$with_wine"
1807 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1808fi
10f2d63a
VZ
1809
1810# Check whether --with-cygwin or --without-cygwin was given.
1811if test "${with_cygwin+set}" = set; then
1812 withval="$with_cygwin"
1813 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
698dcdb6 1814fi
10f2d63a
VZ
1815
1816# Check whether --with-mingw or --without-mingw was given.
1817if test "${with_mingw+set}" = set; then
1818 withval="$with_mingw"
1819 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
698dcdb6 1820fi
10f2d63a 1821
e07802fc
VZ
1822# Check whether --with-pm or --without-pm was given.
1823if test "${with_pm+set}" = set; then
1824 withval="$with_pm"
1825 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1826fi
1827
1e6feb95
VZ
1828# Check whether --with-mgl or --without-mgl was given.
1829if test "${with_mgl+set}" = set; then
1830 withval="$with_mgl"
1831 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1832fi
1833
10f2d63a 1834
8168de4c
VZ
1835# Check whether --enable-gtk2 or --disable-gtk2 was given.
1836if test "${enable_gtk2+set}" = set; then
1837 enableval="$enable_gtk2"
1838 wxUSE_GTK2=1
10f2d63a 1839else
8168de4c 1840 wxUSE_GTK2=0
698dcdb6
VZ
1841fi
1842
703e0a69 1843
1e487827 1844
698dcdb6 1845 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
24176f2c 1846echo "configure:1847: checking for --with-libpng" >&5
698dcdb6
VZ
1847 no_cache=0
1848 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1849if test "${with_libpng+set}" = set; then
1850 withval="$with_libpng"
698dcdb6 1851
10f2d63a 1852 if test "$withval" = yes; then
b12915c1 1853 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1854 elif test "$withval" = no; then
b12915c1 1855 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1856 elif test "$withval" = sys; then
1857 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1858 else
698dcdb6 1859 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1860 fi
698dcdb6 1861
10f2d63a 1862else
698dcdb6 1863
b12915c1 1864 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1865 if test "x$LINE" != x ; then
1866 eval "DEFAULT_$LINE"
1867 else
1868 no_cache=1
1869 fi
1870
b12915c1 1871 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1872
1873fi
10f2d63a
VZ
1874
1875
b12915c1 1876 eval "$ac_cv_use_libpng"
10f2d63a 1877 if test "$no_cache" != 1; then
b12915c1 1878 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1879 fi
1880
b12915c1 1881 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1882 echo "$ac_t""yes" 1>&6
422107f9 1883 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1884 echo "$ac_t""no" 1>&6
422107f9 1885 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1886 echo "$ac_t""system version" 1>&6
422107f9 1887 else
698dcdb6 1888 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1889 fi
698dcdb6 1890
10f2d63a 1891
698dcdb6 1892 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
24176f2c 1893echo "configure:1894: checking for --with-libjpeg" >&5
10f2d63a 1894 no_cache=0
698dcdb6 1895 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1896if test "${with_libjpeg+set}" = set; then
1897 withval="$with_libjpeg"
698dcdb6 1898
10f2d63a 1899 if test "$withval" = yes; then
b12915c1 1900 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1901 elif test "$withval" = no; then
b12915c1 1902 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1903 elif test "$withval" = sys; then
1904 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1905 else
698dcdb6 1906 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1907 fi
698dcdb6 1908
10f2d63a 1909else
698dcdb6 1910
b12915c1 1911 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1912 if test "x$LINE" != x ; then
1913 eval "DEFAULT_$LINE"
1914 else
1915 no_cache=1
1916 fi
1917
b12915c1 1918 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
1919
1920fi
10f2d63a
VZ
1921
1922
b12915c1 1923 eval "$ac_cv_use_libjpeg"
10f2d63a 1924 if test "$no_cache" != 1; then
b12915c1 1925 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1926 fi
1927
b12915c1 1928 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 1929 echo "$ac_t""yes" 1>&6
422107f9 1930 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 1931 echo "$ac_t""no" 1>&6
422107f9 1932 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 1933 echo "$ac_t""system version" 1>&6
422107f9 1934 else
698dcdb6 1935 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1936 fi
698dcdb6 1937
10f2d63a 1938
698dcdb6 1939 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
24176f2c 1940echo "configure:1941: checking for --with-libtiff" >&5
10f2d63a 1941 no_cache=0
698dcdb6 1942 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
1943if test "${with_libtiff+set}" = set; then
1944 withval="$with_libtiff"
698dcdb6 1945
10f2d63a 1946 if test "$withval" = yes; then
b12915c1 1947 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1948 elif test "$withval" = no; then
b12915c1 1949 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1950 elif test "$withval" = sys; then
1951 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1952 else
698dcdb6 1953 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1954 fi
698dcdb6 1955
10f2d63a 1956else
698dcdb6 1957
b12915c1 1958 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1959 if test "x$LINE" != x ; then
1960 eval "DEFAULT_$LINE"
1961 else
1962 no_cache=1
1963 fi
1964
b12915c1 1965 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
1966
1967fi
10f2d63a
VZ
1968
1969
b12915c1 1970 eval "$ac_cv_use_libtiff"
10f2d63a 1971 if test "$no_cache" != 1; then
b12915c1 1972 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1973 fi
1974
b12915c1 1975 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 1976 echo "$ac_t""yes" 1>&6
0dcf9893 1977 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 1978 echo "$ac_t""no" 1>&6
0dcf9893 1979 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 1980 echo "$ac_t""system version" 1>&6
0dcf9893 1981 else
698dcdb6 1982 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1983 fi
698dcdb6 1984
10f2d63a 1985
698dcdb6 1986 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
24176f2c 1987echo "configure:1988: checking for --with-freetype" >&5
3fed1840 1988 no_cache=0
698dcdb6 1989 # Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
1990if test "${with_freetype+set}" = set; then
1991 withval="$with_freetype"
698dcdb6 1992
3fed1840
RR
1993 if test "$withval" = yes; then
1994 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1995 elif test "$withval" = no; then
1996 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1997 elif test "$withval" = sys; then
1998 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1999 else
698dcdb6 2000 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 2001 fi
698dcdb6 2002
3fed1840 2003else
698dcdb6 2004
3fed1840
RR
2005 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2006 if test "x$LINE" != x ; then
2007 eval "DEFAULT_$LINE"
2008 else
2009 no_cache=1
2010 fi
2011
2012 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
698dcdb6
VZ
2013
2014fi
3fed1840
RR
2015
2016
2017 eval "$ac_cv_use_freetype"
2018 if test "$no_cache" != 1; then
2019 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2020 fi
2021
2022 if test "$wxUSE_FREETYPE" = yes; then
698dcdb6 2023 echo "$ac_t""yes" 1>&6
3fed1840 2024 elif test "$wxUSE_FREETYPE" = no; then
698dcdb6 2025 echo "$ac_t""no" 1>&6
3fed1840 2026 elif test "$wxUSE_FREETYPE" = sys; then
698dcdb6 2027 echo "$ac_t""system version" 1>&6
3fed1840 2028 else
698dcdb6 2029 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 2030 fi
698dcdb6 2031
3fed1840 2032
698dcdb6 2033 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
24176f2c 2034echo "configure:2035: checking for --with-opengl" >&5
10f2d63a 2035 no_cache=0
698dcdb6 2036 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2037if test "${with_opengl+set}" = set; then
2038 withval="$with_opengl"
698dcdb6 2039
10f2d63a 2040 if test "$withval" = yes; then
b12915c1 2041 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2042 else
b12915c1 2043 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2044 fi
698dcdb6 2045
10f2d63a 2046else
698dcdb6 2047
b12915c1 2048 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2049 if test "x$LINE" != x ; then
2050 eval "DEFAULT_$LINE"
2051 else
2052 no_cache=1
2053 fi
2054
b12915c1 2055 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2056
2057fi
10f2d63a
VZ
2058
2059
b12915c1 2060 eval "$ac_cv_use_opengl"
10f2d63a 2061 if test "$no_cache" != 1; then
b12915c1 2062 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2063 fi
2064
b12915c1 2065 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2066 echo "$ac_t""yes" 1>&6
10f2d63a 2067 else
698dcdb6 2068 echo "$ac_t""no" 1>&6
10f2d63a 2069 fi
698dcdb6 2070
10f2d63a 2071
b12915c1
VZ
2072fi
2073
1e487827 2074
698dcdb6 2075 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
24176f2c 2076echo "configure:2077: checking for --with-dmalloc" >&5
698dcdb6
VZ
2077 no_cache=0
2078 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2079if test "${with_dmalloc+set}" = set; then
2080 withval="$with_dmalloc"
698dcdb6 2081
c7a2bf27 2082 if test "$withval" = yes; then
b12915c1 2083 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2084 else
b12915c1 2085 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2086 fi
698dcdb6 2087
c7a2bf27 2088else
698dcdb6 2089
b12915c1 2090 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2091 if test "x$LINE" != x ; then
2092 eval "DEFAULT_$LINE"
2093 else
2094 no_cache=1
2095 fi
2096
b12915c1 2097 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2098
2099fi
c7a2bf27
RR
2100
2101
b12915c1 2102 eval "$ac_cv_use_dmalloc"
c7a2bf27 2103 if test "$no_cache" != 1; then
b12915c1 2104 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2105 fi
2106
b12915c1 2107 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2108 echo "$ac_t""yes" 1>&6
c7a2bf27 2109 else
698dcdb6 2110 echo "$ac_t""no" 1>&6
c7a2bf27 2111 fi
698dcdb6 2112
c7a2bf27 2113
3e44f09d 2114 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
24176f2c 2115echo "configure:2116: checking for --with-regex" >&5
3e44f09d
VZ
2116 no_cache=0
2117 # Check whether --with-regex or --without-regex was given.
2118if test "${with_regex+set}" = set; then
2119 withval="$with_regex"
2120
2121 if test "$withval" = yes; then
2122 ac_cv_use_regex='wxUSE_REGEX=yes'
2123 elif test "$withval" = no; then
2124 ac_cv_use_regex='wxUSE_REGEX=no'
2125 elif test "$withval" = sys; then
2126 ac_cv_use_regex='wxUSE_REGEX=sys'
2127 else
2128 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2129 fi
2130
2131else
2132
2133 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2134 if test "x$LINE" != x ; then
2135 eval "DEFAULT_$LINE"
2136 else
2137 no_cache=1
2138 fi
2139
2140 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2141
2142fi
2143
2144
2145 eval "$ac_cv_use_regex"
2146 if test "$no_cache" != 1; then
2147 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2148 fi
2149
2150 if test "$wxUSE_REGEX" = yes; then
2151 echo "$ac_t""yes" 1>&6
2152 elif test "$wxUSE_REGEX" = no; then
2153 echo "$ac_t""no" 1>&6
2154 elif test "$wxUSE_REGEX" = sys; then
2155 echo "$ac_t""system version" 1>&6
2156 else
2157 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2158 fi
2159
2160
698dcdb6 2161 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
24176f2c 2162echo "configure:2163: checking for --with-zlib" >&5
10f2d63a 2163 no_cache=0
698dcdb6 2164 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2165if test "${with_zlib+set}" = set; then
2166 withval="$with_zlib"
698dcdb6 2167
10f2d63a 2168 if test "$withval" = yes; then
b12915c1 2169 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2170 elif test "$withval" = no; then
b12915c1 2171 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2172 elif test "$withval" = sys; then
2173 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2174 else
698dcdb6 2175 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2176 fi
698dcdb6 2177
10f2d63a 2178else
698dcdb6 2179
b12915c1 2180 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2181 if test "x$LINE" != x ; then
2182 eval "DEFAULT_$LINE"
2183 else
2184 no_cache=1
2185 fi
2186
b12915c1 2187 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2188
2189fi
10f2d63a
VZ
2190
2191
b12915c1 2192 eval "$ac_cv_use_zlib"
10f2d63a 2193 if test "$no_cache" != 1; then
b12915c1 2194 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2195 fi
2196
b12915c1 2197 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2198 echo "$ac_t""yes" 1>&6
422107f9 2199 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2200 echo "$ac_t""no" 1>&6
422107f9 2201 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2202 echo "$ac_t""system version" 1>&6
422107f9 2203 else
698dcdb6 2204 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2205 fi
698dcdb6 2206
10f2d63a 2207
698dcdb6 2208 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
24176f2c 2209echo "configure:2210: checking for --with-odbc" >&5
10f2d63a 2210 no_cache=0
698dcdb6 2211 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2212if test "${with_odbc+set}" = set; then
2213 withval="$with_odbc"
698dcdb6 2214
10f2d63a
VZ
2215 if test "$withval" = yes; then
2216 ac_cv_use_odbc='wxUSE_ODBC=yes'
2217 else
2218 ac_cv_use_odbc='wxUSE_ODBC=no'
2219 fi
698dcdb6 2220
10f2d63a 2221else
698dcdb6 2222
10f2d63a
VZ
2223 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2224 if test "x$LINE" != x ; then
2225 eval "DEFAULT_$LINE"
2226 else
2227 no_cache=1
2228 fi
2229
2230 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2231
2232fi
10f2d63a
VZ
2233
2234
2235 eval "$ac_cv_use_odbc"
2236 if test "$no_cache" != 1; then
2237 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2238 fi
2239
2240 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2241 echo "$ac_t""yes" 1>&6
10f2d63a 2242 else
698dcdb6 2243 echo "$ac_t""no" 1>&6
10f2d63a 2244 fi
698dcdb6
VZ
2245
2246
10f2d63a 2247
698dcdb6
VZ
2248
2249
2250 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
24176f2c 2251echo "configure:2252: checking for --enable-shared" >&5
10f2d63a
VZ
2252 no_cache=0
2253 # Check whether --enable-shared or --disable-shared was given.
2254if test "${enable_shared+set}" = set; then
2255 enableval="$enable_shared"
698dcdb6 2256
10f2d63a
VZ
2257 if test "$enableval" = yes; then
2258 ac_cv_use_shared='wxUSE_SHARED=yes'
2259 else
2260 ac_cv_use_shared='wxUSE_SHARED=no'
2261 fi
698dcdb6 2262
10f2d63a 2263else
698dcdb6 2264
10f2d63a
VZ
2265 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2266 if test "x$LINE" != x ; then
2267 eval "DEFAULT_$LINE"
2268 else
2269 no_cache=1
2270 fi
2271
2272 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2273
2274fi
10f2d63a
VZ
2275
2276
2277 eval "$ac_cv_use_shared"
2278 if test "$no_cache" != 1; then
2279 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2280 fi
2281
2282 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2283 echo "$ac_t""yes" 1>&6
10f2d63a 2284 else
698dcdb6 2285 echo "$ac_t""no" 1>&6
10f2d63a 2286 fi
698dcdb6 2287
10f2d63a 2288
698dcdb6 2289 echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6
24176f2c 2290echo "configure:2291: checking for --enable-burnt_name" >&5
00cf1208
RR
2291 no_cache=0
2292 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2293if test "${enable_burnt_name+set}" = set; then
2294 enableval="$enable_burnt_name"
698dcdb6 2295
00cf1208
RR
2296 if test "$enableval" = yes; then
2297 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2298 else
2299 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2300 fi
698dcdb6 2301
00cf1208 2302else
698dcdb6 2303
00cf1208
RR
2304 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2305 if test "x$LINE" != x ; then
2306 eval "DEFAULT_$LINE"
2307 else
2308 no_cache=1
2309 fi
2310
2311 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
698dcdb6
VZ
2312
2313fi
00cf1208
RR
2314
2315
2316 eval "$ac_cv_use_burnt_name"
2317 if test "$no_cache" != 1; then
2318 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2319 fi
2320
2321 if test "$wxUSE_BURNT_NAME" = yes; then
698dcdb6 2322 echo "$ac_t""yes" 1>&6
00cf1208 2323 else
698dcdb6 2324 echo "$ac_t""no" 1>&6
00cf1208 2325 fi
698dcdb6 2326
00cf1208 2327
698dcdb6 2328 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
24176f2c 2329echo "configure:2330: checking for --enable-optimise" >&5
10f2d63a
VZ
2330 no_cache=0
2331 # Check whether --enable-optimise or --disable-optimise was given.
2332if test "${enable_optimise+set}" = set; then
2333 enableval="$enable_optimise"
698dcdb6 2334
10f2d63a
VZ
2335 if test "$enableval" = yes; then
2336 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2337 else
2338 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2339 fi
698dcdb6 2340
10f2d63a 2341else
698dcdb6 2342
10f2d63a
VZ
2343 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2344 if test "x$LINE" != x ; then
2345 eval "DEFAULT_$LINE"
2346 else
2347 no_cache=1
2348 fi
2349
2350 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2351
2352fi
10f2d63a
VZ
2353
2354
2355 eval "$ac_cv_use_optimise"
2356 if test "$no_cache" != 1; then
2357 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2358 fi
2359
2360 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2361 echo "$ac_t""yes" 1>&6
10f2d63a 2362 else
698dcdb6 2363 echo "$ac_t""no" 1>&6
10f2d63a 2364 fi
698dcdb6 2365
10f2d63a 2366
698dcdb6 2367 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
24176f2c 2368echo "configure:2369: checking for --enable-debug" >&5
10f2d63a
VZ
2369 no_cache=0
2370 # Check whether --enable-debug or --disable-debug was given.
2371if test "${enable_debug+set}" = set; then
2372 enableval="$enable_debug"
698dcdb6 2373
10f2d63a
VZ
2374 if test "$enableval" = yes; then
2375 ac_cv_use_debug='wxUSE_DEBUG=yes'
2376 else
2377 ac_cv_use_debug='wxUSE_DEBUG=no'
2378 fi
698dcdb6 2379
10f2d63a 2380else
698dcdb6 2381
10f2d63a
VZ
2382 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2383 if test "x$LINE" != x ; then
2384 eval "DEFAULT_$LINE"
2385 else
2386 no_cache=1
2387 fi
2388
2389 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2390
2391fi
10f2d63a
VZ
2392
2393
2394 eval "$ac_cv_use_debug"
2395 if test "$no_cache" != 1; then
2396 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2397 fi
2398
2399 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2400 echo "$ac_t""yes" 1>&6
10f2d63a 2401 else
698dcdb6 2402 echo "$ac_t""no" 1>&6
10f2d63a 2403 fi
698dcdb6 2404
10f2d63a
VZ
2405
2406if test "$wxUSE_DEBUG" = "yes"; then
2407 DEFAULT_wxUSE_DEBUG_FLAG=yes
2408 DEFAULT_wxUSE_DEBUG_INFO=yes
2409elif test "$wxUSE_DEBUG" = "no"; then
2410 DEFAULT_wxUSE_DEBUG_FLAG=no
2411 DEFAULT_wxUSE_DEBUG_INFO=no
2412fi
2413
698dcdb6
VZ
2414
2415 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
24176f2c 2416echo "configure:2417: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2417 no_cache=0
2418 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2419if test "${enable_debug_flag+set}" = set; then
2420 enableval="$enable_debug_flag"
698dcdb6 2421
10f2d63a
VZ
2422 if test "$enableval" = yes; then
2423 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2424 else
2425 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2426 fi
698dcdb6 2427
10f2d63a 2428else
698dcdb6 2429
10f2d63a
VZ
2430 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2431 if test "x$LINE" != x ; then
2432 eval "DEFAULT_$LINE"
2433 else
2434 no_cache=1
2435 fi
2436
2437 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2438
2439fi
10f2d63a
VZ
2440
2441
2442 eval "$ac_cv_use_debug_flag"
2443 if test "$no_cache" != 1; then
2444 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2445 fi
2446
2447 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2448 echo "$ac_t""yes" 1>&6
10f2d63a 2449 else
698dcdb6 2450 echo "$ac_t""no" 1>&6
10f2d63a 2451 fi
698dcdb6 2452
10f2d63a 2453
698dcdb6 2454 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
24176f2c 2455echo "configure:2456: checking for --enable-debug_info" >&5
10f2d63a
VZ
2456 no_cache=0
2457 # Check whether --enable-debug_info or --disable-debug_info was given.
2458if test "${enable_debug_info+set}" = set; then
2459 enableval="$enable_debug_info"
698dcdb6 2460
10f2d63a
VZ
2461 if test "$enableval" = yes; then
2462 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2463 else
2464 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2465 fi
698dcdb6 2466
10f2d63a 2467else
698dcdb6 2468
10f2d63a
VZ
2469 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2470 if test "x$LINE" != x ; then
2471 eval "DEFAULT_$LINE"
2472 else
2473 no_cache=1
2474 fi
2475
2476 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2477
2478fi
10f2d63a
VZ
2479
2480
2481 eval "$ac_cv_use_debug_info"
2482 if test "$no_cache" != 1; then
2483 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2484 fi
2485
2486 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2487 echo "$ac_t""yes" 1>&6
10f2d63a 2488 else
698dcdb6 2489 echo "$ac_t""no" 1>&6
10f2d63a 2490 fi
698dcdb6 2491
10f2d63a 2492
698dcdb6 2493 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
24176f2c 2494echo "configure:2495: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2495 no_cache=0
2496 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2497if test "${enable_debug_gdb+set}" = set; then
2498 enableval="$enable_debug_gdb"
698dcdb6 2499
10f2d63a
VZ
2500 if test "$enableval" = yes; then
2501 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2502 else
2503 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2504 fi
698dcdb6 2505
10f2d63a 2506else
698dcdb6 2507
10f2d63a
VZ
2508 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2509 if test "x$LINE" != x ; then
2510 eval "DEFAULT_$LINE"
2511 else
2512 no_cache=1
2513 fi
2514
2515 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2516
2517fi
10f2d63a
VZ
2518
2519
2520 eval "$ac_cv_use_debug_gdb"
2521 if test "$no_cache" != 1; then
2522 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2523 fi
2524
2525 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2526 echo "$ac_t""yes" 1>&6
10f2d63a 2527 else
698dcdb6 2528 echo "$ac_t""no" 1>&6
10f2d63a 2529 fi
698dcdb6 2530
10f2d63a 2531
698dcdb6 2532 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
24176f2c 2533echo "configure:2534: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2534 no_cache=0
2535 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2536if test "${enable_debug_cntxt+set}" = set; then
2537 enableval="$enable_debug_cntxt"
698dcdb6 2538
10f2d63a
VZ
2539 if test "$enableval" = yes; then
2540 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2541 else
2542 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2543 fi
698dcdb6 2544
10f2d63a 2545else
698dcdb6 2546
10f2d63a
VZ
2547 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2548 if test "x$LINE" != x ; then
2549 eval "DEFAULT_$LINE"
2550 else
2551 no_cache=1
2552 fi
2553
2554 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2555
2556fi
10f2d63a
VZ
2557
2558
2559 eval "$ac_cv_use_debug_cntxt"
2560 if test "$no_cache" != 1; then
2561 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2562 fi
2563
2564 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2565 echo "$ac_t""yes" 1>&6
10f2d63a 2566 else
698dcdb6 2567 echo "$ac_t""no" 1>&6
10f2d63a 2568 fi
698dcdb6 2569
10f2d63a 2570
698dcdb6 2571 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
24176f2c 2572echo "configure:2573: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2573 no_cache=0
2574 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2575if test "${enable_mem_tracing+set}" = set; then
2576 enableval="$enable_mem_tracing"
698dcdb6 2577
10f2d63a
VZ
2578 if test "$enableval" = yes; then
2579 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2580 else
2581 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2582 fi
698dcdb6 2583
10f2d63a 2584else
698dcdb6 2585
10f2d63a
VZ
2586 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2587 if test "x$LINE" != x ; then
2588 eval "DEFAULT_$LINE"
2589 else
2590 no_cache=1
2591 fi
2592
2593 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2594
2595fi
10f2d63a
VZ
2596
2597
2598 eval "$ac_cv_use_mem_tracing"
2599 if test "$no_cache" != 1; then
2600 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2601 fi
2602
2603 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2604 echo "$ac_t""yes" 1>&6
10f2d63a 2605 else
698dcdb6 2606 echo "$ac_t""no" 1>&6
10f2d63a 2607 fi
698dcdb6 2608
10f2d63a 2609
698dcdb6 2610 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
24176f2c 2611echo "configure:2612: checking for --enable-profile" >&5
10f2d63a
VZ
2612 no_cache=0
2613 # Check whether --enable-profile or --disable-profile was given.
2614if test "${enable_profile+set}" = set; then
2615 enableval="$enable_profile"
698dcdb6 2616
10f2d63a
VZ
2617 if test "$enableval" = yes; then
2618 ac_cv_use_profile='wxUSE_PROFILE=yes'
2619 else
2620 ac_cv_use_profile='wxUSE_PROFILE=no'
2621 fi
698dcdb6 2622
10f2d63a 2623else
698dcdb6 2624
10f2d63a
VZ
2625 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2626 if test "x$LINE" != x ; then
2627 eval "DEFAULT_$LINE"
2628 else
2629 no_cache=1
2630 fi
2631
2632 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2633
2634fi
10f2d63a
VZ
2635
2636
2637 eval "$ac_cv_use_profile"
2638 if test "$no_cache" != 1; then
2639 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2640 fi
2641
2642 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2643 echo "$ac_t""yes" 1>&6
10f2d63a 2644 else
698dcdb6 2645 echo "$ac_t""no" 1>&6
10f2d63a 2646 fi
698dcdb6 2647
10f2d63a 2648
698dcdb6 2649 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
24176f2c 2650echo "configure:2651: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2651 no_cache=0
2652 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2653if test "${enable_no_rtti+set}" = set; then
2654 enableval="$enable_no_rtti"
698dcdb6 2655
10f2d63a
VZ
2656 if test "$enableval" = yes; then
2657 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2658 else
2659 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2660 fi
698dcdb6 2661
10f2d63a 2662else
698dcdb6 2663
10f2d63a
VZ
2664 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2665 if test "x$LINE" != x ; then
2666 eval "DEFAULT_$LINE"
2667 else
2668 no_cache=1
2669 fi
2670
2671 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2672
2673fi
10f2d63a
VZ
2674
2675
2676 eval "$ac_cv_use_no_rtti"
2677 if test "$no_cache" != 1; then
2678 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2679 fi
2680
2681 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2682 echo "$ac_t""yes" 1>&6
10f2d63a 2683 else
698dcdb6 2684 echo "$ac_t""no" 1>&6
10f2d63a 2685 fi
698dcdb6 2686
10f2d63a 2687
698dcdb6 2688 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
24176f2c 2689echo "configure:2690: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2690 no_cache=0
2691 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2692if test "${enable_no_exceptions+set}" = set; then
2693 enableval="$enable_no_exceptions"
698dcdb6 2694
10f2d63a
VZ
2695 if test "$enableval" = yes; then
2696 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2697 else
2698 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2699 fi
698dcdb6 2700
10f2d63a 2701else
698dcdb6 2702
10f2d63a
VZ
2703 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2704 if test "x$LINE" != x ; then
2705 eval "DEFAULT_$LINE"
2706 else
2707 no_cache=1
2708 fi
2709
2710 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2711
2712fi
10f2d63a
VZ
2713
2714
2715 eval "$ac_cv_use_no_exceptions"
2716 if test "$no_cache" != 1; then
2717 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2718 fi
2719
2720 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2721 echo "$ac_t""yes" 1>&6
10f2d63a 2722 else
698dcdb6 2723 echo "$ac_t""no" 1>&6
10f2d63a 2724 fi
698dcdb6 2725
10f2d63a 2726
698dcdb6 2727 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
24176f2c 2728echo "configure:2729: checking for --enable-permissive" >&5
10f2d63a
VZ
2729 no_cache=0
2730 # Check whether --enable-permissive or --disable-permissive was given.
2731if test "${enable_permissive+set}" = set; then
2732 enableval="$enable_permissive"
698dcdb6 2733
10f2d63a
VZ
2734 if test "$enableval" = yes; then
2735 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2736 else
2737 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2738 fi
698dcdb6 2739
10f2d63a 2740else
698dcdb6 2741
10f2d63a
VZ
2742 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2743 if test "x$LINE" != x ; then
2744 eval "DEFAULT_$LINE"
2745 else
2746 no_cache=1
2747 fi
2748
2749 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2750
2751fi
10f2d63a
VZ
2752
2753
2754 eval "$ac_cv_use_permissive"
2755 if test "$no_cache" != 1; then
2756 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2757 fi
2758
2759 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2760 echo "$ac_t""yes" 1>&6
10f2d63a 2761 else
698dcdb6 2762 echo "$ac_t""no" 1>&6
10f2d63a 2763 fi
698dcdb6 2764
10f2d63a 2765
698dcdb6 2766 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
24176f2c 2767echo "configure:2768: checking for --enable-no_deps" >&5
10f2d63a
VZ
2768 no_cache=0
2769 # Check whether --enable-no_deps or --disable-no_deps was given.
2770if test "${enable_no_deps+set}" = set; then
2771 enableval="$enable_no_deps"
698dcdb6 2772
10f2d63a
VZ
2773 if test "$enableval" = yes; then
2774 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2775 else
2776 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2777 fi
698dcdb6 2778
10f2d63a 2779else
698dcdb6 2780
10f2d63a
VZ
2781 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2782 if test "x$LINE" != x ; then
2783 eval "DEFAULT_$LINE"
2784 else
2785 no_cache=1
2786 fi
2787
2788 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2789
2790fi
10f2d63a
VZ
2791
2792
2793 eval "$ac_cv_use_no_deps"
2794 if test "$no_cache" != 1; then
2795 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2796 fi
2797
2798 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2799 echo "$ac_t""yes" 1>&6
10f2d63a 2800 else
698dcdb6 2801 echo "$ac_t""no" 1>&6
10f2d63a 2802 fi
698dcdb6
VZ
2803
2804
10f2d63a 2805
54276ccf 2806 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
24176f2c 2807echo "configure:2808: checking for --enable-compat20" >&5
54276ccf
VZ
2808 no_cache=0
2809 # Check whether --enable-compat20 or --disable-compat20 was given.
2810if test "${enable_compat20+set}" = set; then
2811 enableval="$enable_compat20"
2812
2813 if test "$enableval" = yes; then
2814 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2815 else
2816 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2817 fi
2818
2819else
2820
2821 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2822 if test "x$LINE" != x ; then
2823 eval "DEFAULT_$LINE"
2824 else
2825 no_cache=1
2826 fi
2827
2828 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2829
2830fi
2831
2832
2833 eval "$ac_cv_use_compat20"
2834 if test "$no_cache" != 1; then
2835 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2836 fi
2837
2838 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2839 echo "$ac_t""yes" 1>&6
2840 else
2841 echo "$ac_t""no" 1>&6
2842 fi
2843
2844
2845 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
24176f2c 2846echo "configure:2847: checking for --enable-compat22" >&5
54276ccf
VZ
2847 no_cache=0
2848 # Check whether --enable-compat22 or --disable-compat22 was given.
2849if test "${enable_compat22+set}" = set; then
2850 enableval="$enable_compat22"
2851
2852 if test "$enableval" = yes; then
2853 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2854 else
2855 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2856 fi
2857
2858else
2859
2860 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2861 if test "x$LINE" != x ; then
2862 eval "DEFAULT_$LINE"
2863 else
2864 no_cache=1
2865 fi
2866
2867 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2868
2869fi
2870
2871
2872 eval "$ac_cv_use_compat22"
2873 if test "$no_cache" != 1; then
2874 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2875 fi
2876
2877 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2878 echo "$ac_t""yes" 1>&6
2879 else
2880 echo "$ac_t""no" 1>&6
2881 fi
2882
2883
2884
698dcdb6
VZ
2885
2886 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
24176f2c 2887echo "configure:2888: checking for --enable-intl" >&5
10f2d63a
VZ
2888 no_cache=0
2889 # Check whether --enable-intl or --disable-intl was given.
2890if test "${enable_intl+set}" = set; then
2891 enableval="$enable_intl"
698dcdb6 2892
10f2d63a
VZ
2893 if test "$enableval" = yes; then
2894 ac_cv_use_intl='wxUSE_INTL=yes'
2895 else
2896 ac_cv_use_intl='wxUSE_INTL=no'
2897 fi
698dcdb6 2898
10f2d63a 2899else
698dcdb6 2900
10f2d63a
VZ
2901 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2902 if test "x$LINE" != x ; then
2903 eval "DEFAULT_$LINE"
2904 else
2905 no_cache=1
2906 fi
2907
2908 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
2909
2910fi
10f2d63a
VZ
2911
2912
2913 eval "$ac_cv_use_intl"
2914 if test "$no_cache" != 1; then
2915 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2916 fi
2917
2918 if test "$wxUSE_INTL" = yes; then
698dcdb6 2919 echo "$ac_t""yes" 1>&6
10f2d63a 2920 else
698dcdb6 2921 echo "$ac_t""no" 1>&6
10f2d63a 2922 fi
698dcdb6 2923
10f2d63a 2924
698dcdb6 2925 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
24176f2c 2926echo "configure:2927: checking for --enable-config" >&5
10f2d63a
VZ
2927 no_cache=0
2928 # Check whether --enable-config or --disable-config was given.
2929if test "${enable_config+set}" = set; then
2930 enableval="$enable_config"
698dcdb6 2931
10f2d63a
VZ
2932 if test "$enableval" = yes; then
2933 ac_cv_use_config='wxUSE_CONFIG=yes'
2934 else
2935 ac_cv_use_config='wxUSE_CONFIG=no'
2936 fi
698dcdb6 2937
10f2d63a 2938else
698dcdb6 2939
10f2d63a
VZ
2940 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2941 if test "x$LINE" != x ; then
2942 eval "DEFAULT_$LINE"
2943 else
2944 no_cache=1
2945 fi
2946
2947 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
2948
2949fi
10f2d63a
VZ
2950
2951
2952 eval "$ac_cv_use_config"
2953 if test "$no_cache" != 1; then
2954 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2955 fi
2956
2957 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 2958 echo "$ac_t""yes" 1>&6
10f2d63a 2959 else
698dcdb6 2960 echo "$ac_t""no" 1>&6
10f2d63a 2961 fi
698dcdb6
VZ
2962
2963
b12915c1 2964
698dcdb6 2965 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
24176f2c 2966echo "configure:2967: checking for --enable-sockets" >&5
10f2d63a
VZ
2967 no_cache=0
2968 # Check whether --enable-sockets or --disable-sockets was given.
2969if test "${enable_sockets+set}" = set; then
2970 enableval="$enable_sockets"
698dcdb6 2971
10f2d63a
VZ
2972 if test "$enableval" = yes; then
2973 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2974 else
2975 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2976 fi
698dcdb6 2977
10f2d63a 2978else
698dcdb6 2979
10f2d63a
VZ
2980 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2981 if test "x$LINE" != x ; then
2982 eval "DEFAULT_$LINE"
2983 else
2984 no_cache=1
2985 fi
2986
2987 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
2988
2989fi
10f2d63a
VZ
2990
2991
2992 eval "$ac_cv_use_sockets"
2993 if test "$no_cache" != 1; then
2994 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2995 fi
2996
2997 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 2998 echo "$ac_t""yes" 1>&6
10f2d63a 2999 else
698dcdb6 3000 echo "$ac_t""no" 1>&6
10f2d63a 3001 fi
698dcdb6 3002
b12915c1 3003
698dcdb6
VZ
3004
3005 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
24176f2c 3006echo "configure:3007: checking for --enable-ipc" >&5
10f2d63a 3007 no_cache=0
eb4efbdc
VZ
3008 # Check whether --enable-ipc or --disable-ipc was given.
3009if test "${enable_ipc+set}" = set; then
3010 enableval="$enable_ipc"
698dcdb6 3011
10f2d63a 3012 if test "$enableval" = yes; then
eb4efbdc 3013 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3014 else
eb4efbdc 3015 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3016 fi
698dcdb6 3017
10f2d63a 3018else
698dcdb6 3019
eb4efbdc 3020 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3021 if test "x$LINE" != x ; then
3022 eval "DEFAULT_$LINE"
3023 else
3024 no_cache=1
3025 fi
3026
eb4efbdc 3027 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3028
3029fi
10f2d63a
VZ
3030
3031
eb4efbdc 3032 eval "$ac_cv_use_ipc"
10f2d63a 3033 if test "$no_cache" != 1; then
eb4efbdc 3034 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3035 fi
3036
eb4efbdc 3037 if test "$wxUSE_IPC" = yes; then
698dcdb6 3038 echo "$ac_t""yes" 1>&6
10f2d63a 3039 else
698dcdb6 3040 echo "$ac_t""no" 1>&6
10f2d63a 3041 fi
698dcdb6
VZ
3042
3043
eb4efbdc 3044
1e6feb95 3045 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
24176f2c 3046echo "configure:3047: checking for --enable-cmdline" >&5
1e6feb95
VZ
3047 no_cache=0
3048 # Check whether --enable-cmdline or --disable-cmdline was given.
3049if test "${enable_cmdline+set}" = set; then
3050 enableval="$enable_cmdline"
3051
3052 if test "$enableval" = yes; then
3053 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3054 else
3055 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3056 fi
3057
3058else
3059
3060 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3061 if test "x$LINE" != x ; then
3062 eval "DEFAULT_$LINE"
3063 else
3064 no_cache=1
3065 fi
3066
3067 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3068
3069fi
3070
3071
3072 eval "$ac_cv_use_cmdline"
3073 if test "$no_cache" != 1; then
3074 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3075 fi
3076
3077 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3078 echo "$ac_t""yes" 1>&6
3079 else
3080 echo "$ac_t""no" 1>&6
3081 fi
3082
3083
3084 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
24176f2c 3085echo "configure:3086: checking for --enable-datetime" >&5
1e6feb95
VZ
3086 no_cache=0
3087 # Check whether --enable-datetime or --disable-datetime was given.
3088if test "${enable_datetime+set}" = set; then
3089 enableval="$enable_datetime"
3090
3091 if test "$enableval" = yes; then
3092 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3093 else
3094 ac_cv_use_datetime='wxUSE_DATETIME=no'
3095 fi
3096
3097else
3098
3099 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3100 if test "x$LINE" != x ; then
3101 eval "DEFAULT_$LINE"
3102 else
3103 no_cache=1
3104 fi
3105
3106 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3107
3108fi
3109
3110
3111 eval "$ac_cv_use_datetime"
3112 if test "$no_cache" != 1; then
3113 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3114 fi
3115
3116 if test "$wxUSE_DATETIME" = yes; then
3117 echo "$ac_t""yes" 1>&6
3118 else
3119 echo "$ac_t""no" 1>&6
3120 fi
3121
3122
3123 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
24176f2c 3124echo "configure:3125: checking for --enable-timedate" >&5
1e6feb95
VZ
3125 no_cache=0
3126 # Check whether --enable-timedate or --disable-timedate was given.
3127if test "${enable_timedate+set}" = set; then
3128 enableval="$enable_timedate"
3129
3130 if test "$enableval" = yes; then
3131 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3132 else
3133 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3134 fi
3135
3136else
3137
3138 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3139 if test "x$LINE" != x ; then
3140 eval "DEFAULT_$LINE"
3141 else
3142 no_cache=1
3143 fi
3144
3145 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3146
3147fi
3148
3149
3150 eval "$ac_cv_use_timedate"
3151 if test "$no_cache" != 1; then
3152 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3153 fi
3154
3155 if test "$wxUSE_TIMEDATE" = yes; then
3156 echo "$ac_t""yes" 1>&6
3157 else
3158 echo "$ac_t""no" 1>&6
3159 fi
3160
3161
3162 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
24176f2c 3163echo "configure:3164: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3164 no_cache=0
3165 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3166if test "${enable_stopwatch+set}" = set; then
3167 enableval="$enable_stopwatch"
3168
3169 if test "$enableval" = yes; then
3170 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3171 else
3172 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3173 fi
3174
3175else
3176
3177 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3178 if test "x$LINE" != x ; then
3179 eval "DEFAULT_$LINE"
3180 else
3181 no_cache=1
3182 fi
3183
3184 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3185
3186fi
3187
3188
3189 eval "$ac_cv_use_stopwatch"
3190 if test "$no_cache" != 1; then
3191 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3192 fi
3193
3194 if test "$wxUSE_STOPWATCH" = yes; then
3195 echo "$ac_t""yes" 1>&6
3196 else
3197 echo "$ac_t""no" 1>&6
3198 fi
3199
3200
698dcdb6 3201 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
24176f2c 3202echo "configure:3203: checking for --enable-dialupman" >&5
10f2d63a 3203 no_cache=0
eb4efbdc
VZ
3204 # Check whether --enable-dialupman or --disable-dialupman was given.
3205if test "${enable_dialupman+set}" = set; then
3206 enableval="$enable_dialupman"
698dcdb6 3207
10f2d63a 3208 if test "$enableval" = yes; then
eb4efbdc 3209 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3210 else
eb4efbdc 3211 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3212 fi
698dcdb6 3213
10f2d63a 3214else
698dcdb6 3215
eb4efbdc 3216 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3217 if test "x$LINE" != x ; then
3218 eval "DEFAULT_$LINE"
3219 else
3220 no_cache=1
3221 fi
3222
eb4efbdc 3223 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3224
3225fi
10f2d63a
VZ
3226
3227
eb4efbdc 3228 eval "$ac_cv_use_dialupman"
10f2d63a 3229 if test "$no_cache" != 1; then
eb4efbdc 3230 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3231 fi
3232
eb4efbdc 3233 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3234 echo "$ac_t""yes" 1>&6
10f2d63a 3235 else
698dcdb6 3236 echo "$ac_t""no" 1>&6
10f2d63a 3237 fi
698dcdb6 3238
10f2d63a 3239
698dcdb6 3240 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
24176f2c 3241echo "configure:3242: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3242 no_cache=0
3243 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3244if test "${enable_apple_ieee+set}" = set; then
3245 enableval="$enable_apple_ieee"
698dcdb6 3246
10f2d63a
VZ
3247 if test "$enableval" = yes; then
3248 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3249 else
3250 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3251 fi
698dcdb6 3252
10f2d63a 3253else
698dcdb6 3254
10f2d63a
VZ
3255 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3256 if test "x$LINE" != x ; then
3257 eval "DEFAULT_$LINE"
3258 else
3259 no_cache=1
3260 fi
3261
3262 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3263
3264fi
10f2d63a
VZ
3265
3266
3267 eval "$ac_cv_use_apple_ieee"
3268 if test "$no_cache" != 1; then
3269 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3270 fi
3271
3272 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3273 echo "$ac_t""yes" 1>&6
10f2d63a 3274 else
698dcdb6 3275 echo "$ac_t""no" 1>&6
10f2d63a 3276 fi
698dcdb6 3277
10f2d63a 3278
1e6feb95 3279 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
24176f2c 3280echo "configure:3281: checking for --enable-timer" >&5
10f2d63a 3281 no_cache=0
1e6feb95
VZ
3282 # Check whether --enable-timer or --disable-timer was given.
3283if test "${enable_timer+set}" = set; then
3284 enableval="$enable_timer"
698dcdb6 3285
10f2d63a 3286 if test "$enableval" = yes; then
1e6feb95 3287 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3288 else
1e6feb95 3289 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3290 fi
698dcdb6 3291
10f2d63a 3292else
698dcdb6 3293
1e6feb95 3294 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3295 if test "x$LINE" != x ; then
3296 eval "DEFAULT_$LINE"
3297 else
3298 no_cache=1
3299 fi
3300
1e6feb95 3301 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3302
3303fi
10f2d63a
VZ
3304
3305
1e6feb95 3306 eval "$ac_cv_use_timer"
10f2d63a 3307 if test "$no_cache" != 1; then
1e6feb95 3308 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3309 fi
3310
1e6feb95 3311 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3312 echo "$ac_t""yes" 1>&6
10f2d63a 3313 else
698dcdb6 3314 echo "$ac_t""no" 1>&6
10f2d63a 3315 fi
698dcdb6 3316
10f2d63a 3317
698dcdb6 3318 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
24176f2c 3319echo "configure:3320: checking for --enable-wave" >&5
10f2d63a
VZ
3320 no_cache=0
3321 # Check whether --enable-wave or --disable-wave was given.
3322if test "${enable_wave+set}" = set; then
3323 enableval="$enable_wave"
698dcdb6 3324
10f2d63a
VZ
3325 if test "$enableval" = yes; then
3326 ac_cv_use_wave='wxUSE_WAVE=yes'
3327 else
3328 ac_cv_use_wave='wxUSE_WAVE=no'
3329 fi
698dcdb6 3330
10f2d63a 3331else
698dcdb6 3332
10f2d63a
VZ
3333 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3334 if test "x$LINE" != x ; then
3335 eval "DEFAULT_$LINE"
3336 else
3337 no_cache=1
3338 fi
3339
3340 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3341
3342fi
10f2d63a
VZ
3343
3344
3345 eval "$ac_cv_use_wave"
3346 if test "$no_cache" != 1; then
3347 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3348 fi
3349
3350 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3351 echo "$ac_t""yes" 1>&6
10f2d63a 3352 else
698dcdb6 3353 echo "$ac_t""no" 1>&6
10f2d63a 3354 fi
698dcdb6 3355
10f2d63a 3356
698dcdb6 3357 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
24176f2c 3358echo "configure:3359: checking for --enable-fraction" >&5
10f2d63a
VZ
3359 no_cache=0
3360 # Check whether --enable-fraction or --disable-fraction was given.
3361if test "${enable_fraction+set}" = set; then
3362 enableval="$enable_fraction"
698dcdb6 3363
10f2d63a
VZ
3364 if test "$enableval" = yes; then
3365 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3366 else
3367 ac_cv_use_fraction='wxUSE_FRACTION=no'
3368 fi
698dcdb6 3369
10f2d63a 3370else
698dcdb6 3371
10f2d63a
VZ
3372 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3373 if test "x$LINE" != x ; then
3374 eval "DEFAULT_$LINE"
3375 else
3376 no_cache=1
3377 fi
3378
3379 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3380
3381fi
10f2d63a
VZ
3382
3383
3384 eval "$ac_cv_use_fraction"
3385 if test "$no_cache" != 1; then
3386 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3387 fi
3388
3389 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3390 echo "$ac_t""yes" 1>&6
10f2d63a 3391 else
698dcdb6 3392 echo "$ac_t""no" 1>&6
10f2d63a 3393 fi
698dcdb6 3394
10f2d63a 3395
698dcdb6 3396 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
24176f2c 3397echo "configure:3398: checking for --enable-dynlib" >&5
10f2d63a
VZ
3398 no_cache=0
3399 # Check whether --enable-dynlib or --disable-dynlib was given.
3400if test "${enable_dynlib+set}" = set; then
3401 enableval="$enable_dynlib"
698dcdb6 3402
10f2d63a
VZ
3403 if test "$enableval" = yes; then
3404 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3405 else
3406 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3407 fi
698dcdb6 3408
10f2d63a 3409else
698dcdb6 3410
10f2d63a
VZ
3411 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3412 if test "x$LINE" != x ; then
3413 eval "DEFAULT_$LINE"
3414 else
3415 no_cache=1
3416 fi
3417
3418 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3419
3420fi
10f2d63a
VZ
3421
3422
3423 eval "$ac_cv_use_dynlib"
3424 if test "$no_cache" != 1; then
3425 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3426 fi
3427
3428 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3429 echo "$ac_t""yes" 1>&6
10f2d63a 3430 else
698dcdb6 3431 echo "$ac_t""no" 1>&6
10f2d63a 3432 fi
698dcdb6 3433
10f2d63a 3434
698dcdb6 3435 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
24176f2c 3436echo "configure:3437: checking for --enable-longlong" >&5
10f2d63a
VZ
3437 no_cache=0
3438 # Check whether --enable-longlong or --disable-longlong was given.
3439if test "${enable_longlong+set}" = set; then
3440 enableval="$enable_longlong"
698dcdb6 3441
10f2d63a
VZ
3442 if test "$enableval" = yes; then
3443 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3444 else
3445 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3446 fi
698dcdb6 3447
10f2d63a 3448else
698dcdb6 3449
10f2d63a
VZ
3450 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3451 if test "x$LINE" != x ; then
3452 eval "DEFAULT_$LINE"
3453 else
3454 no_cache=1
3455 fi
3456
3457 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3458
3459fi
10f2d63a
VZ
3460
3461
3462 eval "$ac_cv_use_longlong"
3463 if test "$no_cache" != 1; then
3464 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3465 fi
3466
3467 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3468 echo "$ac_t""yes" 1>&6
10f2d63a 3469 else
698dcdb6 3470 echo "$ac_t""no" 1>&6
10f2d63a 3471 fi
698dcdb6 3472
10f2d63a 3473
698dcdb6 3474 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
24176f2c 3475echo "configure:3476: checking for --enable-geometry" >&5
e8f65ba6
RR
3476 no_cache=0
3477 # Check whether --enable-geometry or --disable-geometry was given.
3478if test "${enable_geometry+set}" = set; then
3479 enableval="$enable_geometry"
698dcdb6 3480
e8f65ba6
RR
3481 if test "$enableval" = yes; then
3482 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3483 else
3484 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3485 fi
698dcdb6 3486
e8f65ba6 3487else
698dcdb6 3488
e8f65ba6
RR
3489 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3490 if test "x$LINE" != x ; then
3491 eval "DEFAULT_$LINE"
3492 else
3493 no_cache=1
3494 fi
3495
3496 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3497
3498fi
e8f65ba6
RR
3499
3500
3501 eval "$ac_cv_use_geometry"
3502 if test "$no_cache" != 1; then
3503 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3504 fi
3505
3506 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3507 echo "$ac_t""yes" 1>&6
e8f65ba6 3508 else
698dcdb6 3509 echo "$ac_t""no" 1>&6
e8f65ba6 3510 fi
698dcdb6 3511
e8f65ba6 3512
698dcdb6 3513 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
24176f2c 3514echo "configure:3515: checking for --enable-log" >&5
10f2d63a
VZ
3515 no_cache=0
3516 # Check whether --enable-log or --disable-log was given.
3517if test "${enable_log+set}" = set; then
3518 enableval="$enable_log"
698dcdb6 3519
10f2d63a
VZ
3520 if test "$enableval" = yes; then
3521 ac_cv_use_log='wxUSE_LOG=yes'
3522 else
3523 ac_cv_use_log='wxUSE_LOG=no'
3524 fi
698dcdb6 3525
10f2d63a 3526else
698dcdb6 3527
10f2d63a
VZ
3528 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3529 if test "x$LINE" != x ; then
3530 eval "DEFAULT_$LINE"
3531 else
3532 no_cache=1
3533 fi
3534
3535 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3536
3537fi
10f2d63a
VZ
3538
3539
3540 eval "$ac_cv_use_log"
3541 if test "$no_cache" != 1; then
3542 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3543 fi
3544
3545 if test "$wxUSE_LOG" = yes; then
698dcdb6 3546 echo "$ac_t""yes" 1>&6
10f2d63a 3547 else
698dcdb6 3548 echo "$ac_t""no" 1>&6
10f2d63a 3549 fi
698dcdb6 3550
10f2d63a 3551
698dcdb6 3552 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
24176f2c 3553echo "configure:3554: checking for --enable-streams" >&5
10f2d63a
VZ
3554 no_cache=0
3555 # Check whether --enable-streams or --disable-streams was given.
3556if test "${enable_streams+set}" = set; then
3557 enableval="$enable_streams"
698dcdb6 3558
10f2d63a
VZ
3559 if test "$enableval" = yes; then
3560 ac_cv_use_streams='wxUSE_STREAMS=yes'
3561 else
3562 ac_cv_use_streams='wxUSE_STREAMS=no'
3563 fi
698dcdb6 3564
10f2d63a 3565else
698dcdb6 3566
10f2d63a
VZ
3567 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3568 if test "x$LINE" != x ; then
3569 eval "DEFAULT_$LINE"
3570 else
3571 no_cache=1
3572 fi
3573
3574 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3575
3576fi
10f2d63a
VZ
3577
3578
3579 eval "$ac_cv_use_streams"
3580 if test "$no_cache" != 1; then
3581 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3582 fi
3583
3584 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3585 echo "$ac_t""yes" 1>&6
10f2d63a 3586 else
698dcdb6 3587 echo "$ac_t""no" 1>&6
10f2d63a 3588 fi
698dcdb6 3589
10f2d63a 3590
698dcdb6 3591 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
24176f2c 3592echo "configure:3593: checking for --enable-file" >&5
10f2d63a
VZ
3593 no_cache=0
3594 # Check whether --enable-file or --disable-file was given.
3595if test "${enable_file+set}" = set; then
3596 enableval="$enable_file"
698dcdb6 3597
10f2d63a
VZ
3598 if test "$enableval" = yes; then
3599 ac_cv_use_file='wxUSE_FILE=yes'
3600 else
3601 ac_cv_use_file='wxUSE_FILE=no'
3602 fi
698dcdb6 3603
10f2d63a 3604else
698dcdb6 3605
10f2d63a
VZ
3606 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3607 if test "x$LINE" != x ; then
3608 eval "DEFAULT_$LINE"
3609 else
3610 no_cache=1
3611 fi
3612
3613 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3614
3615fi
10f2d63a
VZ
3616
3617
3618 eval "$ac_cv_use_file"
3619 if test "$no_cache" != 1; then
3620 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3621 fi
3622
3623 if test "$wxUSE_FILE" = yes; then
698dcdb6 3624 echo "$ac_t""yes" 1>&6
10f2d63a 3625 else
698dcdb6 3626 echo "$ac_t""no" 1>&6
10f2d63a 3627 fi
698dcdb6 3628
10f2d63a 3629
1e6feb95 3630 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
24176f2c 3631echo "configure:3632: checking for --enable-ffile" >&5
10f2d63a 3632 no_cache=0
1e6feb95
VZ
3633 # Check whether --enable-ffile or --disable-ffile was given.
3634if test "${enable_ffile+set}" = set; then
3635 enableval="$enable_ffile"
698dcdb6 3636
10f2d63a 3637 if test "$enableval" = yes; then
1e6feb95 3638 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3639 else
1e6feb95 3640 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3641 fi
698dcdb6 3642
10f2d63a 3643else
698dcdb6 3644
1e6feb95 3645 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3646 if test "x$LINE" != x ; then
3647 eval "DEFAULT_$LINE"
3648 else
3649 no_cache=1
3650 fi
3651
1e6feb95 3652 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3653
3654fi
10f2d63a
VZ
3655
3656
1e6feb95 3657 eval "$ac_cv_use_ffile"
10f2d63a 3658 if test "$no_cache" != 1; then
1e6feb95 3659 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3660 fi
3661
1e6feb95 3662 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3663 echo "$ac_t""yes" 1>&6
10f2d63a 3664 else
698dcdb6 3665 echo "$ac_t""no" 1>&6
10f2d63a 3666 fi
698dcdb6 3667
10f2d63a 3668
1e6feb95 3669 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
24176f2c 3670echo "configure:3671: checking for --enable-textfile" >&5
10f2d63a 3671 no_cache=0
1e6feb95
VZ
3672 # Check whether --enable-textfile or --disable-textfile was given.
3673if test "${enable_textfile+set}" = set; then
3674 enableval="$enable_textfile"
698dcdb6 3675
10f2d63a 3676 if test "$enableval" = yes; then
1e6feb95 3677 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 3678 else
1e6feb95 3679 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 3680 fi
698dcdb6 3681
10f2d63a 3682else
698dcdb6 3683
1e6feb95 3684 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3685 if test "x$LINE" != x ; then
3686 eval "DEFAULT_$LINE"
3687 else
3688 no_cache=1
3689 fi
3690
1e6feb95 3691 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
3692
3693fi
10f2d63a
VZ
3694
3695
1e6feb95 3696 eval "$ac_cv_use_textfile"
10f2d63a 3697 if test "$no_cache" != 1; then
1e6feb95 3698 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3699 fi
3700
1e6feb95 3701 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 3702 echo "$ac_t""yes" 1>&6
10f2d63a 3703 else
698dcdb6 3704 echo "$ac_t""no" 1>&6
10f2d63a 3705 fi
698dcdb6 3706
10f2d63a 3707
1e6feb95 3708 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
24176f2c 3709echo "configure:3710: checking for --enable-fontmap" >&5
10f2d63a 3710 no_cache=0
1e6feb95
VZ
3711 # Check whether --enable-fontmap or --disable-fontmap was given.
3712if test "${enable_fontmap+set}" = set; then
3713 enableval="$enable_fontmap"
698dcdb6 3714
10f2d63a 3715 if test "$enableval" = yes; then
1e6feb95 3716 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 3717 else
1e6feb95 3718 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 3719 fi
698dcdb6 3720
10f2d63a 3721else
698dcdb6 3722
1e6feb95 3723 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
3724 if test "x$LINE" != x ; then
3725 eval "DEFAULT_$LINE"
3726 else
3727 no_cache=1
3728 fi
3729
1e6feb95 3730 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
3731
3732fi
10f2d63a
VZ
3733
3734
1e6feb95 3735 eval "$ac_cv_use_fontmap"
10f2d63a 3736 if test "$no_cache" != 1; then
1e6feb95 3737 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3738 fi
3739
1e6feb95 3740 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 3741 echo "$ac_t""yes" 1>&6
10f2d63a 3742 else
698dcdb6 3743 echo "$ac_t""no" 1>&6
10f2d63a 3744 fi
698dcdb6 3745
10f2d63a 3746
1e6feb95 3747 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
24176f2c 3748echo "configure:3749: checking for --enable-unicode" >&5
10f2d63a 3749 no_cache=0
1e6feb95
VZ
3750 # Check whether --enable-unicode or --disable-unicode was given.
3751if test "${enable_unicode+set}" = set; then
3752 enableval="$enable_unicode"
3753
3754 if test "$enableval" = yes; then
3755 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3756 else
3757 ac_cv_use_unicode='wxUSE_UNICODE=no'
3758 fi
3759
3760else
3761
3762 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3763 if test "x$LINE" != x ; then
3764 eval "DEFAULT_$LINE"
3765 else
3766 no_cache=1
3767 fi
3768
3769 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3770
3771fi
3772
3773
3774 eval "$ac_cv_use_unicode"
3775 if test "$no_cache" != 1; then
3776 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3777 fi
3778
3779 if test "$wxUSE_UNICODE" = yes; then
3780 echo "$ac_t""yes" 1>&6
3781 else
3782 echo "$ac_t""no" 1>&6
3783 fi
3784
3785
3786 echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6
24176f2c 3787echo "configure:3788: checking for --enable-wcsrtombs" >&5
1e6feb95
VZ
3788 no_cache=0
3789 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3790if test "${enable_wcsrtombs+set}" = set; then
3791 enableval="$enable_wcsrtombs"
3792
3793 if test "$enableval" = yes; then
3794 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3795 else
3796 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3797 fi
3798
3799else
3800
3801 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3802 if test "x$LINE" != x ; then
3803 eval "DEFAULT_$LINE"
3804 else
3805 no_cache=1
3806 fi
3807
3808 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3809
3810fi
3811
3812
3813 eval "$ac_cv_use_wcsrtombs"
3814 if test "$no_cache" != 1; then
3815 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3816 fi
3817
3818 if test "$wxUSE_WCSRTOMBS" = yes; then
3819 echo "$ac_t""yes" 1>&6
3820 else
3821 echo "$ac_t""no" 1>&6
3822 fi
3823
3824
3825 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
24176f2c 3826echo "configure:3827: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
3827 no_cache=0
3828 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3829if test "${enable_wxprintfv+set}" = set; then
3830 enableval="$enable_wxprintfv"
3831
3832 if test "$enableval" = yes; then
10f2d63a
VZ
3833 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3834 else
3835 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3836 fi
698dcdb6 3837
10f2d63a 3838else
698dcdb6 3839
10f2d63a
VZ
3840 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3841 if test "x$LINE" != x ; then
3842 eval "DEFAULT_$LINE"
3843 else
3844 no_cache=1
3845 fi
3846
3847 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
3848
3849fi
10f2d63a
VZ
3850
3851
3852 eval "$ac_cv_use_wxprintfv"
3853 if test "$no_cache" != 1; then
3854 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3855 fi
3856
3857 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 3858 echo "$ac_t""yes" 1>&6
10f2d63a 3859 else
698dcdb6 3860 echo "$ac_t""no" 1>&6
10f2d63a 3861 fi
698dcdb6 3862
10f2d63a 3863
698dcdb6 3864 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
24176f2c 3865echo "configure:3866: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
3866 no_cache=0
3867 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3868if test "${enable_std_iostreams+set}" = set; then
3869 enableval="$enable_std_iostreams"
698dcdb6 3870
10f2d63a
VZ
3871 if test "$enableval" = yes; then
3872 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3873 else
3874 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3875 fi
698dcdb6 3876
10f2d63a 3877else
698dcdb6 3878
10f2d63a
VZ
3879 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3880 if test "x$LINE" != x ; then
3881 eval "DEFAULT_$LINE"
3882 else
3883 no_cache=1
3884 fi
3885
3886 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
3887
3888fi
10f2d63a
VZ
3889
3890
3891 eval "$ac_cv_use_std_iostreams"
3892 if test "$no_cache" != 1; then
3893 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3894 fi
3895
3896 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 3897 echo "$ac_t""yes" 1>&6
10f2d63a 3898 else
698dcdb6 3899 echo "$ac_t""no" 1>&6
10f2d63a 3900 fi
698dcdb6 3901
10f2d63a 3902
698dcdb6 3903 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
24176f2c 3904echo "configure:3905: checking for --enable-filesystem" >&5
24528b0c
VS
3905 no_cache=0
3906 # Check whether --enable-filesystem or --disable-filesystem was given.
3907if test "${enable_filesystem+set}" = set; then
3908 enableval="$enable_filesystem"
698dcdb6 3909
24528b0c
VS
3910 if test "$enableval" = yes; then
3911 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3912 else
3913 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3914 fi
698dcdb6 3915
24528b0c 3916else
698dcdb6 3917
24528b0c
VS
3918 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3919 if test "x$LINE" != x ; then
3920 eval "DEFAULT_$LINE"
3921 else
3922 no_cache=1
3923 fi
3924
3925 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
3926
3927fi
24528b0c
VS
3928
3929
3930 eval "$ac_cv_use_filesystem"
3931 if test "$no_cache" != 1; then
3932 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3933 fi
3934
3935 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 3936 echo "$ac_t""yes" 1>&6
24528b0c 3937 else
698dcdb6 3938 echo "$ac_t""no" 1>&6
24528b0c 3939 fi
698dcdb6 3940
24528b0c 3941
698dcdb6 3942 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
24176f2c 3943echo "configure:3944: checking for --enable-fs_inet" >&5
10f2d63a
VZ
3944 no_cache=0
3945 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3946if test "${enable_fs_inet+set}" = set; then
3947 enableval="$enable_fs_inet"
698dcdb6 3948
10f2d63a
VZ
3949 if test "$enableval" = yes; then
3950 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3951 else
3952 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3953 fi
698dcdb6 3954
10f2d63a 3955else
698dcdb6 3956
10f2d63a
VZ
3957 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3958 if test "x$LINE" != x ; then
3959 eval "DEFAULT_$LINE"
3960 else
3961 no_cache=1
3962 fi
3963
3964 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
3965
3966fi
10f2d63a
VZ
3967
3968
3969 eval "$ac_cv_use_fs_inet"
3970 if test "$no_cache" != 1; then
3971 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3972 fi
3973
3974 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 3975 echo "$ac_t""yes" 1>&6
10f2d63a 3976 else
698dcdb6 3977 echo "$ac_t""no" 1>&6
10f2d63a 3978 fi
698dcdb6 3979
10f2d63a 3980
698dcdb6 3981 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
24176f2c 3982echo "configure:3983: checking for --enable-fs_zip" >&5
10f2d63a
VZ
3983 no_cache=0
3984 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3985if test "${enable_fs_zip+set}" = set; then
3986 enableval="$enable_fs_zip"
698dcdb6 3987
10f2d63a
VZ
3988 if test "$enableval" = yes; then
3989 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3990 else
3991 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3992 fi
698dcdb6 3993
10f2d63a 3994else
698dcdb6 3995
10f2d63a
VZ
3996 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3997 if test "x$LINE" != x ; then
3998 eval "DEFAULT_$LINE"
3999 else
4000 no_cache=1
4001 fi
4002
4003 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
4004
4005fi
10f2d63a
VZ
4006
4007
4008 eval "$ac_cv_use_fs_zip"
4009 if test "$no_cache" != 1; then
4010 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4011 fi
4012
4013 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 4014 echo "$ac_t""yes" 1>&6
10f2d63a 4015 else
698dcdb6 4016 echo "$ac_t""no" 1>&6
10f2d63a 4017 fi
698dcdb6 4018
10f2d63a 4019
698dcdb6 4020 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
24176f2c 4021echo "configure:4022: checking for --enable-zipstream" >&5
10f2d63a
VZ
4022 no_cache=0
4023 # Check whether --enable-zipstream or --disable-zipstream was given.
4024if test "${enable_zipstream+set}" = set; then
4025 enableval="$enable_zipstream"
698dcdb6 4026
10f2d63a
VZ
4027 if test "$enableval" = yes; then
4028 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4029 else
4030 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4031 fi
698dcdb6 4032
10f2d63a 4033else
698dcdb6 4034
10f2d63a
VZ
4035 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4036 if test "x$LINE" != x ; then
4037 eval "DEFAULT_$LINE"
4038 else
4039 no_cache=1
4040 fi
4041
4042 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4043
4044fi
10f2d63a
VZ
4045
4046
4047 eval "$ac_cv_use_zipstream"
4048 if test "$no_cache" != 1; then
4049 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4050 fi
4051
4052 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4053 echo "$ac_t""yes" 1>&6
10f2d63a 4054 else
698dcdb6 4055 echo "$ac_t""no" 1>&6
10f2d63a 4056 fi
698dcdb6 4057
10f2d63a 4058
698dcdb6
VZ
4059
4060 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
24176f2c 4061echo "configure:4062: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4062 no_cache=0
4063 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4064if test "${enable_catch_segvs+set}" = set; then
4065 enableval="$enable_catch_segvs"
698dcdb6 4066
eb4efbdc
VZ
4067 if test "$enableval" = yes; then
4068 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4069 else
4070 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4071 fi
698dcdb6 4072
eb4efbdc 4073else
698dcdb6 4074
eb4efbdc
VZ
4075 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4076 if test "x$LINE" != x ; then
4077 eval "DEFAULT_$LINE"
4078 else
4079 no_cache=1
4080 fi
4081
4082 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4083
4084fi
eb4efbdc
VZ
4085
4086
4087 eval "$ac_cv_use_catch_segvs"
4088 if test "$no_cache" != 1; then
4089 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4090 fi
4091
4092 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4093 echo "$ac_t""yes" 1>&6
eb4efbdc 4094 else
698dcdb6 4095 echo "$ac_t""no" 1>&6
eb4efbdc 4096 fi
698dcdb6 4097
eb4efbdc 4098
698dcdb6 4099 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
24176f2c 4100echo "configure:4101: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4101 no_cache=0
4102 # Check whether --enable-snglinst or --disable-snglinst was given.
4103if test "${enable_snglinst+set}" = set; then
4104 enableval="$enable_snglinst"
698dcdb6 4105
4f3c5f06
VZ
4106 if test "$enableval" = yes; then
4107 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4108 else
4109 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4110 fi
698dcdb6 4111
4f3c5f06 4112else
698dcdb6 4113
4f3c5f06
VZ
4114 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4115 if test "x$LINE" != x ; then
4116 eval "DEFAULT_$LINE"
4117 else
4118 no_cache=1
4119 fi
4120
4121 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4122
4123fi
4f3c5f06
VZ
4124
4125
4126 eval "$ac_cv_use_snglinst"
4127 if test "$no_cache" != 1; then
4128 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4129 fi
4130
4131 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4132 echo "$ac_t""yes" 1>&6
4f3c5f06 4133 else
698dcdb6 4134 echo "$ac_t""no" 1>&6
4f3c5f06 4135 fi
698dcdb6
VZ
4136
4137
eb4efbdc 4138
1e6feb95 4139 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
24176f2c 4140echo "configure:4141: checking for --enable-mimetype" >&5
1e6feb95
VZ
4141 no_cache=0
4142 # Check whether --enable-mimetype or --disable-mimetype was given.
4143if test "${enable_mimetype+set}" = set; then
4144 enableval="$enable_mimetype"
4145
4146 if test "$enableval" = yes; then
4147 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4148 else
4149 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4150 fi
4151
4152else
4153
4154 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4155 if test "x$LINE" != x ; then
4156 eval "DEFAULT_$LINE"
4157 else
4158 no_cache=1
4159 fi
4160
4161 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4162
4163fi
4164
4165
4166 eval "$ac_cv_use_mimetype"
4167 if test "$no_cache" != 1; then
4168 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4169 fi
4170
4171 if test "$wxUSE_MIMETYPE" = yes; then
4172 echo "$ac_t""yes" 1>&6
4173 else
4174 echo "$ac_t""no" 1>&6
4175 fi
4176
4177
3e44f09d 4178 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
24176f2c 4179echo "configure:4180: checking for --enable-system_options" >&5
3e44f09d
VZ
4180 no_cache=0
4181 # Check whether --enable-system_options or --disable-system_options was given.
4182if test "${enable_system_options+set}" = set; then
4183 enableval="$enable_system_options"
4184
4185 if test "$enableval" = yes; then
4186 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4187 else
4188 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4189 fi
4190
4191else
4192
4193 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4194 if test "x$LINE" != x ; then
4195 eval "DEFAULT_$LINE"
4196 else
4197 no_cache=1
4198 fi
4199
4200 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4201
4202fi
4203
4204
4205 eval "$ac_cv_use_system_options"
4206 if test "$no_cache" != 1; then
4207 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4208 fi
4209
4210 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4211 echo "$ac_t""yes" 1>&6
4212 else
4213 echo "$ac_t""no" 1>&6
4214 fi
4215
4216
1e6feb95 4217
698dcdb6
VZ
4218
4219 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
24176f2c 4220echo "configure:4221: checking for --enable-threads" >&5
10f2d63a
VZ
4221 no_cache=0
4222 # Check whether --enable-threads or --disable-threads was given.
4223if test "${enable_threads+set}" = set; then
4224 enableval="$enable_threads"
698dcdb6 4225
10f2d63a
VZ
4226 if test "$enableval" = yes; then
4227 ac_cv_use_threads='wxUSE_THREADS=yes'
4228 else
4229 ac_cv_use_threads='wxUSE_THREADS=no'
4230 fi
698dcdb6 4231
10f2d63a 4232else
698dcdb6 4233
10f2d63a
VZ
4234 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4235 if test "x$LINE" != x ; then
4236 eval "DEFAULT_$LINE"
4237 else
4238 no_cache=1
4239 fi
4240
4241 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4242
4243fi
10f2d63a
VZ
4244
4245
4246 eval "$ac_cv_use_threads"
4247 if test "$no_cache" != 1; then
4248 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4249 fi
4250
4251 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4252 echo "$ac_t""yes" 1>&6
10f2d63a 4253 else
698dcdb6 4254 echo "$ac_t""no" 1>&6
10f2d63a 4255 fi
698dcdb6 4256
10f2d63a 4257
698dcdb6 4258 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
24176f2c 4259echo "configure:4260: checking for --enable-serial" >&5
10f2d63a
VZ
4260 no_cache=0
4261 # Check whether --enable-serial or --disable-serial was given.
4262if test "${enable_serial+set}" = set; then
4263 enableval="$enable_serial"
698dcdb6 4264
10f2d63a
VZ
4265 if test "$enableval" = yes; then
4266 ac_cv_use_serial='wxUSE_SERIAL=yes'
4267 else
4268 ac_cv_use_serial='wxUSE_SERIAL=no'
4269 fi
698dcdb6 4270
10f2d63a 4271else
698dcdb6 4272
10f2d63a
VZ
4273 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4274 if test "x$LINE" != x ; then
4275 eval "DEFAULT_$LINE"
4276 else
4277 no_cache=1
4278 fi
4279
4280 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
698dcdb6
VZ
4281
4282fi
10f2d63a
VZ
4283
4284
4285 eval "$ac_cv_use_serial"
4286 if test "$no_cache" != 1; then
4287 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4288 fi
4289
4290 if test "$wxUSE_SERIAL" = yes; then
698dcdb6 4291 echo "$ac_t""yes" 1>&6
10f2d63a 4292 else
698dcdb6 4293 echo "$ac_t""no" 1>&6
10f2d63a 4294 fi
698dcdb6 4295
10f2d63a 4296
b12915c1
VZ
4297if test "$wxUSE_GUI" = "yes"; then
4298
698dcdb6
VZ
4299
4300
4301 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
24176f2c 4302echo "configure:4303: checking for --enable-docview" >&5
10f2d63a
VZ
4303 no_cache=0
4304 # Check whether --enable-docview or --disable-docview was given.
4305if test "${enable_docview+set}" = set; then
4306 enableval="$enable_docview"
698dcdb6 4307
10f2d63a
VZ
4308 if test "$enableval" = yes; then
4309 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4310 else
4311 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4312 fi
698dcdb6 4313
10f2d63a 4314else
698dcdb6 4315
10f2d63a
VZ
4316 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4317 if test "x$LINE" != x ; then
4318 eval "DEFAULT_$LINE"
4319 else
4320 no_cache=1
4321 fi
4322
4323 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4324
4325fi
10f2d63a
VZ
4326
4327
4328 eval "$ac_cv_use_docview"
4329 if test "$no_cache" != 1; then
4330 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4331 fi
4332
4333 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4334 echo "$ac_t""yes" 1>&6
10f2d63a 4335 else
698dcdb6 4336 echo "$ac_t""no" 1>&6
10f2d63a 4337 fi
698dcdb6 4338
10f2d63a 4339
698dcdb6 4340 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
24176f2c 4341echo "configure:4342: checking for --enable-help" >&5
10f2d63a
VZ
4342 no_cache=0
4343 # Check whether --enable-help or --disable-help was given.
4344if test "${enable_help+set}" = set; then
4345 enableval="$enable_help"
698dcdb6 4346
10f2d63a
VZ
4347 if test "$enableval" = yes; then
4348 ac_cv_use_help='wxUSE_HELP=yes'
4349 else
4350 ac_cv_use_help='wxUSE_HELP=no'
4351 fi
698dcdb6 4352
10f2d63a 4353else
698dcdb6 4354
10f2d63a
VZ
4355 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4356 if test "x$LINE" != x ; then
4357 eval "DEFAULT_$LINE"
4358 else
4359 no_cache=1
4360 fi
4361
4362 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4363
4364fi
10f2d63a
VZ
4365
4366
4367 eval "$ac_cv_use_help"
4368 if test "$no_cache" != 1; then
4369 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4370 fi
4371
4372 if test "$wxUSE_HELP" = yes; then
698dcdb6 4373 echo "$ac_t""yes" 1>&6
10f2d63a 4374 else
698dcdb6 4375 echo "$ac_t""no" 1>&6
10f2d63a 4376 fi
698dcdb6 4377
10f2d63a 4378
29fd3c0c 4379 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
24176f2c 4380echo "configure:4381: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4381 no_cache=0
4382 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4383if test "${enable_mshtmlhelp+set}" = set; then
4384 enableval="$enable_mshtmlhelp"
4385
4386 if test "$enableval" = yes; then
4387 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4388 else
4389 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4390 fi
4391
4392else
4393
4394 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4395 if test "x$LINE" != x ; then
4396 eval "DEFAULT_$LINE"
4397 else
4398 no_cache=1
4399 fi
4400
4401 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4402
4403fi
4404
4405
4406 eval "$ac_cv_use_mshtmlhelp"
4407 if test "$no_cache" != 1; then
4408 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4409 fi
4410
4411 if test "$wxUSE_MS_HTML_HELP" = yes; then
4412 echo "$ac_t""yes" 1>&6
4413 else
4414 echo "$ac_t""no" 1>&6
4415 fi
4416
4417
3379ed37 4418 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
24176f2c 4419echo "configure:4420: checking for --enable-html" >&5
3379ed37
VZ
4420 no_cache=0
4421 # Check whether --enable-html or --disable-html was given.
4422if test "${enable_html+set}" = set; then
4423 enableval="$enable_html"
4424
4425 if test "$enableval" = yes; then
4426 ac_cv_use_html='wxUSE_HTML=yes'
4427 else
4428 ac_cv_use_html='wxUSE_HTML=no'
4429 fi
4430
4431else
4432
4433 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4434 if test "x$LINE" != x ; then
4435 eval "DEFAULT_$LINE"
4436 else
4437 no_cache=1
4438 fi
4439
4440 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4441
4442fi
4443
4444
4445 eval "$ac_cv_use_html"
4446 if test "$no_cache" != 1; then
4447 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4448 fi
4449
4450 if test "$wxUSE_HTML" = yes; then
4451 echo "$ac_t""yes" 1>&6
4452 else
4453 echo "$ac_t""no" 1>&6
4454 fi
4455
4456
4457 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
24176f2c 4458echo "configure:4459: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4459 no_cache=0
4460 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4461if test "${enable_htmlhelp+set}" = set; then
4462 enableval="$enable_htmlhelp"
4463
4464 if test "$enableval" = yes; then
4465 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4466 else
4467 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4468 fi
4469
4470else
4471
4472 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4473 if test "x$LINE" != x ; then
4474 eval "DEFAULT_$LINE"
4475 else
4476 no_cache=1
4477 fi
4478
4479 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4480
4481fi
4482
4483
4484 eval "$ac_cv_use_htmlhelp"
4485 if test "$no_cache" != 1; then
4486 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4487 fi
4488
4489 if test "$wxUSE_WXHTML_HELP" = yes; then
4490 echo "$ac_t""yes" 1>&6
4491 else
4492 echo "$ac_t""no" 1>&6
4493 fi
4494
4495
698dcdb6 4496 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
24176f2c 4497echo "configure:4498: checking for --enable-constraints" >&5
10f2d63a
VZ
4498 no_cache=0
4499 # Check whether --enable-constraints or --disable-constraints was given.
4500if test "${enable_constraints+set}" = set; then
4501 enableval="$enable_constraints"
698dcdb6 4502
10f2d63a
VZ
4503 if test "$enableval" = yes; then
4504 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4505 else
4506 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4507 fi
698dcdb6 4508
10f2d63a 4509else
698dcdb6 4510
10f2d63a
VZ
4511 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4512 if test "x$LINE" != x ; then
4513 eval "DEFAULT_$LINE"
4514 else
4515 no_cache=1
4516 fi
4517
4518 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
4519
4520fi
10f2d63a
VZ
4521
4522
4523 eval "$ac_cv_use_constraints"
4524 if test "$no_cache" != 1; then
4525 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4526 fi
4527
4528 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 4529 echo "$ac_t""yes" 1>&6
10f2d63a 4530 else
698dcdb6 4531 echo "$ac_t""no" 1>&6
10f2d63a 4532 fi
698dcdb6 4533
10f2d63a 4534
698dcdb6 4535 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
24176f2c 4536echo "configure:4537: checking for --enable-printarch" >&5
10f2d63a
VZ
4537 no_cache=0
4538 # Check whether --enable-printarch or --disable-printarch was given.
4539if test "${enable_printarch+set}" = set; then
4540 enableval="$enable_printarch"
698dcdb6 4541
10f2d63a
VZ
4542 if test "$enableval" = yes; then
4543 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4544 else
4545 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4546 fi
698dcdb6 4547
10f2d63a 4548else
698dcdb6 4549
10f2d63a
VZ
4550 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4551 if test "x$LINE" != x ; then
4552 eval "DEFAULT_$LINE"
4553 else
4554 no_cache=1
4555 fi
4556
4557 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
4558
4559fi
10f2d63a
VZ
4560
4561
4562 eval "$ac_cv_use_printarch"
4563 if test "$no_cache" != 1; then
4564 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4565 fi
4566
4567 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 4568 echo "$ac_t""yes" 1>&6
10f2d63a 4569 else
698dcdb6 4570 echo "$ac_t""no" 1>&6
10f2d63a 4571 fi
698dcdb6 4572
10f2d63a 4573
698dcdb6 4574 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
24176f2c 4575echo "configure:4576: checking for --enable-mdi" >&5
10f2d63a
VZ
4576 no_cache=0
4577 # Check whether --enable-mdi or --disable-mdi was given.
4578if test "${enable_mdi+set}" = set; then
4579 enableval="$enable_mdi"
698dcdb6 4580
10f2d63a
VZ
4581 if test "$enableval" = yes; then
4582 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4583 else
4584 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4585 fi
698dcdb6 4586
10f2d63a 4587else
698dcdb6 4588
10f2d63a
VZ
4589 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4590 if test "x$LINE" != x ; then
4591 eval "DEFAULT_$LINE"
4592 else
4593 no_cache=1
4594 fi
4595
4596 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
4597
4598fi
10f2d63a
VZ
4599
4600
4601 eval "$ac_cv_use_mdi"
4602 if test "$no_cache" != 1; then
4603 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4604 fi
4605
4606 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 4607 echo "$ac_t""yes" 1>&6
10f2d63a 4608 else
698dcdb6 4609 echo "$ac_t""no" 1>&6
10f2d63a 4610 fi
698dcdb6
VZ
4611
4612
1e6feb95 4613 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
24176f2c 4614echo "configure:4615: checking for --enable-loggui" >&5
1e6feb95
VZ
4615 no_cache=0
4616 # Check whether --enable-loggui or --disable-loggui was given.
4617if test "${enable_loggui+set}" = set; then
4618 enableval="$enable_loggui"
4619
4620 if test "$enableval" = yes; then
4621 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4622 else
4623 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4624 fi
4625
4626else
4627
4628 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4629 if test "x$LINE" != x ; then
4630 eval "DEFAULT_$LINE"
4631 else
4632 no_cache=1
4633 fi
4634
4635 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4636
4637fi
4638
4639
4640 eval "$ac_cv_use_loggui"
4641 if test "$no_cache" != 1; then
4642 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4643 fi
4644
4645 if test "$wxUSE_LOGGUI" = yes; then
4646 echo "$ac_t""yes" 1>&6
4647 else
4648 echo "$ac_t""no" 1>&6
4649 fi
4650
4651
4652 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
24176f2c 4653echo "configure:4654: checking for --enable-logwin" >&5
1e6feb95
VZ
4654 no_cache=0
4655 # Check whether --enable-logwin or --disable-logwin was given.
4656if test "${enable_logwin+set}" = set; then
4657 enableval="$enable_logwin"
4658
4659 if test "$enableval" = yes; then
4660 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4661 else
4662 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4663 fi
4664
4665else
4666
4667 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4668 if test "x$LINE" != x ; then
4669 eval "DEFAULT_$LINE"
4670 else
4671 no_cache=1
4672 fi
4673
4674 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4675
4676fi
4677
4678
4679 eval "$ac_cv_use_logwin"
4680 if test "$no_cache" != 1; then
4681 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4682 fi
4683
4684 if test "$wxUSE_LOGWINDOW" = yes; then
4685 echo "$ac_t""yes" 1>&6
4686 else
4687 echo "$ac_t""no" 1>&6
4688 fi
4689
4690
10f2d63a 4691
698dcdb6 4692 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
24176f2c 4693echo "configure:4694: checking for --enable-postscript" >&5
10f2d63a
VZ
4694 no_cache=0
4695 # Check whether --enable-postscript or --disable-postscript was given.
4696if test "${enable_postscript+set}" = set; then
4697 enableval="$enable_postscript"
698dcdb6 4698
10f2d63a
VZ
4699 if test "$enableval" = yes; then
4700 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4701 else
4702 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4703 fi
698dcdb6 4704
10f2d63a 4705else
698dcdb6 4706
10f2d63a
VZ
4707 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4708 if test "x$LINE" != x ; then
4709 eval "DEFAULT_$LINE"
4710 else
4711 no_cache=1
4712 fi
4713
4714 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
4715
4716fi
10f2d63a
VZ
4717
4718
4719 eval "$ac_cv_use_postscript"
4720 if test "$no_cache" != 1; then
4721 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4722 fi
4723
4724 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 4725 echo "$ac_t""yes" 1>&6
10f2d63a 4726 else
698dcdb6 4727 echo "$ac_t""no" 1>&6
10f2d63a 4728 fi
698dcdb6
VZ
4729
4730
4731
10f2d63a 4732
1e6feb95 4733
698dcdb6 4734 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
24176f2c 4735echo "configure:4736: checking for --enable-prologio" >&5
10f2d63a
VZ
4736 no_cache=0
4737 # Check whether --enable-prologio or --disable-prologio was given.
4738if test "${enable_prologio+set}" = set; then
4739 enableval="$enable_prologio"
698dcdb6 4740
10f2d63a
VZ
4741 if test "$enableval" = yes; then
4742 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4743 else
4744 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4745 fi
698dcdb6 4746
10f2d63a 4747else
698dcdb6 4748
10f2d63a
VZ
4749 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4750 if test "x$LINE" != x ; then
4751 eval "DEFAULT_$LINE"
4752 else
4753 no_cache=1
4754 fi
4755
4756 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
4757
4758fi
10f2d63a
VZ
4759
4760
4761 eval "$ac_cv_use_prologio"
4762 if test "$no_cache" != 1; then
4763 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4764 fi
4765
4766 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 4767 echo "$ac_t""yes" 1>&6
10f2d63a 4768 else
698dcdb6 4769 echo "$ac_t""no" 1>&6
10f2d63a 4770 fi
698dcdb6 4771
10f2d63a 4772
698dcdb6 4773 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
24176f2c 4774echo "configure:4775: checking for --enable-resources" >&5
10f2d63a
VZ
4775 no_cache=0
4776 # Check whether --enable-resources or --disable-resources was given.
4777if test "${enable_resources+set}" = set; then
4778 enableval="$enable_resources"
698dcdb6 4779
10f2d63a
VZ
4780 if test "$enableval" = yes; then
4781 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4782 else
4783 ac_cv_use_resources='wxUSE_RESOURCES=no'
4784 fi
698dcdb6 4785
10f2d63a 4786else
698dcdb6 4787
10f2d63a
VZ
4788 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4789 if test "x$LINE" != x ; then
4790 eval "DEFAULT_$LINE"
4791 else
4792 no_cache=1
4793 fi
4794
4795 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
4796
4797fi
10f2d63a
VZ
4798
4799
4800 eval "$ac_cv_use_resources"
4801 if test "$no_cache" != 1; then
4802 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4803 fi
4804
4805 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 4806 echo "$ac_t""yes" 1>&6
10f2d63a 4807 else
698dcdb6 4808 echo "$ac_t""no" 1>&6
10f2d63a 4809 fi
698dcdb6 4810
10f2d63a 4811
698dcdb6
VZ
4812
4813 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
24176f2c 4814echo "configure:4815: checking for --enable-xresources" >&5
10f2d63a
VZ
4815 no_cache=0
4816 # Check whether --enable-xresources or --disable-xresources was given.
4817if test "${enable_xresources+set}" = set; then
4818 enableval="$enable_xresources"
698dcdb6 4819
10f2d63a
VZ
4820 if test "$enableval" = yes; then
4821 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4822 else
4823 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4824 fi
698dcdb6 4825
10f2d63a 4826else
698dcdb6 4827
10f2d63a
VZ
4828 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4829 if test "x$LINE" != x ; then
4830 eval "DEFAULT_$LINE"
4831 else
4832 no_cache=1
4833 fi
4834
4835 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
4836
4837fi
10f2d63a
VZ
4838
4839
4840 eval "$ac_cv_use_xresources"
4841 if test "$no_cache" != 1; then
4842 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4843 fi
4844
4845 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 4846 echo "$ac_t""yes" 1>&6
10f2d63a 4847 else
698dcdb6 4848 echo "$ac_t""no" 1>&6
10f2d63a 4849 fi
698dcdb6
VZ
4850
4851
10f2d63a 4852
698dcdb6
VZ
4853
4854 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
24176f2c 4855echo "configure:4856: checking for --enable-clipboard" >&5
10f2d63a
VZ
4856 no_cache=0
4857 # Check whether --enable-clipboard or --disable-clipboard was given.
4858if test "${enable_clipboard+set}" = set; then
4859 enableval="$enable_clipboard"
698dcdb6 4860
10f2d63a
VZ
4861 if test "$enableval" = yes; then
4862 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4863 else
4864 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4865 fi
698dcdb6 4866
10f2d63a 4867else
698dcdb6 4868
10f2d63a
VZ
4869 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4870 if test "x$LINE" != x ; then
4871 eval "DEFAULT_$LINE"
4872 else
4873 no_cache=1
4874 fi
4875
4876 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
4877
4878fi
10f2d63a
VZ
4879
4880
4881 eval "$ac_cv_use_clipboard"
4882 if test "$no_cache" != 1; then
4883 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4884 fi
4885
4886 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 4887 echo "$ac_t""yes" 1>&6
10f2d63a 4888 else
698dcdb6 4889 echo "$ac_t""no" 1>&6
10f2d63a 4890 fi
698dcdb6 4891
10f2d63a 4892
698dcdb6 4893 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
24176f2c 4894echo "configure:4895: checking for --enable-dnd" >&5
10f2d63a
VZ
4895 no_cache=0
4896 # Check whether --enable-dnd or --disable-dnd was given.
4897if test "${enable_dnd+set}" = set; then
4898 enableval="$enable_dnd"
698dcdb6 4899
10f2d63a
VZ
4900 if test "$enableval" = yes; then
4901 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4902 else
4903 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4904 fi
698dcdb6 4905
10f2d63a 4906else
698dcdb6 4907
10f2d63a
VZ
4908 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4909 if test "x$LINE" != x ; then
4910 eval "DEFAULT_$LINE"
4911 else
4912 no_cache=1
4913 fi
4914
4915 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
4916
4917fi
10f2d63a
VZ
4918
4919
4920 eval "$ac_cv_use_dnd"
4921 if test "$no_cache" != 1; then
4922 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4923 fi
4924
4925 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 4926 echo "$ac_t""yes" 1>&6
10f2d63a 4927 else
698dcdb6 4928 echo "$ac_t""no" 1>&6
10f2d63a 4929 fi
698dcdb6 4930
10f2d63a 4931
698dcdb6 4932 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
24176f2c 4933echo "configure:4934: checking for --enable-metafile" >&5
b64f0a5f
RL
4934 no_cache=0
4935 # Check whether --enable-metafile or --disable-metafile was given.
4936if test "${enable_metafile+set}" = set; then
4937 enableval="$enable_metafile"
698dcdb6 4938
b64f0a5f
RL
4939 if test "$enableval" = yes; then
4940 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4941 else
4942 ac_cv_use_metafile='wxUSE_METAFILE=no'
4943 fi
698dcdb6 4944
b64f0a5f 4945else
698dcdb6 4946
b64f0a5f
RL
4947 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4948 if test "x$LINE" != x ; then
4949 eval "DEFAULT_$LINE"
4950 else
4951 no_cache=1
4952 fi
4953
4954 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
4955
4956fi
b64f0a5f
RL
4957
4958
4959 eval "$ac_cv_use_metafile"
4960 if test "$no_cache" != 1; then
4961 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4962 fi
4963
4964 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 4965 echo "$ac_t""yes" 1>&6
b64f0a5f 4966 else
698dcdb6 4967 echo "$ac_t""no" 1>&6
b64f0a5f 4968 fi
698dcdb6
VZ
4969
4970
10f2d63a 4971
24176f2c
GD
4972 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
4973echo "configure:4974: checking for --enable-treelayout" >&5
10f2d63a 4974 no_cache=0
24176f2c
GD
4975 # Check whether --enable-treelayout or --disable-treelayout was given.
4976if test "${enable_treelayout+set}" = set; then
4977 enableval="$enable_treelayout"
698dcdb6 4978
10f2d63a 4979 if test "$enableval" = yes; then
24176f2c 4980 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 4981 else
24176f2c 4982 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 4983 fi
698dcdb6 4984
10f2d63a 4985else
698dcdb6 4986
24176f2c 4987 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
4988 if test "x$LINE" != x ; then
4989 eval "DEFAULT_$LINE"
4990 else
4991 no_cache=1
4992 fi
4993
24176f2c 4994 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
4995
4996fi
10f2d63a
VZ
4997
4998
24176f2c 4999 eval "$ac_cv_use_treelayout"
10f2d63a 5000 if test "$no_cache" != 1; then
24176f2c 5001 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5002 fi
5003
24176f2c 5004 if test "$wxUSE_TREELAYOUT" = yes; then
698dcdb6 5005 echo "$ac_t""yes" 1>&6
10f2d63a 5006 else
698dcdb6 5007 echo "$ac_t""no" 1>&6
10f2d63a 5008 fi
698dcdb6 5009
10f2d63a 5010
698dcdb6
VZ
5011
5012
5013 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
24176f2c 5014echo "configure:5015: checking for --enable-controls" >&5
10f2d63a
VZ
5015 no_cache=0
5016 # Check whether --enable-controls or --disable-controls was given.
5017if test "${enable_controls+set}" = set; then
5018 enableval="$enable_controls"
698dcdb6 5019
10f2d63a
VZ
5020 if test "$enableval" = yes; then
5021 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5022 else
5023 ac_cv_use_controls='wxUSE_CONTROLS=no'
5024 fi
698dcdb6 5025
10f2d63a 5026else
698dcdb6 5027
10f2d63a
VZ
5028 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5029 if test "x$LINE" != x ; then
5030 eval "DEFAULT_$LINE"
5031 else
5032 no_cache=1
5033 fi
5034
5035 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5036
5037fi
10f2d63a
VZ
5038
5039
5040 eval "$ac_cv_use_controls"
5041 if test "$no_cache" != 1; then
5042 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5043 fi
5044
5045 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5046 echo "$ac_t""yes" 1>&6
10f2d63a 5047 else
698dcdb6 5048 echo "$ac_t""no" 1>&6
10f2d63a 5049 fi
698dcdb6 5050
10f2d63a
VZ
5051
5052if test "$wxUSE_CONTROLS" = "yes"; then
5053 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5054 DEFAULT_wxUSE_BMPBUTTON=yes
5055 DEFAULT_wxUSE_BUTTON=yes
5056 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5057 DEFAULT_wxUSE_CARET=yes
5058 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5059 DEFAULT_wxUSE_CHECKBOX=yes
5060 DEFAULT_wxUSE_CHECKLISTBOX=yes
5061 DEFAULT_wxUSE_CHOICE=yes
5062 DEFAULT_wxUSE_GAUGE=yes
5063 DEFAULT_wxUSE_GRID=yes
cc977e5f 5064 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5065 DEFAULT_wxUSE_IMAGLIST=yes
5066 DEFAULT_wxUSE_LISTBOX=yes
5067 DEFAULT_wxUSE_LISTCTRL=yes
5068 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5069 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5070 DEFAULT_wxUSE_RADIOBOX=yes
5071 DEFAULT_wxUSE_RADIOBTN=yes
5072 DEFAULT_wxUSE_SASH=yes
5073 DEFAULT_wxUSE_SCROLLBAR=yes
5074 DEFAULT_wxUSE_SLIDER=yes
5075 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5076 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5077 DEFAULT_wxUSE_SPLITTER=yes
5078 DEFAULT_wxUSE_STATBMP=yes
5079 DEFAULT_wxUSE_STATBOX=yes
5080 DEFAULT_wxUSE_STATLINE=yes
5081 DEFAULT_wxUSE_STATUSBAR=yes
5082 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5083 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5084 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5085 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5086 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5087 DEFAULT_wxUSE_TOOLTIPS=yes
5088 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5089 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
5090elif test "$wxUSE_CONTROLS" = "no"; then
5091 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5092 DEFAULT_wxUSE_BMPBUTTON=no
5093 DEFAULT_wxUSE_BUTTON=no
5094 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5095 DEFAULT_wxUSE_CARET=no
5096 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5097 DEFAULT_wxUSE_CHECKBOX=no
5098 DEFAULT_wxUSE_CHECKLISTBOX=no
5099 DEFAULT_wxUSE_CHOICE=no
5100 DEFAULT_wxUSE_GAUGE=no
5101 DEFAULT_wxUSE_GRID=no
5102 DEFAULT_wxUSE_NEW_GRID=no
5103 DEFAULT_wxUSE_IMAGLIST=no
5104 DEFAULT_wxUSE_LISTBOX=no
5105 DEFAULT_wxUSE_LISTCTRL=no
5106 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5107 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5108 DEFAULT_wxUSE_RADIOBOX=no
5109 DEFAULT_wxUSE_RADIOBTN=no
5110 DEFAULT_wxUSE_SASH=no
5111 DEFAULT_wxUSE_SCROLLBAR=no
5112 DEFAULT_wxUSE_SLIDER=no
5113 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5114 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5115 DEFAULT_wxUSE_SPLITTER=no
5116 DEFAULT_wxUSE_STATBMP=no
5117 DEFAULT_wxUSE_STATBOX=no
5118 DEFAULT_wxUSE_STATLINE=no
5119 DEFAULT_wxUSE_STATUSBAR=no
5120 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5121 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5122 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5123 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5124 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5125 DEFAULT_wxUSE_TOOLTIPS=no
5126 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5127 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
5128fi
5129
698dcdb6
VZ
5130
5131 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
24176f2c 5132echo "configure:5133: checking for --enable-accel" >&5
10f2d63a
VZ
5133 no_cache=0
5134 # Check whether --enable-accel or --disable-accel was given.
5135if test "${enable_accel+set}" = set; then
5136 enableval="$enable_accel"
698dcdb6 5137
10f2d63a
VZ
5138 if test "$enableval" = yes; then
5139 ac_cv_use_accel='wxUSE_ACCEL=yes'
5140 else
5141 ac_cv_use_accel='wxUSE_ACCEL=no'
5142 fi
698dcdb6 5143
10f2d63a 5144else
698dcdb6 5145
10f2d63a
VZ
5146 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5147 if test "x$LINE" != x ; then
5148 eval "DEFAULT_$LINE"
5149 else
5150 no_cache=1
5151 fi
5152
5153 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5154
5155fi
10f2d63a
VZ
5156
5157
5158 eval "$ac_cv_use_accel"
5159 if test "$no_cache" != 1; then
5160 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5161 fi
5162
5163 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5164 echo "$ac_t""yes" 1>&6
10f2d63a 5165 else
698dcdb6 5166 echo "$ac_t""no" 1>&6
10f2d63a 5167 fi
698dcdb6 5168
10f2d63a 5169
1e6feb95 5170 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
24176f2c 5171echo "configure:5172: checking for --enable-button" >&5
10f2d63a 5172 no_cache=0
1e6feb95
VZ
5173 # Check whether --enable-button or --disable-button was given.
5174if test "${enable_button+set}" = set; then
5175 enableval="$enable_button"
698dcdb6 5176
10f2d63a 5177 if test "$enableval" = yes; then
1e6feb95 5178 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5179 else
1e6feb95 5180 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5181 fi
698dcdb6 5182
10f2d63a 5183else
698dcdb6 5184
1e6feb95 5185 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5186 if test "x$LINE" != x ; then
5187 eval "DEFAULT_$LINE"
5188 else
5189 no_cache=1
5190 fi
5191
1e6feb95 5192 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5193
5194fi
10f2d63a
VZ
5195
5196
1e6feb95 5197 eval "$ac_cv_use_button"
10f2d63a 5198 if test "$no_cache" != 1; then
1e6feb95 5199 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5200 fi
5201
1e6feb95 5202 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5203 echo "$ac_t""yes" 1>&6
10f2d63a 5204 else
698dcdb6 5205 echo "$ac_t""no" 1>&6
10f2d63a 5206 fi
698dcdb6 5207
10f2d63a 5208
698dcdb6 5209 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
24176f2c 5210echo "configure:5211: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5211 no_cache=0
5212 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5213if test "${enable_bmpbutton+set}" = set; then
5214 enableval="$enable_bmpbutton"
698dcdb6 5215
10f2d63a
VZ
5216 if test "$enableval" = yes; then
5217 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5218 else
5219 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5220 fi
698dcdb6 5221
10f2d63a 5222else
698dcdb6 5223
10f2d63a
VZ
5224 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5225 if test "x$LINE" != x ; then
5226 eval "DEFAULT_$LINE"
5227 else
5228 no_cache=1
5229 fi
5230
5231 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5232
5233fi
10f2d63a
VZ
5234
5235
5236 eval "$ac_cv_use_bmpbutton"
5237 if test "$no_cache" != 1; then
5238 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5239 fi
5240
5241 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5242 echo "$ac_t""yes" 1>&6
10f2d63a 5243 else
698dcdb6 5244 echo "$ac_t""no" 1>&6
10f2d63a 5245 fi
698dcdb6 5246
10f2d63a 5247
1e6feb95 5248 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
24176f2c 5249echo "configure:5250: checking for --enable-calendar" >&5
1e6feb95
VZ
5250 no_cache=0
5251 # Check whether --enable-calendar or --disable-calendar was given.
5252if test "${enable_calendar+set}" = set; then
5253 enableval="$enable_calendar"
5254
5255 if test "$enableval" = yes; then
5256 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5257 else
5258 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5259 fi
5260
5261else
5262
5263 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5264 if test "x$LINE" != x ; then
5265 eval "DEFAULT_$LINE"
5266 else
5267 no_cache=1
5268 fi
5269
5270 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5271
5272fi
5273
5274
5275 eval "$ac_cv_use_calendar"
5276 if test "$no_cache" != 1; then
5277 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5278 fi
5279
5280 if test "$wxUSE_CALCTRL" = yes; then
5281 echo "$ac_t""yes" 1>&6
5282 else
5283 echo "$ac_t""no" 1>&6
5284 fi
5285
5286
5287 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
24176f2c 5288echo "configure:5289: checking for --enable-caret" >&5
1e6feb95
VZ
5289 no_cache=0
5290 # Check whether --enable-caret or --disable-caret was given.
5291if test "${enable_caret+set}" = set; then
5292 enableval="$enable_caret"
5293
5294 if test "$enableval" = yes; then
5295 ac_cv_use_caret='wxUSE_CARET=yes'
5296 else
5297 ac_cv_use_caret='wxUSE_CARET=no'
5298 fi
5299
5300else
5301
5302 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5303 if test "x$LINE" != x ; then
5304 eval "DEFAULT_$LINE"
5305 else
5306 no_cache=1
5307 fi
5308
5309 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5310
5311fi
5312
5313
5314 eval "$ac_cv_use_caret"
5315 if test "$no_cache" != 1; then
5316 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5317 fi
5318
5319 if test "$wxUSE_CARET" = yes; then
5320 echo "$ac_t""yes" 1>&6
5321 else
5322 echo "$ac_t""no" 1>&6
5323 fi
5324
5325
698dcdb6 5326 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
24176f2c 5327echo "configure:5328: checking for --enable-checkbox" >&5
10f2d63a
VZ
5328 no_cache=0
5329 # Check whether --enable-checkbox or --disable-checkbox was given.
5330if test "${enable_checkbox+set}" = set; then
5331 enableval="$enable_checkbox"
698dcdb6 5332
10f2d63a
VZ
5333 if test "$enableval" = yes; then
5334 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5335 else
5336 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5337 fi
698dcdb6 5338
10f2d63a 5339else
698dcdb6 5340
10f2d63a
VZ
5341 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5342 if test "x$LINE" != x ; then
5343 eval "DEFAULT_$LINE"
5344 else
5345 no_cache=1
5346 fi
5347
5348 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5349
5350fi
10f2d63a
VZ
5351
5352
5353 eval "$ac_cv_use_checkbox"
5354 if test "$no_cache" != 1; then
5355 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5356 fi
5357
5358 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5359 echo "$ac_t""yes" 1>&6
10f2d63a 5360 else
698dcdb6 5361 echo "$ac_t""no" 1>&6
10f2d63a 5362 fi
698dcdb6 5363
10f2d63a 5364
698dcdb6 5365 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
24176f2c 5366echo "configure:5367: checking for --enable-checklst" >&5
10f2d63a
VZ
5367 no_cache=0
5368 # Check whether --enable-checklst or --disable-checklst was given.
5369if test "${enable_checklst+set}" = set; then
5370 enableval="$enable_checklst"
698dcdb6 5371
10f2d63a
VZ
5372 if test "$enableval" = yes; then
5373 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5374 else
5375 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5376 fi
698dcdb6 5377
10f2d63a 5378else
698dcdb6 5379
10f2d63a
VZ
5380 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5381 if test "x$LINE" != x ; then
5382 eval "DEFAULT_$LINE"
5383 else
5384 no_cache=1
5385 fi
5386
5387 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5388
5389fi
10f2d63a
VZ
5390
5391
5392 eval "$ac_cv_use_checklst"
5393 if test "$no_cache" != 1; then
5394 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5395 fi
5396
5397 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5398 echo "$ac_t""yes" 1>&6
10f2d63a 5399 else
698dcdb6 5400 echo "$ac_t""no" 1>&6
10f2d63a 5401 fi
698dcdb6 5402
10f2d63a 5403
698dcdb6 5404 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
24176f2c 5405echo "configure:5406: checking for --enable-choice" >&5
10f2d63a
VZ
5406 no_cache=0
5407 # Check whether --enable-choice or --disable-choice was given.
5408if test "${enable_choice+set}" = set; then
5409 enableval="$enable_choice"
698dcdb6 5410
10f2d63a
VZ
5411 if test "$enableval" = yes; then
5412 ac_cv_use_choice='wxUSE_CHOICE=yes'
5413 else
5414 ac_cv_use_choice='wxUSE_CHOICE=no'
5415 fi
698dcdb6 5416
10f2d63a 5417else
698dcdb6 5418
10f2d63a
VZ
5419 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5420 if test "x$LINE" != x ; then
5421 eval "DEFAULT_$LINE"
5422 else
5423 no_cache=1
5424 fi
5425
5426 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5427
5428fi
10f2d63a
VZ
5429
5430
5431 eval "$ac_cv_use_choice"
5432 if test "$no_cache" != 1; then
5433 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5434 fi
5435
5436 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5437 echo "$ac_t""yes" 1>&6
10f2d63a 5438 else
698dcdb6 5439 echo "$ac_t""no" 1>&6
10f2d63a 5440 fi
698dcdb6 5441
10f2d63a 5442
698dcdb6 5443 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
24176f2c 5444echo "configure:5445: checking for --enable-combobox" >&5
10f2d63a
VZ
5445 no_cache=0
5446 # Check whether --enable-combobox or --disable-combobox was given.
5447if test "${enable_combobox+set}" = set; then
5448 enableval="$enable_combobox"
698dcdb6 5449
10f2d63a
VZ
5450 if test "$enableval" = yes; then
5451 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5452 else
5453 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5454 fi
698dcdb6 5455
10f2d63a 5456else
698dcdb6 5457
10f2d63a
VZ
5458 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5459 if test "x$LINE" != x ; then
5460 eval "DEFAULT_$LINE"
5461 else
5462 no_cache=1
5463 fi
5464
5465 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
5466
5467fi
10f2d63a
VZ
5468
5469
5470 eval "$ac_cv_use_combobox"
5471 if test "$no_cache" != 1; then
5472 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5473 fi
5474
5475 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 5476 echo "$ac_t""yes" 1>&6
10f2d63a 5477 else
698dcdb6 5478 echo "$ac_t""no" 1>&6
10f2d63a 5479 fi
698dcdb6 5480
10f2d63a 5481
698dcdb6 5482 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
24176f2c 5483echo "configure:5484: checking for --enable-gauge" >&5
10f2d63a
VZ
5484 no_cache=0
5485 # Check whether --enable-gauge or --disable-gauge was given.
5486if test "${enable_gauge+set}" = set; then
5487 enableval="$enable_gauge"
698dcdb6 5488
10f2d63a
VZ
5489 if test "$enableval" = yes; then
5490 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5491 else
5492 ac_cv_use_gauge='wxUSE_GAUGE=no'
5493 fi
698dcdb6 5494
10f2d63a 5495else
698dcdb6 5496
10f2d63a
VZ
5497 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5498 if test "x$LINE" != x ; then
5499 eval "DEFAULT_$LINE"
5500 else
5501 no_cache=1
5502 fi
5503
5504 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
5505
5506fi
10f2d63a
VZ
5507
5508
5509 eval "$ac_cv_use_gauge"
5510 if test "$no_cache" != 1; then
5511 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5512 fi
5513
5514 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 5515 echo "$ac_t""yes" 1>&6
10f2d63a 5516 else
698dcdb6 5517 echo "$ac_t""no" 1>&6
10f2d63a 5518 fi
698dcdb6 5519
10f2d63a 5520
698dcdb6 5521 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
24176f2c 5522echo "configure:5523: checking for --enable-grid" >&5
10f2d63a
VZ
5523 no_cache=0
5524 # Check whether --enable-grid or --disable-grid was given.
5525if test "${enable_grid+set}" = set; then
5526 enableval="$enable_grid"
698dcdb6 5527
10f2d63a
VZ
5528 if test "$enableval" = yes; then
5529 ac_cv_use_grid='wxUSE_GRID=yes'
5530 else
5531 ac_cv_use_grid='wxUSE_GRID=no'
5532 fi
698dcdb6 5533
10f2d63a 5534else
698dcdb6 5535
10f2d63a
VZ
5536 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5537 if test "x$LINE" != x ; then
5538 eval "DEFAULT_$LINE"
5539 else
5540 no_cache=1
5541 fi
5542
5543 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
5544
5545fi
10f2d63a
VZ
5546
5547
5548 eval "$ac_cv_use_grid"
5549 if test "$no_cache" != 1; then
5550 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5551 fi
5552
5553 if test "$wxUSE_GRID" = yes; then
698dcdb6 5554 echo "$ac_t""yes" 1>&6
10f2d63a 5555 else
698dcdb6 5556 echo "$ac_t""no" 1>&6
10f2d63a 5557 fi
698dcdb6 5558
10f2d63a 5559
698dcdb6 5560 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
24176f2c 5561echo "configure:5562: checking for --enable-newgrid" >&5
10f2d63a
VZ
5562 no_cache=0
5563 # Check whether --enable-newgrid or --disable-newgrid was given.
5564if test "${enable_newgrid+set}" = set; then
5565 enableval="$enable_newgrid"
698dcdb6 5566
10f2d63a
VZ
5567 if test "$enableval" = yes; then
5568 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5569 else
5570 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5571 fi
698dcdb6 5572
10f2d63a 5573else
698dcdb6 5574
10f2d63a
VZ
5575 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5576 if test "x$LINE" != x ; then
5577 eval "DEFAULT_$LINE"
5578 else
5579 no_cache=1
5580 fi
5581
5582 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
5583
5584fi
10f2d63a
VZ
5585
5586
5587 eval "$ac_cv_use_newgrid"
5588 if test "$no_cache" != 1; then
5589 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5590 fi
5591
5592 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 5593 echo "$ac_t""yes" 1>&6
10f2d63a 5594 else
698dcdb6 5595 echo "$ac_t""no" 1>&6
10f2d63a 5596 fi
698dcdb6 5597
10f2d63a 5598
698dcdb6 5599 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
24176f2c 5600echo "configure:5601: checking for --enable-imaglist" >&5
10f2d63a
VZ
5601 no_cache=0
5602 # Check whether --enable-imaglist or --disable-imaglist was given.
5603if test "${enable_imaglist+set}" = set; then
5604 enableval="$enable_imaglist"
698dcdb6 5605
10f2d63a
VZ
5606 if test "$enableval" = yes; then
5607 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5608 else
5609 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5610 fi
698dcdb6 5611
10f2d63a 5612else
698dcdb6 5613
10f2d63a
VZ
5614 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5615 if test "x$LINE" != x ; then
5616 eval "DEFAULT_$LINE"
5617 else
5618 no_cache=1
5619 fi
5620
5621 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
5622
5623fi
10f2d63a
VZ
5624
5625
5626 eval "$ac_cv_use_imaglist"
5627 if test "$no_cache" != 1; then
5628 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5629 fi
5630
5631 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 5632 echo "$ac_t""yes" 1>&6
10f2d63a 5633 else
698dcdb6 5634 echo "$ac_t""no" 1>&6
10f2d63a 5635 fi
698dcdb6 5636
10f2d63a 5637
698dcdb6 5638 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
24176f2c 5639echo "configure:5640: checking for --enable-listbox" >&5
10f2d63a
VZ
5640 no_cache=0
5641 # Check whether --enable-listbox or --disable-listbox was given.
5642if test "${enable_listbox+set}" = set; then
5643 enableval="$enable_listbox"
698dcdb6 5644
10f2d63a
VZ
5645 if test "$enableval" = yes; then
5646 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5647 else
5648 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5649 fi
698dcdb6 5650
10f2d63a 5651else
698dcdb6 5652
10f2d63a
VZ
5653 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5654 if test "x$LINE" != x ; then
5655 eval "DEFAULT_$LINE"
5656 else
5657 no_cache=1
5658 fi
5659
5660 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
5661
5662fi
10f2d63a
VZ
5663
5664
5665 eval "$ac_cv_use_listbox"
5666 if test "$no_cache" != 1; then
5667 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5668 fi
5669
5670 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 5671 echo "$ac_t""yes" 1>&6
10f2d63a 5672 else
698dcdb6 5673 echo "$ac_t""no" 1>&6
10f2d63a 5674 fi
698dcdb6 5675
10f2d63a 5676
698dcdb6 5677 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
24176f2c 5678echo "configure:5679: checking for --enable-listctrl" >&5
10f2d63a
VZ
5679 no_cache=0
5680 # Check whether --enable-listctrl or --disable-listctrl was given.
5681if test "${enable_listctrl+set}" = set; then
5682 enableval="$enable_listctrl"
698dcdb6 5683
10f2d63a
VZ
5684 if test "$enableval" = yes; then
5685 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5686 else
5687 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5688 fi
698dcdb6 5689
10f2d63a 5690else
698dcdb6 5691
10f2d63a
VZ
5692 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5693 if test "x$LINE" != x ; then
5694 eval "DEFAULT_$LINE"
5695 else
5696 no_cache=1
5697 fi
5698
5699 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
5700
5701fi
10f2d63a
VZ
5702
5703
5704 eval "$ac_cv_use_listctrl"
5705 if test "$no_cache" != 1; then
5706 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5707 fi
5708
5709 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 5710 echo "$ac_t""yes" 1>&6
10f2d63a 5711 else
698dcdb6 5712 echo "$ac_t""no" 1>&6
10f2d63a 5713 fi
698dcdb6 5714
10f2d63a 5715
698dcdb6 5716 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
24176f2c 5717echo "configure:5718: checking for --enable-notebook" >&5
10f2d63a
VZ
5718 no_cache=0
5719 # Check whether --enable-notebook or --disable-notebook was given.
5720if test "${enable_notebook+set}" = set; then
5721 enableval="$enable_notebook"
698dcdb6 5722
10f2d63a
VZ
5723 if test "$enableval" = yes; then
5724 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5725 else
5726 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5727 fi
698dcdb6 5728
10f2d63a 5729else
698dcdb6 5730
10f2d63a
VZ
5731 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5732 if test "x$LINE" != x ; then
5733 eval "DEFAULT_$LINE"
5734 else
5735 no_cache=1
5736 fi
5737
5738 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
5739
5740fi
10f2d63a
VZ
5741
5742
5743 eval "$ac_cv_use_notebook"
5744 if test "$no_cache" != 1; then
5745 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5746 fi
5747
5748 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 5749 echo "$ac_t""yes" 1>&6
10f2d63a 5750 else
698dcdb6 5751 echo "$ac_t""no" 1>&6
10f2d63a 5752 fi
698dcdb6 5753
10f2d63a 5754
24176f2c
GD
5755 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
5756echo "configure:5757: checking for --enable-propsheet" >&5
5757 no_cache=0
5758 # Check whether --enable-propsheet or --disable-propsheet was given.
5759if test "${enable_propsheet+set}" = set; then
5760 enableval="$enable_propsheet"
5761
5762 if test "$enableval" = yes; then
5763 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5764 else
5765 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5766 fi
5767
5768else
5769
5770 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5771 if test "x$LINE" != x ; then
5772 eval "DEFAULT_$LINE"
5773 else
5774 no_cache=1
5775 fi
5776
5777 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5778
5779fi
5780
5781
5782 eval "$ac_cv_use_propsheet"
5783 if test "$no_cache" != 1; then
5784 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5785 fi
5786
5787 if test "$wxUSE_PROPSHEET" = yes; then
5788 echo "$ac_t""yes" 1>&6
5789 else
5790 echo "$ac_t""no" 1>&6
5791 fi
5792
5793
698dcdb6 5794 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
24176f2c 5795echo "configure:5796: checking for --enable-radiobox" >&5
10f2d63a
VZ
5796 no_cache=0
5797 # Check whether --enable-radiobox or --disable-radiobox was given.
5798if test "${enable_radiobox+set}" = set; then
5799 enableval="$enable_radiobox"
698dcdb6 5800
10f2d63a
VZ
5801 if test "$enableval" = yes; then
5802 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5803 else
5804 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5805 fi
698dcdb6 5806
10f2d63a 5807else
698dcdb6 5808
10f2d63a
VZ
5809 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5810 if test "x$LINE" != x ; then
5811 eval "DEFAULT_$LINE"
5812 else
5813 no_cache=1
5814 fi
5815
5816 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
5817
5818fi
10f2d63a
VZ
5819
5820
5821 eval "$ac_cv_use_radiobox"
5822 if test "$no_cache" != 1; then
5823 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5824 fi
5825
5826 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 5827 echo "$ac_t""yes" 1>&6
10f2d63a 5828 else
698dcdb6 5829 echo "$ac_t""no" 1>&6
10f2d63a 5830 fi
698dcdb6 5831
10f2d63a 5832
698dcdb6 5833 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
24176f2c 5834echo "configure:5835: checking for --enable-radiobtn" >&5
10f2d63a
VZ
5835 no_cache=0
5836 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5837if test "${enable_radiobtn+set}" = set; then
5838 enableval="$enable_radiobtn"
698dcdb6 5839
10f2d63a
VZ
5840 if test "$enableval" = yes; then
5841 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5842 else
5843 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5844 fi
698dcdb6 5845
10f2d63a 5846else
698dcdb6 5847
10f2d63a
VZ
5848 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5849 if test "x$LINE" != x ; then
5850 eval "DEFAULT_$LINE"
5851 else
5852 no_cache=1
5853 fi
5854
5855 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
5856
5857fi
10f2d63a
VZ
5858
5859
5860 eval "$ac_cv_use_radiobtn"
5861 if test "$no_cache" != 1; then
5862 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5863 fi
5864
5865 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 5866 echo "$ac_t""yes" 1>&6
10f2d63a 5867 else
698dcdb6 5868 echo "$ac_t""no" 1>&6
10f2d63a 5869 fi
698dcdb6 5870
10f2d63a 5871
698dcdb6 5872 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
24176f2c 5873echo "configure:5874: checking for --enable-sash" >&5
10f2d63a
VZ
5874 no_cache=0
5875 # Check whether --enable-sash or --disable-sash was given.
5876if test "${enable_sash+set}" = set; then
5877 enableval="$enable_sash"
698dcdb6 5878
10f2d63a
VZ
5879 if test "$enableval" = yes; then
5880 ac_cv_use_sash='wxUSE_SASH=yes'
5881 else
5882 ac_cv_use_sash='wxUSE_SASH=no'
5883 fi
698dcdb6 5884
10f2d63a 5885else
698dcdb6 5886
10f2d63a
VZ
5887 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5888 if test "x$LINE" != x ; then
5889 eval "DEFAULT_$LINE"
5890 else
5891 no_cache=1
5892 fi
5893
5894 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
5895
5896fi
10f2d63a
VZ
5897
5898
5899 eval "$ac_cv_use_sash"
5900 if test "$no_cache" != 1; then
5901 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5902 fi
5903
5904 if test "$wxUSE_SASH" = yes; then
698dcdb6 5905 echo "$ac_t""yes" 1>&6
10f2d63a 5906 else
698dcdb6 5907 echo "$ac_t""no" 1>&6
10f2d63a 5908 fi
698dcdb6 5909
10f2d63a 5910
698dcdb6 5911 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
24176f2c 5912echo "configure:5913: checking for --enable-scrollbar" >&5
10f2d63a
VZ
5913 no_cache=0
5914 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5915if test "${enable_scrollbar+set}" = set; then
5916 enableval="$enable_scrollbar"
698dcdb6 5917
10f2d63a
VZ
5918 if test "$enableval" = yes; then
5919 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5920 else
5921 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5922 fi
698dcdb6 5923
10f2d63a 5924else
698dcdb6 5925
10f2d63a
VZ
5926 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5927 if test "x$LINE" != x ; then
5928 eval "DEFAULT_$LINE"
5929 else
5930 no_cache=1
5931 fi
5932
5933 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
5934
5935fi
10f2d63a
VZ
5936
5937
5938 eval "$ac_cv_use_scrollbar"
5939 if test "$no_cache" != 1; then
5940 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5941 fi
5942
5943 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 5944 echo "$ac_t""yes" 1>&6
10f2d63a 5945 else
698dcdb6 5946 echo "$ac_t""no" 1>&6
10f2d63a 5947 fi
698dcdb6 5948
10f2d63a 5949
698dcdb6 5950 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
24176f2c 5951echo "configure:5952: checking for --enable-slider" >&5
10f2d63a
VZ
5952 no_cache=0
5953 # Check whether --enable-slider or --disable-slider was given.
5954if test "${enable_slider+set}" = set; then
5955 enableval="$enable_slider"
698dcdb6 5956
10f2d63a
VZ
5957 if test "$enableval" = yes; then
5958 ac_cv_use_slider='wxUSE_SLIDER=yes'
5959 else
5960 ac_cv_use_slider='wxUSE_SLIDER=no'
5961 fi
698dcdb6 5962
10f2d63a 5963else
698dcdb6 5964
10f2d63a
VZ
5965 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5966 if test "x$LINE" != x ; then
5967 eval "DEFAULT_$LINE"
5968 else
5969 no_cache=1
5970 fi
5971
5972 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
5973
5974fi
10f2d63a
VZ
5975
5976
5977 eval "$ac_cv_use_slider"
5978 if test "$no_cache" != 1; then
5979 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5980 fi
5981
5982 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 5983 echo "$ac_t""yes" 1>&6
10f2d63a 5984 else
698dcdb6 5985 echo "$ac_t""no" 1>&6
10f2d63a 5986 fi
698dcdb6 5987
10f2d63a 5988
698dcdb6 5989 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
24176f2c 5990echo "configure:5991: checking for --enable-spinbtn" >&5
10f2d63a
VZ
5991 no_cache=0
5992 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5993if test "${enable_spinbtn+set}" = set; then
5994 enableval="$enable_spinbtn"
698dcdb6 5995
10f2d63a
VZ
5996 if test "$enableval" = yes; then
5997 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5998 else
5999 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6000 fi
698dcdb6 6001
10f2d63a 6002else
698dcdb6 6003
10f2d63a
VZ
6004 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6005 if test "x$LINE" != x ; then
6006 eval "DEFAULT_$LINE"
6007 else
6008 no_cache=1
6009 fi
6010
6011 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
6012
6013fi
10f2d63a
VZ
6014
6015
6016 eval "$ac_cv_use_spinbtn"
6017 if test "$no_cache" != 1; then
6018 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6019 fi
6020
6021 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 6022 echo "$ac_t""yes" 1>&6
10f2d63a 6023 else
698dcdb6 6024 echo "$ac_t""no" 1>&6
10f2d63a 6025 fi
698dcdb6 6026
10f2d63a 6027
698dcdb6 6028 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
24176f2c 6029echo "configure:6030: checking for --enable-spinctrl" >&5
56cfaa52
RR
6030 no_cache=0
6031 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6032if test "${enable_spinctrl+set}" = set; then
6033 enableval="$enable_spinctrl"
698dcdb6 6034
56cfaa52
RR
6035 if test "$enableval" = yes; then
6036 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6037 else
6038 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6039 fi
698dcdb6 6040
56cfaa52 6041else
698dcdb6 6042
56cfaa52
RR
6043 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6044 if test "x$LINE" != x ; then
6045 eval "DEFAULT_$LINE"
6046 else
6047 no_cache=1
6048 fi
6049
6050 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6051
6052fi
56cfaa52
RR
6053
6054
6055 eval "$ac_cv_use_spinctrl"
6056 if test "$no_cache" != 1; then
6057 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6058 fi
6059
6060 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6061 echo "$ac_t""yes" 1>&6
56cfaa52 6062 else
698dcdb6 6063 echo "$ac_t""no" 1>&6
56cfaa52 6064 fi
698dcdb6 6065
56cfaa52 6066
698dcdb6 6067 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
24176f2c 6068echo "configure:6069: checking for --enable-splitter" >&5
10f2d63a
VZ
6069 no_cache=0
6070 # Check whether --enable-splitter or --disable-splitter was given.
6071if test "${enable_splitter+set}" = set; then
6072 enableval="$enable_splitter"
698dcdb6 6073
10f2d63a
VZ
6074 if test "$enableval" = yes; then
6075 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6076 else
6077 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6078 fi
698dcdb6 6079
10f2d63a 6080else
698dcdb6 6081
10f2d63a
VZ
6082 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6083 if test "x$LINE" != x ; then
6084 eval "DEFAULT_$LINE"
6085 else
6086 no_cache=1
6087 fi
6088
6089 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6090
6091fi
10f2d63a
VZ
6092
6093
6094 eval "$ac_cv_use_splitter"
6095 if test "$no_cache" != 1; then
6096 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6097 fi
6098
6099 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6100 echo "$ac_t""yes" 1>&6
10f2d63a 6101 else
698dcdb6 6102 echo "$ac_t""no" 1>&6
10f2d63a 6103 fi
698dcdb6 6104
10f2d63a 6105
698dcdb6 6106 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
24176f2c 6107echo "configure:6108: checking for --enable-statbmp" >&5
10f2d63a
VZ
6108 no_cache=0
6109 # Check whether --enable-statbmp or --disable-statbmp was given.
6110if test "${enable_statbmp+set}" = set; then
6111 enableval="$enable_statbmp"
698dcdb6 6112
10f2d63a
VZ
6113 if test "$enableval" = yes; then
6114 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6115 else
6116 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6117 fi
698dcdb6 6118
10f2d63a 6119else
698dcdb6 6120
10f2d63a
VZ
6121 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6122 if test "x$LINE" != x ; then
6123 eval "DEFAULT_$LINE"
6124 else
6125 no_cache=1
6126 fi
6127
6128 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6129
6130fi
10f2d63a
VZ
6131
6132
6133 eval "$ac_cv_use_statbmp"
6134 if test "$no_cache" != 1; then
6135 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6136 fi
6137
6138 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6139 echo "$ac_t""yes" 1>&6
10f2d63a 6140 else
698dcdb6 6141 echo "$ac_t""no" 1>&6
10f2d63a 6142 fi
698dcdb6 6143
10f2d63a 6144
698dcdb6 6145 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
24176f2c 6146echo "configure:6147: checking for --enable-statbox" >&5
10f2d63a
VZ
6147 no_cache=0
6148 # Check whether --enable-statbox or --disable-statbox was given.
6149if test "${enable_statbox+set}" = set; then
6150 enableval="$enable_statbox"
698dcdb6 6151
10f2d63a
VZ
6152 if test "$enableval" = yes; then
6153 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6154 else
6155 ac_cv_use_statbox='wxUSE_STATBOX=no'
6156 fi
698dcdb6 6157
10f2d63a 6158else
698dcdb6 6159
10f2d63a
VZ
6160 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6161 if test "x$LINE" != x ; then
6162 eval "DEFAULT_$LINE"
6163 else
6164 no_cache=1
6165 fi
6166
6167 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6168
6169fi
10f2d63a
VZ
6170
6171
6172 eval "$ac_cv_use_statbox"
6173 if test "$no_cache" != 1; then
6174 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6175 fi
6176
6177 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6178 echo "$ac_t""yes" 1>&6
10f2d63a 6179 else
698dcdb6 6180 echo "$ac_t""no" 1>&6
10f2d63a 6181 fi
698dcdb6 6182
10f2d63a 6183
698dcdb6 6184 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
24176f2c 6185echo "configure:6186: checking for --enable-statline" >&5
10f2d63a
VZ
6186 no_cache=0
6187 # Check whether --enable-statline or --disable-statline was given.
6188if test "${enable_statline+set}" = set; then
6189 enableval="$enable_statline"
698dcdb6 6190
10f2d63a
VZ
6191 if test "$enableval" = yes; then
6192 ac_cv_use_statline='wxUSE_STATLINE=yes'
6193 else
6194 ac_cv_use_statline='wxUSE_STATLINE=no'
6195 fi
698dcdb6 6196
10f2d63a 6197else
698dcdb6 6198
10f2d63a
VZ
6199 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6200 if test "x$LINE" != x ; then
6201 eval "DEFAULT_$LINE"
6202 else
6203 no_cache=1
6204 fi
6205
6206 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6207
6208fi
10f2d63a
VZ
6209
6210
6211 eval "$ac_cv_use_statline"
6212 if test "$no_cache" != 1; then
6213 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6214 fi
6215
6216 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6217 echo "$ac_t""yes" 1>&6
10f2d63a 6218 else
698dcdb6 6219 echo "$ac_t""no" 1>&6
10f2d63a 6220 fi
698dcdb6 6221
10f2d63a 6222
1e6feb95 6223 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
24176f2c 6224echo "configure:6225: checking for --enable-stattext" >&5
1e6feb95
VZ
6225 no_cache=0
6226 # Check whether --enable-stattext or --disable-stattext was given.
6227if test "${enable_stattext+set}" = set; then
6228 enableval="$enable_stattext"
6229
6230 if test "$enableval" = yes; then
6231 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6232 else
6233 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6234 fi
6235
6236else
6237
6238 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6239 if test "x$LINE" != x ; then
6240 eval "DEFAULT_$LINE"
6241 else
6242 no_cache=1
6243 fi
6244
6245 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6246
6247fi
6248
6249
6250 eval "$ac_cv_use_stattext"
6251 if test "$no_cache" != 1; then
6252 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6253 fi
6254
6255 if test "$wxUSE_STATTEXT" = yes; then
6256 echo "$ac_t""yes" 1>&6
6257 else
6258 echo "$ac_t""no" 1>&6
6259 fi
6260
6261
698dcdb6 6262 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
24176f2c 6263echo "configure:6264: checking for --enable-statusbar" >&5
10f2d63a
VZ
6264 no_cache=0
6265 # Check whether --enable-statusbar or --disable-statusbar was given.
6266if test "${enable_statusbar+set}" = set; then
6267 enableval="$enable_statusbar"
698dcdb6 6268
10f2d63a
VZ
6269 if test "$enableval" = yes; then
6270 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6271 else
6272 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6273 fi
698dcdb6 6274
10f2d63a 6275else
698dcdb6 6276
10f2d63a
VZ
6277 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6278 if test "x$LINE" != x ; then
6279 eval "DEFAULT_$LINE"
6280 else
6281 no_cache=1
6282 fi
6283
6284 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6285
6286fi
10f2d63a
VZ
6287
6288
6289 eval "$ac_cv_use_statusbar"
6290 if test "$no_cache" != 1; then
6291 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6292 fi
6293
6294 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6295 echo "$ac_t""yes" 1>&6
10f2d63a 6296 else
698dcdb6 6297 echo "$ac_t""no" 1>&6
10f2d63a 6298 fi
698dcdb6 6299
10f2d63a 6300
698dcdb6 6301 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
24176f2c 6302echo "configure:6303: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6303 no_cache=0
6304 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6305if test "${enable_tabdialog+set}" = set; then
6306 enableval="$enable_tabdialog"
698dcdb6 6307
10f2d63a
VZ
6308 if test "$enableval" = yes; then
6309 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6310 else
6311 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6312 fi
698dcdb6 6313
10f2d63a 6314else
698dcdb6 6315
10f2d63a
VZ
6316 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6317 if test "x$LINE" != x ; then
6318 eval "DEFAULT_$LINE"
6319 else
6320 no_cache=1
6321 fi
6322
6323 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6324
6325fi
10f2d63a
VZ
6326
6327
6328 eval "$ac_cv_use_tabdialog"
6329 if test "$no_cache" != 1; then
6330 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6331 fi
6332
6333 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6334 echo "$ac_t""yes" 1>&6
10f2d63a 6335 else
698dcdb6 6336 echo "$ac_t""no" 1>&6
10f2d63a 6337 fi
698dcdb6 6338
10f2d63a 6339
1e6feb95 6340 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
24176f2c 6341echo "configure:6342: checking for --enable-textctrl" >&5
1e6feb95
VZ
6342 no_cache=0
6343 # Check whether --enable-textctrl or --disable-textctrl was given.
6344if test "${enable_textctrl+set}" = set; then
6345 enableval="$enable_textctrl"
6346
6347 if test "$enableval" = yes; then
6348 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6349 else
6350 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6351 fi
6352
6353else
6354
6355 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6356 if test "x$LINE" != x ; then
6357 eval "DEFAULT_$LINE"
6358 else
6359 no_cache=1
6360 fi
6361
6362 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6363
6364fi
6365
6366
6367 eval "$ac_cv_use_textctrl"
6368 if test "$no_cache" != 1; then
6369 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6370 fi
6371
6372 if test "$wxUSE_TEXTCTRL" = yes; then
6373 echo "$ac_t""yes" 1>&6
6374 else
6375 echo "$ac_t""no" 1>&6
6376 fi
6377
6378
698dcdb6 6379 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
24176f2c 6380echo "configure:6381: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6381 no_cache=0
6382 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6383if test "${enable_togglebtn+set}" = set; then
6384 enableval="$enable_togglebtn"
698dcdb6 6385
1db8dc4a
VZ
6386 if test "$enableval" = yes; then
6387 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6388 else
6389 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6390 fi
698dcdb6 6391
1db8dc4a 6392else
698dcdb6 6393
1db8dc4a
VZ
6394 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6395 if test "x$LINE" != x ; then
6396 eval "DEFAULT_$LINE"
6397 else
6398 no_cache=1
6399 fi
6400
6401 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6402
6403fi
1db8dc4a
VZ
6404
6405
6406 eval "$ac_cv_use_togglebtn"
6407 if test "$no_cache" != 1; then
6408 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6409 fi
6410
6411 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6412 echo "$ac_t""yes" 1>&6
1db8dc4a 6413 else
698dcdb6 6414 echo "$ac_t""no" 1>&6
1db8dc4a 6415 fi
698dcdb6 6416
1db8dc4a 6417
698dcdb6 6418 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
24176f2c 6419echo "configure:6420: checking for --enable-toolbar" >&5
10f2d63a
VZ
6420 no_cache=0
6421 # Check whether --enable-toolbar or --disable-toolbar was given.
6422if test "${enable_toolbar+set}" = set; then
6423 enableval="$enable_toolbar"
698dcdb6 6424
10f2d63a
VZ
6425 if test "$enableval" = yes; then
6426 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6427 else
6428 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6429 fi
698dcdb6 6430
10f2d63a 6431else
698dcdb6 6432
10f2d63a
VZ
6433 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6434 if test "x$LINE" != x ; then
6435 eval "DEFAULT_$LINE"
6436 else
6437 no_cache=1
6438 fi
6439
6440 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
6441
6442fi
10f2d63a
VZ
6443
6444
6445 eval "$ac_cv_use_toolbar"
6446 if test "$no_cache" != 1; then
6447 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6448 fi
6449
6450 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 6451 echo "$ac_t""yes" 1>&6
10f2d63a 6452 else
698dcdb6 6453 echo "$ac_t""no" 1>&6
10f2d63a 6454 fi
698dcdb6 6455
10f2d63a 6456
698dcdb6 6457 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
24176f2c 6458echo "configure:6459: checking for --enable-tbarnative" >&5
360d6699
VZ
6459 no_cache=0
6460 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6461if test "${enable_tbarnative+set}" = set; then
6462 enableval="$enable_tbarnative"
698dcdb6 6463
360d6699
VZ
6464 if test "$enableval" = yes; then
6465 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6466 else
6467 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6468 fi
698dcdb6 6469
360d6699 6470else
698dcdb6 6471
360d6699
VZ
6472 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6473 if test "x$LINE" != x ; then
6474 eval "DEFAULT_$LINE"
6475 else
6476 no_cache=1
6477 fi
6478
6479 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
6480
6481fi
360d6699
VZ
6482
6483
6484 eval "$ac_cv_use_tbarnative"
6485 if test "$no_cache" != 1; then
6486 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6487 fi
6488
6489 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 6490 echo "$ac_t""yes" 1>&6
360d6699 6491 else
698dcdb6 6492 echo "$ac_t""no" 1>&6
360d6699 6493 fi
698dcdb6 6494
360d6699 6495
698dcdb6 6496 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
24176f2c 6497echo "configure:6498: checking for --enable-tbarsmpl" >&5
360d6699
VZ
6498 no_cache=0
6499 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6500if test "${enable_tbarsmpl+set}" = set; then
6501 enableval="$enable_tbarsmpl"
698dcdb6 6502
360d6699
VZ
6503 if test "$enableval" = yes; then
6504 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6505 else
6506 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6507 fi
698dcdb6 6508
360d6699 6509else
698dcdb6 6510
360d6699
VZ
6511 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6512 if test "x$LINE" != x ; then
6513 eval "DEFAULT_$LINE"
6514 else
6515 no_cache=1
6516 fi
6517
6518 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
6519
6520fi
360d6699
VZ
6521
6522
6523 eval "$ac_cv_use_tbarsmpl"
6524 if test "$no_cache" != 1; then
6525 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6526 fi
6527
6528 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 6529 echo "$ac_t""yes" 1>&6
360d6699 6530 else
698dcdb6 6531 echo "$ac_t""no" 1>&6
360d6699 6532 fi
698dcdb6 6533
360d6699 6534
698dcdb6 6535 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
24176f2c 6536echo "configure:6537: checking for --enable-treectrl" >&5
10f2d63a
VZ
6537 no_cache=0
6538 # Check whether --enable-treectrl or --disable-treectrl was given.
6539if test "${enable_treectrl+set}" = set; then
6540 enableval="$enable_treectrl"
698dcdb6 6541
10f2d63a
VZ
6542 if test "$enableval" = yes; then
6543 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6544 else
6545 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6546 fi
698dcdb6 6547
10f2d63a 6548else
698dcdb6 6549
10f2d63a
VZ
6550 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6551 if test "x$LINE" != x ; then
6552 eval "DEFAULT_$LINE"
6553 else
6554 no_cache=1
6555 fi
6556
6557 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
6558
6559fi
10f2d63a
VZ
6560
6561
1e6feb95
VZ
6562 eval "$ac_cv_use_treectrl"
6563 if test "$no_cache" != 1; then
6564 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6565 fi
6566
6567 if test "$wxUSE_TREECTRL" = yes; then
6568 echo "$ac_t""yes" 1>&6
6569 else
6570 echo "$ac_t""no" 1>&6
6571 fi
6572
6573
9f41d601 6574 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
24176f2c 6575echo "configure:6576: checking for --enable-popupwin" >&5
9f41d601
RR
6576 no_cache=0
6577 # Check whether --enable-popupwin or --disable-popupwin was given.
6578if test "${enable_popupwin+set}" = set; then
6579 enableval="$enable_popupwin"
6580
6581 if test "$enableval" = yes; then
6582 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6583 else
6584 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6585 fi
6586
6587else
6588
6589 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6590 if test "x$LINE" != x ; then
6591 eval "DEFAULT_$LINE"
6592 else
6593 no_cache=1
6594 fi
6595
6596 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6597
6598fi
6599
6600
6601 eval "$ac_cv_use_popupwin"
6602 if test "$no_cache" != 1; then
6603 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6604 fi
6605
6606 if test "$wxUSE_POPUPWIN" = yes; then
6607 echo "$ac_t""yes" 1>&6
6608 else
6609 echo "$ac_t""no" 1>&6
6610 fi
6611
6612
1e6feb95
VZ
6613
6614
6615 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
24176f2c 6616echo "configure:6617: checking for --enable-commondlg" >&5
1e6feb95
VZ
6617 no_cache=0
6618 # Check whether --enable-commondlg or --disable-commondlg was given.
6619if test "${enable_commondlg+set}" = set; then
6620 enableval="$enable_commondlg"
6621
6622 if test "$enableval" = yes; then
6623 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6624 else
6625 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6626 fi
6627
6628else
6629
6630 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6631 if test "x$LINE" != x ; then
6632 eval "DEFAULT_$LINE"
6633 else
6634 no_cache=1
6635 fi
6636
6637 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6638
6639fi
6640
6641
6642 eval "$ac_cv_use_commondlg"
6643 if test "$no_cache" != 1; then
6644 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6645 fi
6646
6647 if test "$wxUSE_COMMONDLGS" = yes; then
6648 echo "$ac_t""yes" 1>&6
6649 else
6650 echo "$ac_t""no" 1>&6
6651 fi
6652
6653
6654 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
24176f2c 6655echo "configure:6656: checking for --enable-choicedlg" >&5
1e6feb95
VZ
6656 no_cache=0
6657 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6658if test "${enable_choicedlg+set}" = set; then
6659 enableval="$enable_choicedlg"
6660
6661 if test "$enableval" = yes; then
6662 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6663 else
6664 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6665 fi
6666
6667else
6668
6669 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6670 if test "x$LINE" != x ; then
6671 eval "DEFAULT_$LINE"
6672 else
6673 no_cache=1
6674 fi
6675
6676 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6677
6678fi
6679
6680
6681 eval "$ac_cv_use_choicedlg"
6682 if test "$no_cache" != 1; then
6683 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6684 fi
6685
6686 if test "$wxUSE_CHOICEDLG" = yes; then
6687 echo "$ac_t""yes" 1>&6
6688 else
6689 echo "$ac_t""no" 1>&6
6690 fi
6691
6692
6693 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
24176f2c 6694echo "configure:6695: checking for --enable-coldlg" >&5
1e6feb95
VZ
6695 no_cache=0
6696 # Check whether --enable-coldlg or --disable-coldlg was given.
6697if test "${enable_coldlg+set}" = set; then
6698 enableval="$enable_coldlg"
6699
6700 if test "$enableval" = yes; then
6701 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6702 else
6703 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6704 fi
6705
6706else
6707
6708 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6709 if test "x$LINE" != x ; then
6710 eval "DEFAULT_$LINE"
6711 else
6712 no_cache=1
6713 fi
6714
6715 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6716
6717fi
6718
6719
6720 eval "$ac_cv_use_coldlg"
6721 if test "$no_cache" != 1; then
6722 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6723 fi
6724
6725 if test "$wxUSE_COLOURDLG" = yes; then
6726 echo "$ac_t""yes" 1>&6
6727 else
6728 echo "$ac_t""no" 1>&6
6729 fi
6730
6731
6732 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
24176f2c 6733echo "configure:6734: checking for --enable-filedlg" >&5
1e6feb95
VZ
6734 no_cache=0
6735 # Check whether --enable-filedlg or --disable-filedlg was given.
6736if test "${enable_filedlg+set}" = set; then
6737 enableval="$enable_filedlg"
6738
6739 if test "$enableval" = yes; then
6740 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6741 else
6742 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6743 fi
6744
6745else
6746
6747 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6748 if test "x$LINE" != x ; then
6749 eval "DEFAULT_$LINE"
6750 else
6751 no_cache=1
6752 fi
6753
6754 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6755
6756fi
6757
6758
6759 eval "$ac_cv_use_filedlg"
6760 if test "$no_cache" != 1; then
6761 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6762 fi
6763
6764 if test "$wxUSE_FILEDLG" = yes; then
6765 echo "$ac_t""yes" 1>&6
6766 else
6767 echo "$ac_t""no" 1>&6
6768 fi
6769
6770
6771 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
24176f2c 6772echo "configure:6773: checking for --enable-fontdlg" >&5
1e6feb95
VZ
6773 no_cache=0
6774 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6775if test "${enable_fontdlg+set}" = set; then
6776 enableval="$enable_fontdlg"
6777
6778 if test "$enableval" = yes; then
6779 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6780 else
6781 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6782 fi
6783
6784else
6785
6786 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6787 if test "x$LINE" != x ; then
6788 eval "DEFAULT_$LINE"
6789 else
6790 no_cache=1
6791 fi
6792
6793 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6794
6795fi
6796
6797
6798 eval "$ac_cv_use_fontdlg"
6799 if test "$no_cache" != 1; then
6800 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6801 fi
6802
6803 if test "$wxUSE_FONTDLG" = yes; then
6804 echo "$ac_t""yes" 1>&6
6805 else
6806 echo "$ac_t""no" 1>&6
6807 fi
6808
6809
6810 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
24176f2c 6811echo "configure:6812: checking for --enable-dirdlg" >&5
1e6feb95
VZ
6812 no_cache=0
6813 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6814if test "${enable_dirdlg+set}" = set; then
6815 enableval="$enable_dirdlg"
6816
6817 if test "$enableval" = yes; then
6818 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6819 else
6820 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6821 fi
6822
6823else
6824
6825 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6826 if test "x$LINE" != x ; then
6827 eval "DEFAULT_$LINE"
6828 else
6829 no_cache=1
6830 fi
6831
6832 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6833
6834fi
6835
6836
6837 eval "$ac_cv_use_dirdlg"
10f2d63a 6838 if test "$no_cache" != 1; then
1e6feb95 6839 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6840 fi
6841
1e6feb95 6842 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 6843 echo "$ac_t""yes" 1>&6
10f2d63a 6844 else
698dcdb6 6845 echo "$ac_t""no" 1>&6
10f2d63a 6846 fi
698dcdb6
VZ
6847
6848
1e6feb95 6849 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
24176f2c 6850echo "configure:6851: checking for --enable-msgdlg" >&5
10f2d63a 6851 no_cache=0
1e6feb95
VZ
6852 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6853if test "${enable_msgdlg+set}" = set; then
6854 enableval="$enable_msgdlg"
698dcdb6 6855
10f2d63a 6856 if test "$enableval" = yes; then
1e6feb95 6857 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 6858 else
1e6feb95 6859 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 6860 fi
698dcdb6 6861
10f2d63a 6862else
698dcdb6 6863
1e6feb95 6864 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6865 if test "x$LINE" != x ; then
6866 eval "DEFAULT_$LINE"
6867 else
6868 no_cache=1
6869 fi
6870
1e6feb95 6871 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
6872
6873fi
10f2d63a
VZ
6874
6875
1e6feb95 6876 eval "$ac_cv_use_msgdlg"
10f2d63a 6877 if test "$no_cache" != 1; then
1e6feb95 6878 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6879 fi
6880
1e6feb95 6881 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 6882 echo "$ac_t""yes" 1>&6
10f2d63a 6883 else
698dcdb6 6884 echo "$ac_t""no" 1>&6
10f2d63a 6885 fi
698dcdb6 6886
10f2d63a 6887
1e6feb95 6888 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
24176f2c 6889echo "configure:6890: checking for --enable-numberdlg" >&5
10f2d63a 6890 no_cache=0
1e6feb95
VZ
6891 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6892if test "${enable_numberdlg+set}" = set; then
6893 enableval="$enable_numberdlg"
698dcdb6 6894
10f2d63a 6895 if test "$enableval" = yes; then
1e6feb95 6896 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 6897 else
1e6feb95 6898 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 6899 fi
698dcdb6 6900
10f2d63a 6901else
698dcdb6 6902
1e6feb95 6903 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6904 if test "x$LINE" != x ; then
6905 eval "DEFAULT_$LINE"
6906 else
6907 no_cache=1
6908 fi
6909
1e6feb95 6910 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
6911
6912fi
10f2d63a
VZ
6913
6914
1e6feb95 6915 eval "$ac_cv_use_numberdlg"
10f2d63a 6916 if test "$no_cache" != 1; then
1e6feb95 6917 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6918 fi
6919
1e6feb95 6920 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 6921 echo "$ac_t""yes" 1>&6
10f2d63a 6922 else
698dcdb6 6923 echo "$ac_t""no" 1>&6
10f2d63a 6924 fi
698dcdb6 6925
10f2d63a 6926
698dcdb6 6927 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
24176f2c 6928echo "configure:6929: checking for --enable-textdlg" >&5
10f2d63a
VZ
6929 no_cache=0
6930 # Check whether --enable-textdlg or --disable-textdlg was given.
6931if test "${enable_textdlg+set}" = set; then
6932 enableval="$enable_textdlg"
698dcdb6 6933
10f2d63a
VZ
6934 if test "$enableval" = yes; then
6935 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6936 else
6937 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6938 fi
698dcdb6 6939
10f2d63a 6940else
698dcdb6 6941
10f2d63a
VZ
6942 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6943 if test "x$LINE" != x ; then
6944 eval "DEFAULT_$LINE"
6945 else
6946 no_cache=1
6947 fi
6948
6949 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
6950
6951fi
10f2d63a
VZ
6952
6953
6954 eval "$ac_cv_use_textdlg"
6955 if test "$no_cache" != 1; then
6956 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
6957 fi
6958
6959 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 6960 echo "$ac_t""yes" 1>&6
10f2d63a 6961 else
698dcdb6 6962 echo "$ac_t""no" 1>&6
10f2d63a 6963 fi
698dcdb6 6964
10f2d63a 6965
698dcdb6 6966 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
24176f2c 6967echo "configure:6968: checking for --enable-tipdlg" >&5
10f2d63a
VZ
6968 no_cache=0
6969 # Check whether --enable-tipdlg or --disable-tipdlg was given.
6970if test "${enable_tipdlg+set}" = set; then
6971 enableval="$enable_tipdlg"
698dcdb6 6972
10f2d63a
VZ
6973 if test "$enableval" = yes; then
6974 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
6975 else
6976 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
6977 fi
698dcdb6 6978
10f2d63a 6979else
698dcdb6 6980
10f2d63a
VZ
6981 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
6982 if test "x$LINE" != x ; then
6983 eval "DEFAULT_$LINE"
6984 else
6985 no_cache=1
6986 fi
6987
6988 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
6989
6990fi
10f2d63a
VZ
6991
6992
6993 eval "$ac_cv_use_tipdlg"
6994 if test "$no_cache" != 1; then
6995 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
6996 fi
6997
6998 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 6999 echo "$ac_t""yes" 1>&6
10f2d63a 7000 else
698dcdb6 7001 echo "$ac_t""no" 1>&6
10f2d63a 7002 fi
698dcdb6 7003
10f2d63a 7004
698dcdb6 7005 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
24176f2c 7006echo "configure:7007: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7007 no_cache=0
7008 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7009if test "${enable_progressdlg+set}" = set; then
7010 enableval="$enable_progressdlg"
698dcdb6 7011
10f2d63a
VZ
7012 if test "$enableval" = yes; then
7013 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7014 else
7015 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7016 fi
698dcdb6 7017
10f2d63a 7018else
698dcdb6 7019
10f2d63a
VZ
7020 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7021 if test "x$LINE" != x ; then
7022 eval "DEFAULT_$LINE"
7023 else
7024 no_cache=1
7025 fi
7026
7027 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7028
7029fi
10f2d63a
VZ
7030
7031
7032 eval "$ac_cv_use_progressdlg"
7033 if test "$no_cache" != 1; then
7034 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7035 fi
7036
7037 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7038 echo "$ac_t""yes" 1>&6
10f2d63a 7039 else
698dcdb6 7040 echo "$ac_t""no" 1>&6
10f2d63a 7041 fi
698dcdb6 7042
10f2d63a 7043
b1f5d087 7044 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
24176f2c 7045echo "configure:7046: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7046 no_cache=0
7047 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7048if test "${enable_wizarddlg+set}" = set; then
7049 enableval="$enable_wizarddlg"
7050
7051 if test "$enableval" = yes; then
7052 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7053 else
7054 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7055 fi
7056
7057else
7058
7059 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7060 if test "x$LINE" != x ; then
7061 eval "DEFAULT_$LINE"
7062 else
7063 no_cache=1
7064 fi
7065
7066 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7067
7068fi
7069
7070
7071 eval "$ac_cv_use_wizarddlg"
7072 if test "$no_cache" != 1; then
7073 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7074 fi
7075
7076 if test "$wxUSE_WIZARDDLG" = yes; then
7077 echo "$ac_t""yes" 1>&6
7078 else
7079 echo "$ac_t""no" 1>&6
7080 fi
7081
7082
7083
7084
1e6feb95 7085 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
24176f2c 7086echo "configure:7087: checking for --enable-menus" >&5
1e6feb95
VZ
7087 no_cache=0
7088 # Check whether --enable-menus or --disable-menus was given.
7089if test "${enable_menus+set}" = set; then
7090 enableval="$enable_menus"
7091
7092 if test "$enableval" = yes; then
7093 ac_cv_use_menus='wxUSE_MENUS=yes'
7094 else
7095 ac_cv_use_menus='wxUSE_MENUS=no'
7096 fi
7097
7098else
7099
7100 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7101 if test "x$LINE" != x ; then
7102 eval "DEFAULT_$LINE"
7103 else
7104 no_cache=1
7105 fi
7106
7107 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7108
7109fi
7110
7111
7112 eval "$ac_cv_use_menus"
7113 if test "$no_cache" != 1; then
7114 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7115 fi
7116
7117 if test "$wxUSE_MENUS" = yes; then
7118 echo "$ac_t""yes" 1>&6
7119 else
7120 echo "$ac_t""no" 1>&6
7121 fi
7122
7123
698dcdb6 7124 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
24176f2c 7125echo "configure:7126: checking for --enable-miniframe" >&5
10f2d63a
VZ
7126 no_cache=0
7127 # Check whether --enable-miniframe or --disable-miniframe was given.
7128if test "${enable_miniframe+set}" = set; then
7129 enableval="$enable_miniframe"
698dcdb6 7130
10f2d63a
VZ
7131 if test "$enableval" = yes; then
7132 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7133 else
7134 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7135 fi
698dcdb6 7136
10f2d63a 7137else
698dcdb6 7138
10f2d63a
VZ
7139 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7140 if test "x$LINE" != x ; then
7141 eval "DEFAULT_$LINE"
7142 else
7143 no_cache=1
7144 fi
7145
7146 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7147
7148fi
10f2d63a
VZ
7149
7150
7151 eval "$ac_cv_use_miniframe"
7152 if test "$no_cache" != 1; then
7153 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7154 fi
7155
7156 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7157 echo "$ac_t""yes" 1>&6
10f2d63a 7158 else
698dcdb6 7159 echo "$ac_t""no" 1>&6
10f2d63a 7160 fi
698dcdb6 7161
10f2d63a 7162
698dcdb6 7163 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
24176f2c 7164echo "configure:7165: checking for --enable-tooltips" >&5
10f2d63a
VZ
7165 no_cache=0
7166 # Check whether --enable-tooltips or --disable-tooltips was given.
7167if test "${enable_tooltips+set}" = set; then
7168 enableval="$enable_tooltips"
698dcdb6 7169
10f2d63a
VZ
7170 if test "$enableval" = yes; then
7171 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7172 else
7173 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7174 fi
698dcdb6 7175
10f2d63a 7176else
698dcdb6 7177
10f2d63a
VZ
7178 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7179 if test "x$LINE" != x ; then
7180 eval "DEFAULT_$LINE"
7181 else
7182 no_cache=1
7183 fi
7184
7185 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7186
7187fi
10f2d63a
VZ
7188
7189
7190 eval "$ac_cv_use_tooltips"
7191 if test "$no_cache" != 1; then
7192 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7193 fi
7194
7195 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7196 echo "$ac_t""yes" 1>&6
10f2d63a 7197 else
698dcdb6 7198 echo "$ac_t""no" 1>&6
10f2d63a 7199 fi
698dcdb6 7200
10f2d63a 7201
698dcdb6 7202 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
24176f2c 7203echo "configure:7204: checking for --enable-splines" >&5
10f2d63a
VZ
7204 no_cache=0
7205 # Check whether --enable-splines or --disable-splines was given.
7206if test "${enable_splines+set}" = set; then
7207 enableval="$enable_splines"
698dcdb6 7208
10f2d63a
VZ
7209 if test "$enableval" = yes; then
7210 ac_cv_use_splines='wxUSE_SPLINES=yes'
7211 else
7212 ac_cv_use_splines='wxUSE_SPLINES=no'
7213 fi
698dcdb6 7214
10f2d63a 7215else
698dcdb6 7216
10f2d63a
VZ
7217 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7218 if test "x$LINE" != x ; then
7219 eval "DEFAULT_$LINE"
7220 else
7221 no_cache=1
7222 fi
7223
7224 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7225
7226fi
10f2d63a
VZ
7227
7228
7229 eval "$ac_cv_use_splines"
7230 if test "$no_cache" != 1; then
7231 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7232 fi
7233
7234 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7235 echo "$ac_t""yes" 1>&6
10f2d63a 7236 else
698dcdb6 7237 echo "$ac_t""no" 1>&6
10f2d63a 7238 fi
698dcdb6 7239
10f2d63a 7240
698dcdb6 7241 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
24176f2c 7242echo "configure:7243: checking for --enable-validators" >&5
10f2d63a
VZ
7243 no_cache=0
7244 # Check whether --enable-validators or --disable-validators was given.
7245if test "${enable_validators+set}" = set; then
7246 enableval="$enable_validators"
698dcdb6 7247
10f2d63a
VZ
7248 if test "$enableval" = yes; then
7249 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7250 else
7251 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7252 fi
698dcdb6 7253
10f2d63a 7254else
698dcdb6 7255
10f2d63a
VZ
7256 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7257 if test "x$LINE" != x ; then
7258 eval "DEFAULT_$LINE"
7259 else
7260 no_cache=1
7261 fi
7262
7263 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7264
7265fi
10f2d63a
VZ
7266
7267
7268 eval "$ac_cv_use_validators"
7269 if test "$no_cache" != 1; then
7270 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7271 fi
7272
7273 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7274 echo "$ac_t""yes" 1>&6
10f2d63a 7275 else
698dcdb6 7276 echo "$ac_t""no" 1>&6
10f2d63a 7277 fi
698dcdb6 7278
10f2d63a 7279
698dcdb6 7280 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
24176f2c 7281echo "configure:7282: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7282 no_cache=0
7283 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7284if test "${enable_busyinfo+set}" = set; then
7285 enableval="$enable_busyinfo"
698dcdb6 7286
10f2d63a
VZ
7287 if test "$enableval" = yes; then
7288 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7289 else
7290 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7291 fi
698dcdb6 7292
10f2d63a 7293else
698dcdb6 7294
10f2d63a
VZ
7295 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7296 if test "x$LINE" != x ; then
7297 eval "DEFAULT_$LINE"
7298 else
7299 no_cache=1
7300 fi
7301
7302 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
7303
7304fi
10f2d63a
VZ
7305
7306
7307 eval "$ac_cv_use_busyinfo"
7308 if test "$no_cache" != 1; then
7309 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7310 fi
7311
7312 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 7313 echo "$ac_t""yes" 1>&6
10f2d63a 7314 else
698dcdb6 7315 echo "$ac_t""no" 1>&6
10f2d63a 7316 fi
698dcdb6 7317
10f2d63a 7318
698dcdb6 7319 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
24176f2c 7320echo "configure:7321: checking for --enable-joystick" >&5
f6bcfd97
BP
7321 no_cache=0
7322 # Check whether --enable-joystick or --disable-joystick was given.
7323if test "${enable_joystick+set}" = set; then
7324 enableval="$enable_joystick"
698dcdb6 7325
f6bcfd97
BP
7326 if test "$enableval" = yes; then
7327 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7328 else
7329 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7330 fi
698dcdb6 7331
f6bcfd97 7332else
698dcdb6 7333
f6bcfd97
BP
7334 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7335 if test "x$LINE" != x ; then
7336 eval "DEFAULT_$LINE"
7337 else
7338 no_cache=1
7339 fi
7340
7341 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
7342
7343fi
f6bcfd97
BP
7344
7345
7346 eval "$ac_cv_use_joystick"
7347 if test "$no_cache" != 1; then
7348 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7349 fi
7350
7351 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 7352 echo "$ac_t""yes" 1>&6
f6bcfd97 7353 else
698dcdb6 7354 echo "$ac_t""no" 1>&6
f6bcfd97 7355 fi
698dcdb6
VZ
7356
7357
1e6feb95 7358 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
24176f2c 7359echo "configure:7360: checking for --enable-metafile" >&5
1e6feb95
VZ
7360 no_cache=0
7361 # Check whether --enable-metafile or --disable-metafile was given.
7362if test "${enable_metafile+set}" = set; then
7363 enableval="$enable_metafile"
7364
7365 if test "$enableval" = yes; then
7366 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7367 else
7368 ac_cv_use_metafile='wxUSE_METAFILE=no'
7369 fi
7370
7371else
7372
7373 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7374 if test "x$LINE" != x ; then
7375 eval "DEFAULT_$LINE"
7376 else
7377 no_cache=1
7378 fi
7379
7380 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7381
7382fi
7383
7384
7385 eval "$ac_cv_use_metafile"
7386 if test "$no_cache" != 1; then
7387 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7388 fi
7389
7390 if test "$wxUSE_METAFILE" = yes; then
7391 echo "$ac_t""yes" 1>&6
7392 else
7393 echo "$ac_t""no" 1>&6
7394 fi
7395
7396
24fd6d87 7397 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
24176f2c 7398echo "configure:7399: checking for --enable-dragimage" >&5
24fd6d87
VZ
7399 no_cache=0
7400 # Check whether --enable-dragimage or --disable-dragimage was given.
7401if test "${enable_dragimage+set}" = set; then
7402 enableval="$enable_dragimage"
7403
7404 if test "$enableval" = yes; then
7405 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7406 else
7407 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7408 fi
7409
7410else
7411
7412 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7413 if test "x$LINE" != x ; then
7414 eval "DEFAULT_$LINE"
7415 else
7416 no_cache=1
7417 fi
7418
7419 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7420
7421fi
7422
7423
7424 eval "$ac_cv_use_dragimage"
7425 if test "$no_cache" != 1; then
7426 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7427 fi
7428
7429 if test "$wxUSE_DRAGIMAGE" = yes; then
7430 echo "$ac_t""yes" 1>&6
7431 else
7432 echo "$ac_t""no" 1>&6
7433 fi
7434
7435
10f2d63a 7436
698dcdb6
VZ
7437
7438 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
24176f2c 7439echo "configure:7440: checking for --enable-image" >&5
0046ff7c
VS
7440 no_cache=0
7441 # Check whether --enable-image or --disable-image was given.
7442if test "${enable_image+set}" = set; then
7443 enableval="$enable_image"
698dcdb6 7444
0046ff7c
VS
7445 if test "$enableval" = yes; then
7446 ac_cv_use_image='wxUSE_IMAGE=yes'
7447 else
7448 ac_cv_use_image='wxUSE_IMAGE=no'
7449 fi
698dcdb6 7450
0046ff7c 7451else
698dcdb6 7452
0046ff7c
VS
7453 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7454 if test "x$LINE" != x ; then
7455 eval "DEFAULT_$LINE"
7456 else
7457 no_cache=1
7458 fi
7459
7460 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
7461
7462fi
0046ff7c
VS
7463
7464
7465 eval "$ac_cv_use_image"
7466 if test "$no_cache" != 1; then
7467 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7468 fi
7469
7470 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 7471 echo "$ac_t""yes" 1>&6
0046ff7c 7472 else
698dcdb6 7473 echo "$ac_t""no" 1>&6
0046ff7c 7474 fi
698dcdb6 7475
0046ff7c 7476
698dcdb6 7477 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
24176f2c 7478echo "configure:7479: checking for --enable-gif" >&5
10f2d63a
VZ
7479 no_cache=0
7480 # Check whether --enable-gif or --disable-gif was given.
7481if test "${enable_gif+set}" = set; then
7482 enableval="$enable_gif"
698dcdb6 7483
10f2d63a
VZ
7484 if test "$enableval" = yes; then
7485 ac_cv_use_gif='wxUSE_GIF=yes'
7486 else
7487 ac_cv_use_gif='wxUSE_GIF=no'
7488 fi
698dcdb6 7489
10f2d63a 7490else
698dcdb6 7491
10f2d63a
VZ
7492 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7493 if test "x$LINE" != x ; then
7494 eval "DEFAULT_$LINE"
7495 else
7496 no_cache=1
7497 fi
7498
7499 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
7500
7501fi
10f2d63a
VZ
7502
7503
7504 eval "$ac_cv_use_gif"
7505 if test "$no_cache" != 1; then
7506 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7507 fi
7508
7509 if test "$wxUSE_GIF" = yes; then
698dcdb6 7510 echo "$ac_t""yes" 1>&6
10f2d63a 7511 else
698dcdb6 7512 echo "$ac_t""no" 1>&6
10f2d63a 7513 fi
698dcdb6 7514
10f2d63a 7515
698dcdb6 7516 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
24176f2c 7517echo "configure:7518: checking for --enable-pcx" >&5
10f2d63a
VZ
7518 no_cache=0
7519 # Check whether --enable-pcx or --disable-pcx was given.
7520if test "${enable_pcx+set}" = set; then
7521 enableval="$enable_pcx"
698dcdb6 7522
10f2d63a
VZ
7523 if test "$enableval" = yes; then
7524 ac_cv_use_pcx='wxUSE_PCX=yes'
7525 else
7526 ac_cv_use_pcx='wxUSE_PCX=no'
7527 fi
698dcdb6 7528
10f2d63a 7529else
698dcdb6 7530
10f2d63a
VZ
7531 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7532 if test "x$LINE" != x ; then
7533 eval "DEFAULT_$LINE"
7534 else
7535 no_cache=1
7536 fi
7537
7538 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
7539
7540fi
10f2d63a
VZ
7541
7542
7543 eval "$ac_cv_use_pcx"
7544 if test "$no_cache" != 1; then
7545 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7546 fi
7547
7548 if test "$wxUSE_PCX" = yes; then
698dcdb6 7549 echo "$ac_t""yes" 1>&6
10f2d63a 7550 else
698dcdb6 7551 echo "$ac_t""no" 1>&6
10f2d63a 7552 fi
698dcdb6 7553
10f2d63a 7554
698dcdb6 7555 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
24176f2c 7556echo "configure:7557: checking for --enable-pnm" >&5
10f2d63a
VZ
7557 no_cache=0
7558 # Check whether --enable-pnm or --disable-pnm was given.
7559if test "${enable_pnm+set}" = set; then
7560 enableval="$enable_pnm"
698dcdb6 7561
10f2d63a
VZ
7562 if test "$enableval" = yes; then
7563 ac_cv_use_pnm='wxUSE_PNM=yes'
7564 else
7565 ac_cv_use_pnm='wxUSE_PNM=no'
7566 fi
698dcdb6 7567
10f2d63a 7568else
698dcdb6 7569
10f2d63a
VZ
7570 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7571 if test "x$LINE" != x ; then
7572 eval "DEFAULT_$LINE"
7573 else
7574 no_cache=1
7575 fi
7576
7577 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
7578
7579fi
10f2d63a
VZ
7580
7581
7582 eval "$ac_cv_use_pnm"
7583 if test "$no_cache" != 1; then
7584 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7585 fi
7586
7587 if test "$wxUSE_PNM" = yes; then
698dcdb6 7588 echo "$ac_t""yes" 1>&6
10f2d63a 7589 else
698dcdb6 7590 echo "$ac_t""no" 1>&6
10f2d63a 7591 fi
698dcdb6 7592
10f2d63a 7593
698dcdb6 7594 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
24176f2c 7595echo "configure:7596: checking for --enable-pnm" >&5
0046ff7c
VS
7596 no_cache=0
7597 # Check whether --enable-pnm or --disable-pnm was given.
7598if test "${enable_pnm+set}" = set; then
7599 enableval="$enable_pnm"
698dcdb6 7600
0046ff7c
VS
7601 if test "$enableval" = yes; then
7602 ac_cv_use_pnm='wxUSE_XPM=yes'
7603 else
7604 ac_cv_use_pnm='wxUSE_XPM=no'
7605 fi
698dcdb6 7606
0046ff7c 7607else
698dcdb6 7608
0046ff7c
VS
7609 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7610 if test "x$LINE" != x ; then
7611 eval "DEFAULT_$LINE"
7612 else
7613 no_cache=1
7614 fi
7615
7616 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
7617
7618fi
0046ff7c
VS
7619
7620
7621 eval "$ac_cv_use_pnm"
7622 if test "$no_cache" != 1; then
7623 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7624 fi
7625
7626 if test "$wxUSE_XPM" = yes; then
698dcdb6 7627 echo "$ac_t""yes" 1>&6
0046ff7c 7628 else
698dcdb6 7629 echo "$ac_t""no" 1>&6
0046ff7c 7630 fi
698dcdb6 7631
0046ff7c 7632
b12915c1
VZ
7633fi
7634
698dcdb6 7635
10f2d63a
VZ
7636 echo "saving argument cache $wx_arg_cache_file"
7637 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 7638
10f2d63a 7639
698dcdb6
VZ
7640
7641echo $ac_n "checking for toolkit""... $ac_c" 1>&6
24176f2c 7642echo "configure:7643: checking for toolkit" >&5
10f2d63a
VZ
7643
7644if test "$wxUSE_GUI" = "yes"; then
7645
b12915c1 7646if test "$USE_BEOS" = 1; then
698dcdb6 7647 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
b12915c1
VZ
7648fi
7649
10f2d63a
VZ
7650if test "$TOOLKIT_GIVEN" = 1; then
7651 for toolkit in `echo $ALL_TOOLKITS`; do
7652 var=wxUSE_$toolkit
7653 eval "value=\$${var}"
7654 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7655 done
7656else
7657 for toolkit in `echo $ALL_TOOLKITS`; do
7658 if test "$has_toolkit_in_cache" != 1; then
7659 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7660 else
7661 var=DEFAULT_wxUSE_$toolkit
7662 fi
7663 eval "wxUSE_$toolkit=\$${var}"
7664 done
7665fi
7666
1e6feb95 7667NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}`
cf27ef00 7668
ec14dd32
VZ
7669case "${host}" in
7670 *-pc-os2_emx )
7671 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7672 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7673 LEX_STEM="lexyy"
7674 ;;
7675 *)
7676 PATH_IFS=':'
7677 LEX_STEM="lex.yy"
7678 ;;
7679esac
10f2d63a
VZ
7680
7681case "$NUM_TOOLKITS" in
7682 1)
7683 ;;
7684 0)
698dcdb6 7685 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
10f2d63a
VZ
7686 ;;
7687 *)
698dcdb6 7688 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
10f2d63a
VZ
7689esac
7690
7691for toolkit in `echo $ALL_TOOLKITS`; do
7692 var=wxUSE_$toolkit
7693 eval "value=\$${var}"
7694 if test "x$value" != x; then
7695 cache_var=CACHE_$toolkit
7696 eval "cache=\$${cache_var}"
7697 if test "$cache" = 1; then
7698 echo "$var=$value" >> ${wx_arg_cache_file}
7699 fi
7700 if test "$value" = 1; then
8168de4c
VZ
7701 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7702 echo "$ac_t""$toolkit_echo" 1>&6
10f2d63a
VZ
7703 fi
7704 fi
7705done
7706
7707else
cf27ef00 7708 PATH_IFS=':'
698dcdb6 7709 echo "$ac_t""base only" 1>&6
10f2d63a
VZ
7710fi
7711
698dcdb6
VZ
7712
7713cat > confcache <<\EOF
10f2d63a
VZ
7714# This file is a shell script that caches the results of configure
7715# tests run on this system so they can be shared between configure
698dcdb6
VZ
7716# scripts and configure runs. It is not useful on other systems.
7717# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 7718#
698dcdb6
VZ
7719# By default, configure uses ./config.cache as the cache file,
7720# creating it if it does not exist already. You can give configure
7721# the --cache-file=FILE option to use a different cache file; that is
7722# what configure does when it calls configure scripts in
7723# subdirectories, so they share the cache.
7724# Giving --cache-file=/dev/null disables caching, for debugging configure.
7725# config.status only pays attention to the cache file if you give it the
7726# --recheck option to rerun configure.
10f2d63a 7727#
698dcdb6 7728EOF
10f2d63a
VZ
7729# The following way of writing the cache mishandles newlines in values,
7730# but we know of no workaround that is simple, portable, and efficient.
7731# So, don't put newlines in cache variables' values.
7732# Ultrix sh set writes to stderr and can't be redirected directly,
7733# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
7734(set) 2>&1 |
7735 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7736 *ac_space=\ *)
7737 # `set' does not quote correctly, so add quotes (double-quote substitution
7738 # turns \\\\ into \\, and sed turns \\ into \).
7739 sed -n \
7740 -e "s/'/'\\\\''/g" \
7741 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7742 ;;
7743 *)
7744 # `set' quotes correctly as required by POSIX, so do not add quotes.
7745 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7746 ;;
7747 esac >> confcache
7748if cmp -s $cache_file confcache; then
7749 :
7750else
10f2d63a 7751 if test -w $cache_file; then
698dcdb6
VZ
7752 echo "updating cache $cache_file"
7753 cat confcache > $cache_file
10f2d63a
VZ
7754 else
7755 echo "not updating unwritable cache $cache_file"
7756 fi
7757fi
7758rm -f confcache
7759
698dcdb6 7760
e59890c3 7761if test "$build" != "$host" ; then
10f2d63a
VZ
7762 CC=$host_alias-gcc
7763 CXX=$host_alias-c++
7764 AR=$host_alias-ar
7765 RANLIB=$host_alias-ranlib
7766 DLLTOOL=$host_alias-dlltool
32832908 7767 RESCOMP=$host_alias-windres
10f2d63a
VZ
7768 LD=$host_alias-ld
7769 NM=$host_alias-nm
7770 STRIP=$host_alias-strip
10f2d63a
VZ
7771fi
7772
698dcdb6 7773# Extract the first word of "gcc", so it can be a program name with args.
1e487827 7774set dummy gcc; ac_word=$2
698dcdb6 7775echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
24176f2c 7776echo "configure:7777: checking for $ac_word" >&5
698dcdb6
VZ
7777if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7778 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
7779else
7780 if test -n "$CC"; then
7781 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 7782else
698dcdb6
VZ
7783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7784 ac_dummy="$PATH"
7785 for ac_dir in $ac_dummy; do
7786 test -z "$ac_dir" && ac_dir=.
7787 if test -f $ac_dir/$ac_word; then
7788 ac_cv_prog_CC="gcc"
7789 break
7790 fi
7791 done
7792 IFS="$ac_save_ifs"
10f2d63a 7793fi
6232543b 7794fi
698dcdb6 7795CC="$ac_cv_prog_CC"
6232543b 7796if test -n "$CC"; then
698dcdb6 7797 echo "$ac_t""$CC" 1>&6
1e487827 7798else
698dcdb6 7799 echo "$ac_t""no" 1>&6
1e487827 7800fi
6232543b 7801
1e487827
VS
7802if test -z "$CC"; then
7803 # Extract the first word of "cc", so it can be a program name with args.
7804set dummy cc; ac_word=$2
698dcdb6 7805echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
24176f2c 7806echo "configure:7807: checking for $ac_word" >&5
698dcdb6
VZ
7807if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7808 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7809else
7810 if test -n "$CC"; then
7811 ac_cv_prog_CC="$CC" # Let the user override the test.
7812else
698dcdb6 7813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 7814 ac_prog_rejected=no
698dcdb6
VZ
7815 ac_dummy="$PATH"
7816 for ac_dir in $ac_dummy; do
7817 test -z "$ac_dir" && ac_dir=.
7818 if test -f $ac_dir/$ac_word; then
7819 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7820 ac_prog_rejected=yes
7821 continue
7822 fi
7823 ac_cv_prog_CC="cc"
7824 break
7825 fi
7826 done
7827 IFS="$ac_save_ifs"
1e487827
VS
7828if test $ac_prog_rejected = yes; then
7829 # We found a bogon in the path, so make sure we never use it.
7830 set dummy $ac_cv_prog_CC
7831 shift
698dcdb6 7832 if test $# -gt 0; then
1e487827
VS
7833 # We chose a different compiler from the bogus one.
7834 # However, it has the same basename, so the bogon will be chosen
7835 # first if we set CC to just the basename; use the full file name.
7836 shift
698dcdb6 7837 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
7838 shift
7839 ac_cv_prog_CC="$@"
703e0a69 7840 fi
1e487827
VS
7841fi
7842fi
7843fi
698dcdb6 7844CC="$ac_cv_prog_CC"
1e487827 7845if test -n "$CC"; then
698dcdb6 7846 echo "$ac_t""$CC" 1>&6
703e0a69 7847else
698dcdb6 7848 echo "$ac_t""no" 1>&6
703e0a69 7849fi
1e487827 7850
698dcdb6
VZ
7851 if test -z "$CC"; then
7852 case "`uname -s`" in
7853 *win32* | *WIN32*)
7854 # Extract the first word of "cl", so it can be a program name with args.
7855set dummy cl; ac_word=$2
7856echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
24176f2c 7857echo "configure:7858: checking for $ac_word" >&5
698dcdb6
VZ
7858if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7859 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7860else
7861 if test -n "$CC"; then
7862 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 7863else
698dcdb6
VZ
7864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7865 ac_dummy="$PATH"
7866 for ac_dir in $ac_dummy; do
7867 test -z "$ac_dir" && ac_dir=.
7868 if test -f $ac_dir/$ac_word; then
7869 ac_cv_prog_CC="cl"
7870 break
7871 fi
7872 done
7873 IFS="$ac_save_ifs"
703e0a69 7874fi
1e487827 7875fi
698dcdb6 7876CC="$ac_cv_prog_CC"
1e487827 7877if test -n "$CC"; then
698dcdb6 7878 echo "$ac_t""$CC" 1>&6
1e487827 7879else
698dcdb6 7880 echo "$ac_t""no" 1>&6
1e487827 7881fi
698dcdb6
VZ
7882 ;;
7883 esac
7884 fi
7885 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
7886fi
7887
698dcdb6 7888echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
24176f2c 7889echo "configure:7890: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 7890
698dcdb6
VZ
7891ac_ext=c
7892# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7893ac_cpp='$CPP $CPPFLAGS'
7894ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7895ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7896cross_compiling=$ac_cv_prog_cc_cross
6232543b 7897
698dcdb6 7898cat > conftest.$ac_ext << EOF
1e487827 7899
24176f2c 7900#line 7901 "configure"
1e487827
VS
7901#include "confdefs.h"
7902
698dcdb6
VZ
7903main(){return(0);}
7904EOF
24176f2c 7905if { (eval echo configure:7906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
7906 ac_cv_prog_cc_works=yes
7907 # If we can't run a trivial program, we are probably using a cross compiler.
7908 if (./conftest; exit) 2>/dev/null; then
7909 ac_cv_prog_cc_cross=no
7910 else
7911 ac_cv_prog_cc_cross=yes
7912 fi
7913else
7914 echo "configure: failed program was:" >&5
7915 cat conftest.$ac_ext >&5
7916 ac_cv_prog_cc_works=no
7917fi
7918rm -fr conftest*
7919ac_ext=c
7920# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7921ac_cpp='$CPP $CPPFLAGS'
7922ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7923ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7924cross_compiling=$ac_cv_prog_cc_cross
7925
7926echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
7927if test $ac_cv_prog_cc_works = no; then
7928 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
7929fi
7930echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
24176f2c 7931echo "configure:7932: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
7932echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
7933cross_compiling=$ac_cv_prog_cc_cross
7934
7935echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
24176f2c 7936echo "configure:7937: checking whether we are using GNU C" >&5
698dcdb6
VZ
7937if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
7938 echo $ac_n "(cached) $ac_c" 1>&6
7939else
7940 cat > conftest.c <<EOF
7941#ifdef __GNUC__
7942 yes;
1e487827 7943#endif
698dcdb6 7944EOF
24176f2c 7945if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
7946 ac_cv_prog_gcc=yes
7947else
7948 ac_cv_prog_gcc=no
7949fi
7950fi
1e487827 7951
698dcdb6 7952echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 7953
698dcdb6
VZ
7954if test $ac_cv_prog_gcc = yes; then
7955 GCC=yes
7956else
7957 GCC=
7958fi
1e487827 7959
698dcdb6
VZ
7960ac_test_CFLAGS="${CFLAGS+set}"
7961ac_save_CFLAGS="$CFLAGS"
7962CFLAGS=
7963echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
24176f2c 7964echo "configure:7965: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
7965if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
7966 echo $ac_n "(cached) $ac_c" 1>&6
7967else
7968 echo 'void f(){}' > conftest.c
7969if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
7970 ac_cv_prog_cc_g=yes
7971else
698dcdb6 7972 ac_cv_prog_cc_g=no
10f2d63a 7973fi
698dcdb6
VZ
7974rm -f conftest*
7975
10f2d63a 7976fi
698dcdb6
VZ
7977
7978echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 7979if test "$ac_test_CFLAGS" = set; then
698dcdb6 7980 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
7981elif test $ac_cv_prog_cc_g = yes; then
7982 if test "$GCC" = yes; then
7983 CFLAGS="-g -O2"
7984 else
7985 CFLAGS="-g"
7986 fi
7987else
7988 if test "$GCC" = yes; then
7989 CFLAGS="-O2"
7990 else
7991 CFLAGS=
7992 fi
7993fi
7994
7995
7996CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
7997
698dcdb6 7998echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
24176f2c 7999echo "configure:8000: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8000# On Suns, sometimes $CPP names a directory.
8001if test -n "$CPP" && test -d "$CPP"; then
8002 CPP=
8003fi
8004if test -z "$CPP"; then
698dcdb6
VZ
8005if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8006 echo $ac_n "(cached) $ac_c" 1>&6
8007else
8008 # This must be in double quotes, not single quotes, because CPP may get
8009 # substituted into the Makefile and "${CC-cc}" will confuse make.
8010 CPP="${CC-cc} -E"
10f2d63a 8011 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8012 # not just through cpp.
8013 cat > conftest.$ac_ext <<EOF
24176f2c 8014#line 8015 "configure"
10f2d63a
VZ
8015#include "confdefs.h"
8016#include <assert.h>
698dcdb6
VZ
8017Syntax Error
8018EOF
8019ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24176f2c 8020{ (eval echo configure:8021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8021ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8022if test -z "$ac_err"; then
10f2d63a
VZ
8023 :
8024else
698dcdb6
VZ
8025 echo "$ac_err" >&5
8026 echo "configure: failed program was:" >&5
10f2d63a 8027 cat conftest.$ac_ext >&5
698dcdb6
VZ
8028 rm -rf conftest*
8029 CPP="${CC-cc} -E -traditional-cpp"
8030 cat > conftest.$ac_ext <<EOF
24176f2c 8031#line 8032 "configure"
10f2d63a 8032#include "confdefs.h"
698dcdb6
VZ
8033#include <assert.h>
8034Syntax Error
8035EOF
8036ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24176f2c 8037{ (eval echo configure:8038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8038ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8039if test -z "$ac_err"; then
8040 :
10f2d63a 8041else
698dcdb6
VZ
8042 echo "$ac_err" >&5
8043 echo "configure: failed program was:" >&5
10f2d63a 8044 cat conftest.$ac_ext >&5
698dcdb6
VZ
8045 rm -rf conftest*
8046 CPP="${CC-cc} -nologo -E"
8047 cat > conftest.$ac_ext <<EOF
24176f2c 8048#line 8049 "configure"
10f2d63a
VZ
8049#include "confdefs.h"
8050#include <assert.h>
698dcdb6
VZ
8051Syntax Error
8052EOF
8053ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24176f2c 8054{ (eval echo configure:8055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8055ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8056if test -z "$ac_err"; then
10f2d63a
VZ
8057 :
8058else
698dcdb6
VZ
8059 echo "$ac_err" >&5
8060 echo "configure: failed program was:" >&5
10f2d63a 8061 cat conftest.$ac_ext >&5
698dcdb6
VZ
8062 rm -rf conftest*
8063 CPP=/lib/cpp
10f2d63a 8064fi
698dcdb6 8065rm -f conftest*
10f2d63a 8066fi
698dcdb6 8067rm -f conftest*
703e0a69 8068fi
698dcdb6
VZ
8069rm -f conftest*
8070 ac_cv_prog_CPP="$CPP"
8071fi
8072 CPP="$ac_cv_prog_CPP"
10f2d63a 8073else
698dcdb6 8074 ac_cv_prog_CPP="$CPP"
10f2d63a 8075fi
698dcdb6 8076echo "$ac_t""$CPP" 1>&6
10f2d63a
VZ
8077
8078
698dcdb6
VZ
8079if test $ac_cv_prog_gcc = yes; then
8080 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
24176f2c 8081echo "configure:8082: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8082if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8083 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8084else
8085 ac_pattern="Autoconf.*'x'"
698dcdb6 8086 cat > conftest.$ac_ext <<EOF
24176f2c 8087#line 8088 "configure"
10f2d63a
VZ
8088#include "confdefs.h"
8089#include <sgtty.h>
8090Autoconf TIOCGETP
698dcdb6 8091EOF
10f2d63a
VZ
8092if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8093 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8094 rm -rf conftest*
10f2d63a
VZ
8095 ac_cv_prog_gcc_traditional=yes
8096else
698dcdb6 8097 rm -rf conftest*
10f2d63a
VZ
8098 ac_cv_prog_gcc_traditional=no
8099fi
8100rm -f conftest*
8101
698dcdb6 8102
10f2d63a 8103 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8104 cat > conftest.$ac_ext <<EOF
24176f2c 8105#line 8106 "configure"
10f2d63a
VZ
8106#include "confdefs.h"
8107#include <termio.h>
8108Autoconf TCGETA
698dcdb6 8109EOF
10f2d63a
VZ
8110if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8111 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8112 rm -rf conftest*
10f2d63a
VZ
8113 ac_cv_prog_gcc_traditional=yes
8114fi
8115rm -f conftest*
8116
8117 fi
8118fi
698dcdb6
VZ
8119
8120echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8121 if test $ac_cv_prog_gcc_traditional = yes; then
8122 CC="$CC -traditional"
8123 fi
8124fi
8125
703e0a69 8126
698dcdb6
VZ
8127
8128ac_ext=C
8129# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8130ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8131ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8132ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8133cross_compiling=$ac_cv_prog_cxx_cross
8134
8135
8136for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8137do
8138# Extract the first word of "$ac_prog", so it can be a program name with args.
8139set dummy $ac_prog; ac_word=$2
8140echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
24176f2c 8141echo "configure:8142: checking for $ac_word" >&5
698dcdb6
VZ
8142if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8143 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8144else
8145 if test -n "$CXX"; then
8146 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8147else
698dcdb6
VZ
8148 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8149 ac_dummy="$PATH"
8150 for ac_dir in $ac_dummy; do
8151 test -z "$ac_dir" && ac_dir=.
8152 if test -f $ac_dir/$ac_word; then
8153 ac_cv_prog_CXX="$ac_prog"
8154 break
8155 fi
8156 done
8157 IFS="$ac_save_ifs"
10f2d63a
VZ
8158fi
8159fi
698dcdb6 8160CXX="$ac_cv_prog_CXX"
10f2d63a 8161if test -n "$CXX"; then
698dcdb6 8162 echo "$ac_t""$CXX" 1>&6
10f2d63a 8163else
698dcdb6 8164 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8165fi
8166
698dcdb6 8167test -n "$CXX" && break
10f2d63a 8168done
698dcdb6 8169test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
8170
8171
698dcdb6 8172echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
24176f2c 8173echo "configure:8174: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 8174
698dcdb6
VZ
8175ac_ext=C
8176# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8177ac_cpp='$CXXCPP $CPPFLAGS'
8178ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8179ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8180cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 8181
698dcdb6
VZ
8182cat > conftest.$ac_ext << EOF
8183
24176f2c 8184#line 8185 "configure"
10f2d63a
VZ
8185#include "confdefs.h"
8186
698dcdb6
VZ
8187int main(){return(0);}
8188EOF
24176f2c 8189if { (eval echo configure:8190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8190 ac_cv_prog_cxx_works=yes
8191 # If we can't run a trivial program, we are probably using a cross compiler.
8192 if (./conftest; exit) 2>/dev/null; then
8193 ac_cv_prog_cxx_cross=no
8194 else
8195 ac_cv_prog_cxx_cross=yes
8196 fi
8197else
8198 echo "configure: failed program was:" >&5
8199 cat conftest.$ac_ext >&5
8200 ac_cv_prog_cxx_works=no
8201fi
8202rm -fr conftest*
8203ac_ext=C
8204# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8205ac_cpp='$CXXCPP $CPPFLAGS'
8206ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8207ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8208cross_compiling=$ac_cv_prog_cxx_cross
8209
8210echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8211if test $ac_cv_prog_cxx_works = no; then
8212 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8213fi
8214echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
24176f2c 8215echo "configure:8216: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8216echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8217cross_compiling=$ac_cv_prog_cxx_cross
8218
8219echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
24176f2c 8220echo "configure:8221: checking whether we are using GNU C++" >&5
698dcdb6
VZ
8221if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8222 echo $ac_n "(cached) $ac_c" 1>&6
8223else
8224 cat > conftest.C <<EOF
8225#ifdef __GNUC__
8226 yes;
10f2d63a 8227#endif
698dcdb6 8228EOF
24176f2c 8229if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8230 ac_cv_prog_gxx=yes
8231else
8232 ac_cv_prog_gxx=no
8233fi
8234fi
10f2d63a 8235
698dcdb6 8236echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 8237
698dcdb6
VZ
8238if test $ac_cv_prog_gxx = yes; then
8239 GXX=yes
8240else
8241 GXX=
8242fi
10f2d63a 8243
698dcdb6
VZ
8244ac_test_CXXFLAGS="${CXXFLAGS+set}"
8245ac_save_CXXFLAGS="$CXXFLAGS"
8246CXXFLAGS=
8247echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
24176f2c 8248echo "configure:8249: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
8249if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8250 echo $ac_n "(cached) $ac_c" 1>&6
8251else
8252 echo 'void f(){}' > conftest.cc
8253if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
8254 ac_cv_prog_cxx_g=yes
8255else
698dcdb6 8256 ac_cv_prog_cxx_g=no
10f2d63a 8257fi
698dcdb6
VZ
8258rm -f conftest*
8259
10f2d63a 8260fi
698dcdb6
VZ
8261
8262echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 8263if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 8264 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
8265elif test $ac_cv_prog_cxx_g = yes; then
8266 if test "$GXX" = yes; then
8267 CXXFLAGS="-g -O2"
8268 else
8269 CXXFLAGS="-g"
8270 fi
8271else
8272 if test "$GXX" = yes; then
8273 CXXFLAGS="-O2"
8274 else
8275 CXXFLAGS=
8276 fi
8277fi
8278
8279
698dcdb6 8280echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
24176f2c 8281echo "configure:8282: checking how to run the C++ preprocessor" >&5
1e487827 8282if test -z "$CXXCPP"; then
698dcdb6
VZ
8283if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
8284 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 8285else
698dcdb6
VZ
8286 ac_ext=C
8287# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8288ac_cpp='$CXXCPP $CPPFLAGS'
8289ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8290ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8291cross_compiling=$ac_cv_prog_cxx_cross
8292 CXXCPP="${CXX-g++} -E"
8293 cat > conftest.$ac_ext <<EOF
24176f2c 8294#line 8295 "configure"
1e487827 8295#include "confdefs.h"
698dcdb6
VZ
8296#include <stdlib.h>
8297EOF
8298ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24176f2c 8299{ (eval echo configure:8300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8300ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8301if test -z "$ac_err"; then
1e487827
VS
8302 :
8303else
698dcdb6
VZ
8304 echo "$ac_err" >&5
8305 echo "configure: failed program was:" >&5
1e487827 8306 cat conftest.$ac_ext >&5
698dcdb6
VZ
8307 rm -rf conftest*
8308 CXXCPP=/lib/cpp
1e487827 8309fi
698dcdb6
VZ
8310rm -f conftest*
8311 ac_cv_prog_CXXCPP="$CXXCPP"
8312ac_ext=C
8313# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8314ac_cpp='$CXXCPP $CPPFLAGS'
8315ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8316ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8317cross_compiling=$ac_cv_prog_cxx_cross
1e487827 8318fi
1e487827 8319fi
698dcdb6
VZ
8320CXXCPP="$ac_cv_prog_CXXCPP"
8321echo "$ac_t""$CXXCPP" 1>&6
1e487827 8322
10f2d63a
VZ
8323
8324CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8325
8326ac_ext=c
698dcdb6 8327# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 8328ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
8329ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8330ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8331cross_compiling=$ac_cv_prog_cc_cross
8332
8333
8334# Extract the first word of "ranlib", so it can be a program name with args.
8335set dummy ranlib; ac_word=$2
8336echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
24176f2c 8337echo "configure:8338: checking for $ac_word" >&5
698dcdb6
VZ
8338if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8339 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8340else
8341 if test -n "$RANLIB"; then
8342 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8343else
698dcdb6
VZ
8344 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8345 ac_dummy="$PATH"
8346 for ac_dir in $ac_dummy; do
8347 test -z "$ac_dir" && ac_dir=.
8348 if test -f $ac_dir/$ac_word; then
8349 ac_cv_prog_RANLIB="ranlib"
8350 break
8351 fi
8352 done
8353 IFS="$ac_save_ifs"
8354 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
8355fi
8356fi
698dcdb6 8357RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 8358if test -n "$RANLIB"; then
698dcdb6 8359 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 8360else
698dcdb6 8361 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8362fi
8363
8364
8365# Extract the first word of "ar", so it can be a program name with args.
8366set dummy ar; ac_word=$2
698dcdb6 8367echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
24176f2c 8368echo "configure:8369: checking for $ac_word" >&5
698dcdb6
VZ
8369if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8370 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8371else
8372 if test -n "$AR"; then
8373 ac_cv_prog_AR="$AR" # Let the user override the test.
8374else
698dcdb6
VZ
8375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8376 ac_dummy="$PATH"
8377 for ac_dir in $ac_dummy; do
8378 test -z "$ac_dir" && ac_dir=.
8379 if test -f $ac_dir/$ac_word; then
8380 ac_cv_prog_AR="ar"
8381 break
8382 fi
8383 done
8384 IFS="$ac_save_ifs"
10f2d63a
VZ
8385 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8386fi
8387fi
698dcdb6 8388AR="$ac_cv_prog_AR"
10f2d63a 8389if test -n "$AR"; then
698dcdb6 8390 echo "$ac_t""$AR" 1>&6
10f2d63a 8391else
698dcdb6 8392 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8393fi
8394
698dcdb6 8395
10f2d63a
VZ
8396# Find a good install program. We prefer a C program (faster),
8397# so one script is as good as another. But avoid the broken or
8398# incompatible versions:
8399# SysV /etc/install, /usr/sbin/install
8400# SunOS /usr/etc/install
8401# IRIX /sbin/install
8402# AIX /bin/install
8403# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8404# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8405# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8406# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 8407echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
24176f2c 8408echo "configure:8409: checking for a BSD compatible install" >&5
10f2d63a 8409if test -z "$INSTALL"; then
698dcdb6
VZ
8410if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8411 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8412else
698dcdb6 8413 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
8414 for ac_dir in $PATH; do
8415 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
8416 case "$ac_dir/" in
8417 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
8418 *)
8419 # OSF1 and SCO ODT 3.0 have their own names for install.
8420 # Don't use installbsd from OSF since it installs stuff as root
8421 # by default.
8422 for ac_prog in ginstall scoinst install; do
698dcdb6 8423 if test -f $ac_dir/$ac_prog; then
10f2d63a 8424 if test $ac_prog = install &&
698dcdb6 8425 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
8426 # AIX install. It has an incompatible calling convention.
8427 :
8428 else
8429 ac_cv_path_install="$ac_dir/$ac_prog -c"
8430 break 2
8431 fi
8432 fi
8433 done
8434 ;;
8435 esac
8436 done
698dcdb6 8437 IFS="$ac_save_IFS"
10f2d63a
VZ
8438
8439fi
8440 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 8441 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
8442 else
8443 # As a last resort, use the slow shell script. We don't cache a
8444 # path for INSTALL within a source directory, because that will
8445 # break other packages using the cache if that directory is
8446 # removed, or if the path is relative.
698dcdb6 8447 INSTALL="$ac_install_sh"
10f2d63a
VZ
8448 fi
8449fi
698dcdb6 8450echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
8451
8452# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8453# It thinks the first close brace ends the variable substitution.
8454test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8455
698dcdb6 8456test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
8457
8458test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8459
698dcdb6 8460
10f2d63a
VZ
8461# Extract the first word of "strip", so it can be a program name with args.
8462set dummy strip; ac_word=$2
698dcdb6 8463echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
24176f2c 8464echo "configure:8465: checking for $ac_word" >&5
698dcdb6
VZ
8465if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8466 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8467else
8468 if test -n "$STRIP"; then
8469 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8470else
698dcdb6
VZ
8471 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8472 ac_dummy="$PATH"
8473 for ac_dir in $ac_dummy; do
8474 test -z "$ac_dir" && ac_dir=.
8475 if test -f $ac_dir/$ac_word; then
8476 ac_cv_prog_STRIP="strip"
8477 break
8478 fi
8479 done
8480 IFS="$ac_save_ifs"
10f2d63a
VZ
8481 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8482fi
8483fi
698dcdb6 8484STRIP="$ac_cv_prog_STRIP"
10f2d63a 8485if test -n "$STRIP"; then
698dcdb6 8486 echo "$ac_t""$STRIP" 1>&6
10f2d63a 8487else
698dcdb6 8488 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8489fi
8490
698dcdb6
VZ
8491
8492echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
24176f2c 8493echo "configure:8494: checking make for VPATH support" >&5
10f2d63a
VZ
8494cat - << EOF > confMake
8495check : file
8496 cp \$? \$@
8497 cp \$? final_file
8498EOF
8499
8500if test ! -d sub ; then
8501 mkdir sub
8502fi
8503echo dummy > sub/file
f6bcfd97 8504${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
8505RESULT=$?
8506rm -f sub/file check final_file confMake
8507rmdir sub
8508if test "$RESULT" = 0; then
698dcdb6 8509 echo "$ac_t""yes" 1>&6
10f2d63a 8510else
698dcdb6
VZ
8511 echo "$ac_t""no" 1>&6
8512 { echo "configure: error:
1e487827
VS
8513You need a make-utility that is able to use the variable
8514VPATH correctly.
8515If your version of make does not support VPATH correctly,
8516please install GNU-make (possibly as gmake), and start
8517configure with the following command:
8518export MAKE=gmake; ./configure for sh-type shells
8519setenv MAKE gmake; ./configure for csh-type shells
8520Also please do remember to use gmake in this case every time
8521you are trying to compile.
698dcdb6 8522" 1>&2; exit 1; }
10f2d63a
VZ
8523fi
8524
8525for ac_prog in 'bison -y' byacc
8526do
698dcdb6 8527# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 8528set dummy $ac_prog; ac_word=$2
698dcdb6 8529echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
24176f2c 8530echo "configure:8531: checking for $ac_word" >&5
698dcdb6
VZ
8531if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8532 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8533else
8534 if test -n "$YACC"; then
8535 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8536else
698dcdb6
VZ
8537 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8538 ac_dummy="$PATH"
8539 for ac_dir in $ac_dummy; do
8540 test -z "$ac_dir" && ac_dir=.
8541 if test -f $ac_dir/$ac_word; then
8542 ac_cv_prog_YACC="$ac_prog"
8543 break
8544 fi
8545 done
8546 IFS="$ac_save_ifs"
10f2d63a
VZ
8547fi
8548fi
698dcdb6 8549YACC="$ac_cv_prog_YACC"
10f2d63a 8550if test -n "$YACC"; then
698dcdb6 8551 echo "$ac_t""$YACC" 1>&6
10f2d63a 8552else
698dcdb6 8553 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8554fi
8555
698dcdb6 8556test -n "$YACC" && break
10f2d63a
VZ
8557done
8558test -n "$YACC" || YACC="yacc"
8559
698dcdb6
VZ
8560
8561# Extract the first word of "flex", so it can be a program name with args.
8562set dummy flex; ac_word=$2
8563echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
24176f2c 8564echo "configure:8565: checking for $ac_word" >&5
698dcdb6
VZ
8565if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8566 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8567else
8568 if test -n "$LEX"; then
8569 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8570else
698dcdb6
VZ
8571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8572 ac_dummy="$PATH"
8573 for ac_dir in $ac_dummy; do
8574 test -z "$ac_dir" && ac_dir=.
8575 if test -f $ac_dir/$ac_word; then
8576 ac_cv_prog_LEX="flex"
8577 break
8578 fi
8579 done
8580 IFS="$ac_save_ifs"
8581 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
8582fi
8583fi
698dcdb6 8584LEX="$ac_cv_prog_LEX"
10f2d63a 8585if test -n "$LEX"; then
698dcdb6 8586 echo "$ac_t""$LEX" 1>&6
10f2d63a 8587else
698dcdb6 8588 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8589fi
8590
8591if test -z "$LEXLIB"
8592then
698dcdb6
VZ
8593 case "$LEX" in
8594 flex*) ac_lib=fl ;;
8595 *) ac_lib=l ;;
8596 esac
8597 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
24176f2c 8598echo "configure:8599: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
8599ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8600if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8601 echo $ac_n "(cached) $ac_c" 1>&6
8602else
8603 ac_save_LIBS="$LIBS"
8604LIBS="-l$ac_lib $LIBS"
8605cat > conftest.$ac_ext <<EOF
24176f2c 8606#line 8607 "configure"
10f2d63a
VZ
8607#include "confdefs.h"
8608/* Override any gcc2 internal prototype to avoid an error. */
8609/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
8610 builtin and then its argument prototype would still apply. */
8611char yywrap();
10f2d63a 8612
698dcdb6
VZ
8613int main() {
8614yywrap()
8615; return 0; }
8616EOF
24176f2c 8617if { (eval echo configure:8618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8618 rm -rf conftest*
8619 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 8620else
698dcdb6
VZ
8621 echo "configure: failed program was:" >&5
8622 cat conftest.$ac_ext >&5
8623 rm -rf conftest*
8624 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 8625fi
698dcdb6
VZ
8626rm -f conftest*
8627LIBS="$ac_save_LIBS"
8628
10f2d63a 8629fi
698dcdb6
VZ
8630if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8631 echo "$ac_t""yes" 1>&6
8632 LEXLIB="-l$ac_lib"
8633else
8634 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8635fi
8636
8637fi
8638
8639
698dcdb6 8640echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
24176f2c 8641echo "configure:8642: checking whether ln -s works" >&5
698dcdb6
VZ
8642if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8643 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8644else
698dcdb6
VZ
8645 rm -f conftestdata
8646if ln -s X conftestdata 2>/dev/null
8647then
8648 rm -f conftestdata
8649 ac_cv_prog_LN_S="ln -s"
10f2d63a 8650else
698dcdb6 8651 ac_cv_prog_LN_S=ln
10f2d63a
VZ
8652fi
8653fi
698dcdb6
VZ
8654LN_S="$ac_cv_prog_LN_S"
8655if test "$ac_cv_prog_LN_S" = "ln -s"; then
8656 echo "$ac_t""yes" 1>&6
10f2d63a 8657else
698dcdb6 8658 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8659fi
8660
8661
8662
8663SEARCH_INCLUDE="\
8664 /usr/local/include \
8665 \
8666 /usr/Motif-1.2/include \
8667 /usr/Motif-2.1/include \
8668 \
8669 /usr/include/Motif1.2 \
8670 /opt/xpm/include/X11 \
8671 /opt/GBxpm/include/ \
8672 /opt/GBxpm/X11/include/ \
8673 \
8674 /usr/Motif1.2/include \
8675 /usr/dt/include \
afc31813
VZ
8676 /usr/openwin/include \
8677 \
10f2d63a
VZ
8678 /usr/include/Xm \
8679 \
8680 /usr/X11R6/include \
afc31813 8681 /usr/X11R6.4/include \
10f2d63a
VZ
8682 /usr/X11R5/include \
8683 /usr/X11R4/include \
8684 \
10f2d63a
VZ
8685 /usr/include/X11R6 \
8686 /usr/include/X11R5 \
8687 /usr/include/X11R4 \
8688 \
8689 /usr/local/X11R6/include \
8690 /usr/local/X11R5/include \
8691 /usr/local/X11R4/include \
8692 \
8693 /usr/local/include/X11R6 \
8694 /usr/local/include/X11R5 \
8695 /usr/local/include/X11R4 \
8696 \
8697 /usr/X11/include \
8698 /usr/include/X11 \
8699 /usr/local/X11/include \
8700 /usr/local/include/X11 \
8701 \
8702 /usr/X386/include \
8703 /usr/x386/include \
8704 /usr/XFree86/include/X11 \
8705 \
cf27ef00 8706 X:/XFree86/include \
ec14dd32
VZ
8707 X:/XFree86/include/X11 \
8708 \
10f2d63a
VZ
8709 /usr/include/gtk \
8710 /usr/local/include/gtk \
8711 /usr/include/glib \
8712 /usr/local/include/glib \
8713 \
8714 /usr/include/qt \
8715 /usr/local/include/qt \
8716 \
8717 /usr/include/windows \
8718 /usr/include/wine \
8719 /usr/local/include/wine \
8720 \
8721 /usr/unsupported/include \
8722 /usr/athena/include \
8723 /usr/local/x11r5/include \
8724 /usr/lpp/Xamples/include \
8725 \
10f2d63a 8726 /usr/openwin/share/include \
928b5c08
VZ
8727 \
8728 /usr/include"
10f2d63a
VZ
8729
8730SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8731
698dcdb6
VZ
8732
8733cat > confcache <<\EOF
10f2d63a
VZ
8734# This file is a shell script that caches the results of configure
8735# tests run on this system so they can be shared between configure
698dcdb6
VZ
8736# scripts and configure runs. It is not useful on other systems.
8737# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8738#
698dcdb6
VZ
8739# By default, configure uses ./config.cache as the cache file,
8740# creating it if it does not exist already. You can give configure
8741# the --cache-file=FILE option to use a different cache file; that is
8742# what configure does when it calls configure scripts in
8743# subdirectories, so they share the cache.
8744# Giving --cache-file=/dev/null disables caching, for debugging configure.
8745# config.status only pays attention to the cache file if you give it the
8746# --recheck option to rerun configure.
10f2d63a 8747#
698dcdb6 8748EOF
10f2d63a
VZ
8749# The following way of writing the cache mishandles newlines in values,
8750# but we know of no workaround that is simple, portable, and efficient.
8751# So, don't put newlines in cache variables' values.
8752# Ultrix sh set writes to stderr and can't be redirected directly,
8753# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8754(set) 2>&1 |
8755 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8756 *ac_space=\ *)
8757 # `set' does not quote correctly, so add quotes (double-quote substitution
8758 # turns \\\\ into \\, and sed turns \\ into \).
8759 sed -n \
8760 -e "s/'/'\\\\''/g" \
8761 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8762 ;;
8763 *)
8764 # `set' quotes correctly as required by POSIX, so do not add quotes.
8765 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8766 ;;
8767 esac >> confcache
8768if cmp -s $cache_file confcache; then
8769 :
8770else
10f2d63a 8771 if test -w $cache_file; then
698dcdb6
VZ
8772 echo "updating cache $cache_file"
8773 cat confcache > $cache_file
10f2d63a
VZ
8774 else
8775 echo "not updating unwritable cache $cache_file"
8776 fi
8777fi
8778rm -f confcache
8779
698dcdb6
VZ
8780
8781
dad6c0ea
VZ
8782AFMINSTALL=
8783
10f2d63a 8784if test "$wxUSE_GUI" = "yes"; then
1e6feb95 8785 USE_GUI=1
10f2d63a 8786
1e6feb95
VZ
8787 TOOLKIT=
8788 TOOLKIT_INCLUDE=
10f2d63a 8789
1e6feb95
VZ
8790 GUI_TK_LIBRARY=
8791 GUI_TK_LINK=
10f2d63a 8792
1e6feb95
VZ
8793 WXGTK12=
8794 WXGTK127=
8795 WXGTK20=
10f2d63a 8796
1e6feb95 8797 WXWINE=
10f2d63a 8798
1e6feb95 8799 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
29fd3c0c
VS
8800 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
8801echo $ac_n "checking for windows.h""... $ac_c" 1>&6
24176f2c 8802echo "configure:8803: checking for windows.h" >&5
d4158b5d
VS
8803if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8804 echo $ac_n "(cached) $ac_c" 1>&6
8805else
8806 cat > conftest.$ac_ext <<EOF
24176f2c 8807#line 8808 "configure"
d4158b5d 8808#include "confdefs.h"
29fd3c0c 8809#include <windows.h>
d4158b5d
VS
8810EOF
8811ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24176f2c 8812{ (eval echo configure:8813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4158b5d
VS
8813ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8814if test -z "$ac_err"; then
8815 rm -rf conftest*
8816 eval "ac_cv_header_$ac_safe=yes"
8817else
8818 echo "$ac_err" >&5
8819 echo "configure: failed program was:" >&5
8820 cat conftest.$ac_ext >&5
8821 rm -rf conftest*
8822 eval "ac_cv_header_$ac_safe=no"
8823fi
8824rm -f conftest*
8825fi
8826if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8827 echo "$ac_t""yes" 1>&6
29fd3c0c 8828 :
d4158b5d
VS
8829else
8830 echo "$ac_t""no" 1>&6
d4158b5d 8831
3f0f0161
VZ
8832 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
8833
29fd3c0c 8834fi
10f2d63a 8835
3f0f0161 8836
1e6feb95 8837 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
3f0f0161 8838
031d8228 8839 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
f6bcfd97 8840
1e6feb95
VZ
8841 if test "$wxUSE_ODBC" = "yes" ; then
8842 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
8843 fi
10f2d63a 8844
1e6feb95
VZ
8845 if test "$wxUSE_MINGW" = 1; then
8846 LDFLAGS="$LDFLAGS -mwindows"
8847 fi
32832908 8848
1e6feb95
VZ
8849 TOOLKIT=MSW
8850 GUIDIST=MSW_DIST
32832908 8851
1e6feb95
VZ
8852 RCINCSWITCH="--include-dir"
8853 RCDEFSWITCH="--define"
8854 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
8855 RCINPUTSWITCH="-i"
8856 RCOUTPUTSWITCH="-o"
8857 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
32832908 8858
1e6feb95
VZ
8859 RESPROGRAM="\$(RES_PROGRAM)"
8860 fi
10f2d63a 8861
1e6feb95 8862 if test "$wxUSE_GTK" = 1; then
8168de4c 8863 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
6853365e 8864echo "configure:8865: checking for GTK+ version" >&5
8168de4c
VZ
8865
8866 gtk_version_cached=1
8867 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
8868 echo $ac_n "(cached) $ac_c" 1>&6
8869else
8870
8871 gtk_version_cached=0
8872 echo "$ac_t""""" 1>&6
8873
8874 wx_cv_lib_gtk=
8875 if test "x$wxUSE_GTK2" = "xyes"; then
8876 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6f72b082
OK
8877if test "${with_gtk_prefix+set}" = set; then
8878 withval="$with_gtk_prefix"
8879 gtk_config_prefix="$withval"
8880else
8881 gtk_config_prefix=""
698dcdb6 8882fi
6f72b082
OK
8883
8884# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
8885if test "${with_gtk_exec_prefix+set}" = set; then
8886 withval="$with_gtk_exec_prefix"
8887 gtk_config_exec_prefix="$withval"
8888else
8889 gtk_config_exec_prefix=""
698dcdb6
VZ
8890fi
8891
6f72b082
OK
8892# Check whether --enable-gtktest or --disable-gtktest was given.
8893if test "${enable_gtktest+set}" = set; then
8894 enableval="$enable_gtktest"
698dcdb6 8895 :
6f72b082
OK
8896else
8897 enable_gtktest=yes
698dcdb6
VZ
8898fi
8899
6f72b082 8900
8168de4c 8901 for module in .
6f72b082
OK
8902 do
8903 case "$module" in
8168de4c 8904 gthread)
6f72b082
OK
8905 gtk_config_args="$gtk_config_args gthread"
8906 ;;
8907 esac
8908 done
8909
8910 if test x$gtk_config_exec_prefix != x ; then
8911 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8912 if test x${GTK_CONFIG_2_0+set} != xset ; then
8913 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
8914 fi
8915 fi
8916 if test x$gtk_config_prefix != x ; then
8917 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8918 if test x${GTK_CONFIG_2_0+set} != xset ; then
8919 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
8920 fi
8921 fi
8922
8923 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
8924set dummy gtk-config-2.0; ac_word=$2
698dcdb6 8925echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6853365e 8926echo "configure:8927: checking for $ac_word" >&5
698dcdb6
VZ
8927if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
8928 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 8929else
698dcdb6
VZ
8930 case "$GTK_CONFIG_2_0" in
8931 /*)
6f72b082
OK
8932 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
8933 ;;
698dcdb6
VZ
8934 ?:/*)
8935 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
8936 ;;
6f72b082 8937 *)
698dcdb6
VZ
8938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8939 ac_dummy="$PATH"
8940 for ac_dir in $ac_dummy; do
8941 test -z "$ac_dir" && ac_dir=.
8942 if test -f $ac_dir/$ac_word; then
8943 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
8944 break
8945 fi
8946 done
8947 IFS="$ac_save_ifs"
6f72b082
OK
8948 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
8949 ;;
8950esac
8951fi
698dcdb6 8952GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 8953if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 8954 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 8955else
698dcdb6 8956 echo "$ac_t""no" 1>&6
6f72b082
OK
8957fi
8958
8959 min_gtk_version=1.3.1
698dcdb6 8960 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
6853365e 8961echo "configure:8962: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
8962 no_gtk=""
8963 if test "$GTK_CONFIG_2_0" = "no" ; then
8964 no_gtk=yes
8965 else
8966 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
8967 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
8968 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8969 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8970 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8971 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8972 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8973 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8974 if test "x$enable_gtktest" = "xyes" ; then
8975 ac_save_CFLAGS="$CFLAGS"
8976 ac_save_LIBS="$LIBS"
8977 CFLAGS="$CFLAGS $GTK_CFLAGS"
8978 LIBS="$GTK_LIBS $LIBS"
8979 rm -f conf.gtktest
8980 if test "$cross_compiling" = yes; then
8981 echo $ac_n "cross compiling; assumed OK... $ac_c"
8982else
698dcdb6 8983 cat > conftest.$ac_ext <<EOF
6853365e 8984#line 8985 "configure"
6f72b082
OK
8985#include "confdefs.h"
8986
8987#include <gtk/gtk.h>
8988#include <stdio.h>
8989#include <stdlib.h>
8990
8168de4c 8991int
6f72b082
OK
8992main ()
8993{
8994 int major, minor, micro;
8995 char *tmp_version;
8996
8997 system ("touch conf.gtktest");
8998
8999 /* HP/UX 9 (%@#!) writes to sscanf strings */
9000 tmp_version = g_strdup("$min_gtk_version");
9001 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9002 printf("%s, bad version string\n", "$min_gtk_version");
9003 exit(1);
9004 }
9005
9006 if ((gtk_major_version != $gtk_config_major_version) ||
9007 (gtk_minor_version != $gtk_config_minor_version) ||
9008 (gtk_micro_version != $gtk_config_micro_version))
9009 {
8168de4c 9010 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
9011 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9012 gtk_major_version, gtk_minor_version, gtk_micro_version);
9013 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9014 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9015 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9016 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9017 printf("*** required on your system.\n");
9018 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9019 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9020 printf("*** before re-running configure\n");
8168de4c 9021 }
6f72b082
OK
9022#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9023 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8168de4c 9024 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
9025 (gtk_micro_version != GTK_MICRO_VERSION))
9026 {
9027 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8168de4c 9028 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 9029 printf("*** library (version %d.%d.%d)\n",
8168de4c 9030 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082
OK
9031 }
9032#endif /* defined (GTK_MAJOR_VERSION) ... */
9033 else
9034 {
9035 if ((gtk_major_version > major) ||
9036 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9037 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9038 {
9039 return 0;
9040 }
9041 else
9042 {
9043 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9044 gtk_major_version, gtk_minor_version, gtk_micro_version);
9045 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8168de4c 9046 major, minor, micro);
6f72b082
OK
9047 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9048 printf("***\n");
9049 printf("*** If you have already installed a sufficiently new version, this error\n");
9050 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9051 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9052 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9053 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9054 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9055 printf("*** so that the correct libraries are found at run-time))\n");
9056 }
9057 }
9058 return 1;
9059}
9060
698dcdb6 9061EOF
6853365e 9062if { (eval echo configure:9063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9063then
6f72b082
OK
9064 :
9065else
698dcdb6
VZ
9066 echo "configure: failed program was:" >&5
9067 cat conftest.$ac_ext >&5
9068 rm -fr conftest*
9069 no_gtk=yes
6f72b082 9070fi
698dcdb6 9071rm -fr conftest*
6f72b082 9072fi
698dcdb6 9073
6f72b082
OK
9074 CFLAGS="$ac_save_CFLAGS"
9075 LIBS="$ac_save_LIBS"
9076 fi
9077 fi
9078 if test "x$no_gtk" = x ; then
698dcdb6 9079 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8168de4c 9080 wx_cv_lib_gtk=2.0
6f72b082 9081 else
698dcdb6 9082 echo "$ac_t""no" 1>&6
6f72b082
OK
9083 if test "$GTK_CONFIG_2_0" = "no" ; then
9084 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9085 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9086 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9087 echo "*** full path to gtk-config-2.0."
9088 else
9089 if test -f conf.gtktest ; then
9090 :
9091 else
9092 echo "*** Could not run GTK test program, checking why..."
9093 CFLAGS="$CFLAGS $GTK_CFLAGS"
9094 LIBS="$LIBS $GTK_LIBS"
698dcdb6 9095 cat > conftest.$ac_ext <<EOF
6853365e 9096#line 9097 "configure"
6f72b082
OK
9097#include "confdefs.h"
9098
9099#include <gtk/gtk.h>
9100#include <stdio.h>
9101
698dcdb6
VZ
9102int main() {
9103 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9104; return 0; }
9105EOF
6853365e 9106if { (eval echo configure:9107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9107 rm -rf conftest*
6f72b082
OK
9108 echo "*** The test program compiled, but did not run. This usually means"
9109 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9110 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9111 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9112 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9113 echo "*** is required on your system"
8168de4c 9114 echo "***"
6f72b082
OK
9115 echo "*** If you have an old version installed, it is best to remove it, although"
9116 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9117 echo "***"
9118 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9119 echo "*** came with the system with the command"
9120 echo "***"
698dcdb6 9121 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 9122else
698dcdb6
VZ
9123 echo "configure: failed program was:" >&5
9124 cat conftest.$ac_ext >&5
9125 rm -rf conftest*
9126 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
9127 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9128 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
698dcdb6 9129 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 9130fi
698dcdb6 9131rm -f conftest*
6f72b082
OK
9132 CFLAGS="$ac_save_CFLAGS"
9133 LIBS="$ac_save_LIBS"
9134 fi
9135 fi
9136 GTK_CFLAGS=""
9137 GTK_LIBS=""
8168de4c
VZ
9138 gthread
9139 fi
9140
9141
9142 rm -f conf.gtktest
9143
9144 fi
9145
9146 if test -z "$wx_cv_lib_gtk"; then
9147
10f2d63a
VZ
9148 if test x$gtk_config_exec_prefix != x ; then
9149 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9150 if test x${GTK_CONFIG+set} != xset ; then
9151 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9152 fi
9153 fi
9154 if test x$gtk_config_prefix != x ; then
9155 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9156 if test x${GTK_CONFIG+set} != xset ; then
9157 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9158 fi
9159 fi
9160
9161 # Extract the first word of "gtk-config", so it can be a program name with args.
9162set dummy gtk-config; ac_word=$2
698dcdb6 9163echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6853365e 9164echo "configure:9165: checking for $ac_word" >&5
698dcdb6
VZ
9165if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9166 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 9167else
698dcdb6
VZ
9168 case "$GTK_CONFIG" in
9169 /*)
f6bcfd97
BP
9170 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9171 ;;
698dcdb6
VZ
9172 ?:/*)
9173 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9174 ;;
f6bcfd97 9175 *)
698dcdb6
VZ
9176 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9177 ac_dummy="$PATH"
9178 for ac_dir in $ac_dummy; do
9179 test -z "$ac_dir" && ac_dir=.
9180 if test -f $ac_dir/$ac_word; then
9181 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9182 break
9183 fi
9184 done
9185 IFS="$ac_save_ifs"
f6bcfd97
BP
9186 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9187 ;;
9188esac
9189fi
698dcdb6 9190GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 9191if test -n "$GTK_CONFIG"; then
698dcdb6 9192 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 9193else
698dcdb6 9194 echo "$ac_t""no" 1>&6
f6bcfd97
BP
9195fi
9196
9197 min_gtk_version=1.2.7
698dcdb6 9198 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
6853365e 9199echo "configure:9200: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
9200 no_gtk=""
9201 if test "$GTK_CONFIG" != "no" ; then
9202 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9203 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9204 ac_save_CFLAGS="$CFLAGS"
9205 ac_save_LIBS="$LIBS"
9206 CFLAGS="$CFLAGS $GTK_CFLAGS"
9207 LIBS="$LIBS $GTK_LIBS"
9208 if test "$cross_compiling" = yes; then
9209 echo $ac_n "cross compiling; assumed OK... $ac_c"
9210else
698dcdb6 9211 cat > conftest.$ac_ext <<EOF
6853365e 9212#line 9213 "configure"
f6bcfd97
BP
9213#include "confdefs.h"
9214
9215#include <gtk/gtk.h>
9216#include <gtk/gtkfeatures.h>
9217#include <stdio.h>
9218#include <stdlib.h>
9219
9220int
9221main ()
9222{
9223 int major, minor, micro;
9224
9225 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9226 printf("%s, bad version string\n", "$min_gtk_version");
9227 exit(1);
9228 }
9229
9230 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9231 (GTK_MINOR_VERSION != gtk_minor_version) ||
9232 (GTK_MICRO_VERSION != gtk_micro_version)) {
9233 printf("Headers vs. library version mismatch!\n");
9234 exit(1);
9235 }
9236
9237 if (gtk_minor_version == 1) return FALSE;
9238
9239 return !((gtk_major_version > major) ||
9240 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9241 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9242}
9243
698dcdb6 9244EOF
6853365e 9245if { (eval echo configure:9246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9246then
f6bcfd97
BP
9247 :
9248else
698dcdb6
VZ
9249 echo "configure: failed program was:" >&5
9250 cat conftest.$ac_ext >&5
9251 rm -fr conftest*
9252 no_gtk=yes
f6bcfd97 9253fi
698dcdb6 9254rm -fr conftest*
f6bcfd97 9255fi
698dcdb6 9256
f6bcfd97
BP
9257 CFLAGS="$ac_save_CFLAGS"
9258 LIBS="$ac_save_LIBS"
9259 else
9260 no_gtk=yes
9261 fi
9262 if test "x$no_gtk" = x ; then
698dcdb6 9263 echo "$ac_t""yes" 1>&6
8168de4c 9264 wx_cv_lib_gtk=1.2.7
f6bcfd97 9265 else
698dcdb6 9266 echo "$ac_t""no" 1>&6
f6bcfd97
BP
9267 GTK_CFLAGS=""
9268 GTK_LIBS=""
9269 :
9270 fi
698dcdb6
VZ
9271
9272
f6bcfd97 9273
8168de4c
VZ
9274 fi
9275
9276 if test -z "$wx_cv_lib_gtk"; then
9277
f6bcfd97
BP
9278 if test x$gtk_config_exec_prefix != x ; then
9279 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9280 if test x${GTK_CONFIG+set} != xset ; then
9281 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9282 fi
9283 fi
9284 if test x$gtk_config_prefix != x ; then
9285 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9286 if test x${GTK_CONFIG+set} != xset ; then
9287 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9288 fi
9289 fi
9290
9291 # Extract the first word of "gtk-config", so it can be a program name with args.
9292set dummy gtk-config; ac_word=$2
698dcdb6 9293echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6853365e 9294echo "configure:9295: checking for $ac_word" >&5
698dcdb6
VZ
9295if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9296 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9297else
698dcdb6
VZ
9298 case "$GTK_CONFIG" in
9299 /*)
10f2d63a
VZ
9300 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9301 ;;
698dcdb6
VZ
9302 ?:/*)
9303 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9304 ;;
10f2d63a 9305 *)
698dcdb6
VZ
9306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9307 ac_dummy="$PATH"
9308 for ac_dir in $ac_dummy; do
9309 test -z "$ac_dir" && ac_dir=.
9310 if test -f $ac_dir/$ac_word; then
9311 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9312 break
9313 fi
9314 done
9315 IFS="$ac_save_ifs"
10f2d63a
VZ
9316 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9317 ;;
9318esac
9319fi
698dcdb6 9320GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 9321if test -n "$GTK_CONFIG"; then
698dcdb6 9322 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 9323else
698dcdb6 9324 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9325fi
9326
04165bec 9327 min_gtk_version=1.2.3
698dcdb6 9328 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
6853365e 9329echo "configure:9330: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
9330 no_gtk=""
9331 if test "$GTK_CONFIG" != "no" ; then
9332 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 9333 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
9334 ac_save_CFLAGS="$CFLAGS"
9335 ac_save_LIBS="$LIBS"
9336 CFLAGS="$CFLAGS $GTK_CFLAGS"
9337 LIBS="$LIBS $GTK_LIBS"
9338 if test "$cross_compiling" = yes; then
9339 echo $ac_n "cross compiling; assumed OK... $ac_c"
9340else
698dcdb6 9341 cat > conftest.$ac_ext <<EOF
6853365e 9342#line 9343 "configure"
10f2d63a
VZ
9343#include "confdefs.h"
9344
9345#include <gtk/gtk.h>
f49f2b0c 9346#include <gtk/gtkfeatures.h>
10f2d63a 9347#include <stdio.h>
32832908 9348#include <stdlib.h>
10f2d63a
VZ
9349
9350int
9351main ()
9352{
9353 int major, minor, micro;
9354
9355 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9356 printf("%s, bad version string\n", "$min_gtk_version");
9357 exit(1);
9358 }
9359
f49f2b0c
RR
9360 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9361 (GTK_MINOR_VERSION != gtk_minor_version) ||
9362 (GTK_MICRO_VERSION != gtk_micro_version)) {
9363 printf("Headers vs. library version mismatch!\n");
9364 exit(1);
9365 }
9366
10f2d63a
VZ
9367 if (gtk_minor_version == 1) return FALSE;
9368
9369 return !((gtk_major_version > major) ||
9370 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9371 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9372}
9373
698dcdb6 9374EOF
6853365e 9375if { (eval echo configure:9376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9376then
10f2d63a
VZ
9377 :
9378else
698dcdb6
VZ
9379 echo "configure: failed program was:" >&5
9380 cat conftest.$ac_ext >&5
9381 rm -fr conftest*
9382 no_gtk=yes
10f2d63a 9383fi
698dcdb6 9384rm -fr conftest*
10f2d63a 9385fi
698dcdb6 9386
10f2d63a
VZ
9387 CFLAGS="$ac_save_CFLAGS"
9388 LIBS="$ac_save_LIBS"
9389 else
9390 no_gtk=yes
9391 fi
9392 if test "x$no_gtk" = x ; then
698dcdb6 9393 echo "$ac_t""yes" 1>&6
8168de4c 9394 wx_cv_lib_gtk=1.2.3
10f2d63a 9395 else
698dcdb6 9396 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9397 GTK_CFLAGS=""
9398 GTK_LIBS=""
7e99ad86 9399 :
10f2d63a 9400 fi
698dcdb6
VZ
9401
9402
10f2d63a 9403
8168de4c
VZ
9404 fi
9405
9406 if test -z "$wx_cv_lib_gtk"; then
9407 wx_cv_lib_gtk=none
138be253
VZ
9408 else
9409 wx_cv_cflags_gtk=$GTK_CFLAGS
9410 wx_cv_libs_gtk=$GTK_LIBS
8168de4c
VZ
9411 fi
9412
1e6feb95 9413
8168de4c 9414fi
703e0a69 9415
698dcdb6 9416
8168de4c
VZ
9417 if test "$gtk_version_cached" = 1; then
9418 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
1e6feb95 9419 fi
698dcdb6 9420
8168de4c
VZ
9421 case "$wx_cv_lib_gtk" in
9422 2.0) WXGTK20=1
9423 ;;
9424 1.2.7) WXGTK127=1
d1a8d972 9425 WXGTK12=1
8168de4c
VZ
9426 ;;
9427 1.2.3) WXGTK12=1
9428 ;;
9429 *) { echo "configure: error:
9430Please check that gtk-config is in path, the directory
9431where GTK+ libraries are installed (returned by
9432'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9433equivalent variable and GTK+ is version 1.2.3 or above.
9434 " 1>&2; exit 1; }
9435 ;;
9436 esac
2224580a 9437
138be253 9438 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11dfaa5f 9439 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
698dcdb6 9440
1e6feb95
VZ
9441 AFMINSTALL=afminstall
9442 TOOLKIT=GTK
9443 GUIDIST=GTK_DIST
7ec2881a 9444
1e6feb95 9445 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
6853365e 9446echo "configure:9447: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
9447ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9448if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9449 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 9450else
698dcdb6 9451 ac_save_LIBS="$LIBS"
7ec2881a 9452LIBS="-lgdk $LIBS"
698dcdb6 9453cat > conftest.$ac_ext <<EOF
6853365e 9454#line 9455 "configure"
7ec2881a
RR
9455#include "confdefs.h"
9456/* Override any gcc2 internal prototype to avoid an error. */
9457/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9458 builtin and then its argument prototype would still apply. */
9459char gdk_im_open();
9460
9461int main() {
9462gdk_im_open()
9463; return 0; }
9464EOF
6853365e 9465if { (eval echo configure:9466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9466 rm -rf conftest*
9467 eval "ac_cv_lib_$ac_lib_var=yes"
9468else
9469 echo "configure: failed program was:" >&5
9470 cat conftest.$ac_ext >&5
9471 rm -rf conftest*
9472 eval "ac_cv_lib_$ac_lib_var=no"
9473fi
9474rm -f conftest*
9475LIBS="$ac_save_LIBS"
9476
9477fi
9478if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9479 echo "$ac_t""yes" 1>&6
9480 cat >> confdefs.h <<\EOF
7ec2881a
RR
9481#define HAVE_XIM 1
9482EOF
9483
698dcdb6
VZ
9484else
9485 echo "$ac_t""no" 1>&6
7ec2881a
RR
9486fi
9487
1e6feb95 9488 fi
10f2d63a 9489
1e6feb95
VZ
9490 if test "$wxUSE_MGL" = 1; then
9491
9492 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
6853365e 9493echo "configure:9494: checking for SciTech MGL library" >&5
1e6feb95
VZ
9494 if test "x$MGL_ROOT" = x ; then
9495 echo "$ac_t""not found" 1>&6
9496 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9497 else
9498 echo "$ac_t""$MGL_ROOT" 1>&6
9499 fi
9500
9501 MGL_OS=linux/gcc/glibc
9502 MGL_LIB_TYPE=""
9503
9504 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9505 if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then
9506 MGL_LIB_TYPE=debug
9507 fi
9508 fi
9509 if test "x$MGL_LIB_TYPE" = x ; then
9510 if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then
9511 MGL_LIB_TYPE=release
9512 else
9513 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9514 fi
9515 fi
9516
9517 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9518 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm"
9519
9520 AFMINSTALL=afminstall
9521 TOOLKIT=MGL
9522 GUIDIST=MGL_DIST
9523 fi
9524
9525 if test "$wxUSE_WINE" = 1; then
9526 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
6853365e 9527echo "configure:9528: checking for WINE includes" >&5
1e6feb95 9528
10f2d63a
VZ
9529ac_find_includes=
9530for ac_dir in $SEARCH_INCLUDE;
9531 do
9532 if test -f "$ac_dir/windows.h"; then
9533 ac_find_includes=$ac_dir
9534 break
9535 fi
9536 done
9537
1e6feb95
VZ
9538 if test "$ac_find_includes" != "" ; then
9539 echo "$ac_t""found $ac_find_includes" 1>&6
9540 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
9541 else
9542 echo "$ac_t""no" 1>&6
9543 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9544 fi
10f2d63a 9545
1e6feb95
VZ
9546 XPM_LINK=""
9547 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
6853365e 9548echo "configure:9549: checking for Xpm library" >&5
1e6feb95 9549
10f2d63a
VZ
9550ac_find_libraries=
9551for ac_dir in $SEARCH_LIB;
9552 do
f11bdd03 9553 for ac_extension in a so sl dylib; do
10f2d63a
VZ
9554 if test -f "$ac_dir/libXpm.$ac_extension"; then
9555 ac_find_libraries=$ac_dir
9556 break 2
9557 fi
9558 done
9559 done
9560
1e6feb95
VZ
9561 if test "$ac_find_libraries" != "" ; then
9562 GUI_TK_LIBRARY="-L$ac_find_libraries"
9563 XPM_LINK="-lXpm"
9564 cat >> confdefs.h <<\EOF
10f2d63a
VZ
9565#define wxHAVE_LIB_XPM 1
9566EOF
9567
1e6feb95
VZ
9568 echo "$ac_t""found at $ac_find_libraries" 1>&6
9569 else
9570 echo "$ac_t""no" 1>&6
9571 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9572 fi
10f2d63a 9573
1e6feb95
VZ
9574 MESA_LINK=""
9575 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
6853365e 9576echo "configure:9577: checking for Mesa library" >&5
1e6feb95 9577
10f2d63a
VZ
9578ac_find_libraries=
9579for ac_dir in $SEARCH_LIB;
9580 do
f11bdd03 9581 for ac_extension in a so sl dylib; do
10f2d63a
VZ
9582 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9583 ac_find_libraries=$ac_dir
9584 break 2
9585 fi
9586 done
9587 done
9588
1e6feb95
VZ
9589 if test "$ac_find_libraries" != "" ; then
9590 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9591 MESA_LINK="-lMesaGL"
9592 echo "$ac_t""found at $ac_find_libraries" 1>&6
9593 else
9594 { echo "configure: error: no" 1>&2; exit 1; }
9595 fi
10f2d63a 9596
1e6feb95
VZ
9597 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9598 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9599 WXWINE=1
9600 TOOLKIT=MSW
9601 GUIDIST=MSW_DIST
9602 fi
698dcdb6 9603
1e6feb95
VZ
9604
9605 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
9606# paths, otherwise set no_x=yes.
9607# Uses ac_ vars as temps to allow command line to override cache and checks.
9608# --without-x overrides everything else, but does not touch the cache.
9609echo $ac_n "checking for X""... $ac_c" 1>&6
6853365e 9610echo "configure:9611: checking for X" >&5
ab9b9eab
VZ
9611
9612# Check whether --with-x or --without-x was given.
9613if test "${with_x+set}" = set; then
9614 withval="$with_x"
698dcdb6
VZ
9615 :
9616fi
ba337fe7 9617
ab9b9eab
VZ
9618# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9619if test "x$with_x" = xno; then
9620 # The user explicitly disabled X.
9621 have_x=disabled
9622else
9623 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9624 # Both variables are already set.
9625 have_x=yes
9626 else
698dcdb6
VZ
9627if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9628 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
9629else
9630 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
9631ac_x_includes=NO ac_x_libraries=NO
9632rm -fr conftestdir
9633if mkdir conftestdir; then
9634 cd conftestdir
ab9b9eab 9635 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 9636 cat > Imakefile <<'EOF'
ab9b9eab
VZ
9637acfindx:
9638 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9639EOF
9640 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9641 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9642 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9643 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 9644 for ac_extension in a so sl; do
ab9b9eab 9645 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 9646 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 9647 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
9648 fi
9649 done
ab9b9eab
VZ
9650 # Screen out bogus values from the imake configuration. They are
9651 # bogus both because they are the default anyway, and because
9652 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 9653 case "$ac_im_incroot" in
ab9b9eab 9654 /usr/include) ;;
698dcdb6 9655 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 9656 esac
698dcdb6 9657 case "$ac_im_usrlibdir" in
ab9b9eab 9658 /usr/lib | /lib) ;;
698dcdb6 9659 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 9660 esac
ba337fe7 9661 fi
ab9b9eab 9662 cd ..
698dcdb6 9663 rm -fr conftestdir
ab9b9eab 9664fi
10f2d63a 9665
698dcdb6
VZ
9666if test "$ac_x_includes" = NO; then
9667 # Guess where to find include files, by looking for this one X11 .h file.
9668 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9669
ab9b9eab 9670 # First, try using that file with no special directory specified.
698dcdb6 9671cat > conftest.$ac_ext <<EOF
6853365e 9672#line 9673 "configure"
ab9b9eab 9673#include "confdefs.h"
698dcdb6
VZ
9674#include <$x_direct_test_include>
9675EOF
9676ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6853365e 9677{ (eval echo configure:9678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
9678ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9679if test -z "$ac_err"; then
9680 rm -rf conftest*
ab9b9eab
VZ
9681 # We can compile using X headers with no special include directory.
9682ac_x_includes=
9683else
698dcdb6
VZ
9684 echo "$ac_err" >&5
9685 echo "configure: failed program was:" >&5
ab9b9eab 9686 cat conftest.$ac_ext >&5
698dcdb6
VZ
9687 rm -rf conftest*
9688 # Look for the header file in a standard set of common directories.
9689# Check X11 before X11Rn because it is often a symlink to the current release.
9690 for ac_dir in \
9691 /usr/X11/include \
9692 /usr/X11R6/include \
9693 /usr/X11R5/include \
9694 /usr/X11R4/include \
9695 \
9696 /usr/include/X11 \
9697 /usr/include/X11R6 \
9698 /usr/include/X11R5 \
9699 /usr/include/X11R4 \
9700 \
9701 /usr/local/X11/include \
9702 /usr/local/X11R6/include \
9703 /usr/local/X11R5/include \
9704 /usr/local/X11R4/include \
9705 \
9706 /usr/local/include/X11 \
9707 /usr/local/include/X11R6 \
9708 /usr/local/include/X11R5 \
9709 /usr/local/include/X11R4 \
9710 \
9711 /usr/X386/include \
9712 /usr/x386/include \
9713 /usr/XFree86/include/X11 \
9714 \
9715 /usr/include \
9716 /usr/local/include \
9717 /usr/unsupported/include \
9718 /usr/athena/include \
9719 /usr/local/x11r5/include \
9720 /usr/lpp/Xamples/include \
9721 \
9722 /usr/openwin/include \
9723 /usr/openwin/share/include \
9724 ; \
9725 do
9726 if test -r "$ac_dir/$x_direct_test_include"; then
9727 ac_x_includes=$ac_dir
9728 break
9729 fi
9730 done
ab9b9eab 9731fi
698dcdb6
VZ
9732rm -f conftest*
9733fi # $ac_x_includes = NO
10f2d63a 9734
698dcdb6 9735if test "$ac_x_libraries" = NO; then
ab9b9eab 9736 # Check for the libraries.
698dcdb6
VZ
9737
9738 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9739 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9740
ab9b9eab
VZ
9741 # See if we find them without any special options.
9742 # Don't add to $LIBS permanently.
698dcdb6
VZ
9743 ac_save_LIBS="$LIBS"
9744 LIBS="-l$x_direct_test_library $LIBS"
9745cat > conftest.$ac_ext <<EOF
6853365e 9746#line 9747 "configure"
ab9b9eab 9747#include "confdefs.h"
698dcdb6
VZ
9748
9749int main() {
9750${x_direct_test_function}()
9751; return 0; }
9752EOF
6853365e 9753if { (eval echo configure:9754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9754 rm -rf conftest*
9755 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
9756# We can link X programs with no special library path.
9757ac_x_libraries=
9758else
698dcdb6
VZ
9759 echo "configure: failed program was:" >&5
9760 cat conftest.$ac_ext >&5
9761 rm -rf conftest*
9762 LIBS="$ac_save_LIBS"
9763# First see if replacing the include by lib works.
9764# Check X11 before X11Rn because it is often a symlink to the current release.
9765for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9766 /usr/X11/lib \
9767 /usr/X11R6/lib \
9768 /usr/X11R5/lib \
9769 /usr/X11R4/lib \
9770 \
9771 /usr/lib/X11 \
9772 /usr/lib/X11R6 \
9773 /usr/lib/X11R5 \
9774 /usr/lib/X11R4 \
9775 \
9776 /usr/local/X11/lib \
9777 /usr/local/X11R6/lib \
9778 /usr/local/X11R5/lib \
9779 /usr/local/X11R4/lib \
9780 \
9781 /usr/local/lib/X11 \
9782 /usr/local/lib/X11R6 \
9783 /usr/local/lib/X11R5 \
9784 /usr/local/lib/X11R4 \
9785 \
9786 /usr/X386/lib \
9787 /usr/x386/lib \
9788 /usr/XFree86/lib/X11 \
9789 \
9790 /usr/lib \
9791 /usr/local/lib \
9792 /usr/unsupported/lib \
9793 /usr/athena/lib \
9794 /usr/local/x11r5/lib \
9795 /usr/lpp/Xamples/lib \
9796 /lib/usr/lib/X11 \
9797 \
9798 /usr/openwin/lib \
9799 /usr/openwin/share/lib \
9800 ; \
ab9b9eab
VZ
9801do
9802 for ac_extension in a so sl; do
698dcdb6 9803 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
9804 ac_x_libraries=$ac_dir
9805 break 2
10f2d63a 9806 fi
10f2d63a 9807 done
ab9b9eab
VZ
9808done
9809fi
698dcdb6
VZ
9810rm -f conftest*
9811fi # $ac_x_libraries = NO
10f2d63a 9812
698dcdb6 9813if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
9814 # Didn't find X anywhere. Cache the known absence of X.
9815 ac_cv_have_x="have_x=no"
9816else
9817 # Record where we found X for the cache.
9818 ac_cv_have_x="have_x=yes \
9819 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9820fi
9821fi
10f2d63a 9822 fi
ab9b9eab
VZ
9823 eval "$ac_cv_have_x"
9824fi # $with_x != no
10f2d63a 9825
ab9b9eab 9826if test "$have_x" != yes; then
698dcdb6 9827 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
9828 no_x=yes
9829else
9830 # If each of the values was on the command line, it overrides each guess.
9831 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9832 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9833 # Update the cache value to reflect the command line values.
9834 ac_cv_have_x="have_x=yes \
9835 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 9836 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 9837fi
10f2d63a 9838
ab9b9eab
VZ
9839if test "$no_x" = yes; then
9840 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 9841 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
9842#define X_DISPLAY_MISSING 1
9843EOF
10f2d63a 9844
ab9b9eab
VZ
9845 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9846else
9847 if test -n "$x_includes"; then
9848 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
9849 fi
9850
ab9b9eab
VZ
9851 # It would also be nice to do this for all -L options, not just this one.
9852 if test -n "$x_libraries"; then
9853 X_LIBS="$X_LIBS -L$x_libraries"
9854 # For Solaris; some versions of Sun CC require a space after -R and
9855 # others require no space. Words are not sufficient . . . .
698dcdb6 9856 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 9857 "SunOS 5"*)
698dcdb6 9858 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6853365e 9859echo "configure:9860: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
9860 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
9861 cat > conftest.$ac_ext <<EOF
6853365e 9862#line 9863 "configure"
ab9b9eab 9863#include "confdefs.h"
10f2d63a 9864
698dcdb6 9865int main() {
788deba1 9866
698dcdb6
VZ
9867; return 0; }
9868EOF
6853365e 9869if { (eval echo configure:9870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9870 rm -rf conftest*
ab9b9eab
VZ
9871 ac_R_nospace=yes
9872else
698dcdb6
VZ
9873 echo "configure: failed program was:" >&5
9874 cat conftest.$ac_ext >&5
9875 rm -rf conftest*
9876 ac_R_nospace=no
ab9b9eab 9877fi
698dcdb6 9878rm -f conftest*
ab9b9eab 9879 if test $ac_R_nospace = yes; then
698dcdb6 9880 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9881 X_LIBS="$X_LIBS -R$x_libraries"
9882 else
9883 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 9884 cat > conftest.$ac_ext <<EOF
6853365e 9885#line 9886 "configure"
ab9b9eab 9886#include "confdefs.h"
788deba1 9887
698dcdb6 9888int main() {
ab9b9eab 9889
698dcdb6
VZ
9890; return 0; }
9891EOF
6853365e 9892if { (eval echo configure:9893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9893 rm -rf conftest*
ab9b9eab
VZ
9894 ac_R_space=yes
9895else
698dcdb6
VZ
9896 echo "configure: failed program was:" >&5
9897 cat conftest.$ac_ext >&5
9898 rm -rf conftest*
9899 ac_R_space=no
ab9b9eab 9900fi
698dcdb6 9901rm -f conftest*
ab9b9eab 9902 if test $ac_R_space = yes; then
698dcdb6 9903 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
9904 X_LIBS="$X_LIBS -R $x_libraries"
9905 else
698dcdb6 9906 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
9907 fi
9908 fi
698dcdb6 9909 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
9910 esac
9911 fi
9912
9913 # Check for system-dependent libraries X programs must link with.
9914 # Do this before checking for the system-independent R6 libraries
9915 # (-lICE), since we may need -lsocket or whatever for X linking.
9916
9917 if test "$ISC" = yes; then
9918 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9919 else
698dcdb6
VZ
9920 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
9921 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 9922 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 9923 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6853365e 9924echo "configure:9925: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
9925ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9926if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9927 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9928else
698dcdb6 9929 ac_save_LIBS="$LIBS"
ab9b9eab 9930LIBS="-ldnet $LIBS"
698dcdb6 9931cat > conftest.$ac_ext <<EOF
6853365e 9932#line 9933 "configure"
ab9b9eab
VZ
9933#include "confdefs.h"
9934/* Override any gcc2 internal prototype to avoid an error. */
9935/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9936 builtin and then its argument prototype would still apply. */
9937char dnet_ntoa();
9938
9939int main() {
9940dnet_ntoa()
9941; return 0; }
9942EOF
6853365e 9943if { (eval echo configure:9944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9944 rm -rf conftest*
9945 eval "ac_cv_lib_$ac_lib_var=yes"
9946else
9947 echo "configure: failed program was:" >&5
9948 cat conftest.$ac_ext >&5
9949 rm -rf conftest*
9950 eval "ac_cv_lib_$ac_lib_var=no"
9951fi
9952rm -f conftest*
9953LIBS="$ac_save_LIBS"
9954
9955fi
9956if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9957 echo "$ac_t""yes" 1>&6
ab9b9eab 9958 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
9959else
9960 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9961fi
9962
9963 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 9964 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6853365e 9965echo "configure:9966: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
9966ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9967if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9968 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9969else
698dcdb6 9970 ac_save_LIBS="$LIBS"
ab9b9eab 9971LIBS="-ldnet_stub $LIBS"
698dcdb6 9972cat > conftest.$ac_ext <<EOF
6853365e 9973#line 9974 "configure"
ab9b9eab
VZ
9974#include "confdefs.h"
9975/* Override any gcc2 internal prototype to avoid an error. */
9976/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9977 builtin and then its argument prototype would still apply. */
9978char dnet_ntoa();
9979
9980int main() {
9981dnet_ntoa()
9982; return 0; }
9983EOF
6853365e 9984if { (eval echo configure:9985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9985 rm -rf conftest*
9986 eval "ac_cv_lib_$ac_lib_var=yes"
9987else
9988 echo "configure: failed program was:" >&5
9989 cat conftest.$ac_ext >&5
9990 rm -rf conftest*
9991 eval "ac_cv_lib_$ac_lib_var=no"
9992fi
9993rm -f conftest*
9994LIBS="$ac_save_LIBS"
9995
9996fi
9997if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9998 echo "$ac_t""yes" 1>&6
ab9b9eab 9999 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
10000else
10001 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10002fi
10003
10004 fi
10005
10006 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10007 # to get the SysV transport functions.
698dcdb6 10008 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
10009 # needs -lnsl.
10010 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
10011 # on Irix 5.2, according to dickey@clark.net.
10012 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6853365e 10013echo "configure:10014: checking for gethostbyname" >&5
698dcdb6
VZ
10014if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10015 echo $ac_n "(cached) $ac_c" 1>&6
10016else
10017 cat > conftest.$ac_ext <<EOF
6853365e 10018#line 10019 "configure"
ab9b9eab
VZ
10019#include "confdefs.h"
10020/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10021 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
10022#include <assert.h>
10023/* Override any gcc2 internal prototype to avoid an error. */
10024/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10025 builtin and then its argument prototype would still apply. */
10026char gethostbyname();
10027
10028int main() {
ab9b9eab
VZ
10029
10030/* The GNU C library defines this for functions which it implements
10031 to always fail with ENOSYS. Some functions are actually named
10032 something starting with __ and the normal name is an alias. */
10033#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10034choke me
10035#else
698dcdb6 10036gethostbyname();
ab9b9eab
VZ
10037#endif
10038
698dcdb6
VZ
10039; return 0; }
10040EOF
6853365e 10041if { (eval echo configure:10042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10042 rm -rf conftest*
10043 eval "ac_cv_func_gethostbyname=yes"
10044else
10045 echo "configure: failed program was:" >&5
10046 cat conftest.$ac_ext >&5
10047 rm -rf conftest*
10048 eval "ac_cv_func_gethostbyname=no"
10049fi
10050rm -f conftest*
10051fi
10052
10053if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10054 echo "$ac_t""yes" 1>&6
10055 :
10056else
10057 echo "$ac_t""no" 1>&6
10058fi
ab9b9eab
VZ
10059
10060 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 10061 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6853365e 10062echo "configure:10063: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
10063ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10064if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10065 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10066else
698dcdb6 10067 ac_save_LIBS="$LIBS"
ab9b9eab 10068LIBS="-lnsl $LIBS"
698dcdb6 10069cat > conftest.$ac_ext <<EOF
6853365e 10070#line 10071 "configure"
ab9b9eab
VZ
10071#include "confdefs.h"
10072/* Override any gcc2 internal prototype to avoid an error. */
10073/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10074 builtin and then its argument prototype would still apply. */
10075char gethostbyname();
6232543b 10076
698dcdb6
VZ
10077int main() {
10078gethostbyname()
10079; return 0; }
10080EOF
6853365e 10081if { (eval echo configure:10082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10082 rm -rf conftest*
10083 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 10084else
698dcdb6
VZ
10085 echo "configure: failed program was:" >&5
10086 cat conftest.$ac_ext >&5
10087 rm -rf conftest*
10088 eval "ac_cv_lib_$ac_lib_var=no"
10089fi
10090rm -f conftest*
10091LIBS="$ac_save_LIBS"
1e487827 10092
698dcdb6
VZ
10093fi
10094if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10095 echo "$ac_t""yes" 1>&6
10096 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10097else
10098 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10099fi
10100
10101 fi
10102
10103 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10104 # socket/setsockopt and other routines are undefined under SCO ODT
10105 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
10106 # on later versions), says simon@lia.di.epfl.ch: it contains
10107 # gethostby* variants that don't use the nameserver (or something).
10108 # -lsocket must be given before -lnsl if both are needed.
10109 # We assume that if connect needs -lnsl, so does gethostbyname.
10110 echo $ac_n "checking for connect""... $ac_c" 1>&6
6853365e 10111echo "configure:10112: checking for connect" >&5
698dcdb6
VZ
10112if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
10113 echo $ac_n "(cached) $ac_c" 1>&6
10114else
10115 cat > conftest.$ac_ext <<EOF
6853365e 10116#line 10117 "configure"
ab9b9eab
VZ
10117#include "confdefs.h"
10118/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10119 which can conflict with char connect(); below. */
ab9b9eab
VZ
10120#include <assert.h>
10121/* Override any gcc2 internal prototype to avoid an error. */
10122/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10123 builtin and then its argument prototype would still apply. */
10124char connect();
10125
10126int main() {
ab9b9eab
VZ
10127
10128/* The GNU C library defines this for functions which it implements
10129 to always fail with ENOSYS. Some functions are actually named
10130 something starting with __ and the normal name is an alias. */
10131#if defined (__stub_connect) || defined (__stub___connect)
10132choke me
10133#else
698dcdb6 10134connect();
ab9b9eab
VZ
10135#endif
10136
698dcdb6
VZ
10137; return 0; }
10138EOF
6853365e 10139if { (eval echo configure:10140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10140 rm -rf conftest*
10141 eval "ac_cv_func_connect=yes"
10142else
10143 echo "configure: failed program was:" >&5
10144 cat conftest.$ac_ext >&5
10145 rm -rf conftest*
10146 eval "ac_cv_func_connect=no"
10147fi
10148rm -f conftest*
10149fi
10150
10151if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
10152 echo "$ac_t""yes" 1>&6
10153 :
10154else
10155 echo "$ac_t""no" 1>&6
10156fi
ab9b9eab
VZ
10157
10158 if test $ac_cv_func_connect = no; then
698dcdb6 10159 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
6853365e 10160echo "configure:10161: checking for connect in -lsocket" >&5
698dcdb6
VZ
10161ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
10162if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10163 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10164else
698dcdb6 10165 ac_save_LIBS="$LIBS"
ab9b9eab 10166LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 10167cat > conftest.$ac_ext <<EOF
6853365e 10168#line 10169 "configure"
ab9b9eab
VZ
10169#include "confdefs.h"
10170/* Override any gcc2 internal prototype to avoid an error. */
10171/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10172 builtin and then its argument prototype would still apply. */
10173char connect();
10174
10175int main() {
10176connect()
10177; return 0; }
10178EOF
6853365e 10179if { (eval echo configure:10180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10180 rm -rf conftest*
10181 eval "ac_cv_lib_$ac_lib_var=yes"
10182else
10183 echo "configure: failed program was:" >&5
10184 cat conftest.$ac_ext >&5
10185 rm -rf conftest*
10186 eval "ac_cv_lib_$ac_lib_var=no"
10187fi
10188rm -f conftest*
10189LIBS="$ac_save_LIBS"
10190
10191fi
10192if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10193 echo "$ac_t""yes" 1>&6
ab9b9eab 10194 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
10195else
10196 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10197fi
10198
10199 fi
10200
698dcdb6
VZ
10201 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
10202 echo $ac_n "checking for remove""... $ac_c" 1>&6
6853365e 10203echo "configure:10204: checking for remove" >&5
698dcdb6
VZ
10204if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
10205 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10206else
698dcdb6 10207 cat > conftest.$ac_ext <<EOF
6853365e 10208#line 10209 "configure"
ab9b9eab
VZ
10209#include "confdefs.h"
10210/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10211 which can conflict with char remove(); below. */
ab9b9eab
VZ
10212#include <assert.h>
10213/* Override any gcc2 internal prototype to avoid an error. */
10214/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10215 builtin and then its argument prototype would still apply. */
10216char remove();
10217
10218int main() {
ab9b9eab
VZ
10219
10220/* The GNU C library defines this for functions which it implements
10221 to always fail with ENOSYS. Some functions are actually named
10222 something starting with __ and the normal name is an alias. */
10223#if defined (__stub_remove) || defined (__stub___remove)
10224choke me
10225#else
698dcdb6 10226remove();
ab9b9eab
VZ
10227#endif
10228
698dcdb6
VZ
10229; return 0; }
10230EOF
6853365e 10231if { (eval echo configure:10232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10232 rm -rf conftest*
10233 eval "ac_cv_func_remove=yes"
10234else
10235 echo "configure: failed program was:" >&5
10236 cat conftest.$ac_ext >&5
10237 rm -rf conftest*
10238 eval "ac_cv_func_remove=no"
10239fi
10240rm -f conftest*
10241fi
10242
10243if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
10244 echo "$ac_t""yes" 1>&6
10245 :
10246else
10247 echo "$ac_t""no" 1>&6
10248fi
ab9b9eab
VZ
10249
10250 if test $ac_cv_func_remove = no; then
698dcdb6 10251 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6853365e 10252echo "configure:10253: checking for remove in -lposix" >&5
698dcdb6
VZ
10253ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
10254if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10255 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10256else
698dcdb6 10257 ac_save_LIBS="$LIBS"
ab9b9eab 10258LIBS="-lposix $LIBS"
698dcdb6 10259cat > conftest.$ac_ext <<EOF
6853365e 10260#line 10261 "configure"
ab9b9eab
VZ
10261#include "confdefs.h"
10262/* Override any gcc2 internal prototype to avoid an error. */
10263/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10264 builtin and then its argument prototype would still apply. */
10265char remove();
10266
10267int main() {
10268remove()
10269; return 0; }
10270EOF
6853365e 10271if { (eval echo configure:10272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10272 rm -rf conftest*
10273 eval "ac_cv_lib_$ac_lib_var=yes"
10274else
10275 echo "configure: failed program was:" >&5
10276 cat conftest.$ac_ext >&5
10277 rm -rf conftest*
10278 eval "ac_cv_lib_$ac_lib_var=no"
10279fi
10280rm -f conftest*
10281LIBS="$ac_save_LIBS"
10282
10283fi
10284if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10285 echo "$ac_t""yes" 1>&6
ab9b9eab 10286 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
10287else
10288 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10289fi
10290
10291 fi
10292
10293 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 10294 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6853365e 10295echo "configure:10296: checking for shmat" >&5
698dcdb6
VZ
10296if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
10297 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10298else
698dcdb6 10299 cat > conftest.$ac_ext <<EOF
6853365e 10300#line 10301 "configure"
ab9b9eab
VZ
10301#include "confdefs.h"
10302/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10303 which can conflict with char shmat(); below. */
ab9b9eab
VZ
10304#include <assert.h>
10305/* Override any gcc2 internal prototype to avoid an error. */
10306/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10307 builtin and then its argument prototype would still apply. */
10308char shmat();
10309
10310int main() {
ab9b9eab
VZ
10311
10312/* The GNU C library defines this for functions which it implements
10313 to always fail with ENOSYS. Some functions are actually named
10314 something starting with __ and the normal name is an alias. */
10315#if defined (__stub_shmat) || defined (__stub___shmat)
10316choke me
10317#else
698dcdb6 10318shmat();
ab9b9eab
VZ
10319#endif
10320
698dcdb6
VZ
10321; return 0; }
10322EOF
6853365e 10323if { (eval echo configure:10324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10324 rm -rf conftest*
10325 eval "ac_cv_func_shmat=yes"
10326else
10327 echo "configure: failed program was:" >&5
10328 cat conftest.$ac_ext >&5
10329 rm -rf conftest*
10330 eval "ac_cv_func_shmat=no"
10331fi
10332rm -f conftest*
10333fi
10334
10335if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
10336 echo "$ac_t""yes" 1>&6
10337 :
10338else
10339 echo "$ac_t""no" 1>&6
10340fi
ab9b9eab
VZ
10341
10342 if test $ac_cv_func_shmat = no; then
698dcdb6 10343 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6853365e 10344echo "configure:10345: checking for shmat in -lipc" >&5
698dcdb6
VZ
10345ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
10346if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10347 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10348else
698dcdb6 10349 ac_save_LIBS="$LIBS"
ab9b9eab 10350LIBS="-lipc $LIBS"
698dcdb6 10351cat > conftest.$ac_ext <<EOF
6853365e 10352#line 10353 "configure"
ab9b9eab
VZ
10353#include "confdefs.h"
10354/* Override any gcc2 internal prototype to avoid an error. */
10355/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10356 builtin and then its argument prototype would still apply. */
10357char shmat();
10358
10359int main() {
10360shmat()
10361; return 0; }
10362EOF
6853365e 10363if { (eval echo configure:10364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10364 rm -rf conftest*
10365 eval "ac_cv_lib_$ac_lib_var=yes"
10366else
10367 echo "configure: failed program was:" >&5
10368 cat conftest.$ac_ext >&5
10369 rm -rf conftest*
10370 eval "ac_cv_lib_$ac_lib_var=no"
10371fi
10372rm -f conftest*
10373LIBS="$ac_save_LIBS"
10374
10375fi
10376if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10377 echo "$ac_t""yes" 1>&6
ab9b9eab 10378 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
10379else
10380 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10381fi
10382
10383 fi
10384 fi
10385
10386 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 10387 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
10388 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10389 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10390 # check for ICE first), but we must link in the order -lSM -lICE or
10391 # we get undefined symbols. So assume we have SM if we have ICE.
10392 # These have to be linked with before -lX11, unlike the other
10393 # libraries we check for below, so use a different variable.
698dcdb6
VZ
10394 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10395 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
6853365e 10396echo "configure:10397: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
10397ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10398if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10399 echo $ac_n "(cached) $ac_c" 1>&6
10400else
10401 ac_save_LIBS="$LIBS"
ab9b9eab 10402LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 10403cat > conftest.$ac_ext <<EOF
6853365e 10404#line 10405 "configure"
ab9b9eab
VZ
10405#include "confdefs.h"
10406/* Override any gcc2 internal prototype to avoid an error. */
10407/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10408 builtin and then its argument prototype would still apply. */
10409char IceConnectionNumber();
10410
10411int main() {
10412IceConnectionNumber()
10413; return 0; }
10414EOF
6853365e 10415if { (eval echo configure:10416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10416 rm -rf conftest*
10417 eval "ac_cv_lib_$ac_lib_var=yes"
10418else
10419 echo "configure: failed program was:" >&5
10420 cat conftest.$ac_ext >&5
10421 rm -rf conftest*
10422 eval "ac_cv_lib_$ac_lib_var=no"
10423fi
10424rm -f conftest*
10425LIBS="$ac_save_LIBS"
10426
10427fi
10428if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10429 echo "$ac_t""yes" 1>&6
ab9b9eab 10430 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
10431else
10432 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10433fi
10434
698dcdb6 10435 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
10436
10437fi
10438
1e6feb95
VZ
10439 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10440 LDFLAGS="$LDFLAGS $X_LIBS"
ab9b9eab 10441
1e6feb95
VZ
10442 if test "$wxUSE_MOTIF" = 1; then
10443 if test "$no_x" = "yes"; then
10444 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10445 fi
ab9b9eab 10446
1e6feb95
VZ
10447 GUI_TK_LIBRARY="$X_LIBS"
10448 TOOLKIT_INCLUDE="$X_CFLAGS"
ab9b9eab 10449
1e6feb95 10450 AFMINSTALL=afminstall
dad6c0ea 10451
1e6feb95
VZ
10452
10453 COMPILED_X_PROGRAM=0
cd6d6d5b 10454
1e6feb95 10455 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
6853365e 10456echo "configure:10457: checking for Motif/Lesstif headers" >&5
1e6feb95 10457
ab9b9eab
VZ
10458ac_find_includes=
10459for ac_dir in $SEARCH_INCLUDE;
10460 do
10461 if test -f "$ac_dir/Xm/Xm.h"; then
10462 ac_find_includes=$ac_dir
10463 break
10464 fi
10465 done
10466
1e6feb95
VZ
10467 if test "$ac_find_includes" != "" ; then
10468 echo "$ac_t""found $ac_find_includes" 1>&6
10469 else
10470 cat > conftest.$ac_ext <<EOF
6853365e 10471#line 10472 "configure"
cd6d6d5b
VZ
10472#include "confdefs.h"
10473
1e6feb95
VZ
10474 #include <Xm/Xm.h>
10475
698dcdb6 10476int main() {
cd6d6d5b 10477
1e6feb95 10478 int version;
cd6d6d5b 10479
1e6feb95
VZ
10480 version = xmUseVersion;
10481
698dcdb6
VZ
10482; return 0; }
10483EOF
6853365e 10484if { (eval echo configure:10485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10485 rm -rf conftest*
10486
1e6feb95
VZ
10487 echo "$ac_t""found in default search path" 1>&6
10488 COMPILED_X_PROGRAM=1
10489
cd6d6d5b 10490else
698dcdb6
VZ
10491 echo "configure: failed program was:" >&5
10492 cat conftest.$ac_ext >&5
10493 rm -rf conftest*
10494
1e6feb95
VZ
10495 echo "$ac_t""no" 1>&6
10496 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10497
698dcdb6 10498
cd6d6d5b 10499fi
698dcdb6 10500rm -f conftest*
1e6feb95 10501 fi
ab9b9eab 10502
1e6feb95
VZ
10503 if test "$COMPILED_X_PROGRAM" = 0; then
10504 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
6853365e 10505echo "configure:10506: checking for Motif/Lesstif library" >&5
1e6feb95 10506
ab9b9eab
VZ
10507ac_find_libraries=
10508for ac_dir in $SEARCH_LIB;
10509 do
f11bdd03 10510 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
10511 if test -f "$ac_dir/libXm.$ac_extension"; then
10512 ac_find_libraries=$ac_dir
10513 break 2
10514 fi
10515 done
10516 done
10517
1e6feb95
VZ
10518 if test "$ac_find_libraries" != "" ; then
10519
ab9b9eab
VZ
10520 ac_path_to_include=$ac_find_includes
10521 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10522 result=$?
10523 if test $result = 0; then
10524 ac_path_to_include=""
10525 else
10526 ac_path_to_include="-I$ac_find_includes"
10527 fi
10528
1e6feb95 10529
ab9b9eab
VZ
10530 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10531 result=$?
10532 if test $result = 0; then
10533 ac_path_to_link=""
10534 else
10535 ac_path_to_link="-L$ac_find_libraries"
10536 fi
10537
698dcdb6 10538
1e6feb95
VZ
10539 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10540 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10541 echo "$ac_t""found at $ac_find_libraries" 1>&6
10542 else
10543 cat > conftest.$ac_ext <<EOF
6853365e 10544#line 10545 "configure"
cd6d6d5b 10545#include "confdefs.h"
ab9b9eab 10546
1e6feb95
VZ
10547 #include <Xm/Xm.h>
10548
698dcdb6 10549int main() {
ab9b9eab 10550
1e6feb95 10551 int version;
ab9b9eab 10552
1e6feb95
VZ
10553 version = xmUseVersion;
10554
698dcdb6
VZ
10555; return 0; }
10556EOF
6853365e 10557if { (eval echo configure:10558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10558 rm -rf conftest*
10559
1e6feb95
VZ
10560 echo "$ac_t""found in default search path" 1>&6
10561 COMPILED_X_PROGRAM=1
10562
cd6d6d5b 10563else
698dcdb6
VZ
10564 echo "configure: failed program was:" >&5
10565 cat conftest.$ac_ext >&5
10566 rm -rf conftest*
10567
1e6feb95
VZ
10568 echo "$ac_t""no" 1>&6
10569 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10570
698dcdb6 10571
cd6d6d5b 10572fi
698dcdb6 10573rm -f conftest*
1e6feb95 10574 fi
cd6d6d5b 10575 fi
ab9b9eab 10576
1e6feb95
VZ
10577
10578 XPM_LINK=""
10579 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
6853365e 10580echo "configure:10581: checking for Xpm library" >&5
1e6feb95 10581
ab9b9eab
VZ
10582ac_find_libraries=
10583for ac_dir in $SEARCH_LIB;
10584 do
f11bdd03 10585 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
10586 if test -f "$ac_dir/libXpm.$ac_extension"; then
10587 ac_find_libraries=$ac_dir
10588 break 2
10589 fi
10590 done
10591 done
10592
1e6feb95
VZ
10593 if test "$ac_find_libraries" != "" ; then
10594
ab9b9eab
VZ
10595 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10596 result=$?
10597 if test $result = 0; then
10598 ac_path_to_link=""
10599 else
10600 ac_path_to_link="-L$ac_find_libraries"
10601 fi
10602
1e6feb95
VZ
10603 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10604 XPM_LINK="-lXpm "
10605 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
10606#define wxHAVE_LIB_XPM 1
10607EOF
10608
1e6feb95
VZ
10609 echo "$ac_t""found at $ac_find_libraries" 1>&6
10610 else
10611 cat > conftest.$ac_ext <<EOF
6853365e 10612#line 10613 "configure"
cd6d6d5b
VZ
10613#include "confdefs.h"
10614
1e6feb95
VZ
10615 #include <X11/xpm.h>
10616
698dcdb6 10617int main() {
cd6d6d5b 10618
1e6feb95 10619 int version;
cd6d6d5b 10620
1e6feb95
VZ
10621 version = XpmLibraryVersion();
10622
698dcdb6
VZ
10623; return 0; }
10624EOF
6853365e 10625if { (eval echo configure:10626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10626 rm -rf conftest*
10627
1e6feb95
VZ
10628 XPM_LINK="-lXpm "
10629 cat >> confdefs.h <<\EOF
3ace2e6d
SN
10630#define wxHAVE_LIB_XPM 1
10631EOF
10632
1e6feb95
VZ
10633 echo "$ac_t""found in default search path" 1>&6
10634 COMPILED_X_PROGRAM=0
10635
cd6d6d5b 10636else
698dcdb6
VZ
10637 echo "configure: failed program was:" >&5
10638 cat conftest.$ac_ext >&5
10639 rm -rf conftest*
10640
1e6feb95
VZ
10641 echo "$ac_t""no" 1>&6
10642 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10643
698dcdb6 10644
cd6d6d5b 10645fi
698dcdb6 10646rm -f conftest*
1e6feb95
VZ
10647 fi
10648
10649 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
10650 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
10651 TOOLKIT=MOTIF
10652 GUIDIST=MOTIF_DIST
ab9b9eab
VZ
10653 fi
10654
1e6feb95
VZ
10655 if test "$wxUSE_MAC" = 1; then
10656 TOOLKIT=MAC
10657 GUIDIST=MACX_DIST
10658 fi
10f2d63a 10659
1e6feb95
VZ
10660 if test "$wxUSE_PM" = 1; then
10661 TOOLKIT=PM
10662 GUIDIST=GTK_DIST
10663 fi
b4085ce6 10664
1e6feb95
VZ
10665 if test "$TOOLKIT" != "PM" ; then
10666 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10667 else
10668 TOOLKIT_DIR="os2"
10669 fi
e07802fc 10670
1e6feb95 10671 TOOLKIT_NAME="${TOOLKIT_DIR}"
10f2d63a 10672
1e6feb95
VZ
10673 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10674
10675 if test "$TOOLKIT_NAME" = "motif"; then
10676 TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10677 fi
10678
10679 if test "$wxUSE_UNIVERSAL" = "yes"; then
10680 TOOLKIT_NAME="${TOOLKIT_NAME}univ"
10681 UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
10682 TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}"
10683 SETUPH_DIR="univ"
f6bcfd97 10684 else
1e6feb95
VZ
10685 SETUPH_DIR="${TOOLKIT_DIR}"
10686 fi
10687
10688 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10689 TOOLKIT_NAME="${TOOLKIT_NAME}d"
f6bcfd97
BP
10690 fi
10691
2224580a 10692 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
1e6feb95
VZ
10693 if test "$wxUSE_UNIVERSAL" = "yes"; then
10694 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__"
10695 fi
10f2d63a 10696
f6bcfd97 10697 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10f2d63a 10698
1e6feb95
VZ
10699 if test "$wxUSE_UNIVERSAL" = "yes"; then
10700 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10701 else
10702 ALL_OBJECTS="\$(GUIOBJS)"
10703 fi
10704
10705 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10706
10707 if test "$TOOLKIT" != "MSW"; then
10708 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10709 fi
10710
10711 if test "$wxUSE_HTML" = "yes"; then
10712 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10713 fi
3fcdd07b 10714
1e6feb95
VZ
10715 if test "$TOOLKIT" != "MSW"; then
10716 if test "$wxUSE_ODBC" = "yes" ; then
10717 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10718 fi
3fcdd07b
VZ
10719 fi
10720
831b3152
VZ
10721 if test "x$REGEX_INCLUDE" != "x" ; then
10722 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10723 fi
10724
d9d8273d 10725 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 10726 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
10727 fi
10728 if test "$wxUSE_LIBTIFF" = "yes" ; then
10729 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10730 fi
10731 if test "$wxUSE_LIBPNG" = "yes" ; then
10732 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10733 fi
10734 if test "$wxUSE_ZLIB" = "yes" ; then
10735 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10736 fi
3fed1840
RR
10737 if test "$wxUSE_FREETYPE" = "yes" ; then
10738 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10739 fi
2224580a 10740
1e6feb95
VZ
10741 if test "$wxUSE_UNIVERSAL" = "yes"; then
10742 ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)"
10743 else
10744 ALL_DEPFILES="\$(GUIDEPS)"
10745 fi
10746
10747 ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)"
10748
10749 if test "$TOOLKIT" != "MSW"; then
10750 ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)"
10751 fi
10752
10753 if test "$wxUSE_HTML" = "yes"; then
10754 ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)"
10755 fi
10756
879df073 10757 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
1e6feb95 10758 if test "$wxUSE_UNIVERSAL" = "yes"; then
879df073 10759 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
1e6feb95 10760 fi
2224580a
VZ
10761 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10762 RPM_SPEC="wx\$(TOOLKIT).spec"
10763
10764 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10765 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 10766else
dad6c0ea
VZ
10767 USE_GUI=0
10768
f6bcfd97
BP
10769 TOOLKIT_DIR="base"
10770
0b2effe9
VZ
10771 TOOLKIT_VPATH="."
10772
f6bcfd97
BP
10773 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10774 TOOLKIT_NAME="${TOOLKIT_DIR}d"
10775 else
10776 TOOLKIT_NAME="${TOOLKIT_DIR}"
10777 fi
10778
07eb77a6
RL
10779 TOOLKIT_DEF="-D__WXBASE__"
10780
b4085ce6
GD
10781 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
10782 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10f2d63a 10783
0b2effe9
VZ
10784 if test "x$REGEX_INCLUDE" != "x" ; then
10785 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10786 fi
10787
a20b6d3a
VZ
10788 if test "$wxUSE_ZLIB" = "yes" ; then
10789 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10790 fi
10791
f6bcfd97 10792 WX_LIBRARY="wx_${TOOLKIT_NAME}"
2224580a 10793
831b3152 10794 PORT_FILES="\${top_srcdir}/src/files.lst"
2224580a
VZ
10795 RPM_FILES="src/rpmfiles.lst"
10796 RPM_SPEC="wxBase.spec"
10797
10798 GUIDIST="BASE_DIST"
10799 DISTDIR="wxBase"
10f2d63a
VZ
10800fi
10801
10802WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
bdad4e7e 10803WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10f2d63a
VZ
10804
10805WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
bdad4e7e 10806WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10f2d63a
VZ
10807
10808WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
bdad4e7e 10809WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10f2d63a
VZ
10810
10811WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
10812WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
10813WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
bdad4e7e
RR
10814WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
10815WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
10816WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10f2d63a
VZ
10817
10818SHARED_LD=
10819PIC_FLAG=
10820WX_ALL=
10821WX_ALL_INSTALLED=
1d62a8b4 10822BURNT_LIBRARY_NAME=
f6bcfd97 10823WX_TARGET_LIBRARY_SONAME=
10f2d63a 10824
698dcdb6 10825
10f2d63a
VZ
10826if test "$wxUSE_SHARED" = "yes"; then
10827 case "${host}" in
10828 *-hp-hpux* )
10829 if test "$GCC" = yes ; then
69ffe1d2 10830 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
10831 PIC_FLAG="-fPIC"
10832 else
f6bcfd97
BP
10833 LDFLAGS="-L/usr/lib"
10834
10f2d63a
VZ
10835 SHARED_LD="${CXX} -b -o"
10836 PIC_FLAG="+Z"
10837 fi
f6bcfd97
BP
10838 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
10839 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
c661ecca 10840 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 10841 WX_ALL_INSTALLED="preinstall_gl"
c661ecca
RR
10842 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
10843 else
10844 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
10845 fi
10f2d63a 10846 ;;
b12915c1
VZ
10847
10848 *-*-linux* )
10f2d63a
VZ
10849 SHARED_LD="${CC} -shared -o"
10850 PIC_FLAG="-fPIC"
00cf1208 10851 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 10852 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
bdad4e7e 10853 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 10854 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 10855 fi
c661ecca
RR
10856 if test "$wxUSE_OPENGL" = "yes"; then
10857 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10858 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10859 else
10860 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10861 WX_ALL="CREATE_LINKS"
422107f9 10862 fi
00cf1208 10863 ;;
10f2d63a
VZ
10864 *-*-irix5* | *-*-irix6* )
10865 if test "$GCC" = yes ; then
10866 SHARED_LD="${CC} -shared -o"
10867 PIC_FLAG="-fPIC"
10868 else
10869 SHARED_LD="${CXX} -shared -o"
10870 fi
c661ecca
RR
10871 if test "$wxUSE_OPENGL" = "yes"; then
10872 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10873 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10874 else
10875 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10876 WX_ALL="CREATE_LINKS"
422107f9 10877 fi
10f2d63a
VZ
10878 ;;
10879 *-*-solaris2* )
10880 if test "$GCC" = yes ; then
10881 SHARED_LD="${CC} -shared -o"
10882 PIC_FLAG="-fPIC"
f6bcfd97
BP
10883
10884 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
10885 else
10886 SHARED_LD="${CXX} -G -o"
10887 PIC_FLAG="-KPIC"
10888 fi
c661ecca
RR
10889 if test "$wxUSE_OPENGL" = "yes"; then
10890 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10891 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10892 else
10893 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10894 WX_ALL="CREATE_LINKS"
10895 fi
10f2d63a
VZ
10896 ;;
10897 *-*-sunos4* )
10898 SHARED_LD="${CC} -shared -o"
10899 PIC_FLAG="-fPIC"
10900 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10901 WX_ALL="CREATE_LINKS"
10902 ;;
95c8801c 10903 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
10f2d63a
VZ
10904 SHARED_LD="${CC} -shared -o"
10905 PIC_FLAG="-fPIC"
37d403aa
JS
10906 if test "$wxUSE_OPENGL" = "yes"; then
10907 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10908 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10909 else
10910 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10911 WX_ALL="CREATE_LINKS"
10912 fi
10f2d63a 10913 ;;
b4085ce6 10914 *-*-darwin* )
f11bdd03
GD
10915 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__DARWIN__ -D__POWERPC__"
10916 CFLAGS="${CFLAGS} -fno-common"
10917 CPPFLAGS="${CPPFLAGS} -fno-common"
ea5999b9
GD
10918 SHARED_LD="${CXX} -dynamiclib -o"
10919 PIC_FLAG="-dynamic -fPIC"
b4085ce6
GD
10920 if test "$wxUSE_OPENGL" = "yes"; then
10921 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10922 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10923 else
10924 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10925 WX_ALL="CREATE_LINKS"
10926 fi
f11bdd03
GD
10927 if test "$wxUSE_MAC" = 1 ; then
10928 WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
10929 fi
1e6feb95
VZ
10930 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10931 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10932 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
10933 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
10934 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
10935 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
10936 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
10937 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
b4085ce6 10938 ;;
10f2d63a
VZ
10939 *-*-osf* )
10940 SHARED_LD="${CXX} -shared -o"
10941 PIC_FLAG="-fPIC"
10942 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10943 WX_ALL="CREATE_LINKS"
10944 ;;
10945 *-*-dgux5* )
10946 SHARED_LD="${CXX} -shared -o"
10947 PIC_FLAG="-fPIC"
10948 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10949 WX_ALL="CREATE_LINKS"
10950 ;;
10951 *-*-sysv5* )
10952 SHARED_LD="${CC} -shared -o"
10953 PIC_FLAG="-fPIC"
10954 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10955 WX_ALL="CREATE_LINKS"
10956 ;;
10957 *-*-aix* )
10958 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10959 WX_ALL=${WX_LIBRARY_NAME_SHARED}
10960 ;;
1c8183e2 10961 *-*-cygwin* )
10f2d63a 10962 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 10963 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
10964 if test "$wxUSE_OPENGL" = "yes"; then
10965 WX_ALL_INSTALLED="preinstall_gl"
10966 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10967 else
10968 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10969 fi
10f2d63a 10970 ;;
b12915c1 10971 *-*-mingw32* )
10f2d63a 10972 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 10973 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
10974 if test "$wxUSE_OPENGL" = "yes"; then
10975 WX_ALL_INSTALLED="preinstall_gl"
10976 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10977 else
10978 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10979 fi
10f2d63a
VZ
10980 ;;
10981 *-pc-os2_emx )
e07802fc
VZ
10982 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10983 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 10984 ;;
b12915c1 10985 *-*-beos* )
e2b8b066 10986 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
10987 PIC_FLAG="-fPIC"
10988 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10989 WX_ALL="CREATE_LINKS"
10990 ;;
10f2d63a 10991 *)
698dcdb6 10992 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
10993 esac
10994
10995 if test "x$WX_TARGET_LIBRARY" = "x"; then
10996 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 10997 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 10998 fi
3711412e 10999 WX_TARGET_LIBRARY_TYPE="so"
10f2d63a
VZ
11000else
11001 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 11002 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
11003
11004 if test "$wxUSE_OPENGL" = "yes"; then
11005 WX_ALL_INSTALLED="preinstall_gl"
11006 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
11007 else
11008 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
11009 fi
11010
11011 if test "$wxUSE_GUI" = "no"; then
11012 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11013 fi
11014
3711412e 11015 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a
VZ
11016fi
11017
698dcdb6
VZ
11018
11019for ac_hdr in strings.h
10f2d63a 11020do
698dcdb6
VZ
11021ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11022echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6853365e 11023echo "configure:11024: checking for $ac_hdr" >&5
698dcdb6
VZ
11024if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11025 echo $ac_n "(cached) $ac_c" 1>&6
11026else
11027 cat > conftest.$ac_ext <<EOF
6853365e 11028#line 11029 "configure"
10f2d63a 11029#include "confdefs.h"
698dcdb6
VZ
11030#include <$ac_hdr>
11031EOF
11032ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6853365e 11033{ (eval echo configure:11034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11034ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11035if test -z "$ac_err"; then
11036 rm -rf conftest*
11037 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11038else
698dcdb6
VZ
11039 echo "$ac_err" >&5
11040 echo "configure: failed program was:" >&5
10f2d63a 11041 cat conftest.$ac_ext >&5
698dcdb6
VZ
11042 rm -rf conftest*
11043 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11044fi
698dcdb6 11045rm -f conftest*
10f2d63a 11046fi
698dcdb6
VZ
11047if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11048 echo "$ac_t""yes" 1>&6
11049 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11050 cat >> confdefs.h <<EOF
11051#define $ac_tr_hdr 1
10f2d63a 11052EOF
698dcdb6
VZ
11053
11054else
11055 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11056fi
11057done
11058
698dcdb6 11059for ac_hdr in stdlib.h
9cfadba2 11060do
698dcdb6
VZ
11061ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11062echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6853365e 11063echo "configure:11064: checking for $ac_hdr" >&5
698dcdb6
VZ
11064if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11065 echo $ac_n "(cached) $ac_c" 1>&6
11066else
11067 cat > conftest.$ac_ext <<EOF
6853365e 11068#line 11069 "configure"
9cfadba2 11069#include "confdefs.h"
698dcdb6
VZ
11070#include <$ac_hdr>
11071EOF
11072ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6853365e 11073{ (eval echo configure:11074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11074ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11075if test -z "$ac_err"; then
11076 rm -rf conftest*
11077 eval "ac_cv_header_$ac_safe=yes"
6232543b 11078else
698dcdb6
VZ
11079 echo "$ac_err" >&5
11080 echo "configure: failed program was:" >&5
9cfadba2 11081 cat conftest.$ac_ext >&5
698dcdb6
VZ
11082 rm -rf conftest*
11083 eval "ac_cv_header_$ac_safe=no"
9cfadba2 11084fi
698dcdb6 11085rm -f conftest*
9cfadba2 11086fi
698dcdb6
VZ
11087if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11088 echo "$ac_t""yes" 1>&6
11089 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11090 cat >> confdefs.h <<EOF
11091#define $ac_tr_hdr 1
9cfadba2 11092EOF
698dcdb6
VZ
11093
11094else
11095 echo "$ac_t""no" 1>&6
9cfadba2
VZ
11096fi
11097done
10f2d63a 11098
698dcdb6 11099for ac_hdr in unistd.h
10f2d63a 11100do
698dcdb6
VZ
11101ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11102echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6853365e 11103echo "configure:11104: checking for $ac_hdr" >&5
698dcdb6
VZ
11104if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11105 echo $ac_n "(cached) $ac_c" 1>&6
11106else
11107 cat > conftest.$ac_ext <<EOF
6853365e 11108#line 11109 "configure"
10f2d63a 11109#include "confdefs.h"
698dcdb6
VZ
11110#include <$ac_hdr>
11111EOF
11112ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6853365e 11113{ (eval echo configure:11114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11114ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11115if test -z "$ac_err"; then
11116 rm -rf conftest*
11117 eval "ac_cv_header_$ac_safe=yes"
6232543b 11118else
698dcdb6
VZ
11119 echo "$ac_err" >&5
11120 echo "configure: failed program was:" >&5
10f2d63a 11121 cat conftest.$ac_ext >&5
698dcdb6
VZ
11122 rm -rf conftest*
11123 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11124fi
698dcdb6 11125rm -f conftest*
10f2d63a 11126fi
698dcdb6
VZ
11127if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11128 echo "$ac_t""yes" 1>&6
11129 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11130 cat >> confdefs.h <<EOF
11131#define $ac_tr_hdr 1
10f2d63a 11132EOF
698dcdb6
VZ
11133
11134else
11135 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11136fi
11137done
11138
698dcdb6 11139for ac_hdr in wchar.h
10f2d63a 11140do
698dcdb6
VZ
11141ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11142echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6853365e 11143echo "configure:11144: checking for $ac_hdr" >&5
698dcdb6
VZ
11144if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11145 echo $ac_n "(cached) $ac_c" 1>&6
11146else
11147 cat > conftest.$ac_ext <<EOF
6853365e 11148#line 11149 "configure"
10f2d63a 11149#include "confdefs.h"
698dcdb6
VZ
11150#include <$ac_hdr>
11151EOF
11152ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6853365e 11153{ (eval echo configure:11154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11154ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11155if test -z "$ac_err"; then
11156 rm -rf conftest*
11157 eval "ac_cv_header_$ac_safe=yes"
6f72b082 11158else
698dcdb6
VZ
11159 echo "$ac_err" >&5
11160 echo "configure: failed program was:" >&5
6f72b082 11161 cat conftest.$ac_ext >&5
698dcdb6
VZ
11162 rm -rf conftest*
11163 eval "ac_cv_header_$ac_safe=no"
6f72b082 11164fi
698dcdb6 11165rm -f conftest*
6f72b082 11166fi
698dcdb6
VZ
11167if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11168 echo "$ac_t""yes" 1>&6
11169 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11170 cat >> confdefs.h <<EOF
11171#define $ac_tr_hdr 1
6f72b082 11172EOF
698dcdb6
VZ
11173
11174else
11175 echo "$ac_t""no" 1>&6
6f72b082
OK
11176fi
11177done
11178
698dcdb6 11179for ac_hdr in wcstr.h
6f72b082 11180do
698dcdb6
VZ
11181ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11182echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6853365e 11183echo "configure:11184: checking for $ac_hdr" >&5
698dcdb6
VZ
11184if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11185 echo $ac_n "(cached) $ac_c" 1>&6
11186else
11187 cat > conftest.$ac_ext <<EOF
6853365e 11188#line 11189 "configure"
6f72b082 11189#include "confdefs.h"
698dcdb6
VZ
11190#include <$ac_hdr>
11191EOF
11192ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6853365e 11193{ (eval echo configure:11194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11194ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11195if test -z "$ac_err"; then
11196 rm -rf conftest*
11197 eval "ac_cv_header_$ac_safe=yes"
6f72b082 11198else
698dcdb6
VZ
11199 echo "$ac_err" >&5
11200 echo "configure: failed program was:" >&5
6f72b082 11201 cat conftest.$ac_ext >&5
698dcdb6
VZ
11202 rm -rf conftest*
11203 eval "ac_cv_header_$ac_safe=no"
6f72b082 11204fi
698dcdb6 11205rm -f conftest*
6f72b082 11206fi
698dcdb6
VZ
11207if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11208 echo "$ac_t""yes" 1>&6
11209 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11210 cat >> confdefs.h <<EOF
11211#define $ac_tr_hdr 1
6f72b082 11212EOF
698dcdb6
VZ
11213
11214else
11215 echo "$ac_t""no" 1>&6
6f72b082
OK
11216fi
11217done
11218
698dcdb6 11219for ac_hdr in fnmatch.h
6f72b082 11220do
698dcdb6
VZ
11221ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11222echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6853365e 11223echo "configure:11224: checking for $ac_hdr" >&5
698dcdb6
VZ
11224if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11225 echo $ac_n "(cached) $ac_c" 1>&6
11226else
11227 cat > conftest.$ac_ext <<EOF
6853365e 11228#line 11229 "configure"
6f72b082 11229#include "confdefs.h"
698dcdb6
VZ
11230#include <$ac_hdr>
11231EOF
11232ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6853365e 11233{ (eval echo configure:11234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11234ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11235if test -z "$ac_err"; then
11236 rm -rf conftest*
11237 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11238else
698dcdb6
VZ
11239 echo "$ac_err" >&5
11240 echo "configure: failed program was:" >&5
10f2d63a 11241 cat conftest.$ac_ext >&5
698dcdb6
VZ
11242 rm -rf conftest*
11243 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11244fi
698dcdb6 11245rm -f conftest*
10f2d63a 11246fi
698dcdb6
VZ
11247if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11248 echo "$ac_t""yes" 1>&6
11249 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11250 cat >> confdefs.h <<EOF
11251#define $ac_tr_hdr 1
10f2d63a 11252EOF
698dcdb6
VZ
11253
11254else
11255 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11256fi
11257done
11258
698dcdb6 11259for ac_hdr in iconv.h
0fb0dd83 11260do
698dcdb6
VZ
11261ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11262echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6853365e 11263echo "configure:11264: checking for $ac_hdr" >&5
698dcdb6
VZ
11264if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11265 echo $ac_n "(cached) $ac_c" 1>&6
11266else
11267 cat > conftest.$ac_ext <<EOF
6853365e 11268#line 11269 "configure"
0fb0dd83 11269#include "confdefs.h"
698dcdb6
VZ
11270#include <$ac_hdr>
11271EOF
11272ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6853365e 11273{ (eval echo configure:11274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11274ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11275if test -z "$ac_err"; then
11276 rm -rf conftest*
11277 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 11278else
698dcdb6
VZ
11279 echo "$ac_err" >&5
11280 echo "configure: failed program was:" >&5
0fb0dd83 11281 cat conftest.$ac_ext >&5
698dcdb6
VZ
11282 rm -rf conftest*
11283 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 11284fi
698dcdb6 11285rm -f conftest*
0fb0dd83 11286fi
698dcdb6
VZ
11287if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11288 echo "$ac_t""yes" 1>&6
11289 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11290 cat >> confdefs.h <<EOF
11291#define $ac_tr_hdr 1
0fb0dd83 11292EOF
698dcdb6
VZ
11293
11294else
11295 echo "$ac_t""no" 1>&6
0fb0dd83
RR
11296fi
11297done
11298
698dcdb6 11299for ac_hdr in langinfo.h
1f8ae82f 11300do
698dcdb6
VZ
11301ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11302echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6853365e 11303echo "configure:11304: checking for $ac_hdr" >&5
698dcdb6
VZ
11304if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11305 echo $ac_n "(cached) $ac_c" 1>&6
11306else
11307 cat > conftest.$ac_ext <<EOF
6853365e 11308#line 11309 "configure"
1f8ae82f 11309#include "confdefs.h"
698dcdb6
VZ
11310#include <$ac_hdr>
11311EOF
11312ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6853365e 11313{ (eval echo configure:11314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11314ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11315if test -z "$ac_err"; then
11316 rm -rf conftest*
11317 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 11318else
698dcdb6
VZ
11319 echo "$ac_err" >&5
11320 echo "configure: failed program was:" >&5
1f8ae82f 11321 cat conftest.$ac_ext >&5
698dcdb6
VZ
11322 rm -rf conftest*
11323 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 11324fi
698dcdb6 11325rm -f conftest*
1f8ae82f 11326fi
698dcdb6
VZ
11327if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11328 echo "$ac_t""yes" 1>&6
11329 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11330 cat >> confdefs.h <<EOF
11331#define $ac_tr_hdr 1
1f8ae82f 11332EOF
698dcdb6
VZ
11333
11334else
11335 echo "$ac_t""no" 1>&6
1f8ae82f
GD
11336fi
11337done
11338
698dcdb6 11339
73fd4a60
VZ
11340if test "$wxUSE_GUI" = "yes"; then
11341 if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 11342 for ac_hdr in X11/XKBlib.h
10f2d63a 11343do
698dcdb6
VZ
11344ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11345echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6853365e 11346echo "configure:11347: checking for $ac_hdr" >&5
698dcdb6
VZ
11347if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11348 echo $ac_n "(cached) $ac_c" 1>&6
11349else
11350 cat > conftest.$ac_ext <<EOF
6853365e 11351#line 11352 "configure"
10f2d63a 11352#include "confdefs.h"
698dcdb6
VZ
11353#include <$ac_hdr>
11354EOF
11355ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6853365e 11356{ (eval echo configure:11357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11357ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11358if test -z "$ac_err"; then
11359 rm -rf conftest*
11360 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11361else
698dcdb6
VZ
11362 echo "$ac_err" >&5
11363 echo "configure: failed program was:" >&5
10f2d63a 11364 cat conftest.$ac_ext >&5
698dcdb6
VZ
11365 rm -rf conftest*
11366 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11367fi
698dcdb6 11368rm -f conftest*
10f2d63a 11369fi
698dcdb6
VZ
11370if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11371 echo "$ac_t""yes" 1>&6
11372 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11373 cat >> confdefs.h <<EOF
11374#define $ac_tr_hdr 1
10f2d63a 11375EOF
698dcdb6
VZ
11376
11377else
11378 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11379fi
11380done
11381
73fd4a60 11382 fi
10f2d63a
VZ
11383fi
11384
3e44f09d 11385if test "$USE_WIN32" = 1; then
29fd3c0c
VS
11386 for ac_hdr in w32api.h
11387do
11388ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11389echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6853365e 11390echo "configure:11391: checking for $ac_hdr" >&5
29fd3c0c
VS
11391if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11392 echo $ac_n "(cached) $ac_c" 1>&6
11393else
11394 cat > conftest.$ac_ext <<EOF
6853365e 11395#line 11396 "configure"
29fd3c0c
VS
11396#include "confdefs.h"
11397#include <$ac_hdr>
11398EOF
11399ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6853365e 11400{ (eval echo configure:11401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
11401ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11402if test -z "$ac_err"; then
11403 rm -rf conftest*
11404 eval "ac_cv_header_$ac_safe=yes"
11405else
11406 echo "$ac_err" >&5
11407 echo "configure: failed program was:" >&5
11408 cat conftest.$ac_ext >&5
11409 rm -rf conftest*
11410 eval "ac_cv_header_$ac_safe=no"
11411fi
11412rm -f conftest*
11413fi
11414if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11415 echo "$ac_t""yes" 1>&6
11416 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11417 cat >> confdefs.h <<EOF
11418#define $ac_tr_hdr 1
11419EOF
11420
11421else
11422 echo "$ac_t""no" 1>&6
11423fi
11424done
11425
11426fi
11427
698dcdb6
VZ
11428
11429echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6853365e 11430echo "configure:11431: checking for ANSI C header files" >&5
698dcdb6
VZ
11431if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11432 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11433else
698dcdb6 11434 cat > conftest.$ac_ext <<EOF
6853365e 11435#line 11436 "configure"
10f2d63a
VZ
11436#include "confdefs.h"
11437#include <stdlib.h>
11438#include <stdarg.h>
11439#include <string.h>
11440#include <float.h>
698dcdb6
VZ
11441EOF
11442ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6853365e 11443{ (eval echo configure:11444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11444ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11445if test -z "$ac_err"; then
11446 rm -rf conftest*
10f2d63a
VZ
11447 ac_cv_header_stdc=yes
11448else
698dcdb6
VZ
11449 echo "$ac_err" >&5
11450 echo "configure: failed program was:" >&5
10f2d63a 11451 cat conftest.$ac_ext >&5
698dcdb6 11452 rm -rf conftest*
10f2d63a
VZ
11453 ac_cv_header_stdc=no
11454fi
698dcdb6 11455rm -f conftest*
10f2d63a
VZ
11456
11457if test $ac_cv_header_stdc = yes; then
11458 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 11459cat > conftest.$ac_ext <<EOF
6853365e 11460#line 11461 "configure"
10f2d63a
VZ
11461#include "confdefs.h"
11462#include <string.h>
698dcdb6 11463EOF
10f2d63a
VZ
11464if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11465 egrep "memchr" >/dev/null 2>&1; then
11466 :
11467else
698dcdb6 11468 rm -rf conftest*
10f2d63a
VZ
11469 ac_cv_header_stdc=no
11470fi
11471rm -f conftest*
11472
11473fi
11474
11475if test $ac_cv_header_stdc = yes; then
11476 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 11477cat > conftest.$ac_ext <<EOF
6853365e 11478#line 11479 "configure"
10f2d63a
VZ
11479#include "confdefs.h"
11480#include <stdlib.h>
698dcdb6 11481EOF
10f2d63a
VZ
11482if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11483 egrep "free" >/dev/null 2>&1; then
11484 :
11485else
698dcdb6 11486 rm -rf conftest*
10f2d63a
VZ
11487 ac_cv_header_stdc=no
11488fi
11489rm -f conftest*
11490
11491fi
11492
11493if test $ac_cv_header_stdc = yes; then
11494 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 11495if test "$cross_compiling" = yes; then
10f2d63a
VZ
11496 :
11497else
698dcdb6 11498 cat > conftest.$ac_ext <<EOF
6853365e 11499#line 11500 "configure"
10f2d63a
VZ
11500#include "confdefs.h"
11501#include <ctype.h>
698dcdb6
VZ
11502#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11503#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 11504#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
11505int main () { int i; for (i = 0; i < 256; i++)
11506if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11507exit (0); }
11508
11509EOF
6853365e 11510if { (eval echo configure:11511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 11511then
10f2d63a
VZ
11512 :
11513else
698dcdb6
VZ
11514 echo "configure: failed program was:" >&5
11515 cat conftest.$ac_ext >&5
11516 rm -fr conftest*
11517 ac_cv_header_stdc=no
10f2d63a 11518fi
698dcdb6 11519rm -fr conftest*
10f2d63a 11520fi
698dcdb6 11521
10f2d63a
VZ
11522fi
11523fi
1e487827 11524
698dcdb6
VZ
11525echo "$ac_t""$ac_cv_header_stdc" 1>&6
11526if test $ac_cv_header_stdc = yes; then
11527 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11528#define STDC_HEADERS 1
11529EOF
11530
11531fi
11532
698dcdb6 11533echo $ac_n "checking for mode_t""... $ac_c" 1>&6
6853365e 11534echo "configure:11535: checking for mode_t" >&5
698dcdb6
VZ
11535if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11536 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 11537else
698dcdb6 11538 cat > conftest.$ac_ext <<EOF
6853365e 11539#line 11540 "configure"
1e487827 11540#include "confdefs.h"
698dcdb6
VZ
11541#include <sys/types.h>
11542#if STDC_HEADERS
11543#include <stdlib.h>
11544#include <stddef.h>
11545#endif
11546EOF
11547if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11548 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11549 rm -rf conftest*
10f2d63a
VZ
11550 ac_cv_type_mode_t=yes
11551else
698dcdb6
VZ
11552 rm -rf conftest*
11553 ac_cv_type_mode_t=no
703e0a69 11554fi
698dcdb6 11555rm -f conftest*
1e487827 11556
698dcdb6
VZ
11557fi
11558echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11559if test $ac_cv_type_mode_t = no; then
11560 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11561#define mode_t int
11562EOF
11563
11564fi
11565
698dcdb6 11566echo $ac_n "checking for off_t""... $ac_c" 1>&6
6853365e 11567echo "configure:11568: checking for off_t" >&5
698dcdb6
VZ
11568if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11569 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11570else
698dcdb6 11571 cat > conftest.$ac_ext <<EOF
6853365e 11572#line 11573 "configure"
10f2d63a 11573#include "confdefs.h"
698dcdb6
VZ
11574#include <sys/types.h>
11575#if STDC_HEADERS
11576#include <stdlib.h>
11577#include <stddef.h>
11578#endif
11579EOF
11580if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11581 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11582 rm -rf conftest*
10f2d63a
VZ
11583 ac_cv_type_off_t=yes
11584else
698dcdb6
VZ
11585 rm -rf conftest*
11586 ac_cv_type_off_t=no
703e0a69 11587fi
698dcdb6 11588rm -f conftest*
1e487827 11589
698dcdb6
VZ
11590fi
11591echo "$ac_t""$ac_cv_type_off_t" 1>&6
11592if test $ac_cv_type_off_t = no; then
11593 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11594#define off_t long
11595EOF
11596
11597fi
11598
698dcdb6 11599echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6853365e 11600echo "configure:11601: checking for pid_t" >&5
698dcdb6
VZ
11601if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11602 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11603else
698dcdb6 11604 cat > conftest.$ac_ext <<EOF
6853365e 11605#line 11606 "configure"
10f2d63a 11606#include "confdefs.h"
698dcdb6
VZ
11607#include <sys/types.h>
11608#if STDC_HEADERS
11609#include <stdlib.h>
11610#include <stddef.h>
11611#endif
11612EOF
11613if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11614 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11615 rm -rf conftest*
10f2d63a
VZ
11616 ac_cv_type_pid_t=yes
11617else
698dcdb6
VZ
11618 rm -rf conftest*
11619 ac_cv_type_pid_t=no
703e0a69 11620fi
698dcdb6 11621rm -f conftest*
1e487827 11622
698dcdb6
VZ
11623fi
11624echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11625if test $ac_cv_type_pid_t = no; then
11626 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11627#define pid_t int
11628EOF
11629
11630fi
11631
698dcdb6 11632echo $ac_n "checking for size_t""... $ac_c" 1>&6
6853365e 11633echo "configure:11634: checking for size_t" >&5
698dcdb6
VZ
11634if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11635 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11636else
698dcdb6 11637 cat > conftest.$ac_ext <<EOF
6853365e 11638#line 11639 "configure"
10f2d63a 11639#include "confdefs.h"
698dcdb6
VZ
11640#include <sys/types.h>
11641#if STDC_HEADERS
11642#include <stdlib.h>
11643#include <stddef.h>
11644#endif
11645EOF
11646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11647 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11648 rm -rf conftest*
10f2d63a
VZ
11649 ac_cv_type_size_t=yes
11650else
698dcdb6
VZ
11651 rm -rf conftest*
11652 ac_cv_type_size_t=no
703e0a69 11653fi
698dcdb6 11654rm -f conftest*
1e487827 11655
698dcdb6
VZ
11656fi
11657echo "$ac_t""$ac_cv_type_size_t" 1>&6
11658if test $ac_cv_type_size_t = no; then
11659 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11660#define size_t unsigned
11661EOF
11662
11663fi
11664
698dcdb6 11665echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
6853365e 11666echo "configure:11667: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
11667if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
11668 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11669else
698dcdb6 11670 cat > conftest.$ac_ext <<EOF
6853365e 11671#line 11672 "configure"
10f2d63a
VZ
11672#include "confdefs.h"
11673#include <sys/types.h>
698dcdb6 11674EOF
10f2d63a
VZ
11675if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11676 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 11677 rm -rf conftest*
10f2d63a
VZ
11678 ac_cv_type_uid_t=yes
11679else
698dcdb6 11680 rm -rf conftest*
10f2d63a
VZ
11681 ac_cv_type_uid_t=no
11682fi
11683rm -f conftest*
11684
11685fi
1e487827 11686
698dcdb6
VZ
11687echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11688if test $ac_cv_type_uid_t = no; then
11689 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11690#define uid_t int
11691EOF
11692
698dcdb6 11693 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11694#define gid_t int
11695EOF
11696
11697fi
11698
1e487827 11699
698dcdb6 11700echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
6853365e 11701echo "configure:11702: checking for wchar_t" >&5
698dcdb6
VZ
11702if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
11703 echo $ac_n "(cached) $ac_c" 1>&6
11704else
11705
11706 cat > conftest.$ac_ext <<EOF
6853365e 11707#line 11708 "configure"
0046ff7c
VS
11708#include "confdefs.h"
11709#include <wchar.h>
698dcdb6 11710int main() {
0046ff7c 11711
d836ee96
VZ
11712 wchar_t wc, *ws;
11713 wc = L'a';
11714 ws = L"Hello, world!";
698dcdb6
VZ
11715
11716; return 0; }
11717EOF
6853365e 11718if { (eval echo configure:11719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11719 rm -rf conftest*
1f8ae82f
GD
11720 wx_cv_type_wchar_t=yes
11721else
698dcdb6
VZ
11722 echo "configure: failed program was:" >&5
11723 cat conftest.$ac_ext >&5
11724 rm -rf conftest*
11725 cat > conftest.$ac_ext <<EOF
6853365e 11726#line 11727 "configure"
1f8ae82f
GD
11727#include "confdefs.h"
11728#include <stdlib.h>
698dcdb6 11729int main() {
1f8ae82f 11730
d836ee96
VZ
11731 wchar_t wc, *ws;
11732 wc = L'a';
11733 ws = L"Hello, world!";
698dcdb6
VZ
11734
11735; return 0; }
11736EOF
6853365e 11737if { (eval echo configure:11738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11738 rm -rf conftest*
0046ff7c
VS
11739 wx_cv_type_wchar_t=yes
11740else
698dcdb6
VZ
11741 echo "configure: failed program was:" >&5
11742 cat conftest.$ac_ext >&5
11743 rm -rf conftest*
11744 wx_cv_type_wchar_t=no
0046ff7c 11745fi
698dcdb6 11746rm -f conftest*
d836ee96 11747
6232543b 11748fi
698dcdb6 11749rm -f conftest*
703e0a69 11750
1e487827 11751fi
698dcdb6
VZ
11752
11753echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
11754
11755if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 11756 cat >> confdefs.h <<\EOF
0046ff7c
VS
11757#define wxUSE_WCHAR_T 1
11758EOF
11759
11760fi
11761
19af3b06
VZ
11762
11763ac_ext=C
11764# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11765ac_cpp='$CXXCPP $CPPFLAGS'
11766ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11767ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11768cross_compiling=$ac_cv_prog_cxx_cross
11769
d836ee96 11770echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
6853365e 11771echo "configure:11772: checking if size_t is unsigned int" >&5
d836ee96
VZ
11772if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
11773 echo $ac_n "(cached) $ac_c" 1>&6
11774else
dd2c8b7c 11775 cat > conftest.$ac_ext <<EOF
6853365e 11776#line 11777 "configure"
d836ee96
VZ
11777#include "confdefs.h"
11778#include <stddef.h>
11779int main() {
11780
dd2c8b7c
VZ
11781 return 0; }
11782
d836ee96 11783 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
11784
11785 int bar() {
d836ee96
VZ
11786
11787; return 0; }
11788EOF
6853365e 11789if { (eval echo configure:11790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
11790 rm -rf conftest*
11791 wx_cv_size_t_is_uint=no
11792else
11793 echo "configure: failed program was:" >&5
11794 cat conftest.$ac_ext >&5
11795 rm -rf conftest*
11796 wx_cv_size_t_is_uint=yes
11797
11798fi
11799rm -f conftest*
11800
11801fi
11802
11803echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
11804
11805if test "$wx_cv_size_t_is_uint" = "yes"; then
11806 cat >> confdefs.h <<\EOF
11807#define wxSIZE_T_IS_UINT 1
11808EOF
11809
11810else
11811 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
6853365e 11812echo "configure:11813: checking if size_t is unsigned long" >&5
d836ee96
VZ
11813if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
11814 echo $ac_n "(cached) $ac_c" 1>&6
11815else
11816 cat > conftest.$ac_ext <<EOF
6853365e 11817#line 11818 "configure"
d836ee96
VZ
11818#include "confdefs.h"
11819#include <stddef.h>
11820int main() {
11821
dd2c8b7c
VZ
11822 return 0; }
11823
d836ee96 11824 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
11825
11826 int bar() {
d836ee96
VZ
11827
11828; return 0; }
11829EOF
6853365e 11830if { (eval echo configure:11831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
11831 rm -rf conftest*
11832 wx_cv_size_t_is_ulong=no
11833else
11834 echo "configure: failed program was:" >&5
11835 cat conftest.$ac_ext >&5
11836 rm -rf conftest*
11837 wx_cv_size_t_is_ulong=yes
11838
11839fi
11840rm -f conftest*
11841
11842fi
11843
11844echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
11845
11846 if test "$wx_cv_size_t_is_ulong" = "yes"; then
11847 cat >> confdefs.h <<\EOF
11848#define wxSIZE_T_IS_ULONG 1
11849EOF
11850
11851 fi
11852fi
11853
19af3b06
VZ
11854ac_ext=c
11855# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11856ac_cpp='$CPP $CPPFLAGS'
11857ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11858ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11859cross_compiling=$ac_cv_prog_cc_cross
11860
11861
1e487827 11862
698dcdb6 11863echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
6853365e 11864echo "configure:11865: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
11865if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
11866 echo $ac_n "(cached) $ac_c" 1>&6
11867else
11868
11869 cat > conftest.$ac_ext <<EOF
6853365e 11870#line 11871 "configure"
b12915c1
VZ
11871#include "confdefs.h"
11872#include <pwd.h>
698dcdb6 11873int main() {
b12915c1
VZ
11874
11875 char *p;
11876 struct passwd *pw;
11877 p = pw->pw_gecos;
698dcdb6
VZ
11878
11879; return 0; }
11880EOF
6853365e 11881if { (eval echo configure:11882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
11882 rm -rf conftest*
11883
b12915c1 11884 wx_cv_struct_pw_gecos=yes
698dcdb6 11885
b12915c1 11886else
698dcdb6
VZ
11887 echo "configure: failed program was:" >&5
11888 cat conftest.$ac_ext >&5
11889 rm -rf conftest*
11890
b12915c1 11891 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
11892
11893
6232543b 11894fi
698dcdb6
VZ
11895rm -f conftest*
11896
703e0a69 11897
1e487827 11898fi
698dcdb6
VZ
11899
11900echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 11901
bd3277fe 11902if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 11903 cat >> confdefs.h <<\EOF
bd3277fe
VZ
11904#define HAVE_PW_GECOS 1
11905EOF
11906
11907fi
11908
698dcdb6
VZ
11909
11910echo $ac_n "checking for working const""... $ac_c" 1>&6
6853365e 11911echo "configure:11912: checking for working const" >&5
698dcdb6
VZ
11912if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
11913 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11914else
698dcdb6 11915 cat > conftest.$ac_ext <<EOF
6853365e 11916#line 11917 "configure"
10f2d63a 11917#include "confdefs.h"
698dcdb6
VZ
11918
11919int main() {
11920
11921/* Ultrix mips cc rejects this. */
11922typedef int charset[2]; const charset x;
11923/* SunOS 4.1.1 cc rejects this. */
11924char const *const *ccp;
11925char **p;
11926/* NEC SVR4.0.2 mips cc rejects this. */
11927struct point {int x, y;};
11928static struct point const zero = {0,0};
11929/* AIX XL C 1.02.0.0 rejects this.
11930 It does not let you subtract one const X* pointer from another in an arm
11931 of an if-expression whose if-part is not a constant expression */
11932const char *g = "string";
11933ccp = &g + (g ? g-g : 0);
11934/* HPUX 7.0 cc rejects these. */
11935++ccp;
11936p = (char**) ccp;
11937ccp = (char const *const *) p;
11938{ /* SCO 3.2v4 cc rejects this. */
11939 char *t;
11940 char const *s = 0 ? (char *) 0 : (char const *) 0;
11941
11942 *t++ = 0;
10f2d63a 11943}
698dcdb6
VZ
11944{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11945 int x[] = {25, 17};
11946 const int *foo = &x[0];
11947 ++foo;
703e0a69 11948}
698dcdb6
VZ
11949{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11950 typedef const int *iptr;
11951 iptr p = 0;
11952 ++p;
6232543b 11953}
698dcdb6
VZ
11954{ /* AIX XL C 1.02.0.0 rejects this saying
11955 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11956 struct s { int j; const int *ap[3]; };
11957 struct s *b; b->j = 5;
1e487827 11958}
698dcdb6
VZ
11959{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11960 const int foo = 10;
11961}
11962
11963; return 0; }
11964EOF
6853365e 11965if { (eval echo configure:11966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11966 rm -rf conftest*
10f2d63a
VZ
11967 ac_cv_c_const=yes
11968else
698dcdb6
VZ
11969 echo "configure: failed program was:" >&5
11970 cat conftest.$ac_ext >&5
11971 rm -rf conftest*
11972 ac_cv_c_const=no
10f2d63a 11973fi
698dcdb6 11974rm -f conftest*
10f2d63a 11975fi
1e487827 11976
698dcdb6
VZ
11977echo "$ac_t""$ac_cv_c_const" 1>&6
11978if test $ac_cv_c_const = no; then
11979 cat >> confdefs.h <<\EOF
11980#define const
10f2d63a
VZ
11981EOF
11982
11983fi
11984
698dcdb6 11985echo $ac_n "checking for inline""... $ac_c" 1>&6
6853365e 11986echo "configure:11987: checking for inline" >&5
698dcdb6
VZ
11987if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
11988 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
11989else
11990 ac_cv_c_inline=no
11991for ac_kw in inline __inline__ __inline; do
698dcdb6 11992 cat > conftest.$ac_ext <<EOF
6853365e 11993#line 11994 "configure"
10f2d63a
VZ
11994#include "confdefs.h"
11995
698dcdb6
VZ
11996int main() {
11997} $ac_kw foo() {
11998; return 0; }
11999EOF
6853365e 12000if { (eval echo configure:12001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12001 rm -rf conftest*
10f2d63a
VZ
12002 ac_cv_c_inline=$ac_kw; break
12003else
698dcdb6
VZ
12004 echo "configure: failed program was:" >&5
12005 cat conftest.$ac_ext >&5
10f2d63a 12006fi
698dcdb6 12007rm -f conftest*
10f2d63a
VZ
12008done
12009
12010fi
698dcdb6
VZ
12011
12012echo "$ac_t""$ac_cv_c_inline" 1>&6
12013case "$ac_cv_c_inline" in
10f2d63a 12014 inline | yes) ;;
698dcdb6
VZ
12015 no) cat >> confdefs.h <<\EOF
12016#define inline
10f2d63a
VZ
12017EOF
12018 ;;
698dcdb6 12019 *) cat >> confdefs.h <<EOF
10f2d63a
VZ
12020#define inline $ac_cv_c_inline
12021EOF
12022 ;;
12023esac
12024
698dcdb6
VZ
12025
12026echo $ac_n "checking size of char""... $ac_c" 1>&6
6853365e 12027echo "configure:12028: checking size of char" >&5
698dcdb6
VZ
12028if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
12029 echo $ac_n "(cached) $ac_c" 1>&6
6232543b 12030else
1e487827 12031 if test "$cross_compiling" = yes; then
698dcdb6 12032 ac_cv_sizeof_char=1
1e487827 12033else
698dcdb6 12034 cat > conftest.$ac_ext <<EOF
6853365e 12035#line 12036 "configure"
1e487827 12036#include "confdefs.h"
698dcdb6
VZ
12037#include <stdio.h>
12038main()
1e487827 12039{
698dcdb6
VZ
12040 FILE *f=fopen("conftestval", "w");
12041 if (!f) exit(1);
12042 fprintf(f, "%d\n", sizeof(char));
12043 exit(0);
1e487827 12044}
698dcdb6 12045EOF
6853365e 12046if { (eval echo configure:12047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12047then
12048 ac_cv_sizeof_char=`cat conftestval`
1e487827 12049else
698dcdb6
VZ
12050 echo "configure: failed program was:" >&5
12051 cat conftest.$ac_ext >&5
12052 rm -fr conftest*
1e487827
VS
12053 ac_cv_sizeof_char=0
12054fi
698dcdb6 12055rm -fr conftest*
1e487827 12056fi
10f2d63a 12057
1e487827 12058fi
698dcdb6
VZ
12059echo "$ac_t""$ac_cv_sizeof_char" 1>&6
12060cat >> confdefs.h <<EOF
12061#define SIZEOF_CHAR $ac_cv_sizeof_char
1e487827 12062EOF
6232543b 12063
703e0a69 12064
698dcdb6 12065echo $ac_n "checking size of short""... $ac_c" 1>&6
6853365e 12066echo "configure:12067: checking size of short" >&5
698dcdb6
VZ
12067if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
12068 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 12069else
1e487827 12070 if test "$cross_compiling" = yes; then
698dcdb6 12071 ac_cv_sizeof_short=2
1e487827 12072else
698dcdb6 12073 cat > conftest.$ac_ext <<EOF
6853365e 12074#line 12075 "configure"
1e487827 12075#include "confdefs.h"
698dcdb6
VZ
12076#include <stdio.h>
12077main()
1e487827 12078{
698dcdb6
VZ
12079 FILE *f=fopen("conftestval", "w");
12080 if (!f) exit(1);
12081 fprintf(f, "%d\n", sizeof(short));
12082 exit(0);
1e487827 12083}
698dcdb6 12084EOF
6853365e 12085if { (eval echo configure:12086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12086then
12087 ac_cv_sizeof_short=`cat conftestval`
1e487827 12088else
698dcdb6
VZ
12089 echo "configure: failed program was:" >&5
12090 cat conftest.$ac_ext >&5
12091 rm -fr conftest*
12092 ac_cv_sizeof_short=0
1e487827 12093fi
698dcdb6 12094rm -fr conftest*
1e487827 12095fi
698dcdb6 12096
1e487827 12097fi
698dcdb6
VZ
12098echo "$ac_t""$ac_cv_sizeof_short" 1>&6
12099cat >> confdefs.h <<EOF
12100#define SIZEOF_SHORT $ac_cv_sizeof_short
12101EOF
12102
12103
12104echo $ac_n "checking size of int *""... $ac_c" 1>&6
6853365e 12105echo "configure:12106: checking size of int *" >&5
698dcdb6
VZ
12106if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
12107 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12108else
12109 if test "$cross_compiling" = yes; then
698dcdb6 12110 ac_cv_sizeof_int_p=4
10f2d63a 12111else
698dcdb6 12112 cat > conftest.$ac_ext <<EOF
6853365e 12113#line 12114 "configure"
10f2d63a 12114#include "confdefs.h"
698dcdb6
VZ
12115#include <stdio.h>
12116main()
10f2d63a 12117{
698dcdb6
VZ
12118 FILE *f=fopen("conftestval", "w");
12119 if (!f) exit(1);
12120 fprintf(f, "%d\n", sizeof(int *));
12121 exit(0);
10f2d63a 12122}
698dcdb6 12123EOF
6853365e 12124if { (eval echo configure:12125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12125then
12126 ac_cv_sizeof_int_p=`cat conftestval`
10f2d63a 12127else
698dcdb6
VZ
12128 echo "configure: failed program was:" >&5
12129 cat conftest.$ac_ext >&5
12130 rm -fr conftest*
12131 ac_cv_sizeof_int_p=0
6232543b 12132fi
698dcdb6 12133rm -fr conftest*
1e487827 12134fi
698dcdb6 12135
1e487827 12136fi
698dcdb6
VZ
12137echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
12138cat >> confdefs.h <<EOF
12139#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
12140EOF
12141
698dcdb6
VZ
12142
12143echo $ac_n "checking size of int""... $ac_c" 1>&6
6853365e 12144echo "configure:12145: checking size of int" >&5
698dcdb6
VZ
12145if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
12146 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12147else
12148 if test "$cross_compiling" = yes; then
698dcdb6 12149 ac_cv_sizeof_int=4
703e0a69 12150else
698dcdb6 12151 cat > conftest.$ac_ext <<EOF
6853365e 12152#line 12153 "configure"
1e487827 12153#include "confdefs.h"
698dcdb6
VZ
12154#include <stdio.h>
12155main()
1e487827 12156{
698dcdb6
VZ
12157 FILE *f=fopen("conftestval", "w");
12158 if (!f) exit(1);
12159 fprintf(f, "%d\n", sizeof(int));
12160 exit(0);
1e487827 12161}
698dcdb6 12162EOF
6853365e 12163if { (eval echo configure:12164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12164then
12165 ac_cv_sizeof_int=`cat conftestval`
12166else
12167 echo "configure: failed program was:" >&5
12168 cat conftest.$ac_ext >&5
12169 rm -fr conftest*
12170 ac_cv_sizeof_int=0
703e0a69 12171fi
698dcdb6
VZ
12172rm -fr conftest*
12173fi
12174
12175fi
12176echo "$ac_t""$ac_cv_sizeof_int" 1>&6
12177cat >> confdefs.h <<EOF
12178#define SIZEOF_INT $ac_cv_sizeof_int
12179EOF
12180
12181
12182echo $ac_n "checking size of long""... $ac_c" 1>&6
6853365e 12183echo "configure:12184: checking size of long" >&5
698dcdb6
VZ
12184if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
12185 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12186else
12187 if test "$cross_compiling" = yes; then
698dcdb6 12188 ac_cv_sizeof_long=4
10f2d63a 12189else
698dcdb6 12190 cat > conftest.$ac_ext <<EOF
6853365e 12191#line 12192 "configure"
10f2d63a 12192#include "confdefs.h"
698dcdb6
VZ
12193#include <stdio.h>
12194main()
10f2d63a 12195{
698dcdb6
VZ
12196 FILE *f=fopen("conftestval", "w");
12197 if (!f) exit(1);
12198 fprintf(f, "%d\n", sizeof(long));
12199 exit(0);
10f2d63a 12200}
698dcdb6 12201EOF
6853365e 12202if { (eval echo configure:12203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12203then
12204 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 12205else
698dcdb6
VZ
12206 echo "configure: failed program was:" >&5
12207 cat conftest.$ac_ext >&5
12208 rm -fr conftest*
12209 ac_cv_sizeof_long=0
10f2d63a 12210fi
698dcdb6 12211rm -fr conftest*
10f2d63a 12212fi
698dcdb6 12213
10f2d63a 12214fi
698dcdb6
VZ
12215echo "$ac_t""$ac_cv_sizeof_long" 1>&6
12216cat >> confdefs.h <<EOF
12217#define SIZEOF_LONG $ac_cv_sizeof_long
12218EOF
12219
12220
12221echo $ac_n "checking size of long long""... $ac_c" 1>&6
6853365e 12222echo "configure:12223: checking size of long long" >&5
698dcdb6
VZ
12223if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
12224 echo $ac_n "(cached) $ac_c" 1>&6
12225else
12226 if test "$cross_compiling" = yes; then
12227 ac_cv_sizeof_long_long=0
12228else
12229 cat > conftest.$ac_ext <<EOF
6853365e 12230#line 12231 "configure"
698dcdb6
VZ
12231#include "confdefs.h"
12232#include <stdio.h>
12233main()
12234{
12235 FILE *f=fopen("conftestval", "w");
12236 if (!f) exit(1);
12237 fprintf(f, "%d\n", sizeof(long long));
12238 exit(0);
12239}
12240EOF
6853365e 12241if { (eval echo configure:12242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12242then
12243 ac_cv_sizeof_long_long=`cat conftestval`
6232543b 12244else
698dcdb6
VZ
12245 echo "configure: failed program was:" >&5
12246 cat conftest.$ac_ext >&5
12247 rm -fr conftest*
6232543b
VS
12248 ac_cv_sizeof_long_long=0
12249fi
698dcdb6
VZ
12250rm -fr conftest*
12251fi
12252
703e0a69 12253fi
698dcdb6
VZ
12254echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
12255cat >> confdefs.h <<EOF
10f2d63a
VZ
12256#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12257EOF
12258
1e487827 12259
698dcdb6
VZ
12260
12261echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
6853365e 12262echo "configure:12263: checking size of wchar_t" >&5
698dcdb6
VZ
12263if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
12264 echo $ac_n "(cached) $ac_c" 1>&6
12265else
12266
b93d0d08
VS
12267 if test "$cross_compiling" = yes; then
12268 wx_cv_sizeof_wchar_t=4
1e6feb95 12269
b93d0d08 12270else
698dcdb6 12271 cat > conftest.$ac_ext <<EOF
6853365e 12272#line 12273 "configure"
b93d0d08
VS
12273#include "confdefs.h"
12274
1e6feb95
VZ
12275 #ifdef HAVE_WCHAR_H
12276 # include <wchar.h>
12277 #endif
12278 #ifdef HAVE_STDLIB_H
12279 # include <stdlib.h>
12280 #endif
12281 #include <stdio.h>
12282 int main()
12283 {
12284 FILE *f=fopen("conftestval", "w");
12285 if (!f) exit(1);
12286 fprintf(f, "%i", sizeof(wchar_t));
12287 exit(0);
12288 }
698dcdb6
VZ
12289
12290EOF
6853365e 12291if { (eval echo configure:12292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12292then
b93d0d08
VS
12293 wx_cv_sizeof_wchar_t=`cat conftestval`
12294else
698dcdb6
VZ
12295 echo "configure: failed program was:" >&5
12296 cat conftest.$ac_ext >&5
12297 rm -fr conftest*
12298 wx_cv_sizeof_wchar_t=0
b93d0d08 12299fi
698dcdb6 12300rm -fr conftest*
b93d0d08
VS
12301fi
12302
698dcdb6 12303
b93d0d08
VS
12304fi
12305
698dcdb6
VZ
12306echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
12307
12308cat >> confdefs.h <<EOF
28c6addc 12309#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
b93d0d08
VS
12310EOF
12311
698dcdb6 12312
698dcdb6 12313echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
6853365e 12314echo "configure:12315: checking whether byte ordering is bigendian" >&5
698dcdb6
VZ
12315if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
12316 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12317else
12318 ac_cv_c_bigendian=unknown
12319# See if sys/param.h defines the BYTE_ORDER macro.
698dcdb6 12320cat > conftest.$ac_ext <<EOF
6853365e 12321#line 12322 "configure"
10f2d63a
VZ
12322#include "confdefs.h"
12323#include <sys/types.h>
12324#include <sys/param.h>
698dcdb6 12325int main() {
10f2d63a
VZ
12326
12327#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12328 bogus endian macros
12329#endif
698dcdb6
VZ
12330; return 0; }
12331EOF
6853365e 12332if { (eval echo configure:12333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12333 rm -rf conftest*
10f2d63a 12334 # It does; now see whether it defined to BIG_ENDIAN or not.
698dcdb6 12335cat > conftest.$ac_ext <<EOF
6853365e 12336#line 12337 "configure"
10f2d63a
VZ
12337#include "confdefs.h"
12338#include <sys/types.h>
12339#include <sys/param.h>
698dcdb6 12340int main() {
10f2d63a
VZ
12341
12342#if BYTE_ORDER != BIG_ENDIAN
12343 not big endian
12344#endif
698dcdb6
VZ
12345; return 0; }
12346EOF
6853365e 12347if { (eval echo configure:12348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12348 rm -rf conftest*
10f2d63a
VZ
12349 ac_cv_c_bigendian=yes
12350else
698dcdb6
VZ
12351 echo "configure: failed program was:" >&5
12352 cat conftest.$ac_ext >&5
12353 rm -rf conftest*
12354 ac_cv_c_bigendian=no
10f2d63a 12355fi
698dcdb6 12356rm -f conftest*
10f2d63a 12357else
698dcdb6
VZ
12358 echo "configure: failed program was:" >&5
12359 cat conftest.$ac_ext >&5
10f2d63a 12360fi
698dcdb6 12361rm -f conftest*
10f2d63a
VZ
12362if test $ac_cv_c_bigendian = unknown; then
12363if test "$cross_compiling" = yes; then
12364 ac_cv_c_bigendian=unknown
12365else
698dcdb6 12366 cat > conftest.$ac_ext <<EOF
6853365e 12367#line 12368 "configure"
10f2d63a
VZ
12368#include "confdefs.h"
12369main () {
12370 /* Are we little or big endian? From Harbison&Steele. */
12371 union
12372 {
12373 long l;
12374 char c[sizeof (long)];
12375 } u;
12376 u.l = 1;
12377 exit (u.c[sizeof (long) - 1] == 1);
12378}
698dcdb6 12379EOF
6853365e 12380if { (eval echo configure:12381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12381then
10f2d63a
VZ
12382 ac_cv_c_bigendian=no
12383else
698dcdb6
VZ
12384 echo "configure: failed program was:" >&5
12385 cat conftest.$ac_ext >&5
12386 rm -fr conftest*
12387 ac_cv_c_bigendian=yes
10f2d63a 12388fi
698dcdb6 12389rm -fr conftest*
10f2d63a 12390fi
698dcdb6 12391
10f2d63a
VZ
12392fi
12393fi
698dcdb6
VZ
12394
12395echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10f2d63a 12396if test $ac_cv_c_bigendian = unknown; then
698dcdb6 12397 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
12398fi
12399if test $ac_cv_c_bigendian = yes; then
698dcdb6 12400 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12401#define WORDS_BIGENDIAN 1
12402EOF
12403
12404fi
12405
698dcdb6
VZ
12406
12407
10f2d63a 12408 if test "$cross_compiling" = "yes"; then
698dcdb6 12409 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12410#define wxUSE_IOSTREAMH 1
12411EOF
12412
12413 else
698dcdb6
VZ
12414
12415 ac_ext=C
12416# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12417ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12418ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12419ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12420cross_compiling=$ac_cv_prog_cxx_cross
12421
703e0a69 12422
698dcdb6 12423 for ac_hdr in iostream
10f2d63a 12424do
698dcdb6
VZ
12425ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12426echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6853365e 12427echo "configure:12428: checking for $ac_hdr" >&5
698dcdb6
VZ
12428if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12429 echo $ac_n "(cached) $ac_c" 1>&6
12430else
12431 cat > conftest.$ac_ext <<EOF
6853365e 12432#line 12433 "configure"
10f2d63a 12433#include "confdefs.h"
698dcdb6
VZ
12434#include <$ac_hdr>
12435EOF
12436ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6853365e 12437{ (eval echo configure:12438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12438ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12439if test -z "$ac_err"; then
12440 rm -rf conftest*
12441 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12442else
698dcdb6
VZ
12443 echo "$ac_err" >&5
12444 echo "configure: failed program was:" >&5
10f2d63a 12445 cat conftest.$ac_ext >&5
698dcdb6
VZ
12446 rm -rf conftest*
12447 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12448fi
698dcdb6 12449rm -f conftest*
10f2d63a 12450fi
698dcdb6
VZ
12451if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12452 echo "$ac_t""yes" 1>&6
12453 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12454 cat >> confdefs.h <<EOF
12455#define $ac_tr_hdr 1
10f2d63a 12456EOF
698dcdb6
VZ
12457
12458else
12459 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12460fi
12461done
12462
698dcdb6 12463
57fe5ed0
VZ
12464 if test "$ac_cv_header_iostream" = "yes" ; then
12465 :
12466 else
698dcdb6 12467 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12468#define wxUSE_IOSTREAMH 1
12469EOF
12470
10f2d63a
VZ
12471 fi
12472
12473 ac_ext=c
698dcdb6 12474# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12475ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12476ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12477ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12478cross_compiling=$ac_cv_prog_cc_cross
10f2d63a
VZ
12479
12480 fi
12481
703e0a69 12482
698dcdb6
VZ
12483
12484 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
6853365e 12485echo "configure:12486: checking if C++ compiler supports bool" >&5
698dcdb6
VZ
12486if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12487 echo $ac_n "(cached) $ac_c" 1>&6
12488else
12489
12490
12491 ac_ext=C
12492# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12493ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12494ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12495ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12496cross_compiling=$ac_cv_prog_cxx_cross
10f2d63a 12497
698dcdb6
VZ
12498
12499 cat > conftest.$ac_ext <<EOF
6853365e 12500#line 12501 "configure"
10f2d63a
VZ
12501#include "confdefs.h"
12502
698dcdb6
VZ
12503
12504int main() {
10f2d63a
VZ
12505
12506 bool b = true;
12507
12508 return 0;
698dcdb6
VZ
12509
12510; return 0; }
12511EOF
6853365e 12512if { (eval echo configure:12513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12513 rm -rf conftest*
12514
10f2d63a 12515 wx_cv_cpp_bool=yes
698dcdb6 12516
10f2d63a 12517else
698dcdb6
VZ
12518 echo "configure: failed program was:" >&5
12519 cat conftest.$ac_ext >&5
12520 rm -rf conftest*
12521
10f2d63a 12522 wx_cv_cpp_bool=no
698dcdb6
VZ
12523
12524
10f2d63a 12525fi
698dcdb6 12526rm -f conftest*
10f2d63a
VZ
12527
12528 ac_ext=c
698dcdb6 12529# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12530ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12531ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12532ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12533cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 12534
698dcdb6 12535
10f2d63a 12536fi
698dcdb6
VZ
12537
12538echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10f2d63a
VZ
12539
12540 if test "$wx_cv_cpp_bool" = "yes"; then
698dcdb6 12541 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12542#define HAVE_BOOL 1
12543EOF
12544
12545 fi
12546
1e487827 12547
698dcdb6 12548
698dcdb6 12549echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
6853365e 12550echo "configure:12551: checking for wcslen in -lc" >&5
698dcdb6
VZ
12551ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12552if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12553 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12554else
698dcdb6 12555 ac_save_LIBS="$LIBS"
10f2d63a 12556LIBS="-lc $LIBS"
698dcdb6 12557cat > conftest.$ac_ext <<EOF
6853365e 12558#line 12559 "configure"
10f2d63a
VZ
12559#include "confdefs.h"
12560/* Override any gcc2 internal prototype to avoid an error. */
12561/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12562 builtin and then its argument prototype would still apply. */
12563char wcslen();
12564
12565int main() {
12566wcslen()
12567; return 0; }
12568EOF
6853365e 12569if { (eval echo configure:12570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12570 rm -rf conftest*
12571 eval "ac_cv_lib_$ac_lib_var=yes"
12572else
12573 echo "configure: failed program was:" >&5
12574 cat conftest.$ac_ext >&5
12575 rm -rf conftest*
12576 eval "ac_cv_lib_$ac_lib_var=no"
12577fi
12578rm -f conftest*
12579LIBS="$ac_save_LIBS"
12580
12581fi
12582if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12583 echo "$ac_t""yes" 1>&6
12584
12585 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12586#define HAVE_WCSLEN 1
12587EOF
12588
12589 WCHAR_LINK=""
698dcdb6 12590
10f2d63a 12591else
698dcdb6 12592 echo "$ac_t""no" 1>&6
10f2d63a 12593
698dcdb6 12594 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
6853365e 12595echo "configure:12596: checking for wcslen in -lw" >&5
698dcdb6
VZ
12596ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12597if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12598 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12599else
698dcdb6 12600 ac_save_LIBS="$LIBS"
10f2d63a 12601LIBS="-lw $LIBS"
698dcdb6 12602cat > conftest.$ac_ext <<EOF
6853365e 12603#line 12604 "configure"
10f2d63a
VZ
12604#include "confdefs.h"
12605/* Override any gcc2 internal prototype to avoid an error. */
12606/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12607 builtin and then its argument prototype would still apply. */
12608char wcslen();
12609
12610int main() {
12611wcslen()
12612; return 0; }
12613EOF
6853365e 12614if { (eval echo configure:12615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12615 rm -rf conftest*
12616 eval "ac_cv_lib_$ac_lib_var=yes"
12617else
12618 echo "configure: failed program was:" >&5
12619 cat conftest.$ac_ext >&5
12620 rm -rf conftest*
12621 eval "ac_cv_lib_$ac_lib_var=no"
12622fi
12623rm -f conftest*
12624LIBS="$ac_save_LIBS"
12625
12626fi
12627if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12628 echo "$ac_t""yes" 1>&6
12629
12630 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12631#define HAVE_WCSLEN 1
12632EOF
12633
12634 WCHAR_LINK="-lw"
698dcdb6
VZ
12635
12636else
12637 echo "$ac_t""no" 1>&6
6232543b 12638fi
10f2d63a 12639
698dcdb6 12640
1e487827 12641fi
703e0a69 12642
698dcdb6
VZ
12643
12644echo $ac_n "checking for vprintf""... $ac_c" 1>&6
6853365e 12645echo "configure:12646: checking for vprintf" >&5
698dcdb6
VZ
12646if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
12647 echo $ac_n "(cached) $ac_c" 1>&6
12648else
12649 cat > conftest.$ac_ext <<EOF
6853365e 12650#line 12651 "configure"
10f2d63a
VZ
12651#include "confdefs.h"
12652/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12653 which can conflict with char vprintf(); below. */
10f2d63a
VZ
12654#include <assert.h>
12655/* Override any gcc2 internal prototype to avoid an error. */
12656/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12657 builtin and then its argument prototype would still apply. */
12658char vprintf();
12659
12660int main() {
10f2d63a
VZ
12661
12662/* The GNU C library defines this for functions which it implements
12663 to always fail with ENOSYS. Some functions are actually named
12664 something starting with __ and the normal name is an alias. */
698dcdb6 12665#if defined (__stub_vprintf) || defined (__stub___vprintf)
10f2d63a
VZ
12666choke me
12667#else
698dcdb6 12668vprintf();
10f2d63a
VZ
12669#endif
12670
698dcdb6
VZ
12671; return 0; }
12672EOF
6853365e 12673if { (eval echo configure:12674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12674 rm -rf conftest*
12675 eval "ac_cv_func_vprintf=yes"
12676else
12677 echo "configure: failed program was:" >&5
12678 cat conftest.$ac_ext >&5
12679 rm -rf conftest*
12680 eval "ac_cv_func_vprintf=no"
12681fi
12682rm -f conftest*
12683fi
12684
12685if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12686 echo "$ac_t""yes" 1>&6
12687 cat >> confdefs.h <<\EOF
12688#define HAVE_VPRINTF 1
12689EOF
12690
12691else
12692 echo "$ac_t""no" 1>&6
12693fi
12694
12695if test "$ac_cv_func_vprintf" != yes; then
12696echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
6853365e 12697echo "configure:12698: checking for _doprnt" >&5
698dcdb6
VZ
12698if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
12699 echo $ac_n "(cached) $ac_c" 1>&6
12700else
12701 cat > conftest.$ac_ext <<EOF
6853365e 12702#line 12703 "configure"
10f2d63a
VZ
12703#include "confdefs.h"
12704/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12705 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
12706#include <assert.h>
12707/* Override any gcc2 internal prototype to avoid an error. */
12708/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12709 builtin and then its argument prototype would still apply. */
12710char _doprnt();
12711
12712int main() {
10f2d63a
VZ
12713
12714/* The GNU C library defines this for functions which it implements
12715 to always fail with ENOSYS. Some functions are actually named
12716 something starting with __ and the normal name is an alias. */
12717#if defined (__stub__doprnt) || defined (__stub____doprnt)
12718choke me
12719#else
698dcdb6 12720_doprnt();
10f2d63a
VZ
12721#endif
12722
698dcdb6
VZ
12723; return 0; }
12724EOF
6853365e 12725if { (eval echo configure:12726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12726 rm -rf conftest*
12727 eval "ac_cv_func__doprnt=yes"
12728else
12729 echo "configure: failed program was:" >&5
12730 cat conftest.$ac_ext >&5
12731 rm -rf conftest*
12732 eval "ac_cv_func__doprnt=no"
12733fi
12734rm -f conftest*
12735fi
12736
12737if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12738 echo "$ac_t""yes" 1>&6
12739 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12740#define HAVE_DOPRNT 1
12741EOF
12742
698dcdb6
VZ
12743else
12744 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12745fi
12746
12747fi
12748
1e487827 12749
698dcdb6
VZ
12750
12751
12752
12753
12754
12755echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
6853365e 12756echo "configure:12757: checking for vsnprintf" >&5
698dcdb6
VZ
12757if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
12758 echo $ac_n "(cached) $ac_c" 1>&6
12759else
12760
12761 cat > conftest.$ac_ext <<EOF
6853365e 12762#line 12763 "configure"
f6bcfd97
BP
12763#include "confdefs.h"
12764
12765 #include <stdio.h>
698dcdb6
VZ
12766 #include <stdarg.h>
12767
12768int main() {
10f2d63a 12769
f6bcfd97 12770 int wx_test_vsnprintf(const char *, ...);
10f2d63a 12771
f6bcfd97
BP
12772 wx_test_vsnprintf("%s");
12773 return 0;
12774 }
12775
12776 int wx_test_vsnprintf(const char *fmt, ...)
12777 {
12778 char *s;
12779
12780 va_list argp;
12781 va_start(argp, fmt);
12782 vsnprintf(s, 42, fmt, argp);
12783 va_end(argp);
698dcdb6
VZ
12784
12785; return 0; }
12786EOF
6853365e 12787if { (eval echo configure:12788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12788 rm -rf conftest*
12789
f6bcfd97 12790 wx_cv_func_vsnprintf=yes
698dcdb6 12791
10f2d63a 12792else
698dcdb6
VZ
12793 echo "configure: failed program was:" >&5
12794 cat conftest.$ac_ext >&5
12795 rm -rf conftest*
12796
12797 cat > conftest.$ac_ext <<EOF
6853365e 12798#line 12799 "configure"
c521c494
RL
12799#include "confdefs.h"
12800
12801 #include <stdio.h>
12802 #include <stdarg.h>
698dcdb6
VZ
12803
12804int main() {
c521c494
RL
12805
12806 int wx_test_vsnprintf(const char *, ...);
12807
12808 wx_test_vsnprintf("%s");
12809 return 0;
12810 }
12811
12812 int wx_test_vsnprintf(const char *fmt, ...)
12813 {
12814 char *s;
12815
12816 va_list argp;
12817 va_start(argp, fmt);
12818 _vsnprintf(s, 42, fmt, argp);
12819 va_end(argp);
698dcdb6
VZ
12820
12821; return 0; }
12822EOF
6853365e 12823if { (eval echo configure:12824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12824 rm -rf conftest*
12825
c521c494 12826 wx_cv_func_vsnprintf=yes
698dcdb6 12827
c521c494 12828else
698dcdb6
VZ
12829 echo "configure: failed program was:" >&5
12830 cat conftest.$ac_ext >&5
12831 rm -rf conftest*
12832
c521c494 12833 wx_cv_func_vsnprintf=no
698dcdb6 12834
10f2d63a 12835fi
698dcdb6
VZ
12836rm -f conftest*
12837
6232543b 12838fi
698dcdb6 12839rm -f conftest*
703e0a69 12840
1e487827 12841fi
698dcdb6
VZ
12842
12843echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
10f2d63a 12844
9d8deca0 12845if test "$wx_cv_func_vsnprintf" = yes; then
698dcdb6 12846 cat >> confdefs.h <<\EOF
9d8deca0
VZ
12847#define HAVE_VSNPRINTF 1
12848EOF
12849
12850else
698dcdb6 12851 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9d8deca0
VZ
12852fi
12853
698dcdb6 12854echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
6853365e 12855echo "configure:12856: checking for vsscanf" >&5
698dcdb6
VZ
12856if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
12857 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12858else
698dcdb6
VZ
12859
12860 cat > conftest.$ac_ext <<EOF
6853365e 12861#line 12862 "configure"
10f2d63a 12862#include "confdefs.h"
10f2d63a 12863
f6bcfd97
BP
12864 #include <stdio.h>
12865 #include <stdarg.h>
698dcdb6
VZ
12866
12867int main() {
10f2d63a 12868
f6bcfd97 12869 int wx_test_vsscanf(const char *, ...);
10f2d63a 12870
f6bcfd97
BP
12871 wx_test_vsscanf("%d");
12872 return 0;
10f2d63a
VZ
12873 }
12874
f6bcfd97 12875 int wx_test_vsscanf(const char *fmt, ...)
10f2d63a 12876 {
f6bcfd97
BP
12877 va_list argp;
12878 va_start(argp, fmt);
12879 vsscanf("42", fmt, argp);
12880 va_end(argp);
698dcdb6
VZ
12881
12882; return 0; }
12883EOF
6853365e 12884if { (eval echo configure:12885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12885 rm -rf conftest*
12886
f6bcfd97 12887 wx_cv_func_vsscanf=yes
698dcdb6 12888
10f2d63a 12889else
698dcdb6
VZ
12890 echo "configure: failed program was:" >&5
12891 cat conftest.$ac_ext >&5
12892 rm -rf conftest*
12893
f6bcfd97 12894 wx_cv_func_vsscanf=no
698dcdb6 12895
6232543b 12896fi
698dcdb6 12897rm -f conftest*
703e0a69 12898
1e487827 12899fi
698dcdb6
VZ
12900
12901echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10f2d63a 12902
9d8deca0 12903if test "$wx_cv_func_vsscanf" = yes; then
698dcdb6 12904 cat >> confdefs.h <<\EOF
9d8deca0
VZ
12905#define HAVE_VSSCANF 1
12906EOF
12907
12908fi
12909
95c8801c
VS
12910if test "$TOOLKIT" != "MSW"; then
12911
12912
12913
698dcdb6
VZ
12914ac_ext=C
12915# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12916ac_cpp='$CXXCPP $CPPFLAGS'
12917ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12918ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12919cross_compiling=$ac_cv_prog_cxx_cross
12920
12921echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
6853365e 12922echo "configure:12923: checking if iconv() takes char**" >&5
698dcdb6
VZ
12923if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
12924 echo $ac_n "(cached) $ac_c" 1>&6
12925else
12926
12927 cat > conftest.$ac_ext <<EOF
6853365e 12928#line 12929 "configure"
95c8801c
VS
12929#include "confdefs.h"
12930#include <iconv.h>
698dcdb6 12931int main() {
95c8801c
VS
12932
12933 char **inbuf, **outbuf;
19af3b06
VZ
12934 iconv_t cd;
12935 size_t insz, outsz;
12936 iconv(cd, inbuf, &insz, outbuf, &outsz);
698dcdb6
VZ
12937
12938; return 0; }
12939EOF
6853365e 12940if { (eval echo configure:12941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12941 rm -rf conftest*
95c8801c
VS
12942 wx_cv_iconv_takes_char=yes
12943else
698dcdb6
VZ
12944 echo "configure: failed program was:" >&5
12945 cat conftest.$ac_ext >&5
12946 rm -rf conftest*
12947 wx_cv_iconv_takes_char=no
95c8801c 12948fi
698dcdb6 12949rm -f conftest*
95c8801c
VS
12950
12951fi
698dcdb6
VZ
12952
12953echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
10f2d63a 12954ac_ext=c
698dcdb6 12955# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12956ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12957ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12958ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12959cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 12960
95c8801c 12961if test "$wx_cv_iconv_takes_char" = yes ; then
698dcdb6 12962 cat >> confdefs.h <<\EOF
95c8801c
VS
12963#define WX_ICONV_TAKES_CHAR 1
12964EOF
12965
12966fi
10f2d63a 12967
1e487827 12968
698dcdb6
VZ
12969if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
12970 for ac_func in sigaction
eb4efbdc 12971do
698dcdb6 12972echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6853365e 12973echo "configure:12974: checking for $ac_func" >&5
698dcdb6
VZ
12974if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12975 echo $ac_n "(cached) $ac_c" 1>&6
12976else
12977 cat > conftest.$ac_ext <<EOF
6853365e 12978#line 12979 "configure"
eb4efbdc
VZ
12979#include "confdefs.h"
12980/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12981 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
12982#include <assert.h>
12983/* Override any gcc2 internal prototype to avoid an error. */
12984/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12985 builtin and then its argument prototype would still apply. */
12986char $ac_func();
12987
12988int main() {
eb4efbdc
VZ
12989
12990/* The GNU C library defines this for functions which it implements
12991 to always fail with ENOSYS. Some functions are actually named
12992 something starting with __ and the normal name is an alias. */
12993#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12994choke me
12995#else
698dcdb6 12996$ac_func();
eb4efbdc
VZ
12997#endif
12998
698dcdb6 12999; return 0; }
eb4efbdc 13000EOF
6853365e 13001if { (eval echo configure:13002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13002 rm -rf conftest*
13003 eval "ac_cv_func_$ac_func=yes"
13004else
13005 echo "configure: failed program was:" >&5
13006 cat conftest.$ac_ext >&5
13007 rm -rf conftest*
13008 eval "ac_cv_func_$ac_func=no"
13009fi
13010rm -f conftest*
13011fi
eb4efbdc 13012
698dcdb6
VZ
13013if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13014 echo "$ac_t""yes" 1>&6
13015 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13016 cat >> confdefs.h <<EOF
13017#define $ac_tr_func 1
13018EOF
13019
13020else
13021 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
13022fi
13023done
13024
698dcdb6 13025
eb4efbdc 13026 if test "$ac_cv_func_sigaction" = "no"; then
698dcdb6 13027 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
eb4efbdc
VZ
13028 wxUSE_ON_FATAL_EXCEPTION=no
13029 fi
f6bcfd97
BP
13030
13031 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6
VZ
13032
13033 ac_ext=C
13034# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 13035ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
13036ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13037ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13038cross_compiling=$ac_cv_prog_cxx_cross
6232543b 13039
1e487827 13040
698dcdb6 13041 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
6853365e 13042echo "configure:13043: checking for sa_handler type" >&5
698dcdb6
VZ
13043if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
13044 echo $ac_n "(cached) $ac_c" 1>&6
13045else
13046
13047 cat > conftest.$ac_ext <<EOF
6853365e 13048#line 13049 "configure"
f6bcfd97
BP
13049#include "confdefs.h"
13050#include <signal.h>
698dcdb6 13051int main() {
f6bcfd97
BP
13052
13053 extern void testSigHandler(int);
13054
13055 struct sigaction sa;
13056 sa.sa_handler = testSigHandler;
698dcdb6
VZ
13057
13058; return 0; }
13059EOF
6853365e 13060if { (eval echo configure:13061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13061 rm -rf conftest*
13062
f6bcfd97 13063 wx_cv_type_sa_handler=int
698dcdb6 13064
f6bcfd97 13065else
698dcdb6
VZ
13066 echo "configure: failed program was:" >&5
13067 cat conftest.$ac_ext >&5
13068 rm -rf conftest*
13069
f6bcfd97 13070 wx_cv_type_sa_handler=void
698dcdb6 13071
6232543b 13072fi
698dcdb6
VZ
13073rm -f conftest*
13074
1e487827 13075fi
698dcdb6
VZ
13076
13077echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
f6bcfd97
BP
13078
13079 ac_ext=c
698dcdb6 13080# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
f6bcfd97 13081ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13082ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13083ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13084cross_compiling=$ac_cv_prog_cc_cross
13085
703e0a69 13086
698dcdb6 13087 cat >> confdefs.h <<EOF
f6bcfd97
BP
13088#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
13089EOF
13090
13091 fi
eb4efbdc
VZ
13092fi
13093
10f2d63a
VZ
13094for ac_func in vfork
13095do
698dcdb6 13096echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6853365e 13097echo "configure:13098: checking for $ac_func" >&5
698dcdb6
VZ
13098if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13099 echo $ac_n "(cached) $ac_c" 1>&6
13100else
13101 cat > conftest.$ac_ext <<EOF
6853365e 13102#line 13103 "configure"
10f2d63a
VZ
13103#include "confdefs.h"
13104/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13105 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13106#include <assert.h>
13107/* Override any gcc2 internal prototype to avoid an error. */
13108/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13109 builtin and then its argument prototype would still apply. */
13110char $ac_func();
13111
13112int main() {
10f2d63a
VZ
13113
13114/* The GNU C library defines this for functions which it implements
13115 to always fail with ENOSYS. Some functions are actually named
13116 something starting with __ and the normal name is an alias. */
13117#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13118choke me
13119#else
698dcdb6 13120$ac_func();
10f2d63a
VZ
13121#endif
13122
698dcdb6 13123; return 0; }
10f2d63a 13124EOF
6853365e 13125if { (eval echo configure:13126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13126 rm -rf conftest*
13127 eval "ac_cv_func_$ac_func=yes"
13128else
13129 echo "configure: failed program was:" >&5
13130 cat conftest.$ac_ext >&5
13131 rm -rf conftest*
13132 eval "ac_cv_func_$ac_func=no"
13133fi
13134rm -f conftest*
13135fi
270a909e 13136
698dcdb6
VZ
13137if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13138 echo "$ac_t""yes" 1>&6
13139 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13140 cat >> confdefs.h <<EOF
13141#define $ac_tr_func 1
13142EOF
13143
13144else
13145 echo "$ac_t""no" 1>&6
270a909e
VZ
13146fi
13147done
13148
1e487827 13149
698dcdb6
VZ
13150if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
13151 for ac_func in fcntl flock
4f3c5f06 13152do
698dcdb6 13153echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6853365e 13154echo "configure:13155: checking for $ac_func" >&5
698dcdb6
VZ
13155if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13156 echo $ac_n "(cached) $ac_c" 1>&6
13157else
13158 cat > conftest.$ac_ext <<EOF
6853365e 13159#line 13160 "configure"
4f3c5f06
VZ
13160#include "confdefs.h"
13161/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13162 which can conflict with char $ac_func(); below. */
4f3c5f06
VZ
13163#include <assert.h>
13164/* Override any gcc2 internal prototype to avoid an error. */
13165/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13166 builtin and then its argument prototype would still apply. */
13167char $ac_func();
13168
13169int main() {
4f3c5f06
VZ
13170
13171/* The GNU C library defines this for functions which it implements
13172 to always fail with ENOSYS. Some functions are actually named
13173 something starting with __ and the normal name is an alias. */
13174#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13175choke me
13176#else
698dcdb6 13177$ac_func();
4f3c5f06
VZ
13178#endif
13179
698dcdb6
VZ
13180; return 0; }
13181EOF
6853365e 13182if { (eval echo configure:13183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13183 rm -rf conftest*
13184 eval "ac_cv_func_$ac_func=yes"
13185else
13186 echo "configure: failed program was:" >&5
13187 cat conftest.$ac_ext >&5
13188 rm -rf conftest*
13189 eval "ac_cv_func_$ac_func=no"
13190fi
13191rm -f conftest*
13192fi
13193
13194if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13195 echo "$ac_t""yes" 1>&6
13196 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13197 cat >> confdefs.h <<EOF
13198#define $ac_tr_func 1
4f3c5f06
VZ
13199EOF
13200 break
698dcdb6
VZ
13201else
13202 echo "$ac_t""no" 1>&6
4f3c5f06
VZ
13203fi
13204done
13205
698dcdb6 13206
4f3c5f06 13207 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
698dcdb6 13208 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f3c5f06
VZ
13209 wxUSE_SNGLINST_CHECKER=no
13210 fi
13211fi
13212
270a909e
VZ
13213for ac_func in timegm
13214do
698dcdb6 13215echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6853365e 13216echo "configure:13217: checking for $ac_func" >&5
698dcdb6
VZ
13217if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13218 echo $ac_n "(cached) $ac_c" 1>&6
13219else
13220 cat > conftest.$ac_ext <<EOF
6853365e 13221#line 13222 "configure"
270a909e
VZ
13222#include "confdefs.h"
13223/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13224 which can conflict with char $ac_func(); below. */
270a909e
VZ
13225#include <assert.h>
13226/* Override any gcc2 internal prototype to avoid an error. */
13227/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13228 builtin and then its argument prototype would still apply. */
13229char $ac_func();
13230
13231int main() {
270a909e
VZ
13232
13233/* The GNU C library defines this for functions which it implements
13234 to always fail with ENOSYS. Some functions are actually named
13235 something starting with __ and the normal name is an alias. */
13236#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13237choke me
13238#else
698dcdb6 13239$ac_func();
270a909e
VZ
13240#endif
13241
698dcdb6 13242; return 0; }
270a909e 13243EOF
6853365e 13244if { (eval echo configure:13245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13245 rm -rf conftest*
13246 eval "ac_cv_func_$ac_func=yes"
13247else
13248 echo "configure: failed program was:" >&5
13249 cat conftest.$ac_ext >&5
13250 rm -rf conftest*
13251 eval "ac_cv_func_$ac_func=no"
13252fi
13253rm -f conftest*
13254fi
10f2d63a 13255
698dcdb6
VZ
13256if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13257 echo "$ac_t""yes" 1>&6
13258 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13259 cat >> confdefs.h <<EOF
13260#define $ac_tr_func 1
13261EOF
13262
13263else
13264 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13265fi
13266done
13267
698dcdb6 13268
8fd0d89b
VZ
13269for ac_func in putenv setenv
13270do
698dcdb6 13271echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6853365e 13272echo "configure:13273: checking for $ac_func" >&5
698dcdb6
VZ
13273if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13274 echo $ac_n "(cached) $ac_c" 1>&6
13275else
13276 cat > conftest.$ac_ext <<EOF
6853365e 13277#line 13278 "configure"
8fd0d89b
VZ
13278#include "confdefs.h"
13279/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13280 which can conflict with char $ac_func(); below. */
8fd0d89b
VZ
13281#include <assert.h>
13282/* Override any gcc2 internal prototype to avoid an error. */
13283/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13284 builtin and then its argument prototype would still apply. */
13285char $ac_func();
13286
13287int main() {
8fd0d89b
VZ
13288
13289/* The GNU C library defines this for functions which it implements
13290 to always fail with ENOSYS. Some functions are actually named
13291 something starting with __ and the normal name is an alias. */
13292#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13293choke me
13294#else
698dcdb6 13295$ac_func();
8fd0d89b
VZ
13296#endif
13297
698dcdb6
VZ
13298; return 0; }
13299EOF
6853365e 13300if { (eval echo configure:13301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13301 rm -rf conftest*
13302 eval "ac_cv_func_$ac_func=yes"
13303else
13304 echo "configure: failed program was:" >&5
13305 cat conftest.$ac_ext >&5
13306 rm -rf conftest*
13307 eval "ac_cv_func_$ac_func=no"
13308fi
13309rm -f conftest*
13310fi
13311
13312if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13313 echo "$ac_t""yes" 1>&6
13314 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13315 cat >> confdefs.h <<EOF
13316#define $ac_tr_func 1
8fd0d89b
VZ
13317EOF
13318 break
698dcdb6
VZ
13319else
13320 echo "$ac_t""no" 1>&6
8fd0d89b
VZ
13321fi
13322done
13323
698dcdb6 13324
b12915c1
VZ
13325HAVE_SOME_SLEEP_FUNC=0
13326if test "$USE_BEOS" = 1; then
698dcdb6 13327 cat >> confdefs.h <<\EOF
b12915c1
VZ
13328#define HAVE_SLEEP 1
13329EOF
13330
13331 HAVE_SOME_SLEEP_FUNC=1
13332fi
13333
f11bdd03 13334if test "$USE_DARWIN" = 1; then
698dcdb6 13335 cat >> confdefs.h <<\EOF
b4085ce6
GD
13336#define HAVE_USLEEP 1
13337EOF
13338
13339 HAVE_SOME_SLEEP_FUNC=1
13340fi
13341
b12915c1
VZ
13342if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
13343 POSIX4_LINK=
698dcdb6 13344 for ac_func in nanosleep
10f2d63a 13345do
698dcdb6 13346echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6853365e 13347echo "configure:13348: checking for $ac_func" >&5
698dcdb6
VZ
13348if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13349 echo $ac_n "(cached) $ac_c" 1>&6
13350else
13351 cat > conftest.$ac_ext <<EOF
6853365e 13352#line 13353 "configure"
10f2d63a
VZ
13353#include "confdefs.h"
13354/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13355 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13356#include <assert.h>
13357/* Override any gcc2 internal prototype to avoid an error. */
13358/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13359 builtin and then its argument prototype would still apply. */
13360char $ac_func();
13361
13362int main() {
10f2d63a
VZ
13363
13364/* The GNU C library defines this for functions which it implements
13365 to always fail with ENOSYS. Some functions are actually named
13366 something starting with __ and the normal name is an alias. */
13367#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13368choke me
13369#else
698dcdb6 13370$ac_func();
10f2d63a
VZ
13371#endif
13372
698dcdb6
VZ
13373; return 0; }
13374EOF
6853365e 13375if { (eval echo configure:13376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13376 rm -rf conftest*
13377 eval "ac_cv_func_$ac_func=yes"
13378else
13379 echo "configure: failed program was:" >&5
13380 cat conftest.$ac_ext >&5
13381 rm -rf conftest*
13382 eval "ac_cv_func_$ac_func=no"
13383fi
13384rm -f conftest*
13385fi
13386
13387if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13388 echo "$ac_t""yes" 1>&6
13389 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13390 cat >> confdefs.h <<EOF
13391#define $ac_tr_func 1
13392EOF
13393 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13394#define HAVE_NANOSLEEP 1
13395EOF
13396
13397else
698dcdb6
VZ
13398 echo "$ac_t""no" 1>&6
13399echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
6853365e 13400echo "configure:13401: checking for nanosleep in -lposix4" >&5
698dcdb6
VZ
13401ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
13402if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13403 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13404else
698dcdb6 13405 ac_save_LIBS="$LIBS"
10f2d63a 13406LIBS="-lposix4 $LIBS"
698dcdb6 13407cat > conftest.$ac_ext <<EOF
6853365e 13408#line 13409 "configure"
10f2d63a
VZ
13409#include "confdefs.h"
13410/* Override any gcc2 internal prototype to avoid an error. */
13411/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13412 builtin and then its argument prototype would still apply. */
13413char nanosleep();
13414
13415int main() {
13416nanosleep()
13417; return 0; }
13418EOF
6853365e 13419if { (eval echo configure:13420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13420 rm -rf conftest*
13421 eval "ac_cv_lib_$ac_lib_var=yes"
13422else
13423 echo "configure: failed program was:" >&5
13424 cat conftest.$ac_ext >&5
13425 rm -rf conftest*
13426 eval "ac_cv_lib_$ac_lib_var=no"
13427fi
13428rm -f conftest*
13429LIBS="$ac_save_LIBS"
13430
13431fi
13432if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13433 echo "$ac_t""yes" 1>&6
13434
13435 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13436#define HAVE_NANOSLEEP 1
13437EOF
13438
b12915c1 13439 POSIX4_LINK="-lposix4"
698dcdb6 13440
10f2d63a 13441else
698dcdb6 13442 echo "$ac_t""no" 1>&6
10f2d63a 13443
698dcdb6 13444 for ac_func in usleep
10f2d63a 13445do
698dcdb6 13446echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6853365e 13447echo "configure:13448: checking for $ac_func" >&5
698dcdb6
VZ
13448if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13449 echo $ac_n "(cached) $ac_c" 1>&6
13450else
13451 cat > conftest.$ac_ext <<EOF
6853365e 13452#line 13453 "configure"
10f2d63a
VZ
13453#include "confdefs.h"
13454/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13455 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13456#include <assert.h>
13457/* Override any gcc2 internal prototype to avoid an error. */
13458/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13459 builtin and then its argument prototype would still apply. */
13460char $ac_func();
13461
13462int main() {
10f2d63a
VZ
13463
13464/* The GNU C library defines this for functions which it implements
13465 to always fail with ENOSYS. Some functions are actually named
13466 something starting with __ and the normal name is an alias. */
13467#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13468choke me
13469#else
698dcdb6 13470$ac_func();
10f2d63a
VZ
13471#endif
13472
698dcdb6
VZ
13473; return 0; }
13474EOF
6853365e 13475if { (eval echo configure:13476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13476 rm -rf conftest*
13477 eval "ac_cv_func_$ac_func=yes"
13478else
13479 echo "configure: failed program was:" >&5
13480 cat conftest.$ac_ext >&5
13481 rm -rf conftest*
13482 eval "ac_cv_func_$ac_func=no"
13483fi
13484rm -f conftest*
13485fi
13486
13487if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13488 echo "$ac_t""yes" 1>&6
13489 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13490 cat >> confdefs.h <<EOF
13491#define $ac_tr_func 1
13492EOF
13493 cat >> confdefs.h <<\EOF
b4085ce6
GD
13494#define HAVE_USLEEP 1
13495EOF
13496
10f2d63a 13497else
698dcdb6
VZ
13498 echo "$ac_t""no" 1>&6
13499echo "configure: warning: wxSleep() function will not work" 1>&2
13500
10f2d63a
VZ
13501fi
13502done
13503
698dcdb6
VZ
13504
13505
10f2d63a
VZ
13506fi
13507
698dcdb6
VZ
13508
13509
10f2d63a
VZ
13510fi
13511done
13512
b12915c1 13513fi
10f2d63a
VZ
13514
13515for ac_func in uname gethostname
13516do
698dcdb6 13517echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6853365e 13518echo "configure:13519: checking for $ac_func" >&5
698dcdb6
VZ
13519if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13520 echo $ac_n "(cached) $ac_c" 1>&6
13521else
13522 cat > conftest.$ac_ext <<EOF
6853365e 13523#line 13524 "configure"
10f2d63a
VZ
13524#include "confdefs.h"
13525/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13526 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13527#include <assert.h>
13528/* Override any gcc2 internal prototype to avoid an error. */
13529/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13530 builtin and then its argument prototype would still apply. */
13531char $ac_func();
13532
13533int main() {
10f2d63a
VZ
13534
13535/* The GNU C library defines this for functions which it implements
13536 to always fail with ENOSYS. Some functions are actually named
13537 something starting with __ and the normal name is an alias. */
13538#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13539choke me
13540#else
698dcdb6 13541$ac_func();
10f2d63a
VZ
13542#endif
13543
698dcdb6
VZ
13544; return 0; }
13545EOF
6853365e 13546if { (eval echo configure:13547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13547 rm -rf conftest*
13548 eval "ac_cv_func_$ac_func=yes"
13549else
13550 echo "configure: failed program was:" >&5
13551 cat conftest.$ac_ext >&5
13552 rm -rf conftest*
13553 eval "ac_cv_func_$ac_func=no"
13554fi
13555rm -f conftest*
13556fi
13557
13558if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13559 echo "$ac_t""yes" 1>&6
13560 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13561 cat >> confdefs.h <<EOF
13562#define $ac_tr_func 1
10f2d63a
VZ
13563EOF
13564 break
698dcdb6
VZ
13565else
13566 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13567fi
13568done
13569
698dcdb6
VZ
13570
13571
13572ac_ext=C
13573# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 13574ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
13575ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13576ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13577cross_compiling=$ac_cv_prog_cxx_cross
13578
6098c7f9 13579
10f2d63a
VZ
13580for ac_func in strtok_r
13581do
698dcdb6 13582echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6853365e 13583echo "configure:13584: checking for $ac_func" >&5
698dcdb6
VZ
13584if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13585 echo $ac_n "(cached) $ac_c" 1>&6
13586else
13587 cat > conftest.$ac_ext <<EOF
6853365e 13588#line 13589 "configure"
10f2d63a
VZ
13589#include "confdefs.h"
13590/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13591 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13592#include <assert.h>
13593/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
13594#ifdef __cplusplus
13595extern "C"
13596#endif
10f2d63a 13597/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13598 builtin and then its argument prototype would still apply. */
13599char $ac_func();
13600
13601int main() {
10f2d63a
VZ
13602
13603/* The GNU C library defines this for functions which it implements
13604 to always fail with ENOSYS. Some functions are actually named
13605 something starting with __ and the normal name is an alias. */
13606#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13607choke me
13608#else
698dcdb6 13609$ac_func();
10f2d63a
VZ
13610#endif
13611
698dcdb6 13612; return 0; }
10f2d63a 13613EOF
6853365e 13614if { (eval echo configure:13615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13615 rm -rf conftest*
13616 eval "ac_cv_func_$ac_func=yes"
13617else
13618 echo "configure: failed program was:" >&5
13619 cat conftest.$ac_ext >&5
13620 rm -rf conftest*
13621 eval "ac_cv_func_$ac_func=no"
13622fi
13623rm -f conftest*
13624fi
10f2d63a 13625
698dcdb6
VZ
13626if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13627 echo "$ac_t""yes" 1>&6
13628 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13629 cat >> confdefs.h <<EOF
13630#define $ac_tr_func 1
13631EOF
13632
13633else
13634 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13635fi
13636done
13637
698dcdb6 13638
6098c7f9 13639ac_ext=c
698dcdb6 13640# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 13641ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13642ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13643ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13644cross_compiling=$ac_cv_prog_cc_cross
6232543b 13645
1e487827 13646
698dcdb6 13647INET_LINK=
10f2d63a
VZ
13648for ac_func in inet_addr
13649do
698dcdb6 13650echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6853365e 13651echo "configure:13652: checking for $ac_func" >&5
698dcdb6
VZ
13652if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13653 echo $ac_n "(cached) $ac_c" 1>&6
13654else
13655 cat > conftest.$ac_ext <<EOF
6853365e 13656#line 13657 "configure"
10f2d63a
VZ
13657#include "confdefs.h"
13658/* System header to define __stub macros and hopefully few prototypes,
698dcdb6
VZ
13659 which can conflict with char $ac_func(); below. */
13660#include <assert.h>
13661/* Override any gcc2 internal prototype to avoid an error. */
10f2d63a 13662/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13663 builtin and then its argument prototype would still apply. */
13664char $ac_func();
13665
13666int main() {
10f2d63a
VZ
13667
13668/* The GNU C library defines this for functions which it implements
13669 to always fail with ENOSYS. Some functions are actually named
1e487827
VS
13670 something starting with __ and the normal name is an alias. */
13671#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13672choke me
13673#else
698dcdb6 13674$ac_func();
1e487827 13675#endif
703e0a69 13676
698dcdb6
VZ
13677; return 0; }
13678EOF
6853365e 13679if { (eval echo configure:13680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13680 rm -rf conftest*
13681 eval "ac_cv_func_$ac_func=yes"
13682else
13683 echo "configure: failed program was:" >&5
13684 cat conftest.$ac_ext >&5
13685 rm -rf conftest*
13686 eval "ac_cv_func_$ac_func=no"
13687fi
13688rm -f conftest*
13689fi
13690
13691if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13692 echo "$ac_t""yes" 1>&6
13693 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13694 cat >> confdefs.h <<EOF
13695#define $ac_tr_func 1
13696EOF
13697 cat >> confdefs.h <<\EOF
c63c7106
VZ
13698#define HAVE_INET_ADDR 1
13699EOF
13700
10f2d63a 13701else
698dcdb6
VZ
13702 echo "$ac_t""no" 1>&6
13703echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
6853365e 13704echo "configure:13705: checking for inet_addr in -lnsl" >&5
698dcdb6
VZ
13705ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
13706if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13707 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 13708else
698dcdb6 13709 ac_save_LIBS="$LIBS"
c63c7106 13710LIBS="-lnsl $LIBS"
698dcdb6 13711cat > conftest.$ac_ext <<EOF
6853365e 13712#line 13713 "configure"
c63c7106
VZ
13713#include "confdefs.h"
13714/* Override any gcc2 internal prototype to avoid an error. */
13715/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13716 builtin and then its argument prototype would still apply. */
13717char inet_addr();
13718
13719int main() {
13720inet_addr()
13721; return 0; }
13722EOF
6853365e 13723if { (eval echo configure:13724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13724 rm -rf conftest*
13725 eval "ac_cv_lib_$ac_lib_var=yes"
13726else
13727 echo "configure: failed program was:" >&5
13728 cat conftest.$ac_ext >&5
13729 rm -rf conftest*
13730 eval "ac_cv_lib_$ac_lib_var=no"
13731fi
13732rm -f conftest*
13733LIBS="$ac_save_LIBS"
13734
13735fi
13736if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13737 echo "$ac_t""yes" 1>&6
c63c7106
VZ
13738 INET_LINK="nsl"
13739else
698dcdb6
VZ
13740 echo "$ac_t""no" 1>&6
13741echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
6853365e 13742echo "configure:13743: checking for inet_addr in -lresolv" >&5
698dcdb6
VZ
13743ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
13744if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13745 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 13746else
698dcdb6 13747 ac_save_LIBS="$LIBS"
c63c7106 13748LIBS="-lresolv $LIBS"
698dcdb6 13749cat > conftest.$ac_ext <<EOF
6853365e 13750#line 13751 "configure"
c63c7106
VZ
13751#include "confdefs.h"
13752/* Override any gcc2 internal prototype to avoid an error. */
13753/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13754 builtin and then its argument prototype would still apply. */
13755char inet_addr();
13756
13757int main() {
13758inet_addr()
13759; return 0; }
13760EOF
6853365e 13761if { (eval echo configure:13762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13762 rm -rf conftest*
13763 eval "ac_cv_lib_$ac_lib_var=yes"
13764else
13765 echo "configure: failed program was:" >&5
13766 cat conftest.$ac_ext >&5
13767 rm -rf conftest*
13768 eval "ac_cv_lib_$ac_lib_var=no"
13769fi
13770rm -f conftest*
13771LIBS="$ac_save_LIBS"
c63c7106 13772
6232543b 13773fi
698dcdb6
VZ
13774if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13775 echo "$ac_t""yes" 1>&6
13776 INET_LINK="resolv"
13777
13778else
13779 echo "$ac_t""no" 1>&6
13780fi
c63c7106 13781
698dcdb6 13782
1e487827 13783fi
703e0a69 13784
698dcdb6
VZ
13785
13786
10f2d63a
VZ
13787fi
13788done
13789
698dcdb6 13790
10f2d63a
VZ
13791for ac_func in inet_aton
13792do
698dcdb6 13793echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6853365e 13794echo "configure:13795: checking for $ac_func" >&5
698dcdb6
VZ
13795if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13796 echo $ac_n "(cached) $ac_c" 1>&6
13797else
13798 cat > conftest.$ac_ext <<EOF
6853365e 13799#line 13800 "configure"
10f2d63a
VZ
13800#include "confdefs.h"
13801/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13802 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13803#include <assert.h>
13804/* Override any gcc2 internal prototype to avoid an error. */
13805/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13806 builtin and then its argument prototype would still apply. */
13807char $ac_func();
13808
13809int main() {
10f2d63a
VZ
13810
13811/* The GNU C library defines this for functions which it implements
13812 to always fail with ENOSYS. Some functions are actually named
13813 something starting with __ and the normal name is an alias. */
13814#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13815choke me
13816#else
698dcdb6 13817$ac_func();
10f2d63a
VZ
13818#endif
13819
698dcdb6
VZ
13820; return 0; }
13821EOF
6853365e 13822if { (eval echo configure:13823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13823 rm -rf conftest*
13824 eval "ac_cv_func_$ac_func=yes"
13825else
13826 echo "configure: failed program was:" >&5
13827 cat conftest.$ac_ext >&5
13828 rm -rf conftest*
13829 eval "ac_cv_func_$ac_func=no"
13830fi
13831rm -f conftest*
13832fi
13833
13834if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13835 echo "$ac_t""yes" 1>&6
13836 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13837 cat >> confdefs.h <<EOF
13838#define $ac_tr_func 1
13839EOF
13840 cat >> confdefs.h <<\EOF
c63c7106
VZ
13841#define HAVE_INET_ATON 1
13842EOF
13843
10f2d63a 13844else
698dcdb6
VZ
13845 echo "$ac_t""no" 1>&6
13846 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
6853365e 13847echo "configure:13848: checking for inet_aton in -l$INET_LINK" >&5
698dcdb6
VZ
13848ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
13849if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13850 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13851else
698dcdb6 13852 ac_save_LIBS="$LIBS"
c63c7106 13853LIBS="-l$INET_LINK $LIBS"
698dcdb6 13854cat > conftest.$ac_ext <<EOF
6853365e 13855#line 13856 "configure"
10f2d63a
VZ
13856#include "confdefs.h"
13857/* Override any gcc2 internal prototype to avoid an error. */
13858/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13859 builtin and then its argument prototype would still apply. */
13860char inet_aton();
13861
13862int main() {
13863inet_aton()
13864; return 0; }
13865EOF
6853365e 13866if { (eval echo configure:13867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13867 rm -rf conftest*
13868 eval "ac_cv_lib_$ac_lib_var=yes"
13869else
13870 echo "configure: failed program was:" >&5
13871 cat conftest.$ac_ext >&5
13872 rm -rf conftest*
13873 eval "ac_cv_lib_$ac_lib_var=no"
13874fi
13875rm -f conftest*
13876LIBS="$ac_save_LIBS"
13877
13878fi
13879if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13880 echo "$ac_t""yes" 1>&6
13881 cat >> confdefs.h <<\EOF
c63c7106 13882#define HAVE_INET_ATON 1
10f2d63a
VZ
13883EOF
13884
698dcdb6
VZ
13885else
13886 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13887fi
13888
698dcdb6 13889
c63c7106
VZ
13890fi
13891done
13892
698dcdb6 13893
c63c7106 13894if test "x$INET_LINK" != "x"; then
698dcdb6 13895 cat >> confdefs.h <<\EOF
c63c7106
VZ
13896#define HAVE_INET_ADDR 1
13897EOF
13898
13899 INET_LINK="-l$INET_LINK"
13900fi
10f2d63a
VZ
13901
13902fi
13903
698dcdb6
VZ
13904
13905cat > confcache <<\EOF
10f2d63a
VZ
13906# This file is a shell script that caches the results of configure
13907# tests run on this system so they can be shared between configure
698dcdb6
VZ
13908# scripts and configure runs. It is not useful on other systems.
13909# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 13910#
698dcdb6
VZ
13911# By default, configure uses ./config.cache as the cache file,
13912# creating it if it does not exist already. You can give configure
13913# the --cache-file=FILE option to use a different cache file; that is
13914# what configure does when it calls configure scripts in
13915# subdirectories, so they share the cache.
13916# Giving --cache-file=/dev/null disables caching, for debugging configure.
13917# config.status only pays attention to the cache file if you give it the
13918# --recheck option to rerun configure.
10f2d63a 13919#
698dcdb6 13920EOF
10f2d63a
VZ
13921# The following way of writing the cache mishandles newlines in values,
13922# but we know of no workaround that is simple, portable, and efficient.
13923# So, don't put newlines in cache variables' values.
13924# Ultrix sh set writes to stderr and can't be redirected directly,
13925# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
13926(set) 2>&1 |
13927 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13928 *ac_space=\ *)
13929 # `set' does not quote correctly, so add quotes (double-quote substitution
13930 # turns \\\\ into \\, and sed turns \\ into \).
13931 sed -n \
13932 -e "s/'/'\\\\''/g" \
13933 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13934 ;;
13935 *)
13936 # `set' quotes correctly as required by POSIX, so do not add quotes.
13937 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13938 ;;
13939 esac >> confcache
13940if cmp -s $cache_file confcache; then
13941 :
13942else
10f2d63a 13943 if test -w $cache_file; then
698dcdb6
VZ
13944 echo "updating cache $cache_file"
13945 cat confcache > $cache_file
10f2d63a
VZ
13946 else
13947 echo "not updating unwritable cache $cache_file"
13948 fi
13949fi
13950rm -f confcache
13951
698dcdb6
VZ
13952
13953
b089607b 13954if test "$TOOLKIT" != "MSW"; then
10f2d63a 13955
698dcdb6 13956
10f2d63a
VZ
13957THREADS_LINK=""
13958THREADS_OBJ=""
13959
13960if test "$wxUSE_THREADS" = "yes" ; then
13961 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 13962 echo "configure: warning: Threads are not supported under WINE" 1>&2
10f2d63a 13963 wxUSE_THREADS="no"
b12915c1 13964 elif test "$USE_BEOS" = 1; then
698dcdb6 13965 echo "configure: warning: BeOS threads are not yet supported" 1>&2
b12915c1 13966 wxUSE_THREADS="no"
10f2d63a
VZ
13967 fi
13968fi
13969
13970if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 13971
186837b0 13972 if test "$USE_AIX" = 1; then
f6bcfd97
BP
13973 THREADS_LIB=pthreads
13974 else
13975 THREADS_LIB=pthread
13976 fi
13977
698dcdb6 13978 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
6853365e 13979echo "configure:13980: checking for pthread_create in -l$THREADS_LIB" >&5
698dcdb6
VZ
13980ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
13981if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13982 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13983else
698dcdb6 13984 ac_save_LIBS="$LIBS"
f6bcfd97 13985LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 13986cat > conftest.$ac_ext <<EOF
6853365e 13987#line 13988 "configure"
10f2d63a
VZ
13988#include "confdefs.h"
13989/* Override any gcc2 internal prototype to avoid an error. */
13990/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13991 builtin and then its argument prototype would still apply. */
13992char pthread_create();
13993
13994int main() {
13995pthread_create()
13996; return 0; }
13997EOF
6853365e 13998if { (eval echo configure:13999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13999 rm -rf conftest*
14000 eval "ac_cv_lib_$ac_lib_var=yes"
14001else
14002 echo "configure: failed program was:" >&5
14003 cat conftest.$ac_ext >&5
14004 rm -rf conftest*
14005 eval "ac_cv_lib_$ac_lib_var=no"
14006fi
14007rm -f conftest*
14008LIBS="$ac_save_LIBS"
10f2d63a 14009
698dcdb6
VZ
14010fi
14011if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14012 echo "$ac_t""yes" 1>&6
14013
10f2d63a 14014 THREADS_OBJ="threadpsx.lo"
f6bcfd97 14015 THREADS_LINK=$THREADS_LIB
698dcdb6 14016
10f2d63a 14017else
698dcdb6 14018 echo "$ac_t""no" 1>&6
10f2d63a 14019
698dcdb6 14020 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
6853365e 14021echo "configure:14022: checking for pthread_create in -lc_r" >&5
698dcdb6
VZ
14022ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
14023if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14024 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14025else
698dcdb6 14026 ac_save_LIBS="$LIBS"
10f2d63a 14027LIBS="-lc_r $LIBS"
698dcdb6 14028cat > conftest.$ac_ext <<EOF
6853365e 14029#line 14030 "configure"
10f2d63a
VZ
14030#include "confdefs.h"
14031/* Override any gcc2 internal prototype to avoid an error. */
14032/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14033 builtin and then its argument prototype would still apply. */
14034char pthread_create();
14035
14036int main() {
14037pthread_create()
14038; return 0; }
14039EOF
6853365e 14040if { (eval echo configure:14041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14041 rm -rf conftest*
14042 eval "ac_cv_lib_$ac_lib_var=yes"
14043else
14044 echo "configure: failed program was:" >&5
14045 cat conftest.$ac_ext >&5
14046 rm -rf conftest*
14047 eval "ac_cv_lib_$ac_lib_var=no"
14048fi
14049rm -f conftest*
14050LIBS="$ac_save_LIBS"
10f2d63a 14051
698dcdb6
VZ
14052fi
14053if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14054 echo "$ac_t""yes" 1>&6
14055
10f2d63a
VZ
14056 THREADS_OBJ="threadpsx.lo"
14057 THREADS_LINK="c_r"
698dcdb6 14058
10f2d63a 14059else
698dcdb6 14060 echo "$ac_t""no" 1>&6
10f2d63a 14061
698dcdb6
VZ
14062 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
14063echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
6853365e 14064echo "configure:14065: checking for sys/prctl.h" >&5
698dcdb6
VZ
14065if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14066 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14067else
698dcdb6 14068 cat > conftest.$ac_ext <<EOF
6853365e 14069#line 14070 "configure"
10f2d63a
VZ
14070#include "confdefs.h"
14071#include <sys/prctl.h>
698dcdb6
VZ
14072EOF
14073ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6853365e 14074{ (eval echo configure:14075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14075ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14076if test -z "$ac_err"; then
14077 rm -rf conftest*
14078 eval "ac_cv_header_$ac_safe=yes"
1e487827 14079else
698dcdb6
VZ
14080 echo "$ac_err" >&5
14081 echo "configure: failed program was:" >&5
10f2d63a 14082 cat conftest.$ac_ext >&5
698dcdb6
VZ
14083 rm -rf conftest*
14084 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14085fi
698dcdb6 14086rm -f conftest*
10f2d63a 14087fi
698dcdb6
VZ
14088if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14089 echo "$ac_t""yes" 1>&6
14090
1f8ae82f 14091 THREADS_OBJ="threadsgi.lo"
698dcdb6
VZ
14092
14093else
14094 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14095fi
14096
698dcdb6 14097
6232543b 14098fi
10f2d63a 14099
698dcdb6 14100
1e487827 14101fi
703e0a69 14102
698dcdb6 14103
10f2d63a
VZ
14104 if test -z "$THREADS_OBJ" ; then
14105 wxUSE_THREADS=no
698dcdb6 14106 echo "configure: warning: No thread support on this system" 1>&2
10f2d63a
VZ
14107 fi
14108fi
14109
14110if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 14111 for ac_func in thr_setconcurrency
70846f0a 14112do
698dcdb6 14113echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6853365e 14114echo "configure:14115: checking for $ac_func" >&5
698dcdb6
VZ
14115if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14116 echo $ac_n "(cached) $ac_c" 1>&6
14117else
14118 cat > conftest.$ac_ext <<EOF
6853365e 14119#line 14120 "configure"
70846f0a
VZ
14120#include "confdefs.h"
14121/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14122 which can conflict with char $ac_func(); below. */
70846f0a
VZ
14123#include <assert.h>
14124/* Override any gcc2 internal prototype to avoid an error. */
14125/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14126 builtin and then its argument prototype would still apply. */
14127char $ac_func();
14128
14129int main() {
70846f0a
VZ
14130
14131/* The GNU C library defines this for functions which it implements
14132 to always fail with ENOSYS. Some functions are actually named
14133 something starting with __ and the normal name is an alias. */
14134#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14135choke me
14136#else
698dcdb6 14137$ac_func();
70846f0a
VZ
14138#endif
14139
698dcdb6 14140; return 0; }
70846f0a 14141EOF
6853365e 14142if { (eval echo configure:14143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14143 rm -rf conftest*
14144 eval "ac_cv_func_$ac_func=yes"
14145else
14146 echo "configure: failed program was:" >&5
14147 cat conftest.$ac_ext >&5
14148 rm -rf conftest*
14149 eval "ac_cv_func_$ac_func=no"
14150fi
14151rm -f conftest*
14152fi
70846f0a 14153
698dcdb6
VZ
14154if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14155 echo "$ac_t""yes" 1>&6
14156 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14157 cat >> confdefs.h <<EOF
14158#define $ac_tr_func 1
14159EOF
14160
14161else
14162 echo "$ac_t""no" 1>&6
70846f0a
VZ
14163fi
14164done
14165
698dcdb6
VZ
14166
14167
14168 for ac_hdr in sched.h
10f2d63a 14169do
698dcdb6
VZ
14170ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14171echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6853365e 14172echo "configure:14173: checking for $ac_hdr" >&5
698dcdb6
VZ
14173if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14174 echo $ac_n "(cached) $ac_c" 1>&6
14175else
14176 cat > conftest.$ac_ext <<EOF
6853365e 14177#line 14178 "configure"
10f2d63a 14178#include "confdefs.h"
698dcdb6
VZ
14179#include <$ac_hdr>
14180EOF
14181ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6853365e 14182{ (eval echo configure:14183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14183ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14184if test -z "$ac_err"; then
14185 rm -rf conftest*
14186 eval "ac_cv_header_$ac_safe=yes"
1e487827 14187else
698dcdb6
VZ
14188 echo "$ac_err" >&5
14189 echo "configure: failed program was:" >&5
10f2d63a 14190 cat conftest.$ac_ext >&5
698dcdb6
VZ
14191 rm -rf conftest*
14192 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14193fi
698dcdb6 14194rm -f conftest*
10f2d63a 14195fi
698dcdb6
VZ
14196if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14197 echo "$ac_t""yes" 1>&6
14198 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14199 cat >> confdefs.h <<EOF
14200#define $ac_tr_hdr 1
10f2d63a 14201EOF
698dcdb6
VZ
14202
14203else
14204 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14205fi
14206done
14207
698dcdb6
VZ
14208
14209 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
6853365e 14210echo "configure:14211: checking for sched_yield in -l$THREADS_LINK" >&5
698dcdb6
VZ
14211ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
14212if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14213 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14214else
698dcdb6 14215 ac_save_LIBS="$LIBS"
10f2d63a 14216LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14217cat > conftest.$ac_ext <<EOF
6853365e 14218#line 14219 "configure"
10f2d63a
VZ
14219#include "confdefs.h"
14220/* Override any gcc2 internal prototype to avoid an error. */
14221/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14222 builtin and then its argument prototype would still apply. */
14223char sched_yield();
14224
14225int main() {
14226sched_yield()
14227; return 0; }
14228EOF
6853365e 14229if { (eval echo configure:14230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14230 rm -rf conftest*
14231 eval "ac_cv_lib_$ac_lib_var=yes"
14232else
14233 echo "configure: failed program was:" >&5
14234 cat conftest.$ac_ext >&5
14235 rm -rf conftest*
14236 eval "ac_cv_lib_$ac_lib_var=no"
14237fi
14238rm -f conftest*
14239LIBS="$ac_save_LIBS"
14240
14241fi
14242if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14243 echo "$ac_t""yes" 1>&6
14244 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14245#define HAVE_SCHED_YIELD 1
14246EOF
14247
14248else
698dcdb6
VZ
14249 echo "$ac_t""no" 1>&6
14250echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
6853365e 14251echo "configure:14252: checking for sched_yield in -lposix4" >&5
698dcdb6
VZ
14252ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
14253if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14254 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14255else
698dcdb6 14256 ac_save_LIBS="$LIBS"
1e487827 14257LIBS="-lposix4 $LIBS"
698dcdb6 14258cat > conftest.$ac_ext <<EOF
6853365e 14259#line 14260 "configure"
10f2d63a
VZ
14260#include "confdefs.h"
14261/* Override any gcc2 internal prototype to avoid an error. */
14262/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14263 builtin and then its argument prototype would still apply. */
14264char sched_yield();
14265
14266int main() {
14267sched_yield()
14268; return 0; }
14269EOF
6853365e 14270if { (eval echo configure:14271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14271 rm -rf conftest*
14272 eval "ac_cv_lib_$ac_lib_var=yes"
14273else
14274 echo "configure: failed program was:" >&5
14275 cat conftest.$ac_ext >&5
14276 rm -rf conftest*
14277 eval "ac_cv_lib_$ac_lib_var=no"
14278fi
14279rm -f conftest*
14280LIBS="$ac_save_LIBS"
14281
14282fi
14283if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14284 echo "$ac_t""yes" 1>&6
14285 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14286#define HAVE_SCHED_YIELD 1
14287EOF
14288 POSIX4_LINK="-lposix4"
14289else
698dcdb6
VZ
14290 echo "$ac_t""no" 1>&6
14291echo "configure: warning: wxThread::Yield will not work properly" 1>&2
14292
6232543b 14293fi
10f2d63a 14294
698dcdb6 14295
1e487827 14296fi
703e0a69 14297
698dcdb6 14298
f6bcfd97 14299 HAVE_PRIOR_FUNCS=0
698dcdb6 14300 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
6853365e 14301echo "configure:14302: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
698dcdb6
VZ
14302ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
14303if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14304 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14305else
698dcdb6 14306 ac_save_LIBS="$LIBS"
10f2d63a 14307LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14308cat > conftest.$ac_ext <<EOF
6853365e 14309#line 14310 "configure"
10f2d63a
VZ
14310#include "confdefs.h"
14311/* Override any gcc2 internal prototype to avoid an error. */
14312/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14313 builtin and then its argument prototype would still apply. */
14314char pthread_attr_getschedpolicy();
14315
14316int main() {
14317pthread_attr_getschedpolicy()
14318; return 0; }
14319EOF
6853365e 14320if { (eval echo configure:14321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14321 rm -rf conftest*
14322 eval "ac_cv_lib_$ac_lib_var=yes"
14323else
14324 echo "configure: failed program was:" >&5
14325 cat conftest.$ac_ext >&5
14326 rm -rf conftest*
14327 eval "ac_cv_lib_$ac_lib_var=no"
14328fi
14329rm -f conftest*
14330LIBS="$ac_save_LIBS"
14331
14332fi
14333if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14334 echo "$ac_t""yes" 1>&6
14335 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
6853365e 14336echo "configure:14337: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
698dcdb6
VZ
14337ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
14338if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14339 echo $ac_n "(cached) $ac_c" 1>&6
14340else
14341 ac_save_LIBS="$LIBS"
f6bcfd97 14342LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14343cat > conftest.$ac_ext <<EOF
6853365e 14344#line 14345 "configure"
f6bcfd97
BP
14345#include "confdefs.h"
14346/* Override any gcc2 internal prototype to avoid an error. */
14347/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14348 builtin and then its argument prototype would still apply. */
14349char pthread_attr_setschedparam();
14350
14351int main() {
14352pthread_attr_setschedparam()
14353; return 0; }
14354EOF
6853365e 14355if { (eval echo configure:14356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14356 rm -rf conftest*
14357 eval "ac_cv_lib_$ac_lib_var=yes"
14358else
14359 echo "configure: failed program was:" >&5
14360 cat conftest.$ac_ext >&5
14361 rm -rf conftest*
14362 eval "ac_cv_lib_$ac_lib_var=no"
14363fi
14364rm -f conftest*
14365LIBS="$ac_save_LIBS"
14366
14367fi
14368if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14369 echo "$ac_t""yes" 1>&6
14370 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
6853365e 14371echo "configure:14372: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
698dcdb6
VZ
14372ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14373if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14374 echo $ac_n "(cached) $ac_c" 1>&6
14375else
14376 ac_save_LIBS="$LIBS"
f6bcfd97 14377LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14378cat > conftest.$ac_ext <<EOF
6853365e 14379#line 14380 "configure"
f6bcfd97
BP
14380#include "confdefs.h"
14381/* Override any gcc2 internal prototype to avoid an error. */
14382/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14383 builtin and then its argument prototype would still apply. */
14384char sched_get_priority_max();
14385
14386int main() {
14387sched_get_priority_max()
14388; return 0; }
14389EOF
6853365e 14390if { (eval echo configure:14391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14391 rm -rf conftest*
14392 eval "ac_cv_lib_$ac_lib_var=yes"
14393else
14394 echo "configure: failed program was:" >&5
14395 cat conftest.$ac_ext >&5
14396 rm -rf conftest*
14397 eval "ac_cv_lib_$ac_lib_var=no"
14398fi
14399rm -f conftest*
14400LIBS="$ac_save_LIBS"
14401
14402fi
14403if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14404 echo "$ac_t""yes" 1>&6
f6bcfd97 14405 HAVE_PRIOR_FUNCS=1
10f2d63a 14406else
698dcdb6
VZ
14407 echo "$ac_t""no" 1>&6
14408echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
6853365e 14409echo "configure:14410: checking for sched_get_priority_max in -lposix4" >&5
698dcdb6
VZ
14410ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14411if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14412 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 14413else
698dcdb6 14414 ac_save_LIBS="$LIBS"
1e487827 14415LIBS="-lposix4 $LIBS"
698dcdb6 14416cat > conftest.$ac_ext <<EOF
6853365e 14417#line 14418 "configure"
10f2d63a 14418#include "confdefs.h"
6232543b 14419/* Override any gcc2 internal prototype to avoid an error. */
6232543b 14420/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14421 builtin and then its argument prototype would still apply. */
14422char sched_get_priority_max();
14423
14424int main() {
14425sched_get_priority_max()
14426; return 0; }
14427EOF
6853365e 14428if { (eval echo configure:14429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14429 rm -rf conftest*
14430 eval "ac_cv_lib_$ac_lib_var=yes"
14431else
14432 echo "configure: failed program was:" >&5
14433 cat conftest.$ac_ext >&5
14434 rm -rf conftest*
14435 eval "ac_cv_lib_$ac_lib_var=no"
14436fi
14437rm -f conftest*
14438LIBS="$ac_save_LIBS"
10f2d63a 14439
698dcdb6
VZ
14440fi
14441if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14442 echo "$ac_t""yes" 1>&6
14443
f6bcfd97
BP
14444 HAVE_PRIOR_FUNCS=1
14445 POSIX4_LINK="-lposix4"
698dcdb6
VZ
14446
14447else
14448 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14449fi
14450
698dcdb6 14451
10f2d63a
VZ
14452fi
14453
698dcdb6
VZ
14454
14455else
14456 echo "$ac_t""no" 1>&6
6232543b 14457fi
10f2d63a 14458
698dcdb6
VZ
14459
14460else
14461 echo "$ac_t""no" 1>&6
1e487827 14462fi
703e0a69 14463
698dcdb6 14464
f6bcfd97 14465 if test "$HAVE_PRIOR_FUNCS" = 1; then
698dcdb6 14466 cat >> confdefs.h <<\EOF
f6bcfd97
BP
14467#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
14468EOF
14469
14470 else
698dcdb6 14471 echo "configure: warning: Setting thread priority will not work" 1>&2
f6bcfd97
BP
14472 fi
14473
698dcdb6 14474 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
6853365e 14475echo "configure:14476: checking for pthread_cancel in -l$THREADS_LINK" >&5
698dcdb6
VZ
14476ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
14477if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14478 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14479else
698dcdb6 14480 ac_save_LIBS="$LIBS"
10f2d63a 14481LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14482cat > conftest.$ac_ext <<EOF
6853365e 14483#line 14484 "configure"
10f2d63a
VZ
14484#include "confdefs.h"
14485/* Override any gcc2 internal prototype to avoid an error. */
14486/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14487 builtin and then its argument prototype would still apply. */
14488char pthread_cancel();
14489
14490int main() {
14491pthread_cancel()
14492; return 0; }
14493EOF
6853365e 14494if { (eval echo configure:14495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14495 rm -rf conftest*
14496 eval "ac_cv_lib_$ac_lib_var=yes"
14497else
14498 echo "configure: failed program was:" >&5
14499 cat conftest.$ac_ext >&5
14500 rm -rf conftest*
14501 eval "ac_cv_lib_$ac_lib_var=no"
14502fi
14503rm -f conftest*
14504LIBS="$ac_save_LIBS"
14505
14506fi
14507if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14508 echo "$ac_t""yes" 1>&6
14509 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14510#define HAVE_PTHREAD_CANCEL 1
14511EOF
14512
14513else
698dcdb6
VZ
14514 echo "$ac_t""no" 1>&6
14515echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10f2d63a
VZ
14516fi
14517
1e487827 14518
698dcdb6 14519 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
6853365e 14520echo "configure:14521: checking for pthread_cleanup_push/pop" >&5
698dcdb6
VZ
14521if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
14522 echo $ac_n "(cached) $ac_c" 1>&6
14523else
14524
14525 cat > conftest.$ac_ext <<EOF
6853365e 14526#line 14527 "configure"
10f2d63a
VZ
14527#include "confdefs.h"
14528#include <pthread.h>
698dcdb6 14529int main() {
10f2d63a
VZ
14530
14531 pthread_cleanup_push(NULL, NULL);
14532 pthread_cleanup_pop(0);
698dcdb6
VZ
14533
14534; return 0; }
14535EOF
6853365e 14536if { (eval echo configure:14537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14537 rm -rf conftest*
14538
10f2d63a 14539 wx_cv_func_pthread_cleanup_push=yes
698dcdb6 14540
10f2d63a 14541else
698dcdb6
VZ
14542 echo "configure: failed program was:" >&5
14543 cat conftest.$ac_ext >&5
14544 rm -rf conftest*
14545
10f2d63a 14546 wx_cv_func_pthread_cleanup_push=no
698dcdb6 14547
6232543b 14548fi
698dcdb6
VZ
14549rm -f conftest*
14550
1e487827 14551fi
698dcdb6
VZ
14552
14553echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
10f2d63a 14554
d9b9876f 14555 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
698dcdb6 14556 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14557#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
14558EOF
14559
14560 fi
14561
698dcdb6
VZ
14562
14563 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
6853365e 14564echo "configure:14565: checking for pthread_mutexattr_t" >&5
698dcdb6
VZ
14565if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
14566 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 14567else
698dcdb6
VZ
14568
14569 cat > conftest.$ac_ext <<EOF
6853365e 14570#line 14571 "configure"
d9b9876f
VZ
14571#include "confdefs.h"
14572#include <pthread.h>
698dcdb6 14573int main() {
d9b9876f
VZ
14574
14575 pthread_mutexattr_t attr;
14576 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
698dcdb6
VZ
14577
14578; return 0; }
14579EOF
6853365e 14580if { (eval echo configure:14581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14581 rm -rf conftest*
14582
d9b9876f 14583 wx_cv_type_pthread_mutexattr_t=yes
698dcdb6 14584
d9b9876f 14585else
698dcdb6
VZ
14586 echo "configure: failed program was:" >&5
14587 cat conftest.$ac_ext >&5
14588 rm -rf conftest*
14589
d9b9876f 14590 wx_cv_type_pthread_mutexattr_t=no
698dcdb6
VZ
14591
14592
6232543b 14593fi
698dcdb6
VZ
14594rm -f conftest*
14595
1e487827 14596fi
698dcdb6
VZ
14597
14598echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
d9b9876f
VZ
14599
14600 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
698dcdb6 14601 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14602#define HAVE_PTHREAD_MUTEXATTR_T 1
14603EOF
14604
14605 else
698dcdb6 14606 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
6853365e 14607echo "configure:14608: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
698dcdb6
VZ
14608if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
14609 echo $ac_n "(cached) $ac_c" 1>&6
14610else
14611
14612 cat > conftest.$ac_ext <<EOF
6853365e 14613#line 14614 "configure"
d9b9876f
VZ
14614#include "confdefs.h"
14615#include <pthread.h>
698dcdb6 14616int main() {
d9b9876f
VZ
14617
14618 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
698dcdb6
VZ
14619
14620; return 0; }
14621EOF
6853365e 14622if { (eval echo configure:14623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14623 rm -rf conftest*
14624
d9b9876f 14625 wx_cv_type_pthread_rec_mutex_init=yes
698dcdb6 14626
d9b9876f 14627else
698dcdb6
VZ
14628 echo "configure: failed program was:" >&5
14629 cat conftest.$ac_ext >&5
14630 rm -rf conftest*
14631
d9b9876f 14632 wx_cv_type_pthread_rec_mutex_init=no
698dcdb6
VZ
14633
14634
6232543b 14635fi
698dcdb6
VZ
14636rm -f conftest*
14637
1e487827 14638fi
698dcdb6
VZ
14639
14640echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
3765e936 14641 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
698dcdb6 14642 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14643#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
14644EOF
14645
14646 else
698dcdb6 14647 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
d9b9876f
VZ
14648 fi
14649 fi
14650
10f2d63a 14651 THREADS_LINK="-l$THREADS_LINK"
186837b0
VZ
14652
14653 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
14654 CFLAGS="${CFLAGS} -mt"
14655 CXXFLAGS="${CXXFLAGS} -mt"
14656 LDFLAGS="${LDFLAGS} -mt"
14657 fi
10f2d63a
VZ
14658fi
14659
14660fi
14661
14662if test "$wxUSE_THREADS" = "yes"; then
698dcdb6 14663 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14664#define wxUSE_THREADS 1
14665EOF
14666
698dcdb6 14667
7b6058cd 14668 if test "$USE_DARWIN" != 1; then
10f2d63a 14669 CFLAGS="${CFLAGS} -D_REENTRANT"
2c6025bc
GD
14670 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14671 fi
10f2d63a
VZ
14672
14673 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
14674else
14675 if test "$ac_cv_func_strtok_r" = "yes"; then
698dcdb6 14676 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
6853365e 14677echo "configure:14678: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
14678 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
14679 CFLAGS="${CFLAGS} -D_REENTRANT"
14680 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
698dcdb6 14681 echo "$ac_t""yes" 1>&6
ab9b9eab 14682 else
698dcdb6 14683 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14684 fi
14685 fi
14686fi
14687
6f72b082 14688if test "$WXGTK20" = 1 ; then
698dcdb6 14689 cat >> confdefs.h <<EOF
6f72b082 14690#define __WXGTK20__ $WXGTK20
13111b2a
VZ
14691EOF
14692
14693 WXGTK12=1
14694fi
14695
10f2d63a 14696if test "$WXGTK12" = 1 ; then
698dcdb6 14697 cat >> confdefs.h <<EOF
10f2d63a
VZ
14698#define __WXGTK12__ $WXGTK12
14699EOF
14700
14701fi
14702
f6bcfd97 14703if test "$WXGTK127" = 1 ; then
698dcdb6 14704 cat >> confdefs.h <<EOF
f6bcfd97
BP
14705#define __WXGTK127__ $WXGTK127
14706EOF
14707
14708fi
14709
10f2d63a
VZ
14710if test "$WXWINE" = 1 ; then
14711 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
14712fi
14713
b4085ce6 14714if test "$wxUSE_MAC" = 1 ; then
f11bdd03
GD
14715 TOOLKIT_DEF="${TOOLKIT_DEF} -DTARGET_CARBON"
14716 CFLAGS="${CFLAGS} -fpascal-strings"
14717 CPPFLAGS="${CPPFLAGS} -cpp-precomp -fpascal-strings"
2f51a9ec
GD
14718 # Extract the first word of "Rez", so it can be a program name with args.
14719set dummy Rez; ac_word=$2
698dcdb6 14720echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6853365e 14721echo "configure:14722: checking for $ac_word" >&5
698dcdb6
VZ
14722if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then
14723 echo $ac_n "(cached) $ac_c" 1>&6
2f51a9ec
GD
14724else
14725 if test -n "$REZ"; then
14726 ac_cv_prog_REZ="$REZ" # Let the user override the test.
14727else
698dcdb6
VZ
14728 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14729 ac_dummy="$PATH"
14730 for ac_dir in $ac_dummy; do
14731 test -z "$ac_dir" && ac_dir=.
14732 if test -f $ac_dir/$ac_word; then
14733 ac_cv_prog_REZ="Rez"
14734 break
14735 fi
14736 done
14737 IFS="$ac_save_ifs"
2f51a9ec
GD
14738 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
14739fi
14740fi
698dcdb6 14741REZ="$ac_cv_prog_REZ"
2f51a9ec 14742if test -n "$REZ"; then
698dcdb6 14743 echo "$ac_t""$REZ" 1>&6
2f51a9ec 14744else
698dcdb6 14745 echo "$ac_t""no" 1>&6
2f51a9ec
GD
14746fi
14747
14748 # Extract the first word of "Derez", so it can be a program name with args.
14749set dummy Derez; ac_word=$2
698dcdb6 14750echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6853365e 14751echo "configure:14752: checking for $ac_word" >&5
698dcdb6
VZ
14752if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
14753 echo $ac_n "(cached) $ac_c" 1>&6
2f51a9ec
GD
14754else
14755 if test -n "$DEREZ"; then
14756 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
14757else
698dcdb6
VZ
14758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14759 ac_dummy="$PATH"
14760 for ac_dir in $ac_dummy; do
14761 test -z "$ac_dir" && ac_dir=.
14762 if test -f $ac_dir/$ac_word; then
14763 ac_cv_prog_DEREZ="Derez"
14764 break
14765 fi
14766 done
14767 IFS="$ac_save_ifs"
2f51a9ec
GD
14768 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
14769fi
14770fi
698dcdb6 14771DEREZ="$ac_cv_prog_DEREZ"
2f51a9ec 14772if test -n "$DEREZ"; then
698dcdb6 14773 echo "$ac_t""$DEREZ" 1>&6
2f51a9ec 14774else
698dcdb6 14775 echo "$ac_t""no" 1>&6
2f51a9ec
GD
14776fi
14777
14778 RESCOMP=${REZ}
14779 REZFLAGS="-d __UNIX__ -useDF"
14780 DEREZFLAGS="Carbon.r -useDF"
14781 RESFLAGS="Carbon.r -t APPL"
14782 LIBWXMACRES="\$(LIBWX_MACRES)"
14783 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
b4085ce6
GD
14784fi
14785
10f2d63a
VZ
14786if test "$wxUSE_CYGWIN" = 1 ; then
14787 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
14788fi
14789
14790WXDEBUG=
14791
14792if test "$wxUSE_DEBUG_INFO" = "yes" ; then
14793 WXDEBUG="-g"
14794 wxUSE_OPTIMISE=no
14795fi
14796
14797if test "$wxUSE_DEBUG_GDB" = "yes" ; then
14798 wxUSE_DEBUG_INFO=yes
14799 WXDEBUG="-ggdb"
14800fi
14801
14802if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
698dcdb6 14803 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14804#define WXDEBUG 1
14805EOF
14806
14807 WXDEBUG_DEFINE="-D__WXDEBUG__"
14808else
14809 if test "$wxUSE_GTK" = 1 ; then
14810 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
14811 fi
14812fi
14813
14814if test "$wxUSE_MEM_TRACING" = "yes" ; then
698dcdb6 14815 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14816#define wxUSE_MEMORY_TRACING 1
14817EOF
14818
698dcdb6 14819 cat >> confdefs.h <<\EOF
10f2d63a 14820#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
14821EOF
14822
698dcdb6 14823 cat >> confdefs.h <<\EOF
47c13eb7 14824#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
14825EOF
14826
14827 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
14828fi
14829
14830if test "$wxUSE_DMALLOC" = "yes" ; then
14831 DMALLOC_LINK="-ldmalloc"
14832fi
14833
14834PROFILE=
14835if test "$wxUSE_PROFILE" = "yes" ; then
14836 PROFILE="-pg"
14837fi
14838
14839DEP_INFO_FLAGS=
caa2c79b 14840CODE_GEN_FLAGS=
0f3f1cbc 14841CODE_GEN_FLAGS_CXX=
10f2d63a
VZ
14842if test "$GCC" = yes ; then
14843 if test "$wxUSE_NO_RTTI" = "yes" ; then
0f3f1cbc 14844 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
14845 fi
14846 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
0f3f1cbc 14847 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
14848 fi
14849 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 14850 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
14851 fi
14852 if test "$wxUSE_NO_DEPS" = "no" ; then
14853 DEP_INFO_FLAGS="-MMD"
14854 fi
14855fi
14856
698dcdb6 14857
10f2d63a
VZ
14858CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
14859CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
14860if test "$wxUSE_OPTIMISE" = "no" ; then
14861 OPTIMISE=
14862else
14863 if test "$GCC" = yes ; then
14864 OPTIMISE="-O2"
14865 case "${host}" in
14866 i586-*-*|i686-*-* )
14867 OPTIMISE="${OPTIMISE} "
14868 ;;
14869 esac
14870 else
14871 OPTIMISE="-O"
14872 fi
14873fi
14874
54276ccf
VZ
14875if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
14876 cat >> confdefs.h <<\EOF
14877#define WXWIN_COMPATIBILITY_2 1
14878EOF
14879
14880
14881 WXWIN_COMPATIBILITY_2_2="yes"
14882fi
14883
14884if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
14885 cat >> confdefs.h <<\EOF
14886#define WXWIN_COMPATIBILITY_2_2 1
14887EOF
14888
14889fi
14890
698dcdb6 14891
3e44f09d
VZ
14892REGEX_INCLUDE=
14893if test "$wxUSE_REGEX" != "no"; then
14894 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
14895echo $ac_n "checking for regex.h""... $ac_c" 1>&6
6853365e 14896echo "configure:14897: checking for regex.h" >&5
3e44f09d
VZ
14897if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14898 echo $ac_n "(cached) $ac_c" 1>&6
14899else
14900 cat > conftest.$ac_ext <<EOF
6853365e 14901#line 14902 "configure"
3e44f09d
VZ
14902#include "confdefs.h"
14903#include <regex.h>
14904EOF
14905ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6853365e 14906{ (eval echo configure:14907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3e44f09d
VZ
14907ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14908if test -z "$ac_err"; then
14909 rm -rf conftest*
14910 eval "ac_cv_header_$ac_safe=yes"
14911else
14912 echo "$ac_err" >&5
14913 echo "configure: failed program was:" >&5
14914 cat conftest.$ac_ext >&5
14915 rm -rf conftest*
14916 eval "ac_cv_header_$ac_safe=no"
14917fi
14918rm -f conftest*
14919fi
14920if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14921 echo "$ac_t""yes" 1>&6
14922 for ac_func in regcomp
14923do
14924echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6853365e 14925echo "configure:14926: checking for $ac_func" >&5
3e44f09d
VZ
14926if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14927 echo $ac_n "(cached) $ac_c" 1>&6
14928else
14929 cat > conftest.$ac_ext <<EOF
6853365e 14930#line 14931 "configure"
3e44f09d
VZ
14931#include "confdefs.h"
14932/* System header to define __stub macros and hopefully few prototypes,
14933 which can conflict with char $ac_func(); below. */
14934#include <assert.h>
14935/* Override any gcc2 internal prototype to avoid an error. */
14936/* We use char because int might match the return type of a gcc2
14937 builtin and then its argument prototype would still apply. */
14938char $ac_func();
14939
14940int main() {
14941
14942/* The GNU C library defines this for functions which it implements
14943 to always fail with ENOSYS. Some functions are actually named
14944 something starting with __ and the normal name is an alias. */
14945#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14946choke me
14947#else
14948$ac_func();
14949#endif
14950
14951; return 0; }
14952EOF
6853365e 14953if { (eval echo configure:14954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3e44f09d
VZ
14954 rm -rf conftest*
14955 eval "ac_cv_func_$ac_func=yes"
14956else
14957 echo "configure: failed program was:" >&5
14958 cat conftest.$ac_ext >&5
14959 rm -rf conftest*
14960 eval "ac_cv_func_$ac_func=no"
14961fi
14962rm -f conftest*
14963fi
14964
14965if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14966 echo "$ac_t""yes" 1>&6
14967 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14968 cat >> confdefs.h <<EOF
14969#define $ac_tr_func 1
14970EOF
14971
14972else
14973 echo "$ac_t""no" 1>&6
14974fi
14975done
14976
14977else
14978 echo "$ac_t""no" 1>&6
14979fi
14980
14981
14982 if test "x$ac_cv_func_regcomp" != "xyes"; then
14983 if test "$wxUSE_REGEX" = "sys"; then
14984 { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; }
14985 fi
14986
14987 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
14988 fi
14989
14990 cat >> confdefs.h <<\EOF
14991#define wxUSE_REGEX 1
14992EOF
14993
14994fi
14995
10f2d63a 14996ZLIB_INCLUDE=
422107f9 14997if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
698dcdb6 14998 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14999#define wxUSE_ZLIB 1
15000EOF
15001
422107f9
VZ
15002 if test "$wxUSE_ZLIB" = "yes" ; then
15003 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
15004 else
15005 ZLIB_LINK=
698dcdb6
VZ
15006 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
15007echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
6853365e 15008echo "configure:15009: checking for zlib.h" >&5
698dcdb6
VZ
15009if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15010 echo $ac_n "(cached) $ac_c" 1>&6
15011else
15012 cat > conftest.$ac_ext <<EOF
6853365e 15013#line 15014 "configure"
422107f9
VZ
15014#include "confdefs.h"
15015#include <zlib.h>
698dcdb6
VZ
15016EOF
15017ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6853365e 15018{ (eval echo configure:15019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15019ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15020if test -z "$ac_err"; then
15021 rm -rf conftest*
15022 eval "ac_cv_header_$ac_safe=yes"
422107f9 15023else
698dcdb6
VZ
15024 echo "$ac_err" >&5
15025 echo "configure: failed program was:" >&5
422107f9 15026 cat conftest.$ac_ext >&5
698dcdb6
VZ
15027 rm -rf conftest*
15028 eval "ac_cv_header_$ac_safe=no"
422107f9 15029fi
698dcdb6 15030rm -f conftest*
422107f9 15031fi
698dcdb6
VZ
15032if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15033 echo "$ac_t""yes" 1>&6
15034 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
6853365e 15035echo "configure:15036: checking for deflate in -lz" >&5
698dcdb6
VZ
15036ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
15037if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15038 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15039else
698dcdb6 15040 ac_save_LIBS="$LIBS"
422107f9 15041LIBS="-lz $LIBS"
698dcdb6 15042cat > conftest.$ac_ext <<EOF
6853365e 15043#line 15044 "configure"
422107f9
VZ
15044#include "confdefs.h"
15045/* Override any gcc2 internal prototype to avoid an error. */
15046/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15047 builtin and then its argument prototype would still apply. */
15048char deflate();
15049
15050int main() {
15051deflate()
15052; return 0; }
15053EOF
6853365e 15054if { (eval echo configure:15055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15055 rm -rf conftest*
15056 eval "ac_cv_lib_$ac_lib_var=yes"
15057else
15058 echo "configure: failed program was:" >&5
15059 cat conftest.$ac_ext >&5
15060 rm -rf conftest*
15061 eval "ac_cv_lib_$ac_lib_var=no"
15062fi
15063rm -f conftest*
15064LIBS="$ac_save_LIBS"
15065
15066fi
15067if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15068 echo "$ac_t""yes" 1>&6
422107f9 15069 ZLIB_LINK="-lz"
698dcdb6
VZ
15070else
15071 echo "$ac_t""no" 1>&6
422107f9
VZ
15072fi
15073
698dcdb6
VZ
15074else
15075 echo "$ac_t""no" 1>&6
422107f9
VZ
15076fi
15077
15078 if test "x$ZLIB_LINK" = "x" ; then
698dcdb6 15079 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
422107f9
VZ
15080 fi
15081 fi
10f2d63a
VZ
15082fi
15083
15084PNG_INCLUDE=
422107f9 15085if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
698dcdb6 15086 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15087#define wxUSE_LIBPNG 1
15088EOF
15089
41fd4136 15090 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
698dcdb6 15091 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
422107f9
VZ
15092 wxUSE_LIBPNG=yes
15093 fi
15094
15095 if test "$wxUSE_LIBPNG" = "yes" ; then
15096 PNG_INCLUDE="-I\${top_srcdir}/src/png"
15097 else
15098 PNG_LINK=
698dcdb6
VZ
15099 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
15100echo $ac_n "checking for png.h""... $ac_c" 1>&6
6853365e 15101echo "configure:15102: checking for png.h" >&5
698dcdb6
VZ
15102if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15103 echo $ac_n "(cached) $ac_c" 1>&6
15104else
15105 cat > conftest.$ac_ext <<EOF
6853365e 15106#line 15107 "configure"
422107f9
VZ
15107#include "confdefs.h"
15108#include <png.h>
698dcdb6
VZ
15109EOF
15110ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6853365e 15111{ (eval echo configure:15112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15112ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15113if test -z "$ac_err"; then
15114 rm -rf conftest*
15115 eval "ac_cv_header_$ac_safe=yes"
422107f9 15116else
698dcdb6
VZ
15117 echo "$ac_err" >&5
15118 echo "configure: failed program was:" >&5
422107f9 15119 cat conftest.$ac_ext >&5
698dcdb6
VZ
15120 rm -rf conftest*
15121 eval "ac_cv_header_$ac_safe=no"
422107f9 15122fi
698dcdb6 15123rm -f conftest*
422107f9 15124fi
698dcdb6
VZ
15125if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15126 echo "$ac_t""yes" 1>&6
15127 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
6853365e 15128echo "configure:15129: checking for png_check_sig in -lpng" >&5
698dcdb6
VZ
15129ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
15130if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15131 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15132else
698dcdb6 15133 ac_save_LIBS="$LIBS"
422107f9 15134LIBS="-lpng -lz -lm $LIBS"
698dcdb6 15135cat > conftest.$ac_ext <<EOF
6853365e 15136#line 15137 "configure"
422107f9
VZ
15137#include "confdefs.h"
15138/* Override any gcc2 internal prototype to avoid an error. */
15139/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15140 builtin and then its argument prototype would still apply. */
15141char png_check_sig();
15142
15143int main() {
15144png_check_sig()
15145; return 0; }
15146EOF
6853365e 15147if { (eval echo configure:15148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15148 rm -rf conftest*
15149 eval "ac_cv_lib_$ac_lib_var=yes"
15150else
15151 echo "configure: failed program was:" >&5
15152 cat conftest.$ac_ext >&5
15153 rm -rf conftest*
15154 eval "ac_cv_lib_$ac_lib_var=no"
15155fi
15156rm -f conftest*
15157LIBS="$ac_save_LIBS"
15158
15159fi
15160if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15161 echo "$ac_t""yes" 1>&6
422107f9 15162 PNG_LINK="-lpng"
698dcdb6
VZ
15163else
15164 echo "$ac_t""no" 1>&6
422107f9
VZ
15165fi
15166
698dcdb6
VZ
15167
15168else
15169 echo "$ac_t""no" 1>&6
422107f9
VZ
15170fi
15171
15172 if test "x$PNG_LINK" = "x" ; then
698dcdb6 15173 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
15174 fi
15175 fi
15176
10f2d63a
VZ
15177 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
15178fi
15179
15180JPEG_INCLUDE=
422107f9 15181if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
698dcdb6 15182 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15183#define wxUSE_LIBJPEG 1
15184EOF
15185
422107f9
VZ
15186 if test "$wxUSE_LIBJPEG" = "yes" ; then
15187 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
15188 else
15189 JPEG_LINK=
463abc64 15190 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
6853365e 15191echo "configure:15192: checking for jpeglib.h" >&5
463abc64 15192 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
698dcdb6
VZ
15193 echo $ac_n "(cached) $ac_c" 1>&6
15194else
15195 cat > conftest.$ac_ext <<EOF
6853365e 15196#line 15197 "configure"
422107f9 15197#include "confdefs.h"
463abc64
VZ
15198
15199 #undef HAVE_STDLIB_H
15200 #include <stdio.h>
15201 #include <jpeglib.h>
15202
15203int main() {
15204
15205
15206; return 0; }
698dcdb6 15207EOF
6853365e 15208if { (eval echo configure:15209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15209 rm -rf conftest*
463abc64 15210 ac_cv_header_jpeglib_h=yes
6232543b 15211else
698dcdb6 15212 echo "configure: failed program was:" >&5
422107f9 15213 cat conftest.$ac_ext >&5
698dcdb6 15214 rm -rf conftest*
463abc64
VZ
15215 ac_cv_header_jpeglib_h=no
15216
422107f9 15217fi
698dcdb6 15218rm -f conftest*
463abc64 15219
422107f9 15220fi
463abc64
VZ
15221
15222 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
15223
15224 if test "$ac_cv_header_jpeglib_h" = "yes"; then
15225 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
6853365e 15226echo "configure:15227: checking for jpeg_read_header in -ljpeg" >&5
698dcdb6
VZ
15227ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
15228if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15229 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15230else
698dcdb6 15231 ac_save_LIBS="$LIBS"
422107f9 15232LIBS="-ljpeg $LIBS"
698dcdb6 15233cat > conftest.$ac_ext <<EOF
6853365e 15234#line 15235 "configure"
422107f9
VZ
15235#include "confdefs.h"
15236/* Override any gcc2 internal prototype to avoid an error. */
15237/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15238 builtin and then its argument prototype would still apply. */
15239char jpeg_read_header();
15240
15241int main() {
15242jpeg_read_header()
15243; return 0; }
15244EOF
6853365e 15245if { (eval echo configure:15246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15246 rm -rf conftest*
15247 eval "ac_cv_lib_$ac_lib_var=yes"
15248else
15249 echo "configure: failed program was:" >&5
15250 cat conftest.$ac_ext >&5
15251 rm -rf conftest*
15252 eval "ac_cv_lib_$ac_lib_var=no"
15253fi
15254rm -f conftest*
15255LIBS="$ac_save_LIBS"
15256
15257fi
15258if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15259 echo "$ac_t""yes" 1>&6
422107f9 15260 JPEG_LINK="-ljpeg"
698dcdb6
VZ
15261else
15262 echo "$ac_t""no" 1>&6
422107f9
VZ
15263fi
15264
463abc64 15265 fi
422107f9
VZ
15266
15267 if test "x$JPEG_LINK" = "x" ; then
698dcdb6 15268 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
15269 fi
15270 fi
10f2d63a
VZ
15271fi
15272
c7a2bf27 15273TIFF_INCLUDE=
0dcf9893 15274if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
698dcdb6 15275 cat >> confdefs.h <<\EOF
c7a2bf27
RR
15276#define wxUSE_LIBTIFF 1
15277EOF
15278
665bbe97 15279 if test "$wxUSE_LIBTIFF" = "yes" ; then
0dcf9893
VZ
15280 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
15281 else
15282 TIFF_LINK=
698dcdb6
VZ
15283 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
15284echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
6853365e 15285echo "configure:15286: checking for tiffio.h" >&5
698dcdb6
VZ
15286if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15287 echo $ac_n "(cached) $ac_c" 1>&6
15288else
15289 cat > conftest.$ac_ext <<EOF
6853365e 15290#line 15291 "configure"
0dcf9893
VZ
15291#include "confdefs.h"
15292#include <tiffio.h>
698dcdb6
VZ
15293EOF
15294ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6853365e 15295{ (eval echo configure:15296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15296ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15297if test -z "$ac_err"; then
15298 rm -rf conftest*
15299 eval "ac_cv_header_$ac_safe=yes"
1e487827 15300else
698dcdb6
VZ
15301 echo "$ac_err" >&5
15302 echo "configure: failed program was:" >&5
0dcf9893 15303 cat conftest.$ac_ext >&5
698dcdb6
VZ
15304 rm -rf conftest*
15305 eval "ac_cv_header_$ac_safe=no"
0dcf9893 15306fi
698dcdb6 15307rm -f conftest*
0dcf9893 15308fi
698dcdb6
VZ
15309if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15310 echo "$ac_t""yes" 1>&6
15311 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
6853365e 15312echo "configure:15313: checking for TIFFError in -ltiff" >&5
698dcdb6
VZ
15313ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
15314if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15315 echo $ac_n "(cached) $ac_c" 1>&6
0dcf9893 15316else
698dcdb6 15317 ac_save_LIBS="$LIBS"
0dcf9893 15318LIBS="-ltiff -lm $LIBS"
698dcdb6 15319cat > conftest.$ac_ext <<EOF
6853365e 15320#line 15321 "configure"
0dcf9893
VZ
15321#include "confdefs.h"
15322/* Override any gcc2 internal prototype to avoid an error. */
15323/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15324 builtin and then its argument prototype would still apply. */
15325char TIFFError();
15326
15327int main() {
15328TIFFError()
15329; return 0; }
15330EOF
6853365e 15331if { (eval echo configure:15332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15332 rm -rf conftest*
15333 eval "ac_cv_lib_$ac_lib_var=yes"
15334else
15335 echo "configure: failed program was:" >&5
15336 cat conftest.$ac_ext >&5
15337 rm -rf conftest*
15338 eval "ac_cv_lib_$ac_lib_var=no"
15339fi
15340rm -f conftest*
15341LIBS="$ac_save_LIBS"
15342
15343fi
15344if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15345 echo "$ac_t""yes" 1>&6
0dcf9893 15346 TIFF_LINK="-ltiff"
698dcdb6
VZ
15347else
15348 echo "$ac_t""no" 1>&6
0dcf9893
VZ
15349fi
15350
698dcdb6
VZ
15351else
15352 echo "$ac_t""no" 1>&6
0dcf9893
VZ
15353fi
15354
15355 if test "x$TIFF_LINK" = "x" ; then
698dcdb6 15356 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
0dcf9893
VZ
15357 fi
15358 fi
c7a2bf27
RR
15359fi
15360
3fed1840
RR
15361FREETYPE_INCLUDE=
15362if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
698dcdb6 15363 cat >> confdefs.h <<\EOF
3fed1840
RR
15364#define wxUSE_FREETYPE 1
15365EOF
15366
15367 if test "$wxUSE_FREETYPE" = "yes" ; then
15368 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
15369 else
15370 FREETYPE_LINK=
698dcdb6
VZ
15371 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
15372echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
6853365e 15373echo "configure:15374: checking for freetype.h" >&5
698dcdb6
VZ
15374if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15375 echo $ac_n "(cached) $ac_c" 1>&6
15376else
15377 cat > conftest.$ac_ext <<EOF
6853365e 15378#line 15379 "configure"
3fed1840
RR
15379#include "confdefs.h"
15380#include <freetype.h>
698dcdb6
VZ
15381EOF
15382ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6853365e 15383{ (eval echo configure:15384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15384ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15385if test -z "$ac_err"; then
15386 rm -rf conftest*
15387 eval "ac_cv_header_$ac_safe=yes"
3fed1840 15388else
698dcdb6
VZ
15389 echo "$ac_err" >&5
15390 echo "configure: failed program was:" >&5
3fed1840 15391 cat conftest.$ac_ext >&5
698dcdb6
VZ
15392 rm -rf conftest*
15393 eval "ac_cv_header_$ac_safe=no"
3fed1840 15394fi
698dcdb6 15395rm -f conftest*
3fed1840 15396fi
698dcdb6
VZ
15397if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15398 echo "$ac_t""yes" 1>&6
15399 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
6853365e 15400echo "configure:15401: checking for FT_Render_Glyph in -lfreetype" >&5
698dcdb6
VZ
15401ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
15402if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15403 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 15404else
698dcdb6 15405 ac_save_LIBS="$LIBS"
3fed1840 15406LIBS="-lfreetype -lm $LIBS"
698dcdb6 15407cat > conftest.$ac_ext <<EOF
6853365e 15408#line 15409 "configure"
3fed1840
RR
15409#include "confdefs.h"
15410/* Override any gcc2 internal prototype to avoid an error. */
15411/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15412 builtin and then its argument prototype would still apply. */
15413char FT_Render_Glyph();
15414
15415int main() {
15416FT_Render_Glyph()
15417; return 0; }
15418EOF
6853365e 15419if { (eval echo configure:15420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15420 rm -rf conftest*
15421 eval "ac_cv_lib_$ac_lib_var=yes"
15422else
15423 echo "configure: failed program was:" >&5
15424 cat conftest.$ac_ext >&5
15425 rm -rf conftest*
15426 eval "ac_cv_lib_$ac_lib_var=no"
15427fi
15428rm -f conftest*
15429LIBS="$ac_save_LIBS"
15430
15431fi
15432if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15433 echo "$ac_t""yes" 1>&6
3fed1840 15434 FREETYPE_LINK="-lfreetype"
698dcdb6
VZ
15435else
15436 echo "$ac_t""no" 1>&6
3fed1840
RR
15437fi
15438
698dcdb6
VZ
15439
15440else
15441 echo "$ac_t""no" 1>&6
3fed1840
RR
15442fi
15443
15444 if test "x$FREETYPE_LINK" = "x" ; then
698dcdb6 15445 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
3fed1840
RR
15446 fi
15447 fi
15448fi
15449
10f2d63a 15450if test "$wxUSE_OPENGL" = "yes"; then
7b6058cd
GD
15451 if test "$wxUSE_MAC" = 1; then
15452 cat >> confdefs.h <<\EOF
15453#define wxUSE_OPENGL 1
15454EOF
15455
15456 cat >> confdefs.h <<\EOF
15457#define wxUSE_GLCANVAS 1
15458EOF
15459
15460 OPENGL_LINK="-framework OpenGL -framework AGL"
24176f2c 15461 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
7b6058cd
GD
15462 else
15463 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
698dcdb6 15464echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
6853365e 15465echo "configure:15466: checking for GL/gl.h" >&5
698dcdb6
VZ
15466if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15467 echo $ac_n "(cached) $ac_c" 1>&6
15468else
15469 cat > conftest.$ac_ext <<EOF
6853365e 15470#line 15471 "configure"
10f2d63a
VZ
15471#include "confdefs.h"
15472#include <GL/gl.h>
698dcdb6
VZ
15473EOF
15474ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6853365e 15475{ (eval echo configure:15476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15476ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15477if test -z "$ac_err"; then
15478 rm -rf conftest*
15479 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 15480else
698dcdb6
VZ
15481 echo "$ac_err" >&5
15482 echo "configure: failed program was:" >&5
10f2d63a 15483 cat conftest.$ac_ext >&5
698dcdb6
VZ
15484 rm -rf conftest*
15485 eval "ac_cv_header_$ac_safe=no"
10f2d63a 15486fi
698dcdb6 15487rm -f conftest*
10f2d63a 15488fi
698dcdb6
VZ
15489if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15490 echo "$ac_t""yes" 1>&6
15491
7b6058cd 15492 cat >> confdefs.h <<\EOF
bdad4e7e
RR
15493#define wxUSE_OPENGL 1
15494EOF
15495
7b6058cd 15496 cat >> confdefs.h <<\EOF
bdad4e7e
RR
15497#define wxUSE_GLCANVAS 1
15498EOF
15499
24176f2c 15500 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
7b6058cd 15501 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
6853365e 15502echo "configure:15503: checking for glFlush in -lGL" >&5
698dcdb6
VZ
15503ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
15504if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15505 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15506else
698dcdb6 15507 ac_save_LIBS="$LIBS"
bdad4e7e 15508LIBS="-lGL $LIBS"
698dcdb6 15509cat > conftest.$ac_ext <<EOF
6853365e 15510#line 15511 "configure"
10f2d63a
VZ
15511#include "confdefs.h"
15512/* Override any gcc2 internal prototype to avoid an error. */
15513/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15514 builtin and then its argument prototype would still apply. */
15515char glFlush();
6232543b 15516
698dcdb6
VZ
15517int main() {
15518glFlush()
15519; return 0; }
15520EOF
6853365e 15521if { (eval echo configure:15522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15522 rm -rf conftest*
15523 eval "ac_cv_lib_$ac_lib_var=yes"
15524else
15525 echo "configure: failed program was:" >&5
15526 cat conftest.$ac_ext >&5
15527 rm -rf conftest*
15528 eval "ac_cv_lib_$ac_lib_var=no"
15529fi
15530rm -f conftest*
15531LIBS="$ac_save_LIBS"
1e487827 15532
698dcdb6
VZ
15533fi
15534if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15535 echo "$ac_t""yes" 1>&6
15536
7b6058cd
GD
15537 OPENGL_LINK="-lGL -lGLU"
15538
10f2d63a 15539else
698dcdb6 15540 echo "$ac_t""no" 1>&6
10f2d63a 15541
7b6058cd 15542 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
6853365e 15543echo "configure:15544: checking for glFlush in -lMesaGL" >&5
698dcdb6
VZ
15544ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
15545if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15546 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15547else
698dcdb6 15548 ac_save_LIBS="$LIBS"
10f2d63a 15549LIBS="-lMesaGL $LIBS"
698dcdb6 15550cat > conftest.$ac_ext <<EOF
6853365e 15551#line 15552 "configure"
10f2d63a
VZ
15552#include "confdefs.h"
15553/* Override any gcc2 internal prototype to avoid an error. */
15554/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15555 builtin and then its argument prototype would still apply. */
15556char glFlush();
15557
15558int main() {
15559glFlush()
15560; return 0; }
15561EOF
6853365e 15562if { (eval echo configure:15563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15563 rm -rf conftest*
15564 eval "ac_cv_lib_$ac_lib_var=yes"
15565else
15566 echo "configure: failed program was:" >&5
15567 cat conftest.$ac_ext >&5
15568 rm -rf conftest*
15569 eval "ac_cv_lib_$ac_lib_var=no"
15570fi
15571rm -f conftest*
15572LIBS="$ac_save_LIBS"
10f2d63a 15573
698dcdb6
VZ
15574fi
15575if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15576 echo "$ac_t""yes" 1>&6
15577
7b6058cd
GD
15578 OPENGL_LINK="-lMesaGL -lMesaGLU"
15579
698dcdb6
VZ
15580else
15581 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15582fi
15583
7b6058cd 15584
10f2d63a
VZ
15585fi
15586
7b6058cd 15587
10f2d63a 15588else
698dcdb6
VZ
15589 echo "$ac_t""no" 1>&6
15590wxUSE_OPENGL=0
10f2d63a
VZ
15591fi
15592
7b6058cd 15593 fi
10f2d63a
VZ
15594fi
15595
698dcdb6 15596
10f2d63a 15597if test "$wxUSE_GUI" = "yes"; then
698dcdb6 15598 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15599#define wxUSE_GUI 1
15600EOF
15601
698dcdb6 15602
10f2d63a 15603 else
698dcdb6 15604 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15605#define wxUSE_NOGUI 1
15606EOF
15607
15608fi
15609
698dcdb6 15610
10f2d63a 15611if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 15612 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15613#define wxUSE_UNIX 1
15614EOF
15615
15616fi
15617
698dcdb6 15618
10f2d63a 15619if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 15620 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15621#define wxUSE_APPLE_IEEE 1
15622EOF
15623
15624fi
15625
1e6feb95
VZ
15626if test "$wxUSE_TIMER" = "yes"; then
15627 cat >> confdefs.h <<\EOF
15628#define wxUSE_TIMER 1
15629EOF
15630
15631fi
15632
10f2d63a 15633if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 15634 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15635#define wxUSE_WAVE 1
15636EOF
15637
15638fi
15639
1e6feb95
VZ
15640if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15641 cat >> confdefs.h <<\EOF
15642#define wxUSE_CMDLINE_PARSER 1
15643EOF
15644
15645fi
15646
15647if test "$wxUSE_STOPWATCH" = "yes"; then
15648 cat >> confdefs.h <<\EOF
15649#define wxUSE_STOPWATCH 1
15650EOF
15651
15652fi
15653
15654if test "$wxUSE_DATETIME" = "yes"; then
15655 cat >> confdefs.h <<\EOF
15656#define wxUSE_DATETIME 1
15657EOF
15658
15659fi
15660
15661if test "$wxUSE_TIMEDATE" = "yes"; then
15662 cat >> confdefs.h <<\EOF
15663#define wxUSE_TIMEDATE 1
15664EOF
15665
15666fi
15667
10f2d63a 15668if test "$wxUSE_FILE" = "yes"; then
698dcdb6 15669 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15670#define wxUSE_FILE 1
15671EOF
15672
15673fi
15674
1e6feb95
VZ
15675if test "$wxUSE_FFILE" = "yes"; then
15676 cat >> confdefs.h <<\EOF
15677#define wxUSE_FFILE 1
15678EOF
15679
15680fi
15681
24528b0c 15682if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 15683 cat >> confdefs.h <<\EOF
24528b0c
VS
15684#define wxUSE_FILESYSTEM 1
15685EOF
15686
15687fi
15688
10f2d63a 15689if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 15690 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15691#define wxUSE_FS_INET 1
15692EOF
15693
15694fi
15695
15696if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 15697 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15698#define wxUSE_FS_ZIP 1
15699EOF
15700
15701fi
15702
15703if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 15704 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15705#define wxUSE_ZIPSTREAM 1
15706EOF
15707
15708fi
15709
eb4efbdc 15710if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 15711 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
15712#define wxUSE_ON_FATAL_EXCEPTION 1
15713EOF
15714
15715fi
15716
4f3c5f06 15717if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 15718 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
15719#define wxUSE_SNGLINST_CHECKER 1
15720EOF
15721
15722fi
15723
10f2d63a 15724if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 15725 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15726#define wxUSE_BUSYINFO 1
15727EOF
15728
15729fi
15730
15731if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 15732 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15733#define wxUSE_STD_IOSTREAM 1
15734EOF
15735
15736fi
15737
15738if test "$wxUSE_TEXTFILE" = "yes"; then
15739 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15740 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 15741 else
698dcdb6 15742 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15743#define wxUSE_TEXTFILE 1
15744EOF
15745
15746 fi
15747fi
15748
15749if test "$wxUSE_CONFIG" = "yes" ; then
15750 if test "$wxUSE_TEXTFILE" != "yes"; then
698dcdb6 15751 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
10f2d63a 15752 else
698dcdb6 15753 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15754#define wxUSE_CONFIG 1
15755EOF
15756
15757 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15758 fi
15759fi
15760
15761if test "$wxUSE_INTL" = "yes" ; then
15762 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15763 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 15764 else
698dcdb6 15765 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15766#define wxUSE_INTL 1
15767EOF
15768
15769 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 15770 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
15771 fi
15772fi
15773
15774if test "$wxUSE_LOG" = "yes"; then
698dcdb6 15775 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15776#define wxUSE_LOG 1
15777EOF
15778
d73be714
VZ
15779
15780 if test "$wxUSE_LOGGUI" = "yes"; then
15781 cat >> confdefs.h <<\EOF
15782#define wxUSE_LOGGUI 1
15783EOF
15784
15785 fi
15786
15787 if test "$wxUSE_LOGWINDOW" = "yes"; then
15788 cat >> confdefs.h <<\EOF
15789#define wxUSE_LOGWINDOW 1
15790EOF
15791
15792 fi
10f2d63a
VZ
15793fi
15794
15795if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 15796 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15797#define wxUSE_LONGLONG 1
15798EOF
15799
15800fi
15801
e8f65ba6 15802if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 15803 cat >> confdefs.h <<\EOF
e8f65ba6
RR
15804#define wxUSE_GEOMETRY 1
15805EOF
15806
15807fi
15808
10f2d63a 15809if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 15810 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15811#define wxUSE_DIALUP_MANAGER 1
15812EOF
15813
70f7a477 15814 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
15815fi
15816
15817if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 15818 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15819#define wxUSE_STREAMS 1
15820EOF
15821
15822fi
15823
1e487827 15824
1e6feb95 15825if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 15826 for ac_func in strptime
83307f33 15827do
698dcdb6 15828echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6853365e 15829echo "configure:15830: checking for $ac_func" >&5
698dcdb6
VZ
15830if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15831 echo $ac_n "(cached) $ac_c" 1>&6
15832else
15833 cat > conftest.$ac_ext <<EOF
6853365e 15834#line 15835 "configure"
83307f33
VZ
15835#include "confdefs.h"
15836/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15837 which can conflict with char $ac_func(); below. */
83307f33
VZ
15838#include <assert.h>
15839/* Override any gcc2 internal prototype to avoid an error. */
15840/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15841 builtin and then its argument prototype would still apply. */
15842char $ac_func();
15843
15844int main() {
83307f33
VZ
15845
15846/* The GNU C library defines this for functions which it implements
15847 to always fail with ENOSYS. Some functions are actually named
15848 something starting with __ and the normal name is an alias. */
15849#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15850choke me
15851#else
698dcdb6 15852$ac_func();
83307f33
VZ
15853#endif
15854
698dcdb6 15855; return 0; }
83307f33 15856EOF
6853365e 15857if { (eval echo configure:15858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15858 rm -rf conftest*
15859 eval "ac_cv_func_$ac_func=yes"
15860else
15861 echo "configure: failed program was:" >&5
15862 cat conftest.$ac_ext >&5
15863 rm -rf conftest*
15864 eval "ac_cv_func_$ac_func=no"
15865fi
15866rm -f conftest*
15867fi
83307f33 15868
698dcdb6
VZ
15869if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15870 echo "$ac_t""yes" 1>&6
15871 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15872 cat >> confdefs.h <<EOF
15873#define $ac_tr_func 1
15874EOF
15875
15876else
15877 echo "$ac_t""no" 1>&6
83307f33
VZ
15878fi
15879done
15880
1e487827 15881
698dcdb6 15882 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
6853365e 15883echo "configure:15884: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
15884if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
15885 echo $ac_n "(cached) $ac_c" 1>&6
15886else
15887
15888 cat > conftest.$ac_ext <<EOF
6853365e 15889#line 15890 "configure"
360d6699
VZ
15890#include "confdefs.h"
15891
b4085ce6 15892 #include <time.h>
698dcdb6
VZ
15893
15894int main() {
360d6699
VZ
15895
15896 int tz;
4f11a343 15897 tz = timezone;
698dcdb6
VZ
15898
15899; return 0; }
15900EOF
6853365e 15901if { (eval echo configure:15902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15902 rm -rf conftest*
15903
4f11a343 15904 wx_cv_var_timezone=timezone
698dcdb6 15905
360d6699 15906else
698dcdb6
VZ
15907 echo "configure: failed program was:" >&5
15908 cat conftest.$ac_ext >&5
15909 rm -rf conftest*
15910
15911 cat > conftest.$ac_ext <<EOF
6853365e 15912#line 15913 "configure"
360d6699
VZ
15913#include "confdefs.h"
15914
b4085ce6 15915 #include <time.h>
698dcdb6
VZ
15916
15917int main() {
360d6699
VZ
15918
15919 int tz;
15920 tz = _timezone;
698dcdb6
VZ
15921
15922; return 0; }
15923EOF
6853365e 15924if { (eval echo configure:15925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15925 rm -rf conftest*
15926
360d6699 15927 wx_cv_var_timezone=_timezone
698dcdb6 15928
5357c8e8 15929else
698dcdb6
VZ
15930 echo "configure: failed program was:" >&5
15931 cat conftest.$ac_ext >&5
15932 rm -rf conftest*
15933
15934 cat > conftest.$ac_ext <<EOF
6853365e 15935#line 15936 "configure"
5357c8e8
VZ
15936#include "confdefs.h"
15937
b4085ce6 15938 #include <time.h>
698dcdb6
VZ
15939
15940int main() {
5357c8e8
VZ
15941
15942 int tz;
4f11a343 15943 tz = __timezone;
698dcdb6
VZ
15944
15945; return 0; }
15946EOF
6853365e 15947if { (eval echo configure:15948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15948 rm -rf conftest*
15949
4f11a343 15950 wx_cv_var_timezone=__timezone
698dcdb6 15951
360d6699 15952else
698dcdb6
VZ
15953 echo "configure: failed program was:" >&5
15954 cat conftest.$ac_ext >&5
15955 rm -rf conftest*
15956 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
15957
360d6699 15958fi
698dcdb6
VZ
15959rm -f conftest*
15960
15961
360d6699 15962fi
698dcdb6
VZ
15963rm -f conftest*
15964
15965
6232543b 15966fi
698dcdb6
VZ
15967rm -f conftest*
15968
15969
1e487827 15970fi
703e0a69 15971
698dcdb6
VZ
15972echo "$ac_t""$wx_cv_var_timezone" 1>&6
15973
15974 cat >> confdefs.h <<EOF
360d6699
VZ
15975#define WX_TIMEZONE $wx_cv_var_timezone
15976EOF
15977
698dcdb6
VZ
15978
15979 for ac_func in localtime
afc31813 15980do
698dcdb6 15981echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6853365e 15982echo "configure:15983: checking for $ac_func" >&5
698dcdb6
VZ
15983if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15984 echo $ac_n "(cached) $ac_c" 1>&6
15985else
15986 cat > conftest.$ac_ext <<EOF
6853365e 15987#line 15988 "configure"
10f2d63a 15988#include "confdefs.h"
afc31813 15989/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15990 which can conflict with char $ac_func(); below. */
afc31813
VZ
15991#include <assert.h>
15992/* Override any gcc2 internal prototype to avoid an error. */
15993/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15994 builtin and then its argument prototype would still apply. */
15995char $ac_func();
15996
15997int main() {
afc31813
VZ
15998
15999/* The GNU C library defines this for functions which it implements
16000 to always fail with ENOSYS. Some functions are actually named
16001 something starting with __ and the normal name is an alias. */
16002#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16003choke me
16004#else
698dcdb6 16005$ac_func();
afc31813
VZ
16006#endif
16007
698dcdb6 16008; return 0; }
10f2d63a 16009EOF
6853365e 16010if { (eval echo configure:16011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16011 rm -rf conftest*
16012 eval "ac_cv_func_$ac_func=yes"
16013else
16014 echo "configure: failed program was:" >&5
16015 cat conftest.$ac_ext >&5
16016 rm -rf conftest*
16017 eval "ac_cv_func_$ac_func=no"
16018fi
16019rm -f conftest*
16020fi
afc31813 16021
698dcdb6
VZ
16022if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16023 echo "$ac_t""yes" 1>&6
16024 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16025 cat >> confdefs.h <<EOF
16026#define $ac_tr_func 1
16027EOF
16028
16029else
16030 echo "$ac_t""no" 1>&6
afc31813
VZ
16031fi
16032done
16033
1e487827 16034
698dcdb6
VZ
16035 if test "$ac_cv_func_localtime" = "yes"; then
16036 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
6853365e 16037echo "configure:16038: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
16038if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16039 echo $ac_n "(cached) $ac_c" 1>&6
16040else
16041
16042 cat > conftest.$ac_ext <<EOF
6853365e 16043#line 16044 "configure"
0470b1e6
VZ
16044#include "confdefs.h"
16045
b4085ce6 16046 #include <time.h>
698dcdb6
VZ
16047
16048int main() {
0470b1e6
VZ
16049
16050 struct tm tm;
16051 tm.tm_gmtoff++;
698dcdb6
VZ
16052
16053; return 0; }
16054EOF
6853365e 16055if { (eval echo configure:16056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16056 rm -rf conftest*
16057
f03a98d8 16058 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 16059
0470b1e6 16060else
698dcdb6
VZ
16061 echo "configure: failed program was:" >&5
16062 cat conftest.$ac_ext >&5
16063 rm -rf conftest*
16064 wx_cv_struct_tm_has_gmtoff=no
16065
0470b1e6 16066fi
698dcdb6
VZ
16067rm -f conftest*
16068
1e487827 16069fi
698dcdb6
VZ
16070
16071echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
16072 fi
16073
16074 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 16075 cat >> confdefs.h <<\EOF
6232543b
VS
16076#define WX_GMTOFF_IN_TM 1
16077EOF
0470b1e6 16078
3fcdd07b
VZ
16079 fi
16080
698dcdb6 16081 for ac_func in gettimeofday ftime
3fcdd07b 16082do
698dcdb6 16083echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6853365e 16084echo "configure:16085: checking for $ac_func" >&5
698dcdb6
VZ
16085if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16086 echo $ac_n "(cached) $ac_c" 1>&6
16087else
16088 cat > conftest.$ac_ext <<EOF
6853365e 16089#line 16090 "configure"
3fcdd07b
VZ
16090#include "confdefs.h"
16091/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16092 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
16093#include <assert.h>
16094/* Override any gcc2 internal prototype to avoid an error. */
16095/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16096 builtin and then its argument prototype would still apply. */
16097char $ac_func();
16098
16099int main() {
3fcdd07b
VZ
16100
16101/* The GNU C library defines this for functions which it implements
16102 to always fail with ENOSYS. Some functions are actually named
16103 something starting with __ and the normal name is an alias. */
16104#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16105choke me
16106#else
698dcdb6 16107$ac_func();
3fcdd07b
VZ
16108#endif
16109
698dcdb6
VZ
16110; return 0; }
16111EOF
6853365e 16112if { (eval echo configure:16113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16113 rm -rf conftest*
16114 eval "ac_cv_func_$ac_func=yes"
16115else
16116 echo "configure: failed program was:" >&5
16117 cat conftest.$ac_ext >&5
16118 rm -rf conftest*
16119 eval "ac_cv_func_$ac_func=no"
16120fi
16121rm -f conftest*
16122fi
16123
16124if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16125 echo "$ac_t""yes" 1>&6
16126 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16127 cat >> confdefs.h <<EOF
16128#define $ac_tr_func 1
3fcdd07b
VZ
16129EOF
16130 break
698dcdb6
VZ
16131else
16132 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
16133fi
16134done
16135
afc31813 16136
698dcdb6
VZ
16137 if test "$ac_cv_func_gettimeofday" = "yes"; then
16138 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
6853365e 16139echo "configure:16140: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
16140if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16141 echo $ac_n "(cached) $ac_c" 1>&6
16142else
16143
16144
16145 ac_ext=C
16146# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16147ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16148ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16149ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16150cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16151
698dcdb6
VZ
16152
16153 cat > conftest.$ac_ext <<EOF
6853365e 16154#line 16155 "configure"
10f2d63a 16155#include "confdefs.h"
afc31813
VZ
16156
16157 #include <sys/time.h>
16158 #include <unistd.h>
698dcdb6
VZ
16159
16160int main() {
afc31813
VZ
16161
16162 struct timeval tv;
16163 struct timezone tz;
16164 gettimeofday(&tv, &tz);
698dcdb6
VZ
16165
16166; return 0; }
16167EOF
6853365e 16168if { (eval echo configure:16169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16169 rm -rf conftest*
afc31813 16170 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 16171else
698dcdb6
VZ
16172 echo "configure: failed program was:" >&5
16173 cat conftest.$ac_ext >&5
16174 rm -rf conftest*
16175 cat > conftest.$ac_ext <<EOF
6853365e 16176#line 16177 "configure"
10f2d63a 16177#include "confdefs.h"
afc31813
VZ
16178
16179 #include <sys/time.h>
16180 #include <unistd.h>
698dcdb6
VZ
16181
16182int main() {
afc31813
VZ
16183
16184 struct timeval tv;
16185 gettimeofday(&tv);
698dcdb6
VZ
16186
16187; return 0; }
16188EOF
6853365e 16189if { (eval echo configure:16190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16190 rm -rf conftest*
afc31813 16191 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 16192else
698dcdb6
VZ
16193 echo "configure: failed program was:" >&5
16194 cat conftest.$ac_ext >&5
16195 rm -rf conftest*
16196 wx_cv_func_gettimeofday_has_2_args=unknown
16197
10f2d63a 16198fi
698dcdb6
VZ
16199rm -f conftest*
16200
10f2d63a 16201fi
698dcdb6 16202rm -f conftest*
afc31813 16203 ac_ext=c
698dcdb6 16204# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 16205ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16206ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16207ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16208cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 16209
698dcdb6 16210
afc31813 16211fi
698dcdb6
VZ
16212
16213echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 16214
afc31813 16215 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 16216 cat >> confdefs.h <<\EOF
afc31813
VZ
16217#define WX_GETTIMEOFDAY_NO_TZ 1
16218EOF
16219
16220 fi
16221 fi
16222
698dcdb6 16223 cat >> confdefs.h <<\EOF
afc31813
VZ
16224#define wxUSE_TIMEDATE 1
16225EOF
16226
16227 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16228fi
16229
698dcdb6 16230
b089607b
VZ
16231if test "$TOOLKIT" != "MSW"; then
16232
afc31813 16233if test "$wxUSE_SOCKETS" = "yes"; then
698dcdb6 16234 echo $ac_n "checking for socket""... $ac_c" 1>&6
6853365e 16235echo "configure:16236: checking for socket" >&5
698dcdb6
VZ
16236if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16237 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16238else
698dcdb6 16239 cat > conftest.$ac_ext <<EOF
6853365e 16240#line 16241 "configure"
c63c7106
VZ
16241#include "confdefs.h"
16242/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16243 which can conflict with char socket(); below. */
c63c7106
VZ
16244#include <assert.h>
16245/* Override any gcc2 internal prototype to avoid an error. */
16246/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16247 builtin and then its argument prototype would still apply. */
16248char socket();
16249
16250int main() {
c63c7106
VZ
16251
16252/* The GNU C library defines this for functions which it implements
16253 to always fail with ENOSYS. Some functions are actually named
16254 something starting with __ and the normal name is an alias. */
16255#if defined (__stub_socket) || defined (__stub___socket)
16256choke me
16257#else
698dcdb6 16258socket();
c63c7106
VZ
16259#endif
16260
698dcdb6
VZ
16261; return 0; }
16262EOF
6853365e 16263if { (eval echo configure:16264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16264 rm -rf conftest*
16265 eval "ac_cv_func_socket=yes"
16266else
16267 echo "configure: failed program was:" >&5
16268 cat conftest.$ac_ext >&5
16269 rm -rf conftest*
16270 eval "ac_cv_func_socket=no"
16271fi
16272rm -f conftest*
16273fi
16274
16275if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16276 echo "$ac_t""yes" 1>&6
c63c7106
VZ
16277 :
16278else
698dcdb6
VZ
16279 echo "$ac_t""no" 1>&6
16280echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
6853365e 16281echo "configure:16282: checking for socket in -lsocket" >&5
698dcdb6
VZ
16282ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16283if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16284 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16285else
698dcdb6 16286 ac_save_LIBS="$LIBS"
c63c7106 16287LIBS="-lsocket $LIBS"
698dcdb6 16288cat > conftest.$ac_ext <<EOF
6853365e 16289#line 16290 "configure"
c63c7106
VZ
16290#include "confdefs.h"
16291/* Override any gcc2 internal prototype to avoid an error. */
16292/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16293 builtin and then its argument prototype would still apply. */
16294char socket();
16295
16296int main() {
16297socket()
16298; return 0; }
16299EOF
6853365e 16300if { (eval echo configure:16301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16301 rm -rf conftest*
16302 eval "ac_cv_lib_$ac_lib_var=yes"
16303else
16304 echo "configure: failed program was:" >&5
16305 cat conftest.$ac_ext >&5
16306 rm -rf conftest*
16307 eval "ac_cv_lib_$ac_lib_var=no"
16308fi
16309rm -f conftest*
16310LIBS="$ac_save_LIBS"
16311
16312fi
16313if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16314 echo "$ac_t""yes" 1>&6
c63c7106 16315 INET_LINK="$INET_LINK -lsocket"
c63c7106 16316else
698dcdb6 16317 echo "$ac_t""no" 1>&6
afc31813 16318
698dcdb6 16319 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
afc31813 16320 wxUSE_SOCKETS=no
698dcdb6
VZ
16321
16322
10f2d63a
VZ
16323fi
16324
698dcdb6 16325
6232543b 16326fi
b089607b 16327
1e487827 16328fi
afc31813 16329
51a9faba 16330
698dcdb6
VZ
16331if test "$wxUSE_SOCKETS" = "yes" ; then
16332 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
6853365e 16333echo "configure:16334: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
16334if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16335 echo $ac_n "(cached) $ac_c" 1>&6
16336else
16337
16338
16339 ac_ext=C
16340# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16341ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16342ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16343ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16344cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16345
698dcdb6
VZ
16346
16347 cat > conftest.$ac_ext <<EOF
6853365e 16348#line 16349 "configure"
afc31813 16349#include "confdefs.h"
51a9faba 16350
3ace2e6d 16351 #include <sys/types.h>
51a9faba 16352 #include <sys/socket.h>
698dcdb6
VZ
16353
16354int main() {
51a9faba
VZ
16355
16356 socklen_t len;
16357 getsockname(0, 0, &len);
698dcdb6
VZ
16358
16359; return 0; }
16360EOF
6853365e 16361if { (eval echo configure:16362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16362 rm -rf conftest*
51a9faba 16363 wx_cv_type_getsockname3=socklen_t
afc31813 16364else
698dcdb6
VZ
16365 echo "configure: failed program was:" >&5
16366 cat conftest.$ac_ext >&5
16367 rm -rf conftest*
16368 cat > conftest.$ac_ext <<EOF
6853365e 16369#line 16370 "configure"
afc31813 16370#include "confdefs.h"
51a9faba 16371
3ace2e6d 16372 #include <sys/types.h>
51a9faba 16373 #include <sys/socket.h>
698dcdb6
VZ
16374
16375int main() {
51a9faba
VZ
16376
16377 size_t len;
16378 getsockname(0, 0, &len);
698dcdb6
VZ
16379
16380; return 0; }
16381EOF
6853365e 16382if { (eval echo configure:16383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16383 rm -rf conftest*
51a9faba 16384 wx_cv_type_getsockname3=size_t
afc31813 16385else
698dcdb6
VZ
16386 echo "configure: failed program was:" >&5
16387 cat conftest.$ac_ext >&5
16388 rm -rf conftest*
16389 cat > conftest.$ac_ext <<EOF
6853365e 16390#line 16391 "configure"
afc31813 16391#include "confdefs.h"
51a9faba 16392
3ace2e6d 16393 #include <sys/types.h>
51a9faba 16394 #include <sys/socket.h>
698dcdb6
VZ
16395
16396int main() {
51a9faba
VZ
16397
16398 int len;
16399 getsockname(0, 0, &len);
698dcdb6
VZ
16400
16401; return 0; }
16402EOF
6853365e 16403if { (eval echo configure:16404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16404 rm -rf conftest*
51a9faba 16405 wx_cv_type_getsockname3=int
afc31813 16406else
698dcdb6
VZ
16407 echo "configure: failed program was:" >&5
16408 cat conftest.$ac_ext >&5
16409 rm -rf conftest*
16410 wx_cv_type_getsockname3=unknown
16411
afc31813 16412fi
698dcdb6
VZ
16413rm -f conftest*
16414
afc31813 16415fi
698dcdb6
VZ
16416rm -f conftest*
16417
afc31813 16418fi
698dcdb6 16419rm -f conftest*
51a9faba
VZ
16420
16421 ac_ext=c
698dcdb6 16422# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 16423ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16424ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16425ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16426cross_compiling=$ac_cv_prog_cc_cross
afc31813 16427
698dcdb6 16428
51a9faba 16429fi
698dcdb6
VZ
16430
16431echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba
VZ
16432
16433 if test "$wx_cv_type_getsockname3" = "unknown"; then
16434 wxUSE_SOCKETS=no
698dcdb6 16435 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
51a9faba 16436 else
698dcdb6 16437 cat >> confdefs.h <<EOF
51a9faba
VZ
16438#define SOCKLEN_T $wx_cv_type_getsockname3
16439EOF
16440
16441 fi
16442fi
afc31813 16443
c521c494
RL
16444fi
16445
51a9faba 16446if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 16447 cat >> confdefs.h <<\EOF
afc31813
VZ
16448#define wxUSE_SOCKETS 1
16449EOF
16450
70f7a477 16451 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
16452 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
16453fi
16454
698dcdb6 16455
dc3d889d
VZ
16456if test "$wxUSE_GUI" = "yes"; then
16457
b089607b
VZ
16458if test "$TOOLKIT" != "MSW"; then
16459
ceded8b9 16460if test "$wxUSE_JOYSTICK" = "yes"; then
698dcdb6 16461 for ac_hdr in linux/joystick.h
10f2d63a 16462do
698dcdb6
VZ
16463ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16464echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6853365e 16465echo "configure:16466: checking for $ac_hdr" >&5
698dcdb6
VZ
16466if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16467 echo $ac_n "(cached) $ac_c" 1>&6
16468else
16469 cat > conftest.$ac_ext <<EOF
6853365e 16470#line 16471 "configure"
10f2d63a 16471#include "confdefs.h"
698dcdb6
VZ
16472#include <$ac_hdr>
16473EOF
16474ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6853365e 16475{ (eval echo configure:16476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
16476ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16477if test -z "$ac_err"; then
16478 rm -rf conftest*
16479 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 16480else
698dcdb6
VZ
16481 echo "$ac_err" >&5
16482 echo "configure: failed program was:" >&5
10f2d63a 16483 cat conftest.$ac_ext >&5
698dcdb6
VZ
16484 rm -rf conftest*
16485 eval "ac_cv_header_$ac_safe=no"
10f2d63a 16486fi
698dcdb6 16487rm -f conftest*
10f2d63a 16488fi
698dcdb6
VZ
16489if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16490 echo "$ac_t""yes" 1>&6
16491 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16492 cat >> confdefs.h <<EOF
16493#define $ac_tr_hdr 1
10f2d63a 16494EOF
698dcdb6
VZ
16495
16496else
16497 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16498fi
16499done
16500
b089607b 16501 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
ceded8b9 16502 wxUSE_JOYSTICK=no
698dcdb6 16503 echo "configure: warning: Joystick not supported by this system" 1>&2
b089607b
VZ
16504 fi
16505fi
16506
16507fi
16508
ceded8b9 16509if test "$wxUSE_JOYSTICK" = "yes"; then
698dcdb6 16510 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16511#define wxUSE_JOYSTICK 1
16512EOF
16513
16514 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
16515fi
16516
dc3d889d
VZ
16517fi
16518
698dcdb6 16519
b089607b
VZ
16520if test "$TOOLKIT" != "MSW"; then
16521
10f2d63a
VZ
16522HAVE_DL_FUNCS=0
16523HAVE_SHL_FUNCS=0
16524if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
f11bdd03 16525 if test "$USE_DARWIN" = 1; then
b4085ce6
GD
16526 HAVE_DL_FUNCS=1
16527 else
698dcdb6 16528 for ac_func in dlopen
10f2d63a 16529do
698dcdb6 16530echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6853365e 16531echo "configure:16532: checking for $ac_func" >&5
698dcdb6
VZ
16532if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16533 echo $ac_n "(cached) $ac_c" 1>&6
16534else
16535 cat > conftest.$ac_ext <<EOF
6853365e 16536#line 16537 "configure"
10f2d63a
VZ
16537#include "confdefs.h"
16538/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16539 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16540#include <assert.h>
16541/* Override any gcc2 internal prototype to avoid an error. */
16542/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16543 builtin and then its argument prototype would still apply. */
16544char $ac_func();
16545
16546int main() {
10f2d63a
VZ
16547
16548/* The GNU C library defines this for functions which it implements
16549 to always fail with ENOSYS. Some functions are actually named
16550 something starting with __ and the normal name is an alias. */
16551#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16552choke me
16553#else
698dcdb6 16554$ac_func();
10f2d63a
VZ
16555#endif
16556
698dcdb6
VZ
16557; return 0; }
16558EOF
6853365e 16559if { (eval echo configure:16560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16560 rm -rf conftest*
16561 eval "ac_cv_func_$ac_func=yes"
16562else
16563 echo "configure: failed program was:" >&5
16564 cat conftest.$ac_ext >&5
16565 rm -rf conftest*
16566 eval "ac_cv_func_$ac_func=no"
16567fi
16568rm -f conftest*
16569fi
16570
16571if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16572 echo "$ac_t""yes" 1>&6
16573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16574 cat >> confdefs.h <<EOF
16575#define $ac_tr_func 1
16576EOF
16577
16578 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16579#define HAVE_DLOPEN 1
16580EOF
16581
16582 HAVE_DL_FUNCS=1
698dcdb6 16583
10f2d63a 16584else
698dcdb6
VZ
16585 echo "$ac_t""no" 1>&6
16586echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6853365e 16587echo "configure:16588: checking for dlopen in -ldl" >&5
698dcdb6
VZ
16588ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16589if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16590 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16591else
698dcdb6 16592 ac_save_LIBS="$LIBS"
10f2d63a 16593LIBS="-ldl $LIBS"
698dcdb6 16594cat > conftest.$ac_ext <<EOF
6853365e 16595#line 16596 "configure"
10f2d63a
VZ
16596#include "confdefs.h"
16597/* Override any gcc2 internal prototype to avoid an error. */
16598/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16599 builtin and then its argument prototype would still apply. */
16600char dlopen();
16601
16602int main() {
16603dlopen()
16604; return 0; }
16605EOF
6853365e 16606if { (eval echo configure:16607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16607 rm -rf conftest*
16608 eval "ac_cv_lib_$ac_lib_var=yes"
16609else
16610 echo "configure: failed program was:" >&5
16611 cat conftest.$ac_ext >&5
16612 rm -rf conftest*
16613 eval "ac_cv_lib_$ac_lib_var=no"
16614fi
16615rm -f conftest*
16616LIBS="$ac_save_LIBS"
16617
16618fi
16619if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16620 echo "$ac_t""yes" 1>&6
16621
16622 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16623#define HAVE_DLOPEN 1
16624EOF
16625
16626 HAVE_DL_FUNCS=1
16627 LIBS="$LIBS -ldl"
698dcdb6 16628
10f2d63a 16629else
698dcdb6 16630 echo "$ac_t""no" 1>&6
10f2d63a 16631
698dcdb6 16632 for ac_func in shl_load
10f2d63a 16633do
698dcdb6 16634echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6853365e 16635echo "configure:16636: checking for $ac_func" >&5
698dcdb6
VZ
16636if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16637 echo $ac_n "(cached) $ac_c" 1>&6
16638else
16639 cat > conftest.$ac_ext <<EOF
6853365e 16640#line 16641 "configure"
10f2d63a
VZ
16641#include "confdefs.h"
16642/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16643 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16644#include <assert.h>
16645/* Override any gcc2 internal prototype to avoid an error. */
16646/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16647 builtin and then its argument prototype would still apply. */
16648char $ac_func();
16649
16650int main() {
10f2d63a
VZ
16651
16652/* The GNU C library defines this for functions which it implements
16653 to always fail with ENOSYS. Some functions are actually named
16654 something starting with __ and the normal name is an alias. */
16655#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16656choke me
16657#else
698dcdb6 16658$ac_func();
10f2d63a
VZ
16659#endif
16660
698dcdb6
VZ
16661; return 0; }
16662EOF
6853365e 16663if { (eval echo configure:16664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16664 rm -rf conftest*
16665 eval "ac_cv_func_$ac_func=yes"
16666else
16667 echo "configure: failed program was:" >&5
16668 cat conftest.$ac_ext >&5
16669 rm -rf conftest*
16670 eval "ac_cv_func_$ac_func=no"
16671fi
16672rm -f conftest*
16673fi
16674
16675if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16676 echo "$ac_t""yes" 1>&6
16677 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16678 cat >> confdefs.h <<EOF
16679#define $ac_tr_func 1
16680EOF
16681
16682 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16683#define HAVE_SHL_LOAD 1
16684EOF
16685
16686 HAVE_SHL_FUNCS=1
698dcdb6 16687
10f2d63a 16688else
698dcdb6
VZ
16689 echo "$ac_t""no" 1>&6
16690echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
6853365e 16691echo "configure:16692: checking for dld in -lshl_load" >&5
698dcdb6
VZ
16692ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16693if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16694 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16695else
698dcdb6 16696 ac_save_LIBS="$LIBS"
f6bcfd97 16697LIBS="-lshl_load $LIBS"
698dcdb6 16698cat > conftest.$ac_ext <<EOF
6853365e 16699#line 16700 "configure"
f6bcfd97
BP
16700#include "confdefs.h"
16701/* Override any gcc2 internal prototype to avoid an error. */
16702/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16703 builtin and then its argument prototype would still apply. */
16704char dld();
16705
16706int main() {
16707dld()
16708; return 0; }
16709EOF
6853365e 16710if { (eval echo configure:16711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16711 rm -rf conftest*
16712 eval "ac_cv_lib_$ac_lib_var=yes"
16713else
16714 echo "configure: failed program was:" >&5
16715 cat conftest.$ac_ext >&5
16716 rm -rf conftest*
16717 eval "ac_cv_lib_$ac_lib_var=no"
16718fi
16719rm -f conftest*
16720LIBS="$ac_save_LIBS"
f6bcfd97 16721
698dcdb6
VZ
16722fi
16723if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16724 echo "$ac_t""yes" 1>&6
16725
f6bcfd97
BP
16726 HAVE_SHL_FUNCS=1
16727 LIBS="$LIBS -ldld"
698dcdb6
VZ
16728
16729else
16730 echo "$ac_t""no" 1>&6
f6bcfd97
BP
16731fi
16732
698dcdb6 16733
10f2d63a
VZ
16734fi
16735done
16736
698dcdb6 16737
10f2d63a
VZ
16738fi
16739
698dcdb6 16740
10f2d63a
VZ
16741fi
16742done
16743
1e487827 16744
698dcdb6
VZ
16745 if test "$HAVE_DL_FUNCS" = 1; then
16746 for ac_func in dlerror
f6bcfd97 16747do
698dcdb6 16748echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6853365e 16749echo "configure:16750: checking for $ac_func" >&5
698dcdb6
VZ
16750if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16751 echo $ac_n "(cached) $ac_c" 1>&6
16752else
16753 cat > conftest.$ac_ext <<EOF
6853365e 16754#line 16755 "configure"
f6bcfd97
BP
16755#include "confdefs.h"
16756/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16757 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
16758#include <assert.h>
16759/* Override any gcc2 internal prototype to avoid an error. */
16760/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16761 builtin and then its argument prototype would still apply. */
16762char $ac_func();
16763
16764int main() {
f6bcfd97
BP
16765
16766/* The GNU C library defines this for functions which it implements
16767 to always fail with ENOSYS. Some functions are actually named
16768 something starting with __ and the normal name is an alias. */
16769#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16770choke me
16771#else
698dcdb6 16772$ac_func();
f6bcfd97
BP
16773#endif
16774
698dcdb6
VZ
16775; return 0; }
16776EOF
6853365e 16777if { (eval echo configure:16778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16778 rm -rf conftest*
16779 eval "ac_cv_func_$ac_func=yes"
16780else
16781 echo "configure: failed program was:" >&5
16782 cat conftest.$ac_ext >&5
16783 rm -rf conftest*
16784 eval "ac_cv_func_$ac_func=no"
16785fi
16786rm -f conftest*
16787fi
16788
16789if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16790 echo "$ac_t""yes" 1>&6
16791 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16792 cat >> confdefs.h <<EOF
16793#define $ac_tr_func 1
16794EOF
16795 cat >> confdefs.h <<\EOF
f6bcfd97
BP
16796#define HAVE_DLERROR 1
16797EOF
16798
16799else
698dcdb6
VZ
16800 echo "$ac_t""no" 1>&6
16801echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
6853365e 16802echo "configure:16803: checking for dlerror in -ldl" >&5
698dcdb6
VZ
16803ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
16804if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16805 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16806else
698dcdb6 16807 ac_save_LIBS="$LIBS"
f6bcfd97 16808LIBS="-ldl $LIBS"
698dcdb6 16809cat > conftest.$ac_ext <<EOF
6853365e 16810#line 16811 "configure"
f6bcfd97
BP
16811#include "confdefs.h"
16812/* Override any gcc2 internal prototype to avoid an error. */
16813/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16814 builtin and then its argument prototype would still apply. */
16815char dlerror();
16816
16817int main() {
16818dlerror()
16819; return 0; }
16820EOF
6853365e 16821if { (eval echo configure:16822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16822 rm -rf conftest*
16823 eval "ac_cv_lib_$ac_lib_var=yes"
16824else
16825 echo "configure: failed program was:" >&5
16826 cat conftest.$ac_ext >&5
16827 rm -rf conftest*
16828 eval "ac_cv_lib_$ac_lib_var=no"
16829fi
16830rm -f conftest*
16831LIBS="$ac_save_LIBS"
16832
16833fi
16834if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16835 echo "$ac_t""yes" 1>&6
16836 cat >> confdefs.h <<\EOF
f6bcfd97
BP
16837#define HAVE_DLERROR 1
16838EOF
16839
698dcdb6
VZ
16840else
16841 echo "$ac_t""no" 1>&6
f6bcfd97
BP
16842fi
16843
16844fi
16845done
16846
16847 fi
b4085ce6 16848 fi
f6bcfd97 16849
10f2d63a
VZ
16850 if test "$HAVE_DL_FUNCS" = 0; then
16851 if test "$HAVE_SHL_FUNCS" = 0; then
16852 if test "$USE_UNIX" = 1; then
698dcdb6 16853 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
16854 wxUSE_DYNLIB_CLASS=no
16855 else
698dcdb6 16856 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
16857 fi
16858 fi
16859 fi
16860fi
16861
b089607b
VZ
16862fi
16863
10f2d63a 16864if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 16865 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16866#define wxUSE_DYNLIB_CLASS 1
16867EOF
16868
b12915c1
VZ
16869else
16870 wxUSE_ODBC=no
16871 wxUSE_SERIAL=no
10f2d63a
VZ
16872fi
16873
698dcdb6 16874
1e6feb95
VZ
16875if test "$wxUSE_FONTMAP" = "yes" ; then
16876 cat >> confdefs.h <<\EOF
16877#define wxUSE_FONTMAP 1
16878EOF
16879
16880fi
16881
10f2d63a 16882if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 16883 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16884#define wxUSE_UNICODE 1
16885EOF
16886
16887fi
16888
16889if test "$wxUSE_WCSRTOMBS" = "yes" ; then
698dcdb6 16890 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16891#define wxUSE_WCSRTOMBS 1
16892EOF
16893
16894fi
16895
16896if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 16897 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16898#define wxUSE_EXPERIMENTAL_PRINTF 1
16899EOF
16900
16901fi
16902
698dcdb6 16903
b12915c1 16904if test "$wxUSE_SERIAL" = "yes" ; then
698dcdb6 16905 cat >> confdefs.h <<\EOF
b12915c1
VZ
16906#define wxUSE_SERIAL 1
16907EOF
16908
16909fi
16910
698dcdb6 16911
10f2d63a
VZ
16912IODBC_C_SRC=""
16913if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 16914 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16915#define wxUSE_ODBC 1
16916EOF
16917
16918 WXODBCFLAG="-D_IODBC_"
16919 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
16920fi
16921
698dcdb6 16922
10f2d63a 16923if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 16924 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16925#define wxUSE_POSTSCRIPT 1
16926EOF
16927
16928fi
16929
698dcdb6 16930cat >> confdefs.h <<\EOF
10f2d63a
VZ
16931#define wxUSE_AFM_FOR_POSTSCRIPT 1
16932EOF
16933
698dcdb6
VZ
16934
16935cat >> confdefs.h <<\EOF
10f2d63a
VZ
16936#define wxUSE_NORMALIZED_PS_FONTS 1
16937EOF
16938
698dcdb6
VZ
16939
16940
10f2d63a 16941if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 16942 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16943#define wxUSE_CONSTRAINTS 1
16944EOF
16945
16946 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
16947fi
16948
16949if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
698dcdb6 16950 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16951#define wxUSE_MDI_ARCHITECTURE 1
16952EOF
16953
16954 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
16955fi
16956
16957if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 16958 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16959#define wxUSE_DOC_VIEW_ARCHITECTURE 1
16960EOF
16961
16962 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
16963 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
16964 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
16965 fi
16966fi
16967
16968if test "$wxUSE_HELP" = "yes"; then
698dcdb6 16969 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16970#define wxUSE_HELP 1
16971EOF
16972
16973 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 16974
3e44f09d 16975 if test "$USE_WIN32" = 1; then
031d8228 16976 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
3379ed37 16977 cat >> confdefs.h <<\EOF
031d8228 16978#define wxUSE_MS_HTML_HELP 1
3379ed37
VZ
16979EOF
16980
29fd3c0c
VS
16981 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
16982echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
6853365e 16983echo "configure:16984: checking for htmlhelp.h" >&5
29fd3c0c
VS
16984if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16985 echo $ac_n "(cached) $ac_c" 1>&6
16986else
16987 cat > conftest.$ac_ext <<EOF
6853365e 16988#line 16989 "configure"
29fd3c0c
VS
16989#include "confdefs.h"
16990#include <htmlhelp.h>
16991EOF
16992ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6853365e 16993{ (eval echo configure:16994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
16994ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16995if test -z "$ac_err"; then
16996 rm -rf conftest*
16997 eval "ac_cv_header_$ac_safe=yes"
16998else
16999 echo "$ac_err" >&5
17000 echo "configure: failed program was:" >&5
17001 cat conftest.$ac_ext >&5
17002 rm -rf conftest*
17003 eval "ac_cv_header_$ac_safe=no"
17004fi
17005rm -f conftest*
17006fi
17007if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17008 echo "$ac_t""yes" 1>&6
17009
17010 cat >> confdefs.h <<\EOF
17011#define wxUSE_MS_HTML_HELP 1
17012EOF
17013
17014
17015else
17016 echo "$ac_t""no" 1>&6
17017
17018 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h so it won't be compiled without it" 1>&2
17019 wxUSE_MS_HTML_HELP=no
17020
17021fi
17022
3e44f09d 17023 fi
3379ed37 17024 fi
031d8228
VS
17025
17026 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17027 if test "$wxUSE_HTML" = "yes"; then
17028 cat >> confdefs.h <<\EOF
17029#define wxUSE_WXHTML_HELP 1
17030EOF
17031
17032 else
17033 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17034 wxUSE_WXHTML_HELP=no
17035 fi
17036 fi
10f2d63a
VZ
17037fi
17038
17039if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17040 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 17041 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 17042 else
698dcdb6 17043 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17044#define wxUSE_PRINTING_ARCHITECTURE 1
17045EOF
17046
17047 fi
17048 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17049fi
17050
17051if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 17052 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17053#define wxUSE_PROLOGIO 1
17054EOF
17055
17056fi
17057
17058if test "$wxUSE_RESOURCES" = "yes" ; then
3379ed37 17059 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17060#define wxUSE_RESOURCES 1
17061EOF
17062
3379ed37 17063 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
10f2d63a
VZ
17064fi
17065
17066if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 17067 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17068#define wxUSE_X_RESOURCES 1
17069EOF
17070
17071fi
17072
698dcdb6 17073
10f2d63a 17074if test "$wxUSE_IPC" = "yes"; then
eb4efbdc 17075 if test "$wxUSE_SOCKETS" != "yes"; then
698dcdb6 17076 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
eb4efbdc
VZ
17077 fi
17078
698dcdb6 17079 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17080#define wxUSE_IPC 1
17081EOF
17082
17083fi
17084
17085if test "$wxUSE_CLIPBOARD" = "yes"; then
698dcdb6 17086 cat >> confdefs.h <<\EOF
10f2d63a 17087#define wxUSE_CLIPBOARD 1
1e6feb95
VZ
17088EOF
17089
17090 cat >> confdefs.h <<\EOF
17091#define wxUSE_DATAOBJ 1
10f2d63a
VZ
17092EOF
17093
17094fi
17095
17096if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17097 if test "$wxUSE_GTK" = 1; then
17098 if test "$WXGTK12" != 1; then
698dcdb6 17099 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
10f2d63a
VZ
17100 wxUSE_DRAG_AND_DROP=no
17101 fi
17102 fi
17103
17104 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 17105 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
10f2d63a
VZ
17106 wxUSE_DRAG_AND_DROP=no
17107 fi
17108
2c6025bc 17109 if test "$wxUSE_MAC" = 1; then
698dcdb6 17110 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
2c6025bc
GD
17111 wxUSE_DRAG_AND_DROP=no
17112 fi
17113
10f2d63a 17114 if test "$USE_WIN32" = 1; then
698dcdb6
VZ
17115
17116 for ac_hdr in ole2.h
10f2d63a 17117do
698dcdb6
VZ
17118ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17119echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6853365e 17120echo "configure:17121: checking for $ac_hdr" >&5
698dcdb6
VZ
17121if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17122 echo $ac_n "(cached) $ac_c" 1>&6
17123else
17124 cat > conftest.$ac_ext <<EOF
6853365e 17125#line 17126 "configure"
10f2d63a 17126#include "confdefs.h"
698dcdb6
VZ
17127#include <$ac_hdr>
17128EOF
17129ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6853365e 17130{ (eval echo configure:17131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
17131ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17132if test -z "$ac_err"; then
17133 rm -rf conftest*
17134 eval "ac_cv_header_$ac_safe=yes"
1e487827 17135else
698dcdb6
VZ
17136 echo "$ac_err" >&5
17137 echo "configure: failed program was:" >&5
10f2d63a 17138 cat conftest.$ac_ext >&5
698dcdb6
VZ
17139 rm -rf conftest*
17140 eval "ac_cv_header_$ac_safe=no"
10f2d63a 17141fi
698dcdb6 17142rm -f conftest*
10f2d63a 17143fi
698dcdb6
VZ
17144if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17145 echo "$ac_t""yes" 1>&6
17146 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17147 cat >> confdefs.h <<EOF
17148#define $ac_tr_hdr 1
10f2d63a 17149EOF
698dcdb6
VZ
17150
17151else
17152 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17153fi
17154done
17155
698dcdb6 17156
57fe5ed0 17157 if test "$ac_cv_header_ole2_h" = "yes" ; then
c521c494 17158 if test "$GCC" = yes ; then
b64f0a5f
RL
17159 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
17160 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
c521c494 17161 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
b64f0a5f 17162 LIBS="$LIBS -lole32 -luuid"
4f11a343
VS
17163 cat >> confdefs.h <<\EOF
17164#define wxUSE_OLE 1
17165EOF
17166
b64f0a5f
RL
17167
17168 if test "$wxUSE_METAFILE" = "yes"; then
698dcdb6 17169 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17170#define wxUSE_METAFILE 1
17171EOF
17172
698dcdb6 17173 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17174#define wxUSE_ENH_METAFILE 1
17175EOF
17176
17177 fi
c521c494
RL
17178 fi
17179 else
698dcdb6 17180 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
10f2d63a
VZ
17181 wxUSE_DRAG_AND_DROP=no
17182 fi
17183 fi
17184
17185 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 17186 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17187#define wxUSE_DRAG_AND_DROP 1
17188EOF
17189
17190 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17191 fi
17192
17193fi
17194
17195if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 17196 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17197#define wxUSE_SPLINES 1
17198EOF
17199
17200fi
17201
698dcdb6 17202
1e6feb95
VZ
17203USES_CONTROLS=0
17204if test "$wxUSE_CONTROLS" = "yes"; then
17205 USES_CONTROLS=1
17206fi
17207
10f2d63a 17208if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 17209 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17210#define wxUSE_ACCEL 1
17211EOF
17212
1e6feb95
VZ
17213 USES_CONTROLS=1
17214fi
17215
17216if test "$wxUSE_BUTTON" = "yes"; then
17217 cat >> confdefs.h <<\EOF
17218#define wxUSE_BUTTON 1
17219EOF
17220
17221 USES_CONTROLS=1
17222fi
17223
17224if test "$wxUSE_BMPBUTTON" = "yes"; then
17225 cat >> confdefs.h <<\EOF
17226#define wxUSE_BMPBUTTON 1
17227EOF
17228
17229 USES_CONTROLS=1
17230fi
17231
17232if test "$wxUSE_CALCTRL" = "yes"; then
17233 cat >> confdefs.h <<\EOF
17234#define wxUSE_CALENDARCTRL 1
17235EOF
17236
17237 USES_CONTROLS=1
17238 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
17239fi
17240
17241if test "$wxUSE_CARET" = "yes"; then
698dcdb6 17242 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17243#define wxUSE_CARET 1
17244EOF
17245
1e6feb95 17246 USES_CONTROLS=1
10f2d63a
VZ
17247 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17248fi
17249
17250if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 17251 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17252#define wxUSE_COMBOBOX 1
17253EOF
17254
1e6feb95 17255 USES_CONTROLS=1
10f2d63a
VZ
17256fi
17257
17258if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 17259 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17260#define wxUSE_CHOICE 1
17261EOF
17262
1e6feb95 17263 USES_CONTROLS=1
10f2d63a
VZ
17264fi
17265
17266if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 17267 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17268#define wxUSE_CHECKBOX 1
17269EOF
17270
1e6feb95 17271 USES_CONTROLS=1
10f2d63a
VZ
17272fi
17273
17274if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 17275 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17276#define wxUSE_CHECKLISTBOX 1
17277EOF
17278
1e6feb95 17279 USES_CONTROLS=1
10f2d63a
VZ
17280 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17281fi
17282
17283if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 17284 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17285#define wxUSE_GAUGE 1
17286EOF
17287
1e6feb95 17288 USES_CONTROLS=1
10f2d63a
VZ
17289fi
17290
d6a55c4b
VZ
17291if test "$wxUSE_NEW_GRID" = "yes"; then
17292 wxUSE_GRID="yes"
698dcdb6 17293 cat >> confdefs.h <<\EOF
d6a55c4b 17294#define wxUSE_NEW_GRID 1
10f2d63a
VZ
17295EOF
17296
1e6feb95 17297 USES_CONTROLS=1
d6a55c4b 17298 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
17299fi
17300
d6a55c4b 17301if test "$wxUSE_GRID" = "yes"; then
698dcdb6 17302 cat >> confdefs.h <<\EOF
d6a55c4b 17303#define wxUSE_GRID 1
10f2d63a
VZ
17304EOF
17305
1e6feb95 17306 USES_CONTROLS=1
d6a55c4b 17307 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
17308fi
17309
17310if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17311 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17312#define wxUSE_IMAGLIST 1
17313EOF
17314
17315fi
17316
17317if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 17318 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17319#define wxUSE_LISTBOX 1
17320EOF
17321
1e6feb95 17322 USES_CONTROLS=1
10f2d63a
VZ
17323fi
17324
17325if test "$wxUSE_LISTCTRL" = "yes"; then
17326 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17327 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17328#define wxUSE_LISTCTRL 1
17329EOF
17330
1e6feb95 17331 USES_CONTROLS=1
10f2d63a
VZ
17332 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17333 else
698dcdb6 17334 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17335 fi
17336fi
17337
17338if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 17339 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17340#define wxUSE_NOTEBOOK 1
17341EOF
17342
1e6feb95 17343 USES_CONTROLS=1
10f2d63a
VZ
17344 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17345fi
17346
24176f2c
GD
17347if test "$wxUSE_PROPSHEET" = "yes"; then
17348 cat >> confdefs.h <<\EOF
17349#define wxUSE_PROPSHEET 1
17350EOF
17351
17352 USES_CONTROLS=1
17353 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
17354fi
17355
10f2d63a 17356if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 17357 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17358#define wxUSE_RADIOBOX 1
17359EOF
17360
1e6feb95 17361 USES_CONTROLS=1
10f2d63a
VZ
17362fi
17363
17364if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 17365 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17366#define wxUSE_RADIOBTN 1
17367EOF
17368
1e6feb95 17369 USES_CONTROLS=1
10f2d63a
VZ
17370fi
17371
17372if test "$wxUSE_SASH" = "yes"; then
698dcdb6 17373 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17374#define wxUSE_SASH 1
17375EOF
17376
17377 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17378fi
17379
17380if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 17381 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17382#define wxUSE_SCROLLBAR 1
17383EOF
17384
1e6feb95 17385 USES_CONTROLS=1
741a9306 17386 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
17387fi
17388
17389if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 17390 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17391#define wxUSE_SLIDER 1
17392EOF
17393
1e6feb95 17394 USES_CONTROLS=1
10f2d63a
VZ
17395fi
17396
17397if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 17398 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17399#define wxUSE_SPINBTN 1
17400EOF
17401
1e6feb95 17402 USES_CONTROLS=1
10f2d63a
VZ
17403fi
17404
56cfaa52 17405if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 17406 cat >> confdefs.h <<\EOF
56cfaa52
RR
17407#define wxUSE_SPINCTRL 1
17408EOF
17409
1e6feb95 17410 USES_CONTROLS=1
56cfaa52
RR
17411fi
17412
10f2d63a 17413if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 17414 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17415#define wxUSE_SPLITTER 1
17416EOF
17417
17418 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17419fi
17420
17421if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 17422 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17423#define wxUSE_STATBMP 1
17424EOF
17425
1e6feb95 17426 USES_CONTROLS=1
10f2d63a
VZ
17427fi
17428
17429if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 17430 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17431#define wxUSE_STATBOX 1
17432EOF
17433
1e6feb95
VZ
17434 USES_CONTROLS=1
17435fi
17436
17437if test "$wxUSE_STATTEXT" = "yes"; then
17438 cat >> confdefs.h <<\EOF
17439#define wxUSE_STATTEXT 1
17440EOF
17441
17442 USES_CONTROLS=1
10f2d63a
VZ
17443fi
17444
17445if test "$wxUSE_STATLINE" = "yes"; then
17446 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 17447 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 17448 else
698dcdb6 17449 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17450#define wxUSE_STATLINE 1
17451EOF
17452
1e6feb95 17453 USES_CONTROLS=1
10f2d63a
VZ
17454 fi
17455fi
17456
17457if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 17458 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17459#define wxUSE_STATUSBAR 1
17460EOF
17461
1e6feb95 17462 USES_CONTROLS=1
698dcdb6 17463
2286341c 17464 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
17465fi
17466
17467if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 17468 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17469#define wxUSE_TAB_DIALOG 1
17470EOF
17471
17472 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17473fi
17474
1e6feb95
VZ
17475if test "$wxUSE_TEXTCTRL" = "yes"; then
17476 cat >> confdefs.h <<\EOF
17477#define wxUSE_TEXTCTRL 1
17478EOF
17479
17480 USES_CONTROLS=1
17481 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17482fi
17483
1db8dc4a 17484if test "$wxUSE_TOGGLEBTN" = "yes"; then
a45d7ab7
GD
17485 if test "$wxUSE_MAC" = 1; then
17486 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
17487 wxUSE_TOGGLEBTN=no
17488 fi
17489
17490 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17491 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
17492#define wxUSE_TOGGLEBTN 1
17493EOF
17494
1e6feb95 17495 USES_CONTROLS=1
a45d7ab7 17496 fi
1db8dc4a
VZ
17497fi
17498
360d6699 17499if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 17500 cat >> confdefs.h <<\EOF
360d6699
VZ
17501#define wxUSE_TOOLBAR_SIMPLE 1
17502EOF
17503
17504 wxUSE_TOOLBAR="yes"
1e6feb95 17505 USES_CONTROLS=1
360d6699
VZ
17506fi
17507
10f2d63a 17508if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 17509 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17510#define wxUSE_TOOLBAR 1
17511EOF
17512
1e6feb95 17513 USES_CONTROLS=1
698dcdb6 17514
360d6699
VZ
17515 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17516 wxUSE_TOOLBAR_NATIVE="yes"
17517 fi
17518
1e6feb95
VZ
17519 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17520 cat >> confdefs.h <<\EOF
360d6699
VZ
17521#define wxUSE_TOOLBAR_NATIVE 1
17522EOF
17523
1e6feb95
VZ
17524 USES_CONTROLS=1
17525 fi
17526
17527 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
17528fi
17529
10f2d63a
VZ
17530if test "$wxUSE_TOOLTIPS" = "yes"; then
17531 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 17532 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
10f2d63a
VZ
17533 else
17534 if test "$wxUSE_WINE" = 1; then
698dcdb6 17535 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
10f2d63a 17536 else
698dcdb6 17537 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17538#define wxUSE_TOOLTIPS 1
17539EOF
17540
17541 fi
17542 fi
17543fi
17544
17545if test "$wxUSE_TREECTRL" = "yes"; then
17546 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17547 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17548#define wxUSE_TREECTRL 1
17549EOF
17550
1e6feb95 17551 USES_CONTROLS=1
10f2d63a
VZ
17552 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17553 else
698dcdb6 17554 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17555 fi
17556fi
17557
9f41d601 17558if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65
GD
17559 if test "$wxUSE_MAC" = 1; then
17560 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
17561 else
17562 cat >> confdefs.h <<\EOF
9f41d601
RR
17563#define wxUSE_POPUPWIN 1
17564EOF
17565
6abe4b65
GD
17566 USES_CONTROLS=1
17567 fi
9f41d601
RR
17568fi
17569
1e6feb95
VZ
17570if test "$USES_CONTROLS" = 1; then
17571 cat >> confdefs.h <<\EOF
17572#define wxUSE_CONTROLS 1
10f2d63a
VZ
17573EOF
17574
10f2d63a
VZ
17575fi
17576
1e6feb95 17577
24176f2c
GD
17578if test "$wxUSE_TREELAYOUT" = "yes"; then
17579 cat >> confdefs.h <<\EOF
17580#define wxUSE_TREELAYOUT 1
17581EOF
17582
17583 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
17584fi
1e6feb95 17585
24fd6d87
VZ
17586if test "$wxUSE_DRAGIMAGE" = "yes"; then
17587 cat >> confdefs.h <<\EOF
17588#define wxUSE_DRAGIMAGE 1
17589EOF
17590
17591 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
17592fi
17593
1e6feb95 17594if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 17595 cat >> confdefs.h <<\EOF
1e6feb95 17596#define wxUSE_MENUS 1
10f2d63a
VZ
17597EOF
17598
1e6feb95 17599 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
17600fi
17601
1e6feb95
VZ
17602if test "$wxUSE_METAFILE" = "yes"; then
17603 cat >> confdefs.h <<\EOF
17604#define wxUSE_METAFILE 1
10f2d63a
VZ
17605EOF
17606
10f2d63a
VZ
17607fi
17608
1e6feb95
VZ
17609if test "$wxUSE_MIMETYPE" = "yes"; then
17610 cat >> confdefs.h <<\EOF
17611#define wxUSE_MIMETYPE 1
10f2d63a
VZ
17612EOF
17613
10f2d63a
VZ
17614fi
17615
3e44f09d
VZ
17616if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
17617 cat >> confdefs.h <<\EOF
17618#define wxUSE_SYSTEM_OPTIONS 1
17619EOF
17620
17621fi
17622
10f2d63a 17623if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 17624 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17625#define wxUSE_MINIFRAME 1
17626EOF
17627
17628 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
17629fi
17630
17631if test "$wxUSE_HTML" = "yes"; then
698dcdb6 17632 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17633#define wxUSE_HTML 1
17634EOF
17635
17636 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
17637 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
17638fi
17639
17640if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 17641 cat >> confdefs.h <<\EOF
1e487827
VS
17642#define wxUSE_VALIDATORS 1
17643EOF
703e0a69 17644
698dcdb6
VZ
17645 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
17646fi
17647
17648if test "$wxUSE_IMAGE" = "yes" ; then
17649 cat >> confdefs.h <<\EOF
17650#define wxUSE_IMAGE 1
17651EOF
17652
17653fi
17654
17655if test "$wxUSE_GIF" = "yes" ; then
17656 cat >> confdefs.h <<\EOF
17657#define wxUSE_GIF 1
17658EOF
17659
17660fi
17661
17662if test "$wxUSE_PCX" = "yes" ; then
17663 cat >> confdefs.h <<\EOF
17664#define wxUSE_PCX 1
17665EOF
17666
17667fi
17668
17669if test "$wxUSE_PNM" = "yes" ; then
17670 cat >> confdefs.h <<\EOF
17671#define wxUSE_PNM 1
17672EOF
17673
17674fi
17675
17676if test "$wxUSE_XPM" = "yes" ; then
17677 cat >> confdefs.h <<\EOF
17678#define wxUSE_XPM 1
17679EOF
17680
17681fi
17682
17683
1e6feb95
VZ
17684if test "$wxUSE_CHOICEDLG" = "yes"; then
17685 cat >> confdefs.h <<\EOF
17686#define wxUSE_CHOICEDLG 1
17687EOF
17688
17689fi
17690
17691if test "$wxUSE_COLOURDLG" = "yes"; then
17692 cat >> confdefs.h <<\EOF
17693#define wxUSE_COLOURDLG 1
17694EOF
17695
17696fi
17697
17698if test "$wxUSE_FILEDLG" = "yes"; then
17699 cat >> confdefs.h <<\EOF
17700#define wxUSE_FILEDLG 1
17701EOF
17702
17703fi
17704
17705if test "$wxUSE_FONTDLG" = "yes"; then
17706 cat >> confdefs.h <<\EOF
17707#define wxUSE_FONTDLG 1
17708EOF
17709
17710fi
17711
17712if test "$wxUSE_DIRDLG" = "yes"; then
17713 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17714 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
17715 else
17716 if test "$wxUSE_TREECTRL" != "yes"; then
17717 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
17718 else
17719 cat >> confdefs.h <<\EOF
17720#define wxUSE_DIRDLG 1
17721EOF
17722
17723 fi
17724 fi
17725fi
17726
17727if test "$wxUSE_MSGDLG" = "yes"; then
17728 cat >> confdefs.h <<\EOF
17729#define wxUSE_MSGDLG 1
17730EOF
17731
17732fi
17733
17734if test "$wxUSE_NUMBERDLG" = "yes"; then
17735 cat >> confdefs.h <<\EOF
17736#define wxUSE_NUMBERDLG 1
17737EOF
17738
17739fi
17740
17741if test "$wxUSE_PROGRESSDLG" = "yes"; then
17742 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17743 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
17744 else
17745 cat >> confdefs.h <<\EOF
17746#define wxUSE_PROGRESSDLG 1
17747EOF
17748
17749 fi
17750fi
17751
17752if test "$wxUSE_STARTUP_TIPS" = "yes"; then
17753 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17754 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
17755 else
17756 cat >> confdefs.h <<\EOF
17757#define wxUSE_STARTUP_TIPS 1
17758EOF
17759
17760 fi
17761fi
17762
17763if test "$wxUSE_TEXTDLG" = "yes"; then
17764 cat >> confdefs.h <<\EOF
17765#define wxUSE_TEXTDLG 1
17766EOF
17767
17768fi
17769
b1f5d087
VZ
17770if test "$wxUSE_WIZARDDLG" = "yes"; then
17771 cat >> confdefs.h <<\EOF
17772#define wxUSE_WIZARDDLG 1
17773EOF
17774
17775 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
17776fi
17777
1e6feb95 17778
698dcdb6
VZ
17779if test "$cross_compiling" = "yes"; then
17780 OSINFO="\"$host\""
17781else
17782 OSINFO=`uname -s -r -m`
17783 OSINFO="\"$OSINFO\""
17784fi
17785
17786cat >> confdefs.h <<EOF
17787#define WXWIN_OS_DESCRIPTION $OSINFO
17788EOF
17789
17790
17791
17792GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
17793OPENGL_LIBS="$OPENGL_LINK"
17794
17795EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
f11bdd03 17796if test "$wxUSE_MAC" = 1 ; then
698dcdb6
VZ
17797 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
17798fi
17799if test "$wxUSE_GUI" = "yes"; then
17800 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
17801fi
17802
17803LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
17804
3e44f09d
VZ
17805INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include \
17806$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
17807$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
698dcdb6
VZ
17808
17809if test "$wxUSE_GTK" = 1; then
17810 WXCONFIG_INCLUDE=""
17811else
17812 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
17813fi
17814
17815if test "$GXX" = yes ; then
17816 CXXWARNINGS="-Wall"
17817 fi
17818EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
17819
17820CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
17821CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
17822
17823LDFLAGS="$LDFLAGS $PROFILE"
17824
17825if test "$wxUSE_GUI" = "yes"; then
17826
24fd6d87 17827 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
24176f2c
GD
17828 drawing dynamic erase event exec font image \
17829 minimal richedit rotate widgets"
1e6feb95
VZ
17830
17831 if test "$wxUSE_UNIVERSAL" = "yes" ; then
17832 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
17833 fi
698dcdb6
VZ
17834
17835 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
17836else
24176f2c 17837 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
17838fi
17839
17840SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
32832908
VZ
17908
17909
17910
17911
17912
17913
17914
2224580a 17915
dad6c0ea 17916
f6bcfd97
BP
17917
17918
17919
2f51a9ec
GD
17920
17921
17922
17923
17924
17925
f6bcfd97 17926
dad6c0ea 17927
caa2c79b 17928
3711412e 17929
1e6feb95
VZ
17930
17931
0f3f1cbc 17932
10f2d63a
VZ
17933
17934
698dcdb6 17935echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
6853365e 17936echo "configure:17937: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
17937set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
17938if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
17939 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17940else
698dcdb6 17941 cat > conftestmake <<\EOF
10f2d63a
VZ
17942all:
17943 @echo 'ac_maketemp="${MAKE}"'
17944EOF
17945# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 17946eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
17947if test -n "$ac_maketemp"; then
17948 eval ac_cv_prog_make_${ac_make}_set=yes
17949else
17950 eval ac_cv_prog_make_${ac_make}_set=no
17951fi
698dcdb6 17952rm -f conftestmake
10f2d63a
VZ
17953fi
17954if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 17955 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
17956 SET_MAKE=
17957else
698dcdb6 17958 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17959 SET_MAKE="MAKE=${MAKE-make}"
17960fi
17961
698dcdb6 17962
00cf1208
RR
17963if test -d include; then
17964 if test -d include/wx; then
1e6feb95
VZ
17965 if test -d include/wx/${SETUPH_DIR}; then
17966 if test -f include/wx/${SETUPH_DIR}/setup.h; then
17967 mv -f include/wx/${SETUPH_DIR}/setup.h setup.h
00cf1208
RR
17968 fi
17969 fi
17970 fi
17971fi
665bbe97 17972
698dcdb6 17973
10f2d63a 17974
2224580a 17975if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 17976 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
17977 wx_cv_path_ifs=$PATH_IFS
17978 wx_cv_program_ext=$PROGRAM_EXT
17979 wx_cv_target_library=$WX_TARGET_LIBRARY
7b6058cd 17980 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
3711412e 17981 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
93a20a27 17982 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
7b6058cd 17983 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
698dcdb6 17984 subdirs="demos samples utils contrib"
2224580a
VZ
17985
17986fi
10f2d63a 17987
698dcdb6
VZ
17988trap '' 1 2 15
17989cat > confcache <<\EOF
10f2d63a
VZ
17990# This file is a shell script that caches the results of configure
17991# tests run on this system so they can be shared between configure
698dcdb6
VZ
17992# scripts and configure runs. It is not useful on other systems.
17993# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 17994#
698dcdb6
VZ
17995# By default, configure uses ./config.cache as the cache file,
17996# creating it if it does not exist already. You can give configure
17997# the --cache-file=FILE option to use a different cache file; that is
17998# what configure does when it calls configure scripts in
17999# subdirectories, so they share the cache.
18000# Giving --cache-file=/dev/null disables caching, for debugging configure.
18001# config.status only pays attention to the cache file if you give it the
18002# --recheck option to rerun configure.
10f2d63a 18003#
698dcdb6 18004EOF
10f2d63a
VZ
18005# The following way of writing the cache mishandles newlines in values,
18006# but we know of no workaround that is simple, portable, and efficient.
18007# So, don't put newlines in cache variables' values.
18008# Ultrix sh set writes to stderr and can't be redirected directly,
18009# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
18010(set) 2>&1 |
18011 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18012 *ac_space=\ *)
18013 # `set' does not quote correctly, so add quotes (double-quote substitution
18014 # turns \\\\ into \\, and sed turns \\ into \).
18015 sed -n \
18016 -e "s/'/'\\\\''/g" \
18017 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18018 ;;
18019 *)
18020 # `set' quotes correctly as required by POSIX, so do not add quotes.
18021 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18022 ;;
18023 esac >> confcache
18024if cmp -s $cache_file confcache; then
18025 :
18026else
10f2d63a 18027 if test -w $cache_file; then
698dcdb6
VZ
18028 echo "updating cache $cache_file"
18029 cat confcache > $cache_file
10f2d63a
VZ
18030 else
18031 echo "not updating unwritable cache $cache_file"
18032 fi
18033fi
18034rm -f confcache
18035
698dcdb6
VZ
18036trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18037
10f2d63a
VZ
18038test "x$prefix" = xNONE && prefix=$ac_default_prefix
18039# Let make expand exec_prefix.
18040test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18041
698dcdb6
VZ
18042# Any assignment to VPATH causes Sun make to only execute
18043# the first set of double-colon rules, so remove it if not needed.
18044# If there is a colon in the path, we need to keep it.
10f2d63a 18045if test "x$srcdir" = x.; then
698dcdb6 18046 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
18047fi
18048
698dcdb6
VZ
18049trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18050
10f2d63a
VZ
18051DEFS=-DHAVE_CONFIG_H
18052
698dcdb6 18053# Without the "./", some shells look in PATH for config.status.
10f2d63a 18054: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
18055
18056echo creating $CONFIG_STATUS
18057rm -f $CONFIG_STATUS
18058cat > $CONFIG_STATUS <<EOF
18059#! /bin/sh
10f2d63a
VZ
18060# Generated automatically by configure.
18061# Run this file to recreate the current configuration.
698dcdb6
VZ
18062# This directory was configured as follows,
18063# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18064#
18065# $0 $ac_configure_args
18066#
10f2d63a 18067# Compiler output produced by configure, useful for debugging
698dcdb6 18068# configure, is in ./config.log if it exists.
1e487827 18069
698dcdb6
VZ
18070ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18071for ac_option
10f2d63a 18072do
698dcdb6 18073 case "\$ac_option" in
10f2d63a 18074 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
18075 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18076 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18077 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18078 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18079 exit 0 ;;
18080 -help | --help | --hel | --he | --h)
18081 echo "\$ac_cs_usage"; exit 0 ;;
18082 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
18083 esac
18084done
18085
698dcdb6
VZ
18086ac_given_srcdir=$srcdir
18087ac_given_INSTALL="$INSTALL"
703e0a69 18088
698dcdb6
VZ
18089trap 'rm -fr `echo "
18090 wx-config
18091 src/make.env
18092 src/makeprog.env
18093 src/makelib.env
18094 Makefile
18095 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 18096EOF
698dcdb6 18097cat >> $CONFIG_STATUS <<EOF
1e487827 18098
698dcdb6
VZ
18099# Protect against being on the right side of a sed subst in config.status.
18100sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18101 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18102$ac_vpsub
18103$extrasub
18104s%@SHELL@%$SHELL%g
18105s%@CFLAGS@%$CFLAGS%g
18106s%@CPPFLAGS@%$CPPFLAGS%g
18107s%@CXXFLAGS@%$CXXFLAGS%g
18108s%@FFLAGS@%$FFLAGS%g
18109s%@DEFS@%$DEFS%g
18110s%@LDFLAGS@%$LDFLAGS%g
18111s%@LIBS@%$LIBS%g
18112s%@exec_prefix@%$exec_prefix%g
18113s%@prefix@%$prefix%g
18114s%@program_transform_name@%$program_transform_name%g
18115s%@bindir@%$bindir%g
18116s%@sbindir@%$sbindir%g
18117s%@libexecdir@%$libexecdir%g
18118s%@datadir@%$datadir%g
18119s%@sysconfdir@%$sysconfdir%g
18120s%@sharedstatedir@%$sharedstatedir%g
18121s%@localstatedir@%$localstatedir%g
18122s%@libdir@%$libdir%g
18123s%@includedir@%$includedir%g
18124s%@oldincludedir@%$oldincludedir%g
18125s%@infodir@%$infodir%g
18126s%@mandir@%$mandir%g
18127s%@host@%$host%g
18128s%@host_alias@%$host_alias%g
18129s%@host_cpu@%$host_cpu%g
18130s%@host_vendor@%$host_vendor%g
18131s%@host_os@%$host_os%g
18132s%@target@%$target%g
18133s%@target_alias@%$target_alias%g
18134s%@target_cpu@%$target_cpu%g
18135s%@target_vendor@%$target_vendor%g
18136s%@target_os@%$target_os%g
18137s%@build@%$build%g
18138s%@build_alias@%$build_alias%g
18139s%@build_cpu@%$build_cpu%g
18140s%@build_vendor@%$build_vendor%g
18141s%@build_os@%$build_os%g
18142s%@CC@%$CC%g
18143s%@CPP@%$CPP%g
18144s%@CXX@%$CXX%g
18145s%@CXXCPP@%$CXXCPP%g
18146s%@RANLIB@%$RANLIB%g
18147s%@AR@%$AR%g
18148s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18149s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18150s%@INSTALL_DATA@%$INSTALL_DATA%g
18151s%@STRIP@%$STRIP%g
18152s%@YACC@%$YACC%g
18153s%@LEX@%$LEX%g
18154s%@LEXLIB@%$LEXLIB%g
18155s%@LN_S@%$LN_S%g
18156s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
698dcdb6
VZ
18157s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18158s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 18159s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
18160s%@X_CFLAGS@%$X_CFLAGS%g
18161s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18162s%@X_LIBS@%$X_LIBS%g
18163s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
18164s%@REZ@%$REZ%g
18165s%@DEREZ@%$DEREZ%g
18166s%@LEX_STEM@%$LEX_STEM%g
18167s%@PATH_IFS@%$PATH_IFS%g
18168s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18169s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18170s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
18171s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
18172s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18173s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
18174s%@WX_LIBRARY@%$WX_LIBRARY%g
18175s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18176s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18177s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
18178s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
18179s%@PROGRAM_EXT@%$PROGRAM_EXT%g
18180s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
18181s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18182s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
18183s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
18184s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18185s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18186s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
18187s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
18188s%@WX_ALL@%$WX_ALL%g
18189s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18190s%@SHARED_LD@%$SHARED_LD%g
18191s%@PIC_FLAG@%$PIC_FLAG%g
18192s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
18193s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18194s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
18195s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
18196s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
18197s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18198s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18199s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18200s%@USE_GUI@%$USE_GUI%g
18201s%@AFMINSTALL@%$AFMINSTALL%g
1e6feb95 18202s%@SETUPH_DIR@%$SETUPH_DIR%g
698dcdb6
VZ
18203s%@TOOLKIT@%$TOOLKIT%g
18204s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
18205s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
18206s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
18207s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
1e6feb95 18208s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
698dcdb6
VZ
18209s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18210s%@ALL_OBJECTS@%$ALL_OBJECTS%g
18211s%@ALL_DEPFILES@%$ALL_DEPFILES%g
18212s%@GUIDIST@%$GUIDIST%g
18213s%@PORT_FILES@%$PORT_FILES%g
18214s%@DISTDIR@%$DISTDIR%g
18215s%@RPM_SPEC@%$RPM_SPEC%g
18216s%@RPM_FILES@%$RPM_FILES%g
18217s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
18218s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
18219s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
18220s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
18221s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
18222s%@USER_SUBDIRS@%$USER_SUBDIRS%g
18223s%@EXTRA_LIBS@%$EXTRA_LIBS%g
18224s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18225s%@EXTRADEFS@%$EXTRADEFS%g
18226s%@LD_LIBS@%$LD_LIBS%g
18227s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
18228s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
18229s%@RESPROGRAM@%$RESPROGRAM%g
18230s%@RESCOMP@%$RESCOMP%g
18231s%@RESFLAGS@%$RESFLAGS%g
18232s%@REZFLAGS@%$REZFLAGS%g
18233s%@DEREZFLAGS@%$DEREZFLAGS%g
18234s%@LIBWXMACRES@%$LIBWXMACRES%g
18235s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18236s%@DLLTOOL@%$DLLTOOL%g
18237s%@AS@%$AS%g
18238s%@NM@%$NM%g
18239s%@LD@%$LD%g
18240s%@MAKEINFO@%$MAKEINFO%g
18241s%@SET_MAKE@%$SET_MAKE%g
18242s%@subdirs@%$subdirs%g
1e487827 18243
1e487827 18244CEOF
1e487827
VS
18245EOF
18246
698dcdb6
VZ
18247cat >> $CONFIG_STATUS <<\EOF
18248
18249# Split the substitutions into bite-sized pieces for seds with
18250# small command number limits, like on Digital OSF/1 and HP-UX.
18251ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18252ac_file=1 # Number of current file.
18253ac_beg=1 # First line for current file.
18254ac_end=$ac_max_sed_cmds # Line after last line for current file.
18255ac_more_lines=:
18256ac_sed_cmds=""
18257while $ac_more_lines; do
18258 if test $ac_beg -gt 1; then
18259 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18260 else
18261 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18262 fi
18263 if test ! -s conftest.s$ac_file; then
18264 ac_more_lines=false
18265 rm -f conftest.s$ac_file
18266 else
18267 if test -z "$ac_sed_cmds"; then
18268 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 18269 else
698dcdb6 18270 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 18271 fi
698dcdb6
VZ
18272 ac_file=`expr $ac_file + 1`
18273 ac_beg=$ac_end
18274 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 18275 fi
698dcdb6
VZ
18276done
18277if test -z "$ac_sed_cmds"; then
18278 ac_sed_cmds=cat
18279fi
18280EOF
10f2d63a 18281
698dcdb6
VZ
18282cat >> $CONFIG_STATUS <<EOF
18283
18284CONFIG_FILES=\${CONFIG_FILES-"wx-config
18285 src/make.env
18286 src/makeprog.env
18287 src/makelib.env
18288 Makefile
18289 "}
10f2d63a 18290EOF
698dcdb6
VZ
18291cat >> $CONFIG_STATUS <<\EOF
18292for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 18293 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
18294 case "$ac_file" in
18295 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18296 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18297 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
18298 esac
18299
698dcdb6 18300 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 18301
698dcdb6
VZ
18302 # Remove last slash and all that follows it. Not all systems have dirname.
18303 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18304 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18305 # The file is in a subdirectory.
18306 test ! -d "$ac_dir" && mkdir "$ac_dir"
18307 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 18308 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 18309 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
18310 else
18311 ac_dir_suffix= ac_dots=
18312 fi
18313
698dcdb6
VZ
18314 case "$ac_given_srcdir" in
18315 .) srcdir=.
18316 if test -z "$ac_dots"; then top_srcdir=.
18317 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18318 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 18319 *) # Relative path.
698dcdb6
VZ
18320 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18321 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
18322 esac
18323
698dcdb6
VZ
18324 case "$ac_given_INSTALL" in
18325 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18326 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
18327 esac
18328
698dcdb6
VZ
18329 echo creating "$ac_file"
18330 rm -f "$ac_file"
18331 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18332 case "$ac_file" in
18333 *Makefile*) ac_comsub="1i\\
18334# $configure_input" ;;
18335 *) ac_comsub= ;;
18336 esac
10f2d63a 18337
698dcdb6
VZ
18338 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18339 sed -e "$ac_comsub
18340s%@configure_input@%$configure_input%g
18341s%@srcdir@%$srcdir%g
18342s%@top_srcdir@%$top_srcdir%g
18343s%@INSTALL@%$INSTALL%g
18344" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18345fi; done
18346rm -f conftest.s*
10f2d63a
VZ
18347
18348# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18349# NAME is the cpp macro being defined and VALUE is the value it is being given.
18350#
18351# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
18352ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18353ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18354ac_dC='\3'
18355ac_dD='%g'
18356# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18357ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18358ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 18359ac_uC=' '
698dcdb6
VZ
18360ac_uD='\4%g'
18361# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18362ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18363ac_eB='$%\1#\2define\3'
18364ac_eC=' '
18365ac_eD='%g'
10f2d63a 18366
698dcdb6
VZ
18367if test "${CONFIG_HEADERS+set}" != set; then
18368EOF
18369cat >> $CONFIG_STATUS <<EOF
18370 CONFIG_HEADERS="setup.h:setup.h.in"
18371EOF
18372cat >> $CONFIG_STATUS <<\EOF
18373fi
18374for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 18375 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
18376 case "$ac_file" in
18377 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18378 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18379 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
18380 esac
18381
698dcdb6
VZ
18382 echo creating $ac_file
18383
18384 rm -f conftest.frag conftest.in conftest.out
18385 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18386 cat $ac_file_inputs > conftest.in
18387
18388EOF
18389
18390# Transform confdefs.h into a sed script conftest.vals that substitutes
18391# the proper values into config.h.in to produce config.h. And first:
18392# Protect against being on the right side of a sed subst in config.status.
18393# Protect against being in an unquoted here document in config.status.
18394rm -f conftest.vals
18395cat > conftest.hdr <<\EOF
18396s/[\\&%]/\\&/g
18397s%[\\$`]%\\&%g
18398s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18399s%ac_d%ac_u%gp
18400s%ac_u%ac_e%gp
18401EOF
18402sed -n -f conftest.hdr confdefs.h > conftest.vals
18403rm -f conftest.hdr
10f2d63a
VZ
18404
18405# This sed command replaces #undef with comments. This is necessary, for
18406# example, in the case of _POSIX_SOURCE, which is predefined and required
18407# on some systems where configure will not decide to define it.
698dcdb6
VZ
18408cat >> conftest.vals <<\EOF
18409s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
18410EOF
18411
698dcdb6
VZ
18412# Break up conftest.vals because some shells have a limit on
18413# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
18414
18415rm -f conftest.tail
698dcdb6 18416while :
10f2d63a 18417do
698dcdb6
VZ
18418 ac_lines=`grep -c . conftest.vals`
18419 # grep -c gives empty output for an empty file on some AIX systems.
18420 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18421 # Write a limited-size here document to conftest.frag.
18422 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18423 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 18424 echo 'CEOF
698dcdb6
VZ
18425 sed -f conftest.frag conftest.in > conftest.out
18426 rm -f conftest.in
18427 mv conftest.out conftest.in
18428' >> $CONFIG_STATUS
18429 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18430 rm -f conftest.vals
18431 mv conftest.tail conftest.vals
10f2d63a 18432done
698dcdb6
VZ
18433rm -f conftest.vals
18434
18435cat >> $CONFIG_STATUS <<\EOF
18436 rm -f conftest.frag conftest.h
18437 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18438 cat conftest.in >> conftest.h
18439 rm -f conftest.in
18440 if cmp -s $ac_file conftest.h 2>/dev/null; then
18441 echo "$ac_file is unchanged"
18442 rm -f conftest.h
10f2d63a 18443 else
698dcdb6
VZ
18444 # Remove last slash and all that follows it. Not all systems have dirname.
18445 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 18446 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
18447 # The file is in a subdirectory.
18448 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 18449 fi
698dcdb6
VZ
18450 rm -f $ac_file
18451 mv conftest.h $ac_file
10f2d63a 18452 fi
698dcdb6
VZ
18453fi; done
18454
10f2d63a 18455EOF
698dcdb6 18456cat >> $CONFIG_STATUS <<EOF
10f2d63a 18457
1e6feb95 18458 SETUPH_DIR="${SETUPH_DIR}"
698dcdb6
VZ
18459 TOOLKIT_NAME="${TOOLKIT_NAME}"
18460 LN_S="${LN_S}"
18461
18462
18463EOF
18464cat >> $CONFIG_STATUS <<\EOF
10f2d63a 18465
6ef41520 18466 if test ! -f wx${TOOLKIT_NAME}-config; then
991a5759
VZ
18467 chmod +x wx-config
18468 mv wx-config wx${TOOLKIT_NAME}-config
18469 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
18470 fi
665bbe97 18471
698dcdb6 18472
00cf1208
RR
18473 if test ! -d lib; then
18474 mkdir lib
18475 fi
18476 if test ! -d lib/wx; then
18477 mkdir lib/wx
18478 fi
18479 if test ! -d lib/wx/include; then
18480 mkdir lib/wx/include
18481 fi
18482 if test ! -d lib/wx/include/wx; then
18483 mkdir lib/wx/include/wx
18484 fi
f6bcfd97
BP
18485 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
18486 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
00cf1208
RR
18487 fi
18488 if test -f setup.h; then
066b00aa 18489 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
00cf1208 18490 fi
07eb77a6 18491
698dcdb6 18492
10f2d63a
VZ
18493 if test ! -d include; then
18494 mkdir include
18495 fi
18496 if test ! -d include/wx; then
18497 mkdir include/wx
18498 fi
1e6feb95
VZ
18499 if test ! -d include/wx/${SETUPH_DIR}; then
18500 mkdir include/wx/${SETUPH_DIR}
10f2d63a 18501 fi
afc31813 18502 if test -f setup.h; then
1e6feb95 18503 cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h
afc31813 18504 fi
665bbe97 18505
698dcdb6
VZ
18506
18507exit 0
10f2d63a
VZ
18508EOF
18509chmod +x $CONFIG_STATUS
698dcdb6
VZ
18510rm -fr confdefs* $ac_clean_files
18511test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 18512
2224580a
VZ
18513if test "$no_recursion" != yes; then
18514
18515 # Remove --cache-file and --srcdir arguments so they do not pile up.
18516 ac_sub_configure_args=
18517 ac_prev=
18518 for ac_arg in $ac_configure_args; do
18519 if test -n "$ac_prev"; then
18520 ac_prev=
18521 continue
18522 fi
698dcdb6 18523 case "$ac_arg" in
2224580a
VZ
18524 -cache-file | --cache-file | --cache-fil | --cache-fi \
18525 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18526 ac_prev=cache_file ;;
18527 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 18528 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
18529 ;;
18530 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18531 ac_prev=srcdir ;;
18532 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18533 ;;
18534 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18535 esac
18536 done
18537
698dcdb6 18538 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
18539
18540 # Do not complain, so a configure script can configure whichever
18541 # parts of a large source tree are present.
698dcdb6
VZ
18542 if test ! -d $srcdir/$ac_config_dir; then
18543 continue
18544 fi
18545
18546 echo configuring in $ac_config_dir
2224580a 18547
698dcdb6 18548 case "$srcdir" in
2224580a
VZ
18549 .) ;;
18550 *)
698dcdb6
VZ
18551 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18552 else
18553 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18554 fi
18555 ;;
2224580a
VZ
18556 esac
18557
18558 ac_popdir=`pwd`
698dcdb6 18559 cd $ac_config_dir
2224580a 18560
698dcdb6
VZ
18561 # A "../" for each directory in /$ac_config_dir.
18562 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 18563
698dcdb6 18564 case "$srcdir" in
2224580a
VZ
18565 .) # No --srcdir option. We are building in place.
18566 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
18567 /*) # Absolute path.
18568 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 18569 *) # Relative path.
698dcdb6 18570 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
18571 esac
18572
18573 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
18574 if test -f $ac_sub_srcdir/configure; then
18575 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
18576 elif test -f $ac_sub_srcdir/configure.in; then
18577 ac_sub_configure=$ac_configure
18578 else
698dcdb6 18579 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
18580 ac_sub_configure=
18581 fi
18582
18583 # The recursion is here.
18584 if test -n "$ac_sub_configure"; then
698dcdb6 18585
2224580a 18586 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
18587 case "$cache_file" in
18588 /*) ac_sub_cache_file=$cache_file ;;
2224580a 18589 *) # Relative path.
698dcdb6 18590 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 18591 esac
698dcdb6
VZ
18592 case "$ac_given_INSTALL" in
18593 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18594 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18595 esac
2224580a 18596
698dcdb6 18597 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 18598 # The eval makes quoting arguments work.
698dcdb6
VZ
18599 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
18600 then :
18601 else
18602 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
18603 fi
2224580a
VZ
18604 fi
18605
18606 cd $ac_popdir
18607 done
18608fi
18609
698dcdb6 18610