]> git.saurik.com Git - wxWidgets.git/blame - configure
compilation fix for VC++
[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"
8db37e06
VZ
324ac_help="$ac_help
325 --enable-finddlg use wxFindReplaceDialog"
1e6feb95 326ac_help="$ac_help
8168de4c 327 --enable-fontdlg use wxFontDialog"
1e6feb95 328ac_help="$ac_help
8168de4c 329 --enable-dirdlg use wxDirDialog"
698dcdb6 330ac_help="$ac_help
8168de4c 331 --enable-msgdlg use wxMessageDialog"
1e6feb95 332ac_help="$ac_help
8168de4c 333 --enable-numberdlg use wxNumberEntryDialog"
1e6feb95 334ac_help="$ac_help
8168de4c 335 --enable-textdlg use wxTextDialog"
698dcdb6 336ac_help="$ac_help
8168de4c 337 --enable-tipdlg use startup tips"
698dcdb6 338ac_help="$ac_help
8168de4c 339 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
340ac_help="$ac_help
341 --enable-wizarddlg use wxWizard"
698dcdb6 342ac_help="$ac_help
8168de4c 343 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 344ac_help="$ac_help
8168de4c 345 --enable-miniframe use wxMiniFrame class"
698dcdb6 346ac_help="$ac_help
8168de4c 347 --enable-tooltips use wxToolTip class"
698dcdb6 348ac_help="$ac_help
8168de4c 349 --enable-splines use spline drawing code"
698dcdb6 350ac_help="$ac_help
8168de4c 351 --enable-validators use wxValidator and derived classes"
698dcdb6 352ac_help="$ac_help
8168de4c 353 --enable-busyinfo use wxBusyInfo"
698dcdb6 354ac_help="$ac_help
8168de4c 355 --enable-joystick compile in joystick support (Linux only)"
698dcdb6 356ac_help="$ac_help
8168de4c 357 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
358ac_help="$ac_help
359 --enable-dragimage use wxDragImage"
1e6feb95 360ac_help="$ac_help
8168de4c 361 --enable-image use wxImage class"
698dcdb6 362ac_help="$ac_help
8168de4c 363 --enable-gif use gif images (GIF file format)"
698dcdb6 364ac_help="$ac_help
8168de4c 365 --enable-pcx use pcx images (PCX file format)"
698dcdb6 366ac_help="$ac_help
8168de4c 367 --enable-pnm use pnm images (PNM file format)"
698dcdb6 368ac_help="$ac_help
8168de4c 369 --enable-xpm use xpm images (XPM file format)"
698dcdb6
VZ
370ac_help="$ac_help
371 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
372ac_help="$ac_help
373 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
374ac_help="$ac_help
375 --disable-gtktest Do not try to compile and run a test GTK program"
376ac_help="$ac_help
377 --with-x use the X Window System"
10f2d63a
VZ
378
379# Initialize some variables set by options.
380# The variables have the same names as the options, with
381# dashes changed to underlines.
698dcdb6
VZ
382build=NONE
383cache_file=./config.cache
10f2d63a 384exec_prefix=NONE
698dcdb6 385host=NONE
10f2d63a 386no_create=
698dcdb6 387nonopt=NONE
10f2d63a
VZ
388no_recursion=
389prefix=NONE
390program_prefix=NONE
391program_suffix=NONE
392program_transform_name=s,x,x,
393silent=
394site=
395srcdir=
698dcdb6 396target=NONE
10f2d63a
VZ
397verbose=
398x_includes=NONE
399x_libraries=NONE
400bindir='${exec_prefix}/bin'
401sbindir='${exec_prefix}/sbin'
402libexecdir='${exec_prefix}/libexec'
403datadir='${prefix}/share'
404sysconfdir='${prefix}/etc'
405sharedstatedir='${prefix}/com'
406localstatedir='${prefix}/var'
407libdir='${exec_prefix}/lib'
408includedir='${prefix}/include'
409oldincludedir='/usr/include'
410infodir='${prefix}/info'
411mandir='${prefix}/man'
412
698dcdb6
VZ
413# Initialize some other variables.
414subdirs=
415MFLAGS= MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417# Maximum number of lines to put in a shell here document.
418ac_max_here_lines=12
10f2d63a
VZ
419
420ac_prev=
421for ac_option
422do
698dcdb6 423
10f2d63a
VZ
424 # If the previous option needs an argument, assign it.
425 if test -n "$ac_prev"; then
426 eval "$ac_prev=\$ac_option"
427 ac_prev=
428 continue
429 fi
430
698dcdb6
VZ
431 case "$ac_option" in
432 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
433 *) ac_optarg= ;;
434 esac
10f2d63a
VZ
435
436 # Accept the important Cygnus configure options, so we can diagnose typos.
437
698dcdb6 438 case "$ac_option" in
10f2d63a
VZ
439
440 -bindir | --bindir | --bindi | --bind | --bin | --bi)
441 ac_prev=bindir ;;
442 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 443 bindir="$ac_optarg" ;;
10f2d63a
VZ
444
445 -build | --build | --buil | --bui | --bu)
698dcdb6 446 ac_prev=build ;;
10f2d63a 447 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 448 build="$ac_optarg" ;;
10f2d63a
VZ
449
450 -cache-file | --cache-file | --cache-fil | --cache-fi \
451 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
452 ac_prev=cache_file ;;
453 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
454 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 455 cache_file="$ac_optarg" ;;
10f2d63a
VZ
456
457 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
458 ac_prev=datadir ;;
459 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
460 | --da=*)
698dcdb6 461 datadir="$ac_optarg" ;;
10f2d63a
VZ
462
463 -disable-* | --disable-*)
698dcdb6 464 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 465 # Reject names that are not valid shell variable names.
698dcdb6
VZ
466 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
467 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
468 fi
469 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
470 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
471
472 -enable-* | --enable-*)
698dcdb6 473 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 474 # Reject names that are not valid shell variable names.
698dcdb6
VZ
475 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
476 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
477 fi
478 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
479 case "$ac_option" in
480 *=*) ;;
10f2d63a
VZ
481 *) ac_optarg=yes ;;
482 esac
698dcdb6 483 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
484
485 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
486 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
487 | --exec | --exe | --ex)
488 ac_prev=exec_prefix ;;
489 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
490 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
491 | --exec=* | --exe=* | --ex=*)
698dcdb6 492 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
493
494 -gas | --gas | --ga | --g)
495 # Obsolete; use --with-gas.
496 with_gas=yes ;;
497
698dcdb6
VZ
498 -help | --help | --hel | --he)
499 # Omit some internal or obsolete options to make the list less imposing.
500 # This message is too long to be a string in the A/UX 3.1 sh.
501 cat << EOF
502Usage: configure [options] [host]
503Options: [defaults in brackets after descriptions]
504Configuration:
505 --cache-file=FILE cache test results in FILE
506 --help print this message
507 --no-create do not create output files
508 --quiet, --silent do not print \`checking...' messages
509 --version print the version of autoconf that created configure
510Directory and file names:
511 --prefix=PREFIX install architecture-independent files in PREFIX
512 [$ac_default_prefix]
513 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
514 [same as prefix]
515 --bindir=DIR user executables in DIR [EPREFIX/bin]
516 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
517 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
518 --datadir=DIR read-only architecture-independent data in DIR
519 [PREFIX/share]
520 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
521 --sharedstatedir=DIR modifiable architecture-independent data in DIR
522 [PREFIX/com]
523 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
524 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
525 --includedir=DIR C header files in DIR [PREFIX/include]
526 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
527 --infodir=DIR info documentation in DIR [PREFIX/info]
528 --mandir=DIR man documentation in DIR [PREFIX/man]
529 --srcdir=DIR find the sources in DIR [configure dir or ..]
530 --program-prefix=PREFIX prepend PREFIX to installed program names
531 --program-suffix=SUFFIX append SUFFIX to installed program names
532 --program-transform-name=PROGRAM
533 run sed PROGRAM on installed program names
534EOF
535 cat << EOF
536Host type:
537 --build=BUILD configure for building on BUILD [BUILD=HOST]
538 --host=HOST configure for HOST [guessed]
539 --target=TARGET configure for TARGET [TARGET=HOST]
540Features and packages:
541 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
542 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
543 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
544 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
545 --x-includes=DIR X include files are in DIR
546 --x-libraries=DIR X library files are in DIR
547EOF
548 if test -n "$ac_help"; then
549 echo "--enable and --with options recognized:$ac_help"
550 fi
551 exit 0 ;;
10f2d63a
VZ
552
553 -host | --host | --hos | --ho)
698dcdb6 554 ac_prev=host ;;
10f2d63a 555 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 556 host="$ac_optarg" ;;
10f2d63a
VZ
557
558 -includedir | --includedir | --includedi | --included | --include \
559 | --includ | --inclu | --incl | --inc)
560 ac_prev=includedir ;;
561 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
562 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 563 includedir="$ac_optarg" ;;
10f2d63a
VZ
564
565 -infodir | --infodir | --infodi | --infod | --info | --inf)
566 ac_prev=infodir ;;
567 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 568 infodir="$ac_optarg" ;;
10f2d63a
VZ
569
570 -libdir | --libdir | --libdi | --libd)
571 ac_prev=libdir ;;
572 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 573 libdir="$ac_optarg" ;;
10f2d63a
VZ
574
575 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
576 | --libexe | --libex | --libe)
577 ac_prev=libexecdir ;;
578 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
579 | --libexe=* | --libex=* | --libe=*)
698dcdb6 580 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
581
582 -localstatedir | --localstatedir | --localstatedi | --localstated \
583 | --localstate | --localstat | --localsta | --localst \
584 | --locals | --local | --loca | --loc | --lo)
585 ac_prev=localstatedir ;;
586 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
587 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
588 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 589 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
590
591 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
592 ac_prev=mandir ;;
593 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 594 mandir="$ac_optarg" ;;
10f2d63a
VZ
595
596 -nfp | --nfp | --nf)
597 # Obsolete; use --without-fp.
598 with_fp=no ;;
599
600 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
601 | --no-cr | --no-c)
602 no_create=yes ;;
603
604 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
605 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
606 no_recursion=yes ;;
607
608 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
609 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
610 | --oldin | --oldi | --old | --ol | --o)
611 ac_prev=oldincludedir ;;
612 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
613 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
614 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 615 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
616
617 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
618 ac_prev=prefix ;;
619 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 620 prefix="$ac_optarg" ;;
10f2d63a
VZ
621
622 -program-prefix | --program-prefix | --program-prefi | --program-pref \
623 | --program-pre | --program-pr | --program-p)
624 ac_prev=program_prefix ;;
625 -program-prefix=* | --program-prefix=* | --program-prefi=* \
626 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 627 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
628
629 -program-suffix | --program-suffix | --program-suffi | --program-suff \
630 | --program-suf | --program-su | --program-s)
631 ac_prev=program_suffix ;;
632 -program-suffix=* | --program-suffix=* | --program-suffi=* \
633 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 634 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
635
636 -program-transform-name | --program-transform-name \
637 | --program-transform-nam | --program-transform-na \
638 | --program-transform-n | --program-transform- \
639 | --program-transform | --program-transfor \
640 | --program-transfo | --program-transf \
641 | --program-trans | --program-tran \
642 | --progr-tra | --program-tr | --program-t)
643 ac_prev=program_transform_name ;;
644 -program-transform-name=* | --program-transform-name=* \
645 | --program-transform-nam=* | --program-transform-na=* \
646 | --program-transform-n=* | --program-transform-=* \
647 | --program-transform=* | --program-transfor=* \
648 | --program-transfo=* | --program-transf=* \
649 | --program-trans=* | --program-tran=* \
650 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 651 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
652
653 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
654 | -silent | --silent | --silen | --sile | --sil)
655 silent=yes ;;
656
657 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
658 ac_prev=sbindir ;;
659 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
660 | --sbi=* | --sb=*)
698dcdb6 661 sbindir="$ac_optarg" ;;
10f2d63a
VZ
662
663 -sharedstatedir | --sharedstatedir | --sharedstatedi \
664 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
665 | --sharedst | --shareds | --shared | --share | --shar \
666 | --sha | --sh)
667 ac_prev=sharedstatedir ;;
668 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
669 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
670 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
671 | --sha=* | --sh=*)
698dcdb6 672 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
673
674 -site | --site | --sit)
675 ac_prev=site ;;
676 -site=* | --site=* | --sit=*)
698dcdb6 677 site="$ac_optarg" ;;
10f2d63a
VZ
678
679 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
680 ac_prev=srcdir ;;
681 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 682 srcdir="$ac_optarg" ;;
10f2d63a
VZ
683
684 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
685 | --syscon | --sysco | --sysc | --sys | --sy)
686 ac_prev=sysconfdir ;;
687 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
688 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 689 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
690
691 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 692 ac_prev=target ;;
10f2d63a 693 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 694 target="$ac_optarg" ;;
10f2d63a
VZ
695
696 -v | -verbose | --verbose | --verbos | --verbo | --verb)
697 verbose=yes ;;
698
698dcdb6
VZ
699 -version | --version | --versio | --versi | --vers)
700 echo "configure generated by autoconf version 2.13"
701 exit 0 ;;
10f2d63a
VZ
702
703 -with-* | --with-*)
698dcdb6 704 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 705 # Reject names that are not valid shell variable names.
698dcdb6
VZ
706 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
707 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
708 fi
10f2d63a 709 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
710 case "$ac_option" in
711 *=*) ;;
10f2d63a
VZ
712 *) ac_optarg=yes ;;
713 esac
698dcdb6 714 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
715
716 -without-* | --without-*)
698dcdb6 717 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 718 # Reject names that are not valid shell variable names.
698dcdb6
VZ
719 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
720 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
721 fi
722 ac_package=`echo $ac_package| sed 's/-/_/g'`
723 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
724
725 --x)
726 # Obsolete; use --with-x.
727 with_x=yes ;;
728
729 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
730 | --x-incl | --x-inc | --x-in | --x-i)
731 ac_prev=x_includes ;;
732 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
733 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 734 x_includes="$ac_optarg" ;;
10f2d63a
VZ
735
736 -x-libraries | --x-libraries | --x-librarie | --x-librari \
737 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
738 ac_prev=x_libraries ;;
739 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
740 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 741 x_libraries="$ac_optarg" ;;
10f2d63a 742
698dcdb6 743 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
744 ;;
745
746 *)
698dcdb6
VZ
747 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
748 echo "configure: warning: $ac_option: invalid host type" 1>&2
749 fi
750 if test "x$nonopt" != xNONE; then
751 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
752 fi
753 nonopt="$ac_option"
10f2d63a
VZ
754 ;;
755
756 esac
757done
758
759if test -n "$ac_prev"; then
698dcdb6
VZ
760 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
761fi
762
763trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
764
765# File descriptor usage:
766# 0 standard input
767# 1 file creation
768# 2 errors and warnings
769# 3 some systems may open it to /dev/tty
770# 4 used on the Kubota Titan
771# 6 checking for... messages and results
772# 5 compiler messages saved in config.log
773if test "$silent" = yes; then
774 exec 6>/dev/null
775else
776 exec 6>&1
10f2d63a 777fi
698dcdb6
VZ
778exec 5>./config.log
779
780echo "\
781This file contains any messages produced by compilers while
782running configure, to aid debugging if configure makes a mistake.
783" 1>&5
10f2d63a 784
698dcdb6
VZ
785# Strip out --no-create and --no-recursion so they do not pile up.
786# Also quote any args containing shell metacharacters.
787ac_configure_args=
788for ac_arg
10f2d63a 789do
698dcdb6
VZ
790 case "$ac_arg" in
791 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
792 | --no-cr | --no-c) ;;
793 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
794 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
795 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
796 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
797 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
798 esac
799done
800
698dcdb6
VZ
801# NLS nuisances.
802# Only set these to C if already set. These must not be set unconditionally
803# because not all systems understand e.g. LANG=C (notably SCO).
804# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
805# Non-C LC_CTYPE values break the ctype check.
806if test "${LANG+set}" = set; then LANG=C; export LANG; fi
807if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
808if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
809if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 810
698dcdb6
VZ
811# confdefs.h avoids OS command line length limits that DEFS can exceed.
812rm -rf conftest* confdefs.h
813# AIX cpp loses on an empty file, so make sure it contains at least a newline.
814echo > confdefs.h
10f2d63a 815
698dcdb6
VZ
816# A filename unique to this package, relative to the directory that
817# configure is in, which we can look for to find out if srcdir is correct.
818ac_unique_file=wx-config.in
10f2d63a
VZ
819
820# Find the source files, if location was not specified.
821if test -z "$srcdir"; then
822 ac_srcdir_defaulted=yes
823 # Try the directory containing this script, then its parent.
824 ac_prog=$0
698dcdb6 825 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
826 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
827 srcdir=$ac_confdir
828 if test ! -r $srcdir/$ac_unique_file; then
829 srcdir=..
830 fi
831else
832 ac_srcdir_defaulted=no
833fi
834if test ! -r $srcdir/$ac_unique_file; then
835 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 836 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 837 else
698dcdb6 838 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
839 fi
840fi
698dcdb6 841srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
842
843# Prefer explicitly selected file to automatically selected ones.
844if test -z "$CONFIG_SITE"; then
845 if test "x$prefix" != xNONE; then
846 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
847 else
848 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
849 fi
850fi
851for ac_site_file in $CONFIG_SITE; do
852 if test -r "$ac_site_file"; then
698dcdb6 853 echo "loading site script $ac_site_file"
10f2d63a
VZ
854 . "$ac_site_file"
855 fi
856done
857
858if test -r "$cache_file"; then
698dcdb6
VZ
859 echo "loading cache $cache_file"
860 . $cache_file
10f2d63a 861else
698dcdb6
VZ
862 echo "creating cache $cache_file"
863 > $cache_file
10f2d63a
VZ
864fi
865
866ac_ext=c
698dcdb6 867# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 868ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
869ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
870ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
871cross_compiling=$ac_cv_prog_cc_cross
872
873ac_exeext=
874ac_objext=o
875if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
876 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
877 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
878 ac_n= ac_c='
879' ac_t=' '
880 else
881 ac_n=-n ac_c= ac_t=
882 fi
10f2d63a 883else
698dcdb6 884 ac_n= ac_c='\c' ac_t=
10f2d63a 885fi
698dcdb6
VZ
886
887
10f2d63a 888
7c66a493
VZ
889ac_aux_dir=
890for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
891 if test -f $ac_dir/install-sh; then
892 ac_aux_dir=$ac_dir
893 ac_install_sh="$ac_aux_dir/install-sh -c"
894 break
895 elif test -f $ac_dir/install.sh; then
896 ac_aux_dir=$ac_dir
897 ac_install_sh="$ac_aux_dir/install.sh -c"
898 break
899 fi
900done
901if test -z "$ac_aux_dir"; then
698dcdb6 902 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 903fi
698dcdb6
VZ
904ac_config_guess=$ac_aux_dir/config.guess
905ac_config_sub=$ac_aux_dir/config.sub
906ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 907
698dcdb6
VZ
908
909# Do some error checking and defaulting for the host and target type.
910# The inputs are:
911# configure --host=HOST --target=TARGET --build=BUILD NONOPT
912#
913# The rules are:
914# 1. You are not allowed to specify --host, --target, and nonopt at the
915# same time.
916# 2. Host defaults to nonopt.
917# 3. If nonopt is not specified, then host defaults to the current host,
918# as determined by config.guess.
919# 4. Target and build default to nonopt.
920# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
921
922# The aliases save the names the user supplied, while $host etc.
923# will get canonicalized.
698dcdb6
VZ
924case $host---$target---$nonopt in
925NONE---*---* | *---NONE---* | *---*---NONE) ;;
926*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
927esac
928
929
930# Make sure we can run config.sub.
931if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
932else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
933fi
934
935echo $ac_n "checking host system type""... $ac_c" 1>&6
8db37e06 936echo "configure:937: checking host system type" >&5
698dcdb6
VZ
937
938host_alias=$host
939case "$host_alias" in
940NONE)
941 case $nonopt in
942 NONE)
943 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
944 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
945 fi ;;
946 *) host_alias=$nonopt ;;
947 esac ;;
948esac
949
950host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
951host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
952host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
953host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
954echo "$ac_t""$host" 1>&6
955
956echo $ac_n "checking target system type""... $ac_c" 1>&6
8db37e06 957echo "configure:958: checking target system type" >&5
698dcdb6
VZ
958
959target_alias=$target
960case "$target_alias" in
961NONE)
962 case $nonopt in
963 NONE) target_alias=$host_alias ;;
964 *) target_alias=$nonopt ;;
965 esac ;;
966esac
967
968target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
969target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
970target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
971target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
972echo "$ac_t""$target" 1>&6
973
974echo $ac_n "checking build system type""... $ac_c" 1>&6
8db37e06 975echo "configure:976: checking build system type" >&5
698dcdb6
VZ
976
977build_alias=$build
978case "$build_alias" in
979NONE)
980 case $nonopt in
981 NONE) build_alias=$host_alias ;;
982 *) build_alias=$nonopt ;;
983 esac ;;
984esac
985
986build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
987build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
988build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
989build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
990echo "$ac_t""$build" 1>&6
991
992test "$host_alias" != "$target_alias" &&
7c66a493
VZ
993 test "$program_prefix$program_suffix$program_transform_name" = \
994 NONENONEs,x,x, &&
995 program_prefix=${target_alias}-
996
698dcdb6
VZ
997
998
10f2d63a 999WX_MAJOR_VERSION_NUMBER=2
37d403aa 1000WX_MINOR_VERSION_NUMBER=3
6c01ec02 1001WX_RELEASE_NUMBER=2
10f2d63a 1002
10f2d63a 1003WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1004WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1005
6c01ec02 1006WX_CURRENT=1
6426998c
RL
1007WX_REVISION=0
1008WX_AGE=0
1009
698dcdb6
VZ
1010
1011
10f2d63a
VZ
1012USE_UNIX=1
1013USE_WIN32=0
b12915c1 1014USE_BEOS=0
1216f52d 1015USE_MAC=0
b12915c1 1016
10f2d63a
VZ
1017USE_LINUX=
1018USE_SGI=
1019USE_HPUX=
1020USE_SYSV=
1021USE_SVR4=
1022USE_AIX=
1023USE_SUN=
1024USE_SOLARIS=
1025USE_SUNOS=
1026USE_ALPHA=
1027USE_OSF=
1028USE_BSD=
f11bdd03 1029USE_DARWIN=
10f2d63a 1030USE_FREEBSD=
95c8801c 1031USE_OPENBSD=
f6bcfd97 1032USE_NETBSD=
10f2d63a
VZ
1033USE_VMS=
1034USE_ULTRIX=
1035USE_CYGWIN=
1036USE_MINGW=
1037USE_DATA_GENERAL=
1038
ab9b9eab
VZ
1039NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1040
1e6feb95 1041ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
10f2d63a
VZ
1042
1043DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1044DEFAULT_wxUSE_MAC=0
1045DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1046DEFAULT_wxUSE_MOTIF=0
1047DEFAULT_wxUSE_MSW=0
e07802fc 1048DEFAULT_wxUSE_PM=0
1e6feb95 1049DEFAULT_wxUSE_WINE=0
10f2d63a
VZ
1050
1051DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1052DEFAULT_DEFAULT_wxUSE_MAC=0
1053DEFAULT_DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1054DEFAULT_DEFAULT_wxUSE_MOTIF=0
1055DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1056DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1057DEFAULT_DEFAULT_wxUSE_WINE=0
10f2d63a 1058
d6a55c4b
VZ
1059PROGRAM_EXT=
1060
10f2d63a
VZ
1061case "${host}" in
1062 *-hp-hpux* )
1063 USE_HPUX=1
1064 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1065 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
698dcdb6 1066 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1067#define __HPUX__ 1
1068EOF
1069
1070 ;;
1071 *-*-linux* )
1072 USE_LINUX=1
698dcdb6 1073 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1074#define __LINUX__ 1
1075EOF
1076
1077 TMP=`uname -m`
1078 if test "x$TMP" = "xalpha"; then
1079 USE_ALPHA=1
698dcdb6 1080 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1081#define __ALPHA__ 1
1082EOF
1083
1084 fi
1085 DEFAULT_DEFAULT_wxUSE_GTK=1
1086 ;;
1087 *-*-irix5* | *-*-irix6* )
1088 USE_SGI=1
1089 USE_SVR4=1
698dcdb6 1090 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1091#define __SGI__ 1
1092EOF
1093
698dcdb6 1094 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1095#define __SVR4__ 1
1096EOF
1097
1098 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1099 ;;
1100 *-*-solaris2* )
1101 USE_SUN=1
1102 USE_SOLARIS=1
1103 USE_SVR4=1
698dcdb6 1104 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1105#define __SUN__ 1
1106EOF
1107
698dcdb6 1108 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1109#define __SOLARIS__ 1
1110EOF
1111
698dcdb6 1112 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1113#define __SVR4__ 1
1114EOF
1115
1116 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1117 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1118 ;;
1119 *-*-sunos4* )
1120 USE_SUN=1
1121 USE_SUNOS=1
1122 USE_BSD=1
698dcdb6 1123 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1124#define __SUN__ 1
1125EOF
1126
698dcdb6 1127 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1128#define __SUNOS__ 1
1129EOF
1130
698dcdb6 1131 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1132#define __BSD__ 1
1133EOF
1134
1135 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1136 ;;
f6bcfd97 1137 *-*-freebsd*)
10f2d63a
VZ
1138 USE_BSD=1
1139 USE_FREEBSD=1
698dcdb6 1140 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1141#define __FREEBSD__ 1
1142EOF
1143
698dcdb6 1144 cat >> confdefs.h <<\EOF
10f2d63a 1145#define __BSD__ 1
95c8801c
VS
1146EOF
1147
1148 DEFAULT_DEFAULT_wxUSE_GTK=1
1149 ;;
1150 *-*-openbsd*)
1151 USE_BSD=1
1152 USE_OPENBSD=1
698dcdb6 1153 cat >> confdefs.h <<\EOF
95c8801c
VS
1154#define __FREEBSD__ 1
1155EOF
1156
698dcdb6 1157 cat >> confdefs.h <<\EOF
95c8801c 1158#define __OPENBSD__ 1
f6bcfd97
BP
1159EOF
1160
1161 DEFAULT_DEFAULT_wxUSE_GTK=1
1162 ;;
1163 *-*-netbsd*)
1164 USE_BSD=1
1165 USE_NETBSD=1
698dcdb6 1166 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1167#define __FREEBSD__ 1
1168EOF
1169
698dcdb6 1170 cat >> confdefs.h <<\EOF
f6bcfd97 1171#define __NETBSD__ 1
10f2d63a
VZ
1172EOF
1173
1174 DEFAULT_DEFAULT_wxUSE_GTK=1
1175 ;;
1176 *-*-osf* )
1177 USE_ALPHA=1
1178 USE_OSF=1
698dcdb6 1179 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1180#define __ALPHA__ 1
1181EOF
1182
698dcdb6 1183 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1184#define __OSF__ 1
1185EOF
1186
1187 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1188 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1189 ;;
1190 *-*-dgux5* )
1191 USE_ALPHA=1
1192 USE_SVR4=1
698dcdb6 1193 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1194#define __ALPHA__ 1
1195EOF
1196
698dcdb6 1197 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1198#define __SVR4__ 1
1199EOF
1200
1201 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1202 ;;
1203 *-*-sysv5* )
1204 USE_SYSV=1
1205 USE_SVR4=1
698dcdb6 1206 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1207#define __SYSV__ 1
1208EOF
1209
698dcdb6 1210 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1211#define __SVR4__ 1
1212EOF
1213
1214 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1215 ;;
1216 *-*-aix* )
1217 USE_AIX=1
1218 USE_SYSV=1
1219 USE_SVR4=1
698dcdb6 1220 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1221#define __AIX__ 1
1222EOF
1223
698dcdb6 1224 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1225#define __SYSV__ 1
1226EOF
1227
698dcdb6 1228 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1229#define __SVR4__ 1
1230EOF
1231
1232 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1233 ;;
1234
1c8183e2 1235 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1236 USE_UNIX=0
1237 USE_WIN32=1
698dcdb6 1238 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1239#define __WIN32__ 1
1240EOF
1241
698dcdb6 1242 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1243#define __WIN95__ 1
1244EOF
1245
698dcdb6 1246 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1247#define __WINDOWS__ 1
1248EOF
1249
698dcdb6 1250 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1251#define __GNUWIN32__ 1
1252EOF
1253
698dcdb6 1254 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1255#define STRICT 1
1256EOF
1257
698dcdb6 1258 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1259#define WINVER 0x0400
1260EOF
1261
cf27ef00 1262 PROGRAM_EXT=".exe"
10f2d63a
VZ
1263 DEFAULT_DEFAULT_wxUSE_MSW=1
1264 ;;
1265
1266 *-pc-os2_emx )
698dcdb6 1267 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1268#define __EMX__ 1
1269EOF
1270
cf27ef00 1271 PROGRAM_EXT=".exe"
e07802fc 1272 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1273 ;;
1274
b4085ce6
GD
1275 *-*-darwin* )
1276 USE_BSD=1
f11bdd03 1277 USE_DARWIN=1
698dcdb6 1278 cat >> confdefs.h <<\EOF
f11bdd03 1279#define __BSD__ 1
b4085ce6
GD
1280EOF
1281
698dcdb6 1282 cat >> confdefs.h <<\EOF
f11bdd03 1283#define __DARWIN__ 1
b4085ce6
GD
1284EOF
1285
698dcdb6 1286 cat >> confdefs.h <<\EOF
b4085ce6
GD
1287#define __UNIX__ 1
1288EOF
1289
1290 DEFAULT_DEFAULT_wxUSE_MAC=1
1291 ;;
1292
b12915c1
VZ
1293 *-*-beos* )
1294 USE_BEOS=1
698dcdb6 1295 cat >> confdefs.h <<\EOF
b12915c1
VZ
1296#define __BEOS__ 1
1297EOF
1298
1299 ;;
1300
10f2d63a 1301 *)
698dcdb6 1302 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1303esac
1304
1305if test "$USE_UNIX" = 1 ; then
b12915c1 1306 wxUSE_UNIX=yes
698dcdb6 1307 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1308#define __UNIX__ 1
1309EOF
1310
698dcdb6 1311
b12915c1
VZ
1312 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1313 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1314fi
1315
1316if test "$USE_BEOS" = 1; then
1317 SRC_SUBDIRS="$SRC_SUBDIRS be"
1318 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1319fi
1320
1321if test "$USE_LINUX" = 1; then
698dcdb6 1322 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
8db37e06 1323echo "configure:1324: checking for gettext in -lc" >&5
698dcdb6
VZ
1324ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1325if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 1327else
698dcdb6
VZ
1328 ac_save_LIBS="$LIBS"
1329LIBS="-lc $LIBS"
1330cat > conftest.$ac_ext <<EOF
8db37e06 1331#line 1332 "configure"
698dcdb6
VZ
1332#include "confdefs.h"
1333/* Override any gcc2 internal prototype to avoid an error. */
1334/* We use char because int might match the return type of a gcc2
1335 builtin and then its argument prototype would still apply. */
1336char gettext();
10f2d63a 1337
698dcdb6
VZ
1338int main() {
1339gettext()
1340; return 0; }
1341EOF
8db37e06 1342if { (eval echo configure:1343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
1343 rm -rf conftest*
1344 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 1345else
698dcdb6
VZ
1346 echo "configure: failed program was:" >&5
1347 cat conftest.$ac_ext >&5
1348 rm -rf conftest*
1349 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 1350fi
698dcdb6
VZ
1351rm -f conftest*
1352LIBS="$ac_save_LIBS"
10f2d63a
VZ
1353
1354fi
698dcdb6
VZ
1355if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1356 echo "$ac_t""yes" 1>&6
1357 cat >> confdefs.h <<\EOF
1358#define wxHAVE_GLIBC2 1
1359EOF
10f2d63a
VZ
1360
1361else
698dcdb6 1362 echo "$ac_t""no" 1>&6
10f2d63a
VZ
1363fi
1364
1365fi
1366
1e487827 1367
1e487827 1368
6232543b 1369
10f2d63a
VZ
1370 wx_arg_cache_file="configarg.cache"
1371 echo "loading argument cache $wx_arg_cache_file"
1372 rm -f ${wx_arg_cache_file}.tmp
1373 touch ${wx_arg_cache_file}.tmp
1374 touch ${wx_arg_cache_file}
698dcdb6 1375
10f2d63a
VZ
1376
1377DEBUG_CONFIGURE=0
1378if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1379 DEFAULT_wxUSE_UNIVERSAL=no
1380
10f2d63a
VZ
1381 DEFAULT_wxUSE_THREADS=yes
1382
1383 DEFAULT_wxUSE_SHARED=yes
00cf1208 1384 DEFAULT_wxUSE_BURNT_NAME=no
1e6feb95 1385 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1386 DEFAULT_wxUSE_PROFILE=no
1387 DEFAULT_wxUSE_NO_DEPS=no
1388 DEFAULT_wxUSE_NO_RTTI=no
1389 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1390 DEFAULT_wxUSE_PERMISSIVE=no
1391 DEFAULT_wxUSE_DEBUG_FLAG=yes
1392 DEFAULT_wxUSE_DEBUG_INFO=yes
1393 DEFAULT_wxUSE_DEBUG_GDB=yes
1394 DEFAULT_wxUSE_MEM_TRACING=no
1395 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1396 DEFAULT_wxUSE_DMALLOC=no
1397 DEFAULT_wxUSE_APPLE_IEEE=no
1398
1399 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1400 DEFAULT_wxUSE_LOGWINDOW=no
1401 DEFAULT_wxUSE_LOGGUI=no
10f2d63a
VZ
1402
1403 DEFAULT_wxUSE_GUI=yes
1e6feb95 1404 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1405
3e44f09d 1406 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1407 DEFAULT_wxUSE_ZLIB=no
1408 DEFAULT_wxUSE_LIBPNG=no
1409 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1410 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1411 DEFAULT_wxUSE_ODBC=no
3fed1840 1412 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1413 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1414
eb4efbdc 1415 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1416 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1417 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1418 DEFAULT_wxUSE_CMDLINE_PARSER=no
1419 DEFAULT_wxUSE_DATETIME=no
1420 DEFAULT_wxUSE_TIMEDATE=no
1421 DEFAULT_wxUSE_TIMER=no
1422 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1423 DEFAULT_wxUSE_FILE=no
1e6feb95 1424 DEFAULT_wxUSE_FFILE=no
10f2d63a 1425 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1426 DEFAULT_wxUSE_WAVE=no
1427 DEFAULT_wxUSE_INTL=no
1428 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1429 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1430 DEFAULT_wxUSE_STREAMS=no
1431 DEFAULT_wxUSE_SOCKETS=no
1432 DEFAULT_wxUSE_DIALUP_MANAGER=no
1433 DEFAULT_wxUSE_SERIAL=no
1434 DEFAULT_wxUSE_JOYSTICK=no
1435 DEFAULT_wxUSE_DYNLIB_CLASS=no
1436 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1437 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1438
1439 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1440 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1441 DEFAULT_wxUSE_POSTSCRIPT=no
1442
1443 DEFAULT_wxUSE_X_RESOURCES=no
1444 DEFAULT_wxUSE_CLIPBOARD=no
1445 DEFAULT_wxUSE_TOOLTIPS=no
1446 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1447 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1448 DEFAULT_wxUSE_SPLINES=no
1449
1450 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1451 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1452 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1453
1454 DEFAULT_wxUSE_PROLOGIO=no
1455 DEFAULT_wxUSE_RESOURCES=no
1456 DEFAULT_wxUSE_CONSTRAINTS=no
1457 DEFAULT_wxUSE_IPC=no
1458 DEFAULT_wxUSE_HELP=no
29fd3c0c 1459 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1460 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1461 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1462 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1463 DEFAULT_wxUSE_MIMETYPE=no
3e44f09d 1464 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1465
1466 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1467 DEFAULT_wxUSE_CHOICEDLG=no
1468 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1469 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1470 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1471 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1472 DEFAULT_wxUSE_FONTDLG=no
1473 DEFAULT_wxUSE_MSGDLG=no
1474 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a
VZ
1475 DEFAULT_wxUSE_TEXTDLG=no
1476 DEFAULT_wxUSE_STARTUP_TIPS=no
1477 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1478 DEFAULT_wxUSE_WIZARDDLG=no
1479
1e6feb95 1480 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1481 DEFAULT_wxUSE_MINIFRAME=no
1482 DEFAULT_wxUSE_HTML=no
24528b0c 1483 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1484 DEFAULT_wxUSE_FS_INET=no
1485 DEFAULT_wxUSE_FS_ZIP=no
1486 DEFAULT_wxUSE_BUSYINFO=no
1487 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1488 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1489
1490 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1491 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1492 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1493 DEFAULT_wxUSE_CALCTRL=no
1494 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1495 DEFAULT_wxUSE_CHECKBOX=no
1496 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1497 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1498 DEFAULT_wxUSE_COMBOBOX=no
1499 DEFAULT_wxUSE_GAUGE=no
1500 DEFAULT_wxUSE_GRID=no
1501 DEFAULT_wxUSE_NEW_GRID=no
1502 DEFAULT_wxUSE_IMAGLIST=no
1503 DEFAULT_wxUSE_LISTBOX=no
1504 DEFAULT_wxUSE_LISTCTRL=no
1505 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1506 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1507 DEFAULT_wxUSE_RADIOBOX=no
1508 DEFAULT_wxUSE_RADIOBTN=no
1509 DEFAULT_wxUSE_SASH=no
1510 DEFAULT_wxUSE_SCROLLBAR=no
1511 DEFAULT_wxUSE_SLIDER=no
1512 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1513 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1514 DEFAULT_wxUSE_SPLITTER=no
1515 DEFAULT_wxUSE_STATBMP=no
1516 DEFAULT_wxUSE_STATBOX=no
1517 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1518 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1519 DEFAULT_wxUSE_STATUSBAR=yes
1520 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1521 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1522 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1523 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1524 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1525 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1526 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1527 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
1528
1529 DEFAULT_wxUSE_UNICODE=no
1530 DEFAULT_wxUSE_WCSRTOMBS=no
1531
0046ff7c 1532 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1533 DEFAULT_wxUSE_GIF=no
1534 DEFAULT_wxUSE_PCX=no
1535 DEFAULT_wxUSE_PNM=no
0046ff7c 1536 DEFAULT_wxUSE_XPM=no
10f2d63a 1537else
1e6feb95
VZ
1538 DEFAULT_wxUSE_UNIVERSAL=no
1539
10f2d63a
VZ
1540 DEFAULT_wxUSE_THREADS=yes
1541
1542 DEFAULT_wxUSE_SHARED=yes
00cf1208 1543 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1544 DEFAULT_wxUSE_OPTIMISE=yes
1545 DEFAULT_wxUSE_PROFILE=no
1546 DEFAULT_wxUSE_NO_DEPS=no
1547 DEFAULT_wxUSE_NO_RTTI=no
1548 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1549 DEFAULT_wxUSE_PERMISSIVE=no
1550 DEFAULT_wxUSE_DEBUG_FLAG=no
1551 DEFAULT_wxUSE_DEBUG_INFO=no
1552 DEFAULT_wxUSE_DEBUG_GDB=no
1553 DEFAULT_wxUSE_MEM_TRACING=no
1554 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1555 DEFAULT_wxUSE_DMALLOC=no
1556 DEFAULT_wxUSE_APPLE_IEEE=yes
1557
1558 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1559 DEFAULT_wxUSE_LOGWINDOW=yes
1560 DEFAULT_wxUSE_LOGGUI=yes
10f2d63a
VZ
1561
1562 DEFAULT_wxUSE_GUI=yes
1563
831b3152 1564 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1565 DEFAULT_wxUSE_ZLIB=yes
1566 DEFAULT_wxUSE_LIBPNG=yes
1567 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1568 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1569 DEFAULT_wxUSE_ODBC=no
3fed1840 1570 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1571 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1572
eb4efbdc 1573 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1574 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1575 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1576 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1577 DEFAULT_wxUSE_DATETIME=yes
1578 DEFAULT_wxUSE_TIMEDATE=no
1579 DEFAULT_wxUSE_TIMER=yes
1580 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1581 DEFAULT_wxUSE_FILE=yes
1e6feb95 1582 DEFAULT_wxUSE_FFILE=yes
10f2d63a 1583 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1584 DEFAULT_wxUSE_WAVE=no
1585 DEFAULT_wxUSE_INTL=yes
1586 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1587 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1588 DEFAULT_wxUSE_STREAMS=yes
1589 DEFAULT_wxUSE_SOCKETS=yes
1590 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1591 DEFAULT_wxUSE_SERIAL=yes
1592 DEFAULT_wxUSE_JOYSTICK=yes
1593 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1594 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1595 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1596
1597 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1598 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1599 DEFAULT_wxUSE_POSTSCRIPT=yes
1600
1601 DEFAULT_wxUSE_X_RESOURCES=no
1602 DEFAULT_wxUSE_CLIPBOARD=yes
1603 DEFAULT_wxUSE_TOOLTIPS=yes
1604 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1605 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1606 DEFAULT_wxUSE_SPLINES=yes
1607
1608 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1609 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1610 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1611
1612 DEFAULT_wxUSE_PROLOGIO=yes
1613 DEFAULT_wxUSE_RESOURCES=yes
1614 DEFAULT_wxUSE_CONSTRAINTS=yes
1615 DEFAULT_wxUSE_IPC=yes
1616 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1617 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1618 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1619 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1620 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1621 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1622 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1623
1624 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1625 DEFAULT_wxUSE_CHOICEDLG=yes
1626 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1627 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1628 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1629 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1630 DEFAULT_wxUSE_FONTDLG=yes
1631 DEFAULT_wxUSE_MSGDLG=yes
1632 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a
VZ
1633 DEFAULT_wxUSE_TEXTDLG=yes
1634 DEFAULT_wxUSE_STARTUP_TIPS=yes
1635 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1636 DEFAULT_wxUSE_WIZARDDLG=yes
1637
1e6feb95 1638 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1639 DEFAULT_wxUSE_MINIFRAME=yes
1640 DEFAULT_wxUSE_HTML=yes
24528b0c 1641 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1642 DEFAULT_wxUSE_FS_INET=yes
1643 DEFAULT_wxUSE_FS_ZIP=yes
1644 DEFAULT_wxUSE_BUSYINFO=yes
1645 DEFAULT_wxUSE_ZIPSTREAM=yes
1646 DEFAULT_wxUSE_VALIDATORS=yes
1647
1648 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1649 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1650 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1651 DEFAULT_wxUSE_CALCTRL=yes
1652 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1653 DEFAULT_wxUSE_CHECKBOX=yes
1654 DEFAULT_wxUSE_CHECKLST=yes
1655 DEFAULT_wxUSE_CHOICE=yes
1656 DEFAULT_wxUSE_COMBOBOX=yes
1657 DEFAULT_wxUSE_GAUGE=yes
1658 DEFAULT_wxUSE_GRID=yes
cc977e5f 1659 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1660 DEFAULT_wxUSE_IMAGLIST=yes
1661 DEFAULT_wxUSE_LISTBOX=yes
1662 DEFAULT_wxUSE_LISTCTRL=yes
1663 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1664 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1665 DEFAULT_wxUSE_RADIOBOX=yes
1666 DEFAULT_wxUSE_RADIOBTN=yes
1667 DEFAULT_wxUSE_SASH=yes
1668 DEFAULT_wxUSE_SCROLLBAR=yes
1669 DEFAULT_wxUSE_SLIDER=yes
1670 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1671 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1672 DEFAULT_wxUSE_SPLITTER=yes
1673 DEFAULT_wxUSE_STATBMP=yes
1674 DEFAULT_wxUSE_STATBOX=yes
1675 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1676 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1677 DEFAULT_wxUSE_STATUSBAR=yes
1678 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1679 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1680 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1681 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1682 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1683 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1684 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1685 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
1686
1687 DEFAULT_wxUSE_UNICODE=no
1688 DEFAULT_wxUSE_WCSRTOMBS=no
1689
0046ff7c 1690 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1691 DEFAULT_wxUSE_GIF=yes
1692 DEFAULT_wxUSE_PCX=yes
1693 DEFAULT_wxUSE_PNM=yes
0046ff7c 1694 DEFAULT_wxUSE_XPM=yes
10f2d63a
VZ
1695fi
1696
698dcdb6
VZ
1697
1698
10f2d63a
VZ
1699for toolkit in `echo $ALL_TOOLKITS`; do
1700 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1701 if test "x$LINE" != x ; then
1702 has_toolkit_in_cache=1
1703 eval "DEFAULT_$LINE"
1704 eval "CACHE_$toolkit=1"
1705 fi
1706done
1707
698dcdb6
VZ
1708
1709
1710 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
8db37e06 1711echo "configure:1712: checking for --enable-gui" >&5
10f2d63a
VZ
1712 no_cache=0
1713 # Check whether --enable-gui or --disable-gui was given.
1714if test "${enable_gui+set}" = set; then
1715 enableval="$enable_gui"
698dcdb6 1716
10f2d63a
VZ
1717 if test "$enableval" = yes; then
1718 ac_cv_use_gui='wxUSE_GUI=yes'
1719 else
1720 ac_cv_use_gui='wxUSE_GUI=no'
1721 fi
698dcdb6 1722
10f2d63a 1723else
698dcdb6 1724
10f2d63a
VZ
1725 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1726 if test "x$LINE" != x ; then
1727 eval "DEFAULT_$LINE"
1728 else
1729 no_cache=1
1730 fi
1731
1732 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1733
1734fi
10f2d63a
VZ
1735
1736
1737 eval "$ac_cv_use_gui"
1738 if test "$no_cache" != 1; then
1739 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1740 fi
1741
1742 if test "$wxUSE_GUI" = yes; then
698dcdb6 1743 echo "$ac_t""yes" 1>&6
10f2d63a 1744 else
698dcdb6 1745 echo "$ac_t""no" 1>&6
10f2d63a 1746 fi
698dcdb6 1747
10f2d63a 1748
b12915c1 1749if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1750
1e6feb95
VZ
1751
1752 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
8db37e06 1753echo "configure:1754: checking for --enable-universal" >&5
1e6feb95
VZ
1754 no_cache=0
1755 # Check whether --enable-universal or --disable-universal was given.
1756if test "${enable_universal+set}" = set; then
1757 enableval="$enable_universal"
1758
1759 if test "$enableval" = yes; then
1760 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1761 else
1762 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1763 fi
1764
1765else
1766
1767 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1768 if test "x$LINE" != x ; then
1769 eval "DEFAULT_$LINE"
1770 else
1771 no_cache=1
1772 fi
1773
1774 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1775
1776fi
1777
1778
1779 eval "$ac_cv_use_universal"
1780 if test "$no_cache" != 1; then
1781 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1782 fi
1783
1784 if test "$wxUSE_UNIVERSAL" = yes; then
1785 echo "$ac_t""yes" 1>&6
1786 else
1787 echo "$ac_t""no" 1>&6
1788 fi
1789
10f2d63a
VZ
1790# Check whether --with-gtk or --without-gtk was given.
1791if test "${with_gtk+set}" = set; then
1792 withval="$with_gtk"
1793 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1794fi
10f2d63a
VZ
1795
1796# Check whether --with-motif or --without-motif was given.
1797if test "${with_motif+set}" = set; then
1798 withval="$with_motif"
1799 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1800fi
10f2d63a 1801
b4085ce6
GD
1802# Check whether --with-mac or --without-mac was given.
1803if test "${with_mac+set}" = set; then
1804 withval="$with_mac"
1805 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1806fi
b4085ce6 1807
10f2d63a
VZ
1808# Check whether --with-wine or --without-wine was given.
1809if test "${with_wine+set}" = set; then
1810 withval="$with_wine"
1811 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1812fi
10f2d63a
VZ
1813
1814# Check whether --with-cygwin or --without-cygwin was given.
1815if test "${with_cygwin+set}" = set; then
1816 withval="$with_cygwin"
1817 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
698dcdb6 1818fi
10f2d63a
VZ
1819
1820# Check whether --with-mingw or --without-mingw was given.
1821if test "${with_mingw+set}" = set; then
1822 withval="$with_mingw"
1823 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
698dcdb6 1824fi
10f2d63a 1825
e07802fc
VZ
1826# Check whether --with-pm or --without-pm was given.
1827if test "${with_pm+set}" = set; then
1828 withval="$with_pm"
1829 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1830fi
1831
1e6feb95
VZ
1832# Check whether --with-mgl or --without-mgl was given.
1833if test "${with_mgl+set}" = set; then
1834 withval="$with_mgl"
1835 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1836fi
1837
10f2d63a 1838
8168de4c
VZ
1839# Check whether --enable-gtk2 or --disable-gtk2 was given.
1840if test "${enable_gtk2+set}" = set; then
1841 enableval="$enable_gtk2"
1842 wxUSE_GTK2=1
10f2d63a 1843else
8168de4c 1844 wxUSE_GTK2=0
698dcdb6
VZ
1845fi
1846
703e0a69 1847
1e487827 1848
698dcdb6 1849 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
8db37e06 1850echo "configure:1851: checking for --with-libpng" >&5
698dcdb6
VZ
1851 no_cache=0
1852 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1853if test "${with_libpng+set}" = set; then
1854 withval="$with_libpng"
698dcdb6 1855
10f2d63a 1856 if test "$withval" = yes; then
b12915c1 1857 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1858 elif test "$withval" = no; then
b12915c1 1859 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1860 elif test "$withval" = sys; then
1861 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1862 else
698dcdb6 1863 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1864 fi
698dcdb6 1865
10f2d63a 1866else
698dcdb6 1867
b12915c1 1868 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1869 if test "x$LINE" != x ; then
1870 eval "DEFAULT_$LINE"
1871 else
1872 no_cache=1
1873 fi
1874
b12915c1 1875 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1876
1877fi
10f2d63a
VZ
1878
1879
b12915c1 1880 eval "$ac_cv_use_libpng"
10f2d63a 1881 if test "$no_cache" != 1; then
b12915c1 1882 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1883 fi
1884
b12915c1 1885 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1886 echo "$ac_t""yes" 1>&6
422107f9 1887 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1888 echo "$ac_t""no" 1>&6
422107f9 1889 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1890 echo "$ac_t""system version" 1>&6
422107f9 1891 else
698dcdb6 1892 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1893 fi
698dcdb6 1894
10f2d63a 1895
698dcdb6 1896 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
8db37e06 1897echo "configure:1898: checking for --with-libjpeg" >&5
10f2d63a 1898 no_cache=0
698dcdb6 1899 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1900if test "${with_libjpeg+set}" = set; then
1901 withval="$with_libjpeg"
698dcdb6 1902
10f2d63a 1903 if test "$withval" = yes; then
b12915c1 1904 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1905 elif test "$withval" = no; then
b12915c1 1906 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1907 elif test "$withval" = sys; then
1908 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1909 else
698dcdb6 1910 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1911 fi
698dcdb6 1912
10f2d63a 1913else
698dcdb6 1914
b12915c1 1915 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1916 if test "x$LINE" != x ; then
1917 eval "DEFAULT_$LINE"
1918 else
1919 no_cache=1
1920 fi
1921
b12915c1 1922 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
1923
1924fi
10f2d63a
VZ
1925
1926
b12915c1 1927 eval "$ac_cv_use_libjpeg"
10f2d63a 1928 if test "$no_cache" != 1; then
b12915c1 1929 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1930 fi
1931
b12915c1 1932 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 1933 echo "$ac_t""yes" 1>&6
422107f9 1934 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 1935 echo "$ac_t""no" 1>&6
422107f9 1936 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 1937 echo "$ac_t""system version" 1>&6
422107f9 1938 else
698dcdb6 1939 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1940 fi
698dcdb6 1941
10f2d63a 1942
698dcdb6 1943 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
8db37e06 1944echo "configure:1945: checking for --with-libtiff" >&5
10f2d63a 1945 no_cache=0
698dcdb6 1946 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
1947if test "${with_libtiff+set}" = set; then
1948 withval="$with_libtiff"
698dcdb6 1949
10f2d63a 1950 if test "$withval" = yes; then
b12915c1 1951 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1952 elif test "$withval" = no; then
b12915c1 1953 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1954 elif test "$withval" = sys; then
1955 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1956 else
698dcdb6 1957 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1958 fi
698dcdb6 1959
10f2d63a 1960else
698dcdb6 1961
b12915c1 1962 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1963 if test "x$LINE" != x ; then
1964 eval "DEFAULT_$LINE"
1965 else
1966 no_cache=1
1967 fi
1968
b12915c1 1969 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
1970
1971fi
10f2d63a
VZ
1972
1973
b12915c1 1974 eval "$ac_cv_use_libtiff"
10f2d63a 1975 if test "$no_cache" != 1; then
b12915c1 1976 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1977 fi
1978
b12915c1 1979 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 1980 echo "$ac_t""yes" 1>&6
0dcf9893 1981 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 1982 echo "$ac_t""no" 1>&6
0dcf9893 1983 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 1984 echo "$ac_t""system version" 1>&6
0dcf9893 1985 else
698dcdb6 1986 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1987 fi
698dcdb6 1988
10f2d63a 1989
698dcdb6 1990 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
8db37e06 1991echo "configure:1992: checking for --with-freetype" >&5
3fed1840 1992 no_cache=0
698dcdb6 1993 # Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
1994if test "${with_freetype+set}" = set; then
1995 withval="$with_freetype"
698dcdb6 1996
3fed1840
RR
1997 if test "$withval" = yes; then
1998 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1999 elif test "$withval" = no; then
2000 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2001 elif test "$withval" = sys; then
2002 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
2003 else
698dcdb6 2004 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 2005 fi
698dcdb6 2006
3fed1840 2007else
698dcdb6 2008
3fed1840
RR
2009 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2010 if test "x$LINE" != x ; then
2011 eval "DEFAULT_$LINE"
2012 else
2013 no_cache=1
2014 fi
2015
2016 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
698dcdb6
VZ
2017
2018fi
3fed1840
RR
2019
2020
2021 eval "$ac_cv_use_freetype"
2022 if test "$no_cache" != 1; then
2023 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2024 fi
2025
2026 if test "$wxUSE_FREETYPE" = yes; then
698dcdb6 2027 echo "$ac_t""yes" 1>&6
3fed1840 2028 elif test "$wxUSE_FREETYPE" = no; then
698dcdb6 2029 echo "$ac_t""no" 1>&6
3fed1840 2030 elif test "$wxUSE_FREETYPE" = sys; then
698dcdb6 2031 echo "$ac_t""system version" 1>&6
3fed1840 2032 else
698dcdb6 2033 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 2034 fi
698dcdb6 2035
3fed1840 2036
698dcdb6 2037 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
8db37e06 2038echo "configure:2039: checking for --with-opengl" >&5
10f2d63a 2039 no_cache=0
698dcdb6 2040 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2041if test "${with_opengl+set}" = set; then
2042 withval="$with_opengl"
698dcdb6 2043
10f2d63a 2044 if test "$withval" = yes; then
b12915c1 2045 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2046 else
b12915c1 2047 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2048 fi
698dcdb6 2049
10f2d63a 2050else
698dcdb6 2051
b12915c1 2052 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2053 if test "x$LINE" != x ; then
2054 eval "DEFAULT_$LINE"
2055 else
2056 no_cache=1
2057 fi
2058
b12915c1 2059 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2060
2061fi
10f2d63a
VZ
2062
2063
b12915c1 2064 eval "$ac_cv_use_opengl"
10f2d63a 2065 if test "$no_cache" != 1; then
b12915c1 2066 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2067 fi
2068
b12915c1 2069 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2070 echo "$ac_t""yes" 1>&6
10f2d63a 2071 else
698dcdb6 2072 echo "$ac_t""no" 1>&6
10f2d63a 2073 fi
698dcdb6 2074
10f2d63a 2075
b12915c1
VZ
2076fi
2077
1e487827 2078
698dcdb6 2079 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
8db37e06 2080echo "configure:2081: checking for --with-dmalloc" >&5
698dcdb6
VZ
2081 no_cache=0
2082 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2083if test "${with_dmalloc+set}" = set; then
2084 withval="$with_dmalloc"
698dcdb6 2085
c7a2bf27 2086 if test "$withval" = yes; then
b12915c1 2087 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2088 else
b12915c1 2089 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2090 fi
698dcdb6 2091
c7a2bf27 2092else
698dcdb6 2093
b12915c1 2094 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2095 if test "x$LINE" != x ; then
2096 eval "DEFAULT_$LINE"
2097 else
2098 no_cache=1
2099 fi
2100
b12915c1 2101 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2102
2103fi
c7a2bf27
RR
2104
2105
b12915c1 2106 eval "$ac_cv_use_dmalloc"
c7a2bf27 2107 if test "$no_cache" != 1; then
b12915c1 2108 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2109 fi
2110
b12915c1 2111 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2112 echo "$ac_t""yes" 1>&6
c7a2bf27 2113 else
698dcdb6 2114 echo "$ac_t""no" 1>&6
c7a2bf27 2115 fi
698dcdb6 2116
c7a2bf27 2117
3e44f09d 2118 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
8db37e06 2119echo "configure:2120: checking for --with-regex" >&5
3e44f09d
VZ
2120 no_cache=0
2121 # Check whether --with-regex or --without-regex was given.
2122if test "${with_regex+set}" = set; then
2123 withval="$with_regex"
2124
2125 if test "$withval" = yes; then
2126 ac_cv_use_regex='wxUSE_REGEX=yes'
2127 elif test "$withval" = no; then
2128 ac_cv_use_regex='wxUSE_REGEX=no'
2129 elif test "$withval" = sys; then
2130 ac_cv_use_regex='wxUSE_REGEX=sys'
2131 else
2132 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2133 fi
2134
2135else
2136
2137 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2138 if test "x$LINE" != x ; then
2139 eval "DEFAULT_$LINE"
2140 else
2141 no_cache=1
2142 fi
2143
2144 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2145
2146fi
2147
2148
2149 eval "$ac_cv_use_regex"
2150 if test "$no_cache" != 1; then
2151 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2152 fi
2153
2154 if test "$wxUSE_REGEX" = yes; then
2155 echo "$ac_t""yes" 1>&6
2156 elif test "$wxUSE_REGEX" = no; then
2157 echo "$ac_t""no" 1>&6
2158 elif test "$wxUSE_REGEX" = sys; then
2159 echo "$ac_t""system version" 1>&6
2160 else
2161 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2162 fi
2163
2164
698dcdb6 2165 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
8db37e06 2166echo "configure:2167: checking for --with-zlib" >&5
10f2d63a 2167 no_cache=0
698dcdb6 2168 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2169if test "${with_zlib+set}" = set; then
2170 withval="$with_zlib"
698dcdb6 2171
10f2d63a 2172 if test "$withval" = yes; then
b12915c1 2173 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2174 elif test "$withval" = no; then
b12915c1 2175 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2176 elif test "$withval" = sys; then
2177 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2178 else
698dcdb6 2179 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2180 fi
698dcdb6 2181
10f2d63a 2182else
698dcdb6 2183
b12915c1 2184 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2185 if test "x$LINE" != x ; then
2186 eval "DEFAULT_$LINE"
2187 else
2188 no_cache=1
2189 fi
2190
b12915c1 2191 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2192
2193fi
10f2d63a
VZ
2194
2195
b12915c1 2196 eval "$ac_cv_use_zlib"
10f2d63a 2197 if test "$no_cache" != 1; then
b12915c1 2198 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2199 fi
2200
b12915c1 2201 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2202 echo "$ac_t""yes" 1>&6
422107f9 2203 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2204 echo "$ac_t""no" 1>&6
422107f9 2205 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2206 echo "$ac_t""system version" 1>&6
422107f9 2207 else
698dcdb6 2208 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2209 fi
698dcdb6 2210
10f2d63a 2211
698dcdb6 2212 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
8db37e06 2213echo "configure:2214: checking for --with-odbc" >&5
10f2d63a 2214 no_cache=0
698dcdb6 2215 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2216if test "${with_odbc+set}" = set; then
2217 withval="$with_odbc"
698dcdb6 2218
10f2d63a
VZ
2219 if test "$withval" = yes; then
2220 ac_cv_use_odbc='wxUSE_ODBC=yes'
2221 else
2222 ac_cv_use_odbc='wxUSE_ODBC=no'
2223 fi
698dcdb6 2224
10f2d63a 2225else
698dcdb6 2226
10f2d63a
VZ
2227 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2228 if test "x$LINE" != x ; then
2229 eval "DEFAULT_$LINE"
2230 else
2231 no_cache=1
2232 fi
2233
2234 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2235
2236fi
10f2d63a
VZ
2237
2238
2239 eval "$ac_cv_use_odbc"
2240 if test "$no_cache" != 1; then
2241 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2242 fi
2243
2244 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2245 echo "$ac_t""yes" 1>&6
10f2d63a 2246 else
698dcdb6 2247 echo "$ac_t""no" 1>&6
10f2d63a 2248 fi
698dcdb6
VZ
2249
2250
10f2d63a 2251
698dcdb6
VZ
2252
2253
2254 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
8db37e06 2255echo "configure:2256: checking for --enable-shared" >&5
10f2d63a
VZ
2256 no_cache=0
2257 # Check whether --enable-shared or --disable-shared was given.
2258if test "${enable_shared+set}" = set; then
2259 enableval="$enable_shared"
698dcdb6 2260
10f2d63a
VZ
2261 if test "$enableval" = yes; then
2262 ac_cv_use_shared='wxUSE_SHARED=yes'
2263 else
2264 ac_cv_use_shared='wxUSE_SHARED=no'
2265 fi
698dcdb6 2266
10f2d63a 2267else
698dcdb6 2268
10f2d63a
VZ
2269 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2270 if test "x$LINE" != x ; then
2271 eval "DEFAULT_$LINE"
2272 else
2273 no_cache=1
2274 fi
2275
2276 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2277
2278fi
10f2d63a
VZ
2279
2280
2281 eval "$ac_cv_use_shared"
2282 if test "$no_cache" != 1; then
2283 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2284 fi
2285
2286 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2287 echo "$ac_t""yes" 1>&6
10f2d63a 2288 else
698dcdb6 2289 echo "$ac_t""no" 1>&6
10f2d63a 2290 fi
698dcdb6 2291
10f2d63a 2292
698dcdb6 2293 echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6
8db37e06 2294echo "configure:2295: checking for --enable-burnt_name" >&5
00cf1208
RR
2295 no_cache=0
2296 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2297if test "${enable_burnt_name+set}" = set; then
2298 enableval="$enable_burnt_name"
698dcdb6 2299
00cf1208
RR
2300 if test "$enableval" = yes; then
2301 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2302 else
2303 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2304 fi
698dcdb6 2305
00cf1208 2306else
698dcdb6 2307
00cf1208
RR
2308 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2309 if test "x$LINE" != x ; then
2310 eval "DEFAULT_$LINE"
2311 else
2312 no_cache=1
2313 fi
2314
2315 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
698dcdb6
VZ
2316
2317fi
00cf1208
RR
2318
2319
2320 eval "$ac_cv_use_burnt_name"
2321 if test "$no_cache" != 1; then
2322 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2323 fi
2324
2325 if test "$wxUSE_BURNT_NAME" = yes; then
698dcdb6 2326 echo "$ac_t""yes" 1>&6
00cf1208 2327 else
698dcdb6 2328 echo "$ac_t""no" 1>&6
00cf1208 2329 fi
698dcdb6 2330
00cf1208 2331
698dcdb6 2332 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
8db37e06 2333echo "configure:2334: checking for --enable-optimise" >&5
10f2d63a
VZ
2334 no_cache=0
2335 # Check whether --enable-optimise or --disable-optimise was given.
2336if test "${enable_optimise+set}" = set; then
2337 enableval="$enable_optimise"
698dcdb6 2338
10f2d63a
VZ
2339 if test "$enableval" = yes; then
2340 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2341 else
2342 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2343 fi
698dcdb6 2344
10f2d63a 2345else
698dcdb6 2346
10f2d63a
VZ
2347 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2348 if test "x$LINE" != x ; then
2349 eval "DEFAULT_$LINE"
2350 else
2351 no_cache=1
2352 fi
2353
2354 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2355
2356fi
10f2d63a
VZ
2357
2358
2359 eval "$ac_cv_use_optimise"
2360 if test "$no_cache" != 1; then
2361 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2362 fi
2363
2364 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2365 echo "$ac_t""yes" 1>&6
10f2d63a 2366 else
698dcdb6 2367 echo "$ac_t""no" 1>&6
10f2d63a 2368 fi
698dcdb6 2369
10f2d63a 2370
698dcdb6 2371 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
8db37e06 2372echo "configure:2373: checking for --enable-debug" >&5
10f2d63a
VZ
2373 no_cache=0
2374 # Check whether --enable-debug or --disable-debug was given.
2375if test "${enable_debug+set}" = set; then
2376 enableval="$enable_debug"
698dcdb6 2377
10f2d63a
VZ
2378 if test "$enableval" = yes; then
2379 ac_cv_use_debug='wxUSE_DEBUG=yes'
2380 else
2381 ac_cv_use_debug='wxUSE_DEBUG=no'
2382 fi
698dcdb6 2383
10f2d63a 2384else
698dcdb6 2385
10f2d63a
VZ
2386 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2387 if test "x$LINE" != x ; then
2388 eval "DEFAULT_$LINE"
2389 else
2390 no_cache=1
2391 fi
2392
2393 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2394
2395fi
10f2d63a
VZ
2396
2397
2398 eval "$ac_cv_use_debug"
2399 if test "$no_cache" != 1; then
2400 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2401 fi
2402
2403 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2404 echo "$ac_t""yes" 1>&6
10f2d63a 2405 else
698dcdb6 2406 echo "$ac_t""no" 1>&6
10f2d63a 2407 fi
698dcdb6 2408
10f2d63a
VZ
2409
2410if test "$wxUSE_DEBUG" = "yes"; then
2411 DEFAULT_wxUSE_DEBUG_FLAG=yes
2412 DEFAULT_wxUSE_DEBUG_INFO=yes
2413elif test "$wxUSE_DEBUG" = "no"; then
2414 DEFAULT_wxUSE_DEBUG_FLAG=no
2415 DEFAULT_wxUSE_DEBUG_INFO=no
2416fi
2417
698dcdb6
VZ
2418
2419 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
8db37e06 2420echo "configure:2421: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2421 no_cache=0
2422 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2423if test "${enable_debug_flag+set}" = set; then
2424 enableval="$enable_debug_flag"
698dcdb6 2425
10f2d63a
VZ
2426 if test "$enableval" = yes; then
2427 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2428 else
2429 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2430 fi
698dcdb6 2431
10f2d63a 2432else
698dcdb6 2433
10f2d63a
VZ
2434 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2435 if test "x$LINE" != x ; then
2436 eval "DEFAULT_$LINE"
2437 else
2438 no_cache=1
2439 fi
2440
2441 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2442
2443fi
10f2d63a
VZ
2444
2445
2446 eval "$ac_cv_use_debug_flag"
2447 if test "$no_cache" != 1; then
2448 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2449 fi
2450
2451 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2452 echo "$ac_t""yes" 1>&6
10f2d63a 2453 else
698dcdb6 2454 echo "$ac_t""no" 1>&6
10f2d63a 2455 fi
698dcdb6 2456
10f2d63a 2457
698dcdb6 2458 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
8db37e06 2459echo "configure:2460: checking for --enable-debug_info" >&5
10f2d63a
VZ
2460 no_cache=0
2461 # Check whether --enable-debug_info or --disable-debug_info was given.
2462if test "${enable_debug_info+set}" = set; then
2463 enableval="$enable_debug_info"
698dcdb6 2464
10f2d63a
VZ
2465 if test "$enableval" = yes; then
2466 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2467 else
2468 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2469 fi
698dcdb6 2470
10f2d63a 2471else
698dcdb6 2472
10f2d63a
VZ
2473 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2474 if test "x$LINE" != x ; then
2475 eval "DEFAULT_$LINE"
2476 else
2477 no_cache=1
2478 fi
2479
2480 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2481
2482fi
10f2d63a
VZ
2483
2484
2485 eval "$ac_cv_use_debug_info"
2486 if test "$no_cache" != 1; then
2487 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2488 fi
2489
2490 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2491 echo "$ac_t""yes" 1>&6
10f2d63a 2492 else
698dcdb6 2493 echo "$ac_t""no" 1>&6
10f2d63a 2494 fi
698dcdb6 2495
10f2d63a 2496
698dcdb6 2497 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
8db37e06 2498echo "configure:2499: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2499 no_cache=0
2500 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2501if test "${enable_debug_gdb+set}" = set; then
2502 enableval="$enable_debug_gdb"
698dcdb6 2503
10f2d63a
VZ
2504 if test "$enableval" = yes; then
2505 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2506 else
2507 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2508 fi
698dcdb6 2509
10f2d63a 2510else
698dcdb6 2511
10f2d63a
VZ
2512 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2513 if test "x$LINE" != x ; then
2514 eval "DEFAULT_$LINE"
2515 else
2516 no_cache=1
2517 fi
2518
2519 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2520
2521fi
10f2d63a
VZ
2522
2523
2524 eval "$ac_cv_use_debug_gdb"
2525 if test "$no_cache" != 1; then
2526 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2527 fi
2528
2529 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2530 echo "$ac_t""yes" 1>&6
10f2d63a 2531 else
698dcdb6 2532 echo "$ac_t""no" 1>&6
10f2d63a 2533 fi
698dcdb6 2534
10f2d63a 2535
698dcdb6 2536 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
8db37e06 2537echo "configure:2538: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2538 no_cache=0
2539 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2540if test "${enable_debug_cntxt+set}" = set; then
2541 enableval="$enable_debug_cntxt"
698dcdb6 2542
10f2d63a
VZ
2543 if test "$enableval" = yes; then
2544 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2545 else
2546 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2547 fi
698dcdb6 2548
10f2d63a 2549else
698dcdb6 2550
10f2d63a
VZ
2551 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2552 if test "x$LINE" != x ; then
2553 eval "DEFAULT_$LINE"
2554 else
2555 no_cache=1
2556 fi
2557
2558 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2559
2560fi
10f2d63a
VZ
2561
2562
2563 eval "$ac_cv_use_debug_cntxt"
2564 if test "$no_cache" != 1; then
2565 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2566 fi
2567
2568 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2569 echo "$ac_t""yes" 1>&6
10f2d63a 2570 else
698dcdb6 2571 echo "$ac_t""no" 1>&6
10f2d63a 2572 fi
698dcdb6 2573
10f2d63a 2574
698dcdb6 2575 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
8db37e06 2576echo "configure:2577: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2577 no_cache=0
2578 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2579if test "${enable_mem_tracing+set}" = set; then
2580 enableval="$enable_mem_tracing"
698dcdb6 2581
10f2d63a
VZ
2582 if test "$enableval" = yes; then
2583 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2584 else
2585 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2586 fi
698dcdb6 2587
10f2d63a 2588else
698dcdb6 2589
10f2d63a
VZ
2590 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2591 if test "x$LINE" != x ; then
2592 eval "DEFAULT_$LINE"
2593 else
2594 no_cache=1
2595 fi
2596
2597 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2598
2599fi
10f2d63a
VZ
2600
2601
2602 eval "$ac_cv_use_mem_tracing"
2603 if test "$no_cache" != 1; then
2604 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2605 fi
2606
2607 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2608 echo "$ac_t""yes" 1>&6
10f2d63a 2609 else
698dcdb6 2610 echo "$ac_t""no" 1>&6
10f2d63a 2611 fi
698dcdb6 2612
10f2d63a 2613
698dcdb6 2614 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
8db37e06 2615echo "configure:2616: checking for --enable-profile" >&5
10f2d63a
VZ
2616 no_cache=0
2617 # Check whether --enable-profile or --disable-profile was given.
2618if test "${enable_profile+set}" = set; then
2619 enableval="$enable_profile"
698dcdb6 2620
10f2d63a
VZ
2621 if test "$enableval" = yes; then
2622 ac_cv_use_profile='wxUSE_PROFILE=yes'
2623 else
2624 ac_cv_use_profile='wxUSE_PROFILE=no'
2625 fi
698dcdb6 2626
10f2d63a 2627else
698dcdb6 2628
10f2d63a
VZ
2629 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2630 if test "x$LINE" != x ; then
2631 eval "DEFAULT_$LINE"
2632 else
2633 no_cache=1
2634 fi
2635
2636 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2637
2638fi
10f2d63a
VZ
2639
2640
2641 eval "$ac_cv_use_profile"
2642 if test "$no_cache" != 1; then
2643 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2644 fi
2645
2646 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2647 echo "$ac_t""yes" 1>&6
10f2d63a 2648 else
698dcdb6 2649 echo "$ac_t""no" 1>&6
10f2d63a 2650 fi
698dcdb6 2651
10f2d63a 2652
698dcdb6 2653 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
8db37e06 2654echo "configure:2655: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2655 no_cache=0
2656 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2657if test "${enable_no_rtti+set}" = set; then
2658 enableval="$enable_no_rtti"
698dcdb6 2659
10f2d63a
VZ
2660 if test "$enableval" = yes; then
2661 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2662 else
2663 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2664 fi
698dcdb6 2665
10f2d63a 2666else
698dcdb6 2667
10f2d63a
VZ
2668 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2669 if test "x$LINE" != x ; then
2670 eval "DEFAULT_$LINE"
2671 else
2672 no_cache=1
2673 fi
2674
2675 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2676
2677fi
10f2d63a
VZ
2678
2679
2680 eval "$ac_cv_use_no_rtti"
2681 if test "$no_cache" != 1; then
2682 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2683 fi
2684
2685 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2686 echo "$ac_t""yes" 1>&6
10f2d63a 2687 else
698dcdb6 2688 echo "$ac_t""no" 1>&6
10f2d63a 2689 fi
698dcdb6 2690
10f2d63a 2691
698dcdb6 2692 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
8db37e06 2693echo "configure:2694: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2694 no_cache=0
2695 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2696if test "${enable_no_exceptions+set}" = set; then
2697 enableval="$enable_no_exceptions"
698dcdb6 2698
10f2d63a
VZ
2699 if test "$enableval" = yes; then
2700 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2701 else
2702 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2703 fi
698dcdb6 2704
10f2d63a 2705else
698dcdb6 2706
10f2d63a
VZ
2707 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2708 if test "x$LINE" != x ; then
2709 eval "DEFAULT_$LINE"
2710 else
2711 no_cache=1
2712 fi
2713
2714 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2715
2716fi
10f2d63a
VZ
2717
2718
2719 eval "$ac_cv_use_no_exceptions"
2720 if test "$no_cache" != 1; then
2721 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2722 fi
2723
2724 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2725 echo "$ac_t""yes" 1>&6
10f2d63a 2726 else
698dcdb6 2727 echo "$ac_t""no" 1>&6
10f2d63a 2728 fi
698dcdb6 2729
10f2d63a 2730
698dcdb6 2731 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
8db37e06 2732echo "configure:2733: checking for --enable-permissive" >&5
10f2d63a
VZ
2733 no_cache=0
2734 # Check whether --enable-permissive or --disable-permissive was given.
2735if test "${enable_permissive+set}" = set; then
2736 enableval="$enable_permissive"
698dcdb6 2737
10f2d63a
VZ
2738 if test "$enableval" = yes; then
2739 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2740 else
2741 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2742 fi
698dcdb6 2743
10f2d63a 2744else
698dcdb6 2745
10f2d63a
VZ
2746 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2747 if test "x$LINE" != x ; then
2748 eval "DEFAULT_$LINE"
2749 else
2750 no_cache=1
2751 fi
2752
2753 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2754
2755fi
10f2d63a
VZ
2756
2757
2758 eval "$ac_cv_use_permissive"
2759 if test "$no_cache" != 1; then
2760 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2761 fi
2762
2763 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2764 echo "$ac_t""yes" 1>&6
10f2d63a 2765 else
698dcdb6 2766 echo "$ac_t""no" 1>&6
10f2d63a 2767 fi
698dcdb6 2768
10f2d63a 2769
698dcdb6 2770 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
8db37e06 2771echo "configure:2772: checking for --enable-no_deps" >&5
10f2d63a
VZ
2772 no_cache=0
2773 # Check whether --enable-no_deps or --disable-no_deps was given.
2774if test "${enable_no_deps+set}" = set; then
2775 enableval="$enable_no_deps"
698dcdb6 2776
10f2d63a
VZ
2777 if test "$enableval" = yes; then
2778 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2779 else
2780 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2781 fi
698dcdb6 2782
10f2d63a 2783else
698dcdb6 2784
10f2d63a
VZ
2785 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2786 if test "x$LINE" != x ; then
2787 eval "DEFAULT_$LINE"
2788 else
2789 no_cache=1
2790 fi
2791
2792 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2793
2794fi
10f2d63a
VZ
2795
2796
2797 eval "$ac_cv_use_no_deps"
2798 if test "$no_cache" != 1; then
2799 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2800 fi
2801
2802 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2803 echo "$ac_t""yes" 1>&6
10f2d63a 2804 else
698dcdb6 2805 echo "$ac_t""no" 1>&6
10f2d63a 2806 fi
698dcdb6
VZ
2807
2808
10f2d63a 2809
54276ccf 2810 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
8db37e06 2811echo "configure:2812: checking for --enable-compat20" >&5
54276ccf
VZ
2812 no_cache=0
2813 # Check whether --enable-compat20 or --disable-compat20 was given.
2814if test "${enable_compat20+set}" = set; then
2815 enableval="$enable_compat20"
2816
2817 if test "$enableval" = yes; then
2818 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2819 else
2820 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2821 fi
2822
2823else
2824
2825 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2826 if test "x$LINE" != x ; then
2827 eval "DEFAULT_$LINE"
2828 else
2829 no_cache=1
2830 fi
2831
2832 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2833
2834fi
2835
2836
2837 eval "$ac_cv_use_compat20"
2838 if test "$no_cache" != 1; then
2839 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2840 fi
2841
2842 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2843 echo "$ac_t""yes" 1>&6
2844 else
2845 echo "$ac_t""no" 1>&6
2846 fi
2847
2848
2849 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
8db37e06 2850echo "configure:2851: checking for --enable-compat22" >&5
54276ccf
VZ
2851 no_cache=0
2852 # Check whether --enable-compat22 or --disable-compat22 was given.
2853if test "${enable_compat22+set}" = set; then
2854 enableval="$enable_compat22"
2855
2856 if test "$enableval" = yes; then
2857 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2858 else
2859 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2860 fi
2861
2862else
2863
2864 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2865 if test "x$LINE" != x ; then
2866 eval "DEFAULT_$LINE"
2867 else
2868 no_cache=1
2869 fi
2870
2871 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2872
2873fi
2874
2875
2876 eval "$ac_cv_use_compat22"
2877 if test "$no_cache" != 1; then
2878 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2879 fi
2880
2881 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2882 echo "$ac_t""yes" 1>&6
2883 else
2884 echo "$ac_t""no" 1>&6
2885 fi
2886
2887
2888
698dcdb6
VZ
2889
2890 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
8db37e06 2891echo "configure:2892: checking for --enable-intl" >&5
10f2d63a
VZ
2892 no_cache=0
2893 # Check whether --enable-intl or --disable-intl was given.
2894if test "${enable_intl+set}" = set; then
2895 enableval="$enable_intl"
698dcdb6 2896
10f2d63a
VZ
2897 if test "$enableval" = yes; then
2898 ac_cv_use_intl='wxUSE_INTL=yes'
2899 else
2900 ac_cv_use_intl='wxUSE_INTL=no'
2901 fi
698dcdb6 2902
10f2d63a 2903else
698dcdb6 2904
10f2d63a
VZ
2905 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2906 if test "x$LINE" != x ; then
2907 eval "DEFAULT_$LINE"
2908 else
2909 no_cache=1
2910 fi
2911
2912 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
2913
2914fi
10f2d63a
VZ
2915
2916
2917 eval "$ac_cv_use_intl"
2918 if test "$no_cache" != 1; then
2919 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2920 fi
2921
2922 if test "$wxUSE_INTL" = yes; then
698dcdb6 2923 echo "$ac_t""yes" 1>&6
10f2d63a 2924 else
698dcdb6 2925 echo "$ac_t""no" 1>&6
10f2d63a 2926 fi
698dcdb6 2927
10f2d63a 2928
698dcdb6 2929 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
8db37e06 2930echo "configure:2931: checking for --enable-config" >&5
10f2d63a
VZ
2931 no_cache=0
2932 # Check whether --enable-config or --disable-config was given.
2933if test "${enable_config+set}" = set; then
2934 enableval="$enable_config"
698dcdb6 2935
10f2d63a
VZ
2936 if test "$enableval" = yes; then
2937 ac_cv_use_config='wxUSE_CONFIG=yes'
2938 else
2939 ac_cv_use_config='wxUSE_CONFIG=no'
2940 fi
698dcdb6 2941
10f2d63a 2942else
698dcdb6 2943
10f2d63a
VZ
2944 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2945 if test "x$LINE" != x ; then
2946 eval "DEFAULT_$LINE"
2947 else
2948 no_cache=1
2949 fi
2950
2951 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
2952
2953fi
10f2d63a
VZ
2954
2955
2956 eval "$ac_cv_use_config"
2957 if test "$no_cache" != 1; then
2958 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2959 fi
2960
2961 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 2962 echo "$ac_t""yes" 1>&6
10f2d63a 2963 else
698dcdb6 2964 echo "$ac_t""no" 1>&6
10f2d63a 2965 fi
698dcdb6
VZ
2966
2967
b12915c1 2968
698dcdb6 2969 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
8db37e06 2970echo "configure:2971: checking for --enable-sockets" >&5
10f2d63a
VZ
2971 no_cache=0
2972 # Check whether --enable-sockets or --disable-sockets was given.
2973if test "${enable_sockets+set}" = set; then
2974 enableval="$enable_sockets"
698dcdb6 2975
10f2d63a
VZ
2976 if test "$enableval" = yes; then
2977 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2978 else
2979 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2980 fi
698dcdb6 2981
10f2d63a 2982else
698dcdb6 2983
10f2d63a
VZ
2984 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2985 if test "x$LINE" != x ; then
2986 eval "DEFAULT_$LINE"
2987 else
2988 no_cache=1
2989 fi
2990
2991 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
2992
2993fi
10f2d63a
VZ
2994
2995
2996 eval "$ac_cv_use_sockets"
2997 if test "$no_cache" != 1; then
2998 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2999 fi
3000
3001 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 3002 echo "$ac_t""yes" 1>&6
10f2d63a 3003 else
698dcdb6 3004 echo "$ac_t""no" 1>&6
10f2d63a 3005 fi
698dcdb6 3006
b12915c1 3007
698dcdb6
VZ
3008
3009 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
8db37e06 3010echo "configure:3011: checking for --enable-ipc" >&5
10f2d63a 3011 no_cache=0
eb4efbdc
VZ
3012 # Check whether --enable-ipc or --disable-ipc was given.
3013if test "${enable_ipc+set}" = set; then
3014 enableval="$enable_ipc"
698dcdb6 3015
10f2d63a 3016 if test "$enableval" = yes; then
eb4efbdc 3017 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3018 else
eb4efbdc 3019 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3020 fi
698dcdb6 3021
10f2d63a 3022else
698dcdb6 3023
eb4efbdc 3024 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3025 if test "x$LINE" != x ; then
3026 eval "DEFAULT_$LINE"
3027 else
3028 no_cache=1
3029 fi
3030
eb4efbdc 3031 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3032
3033fi
10f2d63a
VZ
3034
3035
eb4efbdc 3036 eval "$ac_cv_use_ipc"
10f2d63a 3037 if test "$no_cache" != 1; then
eb4efbdc 3038 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3039 fi
3040
eb4efbdc 3041 if test "$wxUSE_IPC" = yes; then
698dcdb6 3042 echo "$ac_t""yes" 1>&6
10f2d63a 3043 else
698dcdb6 3044 echo "$ac_t""no" 1>&6
10f2d63a 3045 fi
698dcdb6
VZ
3046
3047
eb4efbdc 3048
1e6feb95 3049 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
8db37e06 3050echo "configure:3051: checking for --enable-cmdline" >&5
1e6feb95
VZ
3051 no_cache=0
3052 # Check whether --enable-cmdline or --disable-cmdline was given.
3053if test "${enable_cmdline+set}" = set; then
3054 enableval="$enable_cmdline"
3055
3056 if test "$enableval" = yes; then
3057 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3058 else
3059 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3060 fi
3061
3062else
3063
3064 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3065 if test "x$LINE" != x ; then
3066 eval "DEFAULT_$LINE"
3067 else
3068 no_cache=1
3069 fi
3070
3071 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3072
3073fi
3074
3075
3076 eval "$ac_cv_use_cmdline"
3077 if test "$no_cache" != 1; then
3078 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3079 fi
3080
3081 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3082 echo "$ac_t""yes" 1>&6
3083 else
3084 echo "$ac_t""no" 1>&6
3085 fi
3086
3087
3088 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
8db37e06 3089echo "configure:3090: checking for --enable-datetime" >&5
1e6feb95
VZ
3090 no_cache=0
3091 # Check whether --enable-datetime or --disable-datetime was given.
3092if test "${enable_datetime+set}" = set; then
3093 enableval="$enable_datetime"
3094
3095 if test "$enableval" = yes; then
3096 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3097 else
3098 ac_cv_use_datetime='wxUSE_DATETIME=no'
3099 fi
3100
3101else
3102
3103 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3104 if test "x$LINE" != x ; then
3105 eval "DEFAULT_$LINE"
3106 else
3107 no_cache=1
3108 fi
3109
3110 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3111
3112fi
3113
3114
3115 eval "$ac_cv_use_datetime"
3116 if test "$no_cache" != 1; then
3117 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3118 fi
3119
3120 if test "$wxUSE_DATETIME" = yes; then
3121 echo "$ac_t""yes" 1>&6
3122 else
3123 echo "$ac_t""no" 1>&6
3124 fi
3125
3126
3127 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
8db37e06 3128echo "configure:3129: checking for --enable-timedate" >&5
1e6feb95
VZ
3129 no_cache=0
3130 # Check whether --enable-timedate or --disable-timedate was given.
3131if test "${enable_timedate+set}" = set; then
3132 enableval="$enable_timedate"
3133
3134 if test "$enableval" = yes; then
3135 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3136 else
3137 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3138 fi
3139
3140else
3141
3142 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3143 if test "x$LINE" != x ; then
3144 eval "DEFAULT_$LINE"
3145 else
3146 no_cache=1
3147 fi
3148
3149 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3150
3151fi
3152
3153
3154 eval "$ac_cv_use_timedate"
3155 if test "$no_cache" != 1; then
3156 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3157 fi
3158
3159 if test "$wxUSE_TIMEDATE" = yes; then
3160 echo "$ac_t""yes" 1>&6
3161 else
3162 echo "$ac_t""no" 1>&6
3163 fi
3164
3165
3166 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
8db37e06 3167echo "configure:3168: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3168 no_cache=0
3169 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3170if test "${enable_stopwatch+set}" = set; then
3171 enableval="$enable_stopwatch"
3172
3173 if test "$enableval" = yes; then
3174 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3175 else
3176 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3177 fi
3178
3179else
3180
3181 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3182 if test "x$LINE" != x ; then
3183 eval "DEFAULT_$LINE"
3184 else
3185 no_cache=1
3186 fi
3187
3188 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3189
3190fi
3191
3192
3193 eval "$ac_cv_use_stopwatch"
3194 if test "$no_cache" != 1; then
3195 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3196 fi
3197
3198 if test "$wxUSE_STOPWATCH" = yes; then
3199 echo "$ac_t""yes" 1>&6
3200 else
3201 echo "$ac_t""no" 1>&6
3202 fi
3203
3204
698dcdb6 3205 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
8db37e06 3206echo "configure:3207: checking for --enable-dialupman" >&5
10f2d63a 3207 no_cache=0
eb4efbdc
VZ
3208 # Check whether --enable-dialupman or --disable-dialupman was given.
3209if test "${enable_dialupman+set}" = set; then
3210 enableval="$enable_dialupman"
698dcdb6 3211
10f2d63a 3212 if test "$enableval" = yes; then
eb4efbdc 3213 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3214 else
eb4efbdc 3215 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3216 fi
698dcdb6 3217
10f2d63a 3218else
698dcdb6 3219
eb4efbdc 3220 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3221 if test "x$LINE" != x ; then
3222 eval "DEFAULT_$LINE"
3223 else
3224 no_cache=1
3225 fi
3226
eb4efbdc 3227 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3228
3229fi
10f2d63a
VZ
3230
3231
eb4efbdc 3232 eval "$ac_cv_use_dialupman"
10f2d63a 3233 if test "$no_cache" != 1; then
eb4efbdc 3234 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3235 fi
3236
eb4efbdc 3237 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3238 echo "$ac_t""yes" 1>&6
10f2d63a 3239 else
698dcdb6 3240 echo "$ac_t""no" 1>&6
10f2d63a 3241 fi
698dcdb6 3242
10f2d63a 3243
698dcdb6 3244 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
8db37e06 3245echo "configure:3246: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3246 no_cache=0
3247 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3248if test "${enable_apple_ieee+set}" = set; then
3249 enableval="$enable_apple_ieee"
698dcdb6 3250
10f2d63a
VZ
3251 if test "$enableval" = yes; then
3252 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3253 else
3254 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3255 fi
698dcdb6 3256
10f2d63a 3257else
698dcdb6 3258
10f2d63a
VZ
3259 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3260 if test "x$LINE" != x ; then
3261 eval "DEFAULT_$LINE"
3262 else
3263 no_cache=1
3264 fi
3265
3266 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3267
3268fi
10f2d63a
VZ
3269
3270
3271 eval "$ac_cv_use_apple_ieee"
3272 if test "$no_cache" != 1; then
3273 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3274 fi
3275
3276 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3277 echo "$ac_t""yes" 1>&6
10f2d63a 3278 else
698dcdb6 3279 echo "$ac_t""no" 1>&6
10f2d63a 3280 fi
698dcdb6 3281
10f2d63a 3282
1e6feb95 3283 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
8db37e06 3284echo "configure:3285: checking for --enable-timer" >&5
10f2d63a 3285 no_cache=0
1e6feb95
VZ
3286 # Check whether --enable-timer or --disable-timer was given.
3287if test "${enable_timer+set}" = set; then
3288 enableval="$enable_timer"
698dcdb6 3289
10f2d63a 3290 if test "$enableval" = yes; then
1e6feb95 3291 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3292 else
1e6feb95 3293 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3294 fi
698dcdb6 3295
10f2d63a 3296else
698dcdb6 3297
1e6feb95 3298 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3299 if test "x$LINE" != x ; then
3300 eval "DEFAULT_$LINE"
3301 else
3302 no_cache=1
3303 fi
3304
1e6feb95 3305 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3306
3307fi
10f2d63a
VZ
3308
3309
1e6feb95 3310 eval "$ac_cv_use_timer"
10f2d63a 3311 if test "$no_cache" != 1; then
1e6feb95 3312 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3313 fi
3314
1e6feb95 3315 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3316 echo "$ac_t""yes" 1>&6
10f2d63a 3317 else
698dcdb6 3318 echo "$ac_t""no" 1>&6
10f2d63a 3319 fi
698dcdb6 3320
10f2d63a 3321
698dcdb6 3322 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
8db37e06 3323echo "configure:3324: checking for --enable-wave" >&5
10f2d63a
VZ
3324 no_cache=0
3325 # Check whether --enable-wave or --disable-wave was given.
3326if test "${enable_wave+set}" = set; then
3327 enableval="$enable_wave"
698dcdb6 3328
10f2d63a
VZ
3329 if test "$enableval" = yes; then
3330 ac_cv_use_wave='wxUSE_WAVE=yes'
3331 else
3332 ac_cv_use_wave='wxUSE_WAVE=no'
3333 fi
698dcdb6 3334
10f2d63a 3335else
698dcdb6 3336
10f2d63a
VZ
3337 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3338 if test "x$LINE" != x ; then
3339 eval "DEFAULT_$LINE"
3340 else
3341 no_cache=1
3342 fi
3343
3344 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3345
3346fi
10f2d63a
VZ
3347
3348
3349 eval "$ac_cv_use_wave"
3350 if test "$no_cache" != 1; then
3351 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3352 fi
3353
3354 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3355 echo "$ac_t""yes" 1>&6
10f2d63a 3356 else
698dcdb6 3357 echo "$ac_t""no" 1>&6
10f2d63a 3358 fi
698dcdb6 3359
10f2d63a 3360
698dcdb6 3361 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
8db37e06 3362echo "configure:3363: checking for --enable-fraction" >&5
10f2d63a
VZ
3363 no_cache=0
3364 # Check whether --enable-fraction or --disable-fraction was given.
3365if test "${enable_fraction+set}" = set; then
3366 enableval="$enable_fraction"
698dcdb6 3367
10f2d63a
VZ
3368 if test "$enableval" = yes; then
3369 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3370 else
3371 ac_cv_use_fraction='wxUSE_FRACTION=no'
3372 fi
698dcdb6 3373
10f2d63a 3374else
698dcdb6 3375
10f2d63a
VZ
3376 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3377 if test "x$LINE" != x ; then
3378 eval "DEFAULT_$LINE"
3379 else
3380 no_cache=1
3381 fi
3382
3383 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3384
3385fi
10f2d63a
VZ
3386
3387
3388 eval "$ac_cv_use_fraction"
3389 if test "$no_cache" != 1; then
3390 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3391 fi
3392
3393 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3394 echo "$ac_t""yes" 1>&6
10f2d63a 3395 else
698dcdb6 3396 echo "$ac_t""no" 1>&6
10f2d63a 3397 fi
698dcdb6 3398
10f2d63a 3399
698dcdb6 3400 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
8db37e06 3401echo "configure:3402: checking for --enable-dynlib" >&5
10f2d63a
VZ
3402 no_cache=0
3403 # Check whether --enable-dynlib or --disable-dynlib was given.
3404if test "${enable_dynlib+set}" = set; then
3405 enableval="$enable_dynlib"
698dcdb6 3406
10f2d63a
VZ
3407 if test "$enableval" = yes; then
3408 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3409 else
3410 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3411 fi
698dcdb6 3412
10f2d63a 3413else
698dcdb6 3414
10f2d63a
VZ
3415 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3416 if test "x$LINE" != x ; then
3417 eval "DEFAULT_$LINE"
3418 else
3419 no_cache=1
3420 fi
3421
3422 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3423
3424fi
10f2d63a
VZ
3425
3426
3427 eval "$ac_cv_use_dynlib"
3428 if test "$no_cache" != 1; then
3429 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3430 fi
3431
3432 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3433 echo "$ac_t""yes" 1>&6
10f2d63a 3434 else
698dcdb6 3435 echo "$ac_t""no" 1>&6
10f2d63a 3436 fi
698dcdb6 3437
10f2d63a 3438
698dcdb6 3439 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
8db37e06 3440echo "configure:3441: checking for --enable-longlong" >&5
10f2d63a
VZ
3441 no_cache=0
3442 # Check whether --enable-longlong or --disable-longlong was given.
3443if test "${enable_longlong+set}" = set; then
3444 enableval="$enable_longlong"
698dcdb6 3445
10f2d63a
VZ
3446 if test "$enableval" = yes; then
3447 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3448 else
3449 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3450 fi
698dcdb6 3451
10f2d63a 3452else
698dcdb6 3453
10f2d63a
VZ
3454 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3455 if test "x$LINE" != x ; then
3456 eval "DEFAULT_$LINE"
3457 else
3458 no_cache=1
3459 fi
3460
3461 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3462
3463fi
10f2d63a
VZ
3464
3465
3466 eval "$ac_cv_use_longlong"
3467 if test "$no_cache" != 1; then
3468 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3469 fi
3470
3471 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3472 echo "$ac_t""yes" 1>&6
10f2d63a 3473 else
698dcdb6 3474 echo "$ac_t""no" 1>&6
10f2d63a 3475 fi
698dcdb6 3476
10f2d63a 3477
698dcdb6 3478 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
8db37e06 3479echo "configure:3480: checking for --enable-geometry" >&5
e8f65ba6
RR
3480 no_cache=0
3481 # Check whether --enable-geometry or --disable-geometry was given.
3482if test "${enable_geometry+set}" = set; then
3483 enableval="$enable_geometry"
698dcdb6 3484
e8f65ba6
RR
3485 if test "$enableval" = yes; then
3486 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3487 else
3488 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3489 fi
698dcdb6 3490
e8f65ba6 3491else
698dcdb6 3492
e8f65ba6
RR
3493 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3494 if test "x$LINE" != x ; then
3495 eval "DEFAULT_$LINE"
3496 else
3497 no_cache=1
3498 fi
3499
3500 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3501
3502fi
e8f65ba6
RR
3503
3504
3505 eval "$ac_cv_use_geometry"
3506 if test "$no_cache" != 1; then
3507 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3508 fi
3509
3510 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3511 echo "$ac_t""yes" 1>&6
e8f65ba6 3512 else
698dcdb6 3513 echo "$ac_t""no" 1>&6
e8f65ba6 3514 fi
698dcdb6 3515
e8f65ba6 3516
698dcdb6 3517 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
8db37e06 3518echo "configure:3519: checking for --enable-log" >&5
10f2d63a
VZ
3519 no_cache=0
3520 # Check whether --enable-log or --disable-log was given.
3521if test "${enable_log+set}" = set; then
3522 enableval="$enable_log"
698dcdb6 3523
10f2d63a
VZ
3524 if test "$enableval" = yes; then
3525 ac_cv_use_log='wxUSE_LOG=yes'
3526 else
3527 ac_cv_use_log='wxUSE_LOG=no'
3528 fi
698dcdb6 3529
10f2d63a 3530else
698dcdb6 3531
10f2d63a
VZ
3532 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3533 if test "x$LINE" != x ; then
3534 eval "DEFAULT_$LINE"
3535 else
3536 no_cache=1
3537 fi
3538
3539 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3540
3541fi
10f2d63a
VZ
3542
3543
3544 eval "$ac_cv_use_log"
3545 if test "$no_cache" != 1; then
3546 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3547 fi
3548
3549 if test "$wxUSE_LOG" = yes; then
698dcdb6 3550 echo "$ac_t""yes" 1>&6
10f2d63a 3551 else
698dcdb6 3552 echo "$ac_t""no" 1>&6
10f2d63a 3553 fi
698dcdb6 3554
10f2d63a 3555
698dcdb6 3556 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
8db37e06 3557echo "configure:3558: checking for --enable-streams" >&5
10f2d63a
VZ
3558 no_cache=0
3559 # Check whether --enable-streams or --disable-streams was given.
3560if test "${enable_streams+set}" = set; then
3561 enableval="$enable_streams"
698dcdb6 3562
10f2d63a
VZ
3563 if test "$enableval" = yes; then
3564 ac_cv_use_streams='wxUSE_STREAMS=yes'
3565 else
3566 ac_cv_use_streams='wxUSE_STREAMS=no'
3567 fi
698dcdb6 3568
10f2d63a 3569else
698dcdb6 3570
10f2d63a
VZ
3571 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3572 if test "x$LINE" != x ; then
3573 eval "DEFAULT_$LINE"
3574 else
3575 no_cache=1
3576 fi
3577
3578 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3579
3580fi
10f2d63a
VZ
3581
3582
3583 eval "$ac_cv_use_streams"
3584 if test "$no_cache" != 1; then
3585 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3586 fi
3587
3588 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3589 echo "$ac_t""yes" 1>&6
10f2d63a 3590 else
698dcdb6 3591 echo "$ac_t""no" 1>&6
10f2d63a 3592 fi
698dcdb6 3593
10f2d63a 3594
698dcdb6 3595 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
8db37e06 3596echo "configure:3597: checking for --enable-file" >&5
10f2d63a
VZ
3597 no_cache=0
3598 # Check whether --enable-file or --disable-file was given.
3599if test "${enable_file+set}" = set; then
3600 enableval="$enable_file"
698dcdb6 3601
10f2d63a
VZ
3602 if test "$enableval" = yes; then
3603 ac_cv_use_file='wxUSE_FILE=yes'
3604 else
3605 ac_cv_use_file='wxUSE_FILE=no'
3606 fi
698dcdb6 3607
10f2d63a 3608else
698dcdb6 3609
10f2d63a
VZ
3610 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3611 if test "x$LINE" != x ; then
3612 eval "DEFAULT_$LINE"
3613 else
3614 no_cache=1
3615 fi
3616
3617 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3618
3619fi
10f2d63a
VZ
3620
3621
3622 eval "$ac_cv_use_file"
3623 if test "$no_cache" != 1; then
3624 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3625 fi
3626
3627 if test "$wxUSE_FILE" = yes; then
698dcdb6 3628 echo "$ac_t""yes" 1>&6
10f2d63a 3629 else
698dcdb6 3630 echo "$ac_t""no" 1>&6
10f2d63a 3631 fi
698dcdb6 3632
10f2d63a 3633
1e6feb95 3634 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
8db37e06 3635echo "configure:3636: checking for --enable-ffile" >&5
10f2d63a 3636 no_cache=0
1e6feb95
VZ
3637 # Check whether --enable-ffile or --disable-ffile was given.
3638if test "${enable_ffile+set}" = set; then
3639 enableval="$enable_ffile"
698dcdb6 3640
10f2d63a 3641 if test "$enableval" = yes; then
1e6feb95 3642 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3643 else
1e6feb95 3644 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3645 fi
698dcdb6 3646
10f2d63a 3647else
698dcdb6 3648
1e6feb95 3649 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3650 if test "x$LINE" != x ; then
3651 eval "DEFAULT_$LINE"
3652 else
3653 no_cache=1
3654 fi
3655
1e6feb95 3656 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3657
3658fi
10f2d63a
VZ
3659
3660
1e6feb95 3661 eval "$ac_cv_use_ffile"
10f2d63a 3662 if test "$no_cache" != 1; then
1e6feb95 3663 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3664 fi
3665
1e6feb95 3666 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3667 echo "$ac_t""yes" 1>&6
10f2d63a 3668 else
698dcdb6 3669 echo "$ac_t""no" 1>&6
10f2d63a 3670 fi
698dcdb6 3671
10f2d63a 3672
1e6feb95 3673 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
8db37e06 3674echo "configure:3675: checking for --enable-textfile" >&5
10f2d63a 3675 no_cache=0
1e6feb95
VZ
3676 # Check whether --enable-textfile or --disable-textfile was given.
3677if test "${enable_textfile+set}" = set; then
3678 enableval="$enable_textfile"
698dcdb6 3679
10f2d63a 3680 if test "$enableval" = yes; then
1e6feb95 3681 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 3682 else
1e6feb95 3683 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 3684 fi
698dcdb6 3685
10f2d63a 3686else
698dcdb6 3687
1e6feb95 3688 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3689 if test "x$LINE" != x ; then
3690 eval "DEFAULT_$LINE"
3691 else
3692 no_cache=1
3693 fi
3694
1e6feb95 3695 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
3696
3697fi
10f2d63a
VZ
3698
3699
1e6feb95 3700 eval "$ac_cv_use_textfile"
10f2d63a 3701 if test "$no_cache" != 1; then
1e6feb95 3702 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3703 fi
3704
1e6feb95 3705 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 3706 echo "$ac_t""yes" 1>&6
10f2d63a 3707 else
698dcdb6 3708 echo "$ac_t""no" 1>&6
10f2d63a 3709 fi
698dcdb6 3710
10f2d63a 3711
1e6feb95 3712 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
8db37e06 3713echo "configure:3714: checking for --enable-fontmap" >&5
10f2d63a 3714 no_cache=0
1e6feb95
VZ
3715 # Check whether --enable-fontmap or --disable-fontmap was given.
3716if test "${enable_fontmap+set}" = set; then
3717 enableval="$enable_fontmap"
698dcdb6 3718
10f2d63a 3719 if test "$enableval" = yes; then
1e6feb95 3720 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 3721 else
1e6feb95 3722 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 3723 fi
698dcdb6 3724
10f2d63a 3725else
698dcdb6 3726
1e6feb95 3727 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
3728 if test "x$LINE" != x ; then
3729 eval "DEFAULT_$LINE"
3730 else
3731 no_cache=1
3732 fi
3733
1e6feb95 3734 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
3735
3736fi
10f2d63a
VZ
3737
3738
1e6feb95 3739 eval "$ac_cv_use_fontmap"
10f2d63a 3740 if test "$no_cache" != 1; then
1e6feb95 3741 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3742 fi
3743
1e6feb95 3744 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 3745 echo "$ac_t""yes" 1>&6
10f2d63a 3746 else
698dcdb6 3747 echo "$ac_t""no" 1>&6
10f2d63a 3748 fi
698dcdb6 3749
10f2d63a 3750
1e6feb95 3751 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
8db37e06 3752echo "configure:3753: checking for --enable-unicode" >&5
10f2d63a 3753 no_cache=0
1e6feb95
VZ
3754 # Check whether --enable-unicode or --disable-unicode was given.
3755if test "${enable_unicode+set}" = set; then
3756 enableval="$enable_unicode"
3757
3758 if test "$enableval" = yes; then
3759 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3760 else
3761 ac_cv_use_unicode='wxUSE_UNICODE=no'
3762 fi
3763
3764else
3765
3766 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3767 if test "x$LINE" != x ; then
3768 eval "DEFAULT_$LINE"
3769 else
3770 no_cache=1
3771 fi
3772
3773 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3774
3775fi
3776
3777
3778 eval "$ac_cv_use_unicode"
3779 if test "$no_cache" != 1; then
3780 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3781 fi
3782
3783 if test "$wxUSE_UNICODE" = yes; then
3784 echo "$ac_t""yes" 1>&6
3785 else
3786 echo "$ac_t""no" 1>&6
3787 fi
3788
3789
3790 echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6
8db37e06 3791echo "configure:3792: checking for --enable-wcsrtombs" >&5
1e6feb95
VZ
3792 no_cache=0
3793 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3794if test "${enable_wcsrtombs+set}" = set; then
3795 enableval="$enable_wcsrtombs"
3796
3797 if test "$enableval" = yes; then
3798 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3799 else
3800 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3801 fi
3802
3803else
3804
3805 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3806 if test "x$LINE" != x ; then
3807 eval "DEFAULT_$LINE"
3808 else
3809 no_cache=1
3810 fi
3811
3812 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3813
3814fi
3815
3816
3817 eval "$ac_cv_use_wcsrtombs"
3818 if test "$no_cache" != 1; then
3819 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3820 fi
3821
3822 if test "$wxUSE_WCSRTOMBS" = yes; then
3823 echo "$ac_t""yes" 1>&6
3824 else
3825 echo "$ac_t""no" 1>&6
3826 fi
3827
3828
3829 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
8db37e06 3830echo "configure:3831: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
3831 no_cache=0
3832 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3833if test "${enable_wxprintfv+set}" = set; then
3834 enableval="$enable_wxprintfv"
3835
3836 if test "$enableval" = yes; then
10f2d63a
VZ
3837 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3838 else
3839 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3840 fi
698dcdb6 3841
10f2d63a 3842else
698dcdb6 3843
10f2d63a
VZ
3844 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3845 if test "x$LINE" != x ; then
3846 eval "DEFAULT_$LINE"
3847 else
3848 no_cache=1
3849 fi
3850
3851 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
3852
3853fi
10f2d63a
VZ
3854
3855
3856 eval "$ac_cv_use_wxprintfv"
3857 if test "$no_cache" != 1; then
3858 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3859 fi
3860
3861 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 3862 echo "$ac_t""yes" 1>&6
10f2d63a 3863 else
698dcdb6 3864 echo "$ac_t""no" 1>&6
10f2d63a 3865 fi
698dcdb6 3866
10f2d63a 3867
698dcdb6 3868 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
8db37e06 3869echo "configure:3870: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
3870 no_cache=0
3871 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3872if test "${enable_std_iostreams+set}" = set; then
3873 enableval="$enable_std_iostreams"
698dcdb6 3874
10f2d63a
VZ
3875 if test "$enableval" = yes; then
3876 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3877 else
3878 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3879 fi
698dcdb6 3880
10f2d63a 3881else
698dcdb6 3882
10f2d63a
VZ
3883 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3884 if test "x$LINE" != x ; then
3885 eval "DEFAULT_$LINE"
3886 else
3887 no_cache=1
3888 fi
3889
3890 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
3891
3892fi
10f2d63a
VZ
3893
3894
3895 eval "$ac_cv_use_std_iostreams"
3896 if test "$no_cache" != 1; then
3897 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3898 fi
3899
3900 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 3901 echo "$ac_t""yes" 1>&6
10f2d63a 3902 else
698dcdb6 3903 echo "$ac_t""no" 1>&6
10f2d63a 3904 fi
698dcdb6 3905
10f2d63a 3906
698dcdb6 3907 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
8db37e06 3908echo "configure:3909: checking for --enable-filesystem" >&5
24528b0c
VS
3909 no_cache=0
3910 # Check whether --enable-filesystem or --disable-filesystem was given.
3911if test "${enable_filesystem+set}" = set; then
3912 enableval="$enable_filesystem"
698dcdb6 3913
24528b0c
VS
3914 if test "$enableval" = yes; then
3915 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3916 else
3917 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3918 fi
698dcdb6 3919
24528b0c 3920else
698dcdb6 3921
24528b0c
VS
3922 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3923 if test "x$LINE" != x ; then
3924 eval "DEFAULT_$LINE"
3925 else
3926 no_cache=1
3927 fi
3928
3929 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
3930
3931fi
24528b0c
VS
3932
3933
3934 eval "$ac_cv_use_filesystem"
3935 if test "$no_cache" != 1; then
3936 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3937 fi
3938
3939 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 3940 echo "$ac_t""yes" 1>&6
24528b0c 3941 else
698dcdb6 3942 echo "$ac_t""no" 1>&6
24528b0c 3943 fi
698dcdb6 3944
24528b0c 3945
698dcdb6 3946 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
8db37e06 3947echo "configure:3948: checking for --enable-fs_inet" >&5
10f2d63a
VZ
3948 no_cache=0
3949 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3950if test "${enable_fs_inet+set}" = set; then
3951 enableval="$enable_fs_inet"
698dcdb6 3952
10f2d63a
VZ
3953 if test "$enableval" = yes; then
3954 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3955 else
3956 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3957 fi
698dcdb6 3958
10f2d63a 3959else
698dcdb6 3960
10f2d63a
VZ
3961 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3962 if test "x$LINE" != x ; then
3963 eval "DEFAULT_$LINE"
3964 else
3965 no_cache=1
3966 fi
3967
3968 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
3969
3970fi
10f2d63a
VZ
3971
3972
3973 eval "$ac_cv_use_fs_inet"
3974 if test "$no_cache" != 1; then
3975 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3976 fi
3977
3978 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 3979 echo "$ac_t""yes" 1>&6
10f2d63a 3980 else
698dcdb6 3981 echo "$ac_t""no" 1>&6
10f2d63a 3982 fi
698dcdb6 3983
10f2d63a 3984
698dcdb6 3985 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
8db37e06 3986echo "configure:3987: checking for --enable-fs_zip" >&5
10f2d63a
VZ
3987 no_cache=0
3988 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3989if test "${enable_fs_zip+set}" = set; then
3990 enableval="$enable_fs_zip"
698dcdb6 3991
10f2d63a
VZ
3992 if test "$enableval" = yes; then
3993 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3994 else
3995 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3996 fi
698dcdb6 3997
10f2d63a 3998else
698dcdb6 3999
10f2d63a
VZ
4000 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4001 if test "x$LINE" != x ; then
4002 eval "DEFAULT_$LINE"
4003 else
4004 no_cache=1
4005 fi
4006
4007 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
4008
4009fi
10f2d63a
VZ
4010
4011
4012 eval "$ac_cv_use_fs_zip"
4013 if test "$no_cache" != 1; then
4014 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4015 fi
4016
4017 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 4018 echo "$ac_t""yes" 1>&6
10f2d63a 4019 else
698dcdb6 4020 echo "$ac_t""no" 1>&6
10f2d63a 4021 fi
698dcdb6 4022
10f2d63a 4023
698dcdb6 4024 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
8db37e06 4025echo "configure:4026: checking for --enable-zipstream" >&5
10f2d63a
VZ
4026 no_cache=0
4027 # Check whether --enable-zipstream or --disable-zipstream was given.
4028if test "${enable_zipstream+set}" = set; then
4029 enableval="$enable_zipstream"
698dcdb6 4030
10f2d63a
VZ
4031 if test "$enableval" = yes; then
4032 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4033 else
4034 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4035 fi
698dcdb6 4036
10f2d63a 4037else
698dcdb6 4038
10f2d63a
VZ
4039 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4040 if test "x$LINE" != x ; then
4041 eval "DEFAULT_$LINE"
4042 else
4043 no_cache=1
4044 fi
4045
4046 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4047
4048fi
10f2d63a
VZ
4049
4050
4051 eval "$ac_cv_use_zipstream"
4052 if test "$no_cache" != 1; then
4053 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4054 fi
4055
4056 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4057 echo "$ac_t""yes" 1>&6
10f2d63a 4058 else
698dcdb6 4059 echo "$ac_t""no" 1>&6
10f2d63a 4060 fi
698dcdb6 4061
10f2d63a 4062
698dcdb6
VZ
4063
4064 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
8db37e06 4065echo "configure:4066: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4066 no_cache=0
4067 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4068if test "${enable_catch_segvs+set}" = set; then
4069 enableval="$enable_catch_segvs"
698dcdb6 4070
eb4efbdc
VZ
4071 if test "$enableval" = yes; then
4072 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4073 else
4074 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4075 fi
698dcdb6 4076
eb4efbdc 4077else
698dcdb6 4078
eb4efbdc
VZ
4079 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4080 if test "x$LINE" != x ; then
4081 eval "DEFAULT_$LINE"
4082 else
4083 no_cache=1
4084 fi
4085
4086 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4087
4088fi
eb4efbdc
VZ
4089
4090
4091 eval "$ac_cv_use_catch_segvs"
4092 if test "$no_cache" != 1; then
4093 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4094 fi
4095
4096 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4097 echo "$ac_t""yes" 1>&6
eb4efbdc 4098 else
698dcdb6 4099 echo "$ac_t""no" 1>&6
eb4efbdc 4100 fi
698dcdb6 4101
eb4efbdc 4102
698dcdb6 4103 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
8db37e06 4104echo "configure:4105: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4105 no_cache=0
4106 # Check whether --enable-snglinst or --disable-snglinst was given.
4107if test "${enable_snglinst+set}" = set; then
4108 enableval="$enable_snglinst"
698dcdb6 4109
4f3c5f06
VZ
4110 if test "$enableval" = yes; then
4111 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4112 else
4113 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4114 fi
698dcdb6 4115
4f3c5f06 4116else
698dcdb6 4117
4f3c5f06
VZ
4118 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4119 if test "x$LINE" != x ; then
4120 eval "DEFAULT_$LINE"
4121 else
4122 no_cache=1
4123 fi
4124
4125 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4126
4127fi
4f3c5f06
VZ
4128
4129
4130 eval "$ac_cv_use_snglinst"
4131 if test "$no_cache" != 1; then
4132 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4133 fi
4134
4135 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4136 echo "$ac_t""yes" 1>&6
4f3c5f06 4137 else
698dcdb6 4138 echo "$ac_t""no" 1>&6
4f3c5f06 4139 fi
698dcdb6
VZ
4140
4141
eb4efbdc 4142
1e6feb95 4143 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
8db37e06 4144echo "configure:4145: checking for --enable-mimetype" >&5
1e6feb95
VZ
4145 no_cache=0
4146 # Check whether --enable-mimetype or --disable-mimetype was given.
4147if test "${enable_mimetype+set}" = set; then
4148 enableval="$enable_mimetype"
4149
4150 if test "$enableval" = yes; then
4151 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4152 else
4153 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4154 fi
4155
4156else
4157
4158 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4159 if test "x$LINE" != x ; then
4160 eval "DEFAULT_$LINE"
4161 else
4162 no_cache=1
4163 fi
4164
4165 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4166
4167fi
4168
4169
4170 eval "$ac_cv_use_mimetype"
4171 if test "$no_cache" != 1; then
4172 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4173 fi
4174
4175 if test "$wxUSE_MIMETYPE" = yes; then
4176 echo "$ac_t""yes" 1>&6
4177 else
4178 echo "$ac_t""no" 1>&6
4179 fi
4180
4181
3e44f09d 4182 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
8db37e06 4183echo "configure:4184: checking for --enable-system_options" >&5
3e44f09d
VZ
4184 no_cache=0
4185 # Check whether --enable-system_options or --disable-system_options was given.
4186if test "${enable_system_options+set}" = set; then
4187 enableval="$enable_system_options"
4188
4189 if test "$enableval" = yes; then
4190 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4191 else
4192 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4193 fi
4194
4195else
4196
4197 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4198 if test "x$LINE" != x ; then
4199 eval "DEFAULT_$LINE"
4200 else
4201 no_cache=1
4202 fi
4203
4204 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4205
4206fi
4207
4208
4209 eval "$ac_cv_use_system_options"
4210 if test "$no_cache" != 1; then
4211 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4212 fi
4213
4214 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4215 echo "$ac_t""yes" 1>&6
4216 else
4217 echo "$ac_t""no" 1>&6
4218 fi
4219
4220
1e6feb95 4221
698dcdb6
VZ
4222
4223 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
8db37e06 4224echo "configure:4225: checking for --enable-threads" >&5
10f2d63a
VZ
4225 no_cache=0
4226 # Check whether --enable-threads or --disable-threads was given.
4227if test "${enable_threads+set}" = set; then
4228 enableval="$enable_threads"
698dcdb6 4229
10f2d63a
VZ
4230 if test "$enableval" = yes; then
4231 ac_cv_use_threads='wxUSE_THREADS=yes'
4232 else
4233 ac_cv_use_threads='wxUSE_THREADS=no'
4234 fi
698dcdb6 4235
10f2d63a 4236else
698dcdb6 4237
10f2d63a
VZ
4238 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4239 if test "x$LINE" != x ; then
4240 eval "DEFAULT_$LINE"
4241 else
4242 no_cache=1
4243 fi
4244
4245 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4246
4247fi
10f2d63a
VZ
4248
4249
4250 eval "$ac_cv_use_threads"
4251 if test "$no_cache" != 1; then
4252 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4253 fi
4254
4255 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4256 echo "$ac_t""yes" 1>&6
10f2d63a 4257 else
698dcdb6 4258 echo "$ac_t""no" 1>&6
10f2d63a 4259 fi
698dcdb6 4260
10f2d63a 4261
698dcdb6 4262 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
8db37e06 4263echo "configure:4264: checking for --enable-serial" >&5
10f2d63a
VZ
4264 no_cache=0
4265 # Check whether --enable-serial or --disable-serial was given.
4266if test "${enable_serial+set}" = set; then
4267 enableval="$enable_serial"
698dcdb6 4268
10f2d63a
VZ
4269 if test "$enableval" = yes; then
4270 ac_cv_use_serial='wxUSE_SERIAL=yes'
4271 else
4272 ac_cv_use_serial='wxUSE_SERIAL=no'
4273 fi
698dcdb6 4274
10f2d63a 4275else
698dcdb6 4276
10f2d63a
VZ
4277 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4278 if test "x$LINE" != x ; then
4279 eval "DEFAULT_$LINE"
4280 else
4281 no_cache=1
4282 fi
4283
4284 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
698dcdb6
VZ
4285
4286fi
10f2d63a
VZ
4287
4288
4289 eval "$ac_cv_use_serial"
4290 if test "$no_cache" != 1; then
4291 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4292 fi
4293
4294 if test "$wxUSE_SERIAL" = yes; then
698dcdb6 4295 echo "$ac_t""yes" 1>&6
10f2d63a 4296 else
698dcdb6 4297 echo "$ac_t""no" 1>&6
10f2d63a 4298 fi
698dcdb6 4299
10f2d63a 4300
b12915c1
VZ
4301if test "$wxUSE_GUI" = "yes"; then
4302
698dcdb6
VZ
4303
4304
4305 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
8db37e06 4306echo "configure:4307: checking for --enable-docview" >&5
10f2d63a
VZ
4307 no_cache=0
4308 # Check whether --enable-docview or --disable-docview was given.
4309if test "${enable_docview+set}" = set; then
4310 enableval="$enable_docview"
698dcdb6 4311
10f2d63a
VZ
4312 if test "$enableval" = yes; then
4313 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4314 else
4315 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4316 fi
698dcdb6 4317
10f2d63a 4318else
698dcdb6 4319
10f2d63a
VZ
4320 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4321 if test "x$LINE" != x ; then
4322 eval "DEFAULT_$LINE"
4323 else
4324 no_cache=1
4325 fi
4326
4327 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4328
4329fi
10f2d63a
VZ
4330
4331
4332 eval "$ac_cv_use_docview"
4333 if test "$no_cache" != 1; then
4334 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4335 fi
4336
4337 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4338 echo "$ac_t""yes" 1>&6
10f2d63a 4339 else
698dcdb6 4340 echo "$ac_t""no" 1>&6
10f2d63a 4341 fi
698dcdb6 4342
10f2d63a 4343
698dcdb6 4344 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
8db37e06 4345echo "configure:4346: checking for --enable-help" >&5
10f2d63a
VZ
4346 no_cache=0
4347 # Check whether --enable-help or --disable-help was given.
4348if test "${enable_help+set}" = set; then
4349 enableval="$enable_help"
698dcdb6 4350
10f2d63a
VZ
4351 if test "$enableval" = yes; then
4352 ac_cv_use_help='wxUSE_HELP=yes'
4353 else
4354 ac_cv_use_help='wxUSE_HELP=no'
4355 fi
698dcdb6 4356
10f2d63a 4357else
698dcdb6 4358
10f2d63a
VZ
4359 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4360 if test "x$LINE" != x ; then
4361 eval "DEFAULT_$LINE"
4362 else
4363 no_cache=1
4364 fi
4365
4366 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4367
4368fi
10f2d63a
VZ
4369
4370
4371 eval "$ac_cv_use_help"
4372 if test "$no_cache" != 1; then
4373 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4374 fi
4375
4376 if test "$wxUSE_HELP" = yes; then
698dcdb6 4377 echo "$ac_t""yes" 1>&6
10f2d63a 4378 else
698dcdb6 4379 echo "$ac_t""no" 1>&6
10f2d63a 4380 fi
698dcdb6 4381
10f2d63a 4382
29fd3c0c 4383 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
8db37e06 4384echo "configure:4385: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4385 no_cache=0
4386 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4387if test "${enable_mshtmlhelp+set}" = set; then
4388 enableval="$enable_mshtmlhelp"
4389
4390 if test "$enableval" = yes; then
4391 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4392 else
4393 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4394 fi
4395
4396else
4397
4398 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4399 if test "x$LINE" != x ; then
4400 eval "DEFAULT_$LINE"
4401 else
4402 no_cache=1
4403 fi
4404
4405 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4406
4407fi
4408
4409
4410 eval "$ac_cv_use_mshtmlhelp"
4411 if test "$no_cache" != 1; then
4412 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4413 fi
4414
4415 if test "$wxUSE_MS_HTML_HELP" = yes; then
4416 echo "$ac_t""yes" 1>&6
4417 else
4418 echo "$ac_t""no" 1>&6
4419 fi
4420
4421
3379ed37 4422 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
8db37e06 4423echo "configure:4424: checking for --enable-html" >&5
3379ed37
VZ
4424 no_cache=0
4425 # Check whether --enable-html or --disable-html was given.
4426if test "${enable_html+set}" = set; then
4427 enableval="$enable_html"
4428
4429 if test "$enableval" = yes; then
4430 ac_cv_use_html='wxUSE_HTML=yes'
4431 else
4432 ac_cv_use_html='wxUSE_HTML=no'
4433 fi
4434
4435else
4436
4437 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4438 if test "x$LINE" != x ; then
4439 eval "DEFAULT_$LINE"
4440 else
4441 no_cache=1
4442 fi
4443
4444 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4445
4446fi
4447
4448
4449 eval "$ac_cv_use_html"
4450 if test "$no_cache" != 1; then
4451 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4452 fi
4453
4454 if test "$wxUSE_HTML" = yes; then
4455 echo "$ac_t""yes" 1>&6
4456 else
4457 echo "$ac_t""no" 1>&6
4458 fi
4459
4460
4461 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
8db37e06 4462echo "configure:4463: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4463 no_cache=0
4464 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4465if test "${enable_htmlhelp+set}" = set; then
4466 enableval="$enable_htmlhelp"
4467
4468 if test "$enableval" = yes; then
4469 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4470 else
4471 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4472 fi
4473
4474else
4475
4476 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4477 if test "x$LINE" != x ; then
4478 eval "DEFAULT_$LINE"
4479 else
4480 no_cache=1
4481 fi
4482
4483 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4484
4485fi
4486
4487
4488 eval "$ac_cv_use_htmlhelp"
4489 if test "$no_cache" != 1; then
4490 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4491 fi
4492
4493 if test "$wxUSE_WXHTML_HELP" = yes; then
4494 echo "$ac_t""yes" 1>&6
4495 else
4496 echo "$ac_t""no" 1>&6
4497 fi
4498
4499
698dcdb6 4500 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
8db37e06 4501echo "configure:4502: checking for --enable-constraints" >&5
10f2d63a
VZ
4502 no_cache=0
4503 # Check whether --enable-constraints or --disable-constraints was given.
4504if test "${enable_constraints+set}" = set; then
4505 enableval="$enable_constraints"
698dcdb6 4506
10f2d63a
VZ
4507 if test "$enableval" = yes; then
4508 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4509 else
4510 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4511 fi
698dcdb6 4512
10f2d63a 4513else
698dcdb6 4514
10f2d63a
VZ
4515 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4516 if test "x$LINE" != x ; then
4517 eval "DEFAULT_$LINE"
4518 else
4519 no_cache=1
4520 fi
4521
4522 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
4523
4524fi
10f2d63a
VZ
4525
4526
4527 eval "$ac_cv_use_constraints"
4528 if test "$no_cache" != 1; then
4529 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4530 fi
4531
4532 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 4533 echo "$ac_t""yes" 1>&6
10f2d63a 4534 else
698dcdb6 4535 echo "$ac_t""no" 1>&6
10f2d63a 4536 fi
698dcdb6 4537
10f2d63a 4538
698dcdb6 4539 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
8db37e06 4540echo "configure:4541: checking for --enable-printarch" >&5
10f2d63a
VZ
4541 no_cache=0
4542 # Check whether --enable-printarch or --disable-printarch was given.
4543if test "${enable_printarch+set}" = set; then
4544 enableval="$enable_printarch"
698dcdb6 4545
10f2d63a
VZ
4546 if test "$enableval" = yes; then
4547 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4548 else
4549 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4550 fi
698dcdb6 4551
10f2d63a 4552else
698dcdb6 4553
10f2d63a
VZ
4554 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4555 if test "x$LINE" != x ; then
4556 eval "DEFAULT_$LINE"
4557 else
4558 no_cache=1
4559 fi
4560
4561 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
4562
4563fi
10f2d63a
VZ
4564
4565
4566 eval "$ac_cv_use_printarch"
4567 if test "$no_cache" != 1; then
4568 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4569 fi
4570
4571 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 4572 echo "$ac_t""yes" 1>&6
10f2d63a 4573 else
698dcdb6 4574 echo "$ac_t""no" 1>&6
10f2d63a 4575 fi
698dcdb6 4576
10f2d63a 4577
698dcdb6 4578 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
8db37e06 4579echo "configure:4580: checking for --enable-mdi" >&5
10f2d63a
VZ
4580 no_cache=0
4581 # Check whether --enable-mdi or --disable-mdi was given.
4582if test "${enable_mdi+set}" = set; then
4583 enableval="$enable_mdi"
698dcdb6 4584
10f2d63a
VZ
4585 if test "$enableval" = yes; then
4586 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4587 else
4588 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4589 fi
698dcdb6 4590
10f2d63a 4591else
698dcdb6 4592
10f2d63a
VZ
4593 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4594 if test "x$LINE" != x ; then
4595 eval "DEFAULT_$LINE"
4596 else
4597 no_cache=1
4598 fi
4599
4600 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
4601
4602fi
10f2d63a
VZ
4603
4604
4605 eval "$ac_cv_use_mdi"
4606 if test "$no_cache" != 1; then
4607 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4608 fi
4609
4610 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 4611 echo "$ac_t""yes" 1>&6
10f2d63a 4612 else
698dcdb6 4613 echo "$ac_t""no" 1>&6
10f2d63a 4614 fi
698dcdb6
VZ
4615
4616
1e6feb95 4617 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
8db37e06 4618echo "configure:4619: checking for --enable-loggui" >&5
1e6feb95
VZ
4619 no_cache=0
4620 # Check whether --enable-loggui or --disable-loggui was given.
4621if test "${enable_loggui+set}" = set; then
4622 enableval="$enable_loggui"
4623
4624 if test "$enableval" = yes; then
4625 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4626 else
4627 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4628 fi
4629
4630else
4631
4632 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4633 if test "x$LINE" != x ; then
4634 eval "DEFAULT_$LINE"
4635 else
4636 no_cache=1
4637 fi
4638
4639 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4640
4641fi
4642
4643
4644 eval "$ac_cv_use_loggui"
4645 if test "$no_cache" != 1; then
4646 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4647 fi
4648
4649 if test "$wxUSE_LOGGUI" = yes; then
4650 echo "$ac_t""yes" 1>&6
4651 else
4652 echo "$ac_t""no" 1>&6
4653 fi
4654
4655
4656 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
8db37e06 4657echo "configure:4658: checking for --enable-logwin" >&5
1e6feb95
VZ
4658 no_cache=0
4659 # Check whether --enable-logwin or --disable-logwin was given.
4660if test "${enable_logwin+set}" = set; then
4661 enableval="$enable_logwin"
4662
4663 if test "$enableval" = yes; then
4664 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4665 else
4666 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4667 fi
4668
4669else
4670
4671 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4672 if test "x$LINE" != x ; then
4673 eval "DEFAULT_$LINE"
4674 else
4675 no_cache=1
4676 fi
4677
4678 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4679
4680fi
4681
4682
4683 eval "$ac_cv_use_logwin"
4684 if test "$no_cache" != 1; then
4685 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4686 fi
4687
4688 if test "$wxUSE_LOGWINDOW" = yes; then
4689 echo "$ac_t""yes" 1>&6
4690 else
4691 echo "$ac_t""no" 1>&6
4692 fi
4693
4694
10f2d63a 4695
698dcdb6 4696 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
8db37e06 4697echo "configure:4698: checking for --enable-postscript" >&5
10f2d63a
VZ
4698 no_cache=0
4699 # Check whether --enable-postscript or --disable-postscript was given.
4700if test "${enable_postscript+set}" = set; then
4701 enableval="$enable_postscript"
698dcdb6 4702
10f2d63a
VZ
4703 if test "$enableval" = yes; then
4704 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4705 else
4706 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4707 fi
698dcdb6 4708
10f2d63a 4709else
698dcdb6 4710
10f2d63a
VZ
4711 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4712 if test "x$LINE" != x ; then
4713 eval "DEFAULT_$LINE"
4714 else
4715 no_cache=1
4716 fi
4717
4718 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
4719
4720fi
10f2d63a
VZ
4721
4722
4723 eval "$ac_cv_use_postscript"
4724 if test "$no_cache" != 1; then
4725 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4726 fi
4727
4728 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 4729 echo "$ac_t""yes" 1>&6
10f2d63a 4730 else
698dcdb6 4731 echo "$ac_t""no" 1>&6
10f2d63a 4732 fi
698dcdb6
VZ
4733
4734
4735
10f2d63a 4736
1e6feb95 4737
698dcdb6 4738 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
8db37e06 4739echo "configure:4740: checking for --enable-prologio" >&5
10f2d63a
VZ
4740 no_cache=0
4741 # Check whether --enable-prologio or --disable-prologio was given.
4742if test "${enable_prologio+set}" = set; then
4743 enableval="$enable_prologio"
698dcdb6 4744
10f2d63a
VZ
4745 if test "$enableval" = yes; then
4746 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4747 else
4748 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4749 fi
698dcdb6 4750
10f2d63a 4751else
698dcdb6 4752
10f2d63a
VZ
4753 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4754 if test "x$LINE" != x ; then
4755 eval "DEFAULT_$LINE"
4756 else
4757 no_cache=1
4758 fi
4759
4760 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
4761
4762fi
10f2d63a
VZ
4763
4764
4765 eval "$ac_cv_use_prologio"
4766 if test "$no_cache" != 1; then
4767 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4768 fi
4769
4770 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 4771 echo "$ac_t""yes" 1>&6
10f2d63a 4772 else
698dcdb6 4773 echo "$ac_t""no" 1>&6
10f2d63a 4774 fi
698dcdb6 4775
10f2d63a 4776
698dcdb6 4777 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
8db37e06 4778echo "configure:4779: checking for --enable-resources" >&5
10f2d63a
VZ
4779 no_cache=0
4780 # Check whether --enable-resources or --disable-resources was given.
4781if test "${enable_resources+set}" = set; then
4782 enableval="$enable_resources"
698dcdb6 4783
10f2d63a
VZ
4784 if test "$enableval" = yes; then
4785 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4786 else
4787 ac_cv_use_resources='wxUSE_RESOURCES=no'
4788 fi
698dcdb6 4789
10f2d63a 4790else
698dcdb6 4791
10f2d63a
VZ
4792 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4793 if test "x$LINE" != x ; then
4794 eval "DEFAULT_$LINE"
4795 else
4796 no_cache=1
4797 fi
4798
4799 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
4800
4801fi
10f2d63a
VZ
4802
4803
4804 eval "$ac_cv_use_resources"
4805 if test "$no_cache" != 1; then
4806 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4807 fi
4808
4809 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 4810 echo "$ac_t""yes" 1>&6
10f2d63a 4811 else
698dcdb6 4812 echo "$ac_t""no" 1>&6
10f2d63a 4813 fi
698dcdb6 4814
10f2d63a 4815
698dcdb6
VZ
4816
4817 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
8db37e06 4818echo "configure:4819: checking for --enable-xresources" >&5
10f2d63a
VZ
4819 no_cache=0
4820 # Check whether --enable-xresources or --disable-xresources was given.
4821if test "${enable_xresources+set}" = set; then
4822 enableval="$enable_xresources"
698dcdb6 4823
10f2d63a
VZ
4824 if test "$enableval" = yes; then
4825 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4826 else
4827 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4828 fi
698dcdb6 4829
10f2d63a 4830else
698dcdb6 4831
10f2d63a
VZ
4832 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4833 if test "x$LINE" != x ; then
4834 eval "DEFAULT_$LINE"
4835 else
4836 no_cache=1
4837 fi
4838
4839 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
4840
4841fi
10f2d63a
VZ
4842
4843
4844 eval "$ac_cv_use_xresources"
4845 if test "$no_cache" != 1; then
4846 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4847 fi
4848
4849 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 4850 echo "$ac_t""yes" 1>&6
10f2d63a 4851 else
698dcdb6 4852 echo "$ac_t""no" 1>&6
10f2d63a 4853 fi
698dcdb6
VZ
4854
4855
10f2d63a 4856
698dcdb6
VZ
4857
4858 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
8db37e06 4859echo "configure:4860: checking for --enable-clipboard" >&5
10f2d63a
VZ
4860 no_cache=0
4861 # Check whether --enable-clipboard or --disable-clipboard was given.
4862if test "${enable_clipboard+set}" = set; then
4863 enableval="$enable_clipboard"
698dcdb6 4864
10f2d63a
VZ
4865 if test "$enableval" = yes; then
4866 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4867 else
4868 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4869 fi
698dcdb6 4870
10f2d63a 4871else
698dcdb6 4872
10f2d63a
VZ
4873 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4874 if test "x$LINE" != x ; then
4875 eval "DEFAULT_$LINE"
4876 else
4877 no_cache=1
4878 fi
4879
4880 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
4881
4882fi
10f2d63a
VZ
4883
4884
4885 eval "$ac_cv_use_clipboard"
4886 if test "$no_cache" != 1; then
4887 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4888 fi
4889
4890 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 4891 echo "$ac_t""yes" 1>&6
10f2d63a 4892 else
698dcdb6 4893 echo "$ac_t""no" 1>&6
10f2d63a 4894 fi
698dcdb6 4895
10f2d63a 4896
698dcdb6 4897 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
8db37e06 4898echo "configure:4899: checking for --enable-dnd" >&5
10f2d63a
VZ
4899 no_cache=0
4900 # Check whether --enable-dnd or --disable-dnd was given.
4901if test "${enable_dnd+set}" = set; then
4902 enableval="$enable_dnd"
698dcdb6 4903
10f2d63a
VZ
4904 if test "$enableval" = yes; then
4905 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4906 else
4907 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4908 fi
698dcdb6 4909
10f2d63a 4910else
698dcdb6 4911
10f2d63a
VZ
4912 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4913 if test "x$LINE" != x ; then
4914 eval "DEFAULT_$LINE"
4915 else
4916 no_cache=1
4917 fi
4918
4919 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
4920
4921fi
10f2d63a
VZ
4922
4923
4924 eval "$ac_cv_use_dnd"
4925 if test "$no_cache" != 1; then
4926 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4927 fi
4928
4929 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 4930 echo "$ac_t""yes" 1>&6
10f2d63a 4931 else
698dcdb6 4932 echo "$ac_t""no" 1>&6
10f2d63a 4933 fi
698dcdb6 4934
10f2d63a 4935
698dcdb6 4936 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
8db37e06 4937echo "configure:4938: checking for --enable-metafile" >&5
b64f0a5f
RL
4938 no_cache=0
4939 # Check whether --enable-metafile or --disable-metafile was given.
4940if test "${enable_metafile+set}" = set; then
4941 enableval="$enable_metafile"
698dcdb6 4942
b64f0a5f
RL
4943 if test "$enableval" = yes; then
4944 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4945 else
4946 ac_cv_use_metafile='wxUSE_METAFILE=no'
4947 fi
698dcdb6 4948
b64f0a5f 4949else
698dcdb6 4950
b64f0a5f
RL
4951 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4952 if test "x$LINE" != x ; then
4953 eval "DEFAULT_$LINE"
4954 else
4955 no_cache=1
4956 fi
4957
4958 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
4959
4960fi
b64f0a5f
RL
4961
4962
4963 eval "$ac_cv_use_metafile"
4964 if test "$no_cache" != 1; then
4965 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4966 fi
4967
4968 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 4969 echo "$ac_t""yes" 1>&6
b64f0a5f 4970 else
698dcdb6 4971 echo "$ac_t""no" 1>&6
b64f0a5f 4972 fi
698dcdb6
VZ
4973
4974
10f2d63a 4975
24176f2c 4976 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
8db37e06 4977echo "configure:4978: checking for --enable-treelayout" >&5
10f2d63a 4978 no_cache=0
24176f2c
GD
4979 # Check whether --enable-treelayout or --disable-treelayout was given.
4980if test "${enable_treelayout+set}" = set; then
4981 enableval="$enable_treelayout"
698dcdb6 4982
10f2d63a 4983 if test "$enableval" = yes; then
24176f2c 4984 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 4985 else
24176f2c 4986 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 4987 fi
698dcdb6 4988
10f2d63a 4989else
698dcdb6 4990
24176f2c 4991 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
4992 if test "x$LINE" != x ; then
4993 eval "DEFAULT_$LINE"
4994 else
4995 no_cache=1
4996 fi
4997
24176f2c 4998 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
4999
5000fi
10f2d63a
VZ
5001
5002
24176f2c 5003 eval "$ac_cv_use_treelayout"
10f2d63a 5004 if test "$no_cache" != 1; then
24176f2c 5005 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5006 fi
5007
24176f2c 5008 if test "$wxUSE_TREELAYOUT" = yes; then
698dcdb6 5009 echo "$ac_t""yes" 1>&6
10f2d63a 5010 else
698dcdb6 5011 echo "$ac_t""no" 1>&6
10f2d63a 5012 fi
698dcdb6 5013
10f2d63a 5014
698dcdb6
VZ
5015
5016
5017 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
8db37e06 5018echo "configure:5019: checking for --enable-controls" >&5
10f2d63a
VZ
5019 no_cache=0
5020 # Check whether --enable-controls or --disable-controls was given.
5021if test "${enable_controls+set}" = set; then
5022 enableval="$enable_controls"
698dcdb6 5023
10f2d63a
VZ
5024 if test "$enableval" = yes; then
5025 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5026 else
5027 ac_cv_use_controls='wxUSE_CONTROLS=no'
5028 fi
698dcdb6 5029
10f2d63a 5030else
698dcdb6 5031
10f2d63a
VZ
5032 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5033 if test "x$LINE" != x ; then
5034 eval "DEFAULT_$LINE"
5035 else
5036 no_cache=1
5037 fi
5038
5039 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5040
5041fi
10f2d63a
VZ
5042
5043
5044 eval "$ac_cv_use_controls"
5045 if test "$no_cache" != 1; then
5046 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5047 fi
5048
5049 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5050 echo "$ac_t""yes" 1>&6
10f2d63a 5051 else
698dcdb6 5052 echo "$ac_t""no" 1>&6
10f2d63a 5053 fi
698dcdb6 5054
10f2d63a
VZ
5055
5056if test "$wxUSE_CONTROLS" = "yes"; then
5057 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5058 DEFAULT_wxUSE_BMPBUTTON=yes
5059 DEFAULT_wxUSE_BUTTON=yes
5060 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5061 DEFAULT_wxUSE_CARET=yes
5062 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5063 DEFAULT_wxUSE_CHECKBOX=yes
5064 DEFAULT_wxUSE_CHECKLISTBOX=yes
5065 DEFAULT_wxUSE_CHOICE=yes
5066 DEFAULT_wxUSE_GAUGE=yes
5067 DEFAULT_wxUSE_GRID=yes
cc977e5f 5068 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5069 DEFAULT_wxUSE_IMAGLIST=yes
5070 DEFAULT_wxUSE_LISTBOX=yes
5071 DEFAULT_wxUSE_LISTCTRL=yes
5072 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5073 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5074 DEFAULT_wxUSE_RADIOBOX=yes
5075 DEFAULT_wxUSE_RADIOBTN=yes
5076 DEFAULT_wxUSE_SASH=yes
5077 DEFAULT_wxUSE_SCROLLBAR=yes
5078 DEFAULT_wxUSE_SLIDER=yes
5079 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5080 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5081 DEFAULT_wxUSE_SPLITTER=yes
5082 DEFAULT_wxUSE_STATBMP=yes
5083 DEFAULT_wxUSE_STATBOX=yes
5084 DEFAULT_wxUSE_STATLINE=yes
5085 DEFAULT_wxUSE_STATUSBAR=yes
5086 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5087 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5088 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5089 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5090 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5091 DEFAULT_wxUSE_TOOLTIPS=yes
5092 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5093 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
5094elif test "$wxUSE_CONTROLS" = "no"; then
5095 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5096 DEFAULT_wxUSE_BMPBUTTON=no
5097 DEFAULT_wxUSE_BUTTON=no
5098 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5099 DEFAULT_wxUSE_CARET=no
5100 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5101 DEFAULT_wxUSE_CHECKBOX=no
5102 DEFAULT_wxUSE_CHECKLISTBOX=no
5103 DEFAULT_wxUSE_CHOICE=no
5104 DEFAULT_wxUSE_GAUGE=no
5105 DEFAULT_wxUSE_GRID=no
5106 DEFAULT_wxUSE_NEW_GRID=no
5107 DEFAULT_wxUSE_IMAGLIST=no
5108 DEFAULT_wxUSE_LISTBOX=no
5109 DEFAULT_wxUSE_LISTCTRL=no
5110 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5111 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5112 DEFAULT_wxUSE_RADIOBOX=no
5113 DEFAULT_wxUSE_RADIOBTN=no
5114 DEFAULT_wxUSE_SASH=no
5115 DEFAULT_wxUSE_SCROLLBAR=no
5116 DEFAULT_wxUSE_SLIDER=no
5117 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5118 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5119 DEFAULT_wxUSE_SPLITTER=no
5120 DEFAULT_wxUSE_STATBMP=no
5121 DEFAULT_wxUSE_STATBOX=no
5122 DEFAULT_wxUSE_STATLINE=no
5123 DEFAULT_wxUSE_STATUSBAR=no
5124 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5125 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5126 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5127 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5128 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5129 DEFAULT_wxUSE_TOOLTIPS=no
5130 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5131 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
5132fi
5133
698dcdb6
VZ
5134
5135 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
8db37e06 5136echo "configure:5137: checking for --enable-accel" >&5
10f2d63a
VZ
5137 no_cache=0
5138 # Check whether --enable-accel or --disable-accel was given.
5139if test "${enable_accel+set}" = set; then
5140 enableval="$enable_accel"
698dcdb6 5141
10f2d63a
VZ
5142 if test "$enableval" = yes; then
5143 ac_cv_use_accel='wxUSE_ACCEL=yes'
5144 else
5145 ac_cv_use_accel='wxUSE_ACCEL=no'
5146 fi
698dcdb6 5147
10f2d63a 5148else
698dcdb6 5149
10f2d63a
VZ
5150 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5151 if test "x$LINE" != x ; then
5152 eval "DEFAULT_$LINE"
5153 else
5154 no_cache=1
5155 fi
5156
5157 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5158
5159fi
10f2d63a
VZ
5160
5161
5162 eval "$ac_cv_use_accel"
5163 if test "$no_cache" != 1; then
5164 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5165 fi
5166
5167 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5168 echo "$ac_t""yes" 1>&6
10f2d63a 5169 else
698dcdb6 5170 echo "$ac_t""no" 1>&6
10f2d63a 5171 fi
698dcdb6 5172
10f2d63a 5173
1e6feb95 5174 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
8db37e06 5175echo "configure:5176: checking for --enable-button" >&5
10f2d63a 5176 no_cache=0
1e6feb95
VZ
5177 # Check whether --enable-button or --disable-button was given.
5178if test "${enable_button+set}" = set; then
5179 enableval="$enable_button"
698dcdb6 5180
10f2d63a 5181 if test "$enableval" = yes; then
1e6feb95 5182 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5183 else
1e6feb95 5184 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5185 fi
698dcdb6 5186
10f2d63a 5187else
698dcdb6 5188
1e6feb95 5189 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5190 if test "x$LINE" != x ; then
5191 eval "DEFAULT_$LINE"
5192 else
5193 no_cache=1
5194 fi
5195
1e6feb95 5196 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5197
5198fi
10f2d63a
VZ
5199
5200
1e6feb95 5201 eval "$ac_cv_use_button"
10f2d63a 5202 if test "$no_cache" != 1; then
1e6feb95 5203 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5204 fi
5205
1e6feb95 5206 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5207 echo "$ac_t""yes" 1>&6
10f2d63a 5208 else
698dcdb6 5209 echo "$ac_t""no" 1>&6
10f2d63a 5210 fi
698dcdb6 5211
10f2d63a 5212
698dcdb6 5213 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
8db37e06 5214echo "configure:5215: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5215 no_cache=0
5216 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5217if test "${enable_bmpbutton+set}" = set; then
5218 enableval="$enable_bmpbutton"
698dcdb6 5219
10f2d63a
VZ
5220 if test "$enableval" = yes; then
5221 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5222 else
5223 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5224 fi
698dcdb6 5225
10f2d63a 5226else
698dcdb6 5227
10f2d63a
VZ
5228 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5229 if test "x$LINE" != x ; then
5230 eval "DEFAULT_$LINE"
5231 else
5232 no_cache=1
5233 fi
5234
5235 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5236
5237fi
10f2d63a
VZ
5238
5239
5240 eval "$ac_cv_use_bmpbutton"
5241 if test "$no_cache" != 1; then
5242 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5243 fi
5244
5245 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5246 echo "$ac_t""yes" 1>&6
10f2d63a 5247 else
698dcdb6 5248 echo "$ac_t""no" 1>&6
10f2d63a 5249 fi
698dcdb6 5250
10f2d63a 5251
1e6feb95 5252 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
8db37e06 5253echo "configure:5254: checking for --enable-calendar" >&5
1e6feb95
VZ
5254 no_cache=0
5255 # Check whether --enable-calendar or --disable-calendar was given.
5256if test "${enable_calendar+set}" = set; then
5257 enableval="$enable_calendar"
5258
5259 if test "$enableval" = yes; then
5260 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5261 else
5262 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5263 fi
5264
5265else
5266
5267 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5268 if test "x$LINE" != x ; then
5269 eval "DEFAULT_$LINE"
5270 else
5271 no_cache=1
5272 fi
5273
5274 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5275
5276fi
5277
5278
5279 eval "$ac_cv_use_calendar"
5280 if test "$no_cache" != 1; then
5281 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5282 fi
5283
5284 if test "$wxUSE_CALCTRL" = yes; then
5285 echo "$ac_t""yes" 1>&6
5286 else
5287 echo "$ac_t""no" 1>&6
5288 fi
5289
5290
5291 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
8db37e06 5292echo "configure:5293: checking for --enable-caret" >&5
1e6feb95
VZ
5293 no_cache=0
5294 # Check whether --enable-caret or --disable-caret was given.
5295if test "${enable_caret+set}" = set; then
5296 enableval="$enable_caret"
5297
5298 if test "$enableval" = yes; then
5299 ac_cv_use_caret='wxUSE_CARET=yes'
5300 else
5301 ac_cv_use_caret='wxUSE_CARET=no'
5302 fi
5303
5304else
5305
5306 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5307 if test "x$LINE" != x ; then
5308 eval "DEFAULT_$LINE"
5309 else
5310 no_cache=1
5311 fi
5312
5313 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5314
5315fi
5316
5317
5318 eval "$ac_cv_use_caret"
5319 if test "$no_cache" != 1; then
5320 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5321 fi
5322
5323 if test "$wxUSE_CARET" = yes; then
5324 echo "$ac_t""yes" 1>&6
5325 else
5326 echo "$ac_t""no" 1>&6
5327 fi
5328
5329
698dcdb6 5330 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
8db37e06 5331echo "configure:5332: checking for --enable-checkbox" >&5
10f2d63a
VZ
5332 no_cache=0
5333 # Check whether --enable-checkbox or --disable-checkbox was given.
5334if test "${enable_checkbox+set}" = set; then
5335 enableval="$enable_checkbox"
698dcdb6 5336
10f2d63a
VZ
5337 if test "$enableval" = yes; then
5338 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5339 else
5340 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5341 fi
698dcdb6 5342
10f2d63a 5343else
698dcdb6 5344
10f2d63a
VZ
5345 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5346 if test "x$LINE" != x ; then
5347 eval "DEFAULT_$LINE"
5348 else
5349 no_cache=1
5350 fi
5351
5352 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5353
5354fi
10f2d63a
VZ
5355
5356
5357 eval "$ac_cv_use_checkbox"
5358 if test "$no_cache" != 1; then
5359 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5360 fi
5361
5362 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5363 echo "$ac_t""yes" 1>&6
10f2d63a 5364 else
698dcdb6 5365 echo "$ac_t""no" 1>&6
10f2d63a 5366 fi
698dcdb6 5367
10f2d63a 5368
698dcdb6 5369 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
8db37e06 5370echo "configure:5371: checking for --enable-checklst" >&5
10f2d63a
VZ
5371 no_cache=0
5372 # Check whether --enable-checklst or --disable-checklst was given.
5373if test "${enable_checklst+set}" = set; then
5374 enableval="$enable_checklst"
698dcdb6 5375
10f2d63a
VZ
5376 if test "$enableval" = yes; then
5377 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5378 else
5379 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5380 fi
698dcdb6 5381
10f2d63a 5382else
698dcdb6 5383
10f2d63a
VZ
5384 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5385 if test "x$LINE" != x ; then
5386 eval "DEFAULT_$LINE"
5387 else
5388 no_cache=1
5389 fi
5390
5391 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5392
5393fi
10f2d63a
VZ
5394
5395
5396 eval "$ac_cv_use_checklst"
5397 if test "$no_cache" != 1; then
5398 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5399 fi
5400
5401 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5402 echo "$ac_t""yes" 1>&6
10f2d63a 5403 else
698dcdb6 5404 echo "$ac_t""no" 1>&6
10f2d63a 5405 fi
698dcdb6 5406
10f2d63a 5407
698dcdb6 5408 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
8db37e06 5409echo "configure:5410: checking for --enable-choice" >&5
10f2d63a
VZ
5410 no_cache=0
5411 # Check whether --enable-choice or --disable-choice was given.
5412if test "${enable_choice+set}" = set; then
5413 enableval="$enable_choice"
698dcdb6 5414
10f2d63a
VZ
5415 if test "$enableval" = yes; then
5416 ac_cv_use_choice='wxUSE_CHOICE=yes'
5417 else
5418 ac_cv_use_choice='wxUSE_CHOICE=no'
5419 fi
698dcdb6 5420
10f2d63a 5421else
698dcdb6 5422
10f2d63a
VZ
5423 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5424 if test "x$LINE" != x ; then
5425 eval "DEFAULT_$LINE"
5426 else
5427 no_cache=1
5428 fi
5429
5430 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5431
5432fi
10f2d63a
VZ
5433
5434
5435 eval "$ac_cv_use_choice"
5436 if test "$no_cache" != 1; then
5437 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5438 fi
5439
5440 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5441 echo "$ac_t""yes" 1>&6
10f2d63a 5442 else
698dcdb6 5443 echo "$ac_t""no" 1>&6
10f2d63a 5444 fi
698dcdb6 5445
10f2d63a 5446
698dcdb6 5447 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
8db37e06 5448echo "configure:5449: checking for --enable-combobox" >&5
10f2d63a
VZ
5449 no_cache=0
5450 # Check whether --enable-combobox or --disable-combobox was given.
5451if test "${enable_combobox+set}" = set; then
5452 enableval="$enable_combobox"
698dcdb6 5453
10f2d63a
VZ
5454 if test "$enableval" = yes; then
5455 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5456 else
5457 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5458 fi
698dcdb6 5459
10f2d63a 5460else
698dcdb6 5461
10f2d63a
VZ
5462 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5463 if test "x$LINE" != x ; then
5464 eval "DEFAULT_$LINE"
5465 else
5466 no_cache=1
5467 fi
5468
5469 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
5470
5471fi
10f2d63a
VZ
5472
5473
5474 eval "$ac_cv_use_combobox"
5475 if test "$no_cache" != 1; then
5476 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5477 fi
5478
5479 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 5480 echo "$ac_t""yes" 1>&6
10f2d63a 5481 else
698dcdb6 5482 echo "$ac_t""no" 1>&6
10f2d63a 5483 fi
698dcdb6 5484
10f2d63a 5485
698dcdb6 5486 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
8db37e06 5487echo "configure:5488: checking for --enable-gauge" >&5
10f2d63a
VZ
5488 no_cache=0
5489 # Check whether --enable-gauge or --disable-gauge was given.
5490if test "${enable_gauge+set}" = set; then
5491 enableval="$enable_gauge"
698dcdb6 5492
10f2d63a
VZ
5493 if test "$enableval" = yes; then
5494 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5495 else
5496 ac_cv_use_gauge='wxUSE_GAUGE=no'
5497 fi
698dcdb6 5498
10f2d63a 5499else
698dcdb6 5500
10f2d63a
VZ
5501 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5502 if test "x$LINE" != x ; then
5503 eval "DEFAULT_$LINE"
5504 else
5505 no_cache=1
5506 fi
5507
5508 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
5509
5510fi
10f2d63a
VZ
5511
5512
5513 eval "$ac_cv_use_gauge"
5514 if test "$no_cache" != 1; then
5515 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5516 fi
5517
5518 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 5519 echo "$ac_t""yes" 1>&6
10f2d63a 5520 else
698dcdb6 5521 echo "$ac_t""no" 1>&6
10f2d63a 5522 fi
698dcdb6 5523
10f2d63a 5524
698dcdb6 5525 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
8db37e06 5526echo "configure:5527: checking for --enable-grid" >&5
10f2d63a
VZ
5527 no_cache=0
5528 # Check whether --enable-grid or --disable-grid was given.
5529if test "${enable_grid+set}" = set; then
5530 enableval="$enable_grid"
698dcdb6 5531
10f2d63a
VZ
5532 if test "$enableval" = yes; then
5533 ac_cv_use_grid='wxUSE_GRID=yes'
5534 else
5535 ac_cv_use_grid='wxUSE_GRID=no'
5536 fi
698dcdb6 5537
10f2d63a 5538else
698dcdb6 5539
10f2d63a
VZ
5540 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5541 if test "x$LINE" != x ; then
5542 eval "DEFAULT_$LINE"
5543 else
5544 no_cache=1
5545 fi
5546
5547 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
5548
5549fi
10f2d63a
VZ
5550
5551
5552 eval "$ac_cv_use_grid"
5553 if test "$no_cache" != 1; then
5554 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5555 fi
5556
5557 if test "$wxUSE_GRID" = yes; then
698dcdb6 5558 echo "$ac_t""yes" 1>&6
10f2d63a 5559 else
698dcdb6 5560 echo "$ac_t""no" 1>&6
10f2d63a 5561 fi
698dcdb6 5562
10f2d63a 5563
698dcdb6 5564 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
8db37e06 5565echo "configure:5566: checking for --enable-newgrid" >&5
10f2d63a
VZ
5566 no_cache=0
5567 # Check whether --enable-newgrid or --disable-newgrid was given.
5568if test "${enable_newgrid+set}" = set; then
5569 enableval="$enable_newgrid"
698dcdb6 5570
10f2d63a
VZ
5571 if test "$enableval" = yes; then
5572 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5573 else
5574 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5575 fi
698dcdb6 5576
10f2d63a 5577else
698dcdb6 5578
10f2d63a
VZ
5579 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5580 if test "x$LINE" != x ; then
5581 eval "DEFAULT_$LINE"
5582 else
5583 no_cache=1
5584 fi
5585
5586 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
5587
5588fi
10f2d63a
VZ
5589
5590
5591 eval "$ac_cv_use_newgrid"
5592 if test "$no_cache" != 1; then
5593 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5594 fi
5595
5596 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 5597 echo "$ac_t""yes" 1>&6
10f2d63a 5598 else
698dcdb6 5599 echo "$ac_t""no" 1>&6
10f2d63a 5600 fi
698dcdb6 5601
10f2d63a 5602
698dcdb6 5603 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
8db37e06 5604echo "configure:5605: checking for --enable-imaglist" >&5
10f2d63a
VZ
5605 no_cache=0
5606 # Check whether --enable-imaglist or --disable-imaglist was given.
5607if test "${enable_imaglist+set}" = set; then
5608 enableval="$enable_imaglist"
698dcdb6 5609
10f2d63a
VZ
5610 if test "$enableval" = yes; then
5611 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5612 else
5613 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5614 fi
698dcdb6 5615
10f2d63a 5616else
698dcdb6 5617
10f2d63a
VZ
5618 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5619 if test "x$LINE" != x ; then
5620 eval "DEFAULT_$LINE"
5621 else
5622 no_cache=1
5623 fi
5624
5625 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
5626
5627fi
10f2d63a
VZ
5628
5629
5630 eval "$ac_cv_use_imaglist"
5631 if test "$no_cache" != 1; then
5632 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5633 fi
5634
5635 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 5636 echo "$ac_t""yes" 1>&6
10f2d63a 5637 else
698dcdb6 5638 echo "$ac_t""no" 1>&6
10f2d63a 5639 fi
698dcdb6 5640
10f2d63a 5641
698dcdb6 5642 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
8db37e06 5643echo "configure:5644: checking for --enable-listbox" >&5
10f2d63a
VZ
5644 no_cache=0
5645 # Check whether --enable-listbox or --disable-listbox was given.
5646if test "${enable_listbox+set}" = set; then
5647 enableval="$enable_listbox"
698dcdb6 5648
10f2d63a
VZ
5649 if test "$enableval" = yes; then
5650 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5651 else
5652 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5653 fi
698dcdb6 5654
10f2d63a 5655else
698dcdb6 5656
10f2d63a
VZ
5657 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5658 if test "x$LINE" != x ; then
5659 eval "DEFAULT_$LINE"
5660 else
5661 no_cache=1
5662 fi
5663
5664 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
5665
5666fi
10f2d63a
VZ
5667
5668
5669 eval "$ac_cv_use_listbox"
5670 if test "$no_cache" != 1; then
5671 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5672 fi
5673
5674 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 5675 echo "$ac_t""yes" 1>&6
10f2d63a 5676 else
698dcdb6 5677 echo "$ac_t""no" 1>&6
10f2d63a 5678 fi
698dcdb6 5679
10f2d63a 5680
698dcdb6 5681 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
8db37e06 5682echo "configure:5683: checking for --enable-listctrl" >&5
10f2d63a
VZ
5683 no_cache=0
5684 # Check whether --enable-listctrl or --disable-listctrl was given.
5685if test "${enable_listctrl+set}" = set; then
5686 enableval="$enable_listctrl"
698dcdb6 5687
10f2d63a
VZ
5688 if test "$enableval" = yes; then
5689 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5690 else
5691 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5692 fi
698dcdb6 5693
10f2d63a 5694else
698dcdb6 5695
10f2d63a
VZ
5696 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5697 if test "x$LINE" != x ; then
5698 eval "DEFAULT_$LINE"
5699 else
5700 no_cache=1
5701 fi
5702
5703 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
5704
5705fi
10f2d63a
VZ
5706
5707
5708 eval "$ac_cv_use_listctrl"
5709 if test "$no_cache" != 1; then
5710 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5711 fi
5712
5713 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 5714 echo "$ac_t""yes" 1>&6
10f2d63a 5715 else
698dcdb6 5716 echo "$ac_t""no" 1>&6
10f2d63a 5717 fi
698dcdb6 5718
10f2d63a 5719
698dcdb6 5720 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
8db37e06 5721echo "configure:5722: checking for --enable-notebook" >&5
10f2d63a
VZ
5722 no_cache=0
5723 # Check whether --enable-notebook or --disable-notebook was given.
5724if test "${enable_notebook+set}" = set; then
5725 enableval="$enable_notebook"
698dcdb6 5726
10f2d63a
VZ
5727 if test "$enableval" = yes; then
5728 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5729 else
5730 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5731 fi
698dcdb6 5732
10f2d63a 5733else
698dcdb6 5734
10f2d63a
VZ
5735 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5736 if test "x$LINE" != x ; then
5737 eval "DEFAULT_$LINE"
5738 else
5739 no_cache=1
5740 fi
5741
5742 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
5743
5744fi
10f2d63a
VZ
5745
5746
5747 eval "$ac_cv_use_notebook"
5748 if test "$no_cache" != 1; then
5749 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5750 fi
5751
5752 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 5753 echo "$ac_t""yes" 1>&6
10f2d63a 5754 else
698dcdb6 5755 echo "$ac_t""no" 1>&6
10f2d63a 5756 fi
698dcdb6 5757
10f2d63a 5758
24176f2c 5759 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
8db37e06 5760echo "configure:5761: checking for --enable-propsheet" >&5
24176f2c
GD
5761 no_cache=0
5762 # Check whether --enable-propsheet or --disable-propsheet was given.
5763if test "${enable_propsheet+set}" = set; then
5764 enableval="$enable_propsheet"
5765
5766 if test "$enableval" = yes; then
5767 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5768 else
5769 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5770 fi
5771
5772else
5773
5774 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5775 if test "x$LINE" != x ; then
5776 eval "DEFAULT_$LINE"
5777 else
5778 no_cache=1
5779 fi
5780
5781 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5782
5783fi
5784
5785
5786 eval "$ac_cv_use_propsheet"
5787 if test "$no_cache" != 1; then
5788 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5789 fi
5790
5791 if test "$wxUSE_PROPSHEET" = yes; then
5792 echo "$ac_t""yes" 1>&6
5793 else
5794 echo "$ac_t""no" 1>&6
5795 fi
5796
5797
698dcdb6 5798 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
8db37e06 5799echo "configure:5800: checking for --enable-radiobox" >&5
10f2d63a
VZ
5800 no_cache=0
5801 # Check whether --enable-radiobox or --disable-radiobox was given.
5802if test "${enable_radiobox+set}" = set; then
5803 enableval="$enable_radiobox"
698dcdb6 5804
10f2d63a
VZ
5805 if test "$enableval" = yes; then
5806 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5807 else
5808 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5809 fi
698dcdb6 5810
10f2d63a 5811else
698dcdb6 5812
10f2d63a
VZ
5813 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5814 if test "x$LINE" != x ; then
5815 eval "DEFAULT_$LINE"
5816 else
5817 no_cache=1
5818 fi
5819
5820 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
5821
5822fi
10f2d63a
VZ
5823
5824
5825 eval "$ac_cv_use_radiobox"
5826 if test "$no_cache" != 1; then
5827 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5828 fi
5829
5830 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 5831 echo "$ac_t""yes" 1>&6
10f2d63a 5832 else
698dcdb6 5833 echo "$ac_t""no" 1>&6
10f2d63a 5834 fi
698dcdb6 5835
10f2d63a 5836
698dcdb6 5837 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
8db37e06 5838echo "configure:5839: checking for --enable-radiobtn" >&5
10f2d63a
VZ
5839 no_cache=0
5840 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5841if test "${enable_radiobtn+set}" = set; then
5842 enableval="$enable_radiobtn"
698dcdb6 5843
10f2d63a
VZ
5844 if test "$enableval" = yes; then
5845 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5846 else
5847 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5848 fi
698dcdb6 5849
10f2d63a 5850else
698dcdb6 5851
10f2d63a
VZ
5852 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5853 if test "x$LINE" != x ; then
5854 eval "DEFAULT_$LINE"
5855 else
5856 no_cache=1
5857 fi
5858
5859 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
5860
5861fi
10f2d63a
VZ
5862
5863
5864 eval "$ac_cv_use_radiobtn"
5865 if test "$no_cache" != 1; then
5866 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5867 fi
5868
5869 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 5870 echo "$ac_t""yes" 1>&6
10f2d63a 5871 else
698dcdb6 5872 echo "$ac_t""no" 1>&6
10f2d63a 5873 fi
698dcdb6 5874
10f2d63a 5875
698dcdb6 5876 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
8db37e06 5877echo "configure:5878: checking for --enable-sash" >&5
10f2d63a
VZ
5878 no_cache=0
5879 # Check whether --enable-sash or --disable-sash was given.
5880if test "${enable_sash+set}" = set; then
5881 enableval="$enable_sash"
698dcdb6 5882
10f2d63a
VZ
5883 if test "$enableval" = yes; then
5884 ac_cv_use_sash='wxUSE_SASH=yes'
5885 else
5886 ac_cv_use_sash='wxUSE_SASH=no'
5887 fi
698dcdb6 5888
10f2d63a 5889else
698dcdb6 5890
10f2d63a
VZ
5891 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5892 if test "x$LINE" != x ; then
5893 eval "DEFAULT_$LINE"
5894 else
5895 no_cache=1
5896 fi
5897
5898 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
5899
5900fi
10f2d63a
VZ
5901
5902
5903 eval "$ac_cv_use_sash"
5904 if test "$no_cache" != 1; then
5905 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5906 fi
5907
5908 if test "$wxUSE_SASH" = yes; then
698dcdb6 5909 echo "$ac_t""yes" 1>&6
10f2d63a 5910 else
698dcdb6 5911 echo "$ac_t""no" 1>&6
10f2d63a 5912 fi
698dcdb6 5913
10f2d63a 5914
698dcdb6 5915 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
8db37e06 5916echo "configure:5917: checking for --enable-scrollbar" >&5
10f2d63a
VZ
5917 no_cache=0
5918 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5919if test "${enable_scrollbar+set}" = set; then
5920 enableval="$enable_scrollbar"
698dcdb6 5921
10f2d63a
VZ
5922 if test "$enableval" = yes; then
5923 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5924 else
5925 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5926 fi
698dcdb6 5927
10f2d63a 5928else
698dcdb6 5929
10f2d63a
VZ
5930 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5931 if test "x$LINE" != x ; then
5932 eval "DEFAULT_$LINE"
5933 else
5934 no_cache=1
5935 fi
5936
5937 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
5938
5939fi
10f2d63a
VZ
5940
5941
5942 eval "$ac_cv_use_scrollbar"
5943 if test "$no_cache" != 1; then
5944 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5945 fi
5946
5947 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 5948 echo "$ac_t""yes" 1>&6
10f2d63a 5949 else
698dcdb6 5950 echo "$ac_t""no" 1>&6
10f2d63a 5951 fi
698dcdb6 5952
10f2d63a 5953
698dcdb6 5954 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
8db37e06 5955echo "configure:5956: checking for --enable-slider" >&5
10f2d63a
VZ
5956 no_cache=0
5957 # Check whether --enable-slider or --disable-slider was given.
5958if test "${enable_slider+set}" = set; then
5959 enableval="$enable_slider"
698dcdb6 5960
10f2d63a
VZ
5961 if test "$enableval" = yes; then
5962 ac_cv_use_slider='wxUSE_SLIDER=yes'
5963 else
5964 ac_cv_use_slider='wxUSE_SLIDER=no'
5965 fi
698dcdb6 5966
10f2d63a 5967else
698dcdb6 5968
10f2d63a
VZ
5969 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5970 if test "x$LINE" != x ; then
5971 eval "DEFAULT_$LINE"
5972 else
5973 no_cache=1
5974 fi
5975
5976 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
5977
5978fi
10f2d63a
VZ
5979
5980
5981 eval "$ac_cv_use_slider"
5982 if test "$no_cache" != 1; then
5983 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5984 fi
5985
5986 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 5987 echo "$ac_t""yes" 1>&6
10f2d63a 5988 else
698dcdb6 5989 echo "$ac_t""no" 1>&6
10f2d63a 5990 fi
698dcdb6 5991
10f2d63a 5992
698dcdb6 5993 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
8db37e06 5994echo "configure:5995: checking for --enable-spinbtn" >&5
10f2d63a
VZ
5995 no_cache=0
5996 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5997if test "${enable_spinbtn+set}" = set; then
5998 enableval="$enable_spinbtn"
698dcdb6 5999
10f2d63a
VZ
6000 if test "$enableval" = yes; then
6001 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6002 else
6003 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6004 fi
698dcdb6 6005
10f2d63a 6006else
698dcdb6 6007
10f2d63a
VZ
6008 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6009 if test "x$LINE" != x ; then
6010 eval "DEFAULT_$LINE"
6011 else
6012 no_cache=1
6013 fi
6014
6015 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
6016
6017fi
10f2d63a
VZ
6018
6019
6020 eval "$ac_cv_use_spinbtn"
6021 if test "$no_cache" != 1; then
6022 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6023 fi
6024
6025 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 6026 echo "$ac_t""yes" 1>&6
10f2d63a 6027 else
698dcdb6 6028 echo "$ac_t""no" 1>&6
10f2d63a 6029 fi
698dcdb6 6030
10f2d63a 6031
698dcdb6 6032 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
8db37e06 6033echo "configure:6034: checking for --enable-spinctrl" >&5
56cfaa52
RR
6034 no_cache=0
6035 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6036if test "${enable_spinctrl+set}" = set; then
6037 enableval="$enable_spinctrl"
698dcdb6 6038
56cfaa52
RR
6039 if test "$enableval" = yes; then
6040 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6041 else
6042 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6043 fi
698dcdb6 6044
56cfaa52 6045else
698dcdb6 6046
56cfaa52
RR
6047 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6048 if test "x$LINE" != x ; then
6049 eval "DEFAULT_$LINE"
6050 else
6051 no_cache=1
6052 fi
6053
6054 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6055
6056fi
56cfaa52
RR
6057
6058
6059 eval "$ac_cv_use_spinctrl"
6060 if test "$no_cache" != 1; then
6061 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6062 fi
6063
6064 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6065 echo "$ac_t""yes" 1>&6
56cfaa52 6066 else
698dcdb6 6067 echo "$ac_t""no" 1>&6
56cfaa52 6068 fi
698dcdb6 6069
56cfaa52 6070
698dcdb6 6071 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
8db37e06 6072echo "configure:6073: checking for --enable-splitter" >&5
10f2d63a
VZ
6073 no_cache=0
6074 # Check whether --enable-splitter or --disable-splitter was given.
6075if test "${enable_splitter+set}" = set; then
6076 enableval="$enable_splitter"
698dcdb6 6077
10f2d63a
VZ
6078 if test "$enableval" = yes; then
6079 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6080 else
6081 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6082 fi
698dcdb6 6083
10f2d63a 6084else
698dcdb6 6085
10f2d63a
VZ
6086 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6087 if test "x$LINE" != x ; then
6088 eval "DEFAULT_$LINE"
6089 else
6090 no_cache=1
6091 fi
6092
6093 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6094
6095fi
10f2d63a
VZ
6096
6097
6098 eval "$ac_cv_use_splitter"
6099 if test "$no_cache" != 1; then
6100 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6101 fi
6102
6103 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6104 echo "$ac_t""yes" 1>&6
10f2d63a 6105 else
698dcdb6 6106 echo "$ac_t""no" 1>&6
10f2d63a 6107 fi
698dcdb6 6108
10f2d63a 6109
698dcdb6 6110 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
8db37e06 6111echo "configure:6112: checking for --enable-statbmp" >&5
10f2d63a
VZ
6112 no_cache=0
6113 # Check whether --enable-statbmp or --disable-statbmp was given.
6114if test "${enable_statbmp+set}" = set; then
6115 enableval="$enable_statbmp"
698dcdb6 6116
10f2d63a
VZ
6117 if test "$enableval" = yes; then
6118 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6119 else
6120 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6121 fi
698dcdb6 6122
10f2d63a 6123else
698dcdb6 6124
10f2d63a
VZ
6125 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6126 if test "x$LINE" != x ; then
6127 eval "DEFAULT_$LINE"
6128 else
6129 no_cache=1
6130 fi
6131
6132 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6133
6134fi
10f2d63a
VZ
6135
6136
6137 eval "$ac_cv_use_statbmp"
6138 if test "$no_cache" != 1; then
6139 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6140 fi
6141
6142 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6143 echo "$ac_t""yes" 1>&6
10f2d63a 6144 else
698dcdb6 6145 echo "$ac_t""no" 1>&6
10f2d63a 6146 fi
698dcdb6 6147
10f2d63a 6148
698dcdb6 6149 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
8db37e06 6150echo "configure:6151: checking for --enable-statbox" >&5
10f2d63a
VZ
6151 no_cache=0
6152 # Check whether --enable-statbox or --disable-statbox was given.
6153if test "${enable_statbox+set}" = set; then
6154 enableval="$enable_statbox"
698dcdb6 6155
10f2d63a
VZ
6156 if test "$enableval" = yes; then
6157 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6158 else
6159 ac_cv_use_statbox='wxUSE_STATBOX=no'
6160 fi
698dcdb6 6161
10f2d63a 6162else
698dcdb6 6163
10f2d63a
VZ
6164 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6165 if test "x$LINE" != x ; then
6166 eval "DEFAULT_$LINE"
6167 else
6168 no_cache=1
6169 fi
6170
6171 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6172
6173fi
10f2d63a
VZ
6174
6175
6176 eval "$ac_cv_use_statbox"
6177 if test "$no_cache" != 1; then
6178 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6179 fi
6180
6181 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6182 echo "$ac_t""yes" 1>&6
10f2d63a 6183 else
698dcdb6 6184 echo "$ac_t""no" 1>&6
10f2d63a 6185 fi
698dcdb6 6186
10f2d63a 6187
698dcdb6 6188 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
8db37e06 6189echo "configure:6190: checking for --enable-statline" >&5
10f2d63a
VZ
6190 no_cache=0
6191 # Check whether --enable-statline or --disable-statline was given.
6192if test "${enable_statline+set}" = set; then
6193 enableval="$enable_statline"
698dcdb6 6194
10f2d63a
VZ
6195 if test "$enableval" = yes; then
6196 ac_cv_use_statline='wxUSE_STATLINE=yes'
6197 else
6198 ac_cv_use_statline='wxUSE_STATLINE=no'
6199 fi
698dcdb6 6200
10f2d63a 6201else
698dcdb6 6202
10f2d63a
VZ
6203 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6204 if test "x$LINE" != x ; then
6205 eval "DEFAULT_$LINE"
6206 else
6207 no_cache=1
6208 fi
6209
6210 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6211
6212fi
10f2d63a
VZ
6213
6214
6215 eval "$ac_cv_use_statline"
6216 if test "$no_cache" != 1; then
6217 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6218 fi
6219
6220 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6221 echo "$ac_t""yes" 1>&6
10f2d63a 6222 else
698dcdb6 6223 echo "$ac_t""no" 1>&6
10f2d63a 6224 fi
698dcdb6 6225
10f2d63a 6226
1e6feb95 6227 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
8db37e06 6228echo "configure:6229: checking for --enable-stattext" >&5
1e6feb95
VZ
6229 no_cache=0
6230 # Check whether --enable-stattext or --disable-stattext was given.
6231if test "${enable_stattext+set}" = set; then
6232 enableval="$enable_stattext"
6233
6234 if test "$enableval" = yes; then
6235 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6236 else
6237 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6238 fi
6239
6240else
6241
6242 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6243 if test "x$LINE" != x ; then
6244 eval "DEFAULT_$LINE"
6245 else
6246 no_cache=1
6247 fi
6248
6249 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6250
6251fi
6252
6253
6254 eval "$ac_cv_use_stattext"
6255 if test "$no_cache" != 1; then
6256 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6257 fi
6258
6259 if test "$wxUSE_STATTEXT" = yes; then
6260 echo "$ac_t""yes" 1>&6
6261 else
6262 echo "$ac_t""no" 1>&6
6263 fi
6264
6265
698dcdb6 6266 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
8db37e06 6267echo "configure:6268: checking for --enable-statusbar" >&5
10f2d63a
VZ
6268 no_cache=0
6269 # Check whether --enable-statusbar or --disable-statusbar was given.
6270if test "${enable_statusbar+set}" = set; then
6271 enableval="$enable_statusbar"
698dcdb6 6272
10f2d63a
VZ
6273 if test "$enableval" = yes; then
6274 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6275 else
6276 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6277 fi
698dcdb6 6278
10f2d63a 6279else
698dcdb6 6280
10f2d63a
VZ
6281 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6282 if test "x$LINE" != x ; then
6283 eval "DEFAULT_$LINE"
6284 else
6285 no_cache=1
6286 fi
6287
6288 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6289
6290fi
10f2d63a
VZ
6291
6292
6293 eval "$ac_cv_use_statusbar"
6294 if test "$no_cache" != 1; then
6295 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6296 fi
6297
6298 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6299 echo "$ac_t""yes" 1>&6
10f2d63a 6300 else
698dcdb6 6301 echo "$ac_t""no" 1>&6
10f2d63a 6302 fi
698dcdb6 6303
10f2d63a 6304
698dcdb6 6305 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
8db37e06 6306echo "configure:6307: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6307 no_cache=0
6308 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6309if test "${enable_tabdialog+set}" = set; then
6310 enableval="$enable_tabdialog"
698dcdb6 6311
10f2d63a
VZ
6312 if test "$enableval" = yes; then
6313 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6314 else
6315 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6316 fi
698dcdb6 6317
10f2d63a 6318else
698dcdb6 6319
10f2d63a
VZ
6320 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6321 if test "x$LINE" != x ; then
6322 eval "DEFAULT_$LINE"
6323 else
6324 no_cache=1
6325 fi
6326
6327 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6328
6329fi
10f2d63a
VZ
6330
6331
6332 eval "$ac_cv_use_tabdialog"
6333 if test "$no_cache" != 1; then
6334 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6335 fi
6336
6337 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6338 echo "$ac_t""yes" 1>&6
10f2d63a 6339 else
698dcdb6 6340 echo "$ac_t""no" 1>&6
10f2d63a 6341 fi
698dcdb6 6342
10f2d63a 6343
1e6feb95 6344 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
8db37e06 6345echo "configure:6346: checking for --enable-textctrl" >&5
1e6feb95
VZ
6346 no_cache=0
6347 # Check whether --enable-textctrl or --disable-textctrl was given.
6348if test "${enable_textctrl+set}" = set; then
6349 enableval="$enable_textctrl"
6350
6351 if test "$enableval" = yes; then
6352 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6353 else
6354 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6355 fi
6356
6357else
6358
6359 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6360 if test "x$LINE" != x ; then
6361 eval "DEFAULT_$LINE"
6362 else
6363 no_cache=1
6364 fi
6365
6366 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6367
6368fi
6369
6370
6371 eval "$ac_cv_use_textctrl"
6372 if test "$no_cache" != 1; then
6373 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6374 fi
6375
6376 if test "$wxUSE_TEXTCTRL" = yes; then
6377 echo "$ac_t""yes" 1>&6
6378 else
6379 echo "$ac_t""no" 1>&6
6380 fi
6381
6382
698dcdb6 6383 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
8db37e06 6384echo "configure:6385: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6385 no_cache=0
6386 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6387if test "${enable_togglebtn+set}" = set; then
6388 enableval="$enable_togglebtn"
698dcdb6 6389
1db8dc4a
VZ
6390 if test "$enableval" = yes; then
6391 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6392 else
6393 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6394 fi
698dcdb6 6395
1db8dc4a 6396else
698dcdb6 6397
1db8dc4a
VZ
6398 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6399 if test "x$LINE" != x ; then
6400 eval "DEFAULT_$LINE"
6401 else
6402 no_cache=1
6403 fi
6404
6405 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6406
6407fi
1db8dc4a
VZ
6408
6409
6410 eval "$ac_cv_use_togglebtn"
6411 if test "$no_cache" != 1; then
6412 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6413 fi
6414
6415 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6416 echo "$ac_t""yes" 1>&6
1db8dc4a 6417 else
698dcdb6 6418 echo "$ac_t""no" 1>&6
1db8dc4a 6419 fi
698dcdb6 6420
1db8dc4a 6421
698dcdb6 6422 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
8db37e06 6423echo "configure:6424: checking for --enable-toolbar" >&5
10f2d63a
VZ
6424 no_cache=0
6425 # Check whether --enable-toolbar or --disable-toolbar was given.
6426if test "${enable_toolbar+set}" = set; then
6427 enableval="$enable_toolbar"
698dcdb6 6428
10f2d63a
VZ
6429 if test "$enableval" = yes; then
6430 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6431 else
6432 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6433 fi
698dcdb6 6434
10f2d63a 6435else
698dcdb6 6436
10f2d63a
VZ
6437 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6438 if test "x$LINE" != x ; then
6439 eval "DEFAULT_$LINE"
6440 else
6441 no_cache=1
6442 fi
6443
6444 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
6445
6446fi
10f2d63a
VZ
6447
6448
6449 eval "$ac_cv_use_toolbar"
6450 if test "$no_cache" != 1; then
6451 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6452 fi
6453
6454 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 6455 echo "$ac_t""yes" 1>&6
10f2d63a 6456 else
698dcdb6 6457 echo "$ac_t""no" 1>&6
10f2d63a 6458 fi
698dcdb6 6459
10f2d63a 6460
698dcdb6 6461 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
8db37e06 6462echo "configure:6463: checking for --enable-tbarnative" >&5
360d6699
VZ
6463 no_cache=0
6464 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6465if test "${enable_tbarnative+set}" = set; then
6466 enableval="$enable_tbarnative"
698dcdb6 6467
360d6699
VZ
6468 if test "$enableval" = yes; then
6469 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6470 else
6471 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6472 fi
698dcdb6 6473
360d6699 6474else
698dcdb6 6475
360d6699
VZ
6476 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6477 if test "x$LINE" != x ; then
6478 eval "DEFAULT_$LINE"
6479 else
6480 no_cache=1
6481 fi
6482
6483 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
6484
6485fi
360d6699
VZ
6486
6487
6488 eval "$ac_cv_use_tbarnative"
6489 if test "$no_cache" != 1; then
6490 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6491 fi
6492
6493 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 6494 echo "$ac_t""yes" 1>&6
360d6699 6495 else
698dcdb6 6496 echo "$ac_t""no" 1>&6
360d6699 6497 fi
698dcdb6 6498
360d6699 6499
698dcdb6 6500 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
8db37e06 6501echo "configure:6502: checking for --enable-tbarsmpl" >&5
360d6699
VZ
6502 no_cache=0
6503 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6504if test "${enable_tbarsmpl+set}" = set; then
6505 enableval="$enable_tbarsmpl"
698dcdb6 6506
360d6699
VZ
6507 if test "$enableval" = yes; then
6508 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6509 else
6510 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6511 fi
698dcdb6 6512
360d6699 6513else
698dcdb6 6514
360d6699
VZ
6515 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6516 if test "x$LINE" != x ; then
6517 eval "DEFAULT_$LINE"
6518 else
6519 no_cache=1
6520 fi
6521
6522 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
6523
6524fi
360d6699
VZ
6525
6526
6527 eval "$ac_cv_use_tbarsmpl"
6528 if test "$no_cache" != 1; then
6529 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6530 fi
6531
6532 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 6533 echo "$ac_t""yes" 1>&6
360d6699 6534 else
698dcdb6 6535 echo "$ac_t""no" 1>&6
360d6699 6536 fi
698dcdb6 6537
360d6699 6538
698dcdb6 6539 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
8db37e06 6540echo "configure:6541: checking for --enable-treectrl" >&5
10f2d63a
VZ
6541 no_cache=0
6542 # Check whether --enable-treectrl or --disable-treectrl was given.
6543if test "${enable_treectrl+set}" = set; then
6544 enableval="$enable_treectrl"
698dcdb6 6545
10f2d63a
VZ
6546 if test "$enableval" = yes; then
6547 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6548 else
6549 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6550 fi
698dcdb6 6551
10f2d63a 6552else
698dcdb6 6553
10f2d63a
VZ
6554 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6555 if test "x$LINE" != x ; then
6556 eval "DEFAULT_$LINE"
6557 else
6558 no_cache=1
6559 fi
6560
6561 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
6562
6563fi
10f2d63a
VZ
6564
6565
1e6feb95
VZ
6566 eval "$ac_cv_use_treectrl"
6567 if test "$no_cache" != 1; then
6568 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6569 fi
6570
6571 if test "$wxUSE_TREECTRL" = yes; then
6572 echo "$ac_t""yes" 1>&6
6573 else
6574 echo "$ac_t""no" 1>&6
6575 fi
6576
6577
9f41d601 6578 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
8db37e06 6579echo "configure:6580: checking for --enable-popupwin" >&5
9f41d601
RR
6580 no_cache=0
6581 # Check whether --enable-popupwin or --disable-popupwin was given.
6582if test "${enable_popupwin+set}" = set; then
6583 enableval="$enable_popupwin"
6584
6585 if test "$enableval" = yes; then
6586 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6587 else
6588 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6589 fi
6590
6591else
6592
6593 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6594 if test "x$LINE" != x ; then
6595 eval "DEFAULT_$LINE"
6596 else
6597 no_cache=1
6598 fi
6599
6600 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6601
6602fi
6603
6604
6605 eval "$ac_cv_use_popupwin"
6606 if test "$no_cache" != 1; then
6607 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6608 fi
6609
6610 if test "$wxUSE_POPUPWIN" = yes; then
6611 echo "$ac_t""yes" 1>&6
6612 else
6613 echo "$ac_t""no" 1>&6
6614 fi
6615
6616
1e6feb95
VZ
6617
6618
6619 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
8db37e06 6620echo "configure:6621: checking for --enable-commondlg" >&5
1e6feb95
VZ
6621 no_cache=0
6622 # Check whether --enable-commondlg or --disable-commondlg was given.
6623if test "${enable_commondlg+set}" = set; then
6624 enableval="$enable_commondlg"
6625
6626 if test "$enableval" = yes; then
6627 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6628 else
6629 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6630 fi
6631
6632else
6633
6634 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6635 if test "x$LINE" != x ; then
6636 eval "DEFAULT_$LINE"
6637 else
6638 no_cache=1
6639 fi
6640
6641 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6642
6643fi
6644
6645
6646 eval "$ac_cv_use_commondlg"
6647 if test "$no_cache" != 1; then
6648 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6649 fi
6650
6651 if test "$wxUSE_COMMONDLGS" = yes; then
6652 echo "$ac_t""yes" 1>&6
6653 else
6654 echo "$ac_t""no" 1>&6
6655 fi
6656
6657
6658 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
8db37e06 6659echo "configure:6660: checking for --enable-choicedlg" >&5
1e6feb95
VZ
6660 no_cache=0
6661 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6662if test "${enable_choicedlg+set}" = set; then
6663 enableval="$enable_choicedlg"
6664
6665 if test "$enableval" = yes; then
6666 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6667 else
6668 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6669 fi
6670
6671else
6672
6673 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6674 if test "x$LINE" != x ; then
6675 eval "DEFAULT_$LINE"
6676 else
6677 no_cache=1
6678 fi
6679
6680 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6681
6682fi
6683
6684
6685 eval "$ac_cv_use_choicedlg"
6686 if test "$no_cache" != 1; then
6687 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6688 fi
6689
6690 if test "$wxUSE_CHOICEDLG" = yes; then
6691 echo "$ac_t""yes" 1>&6
6692 else
6693 echo "$ac_t""no" 1>&6
6694 fi
6695
6696
6697 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
8db37e06 6698echo "configure:6699: checking for --enable-coldlg" >&5
1e6feb95
VZ
6699 no_cache=0
6700 # Check whether --enable-coldlg or --disable-coldlg was given.
6701if test "${enable_coldlg+set}" = set; then
6702 enableval="$enable_coldlg"
6703
6704 if test "$enableval" = yes; then
6705 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6706 else
6707 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6708 fi
6709
6710else
6711
6712 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6713 if test "x$LINE" != x ; then
6714 eval "DEFAULT_$LINE"
6715 else
6716 no_cache=1
6717 fi
6718
6719 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6720
6721fi
6722
6723
6724 eval "$ac_cv_use_coldlg"
6725 if test "$no_cache" != 1; then
6726 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6727 fi
6728
6729 if test "$wxUSE_COLOURDLG" = yes; then
6730 echo "$ac_t""yes" 1>&6
6731 else
6732 echo "$ac_t""no" 1>&6
6733 fi
6734
6735
6736 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
8db37e06 6737echo "configure:6738: checking for --enable-filedlg" >&5
1e6feb95
VZ
6738 no_cache=0
6739 # Check whether --enable-filedlg or --disable-filedlg was given.
6740if test "${enable_filedlg+set}" = set; then
6741 enableval="$enable_filedlg"
6742
6743 if test "$enableval" = yes; then
6744 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6745 else
6746 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6747 fi
6748
6749else
6750
6751 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6752 if test "x$LINE" != x ; then
6753 eval "DEFAULT_$LINE"
6754 else
6755 no_cache=1
6756 fi
6757
6758 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6759
6760fi
6761
6762
6763 eval "$ac_cv_use_filedlg"
6764 if test "$no_cache" != 1; then
6765 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6766 fi
6767
6768 if test "$wxUSE_FILEDLG" = yes; then
6769 echo "$ac_t""yes" 1>&6
6770 else
6771 echo "$ac_t""no" 1>&6
6772 fi
6773
6774
8db37e06
VZ
6775 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6776echo "configure:6777: checking for --enable-filedlg" >&5
6777 no_cache=0
6778 # Check whether --enable-filedlg or --disable-filedlg was given.
6779if test "${enable_filedlg+set}" = set; then
6780 enableval="$enable_filedlg"
6781
6782 if test "$enableval" = yes; then
6783 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes'
6784 else
6785 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no'
6786 fi
6787
6788else
6789
6790 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6791 if test "x$LINE" != x ; then
6792 eval "DEFAULT_$LINE"
6793 else
6794 no_cache=1
6795 fi
6796
6797 ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
6798
6799fi
6800
6801
6802 eval "$ac_cv_use_filedlg"
6803 if test "$no_cache" != 1; then
6804 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6805 fi
6806
6807 if test "$wxUSE_FINDREPLDLG" = yes; then
6808 echo "$ac_t""yes" 1>&6
6809 else
6810 echo "$ac_t""no" 1>&6
6811 fi
6812
6813
1e6feb95 6814 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
8db37e06 6815echo "configure:6816: checking for --enable-fontdlg" >&5
1e6feb95
VZ
6816 no_cache=0
6817 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6818if test "${enable_fontdlg+set}" = set; then
6819 enableval="$enable_fontdlg"
6820
6821 if test "$enableval" = yes; then
6822 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6823 else
6824 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6825 fi
6826
6827else
6828
6829 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6830 if test "x$LINE" != x ; then
6831 eval "DEFAULT_$LINE"
6832 else
6833 no_cache=1
6834 fi
6835
6836 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6837
6838fi
6839
6840
6841 eval "$ac_cv_use_fontdlg"
6842 if test "$no_cache" != 1; then
6843 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6844 fi
6845
6846 if test "$wxUSE_FONTDLG" = yes; then
6847 echo "$ac_t""yes" 1>&6
6848 else
6849 echo "$ac_t""no" 1>&6
6850 fi
6851
6852
6853 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
8db37e06 6854echo "configure:6855: checking for --enable-dirdlg" >&5
1e6feb95
VZ
6855 no_cache=0
6856 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6857if test "${enable_dirdlg+set}" = set; then
6858 enableval="$enable_dirdlg"
6859
6860 if test "$enableval" = yes; then
6861 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6862 else
6863 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6864 fi
6865
6866else
6867
6868 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6869 if test "x$LINE" != x ; then
6870 eval "DEFAULT_$LINE"
6871 else
6872 no_cache=1
6873 fi
6874
6875 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6876
6877fi
6878
6879
6880 eval "$ac_cv_use_dirdlg"
10f2d63a 6881 if test "$no_cache" != 1; then
1e6feb95 6882 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6883 fi
6884
1e6feb95 6885 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 6886 echo "$ac_t""yes" 1>&6
10f2d63a 6887 else
698dcdb6 6888 echo "$ac_t""no" 1>&6
10f2d63a 6889 fi
698dcdb6
VZ
6890
6891
1e6feb95 6892 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
8db37e06 6893echo "configure:6894: checking for --enable-msgdlg" >&5
10f2d63a 6894 no_cache=0
1e6feb95
VZ
6895 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6896if test "${enable_msgdlg+set}" = set; then
6897 enableval="$enable_msgdlg"
698dcdb6 6898
10f2d63a 6899 if test "$enableval" = yes; then
1e6feb95 6900 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 6901 else
1e6feb95 6902 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 6903 fi
698dcdb6 6904
10f2d63a 6905else
698dcdb6 6906
1e6feb95 6907 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6908 if test "x$LINE" != x ; then
6909 eval "DEFAULT_$LINE"
6910 else
6911 no_cache=1
6912 fi
6913
1e6feb95 6914 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
6915
6916fi
10f2d63a
VZ
6917
6918
1e6feb95 6919 eval "$ac_cv_use_msgdlg"
10f2d63a 6920 if test "$no_cache" != 1; then
1e6feb95 6921 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6922 fi
6923
1e6feb95 6924 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 6925 echo "$ac_t""yes" 1>&6
10f2d63a 6926 else
698dcdb6 6927 echo "$ac_t""no" 1>&6
10f2d63a 6928 fi
698dcdb6 6929
10f2d63a 6930
1e6feb95 6931 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
8db37e06 6932echo "configure:6933: checking for --enable-numberdlg" >&5
10f2d63a 6933 no_cache=0
1e6feb95
VZ
6934 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6935if test "${enable_numberdlg+set}" = set; then
6936 enableval="$enable_numberdlg"
698dcdb6 6937
10f2d63a 6938 if test "$enableval" = yes; then
1e6feb95 6939 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 6940 else
1e6feb95 6941 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 6942 fi
698dcdb6 6943
10f2d63a 6944else
698dcdb6 6945
1e6feb95 6946 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6947 if test "x$LINE" != x ; then
6948 eval "DEFAULT_$LINE"
6949 else
6950 no_cache=1
6951 fi
6952
1e6feb95 6953 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
6954
6955fi
10f2d63a
VZ
6956
6957
1e6feb95 6958 eval "$ac_cv_use_numberdlg"
10f2d63a 6959 if test "$no_cache" != 1; then
1e6feb95 6960 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6961 fi
6962
1e6feb95 6963 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 6964 echo "$ac_t""yes" 1>&6
10f2d63a 6965 else
698dcdb6 6966 echo "$ac_t""no" 1>&6
10f2d63a 6967 fi
698dcdb6 6968
10f2d63a 6969
698dcdb6 6970 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
8db37e06 6971echo "configure:6972: checking for --enable-textdlg" >&5
10f2d63a
VZ
6972 no_cache=0
6973 # Check whether --enable-textdlg or --disable-textdlg was given.
6974if test "${enable_textdlg+set}" = set; then
6975 enableval="$enable_textdlg"
698dcdb6 6976
10f2d63a
VZ
6977 if test "$enableval" = yes; then
6978 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6979 else
6980 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6981 fi
698dcdb6 6982
10f2d63a 6983else
698dcdb6 6984
10f2d63a
VZ
6985 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6986 if test "x$LINE" != x ; then
6987 eval "DEFAULT_$LINE"
6988 else
6989 no_cache=1
6990 fi
6991
6992 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
6993
6994fi
10f2d63a
VZ
6995
6996
6997 eval "$ac_cv_use_textdlg"
6998 if test "$no_cache" != 1; then
6999 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7000 fi
7001
7002 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 7003 echo "$ac_t""yes" 1>&6
10f2d63a 7004 else
698dcdb6 7005 echo "$ac_t""no" 1>&6
10f2d63a 7006 fi
698dcdb6 7007
10f2d63a 7008
698dcdb6 7009 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
8db37e06 7010echo "configure:7011: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7011 no_cache=0
7012 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7013if test "${enable_tipdlg+set}" = set; then
7014 enableval="$enable_tipdlg"
698dcdb6 7015
10f2d63a
VZ
7016 if test "$enableval" = yes; then
7017 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7018 else
7019 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7020 fi
698dcdb6 7021
10f2d63a 7022else
698dcdb6 7023
10f2d63a
VZ
7024 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7025 if test "x$LINE" != x ; then
7026 eval "DEFAULT_$LINE"
7027 else
7028 no_cache=1
7029 fi
7030
7031 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
7032
7033fi
10f2d63a
VZ
7034
7035
7036 eval "$ac_cv_use_tipdlg"
7037 if test "$no_cache" != 1; then
7038 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7039 fi
7040
7041 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 7042 echo "$ac_t""yes" 1>&6
10f2d63a 7043 else
698dcdb6 7044 echo "$ac_t""no" 1>&6
10f2d63a 7045 fi
698dcdb6 7046
10f2d63a 7047
698dcdb6 7048 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
8db37e06 7049echo "configure:7050: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7050 no_cache=0
7051 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7052if test "${enable_progressdlg+set}" = set; then
7053 enableval="$enable_progressdlg"
698dcdb6 7054
10f2d63a
VZ
7055 if test "$enableval" = yes; then
7056 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7057 else
7058 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7059 fi
698dcdb6 7060
10f2d63a 7061else
698dcdb6 7062
10f2d63a
VZ
7063 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7064 if test "x$LINE" != x ; then
7065 eval "DEFAULT_$LINE"
7066 else
7067 no_cache=1
7068 fi
7069
7070 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7071
7072fi
10f2d63a
VZ
7073
7074
7075 eval "$ac_cv_use_progressdlg"
7076 if test "$no_cache" != 1; then
7077 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7078 fi
7079
7080 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7081 echo "$ac_t""yes" 1>&6
10f2d63a 7082 else
698dcdb6 7083 echo "$ac_t""no" 1>&6
10f2d63a 7084 fi
698dcdb6 7085
10f2d63a 7086
b1f5d087 7087 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
8db37e06 7088echo "configure:7089: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7089 no_cache=0
7090 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7091if test "${enable_wizarddlg+set}" = set; then
7092 enableval="$enable_wizarddlg"
7093
7094 if test "$enableval" = yes; then
7095 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7096 else
7097 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7098 fi
7099
7100else
7101
7102 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7103 if test "x$LINE" != x ; then
7104 eval "DEFAULT_$LINE"
7105 else
7106 no_cache=1
7107 fi
7108
7109 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7110
7111fi
7112
7113
7114 eval "$ac_cv_use_wizarddlg"
7115 if test "$no_cache" != 1; then
7116 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7117 fi
7118
7119 if test "$wxUSE_WIZARDDLG" = yes; then
7120 echo "$ac_t""yes" 1>&6
7121 else
7122 echo "$ac_t""no" 1>&6
7123 fi
7124
7125
7126
7127
1e6feb95 7128 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
8db37e06 7129echo "configure:7130: checking for --enable-menus" >&5
1e6feb95
VZ
7130 no_cache=0
7131 # Check whether --enable-menus or --disable-menus was given.
7132if test "${enable_menus+set}" = set; then
7133 enableval="$enable_menus"
7134
7135 if test "$enableval" = yes; then
7136 ac_cv_use_menus='wxUSE_MENUS=yes'
7137 else
7138 ac_cv_use_menus='wxUSE_MENUS=no'
7139 fi
7140
7141else
7142
7143 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7144 if test "x$LINE" != x ; then
7145 eval "DEFAULT_$LINE"
7146 else
7147 no_cache=1
7148 fi
7149
7150 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7151
7152fi
7153
7154
7155 eval "$ac_cv_use_menus"
7156 if test "$no_cache" != 1; then
7157 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7158 fi
7159
7160 if test "$wxUSE_MENUS" = yes; then
7161 echo "$ac_t""yes" 1>&6
7162 else
7163 echo "$ac_t""no" 1>&6
7164 fi
7165
7166
698dcdb6 7167 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
8db37e06 7168echo "configure:7169: checking for --enable-miniframe" >&5
10f2d63a
VZ
7169 no_cache=0
7170 # Check whether --enable-miniframe or --disable-miniframe was given.
7171if test "${enable_miniframe+set}" = set; then
7172 enableval="$enable_miniframe"
698dcdb6 7173
10f2d63a
VZ
7174 if test "$enableval" = yes; then
7175 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7176 else
7177 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7178 fi
698dcdb6 7179
10f2d63a 7180else
698dcdb6 7181
10f2d63a
VZ
7182 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7183 if test "x$LINE" != x ; then
7184 eval "DEFAULT_$LINE"
7185 else
7186 no_cache=1
7187 fi
7188
7189 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7190
7191fi
10f2d63a
VZ
7192
7193
7194 eval "$ac_cv_use_miniframe"
7195 if test "$no_cache" != 1; then
7196 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7197 fi
7198
7199 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7200 echo "$ac_t""yes" 1>&6
10f2d63a 7201 else
698dcdb6 7202 echo "$ac_t""no" 1>&6
10f2d63a 7203 fi
698dcdb6 7204
10f2d63a 7205
698dcdb6 7206 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
8db37e06 7207echo "configure:7208: checking for --enable-tooltips" >&5
10f2d63a
VZ
7208 no_cache=0
7209 # Check whether --enable-tooltips or --disable-tooltips was given.
7210if test "${enable_tooltips+set}" = set; then
7211 enableval="$enable_tooltips"
698dcdb6 7212
10f2d63a
VZ
7213 if test "$enableval" = yes; then
7214 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7215 else
7216 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7217 fi
698dcdb6 7218
10f2d63a 7219else
698dcdb6 7220
10f2d63a
VZ
7221 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7222 if test "x$LINE" != x ; then
7223 eval "DEFAULT_$LINE"
7224 else
7225 no_cache=1
7226 fi
7227
7228 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7229
7230fi
10f2d63a
VZ
7231
7232
7233 eval "$ac_cv_use_tooltips"
7234 if test "$no_cache" != 1; then
7235 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7236 fi
7237
7238 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7239 echo "$ac_t""yes" 1>&6
10f2d63a 7240 else
698dcdb6 7241 echo "$ac_t""no" 1>&6
10f2d63a 7242 fi
698dcdb6 7243
10f2d63a 7244
698dcdb6 7245 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
8db37e06 7246echo "configure:7247: checking for --enable-splines" >&5
10f2d63a
VZ
7247 no_cache=0
7248 # Check whether --enable-splines or --disable-splines was given.
7249if test "${enable_splines+set}" = set; then
7250 enableval="$enable_splines"
698dcdb6 7251
10f2d63a
VZ
7252 if test "$enableval" = yes; then
7253 ac_cv_use_splines='wxUSE_SPLINES=yes'
7254 else
7255 ac_cv_use_splines='wxUSE_SPLINES=no'
7256 fi
698dcdb6 7257
10f2d63a 7258else
698dcdb6 7259
10f2d63a
VZ
7260 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7261 if test "x$LINE" != x ; then
7262 eval "DEFAULT_$LINE"
7263 else
7264 no_cache=1
7265 fi
7266
7267 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7268
7269fi
10f2d63a
VZ
7270
7271
7272 eval "$ac_cv_use_splines"
7273 if test "$no_cache" != 1; then
7274 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7275 fi
7276
7277 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7278 echo "$ac_t""yes" 1>&6
10f2d63a 7279 else
698dcdb6 7280 echo "$ac_t""no" 1>&6
10f2d63a 7281 fi
698dcdb6 7282
10f2d63a 7283
698dcdb6 7284 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
8db37e06 7285echo "configure:7286: checking for --enable-validators" >&5
10f2d63a
VZ
7286 no_cache=0
7287 # Check whether --enable-validators or --disable-validators was given.
7288if test "${enable_validators+set}" = set; then
7289 enableval="$enable_validators"
698dcdb6 7290
10f2d63a
VZ
7291 if test "$enableval" = yes; then
7292 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7293 else
7294 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7295 fi
698dcdb6 7296
10f2d63a 7297else
698dcdb6 7298
10f2d63a
VZ
7299 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7300 if test "x$LINE" != x ; then
7301 eval "DEFAULT_$LINE"
7302 else
7303 no_cache=1
7304 fi
7305
7306 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7307
7308fi
10f2d63a
VZ
7309
7310
7311 eval "$ac_cv_use_validators"
7312 if test "$no_cache" != 1; then
7313 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7314 fi
7315
7316 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7317 echo "$ac_t""yes" 1>&6
10f2d63a 7318 else
698dcdb6 7319 echo "$ac_t""no" 1>&6
10f2d63a 7320 fi
698dcdb6 7321
10f2d63a 7322
698dcdb6 7323 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
8db37e06 7324echo "configure:7325: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7325 no_cache=0
7326 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7327if test "${enable_busyinfo+set}" = set; then
7328 enableval="$enable_busyinfo"
698dcdb6 7329
10f2d63a
VZ
7330 if test "$enableval" = yes; then
7331 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7332 else
7333 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7334 fi
698dcdb6 7335
10f2d63a 7336else
698dcdb6 7337
10f2d63a
VZ
7338 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7339 if test "x$LINE" != x ; then
7340 eval "DEFAULT_$LINE"
7341 else
7342 no_cache=1
7343 fi
7344
7345 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
7346
7347fi
10f2d63a
VZ
7348
7349
7350 eval "$ac_cv_use_busyinfo"
7351 if test "$no_cache" != 1; then
7352 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7353 fi
7354
7355 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 7356 echo "$ac_t""yes" 1>&6
10f2d63a 7357 else
698dcdb6 7358 echo "$ac_t""no" 1>&6
10f2d63a 7359 fi
698dcdb6 7360
10f2d63a 7361
698dcdb6 7362 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
8db37e06 7363echo "configure:7364: checking for --enable-joystick" >&5
f6bcfd97
BP
7364 no_cache=0
7365 # Check whether --enable-joystick or --disable-joystick was given.
7366if test "${enable_joystick+set}" = set; then
7367 enableval="$enable_joystick"
698dcdb6 7368
f6bcfd97
BP
7369 if test "$enableval" = yes; then
7370 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7371 else
7372 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7373 fi
698dcdb6 7374
f6bcfd97 7375else
698dcdb6 7376
f6bcfd97
BP
7377 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7378 if test "x$LINE" != x ; then
7379 eval "DEFAULT_$LINE"
7380 else
7381 no_cache=1
7382 fi
7383
7384 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
7385
7386fi
f6bcfd97
BP
7387
7388
7389 eval "$ac_cv_use_joystick"
7390 if test "$no_cache" != 1; then
7391 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7392 fi
7393
7394 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 7395 echo "$ac_t""yes" 1>&6
f6bcfd97 7396 else
698dcdb6 7397 echo "$ac_t""no" 1>&6
f6bcfd97 7398 fi
698dcdb6
VZ
7399
7400
1e6feb95 7401 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
8db37e06 7402echo "configure:7403: checking for --enable-metafile" >&5
1e6feb95
VZ
7403 no_cache=0
7404 # Check whether --enable-metafile or --disable-metafile was given.
7405if test "${enable_metafile+set}" = set; then
7406 enableval="$enable_metafile"
7407
7408 if test "$enableval" = yes; then
7409 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7410 else
7411 ac_cv_use_metafile='wxUSE_METAFILE=no'
7412 fi
7413
7414else
7415
7416 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7417 if test "x$LINE" != x ; then
7418 eval "DEFAULT_$LINE"
7419 else
7420 no_cache=1
7421 fi
7422
7423 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7424
7425fi
7426
7427
7428 eval "$ac_cv_use_metafile"
7429 if test "$no_cache" != 1; then
7430 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7431 fi
7432
7433 if test "$wxUSE_METAFILE" = yes; then
7434 echo "$ac_t""yes" 1>&6
7435 else
7436 echo "$ac_t""no" 1>&6
7437 fi
7438
7439
24fd6d87 7440 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
8db37e06 7441echo "configure:7442: checking for --enable-dragimage" >&5
24fd6d87
VZ
7442 no_cache=0
7443 # Check whether --enable-dragimage or --disable-dragimage was given.
7444if test "${enable_dragimage+set}" = set; then
7445 enableval="$enable_dragimage"
7446
7447 if test "$enableval" = yes; then
7448 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7449 else
7450 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7451 fi
7452
7453else
7454
7455 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7456 if test "x$LINE" != x ; then
7457 eval "DEFAULT_$LINE"
7458 else
7459 no_cache=1
7460 fi
7461
7462 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7463
7464fi
7465
7466
7467 eval "$ac_cv_use_dragimage"
7468 if test "$no_cache" != 1; then
7469 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7470 fi
7471
7472 if test "$wxUSE_DRAGIMAGE" = yes; then
7473 echo "$ac_t""yes" 1>&6
7474 else
7475 echo "$ac_t""no" 1>&6
7476 fi
7477
7478
10f2d63a 7479
698dcdb6
VZ
7480
7481 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
8db37e06 7482echo "configure:7483: checking for --enable-image" >&5
0046ff7c
VS
7483 no_cache=0
7484 # Check whether --enable-image or --disable-image was given.
7485if test "${enable_image+set}" = set; then
7486 enableval="$enable_image"
698dcdb6 7487
0046ff7c
VS
7488 if test "$enableval" = yes; then
7489 ac_cv_use_image='wxUSE_IMAGE=yes'
7490 else
7491 ac_cv_use_image='wxUSE_IMAGE=no'
7492 fi
698dcdb6 7493
0046ff7c 7494else
698dcdb6 7495
0046ff7c
VS
7496 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7497 if test "x$LINE" != x ; then
7498 eval "DEFAULT_$LINE"
7499 else
7500 no_cache=1
7501 fi
7502
7503 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
7504
7505fi
0046ff7c
VS
7506
7507
7508 eval "$ac_cv_use_image"
7509 if test "$no_cache" != 1; then
7510 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7511 fi
7512
7513 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 7514 echo "$ac_t""yes" 1>&6
0046ff7c 7515 else
698dcdb6 7516 echo "$ac_t""no" 1>&6
0046ff7c 7517 fi
698dcdb6 7518
0046ff7c 7519
698dcdb6 7520 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
8db37e06 7521echo "configure:7522: checking for --enable-gif" >&5
10f2d63a
VZ
7522 no_cache=0
7523 # Check whether --enable-gif or --disable-gif was given.
7524if test "${enable_gif+set}" = set; then
7525 enableval="$enable_gif"
698dcdb6 7526
10f2d63a
VZ
7527 if test "$enableval" = yes; then
7528 ac_cv_use_gif='wxUSE_GIF=yes'
7529 else
7530 ac_cv_use_gif='wxUSE_GIF=no'
7531 fi
698dcdb6 7532
10f2d63a 7533else
698dcdb6 7534
10f2d63a
VZ
7535 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7536 if test "x$LINE" != x ; then
7537 eval "DEFAULT_$LINE"
7538 else
7539 no_cache=1
7540 fi
7541
7542 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
7543
7544fi
10f2d63a
VZ
7545
7546
7547 eval "$ac_cv_use_gif"
7548 if test "$no_cache" != 1; then
7549 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7550 fi
7551
7552 if test "$wxUSE_GIF" = yes; then
698dcdb6 7553 echo "$ac_t""yes" 1>&6
10f2d63a 7554 else
698dcdb6 7555 echo "$ac_t""no" 1>&6
10f2d63a 7556 fi
698dcdb6 7557
10f2d63a 7558
698dcdb6 7559 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
8db37e06 7560echo "configure:7561: checking for --enable-pcx" >&5
10f2d63a
VZ
7561 no_cache=0
7562 # Check whether --enable-pcx or --disable-pcx was given.
7563if test "${enable_pcx+set}" = set; then
7564 enableval="$enable_pcx"
698dcdb6 7565
10f2d63a
VZ
7566 if test "$enableval" = yes; then
7567 ac_cv_use_pcx='wxUSE_PCX=yes'
7568 else
7569 ac_cv_use_pcx='wxUSE_PCX=no'
7570 fi
698dcdb6 7571
10f2d63a 7572else
698dcdb6 7573
10f2d63a
VZ
7574 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7575 if test "x$LINE" != x ; then
7576 eval "DEFAULT_$LINE"
7577 else
7578 no_cache=1
7579 fi
7580
7581 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
7582
7583fi
10f2d63a
VZ
7584
7585
7586 eval "$ac_cv_use_pcx"
7587 if test "$no_cache" != 1; then
7588 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7589 fi
7590
7591 if test "$wxUSE_PCX" = yes; then
698dcdb6 7592 echo "$ac_t""yes" 1>&6
10f2d63a 7593 else
698dcdb6 7594 echo "$ac_t""no" 1>&6
10f2d63a 7595 fi
698dcdb6 7596
10f2d63a 7597
698dcdb6 7598 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
8db37e06 7599echo "configure:7600: checking for --enable-pnm" >&5
10f2d63a
VZ
7600 no_cache=0
7601 # Check whether --enable-pnm or --disable-pnm was given.
7602if test "${enable_pnm+set}" = set; then
7603 enableval="$enable_pnm"
698dcdb6 7604
10f2d63a
VZ
7605 if test "$enableval" = yes; then
7606 ac_cv_use_pnm='wxUSE_PNM=yes'
7607 else
7608 ac_cv_use_pnm='wxUSE_PNM=no'
7609 fi
698dcdb6 7610
10f2d63a 7611else
698dcdb6 7612
10f2d63a
VZ
7613 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7614 if test "x$LINE" != x ; then
7615 eval "DEFAULT_$LINE"
7616 else
7617 no_cache=1
7618 fi
7619
7620 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
7621
7622fi
10f2d63a
VZ
7623
7624
7625 eval "$ac_cv_use_pnm"
7626 if test "$no_cache" != 1; then
7627 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7628 fi
7629
7630 if test "$wxUSE_PNM" = yes; then
698dcdb6 7631 echo "$ac_t""yes" 1>&6
10f2d63a 7632 else
698dcdb6 7633 echo "$ac_t""no" 1>&6
10f2d63a 7634 fi
698dcdb6 7635
10f2d63a 7636
698dcdb6 7637 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
8db37e06 7638echo "configure:7639: checking for --enable-pnm" >&5
0046ff7c
VS
7639 no_cache=0
7640 # Check whether --enable-pnm or --disable-pnm was given.
7641if test "${enable_pnm+set}" = set; then
7642 enableval="$enable_pnm"
698dcdb6 7643
0046ff7c
VS
7644 if test "$enableval" = yes; then
7645 ac_cv_use_pnm='wxUSE_XPM=yes'
7646 else
7647 ac_cv_use_pnm='wxUSE_XPM=no'
7648 fi
698dcdb6 7649
0046ff7c 7650else
698dcdb6 7651
0046ff7c
VS
7652 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7653 if test "x$LINE" != x ; then
7654 eval "DEFAULT_$LINE"
7655 else
7656 no_cache=1
7657 fi
7658
7659 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
7660
7661fi
0046ff7c
VS
7662
7663
7664 eval "$ac_cv_use_pnm"
7665 if test "$no_cache" != 1; then
7666 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7667 fi
7668
7669 if test "$wxUSE_XPM" = yes; then
698dcdb6 7670 echo "$ac_t""yes" 1>&6
0046ff7c 7671 else
698dcdb6 7672 echo "$ac_t""no" 1>&6
0046ff7c 7673 fi
698dcdb6 7674
0046ff7c 7675
b12915c1
VZ
7676fi
7677
698dcdb6 7678
10f2d63a
VZ
7679 echo "saving argument cache $wx_arg_cache_file"
7680 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 7681
10f2d63a 7682
698dcdb6
VZ
7683
7684echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8db37e06 7685echo "configure:7686: checking for toolkit" >&5
10f2d63a
VZ
7686
7687if test "$wxUSE_GUI" = "yes"; then
7688
b12915c1 7689if test "$USE_BEOS" = 1; then
698dcdb6 7690 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
b12915c1
VZ
7691fi
7692
10f2d63a
VZ
7693if test "$TOOLKIT_GIVEN" = 1; then
7694 for toolkit in `echo $ALL_TOOLKITS`; do
7695 var=wxUSE_$toolkit
7696 eval "value=\$${var}"
7697 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7698 done
7699else
7700 for toolkit in `echo $ALL_TOOLKITS`; do
7701 if test "$has_toolkit_in_cache" != 1; then
7702 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7703 else
7704 var=DEFAULT_wxUSE_$toolkit
7705 fi
7706 eval "wxUSE_$toolkit=\$${var}"
7707 done
7708fi
7709
1e6feb95 7710NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}`
cf27ef00 7711
ec14dd32
VZ
7712case "${host}" in
7713 *-pc-os2_emx )
7714 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7715 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7716 LEX_STEM="lexyy"
7717 ;;
7718 *)
7719 PATH_IFS=':'
7720 LEX_STEM="lex.yy"
7721 ;;
7722esac
10f2d63a
VZ
7723
7724case "$NUM_TOOLKITS" in
7725 1)
7726 ;;
7727 0)
698dcdb6 7728 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
10f2d63a
VZ
7729 ;;
7730 *)
698dcdb6 7731 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
10f2d63a
VZ
7732esac
7733
7734for toolkit in `echo $ALL_TOOLKITS`; do
7735 var=wxUSE_$toolkit
7736 eval "value=\$${var}"
7737 if test "x$value" != x; then
7738 cache_var=CACHE_$toolkit
7739 eval "cache=\$${cache_var}"
7740 if test "$cache" = 1; then
7741 echo "$var=$value" >> ${wx_arg_cache_file}
7742 fi
7743 if test "$value" = 1; then
8168de4c
VZ
7744 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7745 echo "$ac_t""$toolkit_echo" 1>&6
10f2d63a
VZ
7746 fi
7747 fi
7748done
7749
7750else
cf27ef00 7751 PATH_IFS=':'
698dcdb6 7752 echo "$ac_t""base only" 1>&6
10f2d63a
VZ
7753fi
7754
698dcdb6
VZ
7755
7756cat > confcache <<\EOF
10f2d63a
VZ
7757# This file is a shell script that caches the results of configure
7758# tests run on this system so they can be shared between configure
698dcdb6
VZ
7759# scripts and configure runs. It is not useful on other systems.
7760# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 7761#
698dcdb6
VZ
7762# By default, configure uses ./config.cache as the cache file,
7763# creating it if it does not exist already. You can give configure
7764# the --cache-file=FILE option to use a different cache file; that is
7765# what configure does when it calls configure scripts in
7766# subdirectories, so they share the cache.
7767# Giving --cache-file=/dev/null disables caching, for debugging configure.
7768# config.status only pays attention to the cache file if you give it the
7769# --recheck option to rerun configure.
10f2d63a 7770#
698dcdb6 7771EOF
10f2d63a
VZ
7772# The following way of writing the cache mishandles newlines in values,
7773# but we know of no workaround that is simple, portable, and efficient.
7774# So, don't put newlines in cache variables' values.
7775# Ultrix sh set writes to stderr and can't be redirected directly,
7776# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
7777(set) 2>&1 |
7778 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7779 *ac_space=\ *)
7780 # `set' does not quote correctly, so add quotes (double-quote substitution
7781 # turns \\\\ into \\, and sed turns \\ into \).
7782 sed -n \
7783 -e "s/'/'\\\\''/g" \
7784 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7785 ;;
7786 *)
7787 # `set' quotes correctly as required by POSIX, so do not add quotes.
7788 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7789 ;;
7790 esac >> confcache
7791if cmp -s $cache_file confcache; then
7792 :
7793else
10f2d63a 7794 if test -w $cache_file; then
698dcdb6
VZ
7795 echo "updating cache $cache_file"
7796 cat confcache > $cache_file
10f2d63a
VZ
7797 else
7798 echo "not updating unwritable cache $cache_file"
7799 fi
7800fi
7801rm -f confcache
7802
698dcdb6 7803
e59890c3 7804if test "$build" != "$host" ; then
10f2d63a
VZ
7805 CC=$host_alias-gcc
7806 CXX=$host_alias-c++
7807 AR=$host_alias-ar
7808 RANLIB=$host_alias-ranlib
7809 DLLTOOL=$host_alias-dlltool
32832908 7810 RESCOMP=$host_alias-windres
10f2d63a
VZ
7811 LD=$host_alias-ld
7812 NM=$host_alias-nm
7813 STRIP=$host_alias-strip
10f2d63a
VZ
7814fi
7815
698dcdb6 7816# Extract the first word of "gcc", so it can be a program name with args.
1e487827 7817set dummy gcc; ac_word=$2
698dcdb6 7818echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8db37e06 7819echo "configure:7820: checking for $ac_word" >&5
698dcdb6
VZ
7820if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7821 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
7822else
7823 if test -n "$CC"; then
7824 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 7825else
698dcdb6
VZ
7826 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7827 ac_dummy="$PATH"
7828 for ac_dir in $ac_dummy; do
7829 test -z "$ac_dir" && ac_dir=.
7830 if test -f $ac_dir/$ac_word; then
7831 ac_cv_prog_CC="gcc"
7832 break
7833 fi
7834 done
7835 IFS="$ac_save_ifs"
10f2d63a 7836fi
6232543b 7837fi
698dcdb6 7838CC="$ac_cv_prog_CC"
6232543b 7839if test -n "$CC"; then
698dcdb6 7840 echo "$ac_t""$CC" 1>&6
1e487827 7841else
698dcdb6 7842 echo "$ac_t""no" 1>&6
1e487827 7843fi
6232543b 7844
1e487827
VS
7845if test -z "$CC"; then
7846 # Extract the first word of "cc", so it can be a program name with args.
7847set dummy cc; ac_word=$2
698dcdb6 7848echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8db37e06 7849echo "configure:7850: checking for $ac_word" >&5
698dcdb6
VZ
7850if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7851 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7852else
7853 if test -n "$CC"; then
7854 ac_cv_prog_CC="$CC" # Let the user override the test.
7855else
698dcdb6 7856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 7857 ac_prog_rejected=no
698dcdb6
VZ
7858 ac_dummy="$PATH"
7859 for ac_dir in $ac_dummy; do
7860 test -z "$ac_dir" && ac_dir=.
7861 if test -f $ac_dir/$ac_word; then
7862 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7863 ac_prog_rejected=yes
7864 continue
7865 fi
7866 ac_cv_prog_CC="cc"
7867 break
7868 fi
7869 done
7870 IFS="$ac_save_ifs"
1e487827
VS
7871if test $ac_prog_rejected = yes; then
7872 # We found a bogon in the path, so make sure we never use it.
7873 set dummy $ac_cv_prog_CC
7874 shift
698dcdb6 7875 if test $# -gt 0; then
1e487827
VS
7876 # We chose a different compiler from the bogus one.
7877 # However, it has the same basename, so the bogon will be chosen
7878 # first if we set CC to just the basename; use the full file name.
7879 shift
698dcdb6 7880 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
7881 shift
7882 ac_cv_prog_CC="$@"
703e0a69 7883 fi
1e487827
VS
7884fi
7885fi
7886fi
698dcdb6 7887CC="$ac_cv_prog_CC"
1e487827 7888if test -n "$CC"; then
698dcdb6 7889 echo "$ac_t""$CC" 1>&6
703e0a69 7890else
698dcdb6 7891 echo "$ac_t""no" 1>&6
703e0a69 7892fi
1e487827 7893
698dcdb6
VZ
7894 if test -z "$CC"; then
7895 case "`uname -s`" in
7896 *win32* | *WIN32*)
7897 # Extract the first word of "cl", so it can be a program name with args.
7898set dummy cl; ac_word=$2
7899echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8db37e06 7900echo "configure:7901: checking for $ac_word" >&5
698dcdb6
VZ
7901if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7902 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7903else
7904 if test -n "$CC"; then
7905 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 7906else
698dcdb6
VZ
7907 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7908 ac_dummy="$PATH"
7909 for ac_dir in $ac_dummy; do
7910 test -z "$ac_dir" && ac_dir=.
7911 if test -f $ac_dir/$ac_word; then
7912 ac_cv_prog_CC="cl"
7913 break
7914 fi
7915 done
7916 IFS="$ac_save_ifs"
703e0a69 7917fi
1e487827 7918fi
698dcdb6 7919CC="$ac_cv_prog_CC"
1e487827 7920if test -n "$CC"; then
698dcdb6 7921 echo "$ac_t""$CC" 1>&6
1e487827 7922else
698dcdb6 7923 echo "$ac_t""no" 1>&6
1e487827 7924fi
698dcdb6
VZ
7925 ;;
7926 esac
7927 fi
7928 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
7929fi
7930
698dcdb6 7931echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8db37e06 7932echo "configure:7933: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 7933
698dcdb6
VZ
7934ac_ext=c
7935# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7936ac_cpp='$CPP $CPPFLAGS'
7937ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7938ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7939cross_compiling=$ac_cv_prog_cc_cross
6232543b 7940
698dcdb6 7941cat > conftest.$ac_ext << EOF
1e487827 7942
8db37e06 7943#line 7944 "configure"
1e487827
VS
7944#include "confdefs.h"
7945
698dcdb6
VZ
7946main(){return(0);}
7947EOF
8db37e06 7948if { (eval echo configure:7949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
7949 ac_cv_prog_cc_works=yes
7950 # If we can't run a trivial program, we are probably using a cross compiler.
7951 if (./conftest; exit) 2>/dev/null; then
7952 ac_cv_prog_cc_cross=no
7953 else
7954 ac_cv_prog_cc_cross=yes
7955 fi
7956else
7957 echo "configure: failed program was:" >&5
7958 cat conftest.$ac_ext >&5
7959 ac_cv_prog_cc_works=no
7960fi
7961rm -fr conftest*
7962ac_ext=c
7963# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7964ac_cpp='$CPP $CPPFLAGS'
7965ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7966ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7967cross_compiling=$ac_cv_prog_cc_cross
7968
7969echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
7970if test $ac_cv_prog_cc_works = no; then
7971 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
7972fi
7973echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8db37e06 7974echo "configure:7975: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
7975echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
7976cross_compiling=$ac_cv_prog_cc_cross
7977
7978echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8db37e06 7979echo "configure:7980: checking whether we are using GNU C" >&5
698dcdb6
VZ
7980if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
7981 echo $ac_n "(cached) $ac_c" 1>&6
7982else
7983 cat > conftest.c <<EOF
7984#ifdef __GNUC__
7985 yes;
1e487827 7986#endif
698dcdb6 7987EOF
8db37e06 7988if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
7989 ac_cv_prog_gcc=yes
7990else
7991 ac_cv_prog_gcc=no
7992fi
7993fi
1e487827 7994
698dcdb6 7995echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 7996
698dcdb6
VZ
7997if test $ac_cv_prog_gcc = yes; then
7998 GCC=yes
7999else
8000 GCC=
8001fi
1e487827 8002
698dcdb6
VZ
8003ac_test_CFLAGS="${CFLAGS+set}"
8004ac_save_CFLAGS="$CFLAGS"
8005CFLAGS=
8006echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8db37e06 8007echo "configure:8008: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
8008if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8009 echo $ac_n "(cached) $ac_c" 1>&6
8010else
8011 echo 'void f(){}' > conftest.c
8012if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8013 ac_cv_prog_cc_g=yes
8014else
698dcdb6 8015 ac_cv_prog_cc_g=no
10f2d63a 8016fi
698dcdb6
VZ
8017rm -f conftest*
8018
10f2d63a 8019fi
698dcdb6
VZ
8020
8021echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 8022if test "$ac_test_CFLAGS" = set; then
698dcdb6 8023 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
8024elif test $ac_cv_prog_cc_g = yes; then
8025 if test "$GCC" = yes; then
8026 CFLAGS="-g -O2"
8027 else
8028 CFLAGS="-g"
8029 fi
8030else
8031 if test "$GCC" = yes; then
8032 CFLAGS="-O2"
8033 else
8034 CFLAGS=
8035 fi
8036fi
8037
8038
8039CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8040
698dcdb6 8041echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8db37e06 8042echo "configure:8043: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8043# On Suns, sometimes $CPP names a directory.
8044if test -n "$CPP" && test -d "$CPP"; then
8045 CPP=
8046fi
8047if test -z "$CPP"; then
698dcdb6
VZ
8048if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8049 echo $ac_n "(cached) $ac_c" 1>&6
8050else
8051 # This must be in double quotes, not single quotes, because CPP may get
8052 # substituted into the Makefile and "${CC-cc}" will confuse make.
8053 CPP="${CC-cc} -E"
10f2d63a 8054 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8055 # not just through cpp.
8056 cat > conftest.$ac_ext <<EOF
8db37e06 8057#line 8058 "configure"
10f2d63a
VZ
8058#include "confdefs.h"
8059#include <assert.h>
698dcdb6
VZ
8060Syntax Error
8061EOF
8062ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8db37e06 8063{ (eval echo configure:8064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8064ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8065if test -z "$ac_err"; then
10f2d63a
VZ
8066 :
8067else
698dcdb6
VZ
8068 echo "$ac_err" >&5
8069 echo "configure: failed program was:" >&5
10f2d63a 8070 cat conftest.$ac_ext >&5
698dcdb6
VZ
8071 rm -rf conftest*
8072 CPP="${CC-cc} -E -traditional-cpp"
8073 cat > conftest.$ac_ext <<EOF
8db37e06 8074#line 8075 "configure"
10f2d63a 8075#include "confdefs.h"
698dcdb6
VZ
8076#include <assert.h>
8077Syntax Error
8078EOF
8079ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8db37e06 8080{ (eval echo configure:8081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8081ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8082if test -z "$ac_err"; then
8083 :
10f2d63a 8084else
698dcdb6
VZ
8085 echo "$ac_err" >&5
8086 echo "configure: failed program was:" >&5
10f2d63a 8087 cat conftest.$ac_ext >&5
698dcdb6
VZ
8088 rm -rf conftest*
8089 CPP="${CC-cc} -nologo -E"
8090 cat > conftest.$ac_ext <<EOF
8db37e06 8091#line 8092 "configure"
10f2d63a
VZ
8092#include "confdefs.h"
8093#include <assert.h>
698dcdb6
VZ
8094Syntax Error
8095EOF
8096ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8db37e06 8097{ (eval echo configure:8098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8098ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8099if test -z "$ac_err"; then
10f2d63a
VZ
8100 :
8101else
698dcdb6
VZ
8102 echo "$ac_err" >&5
8103 echo "configure: failed program was:" >&5
10f2d63a 8104 cat conftest.$ac_ext >&5
698dcdb6
VZ
8105 rm -rf conftest*
8106 CPP=/lib/cpp
10f2d63a 8107fi
698dcdb6 8108rm -f conftest*
10f2d63a 8109fi
698dcdb6 8110rm -f conftest*
703e0a69 8111fi
698dcdb6
VZ
8112rm -f conftest*
8113 ac_cv_prog_CPP="$CPP"
8114fi
8115 CPP="$ac_cv_prog_CPP"
10f2d63a 8116else
698dcdb6 8117 ac_cv_prog_CPP="$CPP"
10f2d63a 8118fi
698dcdb6 8119echo "$ac_t""$CPP" 1>&6
10f2d63a
VZ
8120
8121
698dcdb6
VZ
8122if test $ac_cv_prog_gcc = yes; then
8123 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8db37e06 8124echo "configure:8125: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8125if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8126 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8127else
8128 ac_pattern="Autoconf.*'x'"
698dcdb6 8129 cat > conftest.$ac_ext <<EOF
8db37e06 8130#line 8131 "configure"
10f2d63a
VZ
8131#include "confdefs.h"
8132#include <sgtty.h>
8133Autoconf TIOCGETP
698dcdb6 8134EOF
10f2d63a
VZ
8135if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8136 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8137 rm -rf conftest*
10f2d63a
VZ
8138 ac_cv_prog_gcc_traditional=yes
8139else
698dcdb6 8140 rm -rf conftest*
10f2d63a
VZ
8141 ac_cv_prog_gcc_traditional=no
8142fi
8143rm -f conftest*
8144
698dcdb6 8145
10f2d63a 8146 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8147 cat > conftest.$ac_ext <<EOF
8db37e06 8148#line 8149 "configure"
10f2d63a
VZ
8149#include "confdefs.h"
8150#include <termio.h>
8151Autoconf TCGETA
698dcdb6 8152EOF
10f2d63a
VZ
8153if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8154 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8155 rm -rf conftest*
10f2d63a
VZ
8156 ac_cv_prog_gcc_traditional=yes
8157fi
8158rm -f conftest*
8159
8160 fi
8161fi
698dcdb6
VZ
8162
8163echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8164 if test $ac_cv_prog_gcc_traditional = yes; then
8165 CC="$CC -traditional"
8166 fi
8167fi
8168
703e0a69 8169
698dcdb6
VZ
8170
8171ac_ext=C
8172# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8173ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8174ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8175ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8176cross_compiling=$ac_cv_prog_cxx_cross
8177
8178
8179for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8180do
8181# Extract the first word of "$ac_prog", so it can be a program name with args.
8182set dummy $ac_prog; ac_word=$2
8183echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8db37e06 8184echo "configure:8185: checking for $ac_word" >&5
698dcdb6
VZ
8185if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8186 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8187else
8188 if test -n "$CXX"; then
8189 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8190else
698dcdb6
VZ
8191 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8192 ac_dummy="$PATH"
8193 for ac_dir in $ac_dummy; do
8194 test -z "$ac_dir" && ac_dir=.
8195 if test -f $ac_dir/$ac_word; then
8196 ac_cv_prog_CXX="$ac_prog"
8197 break
8198 fi
8199 done
8200 IFS="$ac_save_ifs"
10f2d63a
VZ
8201fi
8202fi
698dcdb6 8203CXX="$ac_cv_prog_CXX"
10f2d63a 8204if test -n "$CXX"; then
698dcdb6 8205 echo "$ac_t""$CXX" 1>&6
10f2d63a 8206else
698dcdb6 8207 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8208fi
8209
698dcdb6 8210test -n "$CXX" && break
10f2d63a 8211done
698dcdb6 8212test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
8213
8214
698dcdb6 8215echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8db37e06 8216echo "configure:8217: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 8217
698dcdb6
VZ
8218ac_ext=C
8219# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8220ac_cpp='$CXXCPP $CPPFLAGS'
8221ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8222ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8223cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 8224
698dcdb6
VZ
8225cat > conftest.$ac_ext << EOF
8226
8db37e06 8227#line 8228 "configure"
10f2d63a
VZ
8228#include "confdefs.h"
8229
698dcdb6
VZ
8230int main(){return(0);}
8231EOF
8db37e06 8232if { (eval echo configure:8233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8233 ac_cv_prog_cxx_works=yes
8234 # If we can't run a trivial program, we are probably using a cross compiler.
8235 if (./conftest; exit) 2>/dev/null; then
8236 ac_cv_prog_cxx_cross=no
8237 else
8238 ac_cv_prog_cxx_cross=yes
8239 fi
8240else
8241 echo "configure: failed program was:" >&5
8242 cat conftest.$ac_ext >&5
8243 ac_cv_prog_cxx_works=no
8244fi
8245rm -fr conftest*
8246ac_ext=C
8247# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8248ac_cpp='$CXXCPP $CPPFLAGS'
8249ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8250ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8251cross_compiling=$ac_cv_prog_cxx_cross
8252
8253echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8254if test $ac_cv_prog_cxx_works = no; then
8255 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8256fi
8257echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8db37e06 8258echo "configure:8259: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8259echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8260cross_compiling=$ac_cv_prog_cxx_cross
8261
8262echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
8db37e06 8263echo "configure:8264: checking whether we are using GNU C++" >&5
698dcdb6
VZ
8264if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8265 echo $ac_n "(cached) $ac_c" 1>&6
8266else
8267 cat > conftest.C <<EOF
8268#ifdef __GNUC__
8269 yes;
10f2d63a 8270#endif
698dcdb6 8271EOF
8db37e06 8272if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8273 ac_cv_prog_gxx=yes
8274else
8275 ac_cv_prog_gxx=no
8276fi
8277fi
10f2d63a 8278
698dcdb6 8279echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 8280
698dcdb6
VZ
8281if test $ac_cv_prog_gxx = yes; then
8282 GXX=yes
8283else
8284 GXX=
8285fi
10f2d63a 8286
698dcdb6
VZ
8287ac_test_CXXFLAGS="${CXXFLAGS+set}"
8288ac_save_CXXFLAGS="$CXXFLAGS"
8289CXXFLAGS=
8290echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
8db37e06 8291echo "configure:8292: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
8292if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8293 echo $ac_n "(cached) $ac_c" 1>&6
8294else
8295 echo 'void f(){}' > conftest.cc
8296if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
8297 ac_cv_prog_cxx_g=yes
8298else
698dcdb6 8299 ac_cv_prog_cxx_g=no
10f2d63a 8300fi
698dcdb6
VZ
8301rm -f conftest*
8302
10f2d63a 8303fi
698dcdb6
VZ
8304
8305echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 8306if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 8307 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
8308elif test $ac_cv_prog_cxx_g = yes; then
8309 if test "$GXX" = yes; then
8310 CXXFLAGS="-g -O2"
8311 else
8312 CXXFLAGS="-g"
8313 fi
8314else
8315 if test "$GXX" = yes; then
8316 CXXFLAGS="-O2"
8317 else
8318 CXXFLAGS=
8319 fi
8320fi
8321
8322
698dcdb6 8323echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
8db37e06 8324echo "configure:8325: checking how to run the C++ preprocessor" >&5
1e487827 8325if test -z "$CXXCPP"; then
698dcdb6
VZ
8326if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
8327 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 8328else
698dcdb6
VZ
8329 ac_ext=C
8330# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8331ac_cpp='$CXXCPP $CPPFLAGS'
8332ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8333ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8334cross_compiling=$ac_cv_prog_cxx_cross
8335 CXXCPP="${CXX-g++} -E"
8336 cat > conftest.$ac_ext <<EOF
8db37e06 8337#line 8338 "configure"
1e487827 8338#include "confdefs.h"
698dcdb6
VZ
8339#include <stdlib.h>
8340EOF
8341ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8db37e06 8342{ (eval echo configure:8343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8343ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8344if test -z "$ac_err"; then
1e487827
VS
8345 :
8346else
698dcdb6
VZ
8347 echo "$ac_err" >&5
8348 echo "configure: failed program was:" >&5
1e487827 8349 cat conftest.$ac_ext >&5
698dcdb6
VZ
8350 rm -rf conftest*
8351 CXXCPP=/lib/cpp
1e487827 8352fi
698dcdb6
VZ
8353rm -f conftest*
8354 ac_cv_prog_CXXCPP="$CXXCPP"
8355ac_ext=C
8356# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8357ac_cpp='$CXXCPP $CPPFLAGS'
8358ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8359ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8360cross_compiling=$ac_cv_prog_cxx_cross
1e487827 8361fi
1e487827 8362fi
698dcdb6
VZ
8363CXXCPP="$ac_cv_prog_CXXCPP"
8364echo "$ac_t""$CXXCPP" 1>&6
1e487827 8365
10f2d63a
VZ
8366
8367CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8368
8369ac_ext=c
698dcdb6 8370# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 8371ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
8372ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8373ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8374cross_compiling=$ac_cv_prog_cc_cross
8375
8376
8377# Extract the first word of "ranlib", so it can be a program name with args.
8378set dummy ranlib; ac_word=$2
8379echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8db37e06 8380echo "configure:8381: checking for $ac_word" >&5
698dcdb6
VZ
8381if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8382 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8383else
8384 if test -n "$RANLIB"; then
8385 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8386else
698dcdb6
VZ
8387 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8388 ac_dummy="$PATH"
8389 for ac_dir in $ac_dummy; do
8390 test -z "$ac_dir" && ac_dir=.
8391 if test -f $ac_dir/$ac_word; then
8392 ac_cv_prog_RANLIB="ranlib"
8393 break
8394 fi
8395 done
8396 IFS="$ac_save_ifs"
8397 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
8398fi
8399fi
698dcdb6 8400RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 8401if test -n "$RANLIB"; then
698dcdb6 8402 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 8403else
698dcdb6 8404 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8405fi
8406
8407
8408# Extract the first word of "ar", so it can be a program name with args.
8409set dummy ar; ac_word=$2
698dcdb6 8410echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8db37e06 8411echo "configure:8412: checking for $ac_word" >&5
698dcdb6
VZ
8412if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8413 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8414else
8415 if test -n "$AR"; then
8416 ac_cv_prog_AR="$AR" # Let the user override the test.
8417else
698dcdb6
VZ
8418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8419 ac_dummy="$PATH"
8420 for ac_dir in $ac_dummy; do
8421 test -z "$ac_dir" && ac_dir=.
8422 if test -f $ac_dir/$ac_word; then
8423 ac_cv_prog_AR="ar"
8424 break
8425 fi
8426 done
8427 IFS="$ac_save_ifs"
10f2d63a
VZ
8428 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8429fi
8430fi
698dcdb6 8431AR="$ac_cv_prog_AR"
10f2d63a 8432if test -n "$AR"; then
698dcdb6 8433 echo "$ac_t""$AR" 1>&6
10f2d63a 8434else
698dcdb6 8435 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8436fi
8437
698dcdb6 8438
10f2d63a
VZ
8439# Find a good install program. We prefer a C program (faster),
8440# so one script is as good as another. But avoid the broken or
8441# incompatible versions:
8442# SysV /etc/install, /usr/sbin/install
8443# SunOS /usr/etc/install
8444# IRIX /sbin/install
8445# AIX /bin/install
8446# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8447# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8448# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8449# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 8450echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8db37e06 8451echo "configure:8452: checking for a BSD compatible install" >&5
10f2d63a 8452if test -z "$INSTALL"; then
698dcdb6
VZ
8453if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8454 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8455else
698dcdb6 8456 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
8457 for ac_dir in $PATH; do
8458 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
8459 case "$ac_dir/" in
8460 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
8461 *)
8462 # OSF1 and SCO ODT 3.0 have their own names for install.
8463 # Don't use installbsd from OSF since it installs stuff as root
8464 # by default.
8465 for ac_prog in ginstall scoinst install; do
698dcdb6 8466 if test -f $ac_dir/$ac_prog; then
10f2d63a 8467 if test $ac_prog = install &&
698dcdb6 8468 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
8469 # AIX install. It has an incompatible calling convention.
8470 :
8471 else
8472 ac_cv_path_install="$ac_dir/$ac_prog -c"
8473 break 2
8474 fi
8475 fi
8476 done
8477 ;;
8478 esac
8479 done
698dcdb6 8480 IFS="$ac_save_IFS"
10f2d63a
VZ
8481
8482fi
8483 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 8484 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
8485 else
8486 # As a last resort, use the slow shell script. We don't cache a
8487 # path for INSTALL within a source directory, because that will
8488 # break other packages using the cache if that directory is
8489 # removed, or if the path is relative.
698dcdb6 8490 INSTALL="$ac_install_sh"
10f2d63a
VZ
8491 fi
8492fi
698dcdb6 8493echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
8494
8495# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8496# It thinks the first close brace ends the variable substitution.
8497test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8498
698dcdb6 8499test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
8500
8501test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8502
698dcdb6 8503
10f2d63a
VZ
8504# Extract the first word of "strip", so it can be a program name with args.
8505set dummy strip; ac_word=$2
698dcdb6 8506echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8db37e06 8507echo "configure:8508: checking for $ac_word" >&5
698dcdb6
VZ
8508if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8509 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8510else
8511 if test -n "$STRIP"; then
8512 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8513else
698dcdb6
VZ
8514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8515 ac_dummy="$PATH"
8516 for ac_dir in $ac_dummy; do
8517 test -z "$ac_dir" && ac_dir=.
8518 if test -f $ac_dir/$ac_word; then
8519 ac_cv_prog_STRIP="strip"
8520 break
8521 fi
8522 done
8523 IFS="$ac_save_ifs"
10f2d63a
VZ
8524 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8525fi
8526fi
698dcdb6 8527STRIP="$ac_cv_prog_STRIP"
10f2d63a 8528if test -n "$STRIP"; then
698dcdb6 8529 echo "$ac_t""$STRIP" 1>&6
10f2d63a 8530else
698dcdb6 8531 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8532fi
8533
698dcdb6
VZ
8534
8535echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8db37e06 8536echo "configure:8537: checking make for VPATH support" >&5
10f2d63a
VZ
8537cat - << EOF > confMake
8538check : file
8539 cp \$? \$@
8540 cp \$? final_file
8541EOF
8542
8543if test ! -d sub ; then
8544 mkdir sub
8545fi
8546echo dummy > sub/file
f6bcfd97 8547${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
8548RESULT=$?
8549rm -f sub/file check final_file confMake
8550rmdir sub
8551if test "$RESULT" = 0; then
698dcdb6 8552 echo "$ac_t""yes" 1>&6
10f2d63a 8553else
698dcdb6
VZ
8554 echo "$ac_t""no" 1>&6
8555 { echo "configure: error:
1e487827
VS
8556You need a make-utility that is able to use the variable
8557VPATH correctly.
8558If your version of make does not support VPATH correctly,
8559please install GNU-make (possibly as gmake), and start
8560configure with the following command:
8561export MAKE=gmake; ./configure for sh-type shells
8562setenv MAKE gmake; ./configure for csh-type shells
8563Also please do remember to use gmake in this case every time
8564you are trying to compile.
698dcdb6 8565" 1>&2; exit 1; }
10f2d63a
VZ
8566fi
8567
8568for ac_prog in 'bison -y' byacc
8569do
698dcdb6 8570# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 8571set dummy $ac_prog; ac_word=$2
698dcdb6 8572echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8db37e06 8573echo "configure:8574: checking for $ac_word" >&5
698dcdb6
VZ
8574if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8575 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8576else
8577 if test -n "$YACC"; then
8578 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8579else
698dcdb6
VZ
8580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8581 ac_dummy="$PATH"
8582 for ac_dir in $ac_dummy; do
8583 test -z "$ac_dir" && ac_dir=.
8584 if test -f $ac_dir/$ac_word; then
8585 ac_cv_prog_YACC="$ac_prog"
8586 break
8587 fi
8588 done
8589 IFS="$ac_save_ifs"
10f2d63a
VZ
8590fi
8591fi
698dcdb6 8592YACC="$ac_cv_prog_YACC"
10f2d63a 8593if test -n "$YACC"; then
698dcdb6 8594 echo "$ac_t""$YACC" 1>&6
10f2d63a 8595else
698dcdb6 8596 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8597fi
8598
698dcdb6 8599test -n "$YACC" && break
10f2d63a
VZ
8600done
8601test -n "$YACC" || YACC="yacc"
8602
698dcdb6
VZ
8603
8604# Extract the first word of "flex", so it can be a program name with args.
8605set dummy flex; ac_word=$2
8606echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8db37e06 8607echo "configure:8608: checking for $ac_word" >&5
698dcdb6
VZ
8608if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8609 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8610else
8611 if test -n "$LEX"; then
8612 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8613else
698dcdb6
VZ
8614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8615 ac_dummy="$PATH"
8616 for ac_dir in $ac_dummy; do
8617 test -z "$ac_dir" && ac_dir=.
8618 if test -f $ac_dir/$ac_word; then
8619 ac_cv_prog_LEX="flex"
8620 break
8621 fi
8622 done
8623 IFS="$ac_save_ifs"
8624 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
8625fi
8626fi
698dcdb6 8627LEX="$ac_cv_prog_LEX"
10f2d63a 8628if test -n "$LEX"; then
698dcdb6 8629 echo "$ac_t""$LEX" 1>&6
10f2d63a 8630else
698dcdb6 8631 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8632fi
8633
8634if test -z "$LEXLIB"
8635then
698dcdb6
VZ
8636 case "$LEX" in
8637 flex*) ac_lib=fl ;;
8638 *) ac_lib=l ;;
8639 esac
8640 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8db37e06 8641echo "configure:8642: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
8642ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8643if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8644 echo $ac_n "(cached) $ac_c" 1>&6
8645else
8646 ac_save_LIBS="$LIBS"
8647LIBS="-l$ac_lib $LIBS"
8648cat > conftest.$ac_ext <<EOF
8db37e06 8649#line 8650 "configure"
10f2d63a
VZ
8650#include "confdefs.h"
8651/* Override any gcc2 internal prototype to avoid an error. */
8652/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
8653 builtin and then its argument prototype would still apply. */
8654char yywrap();
10f2d63a 8655
698dcdb6
VZ
8656int main() {
8657yywrap()
8658; return 0; }
8659EOF
8db37e06 8660if { (eval echo configure:8661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8661 rm -rf conftest*
8662 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 8663else
698dcdb6
VZ
8664 echo "configure: failed program was:" >&5
8665 cat conftest.$ac_ext >&5
8666 rm -rf conftest*
8667 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 8668fi
698dcdb6
VZ
8669rm -f conftest*
8670LIBS="$ac_save_LIBS"
8671
10f2d63a 8672fi
698dcdb6
VZ
8673if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8674 echo "$ac_t""yes" 1>&6
8675 LEXLIB="-l$ac_lib"
8676else
8677 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8678fi
8679
8680fi
8681
8682
698dcdb6 8683echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8db37e06 8684echo "configure:8685: checking whether ln -s works" >&5
698dcdb6
VZ
8685if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8686 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8687else
698dcdb6
VZ
8688 rm -f conftestdata
8689if ln -s X conftestdata 2>/dev/null
8690then
8691 rm -f conftestdata
8692 ac_cv_prog_LN_S="ln -s"
10f2d63a 8693else
698dcdb6 8694 ac_cv_prog_LN_S=ln
10f2d63a
VZ
8695fi
8696fi
698dcdb6
VZ
8697LN_S="$ac_cv_prog_LN_S"
8698if test "$ac_cv_prog_LN_S" = "ln -s"; then
8699 echo "$ac_t""yes" 1>&6
10f2d63a 8700else
698dcdb6 8701 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8702fi
8703
8704
8705
8706SEARCH_INCLUDE="\
8707 /usr/local/include \
8708 \
8709 /usr/Motif-1.2/include \
8710 /usr/Motif-2.1/include \
8711 \
8712 /usr/include/Motif1.2 \
8713 /opt/xpm/include/X11 \
8714 /opt/GBxpm/include/ \
8715 /opt/GBxpm/X11/include/ \
8716 \
8717 /usr/Motif1.2/include \
8718 /usr/dt/include \
afc31813
VZ
8719 /usr/openwin/include \
8720 \
10f2d63a
VZ
8721 /usr/include/Xm \
8722 \
8723 /usr/X11R6/include \
afc31813 8724 /usr/X11R6.4/include \
10f2d63a
VZ
8725 /usr/X11R5/include \
8726 /usr/X11R4/include \
8727 \
10f2d63a
VZ
8728 /usr/include/X11R6 \
8729 /usr/include/X11R5 \
8730 /usr/include/X11R4 \
8731 \
8732 /usr/local/X11R6/include \
8733 /usr/local/X11R5/include \
8734 /usr/local/X11R4/include \
8735 \
8736 /usr/local/include/X11R6 \
8737 /usr/local/include/X11R5 \
8738 /usr/local/include/X11R4 \
8739 \
8740 /usr/X11/include \
8741 /usr/include/X11 \
8742 /usr/local/X11/include \
8743 /usr/local/include/X11 \
8744 \
8745 /usr/X386/include \
8746 /usr/x386/include \
8747 /usr/XFree86/include/X11 \
8748 \
cf27ef00 8749 X:/XFree86/include \
ec14dd32
VZ
8750 X:/XFree86/include/X11 \
8751 \
10f2d63a
VZ
8752 /usr/include/gtk \
8753 /usr/local/include/gtk \
8754 /usr/include/glib \
8755 /usr/local/include/glib \
8756 \
8757 /usr/include/qt \
8758 /usr/local/include/qt \
8759 \
8760 /usr/include/windows \
8761 /usr/include/wine \
8762 /usr/local/include/wine \
8763 \
8764 /usr/unsupported/include \
8765 /usr/athena/include \
8766 /usr/local/x11r5/include \
8767 /usr/lpp/Xamples/include \
8768 \
10f2d63a 8769 /usr/openwin/share/include \
928b5c08
VZ
8770 \
8771 /usr/include"
10f2d63a
VZ
8772
8773SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8774
698dcdb6
VZ
8775
8776cat > confcache <<\EOF
10f2d63a
VZ
8777# This file is a shell script that caches the results of configure
8778# tests run on this system so they can be shared between configure
698dcdb6
VZ
8779# scripts and configure runs. It is not useful on other systems.
8780# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8781#
698dcdb6
VZ
8782# By default, configure uses ./config.cache as the cache file,
8783# creating it if it does not exist already. You can give configure
8784# the --cache-file=FILE option to use a different cache file; that is
8785# what configure does when it calls configure scripts in
8786# subdirectories, so they share the cache.
8787# Giving --cache-file=/dev/null disables caching, for debugging configure.
8788# config.status only pays attention to the cache file if you give it the
8789# --recheck option to rerun configure.
10f2d63a 8790#
698dcdb6 8791EOF
10f2d63a
VZ
8792# The following way of writing the cache mishandles newlines in values,
8793# but we know of no workaround that is simple, portable, and efficient.
8794# So, don't put newlines in cache variables' values.
8795# Ultrix sh set writes to stderr and can't be redirected directly,
8796# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8797(set) 2>&1 |
8798 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8799 *ac_space=\ *)
8800 # `set' does not quote correctly, so add quotes (double-quote substitution
8801 # turns \\\\ into \\, and sed turns \\ into \).
8802 sed -n \
8803 -e "s/'/'\\\\''/g" \
8804 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8805 ;;
8806 *)
8807 # `set' quotes correctly as required by POSIX, so do not add quotes.
8808 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8809 ;;
8810 esac >> confcache
8811if cmp -s $cache_file confcache; then
8812 :
8813else
10f2d63a 8814 if test -w $cache_file; then
698dcdb6
VZ
8815 echo "updating cache $cache_file"
8816 cat confcache > $cache_file
10f2d63a
VZ
8817 else
8818 echo "not updating unwritable cache $cache_file"
8819 fi
8820fi
8821rm -f confcache
8822
698dcdb6
VZ
8823
8824
dad6c0ea
VZ
8825AFMINSTALL=
8826
10f2d63a 8827if test "$wxUSE_GUI" = "yes"; then
1e6feb95 8828 USE_GUI=1
10f2d63a 8829
1e6feb95
VZ
8830 TOOLKIT=
8831 TOOLKIT_INCLUDE=
10f2d63a 8832
1e6feb95
VZ
8833 GUI_TK_LIBRARY=
8834 GUI_TK_LINK=
10f2d63a 8835
1e6feb95
VZ
8836 WXGTK12=
8837 WXGTK127=
8838 WXGTK20=
10f2d63a 8839
1e6feb95 8840 WXWINE=
10f2d63a 8841
1e6feb95 8842 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
29fd3c0c
VS
8843 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
8844echo $ac_n "checking for windows.h""... $ac_c" 1>&6
8db37e06 8845echo "configure:8846: checking for windows.h" >&5
d4158b5d
VS
8846if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8847 echo $ac_n "(cached) $ac_c" 1>&6
8848else
8849 cat > conftest.$ac_ext <<EOF
8db37e06 8850#line 8851 "configure"
d4158b5d 8851#include "confdefs.h"
29fd3c0c 8852#include <windows.h>
d4158b5d
VS
8853EOF
8854ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8db37e06 8855{ (eval echo configure:8856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4158b5d
VS
8856ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8857if test -z "$ac_err"; then
8858 rm -rf conftest*
8859 eval "ac_cv_header_$ac_safe=yes"
8860else
8861 echo "$ac_err" >&5
8862 echo "configure: failed program was:" >&5
8863 cat conftest.$ac_ext >&5
8864 rm -rf conftest*
8865 eval "ac_cv_header_$ac_safe=no"
8866fi
8867rm -f conftest*
8868fi
8869if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8870 echo "$ac_t""yes" 1>&6
29fd3c0c 8871 :
d4158b5d
VS
8872else
8873 echo "$ac_t""no" 1>&6
d4158b5d 8874
3f0f0161
VZ
8875 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
8876
29fd3c0c 8877fi
10f2d63a 8878
3f0f0161 8879
1e6feb95 8880 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
3f0f0161 8881
031d8228 8882 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
f6bcfd97 8883
1e6feb95
VZ
8884 if test "$wxUSE_ODBC" = "yes" ; then
8885 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
8886 fi
10f2d63a 8887
1e6feb95
VZ
8888 if test "$wxUSE_MINGW" = 1; then
8889 LDFLAGS="$LDFLAGS -mwindows"
8890 fi
32832908 8891
1e6feb95
VZ
8892 TOOLKIT=MSW
8893 GUIDIST=MSW_DIST
32832908 8894
1e6feb95
VZ
8895 RCINCSWITCH="--include-dir"
8896 RCDEFSWITCH="--define"
8897 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
8898 RCINPUTSWITCH="-i"
8899 RCOUTPUTSWITCH="-o"
8900 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
32832908 8901
1e6feb95
VZ
8902 RESPROGRAM="\$(RES_PROGRAM)"
8903 fi
10f2d63a 8904
1e6feb95 8905 if test "$wxUSE_GTK" = 1; then
8168de4c 8906 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
8db37e06 8907echo "configure:8908: checking for GTK+ version" >&5
8168de4c
VZ
8908
8909 gtk_version_cached=1
8910 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
8911 echo $ac_n "(cached) $ac_c" 1>&6
8912else
8913
8914 gtk_version_cached=0
8915 echo "$ac_t""""" 1>&6
8916
8917 wx_cv_lib_gtk=
8918 if test "x$wxUSE_GTK2" = "xyes"; then
8919 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6f72b082
OK
8920if test "${with_gtk_prefix+set}" = set; then
8921 withval="$with_gtk_prefix"
8922 gtk_config_prefix="$withval"
8923else
8924 gtk_config_prefix=""
698dcdb6 8925fi
6f72b082
OK
8926
8927# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
8928if test "${with_gtk_exec_prefix+set}" = set; then
8929 withval="$with_gtk_exec_prefix"
8930 gtk_config_exec_prefix="$withval"
8931else
8932 gtk_config_exec_prefix=""
698dcdb6
VZ
8933fi
8934
6f72b082
OK
8935# Check whether --enable-gtktest or --disable-gtktest was given.
8936if test "${enable_gtktest+set}" = set; then
8937 enableval="$enable_gtktest"
698dcdb6 8938 :
6f72b082
OK
8939else
8940 enable_gtktest=yes
698dcdb6
VZ
8941fi
8942
6f72b082 8943
8168de4c 8944 for module in .
6f72b082
OK
8945 do
8946 case "$module" in
8168de4c 8947 gthread)
6f72b082
OK
8948 gtk_config_args="$gtk_config_args gthread"
8949 ;;
8950 esac
8951 done
8952
8953 if test x$gtk_config_exec_prefix != x ; then
8954 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8955 if test x${GTK_CONFIG_2_0+set} != xset ; then
8956 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
8957 fi
8958 fi
8959 if test x$gtk_config_prefix != x ; then
8960 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8961 if test x${GTK_CONFIG_2_0+set} != xset ; then
8962 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
8963 fi
8964 fi
8965
8966 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
8967set dummy gtk-config-2.0; ac_word=$2
698dcdb6 8968echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8db37e06 8969echo "configure:8970: checking for $ac_word" >&5
698dcdb6
VZ
8970if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
8971 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 8972else
698dcdb6
VZ
8973 case "$GTK_CONFIG_2_0" in
8974 /*)
6f72b082
OK
8975 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
8976 ;;
698dcdb6
VZ
8977 ?:/*)
8978 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
8979 ;;
6f72b082 8980 *)
698dcdb6
VZ
8981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8982 ac_dummy="$PATH"
8983 for ac_dir in $ac_dummy; do
8984 test -z "$ac_dir" && ac_dir=.
8985 if test -f $ac_dir/$ac_word; then
8986 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
8987 break
8988 fi
8989 done
8990 IFS="$ac_save_ifs"
6f72b082
OK
8991 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
8992 ;;
8993esac
8994fi
698dcdb6 8995GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 8996if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 8997 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 8998else
698dcdb6 8999 echo "$ac_t""no" 1>&6
6f72b082
OK
9000fi
9001
9002 min_gtk_version=1.3.1
698dcdb6 9003 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8db37e06 9004echo "configure:9005: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
9005 no_gtk=""
9006 if test "$GTK_CONFIG_2_0" = "no" ; then
9007 no_gtk=yes
9008 else
9009 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9010 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9011 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9012 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9013 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9014 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9015 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9016 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9017 if test "x$enable_gtktest" = "xyes" ; then
9018 ac_save_CFLAGS="$CFLAGS"
9019 ac_save_LIBS="$LIBS"
9020 CFLAGS="$CFLAGS $GTK_CFLAGS"
9021 LIBS="$GTK_LIBS $LIBS"
9022 rm -f conf.gtktest
9023 if test "$cross_compiling" = yes; then
9024 echo $ac_n "cross compiling; assumed OK... $ac_c"
9025else
698dcdb6 9026 cat > conftest.$ac_ext <<EOF
8db37e06 9027#line 9028 "configure"
6f72b082
OK
9028#include "confdefs.h"
9029
9030#include <gtk/gtk.h>
9031#include <stdio.h>
9032#include <stdlib.h>
9033
8168de4c 9034int
6f72b082
OK
9035main ()
9036{
9037 int major, minor, micro;
9038 char *tmp_version;
9039
9040 system ("touch conf.gtktest");
9041
9042 /* HP/UX 9 (%@#!) writes to sscanf strings */
9043 tmp_version = g_strdup("$min_gtk_version");
9044 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9045 printf("%s, bad version string\n", "$min_gtk_version");
9046 exit(1);
9047 }
9048
9049 if ((gtk_major_version != $gtk_config_major_version) ||
9050 (gtk_minor_version != $gtk_config_minor_version) ||
9051 (gtk_micro_version != $gtk_config_micro_version))
9052 {
8168de4c 9053 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
9054 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9055 gtk_major_version, gtk_minor_version, gtk_micro_version);
9056 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9057 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9058 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9059 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9060 printf("*** required on your system.\n");
9061 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9062 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9063 printf("*** before re-running configure\n");
8168de4c 9064 }
6f72b082
OK
9065#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9066 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8168de4c 9067 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
9068 (gtk_micro_version != GTK_MICRO_VERSION))
9069 {
9070 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8168de4c 9071 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 9072 printf("*** library (version %d.%d.%d)\n",
8168de4c 9073 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082
OK
9074 }
9075#endif /* defined (GTK_MAJOR_VERSION) ... */
9076 else
9077 {
9078 if ((gtk_major_version > major) ||
9079 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9080 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9081 {
9082 return 0;
9083 }
9084 else
9085 {
9086 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9087 gtk_major_version, gtk_minor_version, gtk_micro_version);
9088 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8168de4c 9089 major, minor, micro);
6f72b082
OK
9090 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9091 printf("***\n");
9092 printf("*** If you have already installed a sufficiently new version, this error\n");
9093 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9094 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9095 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9096 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9097 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9098 printf("*** so that the correct libraries are found at run-time))\n");
9099 }
9100 }
9101 return 1;
9102}
9103
698dcdb6 9104EOF
8db37e06 9105if { (eval echo configure:9106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9106then
6f72b082
OK
9107 :
9108else
698dcdb6
VZ
9109 echo "configure: failed program was:" >&5
9110 cat conftest.$ac_ext >&5
9111 rm -fr conftest*
9112 no_gtk=yes
6f72b082 9113fi
698dcdb6 9114rm -fr conftest*
6f72b082 9115fi
698dcdb6 9116
6f72b082
OK
9117 CFLAGS="$ac_save_CFLAGS"
9118 LIBS="$ac_save_LIBS"
9119 fi
9120 fi
9121 if test "x$no_gtk" = x ; then
698dcdb6 9122 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8168de4c 9123 wx_cv_lib_gtk=2.0
6f72b082 9124 else
698dcdb6 9125 echo "$ac_t""no" 1>&6
6f72b082
OK
9126 if test "$GTK_CONFIG_2_0" = "no" ; then
9127 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9128 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9129 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9130 echo "*** full path to gtk-config-2.0."
9131 else
9132 if test -f conf.gtktest ; then
9133 :
9134 else
9135 echo "*** Could not run GTK test program, checking why..."
9136 CFLAGS="$CFLAGS $GTK_CFLAGS"
9137 LIBS="$LIBS $GTK_LIBS"
698dcdb6 9138 cat > conftest.$ac_ext <<EOF
8db37e06 9139#line 9140 "configure"
6f72b082
OK
9140#include "confdefs.h"
9141
9142#include <gtk/gtk.h>
9143#include <stdio.h>
9144
698dcdb6
VZ
9145int main() {
9146 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9147; return 0; }
9148EOF
8db37e06 9149if { (eval echo configure:9150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9150 rm -rf conftest*
6f72b082
OK
9151 echo "*** The test program compiled, but did not run. This usually means"
9152 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9153 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9154 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9155 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9156 echo "*** is required on your system"
8168de4c 9157 echo "***"
6f72b082
OK
9158 echo "*** If you have an old version installed, it is best to remove it, although"
9159 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9160 echo "***"
9161 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9162 echo "*** came with the system with the command"
9163 echo "***"
698dcdb6 9164 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 9165else
698dcdb6
VZ
9166 echo "configure: failed program was:" >&5
9167 cat conftest.$ac_ext >&5
9168 rm -rf conftest*
9169 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
9170 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9171 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
698dcdb6 9172 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 9173fi
698dcdb6 9174rm -f conftest*
6f72b082
OK
9175 CFLAGS="$ac_save_CFLAGS"
9176 LIBS="$ac_save_LIBS"
9177 fi
9178 fi
9179 GTK_CFLAGS=""
9180 GTK_LIBS=""
8168de4c
VZ
9181 gthread
9182 fi
9183
9184
9185 rm -f conf.gtktest
9186
9187 fi
9188
9189 if test -z "$wx_cv_lib_gtk"; then
9190
10f2d63a
VZ
9191 if test x$gtk_config_exec_prefix != x ; then
9192 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9193 if test x${GTK_CONFIG+set} != xset ; then
9194 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9195 fi
9196 fi
9197 if test x$gtk_config_prefix != x ; then
9198 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9199 if test x${GTK_CONFIG+set} != xset ; then
9200 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9201 fi
9202 fi
9203
9204 # Extract the first word of "gtk-config", so it can be a program name with args.
9205set dummy gtk-config; ac_word=$2
698dcdb6 9206echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8db37e06 9207echo "configure:9208: checking for $ac_word" >&5
698dcdb6
VZ
9208if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9209 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 9210else
698dcdb6
VZ
9211 case "$GTK_CONFIG" in
9212 /*)
f6bcfd97
BP
9213 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9214 ;;
698dcdb6
VZ
9215 ?:/*)
9216 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9217 ;;
f6bcfd97 9218 *)
698dcdb6
VZ
9219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9220 ac_dummy="$PATH"
9221 for ac_dir in $ac_dummy; do
9222 test -z "$ac_dir" && ac_dir=.
9223 if test -f $ac_dir/$ac_word; then
9224 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9225 break
9226 fi
9227 done
9228 IFS="$ac_save_ifs"
f6bcfd97
BP
9229 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9230 ;;
9231esac
9232fi
698dcdb6 9233GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 9234if test -n "$GTK_CONFIG"; then
698dcdb6 9235 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 9236else
698dcdb6 9237 echo "$ac_t""no" 1>&6
f6bcfd97
BP
9238fi
9239
9240 min_gtk_version=1.2.7
698dcdb6 9241 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8db37e06 9242echo "configure:9243: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
9243 no_gtk=""
9244 if test "$GTK_CONFIG" != "no" ; then
9245 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9246 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9247 ac_save_CFLAGS="$CFLAGS"
9248 ac_save_LIBS="$LIBS"
9249 CFLAGS="$CFLAGS $GTK_CFLAGS"
9250 LIBS="$LIBS $GTK_LIBS"
9251 if test "$cross_compiling" = yes; then
9252 echo $ac_n "cross compiling; assumed OK... $ac_c"
9253else
698dcdb6 9254 cat > conftest.$ac_ext <<EOF
8db37e06 9255#line 9256 "configure"
f6bcfd97
BP
9256#include "confdefs.h"
9257
9258#include <gtk/gtk.h>
9259#include <gtk/gtkfeatures.h>
9260#include <stdio.h>
9261#include <stdlib.h>
9262
9263int
9264main ()
9265{
9266 int major, minor, micro;
9267
9268 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9269 printf("%s, bad version string\n", "$min_gtk_version");
9270 exit(1);
9271 }
9272
9273 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9274 (GTK_MINOR_VERSION != gtk_minor_version) ||
9275 (GTK_MICRO_VERSION != gtk_micro_version)) {
9276 printf("Headers vs. library version mismatch!\n");
9277 exit(1);
9278 }
9279
9280 if (gtk_minor_version == 1) return FALSE;
9281
9282 return !((gtk_major_version > major) ||
9283 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9284 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9285}
9286
698dcdb6 9287EOF
8db37e06 9288if { (eval echo configure:9289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9289then
f6bcfd97
BP
9290 :
9291else
698dcdb6
VZ
9292 echo "configure: failed program was:" >&5
9293 cat conftest.$ac_ext >&5
9294 rm -fr conftest*
9295 no_gtk=yes
f6bcfd97 9296fi
698dcdb6 9297rm -fr conftest*
f6bcfd97 9298fi
698dcdb6 9299
f6bcfd97
BP
9300 CFLAGS="$ac_save_CFLAGS"
9301 LIBS="$ac_save_LIBS"
9302 else
9303 no_gtk=yes
9304 fi
9305 if test "x$no_gtk" = x ; then
698dcdb6 9306 echo "$ac_t""yes" 1>&6
8168de4c 9307 wx_cv_lib_gtk=1.2.7
f6bcfd97 9308 else
698dcdb6 9309 echo "$ac_t""no" 1>&6
f6bcfd97
BP
9310 GTK_CFLAGS=""
9311 GTK_LIBS=""
9312 :
9313 fi
698dcdb6
VZ
9314
9315
f6bcfd97 9316
8168de4c
VZ
9317 fi
9318
9319 if test -z "$wx_cv_lib_gtk"; then
9320
f6bcfd97
BP
9321 if test x$gtk_config_exec_prefix != x ; then
9322 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9323 if test x${GTK_CONFIG+set} != xset ; then
9324 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9325 fi
9326 fi
9327 if test x$gtk_config_prefix != x ; then
9328 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9329 if test x${GTK_CONFIG+set} != xset ; then
9330 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9331 fi
9332 fi
9333
9334 # Extract the first word of "gtk-config", so it can be a program name with args.
9335set dummy gtk-config; ac_word=$2
698dcdb6 9336echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8db37e06 9337echo "configure:9338: checking for $ac_word" >&5
698dcdb6
VZ
9338if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9339 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9340else
698dcdb6
VZ
9341 case "$GTK_CONFIG" in
9342 /*)
10f2d63a
VZ
9343 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9344 ;;
698dcdb6
VZ
9345 ?:/*)
9346 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9347 ;;
10f2d63a 9348 *)
698dcdb6
VZ
9349 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9350 ac_dummy="$PATH"
9351 for ac_dir in $ac_dummy; do
9352 test -z "$ac_dir" && ac_dir=.
9353 if test -f $ac_dir/$ac_word; then
9354 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9355 break
9356 fi
9357 done
9358 IFS="$ac_save_ifs"
10f2d63a
VZ
9359 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9360 ;;
9361esac
9362fi
698dcdb6 9363GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 9364if test -n "$GTK_CONFIG"; then
698dcdb6 9365 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 9366else
698dcdb6 9367 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9368fi
9369
04165bec 9370 min_gtk_version=1.2.3
698dcdb6 9371 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8db37e06 9372echo "configure:9373: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
9373 no_gtk=""
9374 if test "$GTK_CONFIG" != "no" ; then
9375 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 9376 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
9377 ac_save_CFLAGS="$CFLAGS"
9378 ac_save_LIBS="$LIBS"
9379 CFLAGS="$CFLAGS $GTK_CFLAGS"
9380 LIBS="$LIBS $GTK_LIBS"
9381 if test "$cross_compiling" = yes; then
9382 echo $ac_n "cross compiling; assumed OK... $ac_c"
9383else
698dcdb6 9384 cat > conftest.$ac_ext <<EOF
8db37e06 9385#line 9386 "configure"
10f2d63a
VZ
9386#include "confdefs.h"
9387
9388#include <gtk/gtk.h>
f49f2b0c 9389#include <gtk/gtkfeatures.h>
10f2d63a 9390#include <stdio.h>
32832908 9391#include <stdlib.h>
10f2d63a
VZ
9392
9393int
9394main ()
9395{
9396 int major, minor, micro;
9397
9398 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9399 printf("%s, bad version string\n", "$min_gtk_version");
9400 exit(1);
9401 }
9402
f49f2b0c
RR
9403 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9404 (GTK_MINOR_VERSION != gtk_minor_version) ||
9405 (GTK_MICRO_VERSION != gtk_micro_version)) {
9406 printf("Headers vs. library version mismatch!\n");
9407 exit(1);
9408 }
9409
10f2d63a
VZ
9410 if (gtk_minor_version == 1) return FALSE;
9411
9412 return !((gtk_major_version > major) ||
9413 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9414 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9415}
9416
698dcdb6 9417EOF
8db37e06 9418if { (eval echo configure:9419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9419then
10f2d63a
VZ
9420 :
9421else
698dcdb6
VZ
9422 echo "configure: failed program was:" >&5
9423 cat conftest.$ac_ext >&5
9424 rm -fr conftest*
9425 no_gtk=yes
10f2d63a 9426fi
698dcdb6 9427rm -fr conftest*
10f2d63a 9428fi
698dcdb6 9429
10f2d63a
VZ
9430 CFLAGS="$ac_save_CFLAGS"
9431 LIBS="$ac_save_LIBS"
9432 else
9433 no_gtk=yes
9434 fi
9435 if test "x$no_gtk" = x ; then
698dcdb6 9436 echo "$ac_t""yes" 1>&6
8168de4c 9437 wx_cv_lib_gtk=1.2.3
10f2d63a 9438 else
698dcdb6 9439 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9440 GTK_CFLAGS=""
9441 GTK_LIBS=""
7e99ad86 9442 :
10f2d63a 9443 fi
698dcdb6
VZ
9444
9445
10f2d63a 9446
8168de4c
VZ
9447 fi
9448
9449 if test -z "$wx_cv_lib_gtk"; then
9450 wx_cv_lib_gtk=none
138be253
VZ
9451 else
9452 wx_cv_cflags_gtk=$GTK_CFLAGS
9453 wx_cv_libs_gtk=$GTK_LIBS
8168de4c
VZ
9454 fi
9455
1e6feb95 9456
8168de4c 9457fi
703e0a69 9458
698dcdb6 9459
8168de4c
VZ
9460 if test "$gtk_version_cached" = 1; then
9461 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
1e6feb95 9462 fi
698dcdb6 9463
8168de4c
VZ
9464 case "$wx_cv_lib_gtk" in
9465 2.0) WXGTK20=1
9466 ;;
9467 1.2.7) WXGTK127=1
d1a8d972 9468 WXGTK12=1
8168de4c
VZ
9469 ;;
9470 1.2.3) WXGTK12=1
9471 ;;
9472 *) { echo "configure: error:
9473Please check that gtk-config is in path, the directory
9474where GTK+ libraries are installed (returned by
9475'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9476equivalent variable and GTK+ is version 1.2.3 or above.
9477 " 1>&2; exit 1; }
9478 ;;
9479 esac
2224580a 9480
138be253 9481 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11dfaa5f 9482 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
698dcdb6 9483
1e6feb95
VZ
9484 AFMINSTALL=afminstall
9485 TOOLKIT=GTK
9486 GUIDIST=GTK_DIST
7ec2881a 9487
1e6feb95 9488 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
8db37e06 9489echo "configure:9490: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
9490ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9491if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9492 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 9493else
698dcdb6 9494 ac_save_LIBS="$LIBS"
7ec2881a 9495LIBS="-lgdk $LIBS"
698dcdb6 9496cat > conftest.$ac_ext <<EOF
8db37e06 9497#line 9498 "configure"
7ec2881a
RR
9498#include "confdefs.h"
9499/* Override any gcc2 internal prototype to avoid an error. */
9500/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9501 builtin and then its argument prototype would still apply. */
9502char gdk_im_open();
9503
9504int main() {
9505gdk_im_open()
9506; return 0; }
9507EOF
8db37e06 9508if { (eval echo configure:9509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9509 rm -rf conftest*
9510 eval "ac_cv_lib_$ac_lib_var=yes"
9511else
9512 echo "configure: failed program was:" >&5
9513 cat conftest.$ac_ext >&5
9514 rm -rf conftest*
9515 eval "ac_cv_lib_$ac_lib_var=no"
9516fi
9517rm -f conftest*
9518LIBS="$ac_save_LIBS"
9519
9520fi
9521if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9522 echo "$ac_t""yes" 1>&6
9523 cat >> confdefs.h <<\EOF
7ec2881a
RR
9524#define HAVE_XIM 1
9525EOF
9526
698dcdb6
VZ
9527else
9528 echo "$ac_t""no" 1>&6
7ec2881a
RR
9529fi
9530
1e6feb95 9531 fi
10f2d63a 9532
1e6feb95
VZ
9533 if test "$wxUSE_MGL" = 1; then
9534
9535 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
8db37e06 9536echo "configure:9537: checking for SciTech MGL library" >&5
1e6feb95
VZ
9537 if test "x$MGL_ROOT" = x ; then
9538 echo "$ac_t""not found" 1>&6
9539 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9540 else
9541 echo "$ac_t""$MGL_ROOT" 1>&6
9542 fi
9543
9544 MGL_OS=linux/gcc/glibc
9545 MGL_LIB_TYPE=""
9546
9547 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9548 if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then
9549 MGL_LIB_TYPE=debug
9550 fi
9551 fi
9552 if test "x$MGL_LIB_TYPE" = x ; then
9553 if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then
9554 MGL_LIB_TYPE=release
9555 else
9556 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9557 fi
9558 fi
9559
9560 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9561 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm"
9562
9563 AFMINSTALL=afminstall
9564 TOOLKIT=MGL
9565 GUIDIST=MGL_DIST
9566 fi
9567
9568 if test "$wxUSE_WINE" = 1; then
9569 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
8db37e06 9570echo "configure:9571: checking for WINE includes" >&5
1e6feb95 9571
10f2d63a
VZ
9572ac_find_includes=
9573for ac_dir in $SEARCH_INCLUDE;
9574 do
9575 if test -f "$ac_dir/windows.h"; then
9576 ac_find_includes=$ac_dir
9577 break
9578 fi
9579 done
9580
1e6feb95
VZ
9581 if test "$ac_find_includes" != "" ; then
9582 echo "$ac_t""found $ac_find_includes" 1>&6
9583 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
9584 else
9585 echo "$ac_t""no" 1>&6
9586 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9587 fi
10f2d63a 9588
1e6feb95
VZ
9589 XPM_LINK=""
9590 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
8db37e06 9591echo "configure:9592: checking for Xpm library" >&5
1e6feb95 9592
10f2d63a
VZ
9593ac_find_libraries=
9594for ac_dir in $SEARCH_LIB;
9595 do
f11bdd03 9596 for ac_extension in a so sl dylib; do
10f2d63a
VZ
9597 if test -f "$ac_dir/libXpm.$ac_extension"; then
9598 ac_find_libraries=$ac_dir
9599 break 2
9600 fi
9601 done
9602 done
9603
1e6feb95
VZ
9604 if test "$ac_find_libraries" != "" ; then
9605 GUI_TK_LIBRARY="-L$ac_find_libraries"
9606 XPM_LINK="-lXpm"
9607 cat >> confdefs.h <<\EOF
10f2d63a
VZ
9608#define wxHAVE_LIB_XPM 1
9609EOF
9610
1e6feb95
VZ
9611 echo "$ac_t""found at $ac_find_libraries" 1>&6
9612 else
9613 echo "$ac_t""no" 1>&6
9614 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9615 fi
10f2d63a 9616
1e6feb95
VZ
9617 MESA_LINK=""
9618 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
8db37e06 9619echo "configure:9620: checking for Mesa library" >&5
1e6feb95 9620
10f2d63a
VZ
9621ac_find_libraries=
9622for ac_dir in $SEARCH_LIB;
9623 do
f11bdd03 9624 for ac_extension in a so sl dylib; do
10f2d63a
VZ
9625 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9626 ac_find_libraries=$ac_dir
9627 break 2
9628 fi
9629 done
9630 done
9631
1e6feb95
VZ
9632 if test "$ac_find_libraries" != "" ; then
9633 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9634 MESA_LINK="-lMesaGL"
9635 echo "$ac_t""found at $ac_find_libraries" 1>&6
9636 else
9637 { echo "configure: error: no" 1>&2; exit 1; }
9638 fi
10f2d63a 9639
1e6feb95
VZ
9640 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9641 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9642 WXWINE=1
9643 TOOLKIT=MSW
9644 GUIDIST=MSW_DIST
9645 fi
698dcdb6 9646
1e6feb95
VZ
9647
9648 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
9649# paths, otherwise set no_x=yes.
9650# Uses ac_ vars as temps to allow command line to override cache and checks.
9651# --without-x overrides everything else, but does not touch the cache.
9652echo $ac_n "checking for X""... $ac_c" 1>&6
8db37e06 9653echo "configure:9654: checking for X" >&5
ab9b9eab
VZ
9654
9655# Check whether --with-x or --without-x was given.
9656if test "${with_x+set}" = set; then
9657 withval="$with_x"
698dcdb6
VZ
9658 :
9659fi
ba337fe7 9660
ab9b9eab
VZ
9661# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9662if test "x$with_x" = xno; then
9663 # The user explicitly disabled X.
9664 have_x=disabled
9665else
9666 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9667 # Both variables are already set.
9668 have_x=yes
9669 else
698dcdb6
VZ
9670if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9671 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
9672else
9673 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
9674ac_x_includes=NO ac_x_libraries=NO
9675rm -fr conftestdir
9676if mkdir conftestdir; then
9677 cd conftestdir
ab9b9eab 9678 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 9679 cat > Imakefile <<'EOF'
ab9b9eab
VZ
9680acfindx:
9681 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9682EOF
9683 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9684 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9685 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9686 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 9687 for ac_extension in a so sl; do
ab9b9eab 9688 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 9689 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 9690 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
9691 fi
9692 done
ab9b9eab
VZ
9693 # Screen out bogus values from the imake configuration. They are
9694 # bogus both because they are the default anyway, and because
9695 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 9696 case "$ac_im_incroot" in
ab9b9eab 9697 /usr/include) ;;
698dcdb6 9698 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 9699 esac
698dcdb6 9700 case "$ac_im_usrlibdir" in
ab9b9eab 9701 /usr/lib | /lib) ;;
698dcdb6 9702 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 9703 esac
ba337fe7 9704 fi
ab9b9eab 9705 cd ..
698dcdb6 9706 rm -fr conftestdir
ab9b9eab 9707fi
10f2d63a 9708
698dcdb6
VZ
9709if test "$ac_x_includes" = NO; then
9710 # Guess where to find include files, by looking for this one X11 .h file.
9711 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9712
ab9b9eab 9713 # First, try using that file with no special directory specified.
698dcdb6 9714cat > conftest.$ac_ext <<EOF
8db37e06 9715#line 9716 "configure"
ab9b9eab 9716#include "confdefs.h"
698dcdb6
VZ
9717#include <$x_direct_test_include>
9718EOF
9719ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8db37e06 9720{ (eval echo configure:9721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
9721ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9722if test -z "$ac_err"; then
9723 rm -rf conftest*
ab9b9eab
VZ
9724 # We can compile using X headers with no special include directory.
9725ac_x_includes=
9726else
698dcdb6
VZ
9727 echo "$ac_err" >&5
9728 echo "configure: failed program was:" >&5
ab9b9eab 9729 cat conftest.$ac_ext >&5
698dcdb6
VZ
9730 rm -rf conftest*
9731 # Look for the header file in a standard set of common directories.
9732# Check X11 before X11Rn because it is often a symlink to the current release.
9733 for ac_dir in \
9734 /usr/X11/include \
9735 /usr/X11R6/include \
9736 /usr/X11R5/include \
9737 /usr/X11R4/include \
9738 \
9739 /usr/include/X11 \
9740 /usr/include/X11R6 \
9741 /usr/include/X11R5 \
9742 /usr/include/X11R4 \
9743 \
9744 /usr/local/X11/include \
9745 /usr/local/X11R6/include \
9746 /usr/local/X11R5/include \
9747 /usr/local/X11R4/include \
9748 \
9749 /usr/local/include/X11 \
9750 /usr/local/include/X11R6 \
9751 /usr/local/include/X11R5 \
9752 /usr/local/include/X11R4 \
9753 \
9754 /usr/X386/include \
9755 /usr/x386/include \
9756 /usr/XFree86/include/X11 \
9757 \
9758 /usr/include \
9759 /usr/local/include \
9760 /usr/unsupported/include \
9761 /usr/athena/include \
9762 /usr/local/x11r5/include \
9763 /usr/lpp/Xamples/include \
9764 \
9765 /usr/openwin/include \
9766 /usr/openwin/share/include \
9767 ; \
9768 do
9769 if test -r "$ac_dir/$x_direct_test_include"; then
9770 ac_x_includes=$ac_dir
9771 break
9772 fi
9773 done
ab9b9eab 9774fi
698dcdb6
VZ
9775rm -f conftest*
9776fi # $ac_x_includes = NO
10f2d63a 9777
698dcdb6 9778if test "$ac_x_libraries" = NO; then
ab9b9eab 9779 # Check for the libraries.
698dcdb6
VZ
9780
9781 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9782 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9783
ab9b9eab
VZ
9784 # See if we find them without any special options.
9785 # Don't add to $LIBS permanently.
698dcdb6
VZ
9786 ac_save_LIBS="$LIBS"
9787 LIBS="-l$x_direct_test_library $LIBS"
9788cat > conftest.$ac_ext <<EOF
8db37e06 9789#line 9790 "configure"
ab9b9eab 9790#include "confdefs.h"
698dcdb6
VZ
9791
9792int main() {
9793${x_direct_test_function}()
9794; return 0; }
9795EOF
8db37e06 9796if { (eval echo configure:9797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9797 rm -rf conftest*
9798 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
9799# We can link X programs with no special library path.
9800ac_x_libraries=
9801else
698dcdb6
VZ
9802 echo "configure: failed program was:" >&5
9803 cat conftest.$ac_ext >&5
9804 rm -rf conftest*
9805 LIBS="$ac_save_LIBS"
9806# First see if replacing the include by lib works.
9807# Check X11 before X11Rn because it is often a symlink to the current release.
9808for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9809 /usr/X11/lib \
9810 /usr/X11R6/lib \
9811 /usr/X11R5/lib \
9812 /usr/X11R4/lib \
9813 \
9814 /usr/lib/X11 \
9815 /usr/lib/X11R6 \
9816 /usr/lib/X11R5 \
9817 /usr/lib/X11R4 \
9818 \
9819 /usr/local/X11/lib \
9820 /usr/local/X11R6/lib \
9821 /usr/local/X11R5/lib \
9822 /usr/local/X11R4/lib \
9823 \
9824 /usr/local/lib/X11 \
9825 /usr/local/lib/X11R6 \
9826 /usr/local/lib/X11R5 \
9827 /usr/local/lib/X11R4 \
9828 \
9829 /usr/X386/lib \
9830 /usr/x386/lib \
9831 /usr/XFree86/lib/X11 \
9832 \
9833 /usr/lib \
9834 /usr/local/lib \
9835 /usr/unsupported/lib \
9836 /usr/athena/lib \
9837 /usr/local/x11r5/lib \
9838 /usr/lpp/Xamples/lib \
9839 /lib/usr/lib/X11 \
9840 \
9841 /usr/openwin/lib \
9842 /usr/openwin/share/lib \
9843 ; \
ab9b9eab
VZ
9844do
9845 for ac_extension in a so sl; do
698dcdb6 9846 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
9847 ac_x_libraries=$ac_dir
9848 break 2
10f2d63a 9849 fi
10f2d63a 9850 done
ab9b9eab
VZ
9851done
9852fi
698dcdb6
VZ
9853rm -f conftest*
9854fi # $ac_x_libraries = NO
10f2d63a 9855
698dcdb6 9856if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
9857 # Didn't find X anywhere. Cache the known absence of X.
9858 ac_cv_have_x="have_x=no"
9859else
9860 # Record where we found X for the cache.
9861 ac_cv_have_x="have_x=yes \
9862 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9863fi
9864fi
10f2d63a 9865 fi
ab9b9eab
VZ
9866 eval "$ac_cv_have_x"
9867fi # $with_x != no
10f2d63a 9868
ab9b9eab 9869if test "$have_x" != yes; then
698dcdb6 9870 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
9871 no_x=yes
9872else
9873 # If each of the values was on the command line, it overrides each guess.
9874 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9875 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9876 # Update the cache value to reflect the command line values.
9877 ac_cv_have_x="have_x=yes \
9878 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 9879 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 9880fi
10f2d63a 9881
ab9b9eab
VZ
9882if test "$no_x" = yes; then
9883 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 9884 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
9885#define X_DISPLAY_MISSING 1
9886EOF
10f2d63a 9887
ab9b9eab
VZ
9888 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9889else
9890 if test -n "$x_includes"; then
9891 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
9892 fi
9893
ab9b9eab
VZ
9894 # It would also be nice to do this for all -L options, not just this one.
9895 if test -n "$x_libraries"; then
9896 X_LIBS="$X_LIBS -L$x_libraries"
9897 # For Solaris; some versions of Sun CC require a space after -R and
9898 # others require no space. Words are not sufficient . . . .
698dcdb6 9899 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 9900 "SunOS 5"*)
698dcdb6 9901 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
8db37e06 9902echo "configure:9903: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
9903 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
9904 cat > conftest.$ac_ext <<EOF
8db37e06 9905#line 9906 "configure"
ab9b9eab 9906#include "confdefs.h"
10f2d63a 9907
698dcdb6 9908int main() {
788deba1 9909
698dcdb6
VZ
9910; return 0; }
9911EOF
8db37e06 9912if { (eval echo configure:9913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9913 rm -rf conftest*
ab9b9eab
VZ
9914 ac_R_nospace=yes
9915else
698dcdb6
VZ
9916 echo "configure: failed program was:" >&5
9917 cat conftest.$ac_ext >&5
9918 rm -rf conftest*
9919 ac_R_nospace=no
ab9b9eab 9920fi
698dcdb6 9921rm -f conftest*
ab9b9eab 9922 if test $ac_R_nospace = yes; then
698dcdb6 9923 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9924 X_LIBS="$X_LIBS -R$x_libraries"
9925 else
9926 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 9927 cat > conftest.$ac_ext <<EOF
8db37e06 9928#line 9929 "configure"
ab9b9eab 9929#include "confdefs.h"
788deba1 9930
698dcdb6 9931int main() {
ab9b9eab 9932
698dcdb6
VZ
9933; return 0; }
9934EOF
8db37e06 9935if { (eval echo configure:9936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9936 rm -rf conftest*
ab9b9eab
VZ
9937 ac_R_space=yes
9938else
698dcdb6
VZ
9939 echo "configure: failed program was:" >&5
9940 cat conftest.$ac_ext >&5
9941 rm -rf conftest*
9942 ac_R_space=no
ab9b9eab 9943fi
698dcdb6 9944rm -f conftest*
ab9b9eab 9945 if test $ac_R_space = yes; then
698dcdb6 9946 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
9947 X_LIBS="$X_LIBS -R $x_libraries"
9948 else
698dcdb6 9949 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
9950 fi
9951 fi
698dcdb6 9952 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
9953 esac
9954 fi
9955
9956 # Check for system-dependent libraries X programs must link with.
9957 # Do this before checking for the system-independent R6 libraries
9958 # (-lICE), since we may need -lsocket or whatever for X linking.
9959
9960 if test "$ISC" = yes; then
9961 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9962 else
698dcdb6
VZ
9963 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
9964 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 9965 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 9966 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
8db37e06 9967echo "configure:9968: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
9968ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9969if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9970 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9971else
698dcdb6 9972 ac_save_LIBS="$LIBS"
ab9b9eab 9973LIBS="-ldnet $LIBS"
698dcdb6 9974cat > conftest.$ac_ext <<EOF
8db37e06 9975#line 9976 "configure"
ab9b9eab
VZ
9976#include "confdefs.h"
9977/* Override any gcc2 internal prototype to avoid an error. */
9978/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9979 builtin and then its argument prototype would still apply. */
9980char dnet_ntoa();
9981
9982int main() {
9983dnet_ntoa()
9984; return 0; }
9985EOF
8db37e06 9986if { (eval echo configure:9987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9987 rm -rf conftest*
9988 eval "ac_cv_lib_$ac_lib_var=yes"
9989else
9990 echo "configure: failed program was:" >&5
9991 cat conftest.$ac_ext >&5
9992 rm -rf conftest*
9993 eval "ac_cv_lib_$ac_lib_var=no"
9994fi
9995rm -f conftest*
9996LIBS="$ac_save_LIBS"
9997
9998fi
9999if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10000 echo "$ac_t""yes" 1>&6
ab9b9eab 10001 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
10002else
10003 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10004fi
10005
10006 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 10007 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
8db37e06 10008echo "configure:10009: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
10009ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10010if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10011 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10012else
698dcdb6 10013 ac_save_LIBS="$LIBS"
ab9b9eab 10014LIBS="-ldnet_stub $LIBS"
698dcdb6 10015cat > conftest.$ac_ext <<EOF
8db37e06 10016#line 10017 "configure"
ab9b9eab
VZ
10017#include "confdefs.h"
10018/* Override any gcc2 internal prototype to avoid an error. */
10019/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10020 builtin and then its argument prototype would still apply. */
10021char dnet_ntoa();
10022
10023int main() {
10024dnet_ntoa()
10025; return 0; }
10026EOF
8db37e06 10027if { (eval echo configure:10028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10028 rm -rf conftest*
10029 eval "ac_cv_lib_$ac_lib_var=yes"
10030else
10031 echo "configure: failed program was:" >&5
10032 cat conftest.$ac_ext >&5
10033 rm -rf conftest*
10034 eval "ac_cv_lib_$ac_lib_var=no"
10035fi
10036rm -f conftest*
10037LIBS="$ac_save_LIBS"
10038
10039fi
10040if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10041 echo "$ac_t""yes" 1>&6
ab9b9eab 10042 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
10043else
10044 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10045fi
10046
10047 fi
10048
10049 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10050 # to get the SysV transport functions.
698dcdb6 10051 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
10052 # needs -lnsl.
10053 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
10054 # on Irix 5.2, according to dickey@clark.net.
10055 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
8db37e06 10056echo "configure:10057: checking for gethostbyname" >&5
698dcdb6
VZ
10057if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10058 echo $ac_n "(cached) $ac_c" 1>&6
10059else
10060 cat > conftest.$ac_ext <<EOF
8db37e06 10061#line 10062 "configure"
ab9b9eab
VZ
10062#include "confdefs.h"
10063/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10064 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
10065#include <assert.h>
10066/* Override any gcc2 internal prototype to avoid an error. */
10067/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10068 builtin and then its argument prototype would still apply. */
10069char gethostbyname();
10070
10071int main() {
ab9b9eab
VZ
10072
10073/* The GNU C library defines this for functions which it implements
10074 to always fail with ENOSYS. Some functions are actually named
10075 something starting with __ and the normal name is an alias. */
10076#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10077choke me
10078#else
698dcdb6 10079gethostbyname();
ab9b9eab
VZ
10080#endif
10081
698dcdb6
VZ
10082; return 0; }
10083EOF
8db37e06 10084if { (eval echo configure:10085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10085 rm -rf conftest*
10086 eval "ac_cv_func_gethostbyname=yes"
10087else
10088 echo "configure: failed program was:" >&5
10089 cat conftest.$ac_ext >&5
10090 rm -rf conftest*
10091 eval "ac_cv_func_gethostbyname=no"
10092fi
10093rm -f conftest*
10094fi
10095
10096if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10097 echo "$ac_t""yes" 1>&6
10098 :
10099else
10100 echo "$ac_t""no" 1>&6
10101fi
ab9b9eab
VZ
10102
10103 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 10104 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
8db37e06 10105echo "configure:10106: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
10106ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10107if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10108 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10109else
698dcdb6 10110 ac_save_LIBS="$LIBS"
ab9b9eab 10111LIBS="-lnsl $LIBS"
698dcdb6 10112cat > conftest.$ac_ext <<EOF
8db37e06 10113#line 10114 "configure"
ab9b9eab
VZ
10114#include "confdefs.h"
10115/* Override any gcc2 internal prototype to avoid an error. */
10116/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10117 builtin and then its argument prototype would still apply. */
10118char gethostbyname();
6232543b 10119
698dcdb6
VZ
10120int main() {
10121gethostbyname()
10122; return 0; }
10123EOF
8db37e06 10124if { (eval echo configure:10125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10125 rm -rf conftest*
10126 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 10127else
698dcdb6
VZ
10128 echo "configure: failed program was:" >&5
10129 cat conftest.$ac_ext >&5
10130 rm -rf conftest*
10131 eval "ac_cv_lib_$ac_lib_var=no"
10132fi
10133rm -f conftest*
10134LIBS="$ac_save_LIBS"
1e487827 10135
698dcdb6
VZ
10136fi
10137if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10138 echo "$ac_t""yes" 1>&6
10139 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10140else
10141 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10142fi
10143
10144 fi
10145
10146 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10147 # socket/setsockopt and other routines are undefined under SCO ODT
10148 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
10149 # on later versions), says simon@lia.di.epfl.ch: it contains
10150 # gethostby* variants that don't use the nameserver (or something).
10151 # -lsocket must be given before -lnsl if both are needed.
10152 # We assume that if connect needs -lnsl, so does gethostbyname.
10153 echo $ac_n "checking for connect""... $ac_c" 1>&6
8db37e06 10154echo "configure:10155: checking for connect" >&5
698dcdb6
VZ
10155if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
10156 echo $ac_n "(cached) $ac_c" 1>&6
10157else
10158 cat > conftest.$ac_ext <<EOF
8db37e06 10159#line 10160 "configure"
ab9b9eab
VZ
10160#include "confdefs.h"
10161/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10162 which can conflict with char connect(); below. */
ab9b9eab
VZ
10163#include <assert.h>
10164/* Override any gcc2 internal prototype to avoid an error. */
10165/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10166 builtin and then its argument prototype would still apply. */
10167char connect();
10168
10169int main() {
ab9b9eab
VZ
10170
10171/* The GNU C library defines this for functions which it implements
10172 to always fail with ENOSYS. Some functions are actually named
10173 something starting with __ and the normal name is an alias. */
10174#if defined (__stub_connect) || defined (__stub___connect)
10175choke me
10176#else
698dcdb6 10177connect();
ab9b9eab
VZ
10178#endif
10179
698dcdb6
VZ
10180; return 0; }
10181EOF
8db37e06 10182if { (eval echo configure:10183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10183 rm -rf conftest*
10184 eval "ac_cv_func_connect=yes"
10185else
10186 echo "configure: failed program was:" >&5
10187 cat conftest.$ac_ext >&5
10188 rm -rf conftest*
10189 eval "ac_cv_func_connect=no"
10190fi
10191rm -f conftest*
10192fi
10193
10194if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
10195 echo "$ac_t""yes" 1>&6
10196 :
10197else
10198 echo "$ac_t""no" 1>&6
10199fi
ab9b9eab
VZ
10200
10201 if test $ac_cv_func_connect = no; then
698dcdb6 10202 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
8db37e06 10203echo "configure:10204: checking for connect in -lsocket" >&5
698dcdb6
VZ
10204ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
10205if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10206 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10207else
698dcdb6 10208 ac_save_LIBS="$LIBS"
ab9b9eab 10209LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 10210cat > conftest.$ac_ext <<EOF
8db37e06 10211#line 10212 "configure"
ab9b9eab
VZ
10212#include "confdefs.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 connect();
10217
10218int main() {
10219connect()
10220; return 0; }
10221EOF
8db37e06 10222if { (eval echo configure:10223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10223 rm -rf conftest*
10224 eval "ac_cv_lib_$ac_lib_var=yes"
10225else
10226 echo "configure: failed program was:" >&5
10227 cat conftest.$ac_ext >&5
10228 rm -rf conftest*
10229 eval "ac_cv_lib_$ac_lib_var=no"
10230fi
10231rm -f conftest*
10232LIBS="$ac_save_LIBS"
10233
10234fi
10235if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10236 echo "$ac_t""yes" 1>&6
ab9b9eab 10237 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
10238else
10239 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10240fi
10241
10242 fi
10243
698dcdb6
VZ
10244 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
10245 echo $ac_n "checking for remove""... $ac_c" 1>&6
8db37e06 10246echo "configure:10247: checking for remove" >&5
698dcdb6
VZ
10247if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
10248 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10249else
698dcdb6 10250 cat > conftest.$ac_ext <<EOF
8db37e06 10251#line 10252 "configure"
ab9b9eab
VZ
10252#include "confdefs.h"
10253/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10254 which can conflict with char remove(); below. */
ab9b9eab
VZ
10255#include <assert.h>
10256/* Override any gcc2 internal prototype to avoid an error. */
10257/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10258 builtin and then its argument prototype would still apply. */
10259char remove();
10260
10261int main() {
ab9b9eab
VZ
10262
10263/* The GNU C library defines this for functions which it implements
10264 to always fail with ENOSYS. Some functions are actually named
10265 something starting with __ and the normal name is an alias. */
10266#if defined (__stub_remove) || defined (__stub___remove)
10267choke me
10268#else
698dcdb6 10269remove();
ab9b9eab
VZ
10270#endif
10271
698dcdb6
VZ
10272; return 0; }
10273EOF
8db37e06 10274if { (eval echo configure:10275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10275 rm -rf conftest*
10276 eval "ac_cv_func_remove=yes"
10277else
10278 echo "configure: failed program was:" >&5
10279 cat conftest.$ac_ext >&5
10280 rm -rf conftest*
10281 eval "ac_cv_func_remove=no"
10282fi
10283rm -f conftest*
10284fi
10285
10286if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
10287 echo "$ac_t""yes" 1>&6
10288 :
10289else
10290 echo "$ac_t""no" 1>&6
10291fi
ab9b9eab
VZ
10292
10293 if test $ac_cv_func_remove = no; then
698dcdb6 10294 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
8db37e06 10295echo "configure:10296: checking for remove in -lposix" >&5
698dcdb6
VZ
10296ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
10297if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10298 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10299else
698dcdb6 10300 ac_save_LIBS="$LIBS"
ab9b9eab 10301LIBS="-lposix $LIBS"
698dcdb6 10302cat > conftest.$ac_ext <<EOF
8db37e06 10303#line 10304 "configure"
ab9b9eab
VZ
10304#include "confdefs.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 remove();
10309
10310int main() {
10311remove()
10312; return 0; }
10313EOF
8db37e06 10314if { (eval echo configure:10315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10315 rm -rf conftest*
10316 eval "ac_cv_lib_$ac_lib_var=yes"
10317else
10318 echo "configure: failed program was:" >&5
10319 cat conftest.$ac_ext >&5
10320 rm -rf conftest*
10321 eval "ac_cv_lib_$ac_lib_var=no"
10322fi
10323rm -f conftest*
10324LIBS="$ac_save_LIBS"
10325
10326fi
10327if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10328 echo "$ac_t""yes" 1>&6
ab9b9eab 10329 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
10330else
10331 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10332fi
10333
10334 fi
10335
10336 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 10337 echo $ac_n "checking for shmat""... $ac_c" 1>&6
8db37e06 10338echo "configure:10339: checking for shmat" >&5
698dcdb6
VZ
10339if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
10340 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10341else
698dcdb6 10342 cat > conftest.$ac_ext <<EOF
8db37e06 10343#line 10344 "configure"
ab9b9eab
VZ
10344#include "confdefs.h"
10345/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10346 which can conflict with char shmat(); below. */
ab9b9eab
VZ
10347#include <assert.h>
10348/* Override any gcc2 internal prototype to avoid an error. */
10349/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10350 builtin and then its argument prototype would still apply. */
10351char shmat();
10352
10353int main() {
ab9b9eab
VZ
10354
10355/* The GNU C library defines this for functions which it implements
10356 to always fail with ENOSYS. Some functions are actually named
10357 something starting with __ and the normal name is an alias. */
10358#if defined (__stub_shmat) || defined (__stub___shmat)
10359choke me
10360#else
698dcdb6 10361shmat();
ab9b9eab
VZ
10362#endif
10363
698dcdb6
VZ
10364; return 0; }
10365EOF
8db37e06 10366if { (eval echo configure:10367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10367 rm -rf conftest*
10368 eval "ac_cv_func_shmat=yes"
10369else
10370 echo "configure: failed program was:" >&5
10371 cat conftest.$ac_ext >&5
10372 rm -rf conftest*
10373 eval "ac_cv_func_shmat=no"
10374fi
10375rm -f conftest*
10376fi
10377
10378if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
10379 echo "$ac_t""yes" 1>&6
10380 :
10381else
10382 echo "$ac_t""no" 1>&6
10383fi
ab9b9eab
VZ
10384
10385 if test $ac_cv_func_shmat = no; then
698dcdb6 10386 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
8db37e06 10387echo "configure:10388: checking for shmat in -lipc" >&5
698dcdb6
VZ
10388ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
10389if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10390 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10391else
698dcdb6 10392 ac_save_LIBS="$LIBS"
ab9b9eab 10393LIBS="-lipc $LIBS"
698dcdb6 10394cat > conftest.$ac_ext <<EOF
8db37e06 10395#line 10396 "configure"
ab9b9eab
VZ
10396#include "confdefs.h"
10397/* Override any gcc2 internal prototype to avoid an error. */
10398/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10399 builtin and then its argument prototype would still apply. */
10400char shmat();
10401
10402int main() {
10403shmat()
10404; return 0; }
10405EOF
8db37e06 10406if { (eval echo configure:10407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10407 rm -rf conftest*
10408 eval "ac_cv_lib_$ac_lib_var=yes"
10409else
10410 echo "configure: failed program was:" >&5
10411 cat conftest.$ac_ext >&5
10412 rm -rf conftest*
10413 eval "ac_cv_lib_$ac_lib_var=no"
10414fi
10415rm -f conftest*
10416LIBS="$ac_save_LIBS"
10417
10418fi
10419if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10420 echo "$ac_t""yes" 1>&6
ab9b9eab 10421 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
10422else
10423 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10424fi
10425
10426 fi
10427 fi
10428
10429 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 10430 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
10431 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10432 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10433 # check for ICE first), but we must link in the order -lSM -lICE or
10434 # we get undefined symbols. So assume we have SM if we have ICE.
10435 # These have to be linked with before -lX11, unlike the other
10436 # libraries we check for below, so use a different variable.
698dcdb6
VZ
10437 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10438 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
8db37e06 10439echo "configure:10440: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
10440ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10441if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10442 echo $ac_n "(cached) $ac_c" 1>&6
10443else
10444 ac_save_LIBS="$LIBS"
ab9b9eab 10445LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 10446cat > conftest.$ac_ext <<EOF
8db37e06 10447#line 10448 "configure"
ab9b9eab
VZ
10448#include "confdefs.h"
10449/* Override any gcc2 internal prototype to avoid an error. */
10450/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10451 builtin and then its argument prototype would still apply. */
10452char IceConnectionNumber();
10453
10454int main() {
10455IceConnectionNumber()
10456; return 0; }
10457EOF
8db37e06 10458if { (eval echo configure:10459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10459 rm -rf conftest*
10460 eval "ac_cv_lib_$ac_lib_var=yes"
10461else
10462 echo "configure: failed program was:" >&5
10463 cat conftest.$ac_ext >&5
10464 rm -rf conftest*
10465 eval "ac_cv_lib_$ac_lib_var=no"
10466fi
10467rm -f conftest*
10468LIBS="$ac_save_LIBS"
10469
10470fi
10471if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10472 echo "$ac_t""yes" 1>&6
ab9b9eab 10473 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
10474else
10475 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10476fi
10477
698dcdb6 10478 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
10479
10480fi
10481
1e6feb95
VZ
10482 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10483 LDFLAGS="$LDFLAGS $X_LIBS"
ab9b9eab 10484
1e6feb95
VZ
10485 if test "$wxUSE_MOTIF" = 1; then
10486 if test "$no_x" = "yes"; then
10487 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10488 fi
ab9b9eab 10489
1e6feb95
VZ
10490 GUI_TK_LIBRARY="$X_LIBS"
10491 TOOLKIT_INCLUDE="$X_CFLAGS"
ab9b9eab 10492
1e6feb95 10493 AFMINSTALL=afminstall
dad6c0ea 10494
1e6feb95
VZ
10495
10496 COMPILED_X_PROGRAM=0
cd6d6d5b 10497
1e6feb95 10498 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
8db37e06 10499echo "configure:10500: checking for Motif/Lesstif headers" >&5
1e6feb95 10500
ab9b9eab
VZ
10501ac_find_includes=
10502for ac_dir in $SEARCH_INCLUDE;
10503 do
10504 if test -f "$ac_dir/Xm/Xm.h"; then
10505 ac_find_includes=$ac_dir
10506 break
10507 fi
10508 done
10509
1e6feb95
VZ
10510 if test "$ac_find_includes" != "" ; then
10511 echo "$ac_t""found $ac_find_includes" 1>&6
10512 else
10513 cat > conftest.$ac_ext <<EOF
8db37e06 10514#line 10515 "configure"
cd6d6d5b
VZ
10515#include "confdefs.h"
10516
1e6feb95
VZ
10517 #include <Xm/Xm.h>
10518
698dcdb6 10519int main() {
cd6d6d5b 10520
1e6feb95 10521 int version;
cd6d6d5b 10522
1e6feb95
VZ
10523 version = xmUseVersion;
10524
698dcdb6
VZ
10525; return 0; }
10526EOF
8db37e06 10527if { (eval echo configure:10528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10528 rm -rf conftest*
10529
1e6feb95
VZ
10530 echo "$ac_t""found in default search path" 1>&6
10531 COMPILED_X_PROGRAM=1
10532
cd6d6d5b 10533else
698dcdb6
VZ
10534 echo "configure: failed program was:" >&5
10535 cat conftest.$ac_ext >&5
10536 rm -rf conftest*
10537
1e6feb95
VZ
10538 echo "$ac_t""no" 1>&6
10539 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10540
698dcdb6 10541
cd6d6d5b 10542fi
698dcdb6 10543rm -f conftest*
1e6feb95 10544 fi
ab9b9eab 10545
1e6feb95
VZ
10546 if test "$COMPILED_X_PROGRAM" = 0; then
10547 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
8db37e06 10548echo "configure:10549: checking for Motif/Lesstif library" >&5
1e6feb95 10549
ab9b9eab
VZ
10550ac_find_libraries=
10551for ac_dir in $SEARCH_LIB;
10552 do
f11bdd03 10553 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
10554 if test -f "$ac_dir/libXm.$ac_extension"; then
10555 ac_find_libraries=$ac_dir
10556 break 2
10557 fi
10558 done
10559 done
10560
1e6feb95
VZ
10561 if test "$ac_find_libraries" != "" ; then
10562
ab9b9eab
VZ
10563 ac_path_to_include=$ac_find_includes
10564 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10565 result=$?
10566 if test $result = 0; then
10567 ac_path_to_include=""
10568 else
10569 ac_path_to_include="-I$ac_find_includes"
10570 fi
10571
1e6feb95 10572
ab9b9eab
VZ
10573 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10574 result=$?
10575 if test $result = 0; then
10576 ac_path_to_link=""
10577 else
10578 ac_path_to_link="-L$ac_find_libraries"
10579 fi
10580
698dcdb6 10581
1e6feb95
VZ
10582 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10583 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10584 echo "$ac_t""found at $ac_find_libraries" 1>&6
10585 else
10586 cat > conftest.$ac_ext <<EOF
8db37e06 10587#line 10588 "configure"
cd6d6d5b 10588#include "confdefs.h"
ab9b9eab 10589
1e6feb95
VZ
10590 #include <Xm/Xm.h>
10591
698dcdb6 10592int main() {
ab9b9eab 10593
1e6feb95 10594 int version;
ab9b9eab 10595
1e6feb95
VZ
10596 version = xmUseVersion;
10597
698dcdb6
VZ
10598; return 0; }
10599EOF
8db37e06 10600if { (eval echo configure:10601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10601 rm -rf conftest*
10602
1e6feb95
VZ
10603 echo "$ac_t""found in default search path" 1>&6
10604 COMPILED_X_PROGRAM=1
10605
cd6d6d5b 10606else
698dcdb6
VZ
10607 echo "configure: failed program was:" >&5
10608 cat conftest.$ac_ext >&5
10609 rm -rf conftest*
10610
1e6feb95
VZ
10611 echo "$ac_t""no" 1>&6
10612 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10613
698dcdb6 10614
cd6d6d5b 10615fi
698dcdb6 10616rm -f conftest*
1e6feb95 10617 fi
cd6d6d5b 10618 fi
ab9b9eab 10619
1e6feb95
VZ
10620
10621 XPM_LINK=""
10622 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
8db37e06 10623echo "configure:10624: checking for Xpm library" >&5
1e6feb95 10624
ab9b9eab
VZ
10625ac_find_libraries=
10626for ac_dir in $SEARCH_LIB;
10627 do
f11bdd03 10628 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
10629 if test -f "$ac_dir/libXpm.$ac_extension"; then
10630 ac_find_libraries=$ac_dir
10631 break 2
10632 fi
10633 done
10634 done
10635
1e6feb95
VZ
10636 if test "$ac_find_libraries" != "" ; then
10637
ab9b9eab
VZ
10638 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10639 result=$?
10640 if test $result = 0; then
10641 ac_path_to_link=""
10642 else
10643 ac_path_to_link="-L$ac_find_libraries"
10644 fi
10645
1e6feb95
VZ
10646 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10647 XPM_LINK="-lXpm "
10648 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
10649#define wxHAVE_LIB_XPM 1
10650EOF
10651
1e6feb95
VZ
10652 echo "$ac_t""found at $ac_find_libraries" 1>&6
10653 else
10654 cat > conftest.$ac_ext <<EOF
8db37e06 10655#line 10656 "configure"
cd6d6d5b
VZ
10656#include "confdefs.h"
10657
1e6feb95
VZ
10658 #include <X11/xpm.h>
10659
698dcdb6 10660int main() {
cd6d6d5b 10661
1e6feb95 10662 int version;
cd6d6d5b 10663
1e6feb95
VZ
10664 version = XpmLibraryVersion();
10665
698dcdb6
VZ
10666; return 0; }
10667EOF
8db37e06 10668if { (eval echo configure:10669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10669 rm -rf conftest*
10670
1e6feb95
VZ
10671 XPM_LINK="-lXpm "
10672 cat >> confdefs.h <<\EOF
3ace2e6d
SN
10673#define wxHAVE_LIB_XPM 1
10674EOF
10675
1e6feb95
VZ
10676 echo "$ac_t""found in default search path" 1>&6
10677 COMPILED_X_PROGRAM=0
10678
cd6d6d5b 10679else
698dcdb6
VZ
10680 echo "configure: failed program was:" >&5
10681 cat conftest.$ac_ext >&5
10682 rm -rf conftest*
10683
1e6feb95
VZ
10684 echo "$ac_t""no" 1>&6
10685 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10686
698dcdb6 10687
cd6d6d5b 10688fi
698dcdb6 10689rm -f conftest*
1e6feb95
VZ
10690 fi
10691
10692 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
10693 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
10694 TOOLKIT=MOTIF
10695 GUIDIST=MOTIF_DIST
ab9b9eab
VZ
10696 fi
10697
1e6feb95
VZ
10698 if test "$wxUSE_MAC" = 1; then
10699 TOOLKIT=MAC
10700 GUIDIST=MACX_DIST
10701 fi
10f2d63a 10702
1e6feb95
VZ
10703 if test "$wxUSE_PM" = 1; then
10704 TOOLKIT=PM
10705 GUIDIST=GTK_DIST
10706 fi
b4085ce6 10707
1e6feb95
VZ
10708 if test "$TOOLKIT" != "PM" ; then
10709 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10710 else
10711 TOOLKIT_DIR="os2"
10712 fi
e07802fc 10713
1e6feb95 10714 TOOLKIT_NAME="${TOOLKIT_DIR}"
10f2d63a 10715
1e6feb95
VZ
10716 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10717
10718 if test "$TOOLKIT_NAME" = "motif"; then
10719 TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10720 fi
10721
10722 if test "$wxUSE_UNIVERSAL" = "yes"; then
10723 TOOLKIT_NAME="${TOOLKIT_NAME}univ"
10724 UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
10725 TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}"
10726 SETUPH_DIR="univ"
f6bcfd97 10727 else
1e6feb95
VZ
10728 SETUPH_DIR="${TOOLKIT_DIR}"
10729 fi
10730
10731 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10732 TOOLKIT_NAME="${TOOLKIT_NAME}d"
f6bcfd97
BP
10733 fi
10734
2224580a 10735 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
1e6feb95
VZ
10736 if test "$wxUSE_UNIVERSAL" = "yes"; then
10737 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__"
10738 fi
10f2d63a 10739
f6bcfd97 10740 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10f2d63a 10741
1e6feb95
VZ
10742 if test "$wxUSE_UNIVERSAL" = "yes"; then
10743 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10744 else
10745 ALL_OBJECTS="\$(GUIOBJS)"
10746 fi
10747
10748 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10749
10750 if test "$TOOLKIT" != "MSW"; then
10751 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10752 fi
10753
10754 if test "$wxUSE_HTML" = "yes"; then
10755 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10756 fi
3fcdd07b 10757
1e6feb95
VZ
10758 if test "$TOOLKIT" != "MSW"; then
10759 if test "$wxUSE_ODBC" = "yes" ; then
10760 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10761 fi
3fcdd07b
VZ
10762 fi
10763
831b3152
VZ
10764 if test "x$REGEX_INCLUDE" != "x" ; then
10765 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10766 fi
10767
d9d8273d 10768 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 10769 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
10770 fi
10771 if test "$wxUSE_LIBTIFF" = "yes" ; then
10772 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10773 fi
10774 if test "$wxUSE_LIBPNG" = "yes" ; then
10775 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10776 fi
10777 if test "$wxUSE_ZLIB" = "yes" ; then
10778 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10779 fi
3fed1840
RR
10780 if test "$wxUSE_FREETYPE" = "yes" ; then
10781 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10782 fi
2224580a 10783
1e6feb95
VZ
10784 if test "$wxUSE_UNIVERSAL" = "yes"; then
10785 ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)"
10786 else
10787 ALL_DEPFILES="\$(GUIDEPS)"
10788 fi
10789
10790 ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)"
10791
10792 if test "$TOOLKIT" != "MSW"; then
10793 ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)"
10794 fi
10795
10796 if test "$wxUSE_HTML" = "yes"; then
10797 ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)"
10798 fi
10799
879df073 10800 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
1e6feb95 10801 if test "$wxUSE_UNIVERSAL" = "yes"; then
879df073 10802 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
1e6feb95 10803 fi
2224580a
VZ
10804 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10805 RPM_SPEC="wx\$(TOOLKIT).spec"
10806
10807 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10808 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 10809else
dad6c0ea
VZ
10810 USE_GUI=0
10811
f6bcfd97
BP
10812 TOOLKIT_DIR="base"
10813
0b2effe9
VZ
10814 TOOLKIT_VPATH="."
10815
f6bcfd97
BP
10816 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10817 TOOLKIT_NAME="${TOOLKIT_DIR}d"
10818 else
10819 TOOLKIT_NAME="${TOOLKIT_DIR}"
10820 fi
10821
07eb77a6
RL
10822 TOOLKIT_DEF="-D__WXBASE__"
10823
b4085ce6
GD
10824 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
10825 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10f2d63a 10826
0b2effe9
VZ
10827 if test "x$REGEX_INCLUDE" != "x" ; then
10828 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10829 fi
10830
a20b6d3a
VZ
10831 if test "$wxUSE_ZLIB" = "yes" ; then
10832 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10833 fi
10834
f6bcfd97 10835 WX_LIBRARY="wx_${TOOLKIT_NAME}"
2224580a 10836
831b3152 10837 PORT_FILES="\${top_srcdir}/src/files.lst"
2224580a
VZ
10838 RPM_FILES="src/rpmfiles.lst"
10839 RPM_SPEC="wxBase.spec"
10840
10841 GUIDIST="BASE_DIST"
10842 DISTDIR="wxBase"
10f2d63a
VZ
10843fi
10844
10845WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
bdad4e7e 10846WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10f2d63a
VZ
10847
10848WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
bdad4e7e 10849WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10f2d63a
VZ
10850
10851WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
bdad4e7e 10852WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10f2d63a
VZ
10853
10854WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
10855WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
10856WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
bdad4e7e
RR
10857WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
10858WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
10859WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10f2d63a
VZ
10860
10861SHARED_LD=
10862PIC_FLAG=
10863WX_ALL=
10864WX_ALL_INSTALLED=
1d62a8b4 10865BURNT_LIBRARY_NAME=
f6bcfd97 10866WX_TARGET_LIBRARY_SONAME=
10f2d63a 10867
698dcdb6 10868
10f2d63a
VZ
10869if test "$wxUSE_SHARED" = "yes"; then
10870 case "${host}" in
10871 *-hp-hpux* )
10872 if test "$GCC" = yes ; then
6b076b40 10873 SHARED_LD="${CXX} -shared -fPIC -o"
10f2d63a
VZ
10874 PIC_FLAG="-fPIC"
10875 else
f6bcfd97
BP
10876 LDFLAGS="-L/usr/lib"
10877
10f2d63a
VZ
10878 SHARED_LD="${CXX} -b -o"
10879 PIC_FLAG="+Z"
10880 fi
f6bcfd97
BP
10881 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
10882 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
c661ecca 10883 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 10884 WX_ALL_INSTALLED="preinstall_gl"
c661ecca
RR
10885 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
10886 else
10887 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
10888 fi
10f2d63a 10889 ;;
b12915c1
VZ
10890
10891 *-*-linux* )
6b076b40 10892 SHARED_LD="${CXX} -shared -o"
10f2d63a 10893 PIC_FLAG="-fPIC"
00cf1208 10894 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 10895 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
bdad4e7e 10896 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 10897 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 10898 fi
c661ecca
RR
10899 if test "$wxUSE_OPENGL" = "yes"; then
10900 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10901 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10902 else
10903 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10904 WX_ALL="CREATE_LINKS"
422107f9 10905 fi
00cf1208 10906 ;;
10f2d63a
VZ
10907 *-*-irix5* | *-*-irix6* )
10908 if test "$GCC" = yes ; then
6b076b40 10909 SHARED_LD="${CXX} -shared -o"
10f2d63a
VZ
10910 PIC_FLAG="-fPIC"
10911 else
10912 SHARED_LD="${CXX} -shared -o"
10913 fi
c661ecca
RR
10914 if test "$wxUSE_OPENGL" = "yes"; then
10915 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10916 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10917 else
10918 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10919 WX_ALL="CREATE_LINKS"
422107f9 10920 fi
10f2d63a
VZ
10921 ;;
10922 *-*-solaris2* )
10923 if test "$GCC" = yes ; then
6b076b40 10924 SHARED_LD="${CXX} -shared -o"
10f2d63a 10925 PIC_FLAG="-fPIC"
f6bcfd97
BP
10926
10927 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
10928 else
10929 SHARED_LD="${CXX} -G -o"
10930 PIC_FLAG="-KPIC"
10931 fi
c661ecca
RR
10932 if test "$wxUSE_OPENGL" = "yes"; then
10933 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10934 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10935 else
10936 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10937 WX_ALL="CREATE_LINKS"
10938 fi
10f2d63a
VZ
10939 ;;
10940 *-*-sunos4* )
6b076b40 10941 SHARED_LD="${CXX} -shared -o"
10f2d63a
VZ
10942 PIC_FLAG="-fPIC"
10943 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10944 WX_ALL="CREATE_LINKS"
10945 ;;
95c8801c 10946 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
6b076b40 10947 SHARED_LD="${CXX} -shared -o"
10f2d63a 10948 PIC_FLAG="-fPIC"
37d403aa
JS
10949 if test "$wxUSE_OPENGL" = "yes"; then
10950 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10951 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10952 else
10953 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10954 WX_ALL="CREATE_LINKS"
10955 fi
10f2d63a 10956 ;;
b4085ce6 10957 *-*-darwin* )
f11bdd03
GD
10958 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__DARWIN__ -D__POWERPC__"
10959 CFLAGS="${CFLAGS} -fno-common"
10960 CPPFLAGS="${CPPFLAGS} -fno-common"
ea5999b9
GD
10961 SHARED_LD="${CXX} -dynamiclib -o"
10962 PIC_FLAG="-dynamic -fPIC"
b4085ce6
GD
10963 if test "$wxUSE_OPENGL" = "yes"; then
10964 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10965 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10966 else
10967 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10968 WX_ALL="CREATE_LINKS"
10969 fi
f11bdd03
GD
10970 if test "$wxUSE_MAC" = 1 ; then
10971 WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
10972 fi
1e6feb95
VZ
10973 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10974 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10975 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
10976 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
10977 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
10978 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
10979 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
10980 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
b4085ce6 10981 ;;
10f2d63a
VZ
10982 *-*-osf* )
10983 SHARED_LD="${CXX} -shared -o"
10984 PIC_FLAG="-fPIC"
10985 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10986 WX_ALL="CREATE_LINKS"
10987 ;;
10988 *-*-dgux5* )
10989 SHARED_LD="${CXX} -shared -o"
10990 PIC_FLAG="-fPIC"
10991 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10992 WX_ALL="CREATE_LINKS"
10993 ;;
10994 *-*-sysv5* )
6b076b40 10995 SHARED_LD="${CXX} -shared -o"
10f2d63a
VZ
10996 PIC_FLAG="-fPIC"
10997 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10998 WX_ALL="CREATE_LINKS"
10999 ;;
11000 *-*-aix* )
11001 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
11002 WX_ALL=${WX_LIBRARY_NAME_SHARED}
11003 ;;
1c8183e2 11004 *-*-cygwin* )
10f2d63a 11005 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 11006 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
11007 if test "$wxUSE_OPENGL" = "yes"; then
11008 WX_ALL_INSTALLED="preinstall_gl"
11009 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
11010 else
11011 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
11012 fi
10f2d63a 11013 ;;
b12915c1 11014 *-*-mingw32* )
10f2d63a 11015 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 11016 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
11017 if test "$wxUSE_OPENGL" = "yes"; then
11018 WX_ALL_INSTALLED="preinstall_gl"
11019 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
11020 else
11021 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
11022 fi
10f2d63a
VZ
11023 ;;
11024 *-pc-os2_emx )
e07802fc
VZ
11025 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11026 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 11027 ;;
b12915c1 11028 *-*-beos* )
e2b8b066 11029 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
11030 PIC_FLAG="-fPIC"
11031 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11032 WX_ALL="CREATE_LINKS"
11033 ;;
10f2d63a 11034 *)
698dcdb6 11035 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
11036 esac
11037
11038 if test "x$WX_TARGET_LIBRARY" = "x"; then
11039 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 11040 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 11041 fi
3711412e 11042 WX_TARGET_LIBRARY_TYPE="so"
10f2d63a
VZ
11043else
11044 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 11045 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
11046
11047 if test "$wxUSE_OPENGL" = "yes"; then
11048 WX_ALL_INSTALLED="preinstall_gl"
11049 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
11050 else
11051 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
11052 fi
11053
11054 if test "$wxUSE_GUI" = "no"; then
11055 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11056 fi
11057
3711412e 11058 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a
VZ
11059fi
11060
698dcdb6
VZ
11061
11062for ac_hdr in strings.h
10f2d63a 11063do
698dcdb6
VZ
11064ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11065echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8db37e06 11066echo "configure:11067: checking for $ac_hdr" >&5
698dcdb6
VZ
11067if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11068 echo $ac_n "(cached) $ac_c" 1>&6
11069else
11070 cat > conftest.$ac_ext <<EOF
8db37e06 11071#line 11072 "configure"
10f2d63a 11072#include "confdefs.h"
698dcdb6
VZ
11073#include <$ac_hdr>
11074EOF
11075ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8db37e06 11076{ (eval echo configure:11077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11077ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11078if test -z "$ac_err"; then
11079 rm -rf conftest*
11080 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11081else
698dcdb6
VZ
11082 echo "$ac_err" >&5
11083 echo "configure: failed program was:" >&5
10f2d63a 11084 cat conftest.$ac_ext >&5
698dcdb6
VZ
11085 rm -rf conftest*
11086 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11087fi
698dcdb6 11088rm -f conftest*
10f2d63a 11089fi
698dcdb6
VZ
11090if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11091 echo "$ac_t""yes" 1>&6
11092 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11093 cat >> confdefs.h <<EOF
11094#define $ac_tr_hdr 1
10f2d63a 11095EOF
698dcdb6
VZ
11096
11097else
11098 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11099fi
11100done
11101
698dcdb6 11102for ac_hdr in stdlib.h
9cfadba2 11103do
698dcdb6
VZ
11104ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11105echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8db37e06 11106echo "configure:11107: checking for $ac_hdr" >&5
698dcdb6
VZ
11107if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11108 echo $ac_n "(cached) $ac_c" 1>&6
11109else
11110 cat > conftest.$ac_ext <<EOF
8db37e06 11111#line 11112 "configure"
9cfadba2 11112#include "confdefs.h"
698dcdb6
VZ
11113#include <$ac_hdr>
11114EOF
11115ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8db37e06 11116{ (eval echo configure:11117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11117ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11118if test -z "$ac_err"; then
11119 rm -rf conftest*
11120 eval "ac_cv_header_$ac_safe=yes"
6232543b 11121else
698dcdb6
VZ
11122 echo "$ac_err" >&5
11123 echo "configure: failed program was:" >&5
9cfadba2 11124 cat conftest.$ac_ext >&5
698dcdb6
VZ
11125 rm -rf conftest*
11126 eval "ac_cv_header_$ac_safe=no"
9cfadba2 11127fi
698dcdb6 11128rm -f conftest*
9cfadba2 11129fi
698dcdb6
VZ
11130if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11131 echo "$ac_t""yes" 1>&6
11132 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11133 cat >> confdefs.h <<EOF
11134#define $ac_tr_hdr 1
9cfadba2 11135EOF
698dcdb6
VZ
11136
11137else
11138 echo "$ac_t""no" 1>&6
9cfadba2
VZ
11139fi
11140done
10f2d63a 11141
698dcdb6 11142for ac_hdr in unistd.h
10f2d63a 11143do
698dcdb6
VZ
11144ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11145echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8db37e06 11146echo "configure:11147: checking for $ac_hdr" >&5
698dcdb6
VZ
11147if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11148 echo $ac_n "(cached) $ac_c" 1>&6
11149else
11150 cat > conftest.$ac_ext <<EOF
8db37e06 11151#line 11152 "configure"
10f2d63a 11152#include "confdefs.h"
698dcdb6
VZ
11153#include <$ac_hdr>
11154EOF
11155ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8db37e06 11156{ (eval echo configure:11157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11157ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11158if test -z "$ac_err"; then
11159 rm -rf conftest*
11160 eval "ac_cv_header_$ac_safe=yes"
6232543b 11161else
698dcdb6
VZ
11162 echo "$ac_err" >&5
11163 echo "configure: failed program was:" >&5
10f2d63a 11164 cat conftest.$ac_ext >&5
698dcdb6
VZ
11165 rm -rf conftest*
11166 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11167fi
698dcdb6 11168rm -f conftest*
10f2d63a 11169fi
698dcdb6
VZ
11170if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11171 echo "$ac_t""yes" 1>&6
11172 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11173 cat >> confdefs.h <<EOF
11174#define $ac_tr_hdr 1
10f2d63a 11175EOF
698dcdb6
VZ
11176
11177else
11178 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11179fi
11180done
11181
698dcdb6 11182for ac_hdr in wchar.h
10f2d63a 11183do
698dcdb6
VZ
11184ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11185echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8db37e06 11186echo "configure:11187: checking for $ac_hdr" >&5
698dcdb6
VZ
11187if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11188 echo $ac_n "(cached) $ac_c" 1>&6
11189else
11190 cat > conftest.$ac_ext <<EOF
8db37e06 11191#line 11192 "configure"
10f2d63a 11192#include "confdefs.h"
698dcdb6
VZ
11193#include <$ac_hdr>
11194EOF
11195ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8db37e06 11196{ (eval echo configure:11197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11197ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11198if test -z "$ac_err"; then
11199 rm -rf conftest*
11200 eval "ac_cv_header_$ac_safe=yes"
6f72b082 11201else
698dcdb6
VZ
11202 echo "$ac_err" >&5
11203 echo "configure: failed program was:" >&5
6f72b082 11204 cat conftest.$ac_ext >&5
698dcdb6
VZ
11205 rm -rf conftest*
11206 eval "ac_cv_header_$ac_safe=no"
6f72b082 11207fi
698dcdb6 11208rm -f conftest*
6f72b082 11209fi
698dcdb6
VZ
11210if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11211 echo "$ac_t""yes" 1>&6
11212 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11213 cat >> confdefs.h <<EOF
11214#define $ac_tr_hdr 1
6f72b082 11215EOF
698dcdb6
VZ
11216
11217else
11218 echo "$ac_t""no" 1>&6
6f72b082
OK
11219fi
11220done
11221
698dcdb6 11222for ac_hdr in wcstr.h
6f72b082 11223do
698dcdb6
VZ
11224ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11225echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8db37e06 11226echo "configure:11227: checking for $ac_hdr" >&5
698dcdb6
VZ
11227if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11228 echo $ac_n "(cached) $ac_c" 1>&6
11229else
11230 cat > conftest.$ac_ext <<EOF
8db37e06 11231#line 11232 "configure"
6f72b082 11232#include "confdefs.h"
698dcdb6
VZ
11233#include <$ac_hdr>
11234EOF
11235ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8db37e06 11236{ (eval echo configure:11237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11237ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11238if test -z "$ac_err"; then
11239 rm -rf conftest*
11240 eval "ac_cv_header_$ac_safe=yes"
6f72b082 11241else
698dcdb6
VZ
11242 echo "$ac_err" >&5
11243 echo "configure: failed program was:" >&5
6f72b082 11244 cat conftest.$ac_ext >&5
698dcdb6
VZ
11245 rm -rf conftest*
11246 eval "ac_cv_header_$ac_safe=no"
6f72b082 11247fi
698dcdb6 11248rm -f conftest*
6f72b082 11249fi
698dcdb6
VZ
11250if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11251 echo "$ac_t""yes" 1>&6
11252 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11253 cat >> confdefs.h <<EOF
11254#define $ac_tr_hdr 1
6f72b082 11255EOF
698dcdb6
VZ
11256
11257else
11258 echo "$ac_t""no" 1>&6
6f72b082
OK
11259fi
11260done
11261
698dcdb6 11262for ac_hdr in fnmatch.h
6f72b082 11263do
698dcdb6
VZ
11264ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11265echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8db37e06 11266echo "configure:11267: checking for $ac_hdr" >&5
698dcdb6
VZ
11267if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11268 echo $ac_n "(cached) $ac_c" 1>&6
11269else
11270 cat > conftest.$ac_ext <<EOF
8db37e06 11271#line 11272 "configure"
6f72b082 11272#include "confdefs.h"
698dcdb6
VZ
11273#include <$ac_hdr>
11274EOF
11275ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8db37e06 11276{ (eval echo configure:11277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11277ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11278if test -z "$ac_err"; then
11279 rm -rf conftest*
11280 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11281else
698dcdb6
VZ
11282 echo "$ac_err" >&5
11283 echo "configure: failed program was:" >&5
10f2d63a 11284 cat conftest.$ac_ext >&5
698dcdb6
VZ
11285 rm -rf conftest*
11286 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11287fi
698dcdb6 11288rm -f conftest*
10f2d63a 11289fi
698dcdb6
VZ
11290if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11291 echo "$ac_t""yes" 1>&6
11292 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11293 cat >> confdefs.h <<EOF
11294#define $ac_tr_hdr 1
10f2d63a 11295EOF
698dcdb6
VZ
11296
11297else
11298 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11299fi
11300done
11301
698dcdb6 11302for ac_hdr in iconv.h
0fb0dd83 11303do
698dcdb6
VZ
11304ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11305echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8db37e06 11306echo "configure:11307: checking for $ac_hdr" >&5
698dcdb6
VZ
11307if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11308 echo $ac_n "(cached) $ac_c" 1>&6
11309else
11310 cat > conftest.$ac_ext <<EOF
8db37e06 11311#line 11312 "configure"
0fb0dd83 11312#include "confdefs.h"
698dcdb6
VZ
11313#include <$ac_hdr>
11314EOF
11315ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8db37e06 11316{ (eval echo configure:11317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11317ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11318if test -z "$ac_err"; then
11319 rm -rf conftest*
11320 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 11321else
698dcdb6
VZ
11322 echo "$ac_err" >&5
11323 echo "configure: failed program was:" >&5
0fb0dd83 11324 cat conftest.$ac_ext >&5
698dcdb6
VZ
11325 rm -rf conftest*
11326 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 11327fi
698dcdb6 11328rm -f conftest*
0fb0dd83 11329fi
698dcdb6
VZ
11330if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11331 echo "$ac_t""yes" 1>&6
11332 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11333 cat >> confdefs.h <<EOF
11334#define $ac_tr_hdr 1
0fb0dd83 11335EOF
698dcdb6
VZ
11336
11337else
11338 echo "$ac_t""no" 1>&6
0fb0dd83
RR
11339fi
11340done
11341
698dcdb6 11342for ac_hdr in langinfo.h
1f8ae82f 11343do
698dcdb6
VZ
11344ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11345echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8db37e06 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
8db37e06 11351#line 11352 "configure"
1f8ae82f 11352#include "confdefs.h"
698dcdb6
VZ
11353#include <$ac_hdr>
11354EOF
11355ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8db37e06 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"
1f8ae82f 11361else
698dcdb6
VZ
11362 echo "$ac_err" >&5
11363 echo "configure: failed program was:" >&5
1f8ae82f 11364 cat conftest.$ac_ext >&5
698dcdb6
VZ
11365 rm -rf conftest*
11366 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 11367fi
698dcdb6 11368rm -f conftest*
1f8ae82f 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
1f8ae82f 11375EOF
698dcdb6
VZ
11376
11377else
11378 echo "$ac_t""no" 1>&6
1f8ae82f
GD
11379fi
11380done
11381
698dcdb6 11382
73fd4a60
VZ
11383if test "$wxUSE_GUI" = "yes"; then
11384 if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 11385 for ac_hdr in X11/XKBlib.h
10f2d63a 11386do
698dcdb6
VZ
11387ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11388echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8db37e06 11389echo "configure:11390: checking for $ac_hdr" >&5
698dcdb6
VZ
11390if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11391 echo $ac_n "(cached) $ac_c" 1>&6
11392else
11393 cat > conftest.$ac_ext <<EOF
8db37e06 11394#line 11395 "configure"
10f2d63a 11395#include "confdefs.h"
698dcdb6
VZ
11396#include <$ac_hdr>
11397EOF
11398ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8db37e06 11399{ (eval echo configure:11400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11400ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11401if test -z "$ac_err"; then
11402 rm -rf conftest*
11403 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11404else
698dcdb6
VZ
11405 echo "$ac_err" >&5
11406 echo "configure: failed program was:" >&5
10f2d63a 11407 cat conftest.$ac_ext >&5
698dcdb6
VZ
11408 rm -rf conftest*
11409 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11410fi
698dcdb6 11411rm -f conftest*
10f2d63a 11412fi
698dcdb6
VZ
11413if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11414 echo "$ac_t""yes" 1>&6
11415 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11416 cat >> confdefs.h <<EOF
11417#define $ac_tr_hdr 1
10f2d63a 11418EOF
698dcdb6
VZ
11419
11420else
11421 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11422fi
11423done
11424
73fd4a60 11425 fi
10f2d63a
VZ
11426fi
11427
3e44f09d 11428if test "$USE_WIN32" = 1; then
29fd3c0c
VS
11429 for ac_hdr in w32api.h
11430do
11431ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11432echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8db37e06 11433echo "configure:11434: checking for $ac_hdr" >&5
29fd3c0c
VS
11434if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11435 echo $ac_n "(cached) $ac_c" 1>&6
11436else
11437 cat > conftest.$ac_ext <<EOF
8db37e06 11438#line 11439 "configure"
29fd3c0c
VS
11439#include "confdefs.h"
11440#include <$ac_hdr>
11441EOF
11442ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8db37e06 11443{ (eval echo configure:11444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
11444ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11445if test -z "$ac_err"; then
11446 rm -rf conftest*
11447 eval "ac_cv_header_$ac_safe=yes"
11448else
11449 echo "$ac_err" >&5
11450 echo "configure: failed program was:" >&5
11451 cat conftest.$ac_ext >&5
11452 rm -rf conftest*
11453 eval "ac_cv_header_$ac_safe=no"
11454fi
11455rm -f conftest*
11456fi
11457if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11458 echo "$ac_t""yes" 1>&6
11459 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11460 cat >> confdefs.h <<EOF
11461#define $ac_tr_hdr 1
11462EOF
11463
11464else
11465 echo "$ac_t""no" 1>&6
11466fi
11467done
11468
11469fi
11470
698dcdb6
VZ
11471
11472echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8db37e06 11473echo "configure:11474: checking for ANSI C header files" >&5
698dcdb6
VZ
11474if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11475 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11476else
698dcdb6 11477 cat > conftest.$ac_ext <<EOF
8db37e06 11478#line 11479 "configure"
10f2d63a
VZ
11479#include "confdefs.h"
11480#include <stdlib.h>
11481#include <stdarg.h>
11482#include <string.h>
11483#include <float.h>
698dcdb6
VZ
11484EOF
11485ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8db37e06 11486{ (eval echo configure:11487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11487ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11488if test -z "$ac_err"; then
11489 rm -rf conftest*
10f2d63a
VZ
11490 ac_cv_header_stdc=yes
11491else
698dcdb6
VZ
11492 echo "$ac_err" >&5
11493 echo "configure: failed program was:" >&5
10f2d63a 11494 cat conftest.$ac_ext >&5
698dcdb6 11495 rm -rf conftest*
10f2d63a
VZ
11496 ac_cv_header_stdc=no
11497fi
698dcdb6 11498rm -f conftest*
10f2d63a
VZ
11499
11500if test $ac_cv_header_stdc = yes; then
11501 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 11502cat > conftest.$ac_ext <<EOF
8db37e06 11503#line 11504 "configure"
10f2d63a
VZ
11504#include "confdefs.h"
11505#include <string.h>
698dcdb6 11506EOF
10f2d63a
VZ
11507if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11508 egrep "memchr" >/dev/null 2>&1; then
11509 :
11510else
698dcdb6 11511 rm -rf conftest*
10f2d63a
VZ
11512 ac_cv_header_stdc=no
11513fi
11514rm -f conftest*
11515
11516fi
11517
11518if test $ac_cv_header_stdc = yes; then
11519 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 11520cat > conftest.$ac_ext <<EOF
8db37e06 11521#line 11522 "configure"
10f2d63a
VZ
11522#include "confdefs.h"
11523#include <stdlib.h>
698dcdb6 11524EOF
10f2d63a
VZ
11525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11526 egrep "free" >/dev/null 2>&1; then
11527 :
11528else
698dcdb6 11529 rm -rf conftest*
10f2d63a
VZ
11530 ac_cv_header_stdc=no
11531fi
11532rm -f conftest*
11533
11534fi
11535
11536if test $ac_cv_header_stdc = yes; then
11537 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 11538if test "$cross_compiling" = yes; then
10f2d63a
VZ
11539 :
11540else
698dcdb6 11541 cat > conftest.$ac_ext <<EOF
8db37e06 11542#line 11543 "configure"
10f2d63a
VZ
11543#include "confdefs.h"
11544#include <ctype.h>
698dcdb6
VZ
11545#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11546#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 11547#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
11548int main () { int i; for (i = 0; i < 256; i++)
11549if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11550exit (0); }
11551
11552EOF
8db37e06 11553if { (eval echo configure:11554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 11554then
10f2d63a
VZ
11555 :
11556else
698dcdb6
VZ
11557 echo "configure: failed program was:" >&5
11558 cat conftest.$ac_ext >&5
11559 rm -fr conftest*
11560 ac_cv_header_stdc=no
10f2d63a 11561fi
698dcdb6 11562rm -fr conftest*
10f2d63a 11563fi
698dcdb6 11564
10f2d63a
VZ
11565fi
11566fi
1e487827 11567
698dcdb6
VZ
11568echo "$ac_t""$ac_cv_header_stdc" 1>&6
11569if test $ac_cv_header_stdc = yes; then
11570 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11571#define STDC_HEADERS 1
11572EOF
11573
11574fi
11575
698dcdb6 11576echo $ac_n "checking for mode_t""... $ac_c" 1>&6
8db37e06 11577echo "configure:11578: checking for mode_t" >&5
698dcdb6
VZ
11578if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11579 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 11580else
698dcdb6 11581 cat > conftest.$ac_ext <<EOF
8db37e06 11582#line 11583 "configure"
1e487827 11583#include "confdefs.h"
698dcdb6
VZ
11584#include <sys/types.h>
11585#if STDC_HEADERS
11586#include <stdlib.h>
11587#include <stddef.h>
11588#endif
11589EOF
11590if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11591 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11592 rm -rf conftest*
10f2d63a
VZ
11593 ac_cv_type_mode_t=yes
11594else
698dcdb6
VZ
11595 rm -rf conftest*
11596 ac_cv_type_mode_t=no
703e0a69 11597fi
698dcdb6 11598rm -f conftest*
1e487827 11599
698dcdb6
VZ
11600fi
11601echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11602if test $ac_cv_type_mode_t = no; then
11603 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11604#define mode_t int
11605EOF
11606
11607fi
11608
698dcdb6 11609echo $ac_n "checking for off_t""... $ac_c" 1>&6
8db37e06 11610echo "configure:11611: checking for off_t" >&5
698dcdb6
VZ
11611if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11612 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11613else
698dcdb6 11614 cat > conftest.$ac_ext <<EOF
8db37e06 11615#line 11616 "configure"
10f2d63a 11616#include "confdefs.h"
698dcdb6
VZ
11617#include <sys/types.h>
11618#if STDC_HEADERS
11619#include <stdlib.h>
11620#include <stddef.h>
11621#endif
11622EOF
11623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11624 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11625 rm -rf conftest*
10f2d63a
VZ
11626 ac_cv_type_off_t=yes
11627else
698dcdb6
VZ
11628 rm -rf conftest*
11629 ac_cv_type_off_t=no
703e0a69 11630fi
698dcdb6 11631rm -f conftest*
1e487827 11632
698dcdb6
VZ
11633fi
11634echo "$ac_t""$ac_cv_type_off_t" 1>&6
11635if test $ac_cv_type_off_t = no; then
11636 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11637#define off_t long
11638EOF
11639
11640fi
11641
698dcdb6 11642echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8db37e06 11643echo "configure:11644: checking for pid_t" >&5
698dcdb6
VZ
11644if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11645 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11646else
698dcdb6 11647 cat > conftest.$ac_ext <<EOF
8db37e06 11648#line 11649 "configure"
10f2d63a 11649#include "confdefs.h"
698dcdb6
VZ
11650#include <sys/types.h>
11651#if STDC_HEADERS
11652#include <stdlib.h>
11653#include <stddef.h>
11654#endif
11655EOF
11656if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11657 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11658 rm -rf conftest*
10f2d63a
VZ
11659 ac_cv_type_pid_t=yes
11660else
698dcdb6
VZ
11661 rm -rf conftest*
11662 ac_cv_type_pid_t=no
703e0a69 11663fi
698dcdb6 11664rm -f conftest*
1e487827 11665
698dcdb6
VZ
11666fi
11667echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11668if test $ac_cv_type_pid_t = no; then
11669 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11670#define pid_t int
11671EOF
11672
11673fi
11674
698dcdb6 11675echo $ac_n "checking for size_t""... $ac_c" 1>&6
8db37e06 11676echo "configure:11677: checking for size_t" >&5
698dcdb6
VZ
11677if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11678 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11679else
698dcdb6 11680 cat > conftest.$ac_ext <<EOF
8db37e06 11681#line 11682 "configure"
10f2d63a 11682#include "confdefs.h"
698dcdb6
VZ
11683#include <sys/types.h>
11684#if STDC_HEADERS
11685#include <stdlib.h>
11686#include <stddef.h>
11687#endif
11688EOF
11689if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11690 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11691 rm -rf conftest*
10f2d63a
VZ
11692 ac_cv_type_size_t=yes
11693else
698dcdb6
VZ
11694 rm -rf conftest*
11695 ac_cv_type_size_t=no
703e0a69 11696fi
698dcdb6 11697rm -f conftest*
1e487827 11698
698dcdb6
VZ
11699fi
11700echo "$ac_t""$ac_cv_type_size_t" 1>&6
11701if test $ac_cv_type_size_t = no; then
11702 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11703#define size_t unsigned
11704EOF
11705
11706fi
11707
698dcdb6 11708echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
8db37e06 11709echo "configure:11710: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
11710if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
11711 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11712else
698dcdb6 11713 cat > conftest.$ac_ext <<EOF
8db37e06 11714#line 11715 "configure"
10f2d63a
VZ
11715#include "confdefs.h"
11716#include <sys/types.h>
698dcdb6 11717EOF
10f2d63a
VZ
11718if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11719 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 11720 rm -rf conftest*
10f2d63a
VZ
11721 ac_cv_type_uid_t=yes
11722else
698dcdb6 11723 rm -rf conftest*
10f2d63a
VZ
11724 ac_cv_type_uid_t=no
11725fi
11726rm -f conftest*
11727
11728fi
1e487827 11729
698dcdb6
VZ
11730echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11731if test $ac_cv_type_uid_t = no; then
11732 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11733#define uid_t int
11734EOF
11735
698dcdb6 11736 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11737#define gid_t int
11738EOF
11739
11740fi
11741
1e487827 11742
698dcdb6 11743echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
8db37e06 11744echo "configure:11745: checking for wchar_t" >&5
698dcdb6
VZ
11745if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
11746 echo $ac_n "(cached) $ac_c" 1>&6
11747else
11748
11749 cat > conftest.$ac_ext <<EOF
8db37e06 11750#line 11751 "configure"
0046ff7c
VS
11751#include "confdefs.h"
11752#include <wchar.h>
698dcdb6 11753int main() {
0046ff7c 11754
d836ee96
VZ
11755 wchar_t wc, *ws;
11756 wc = L'a';
11757 ws = L"Hello, world!";
698dcdb6
VZ
11758
11759; return 0; }
11760EOF
8db37e06 11761if { (eval echo configure:11762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11762 rm -rf conftest*
1f8ae82f
GD
11763 wx_cv_type_wchar_t=yes
11764else
698dcdb6
VZ
11765 echo "configure: failed program was:" >&5
11766 cat conftest.$ac_ext >&5
11767 rm -rf conftest*
11768 cat > conftest.$ac_ext <<EOF
8db37e06 11769#line 11770 "configure"
1f8ae82f
GD
11770#include "confdefs.h"
11771#include <stdlib.h>
698dcdb6 11772int main() {
1f8ae82f 11773
d836ee96
VZ
11774 wchar_t wc, *ws;
11775 wc = L'a';
11776 ws = L"Hello, world!";
698dcdb6
VZ
11777
11778; return 0; }
11779EOF
8db37e06 11780if { (eval echo configure:11781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11781 rm -rf conftest*
0046ff7c
VS
11782 wx_cv_type_wchar_t=yes
11783else
698dcdb6
VZ
11784 echo "configure: failed program was:" >&5
11785 cat conftest.$ac_ext >&5
11786 rm -rf conftest*
11787 wx_cv_type_wchar_t=no
0046ff7c 11788fi
698dcdb6 11789rm -f conftest*
d836ee96 11790
6232543b 11791fi
698dcdb6 11792rm -f conftest*
703e0a69 11793
1e487827 11794fi
698dcdb6
VZ
11795
11796echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
11797
11798if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 11799 cat >> confdefs.h <<\EOF
0046ff7c
VS
11800#define wxUSE_WCHAR_T 1
11801EOF
11802
11803fi
11804
19af3b06
VZ
11805
11806ac_ext=C
11807# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11808ac_cpp='$CXXCPP $CPPFLAGS'
11809ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11810ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11811cross_compiling=$ac_cv_prog_cxx_cross
11812
d836ee96 11813echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
8db37e06 11814echo "configure:11815: checking if size_t is unsigned int" >&5
d836ee96
VZ
11815if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
11816 echo $ac_n "(cached) $ac_c" 1>&6
11817else
dd2c8b7c 11818 cat > conftest.$ac_ext <<EOF
8db37e06 11819#line 11820 "configure"
d836ee96
VZ
11820#include "confdefs.h"
11821#include <stddef.h>
11822int main() {
11823
dd2c8b7c
VZ
11824 return 0; }
11825
d836ee96 11826 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
11827
11828 int bar() {
d836ee96
VZ
11829
11830; return 0; }
11831EOF
8db37e06 11832if { (eval echo configure:11833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
11833 rm -rf conftest*
11834 wx_cv_size_t_is_uint=no
11835else
11836 echo "configure: failed program was:" >&5
11837 cat conftest.$ac_ext >&5
11838 rm -rf conftest*
11839 wx_cv_size_t_is_uint=yes
11840
11841fi
11842rm -f conftest*
11843
11844fi
11845
11846echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
11847
11848if test "$wx_cv_size_t_is_uint" = "yes"; then
11849 cat >> confdefs.h <<\EOF
11850#define wxSIZE_T_IS_UINT 1
11851EOF
11852
11853else
11854 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
8db37e06 11855echo "configure:11856: checking if size_t is unsigned long" >&5
d836ee96
VZ
11856if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
11857 echo $ac_n "(cached) $ac_c" 1>&6
11858else
11859 cat > conftest.$ac_ext <<EOF
8db37e06 11860#line 11861 "configure"
d836ee96
VZ
11861#include "confdefs.h"
11862#include <stddef.h>
11863int main() {
11864
dd2c8b7c
VZ
11865 return 0; }
11866
d836ee96 11867 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
11868
11869 int bar() {
d836ee96
VZ
11870
11871; return 0; }
11872EOF
8db37e06 11873if { (eval echo configure:11874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
11874 rm -rf conftest*
11875 wx_cv_size_t_is_ulong=no
11876else
11877 echo "configure: failed program was:" >&5
11878 cat conftest.$ac_ext >&5
11879 rm -rf conftest*
11880 wx_cv_size_t_is_ulong=yes
11881
11882fi
11883rm -f conftest*
11884
11885fi
11886
11887echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
11888
11889 if test "$wx_cv_size_t_is_ulong" = "yes"; then
11890 cat >> confdefs.h <<\EOF
11891#define wxSIZE_T_IS_ULONG 1
11892EOF
11893
11894 fi
11895fi
11896
19af3b06
VZ
11897ac_ext=c
11898# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11899ac_cpp='$CPP $CPPFLAGS'
11900ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11901ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11902cross_compiling=$ac_cv_prog_cc_cross
11903
11904
1e487827 11905
698dcdb6 11906echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
8db37e06 11907echo "configure:11908: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
11908if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
11909 echo $ac_n "(cached) $ac_c" 1>&6
11910else
11911
11912 cat > conftest.$ac_ext <<EOF
8db37e06 11913#line 11914 "configure"
b12915c1
VZ
11914#include "confdefs.h"
11915#include <pwd.h>
698dcdb6 11916int main() {
b12915c1
VZ
11917
11918 char *p;
11919 struct passwd *pw;
11920 p = pw->pw_gecos;
698dcdb6
VZ
11921
11922; return 0; }
11923EOF
8db37e06 11924if { (eval echo configure:11925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
11925 rm -rf conftest*
11926
b12915c1 11927 wx_cv_struct_pw_gecos=yes
698dcdb6 11928
b12915c1 11929else
698dcdb6
VZ
11930 echo "configure: failed program was:" >&5
11931 cat conftest.$ac_ext >&5
11932 rm -rf conftest*
11933
b12915c1 11934 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
11935
11936
6232543b 11937fi
698dcdb6
VZ
11938rm -f conftest*
11939
703e0a69 11940
1e487827 11941fi
698dcdb6
VZ
11942
11943echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 11944
bd3277fe 11945if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 11946 cat >> confdefs.h <<\EOF
bd3277fe
VZ
11947#define HAVE_PW_GECOS 1
11948EOF
11949
11950fi
11951
698dcdb6
VZ
11952
11953echo $ac_n "checking for working const""... $ac_c" 1>&6
8db37e06 11954echo "configure:11955: checking for working const" >&5
698dcdb6
VZ
11955if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
11956 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11957else
698dcdb6 11958 cat > conftest.$ac_ext <<EOF
8db37e06 11959#line 11960 "configure"
10f2d63a 11960#include "confdefs.h"
698dcdb6
VZ
11961
11962int main() {
11963
11964/* Ultrix mips cc rejects this. */
11965typedef int charset[2]; const charset x;
11966/* SunOS 4.1.1 cc rejects this. */
11967char const *const *ccp;
11968char **p;
11969/* NEC SVR4.0.2 mips cc rejects this. */
11970struct point {int x, y;};
11971static struct point const zero = {0,0};
11972/* AIX XL C 1.02.0.0 rejects this.
11973 It does not let you subtract one const X* pointer from another in an arm
11974 of an if-expression whose if-part is not a constant expression */
11975const char *g = "string";
11976ccp = &g + (g ? g-g : 0);
11977/* HPUX 7.0 cc rejects these. */
11978++ccp;
11979p = (char**) ccp;
11980ccp = (char const *const *) p;
11981{ /* SCO 3.2v4 cc rejects this. */
11982 char *t;
11983 char const *s = 0 ? (char *) 0 : (char const *) 0;
11984
11985 *t++ = 0;
10f2d63a 11986}
698dcdb6
VZ
11987{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11988 int x[] = {25, 17};
11989 const int *foo = &x[0];
11990 ++foo;
703e0a69 11991}
698dcdb6
VZ
11992{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11993 typedef const int *iptr;
11994 iptr p = 0;
11995 ++p;
6232543b 11996}
698dcdb6
VZ
11997{ /* AIX XL C 1.02.0.0 rejects this saying
11998 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11999 struct s { int j; const int *ap[3]; };
12000 struct s *b; b->j = 5;
1e487827 12001}
698dcdb6
VZ
12002{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12003 const int foo = 10;
12004}
12005
12006; return 0; }
12007EOF
8db37e06 12008if { (eval echo configure:12009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12009 rm -rf conftest*
10f2d63a
VZ
12010 ac_cv_c_const=yes
12011else
698dcdb6
VZ
12012 echo "configure: failed program was:" >&5
12013 cat conftest.$ac_ext >&5
12014 rm -rf conftest*
12015 ac_cv_c_const=no
10f2d63a 12016fi
698dcdb6 12017rm -f conftest*
10f2d63a 12018fi
1e487827 12019
698dcdb6
VZ
12020echo "$ac_t""$ac_cv_c_const" 1>&6
12021if test $ac_cv_c_const = no; then
12022 cat >> confdefs.h <<\EOF
12023#define const
10f2d63a
VZ
12024EOF
12025
12026fi
12027
698dcdb6 12028echo $ac_n "checking for inline""... $ac_c" 1>&6
8db37e06 12029echo "configure:12030: checking for inline" >&5
698dcdb6
VZ
12030if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
12031 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12032else
12033 ac_cv_c_inline=no
12034for ac_kw in inline __inline__ __inline; do
698dcdb6 12035 cat > conftest.$ac_ext <<EOF
8db37e06 12036#line 12037 "configure"
10f2d63a
VZ
12037#include "confdefs.h"
12038
698dcdb6
VZ
12039int main() {
12040} $ac_kw foo() {
12041; return 0; }
12042EOF
8db37e06 12043if { (eval echo configure:12044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12044 rm -rf conftest*
10f2d63a
VZ
12045 ac_cv_c_inline=$ac_kw; break
12046else
698dcdb6
VZ
12047 echo "configure: failed program was:" >&5
12048 cat conftest.$ac_ext >&5
10f2d63a 12049fi
698dcdb6 12050rm -f conftest*
10f2d63a
VZ
12051done
12052
12053fi
698dcdb6
VZ
12054
12055echo "$ac_t""$ac_cv_c_inline" 1>&6
12056case "$ac_cv_c_inline" in
10f2d63a 12057 inline | yes) ;;
698dcdb6
VZ
12058 no) cat >> confdefs.h <<\EOF
12059#define inline
10f2d63a
VZ
12060EOF
12061 ;;
698dcdb6 12062 *) cat >> confdefs.h <<EOF
10f2d63a
VZ
12063#define inline $ac_cv_c_inline
12064EOF
12065 ;;
12066esac
12067
698dcdb6
VZ
12068
12069echo $ac_n "checking size of char""... $ac_c" 1>&6
8db37e06 12070echo "configure:12071: checking size of char" >&5
698dcdb6
VZ
12071if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
12072 echo $ac_n "(cached) $ac_c" 1>&6
6232543b 12073else
1e487827 12074 if test "$cross_compiling" = yes; then
698dcdb6 12075 ac_cv_sizeof_char=1
1e487827 12076else
698dcdb6 12077 cat > conftest.$ac_ext <<EOF
8db37e06 12078#line 12079 "configure"
1e487827 12079#include "confdefs.h"
698dcdb6
VZ
12080#include <stdio.h>
12081main()
1e487827 12082{
698dcdb6
VZ
12083 FILE *f=fopen("conftestval", "w");
12084 if (!f) exit(1);
12085 fprintf(f, "%d\n", sizeof(char));
12086 exit(0);
1e487827 12087}
698dcdb6 12088EOF
8db37e06 12089if { (eval echo configure:12090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12090then
12091 ac_cv_sizeof_char=`cat conftestval`
1e487827 12092else
698dcdb6
VZ
12093 echo "configure: failed program was:" >&5
12094 cat conftest.$ac_ext >&5
12095 rm -fr conftest*
1e487827
VS
12096 ac_cv_sizeof_char=0
12097fi
698dcdb6 12098rm -fr conftest*
1e487827 12099fi
10f2d63a 12100
1e487827 12101fi
698dcdb6
VZ
12102echo "$ac_t""$ac_cv_sizeof_char" 1>&6
12103cat >> confdefs.h <<EOF
12104#define SIZEOF_CHAR $ac_cv_sizeof_char
1e487827 12105EOF
6232543b 12106
703e0a69 12107
698dcdb6 12108echo $ac_n "checking size of short""... $ac_c" 1>&6
8db37e06 12109echo "configure:12110: checking size of short" >&5
698dcdb6
VZ
12110if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
12111 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 12112else
1e487827 12113 if test "$cross_compiling" = yes; then
698dcdb6 12114 ac_cv_sizeof_short=2
1e487827 12115else
698dcdb6 12116 cat > conftest.$ac_ext <<EOF
8db37e06 12117#line 12118 "configure"
1e487827 12118#include "confdefs.h"
698dcdb6
VZ
12119#include <stdio.h>
12120main()
1e487827 12121{
698dcdb6
VZ
12122 FILE *f=fopen("conftestval", "w");
12123 if (!f) exit(1);
12124 fprintf(f, "%d\n", sizeof(short));
12125 exit(0);
1e487827 12126}
698dcdb6 12127EOF
8db37e06 12128if { (eval echo configure:12129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12129then
12130 ac_cv_sizeof_short=`cat conftestval`
1e487827 12131else
698dcdb6
VZ
12132 echo "configure: failed program was:" >&5
12133 cat conftest.$ac_ext >&5
12134 rm -fr conftest*
12135 ac_cv_sizeof_short=0
1e487827 12136fi
698dcdb6 12137rm -fr conftest*
1e487827 12138fi
698dcdb6 12139
1e487827 12140fi
698dcdb6
VZ
12141echo "$ac_t""$ac_cv_sizeof_short" 1>&6
12142cat >> confdefs.h <<EOF
12143#define SIZEOF_SHORT $ac_cv_sizeof_short
12144EOF
12145
12146
12147echo $ac_n "checking size of int *""... $ac_c" 1>&6
8db37e06 12148echo "configure:12149: checking size of int *" >&5
698dcdb6
VZ
12149if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
12150 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12151else
12152 if test "$cross_compiling" = yes; then
698dcdb6 12153 ac_cv_sizeof_int_p=4
10f2d63a 12154else
698dcdb6 12155 cat > conftest.$ac_ext <<EOF
8db37e06 12156#line 12157 "configure"
10f2d63a 12157#include "confdefs.h"
698dcdb6
VZ
12158#include <stdio.h>
12159main()
10f2d63a 12160{
698dcdb6
VZ
12161 FILE *f=fopen("conftestval", "w");
12162 if (!f) exit(1);
12163 fprintf(f, "%d\n", sizeof(int *));
12164 exit(0);
10f2d63a 12165}
698dcdb6 12166EOF
8db37e06 12167if { (eval echo configure:12168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12168then
12169 ac_cv_sizeof_int_p=`cat conftestval`
10f2d63a 12170else
698dcdb6
VZ
12171 echo "configure: failed program was:" >&5
12172 cat conftest.$ac_ext >&5
12173 rm -fr conftest*
12174 ac_cv_sizeof_int_p=0
6232543b 12175fi
698dcdb6 12176rm -fr conftest*
1e487827 12177fi
698dcdb6 12178
1e487827 12179fi
698dcdb6
VZ
12180echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
12181cat >> confdefs.h <<EOF
12182#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
12183EOF
12184
698dcdb6
VZ
12185
12186echo $ac_n "checking size of int""... $ac_c" 1>&6
8db37e06 12187echo "configure:12188: checking size of int" >&5
698dcdb6
VZ
12188if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
12189 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12190else
12191 if test "$cross_compiling" = yes; then
698dcdb6 12192 ac_cv_sizeof_int=4
703e0a69 12193else
698dcdb6 12194 cat > conftest.$ac_ext <<EOF
8db37e06 12195#line 12196 "configure"
1e487827 12196#include "confdefs.h"
698dcdb6
VZ
12197#include <stdio.h>
12198main()
1e487827 12199{
698dcdb6
VZ
12200 FILE *f=fopen("conftestval", "w");
12201 if (!f) exit(1);
12202 fprintf(f, "%d\n", sizeof(int));
12203 exit(0);
1e487827 12204}
698dcdb6 12205EOF
8db37e06 12206if { (eval echo configure:12207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12207then
12208 ac_cv_sizeof_int=`cat conftestval`
12209else
12210 echo "configure: failed program was:" >&5
12211 cat conftest.$ac_ext >&5
12212 rm -fr conftest*
12213 ac_cv_sizeof_int=0
703e0a69 12214fi
698dcdb6
VZ
12215rm -fr conftest*
12216fi
12217
12218fi
12219echo "$ac_t""$ac_cv_sizeof_int" 1>&6
12220cat >> confdefs.h <<EOF
12221#define SIZEOF_INT $ac_cv_sizeof_int
12222EOF
12223
12224
12225echo $ac_n "checking size of long""... $ac_c" 1>&6
8db37e06 12226echo "configure:12227: checking size of long" >&5
698dcdb6
VZ
12227if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
12228 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12229else
12230 if test "$cross_compiling" = yes; then
698dcdb6 12231 ac_cv_sizeof_long=4
10f2d63a 12232else
698dcdb6 12233 cat > conftest.$ac_ext <<EOF
8db37e06 12234#line 12235 "configure"
10f2d63a 12235#include "confdefs.h"
698dcdb6
VZ
12236#include <stdio.h>
12237main()
10f2d63a 12238{
698dcdb6
VZ
12239 FILE *f=fopen("conftestval", "w");
12240 if (!f) exit(1);
12241 fprintf(f, "%d\n", sizeof(long));
12242 exit(0);
10f2d63a 12243}
698dcdb6 12244EOF
8db37e06 12245if { (eval echo configure:12246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12246then
12247 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 12248else
698dcdb6
VZ
12249 echo "configure: failed program was:" >&5
12250 cat conftest.$ac_ext >&5
12251 rm -fr conftest*
12252 ac_cv_sizeof_long=0
10f2d63a 12253fi
698dcdb6 12254rm -fr conftest*
10f2d63a 12255fi
698dcdb6 12256
10f2d63a 12257fi
698dcdb6
VZ
12258echo "$ac_t""$ac_cv_sizeof_long" 1>&6
12259cat >> confdefs.h <<EOF
12260#define SIZEOF_LONG $ac_cv_sizeof_long
12261EOF
12262
12263
12264echo $ac_n "checking size of long long""... $ac_c" 1>&6
8db37e06 12265echo "configure:12266: checking size of long long" >&5
698dcdb6
VZ
12266if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
12267 echo $ac_n "(cached) $ac_c" 1>&6
12268else
12269 if test "$cross_compiling" = yes; then
12270 ac_cv_sizeof_long_long=0
12271else
12272 cat > conftest.$ac_ext <<EOF
8db37e06 12273#line 12274 "configure"
698dcdb6
VZ
12274#include "confdefs.h"
12275#include <stdio.h>
12276main()
12277{
12278 FILE *f=fopen("conftestval", "w");
12279 if (!f) exit(1);
12280 fprintf(f, "%d\n", sizeof(long long));
12281 exit(0);
12282}
12283EOF
8db37e06 12284if { (eval echo configure:12285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12285then
12286 ac_cv_sizeof_long_long=`cat conftestval`
6232543b 12287else
698dcdb6
VZ
12288 echo "configure: failed program was:" >&5
12289 cat conftest.$ac_ext >&5
12290 rm -fr conftest*
6232543b
VS
12291 ac_cv_sizeof_long_long=0
12292fi
698dcdb6
VZ
12293rm -fr conftest*
12294fi
12295
703e0a69 12296fi
698dcdb6
VZ
12297echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
12298cat >> confdefs.h <<EOF
10f2d63a
VZ
12299#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12300EOF
12301
1e487827 12302
698dcdb6
VZ
12303
12304echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
8db37e06 12305echo "configure:12306: checking size of wchar_t" >&5
698dcdb6
VZ
12306if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
12307 echo $ac_n "(cached) $ac_c" 1>&6
12308else
12309
b93d0d08
VS
12310 if test "$cross_compiling" = yes; then
12311 wx_cv_sizeof_wchar_t=4
1e6feb95 12312
b93d0d08 12313else
698dcdb6 12314 cat > conftest.$ac_ext <<EOF
8db37e06 12315#line 12316 "configure"
b93d0d08
VS
12316#include "confdefs.h"
12317
1e6feb95
VZ
12318 #ifdef HAVE_WCHAR_H
12319 # include <wchar.h>
12320 #endif
12321 #ifdef HAVE_STDLIB_H
12322 # include <stdlib.h>
12323 #endif
12324 #include <stdio.h>
12325 int main()
12326 {
12327 FILE *f=fopen("conftestval", "w");
12328 if (!f) exit(1);
12329 fprintf(f, "%i", sizeof(wchar_t));
12330 exit(0);
12331 }
698dcdb6
VZ
12332
12333EOF
8db37e06 12334if { (eval echo configure:12335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12335then
b93d0d08
VS
12336 wx_cv_sizeof_wchar_t=`cat conftestval`
12337else
698dcdb6
VZ
12338 echo "configure: failed program was:" >&5
12339 cat conftest.$ac_ext >&5
12340 rm -fr conftest*
12341 wx_cv_sizeof_wchar_t=0
b93d0d08 12342fi
698dcdb6 12343rm -fr conftest*
b93d0d08
VS
12344fi
12345
698dcdb6 12346
b93d0d08
VS
12347fi
12348
698dcdb6
VZ
12349echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
12350
12351cat >> confdefs.h <<EOF
28c6addc 12352#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
b93d0d08
VS
12353EOF
12354
698dcdb6 12355
698dcdb6 12356echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
8db37e06 12357echo "configure:12358: checking whether byte ordering is bigendian" >&5
698dcdb6
VZ
12358if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
12359 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12360else
12361 ac_cv_c_bigendian=unknown
12362# See if sys/param.h defines the BYTE_ORDER macro.
698dcdb6 12363cat > conftest.$ac_ext <<EOF
8db37e06 12364#line 12365 "configure"
10f2d63a
VZ
12365#include "confdefs.h"
12366#include <sys/types.h>
12367#include <sys/param.h>
698dcdb6 12368int main() {
10f2d63a
VZ
12369
12370#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12371 bogus endian macros
12372#endif
698dcdb6
VZ
12373; return 0; }
12374EOF
8db37e06 12375if { (eval echo configure:12376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12376 rm -rf conftest*
10f2d63a 12377 # It does; now see whether it defined to BIG_ENDIAN or not.
698dcdb6 12378cat > conftest.$ac_ext <<EOF
8db37e06 12379#line 12380 "configure"
10f2d63a
VZ
12380#include "confdefs.h"
12381#include <sys/types.h>
12382#include <sys/param.h>
698dcdb6 12383int main() {
10f2d63a
VZ
12384
12385#if BYTE_ORDER != BIG_ENDIAN
12386 not big endian
12387#endif
698dcdb6
VZ
12388; return 0; }
12389EOF
8db37e06 12390if { (eval echo configure:12391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12391 rm -rf conftest*
10f2d63a
VZ
12392 ac_cv_c_bigendian=yes
12393else
698dcdb6
VZ
12394 echo "configure: failed program was:" >&5
12395 cat conftest.$ac_ext >&5
12396 rm -rf conftest*
12397 ac_cv_c_bigendian=no
10f2d63a 12398fi
698dcdb6 12399rm -f conftest*
10f2d63a 12400else
698dcdb6
VZ
12401 echo "configure: failed program was:" >&5
12402 cat conftest.$ac_ext >&5
10f2d63a 12403fi
698dcdb6 12404rm -f conftest*
10f2d63a
VZ
12405if test $ac_cv_c_bigendian = unknown; then
12406if test "$cross_compiling" = yes; then
12407 ac_cv_c_bigendian=unknown
12408else
698dcdb6 12409 cat > conftest.$ac_ext <<EOF
8db37e06 12410#line 12411 "configure"
10f2d63a
VZ
12411#include "confdefs.h"
12412main () {
12413 /* Are we little or big endian? From Harbison&Steele. */
12414 union
12415 {
12416 long l;
12417 char c[sizeof (long)];
12418 } u;
12419 u.l = 1;
12420 exit (u.c[sizeof (long) - 1] == 1);
12421}
698dcdb6 12422EOF
8db37e06 12423if { (eval echo configure:12424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12424then
10f2d63a
VZ
12425 ac_cv_c_bigendian=no
12426else
698dcdb6
VZ
12427 echo "configure: failed program was:" >&5
12428 cat conftest.$ac_ext >&5
12429 rm -fr conftest*
12430 ac_cv_c_bigendian=yes
10f2d63a 12431fi
698dcdb6 12432rm -fr conftest*
10f2d63a 12433fi
698dcdb6 12434
10f2d63a
VZ
12435fi
12436fi
698dcdb6
VZ
12437
12438echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10f2d63a 12439if test $ac_cv_c_bigendian = unknown; then
698dcdb6 12440 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
12441fi
12442if test $ac_cv_c_bigendian = yes; then
698dcdb6 12443 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12444#define WORDS_BIGENDIAN 1
12445EOF
12446
12447fi
12448
698dcdb6
VZ
12449
12450
10f2d63a 12451 if test "$cross_compiling" = "yes"; then
698dcdb6 12452 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12453#define wxUSE_IOSTREAMH 1
12454EOF
12455
12456 else
698dcdb6
VZ
12457
12458 ac_ext=C
12459# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12460ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12461ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12462ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12463cross_compiling=$ac_cv_prog_cxx_cross
12464
703e0a69 12465
698dcdb6 12466 for ac_hdr in iostream
10f2d63a 12467do
698dcdb6
VZ
12468ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12469echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8db37e06 12470echo "configure:12471: checking for $ac_hdr" >&5
698dcdb6
VZ
12471if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12472 echo $ac_n "(cached) $ac_c" 1>&6
12473else
12474 cat > conftest.$ac_ext <<EOF
8db37e06 12475#line 12476 "configure"
10f2d63a 12476#include "confdefs.h"
698dcdb6
VZ
12477#include <$ac_hdr>
12478EOF
12479ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8db37e06 12480{ (eval echo configure:12481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12481ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12482if test -z "$ac_err"; then
12483 rm -rf conftest*
12484 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12485else
698dcdb6
VZ
12486 echo "$ac_err" >&5
12487 echo "configure: failed program was:" >&5
10f2d63a 12488 cat conftest.$ac_ext >&5
698dcdb6
VZ
12489 rm -rf conftest*
12490 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12491fi
698dcdb6 12492rm -f conftest*
10f2d63a 12493fi
698dcdb6
VZ
12494if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12495 echo "$ac_t""yes" 1>&6
12496 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12497 cat >> confdefs.h <<EOF
12498#define $ac_tr_hdr 1
10f2d63a 12499EOF
698dcdb6
VZ
12500
12501else
12502 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12503fi
12504done
12505
698dcdb6 12506
57fe5ed0
VZ
12507 if test "$ac_cv_header_iostream" = "yes" ; then
12508 :
12509 else
698dcdb6 12510 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12511#define wxUSE_IOSTREAMH 1
12512EOF
12513
10f2d63a
VZ
12514 fi
12515
12516 ac_ext=c
698dcdb6 12517# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12518ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12519ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12520ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12521cross_compiling=$ac_cv_prog_cc_cross
10f2d63a
VZ
12522
12523 fi
12524
703e0a69 12525
698dcdb6
VZ
12526
12527 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
8db37e06 12528echo "configure:12529: checking if C++ compiler supports bool" >&5
698dcdb6
VZ
12529if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12530 echo $ac_n "(cached) $ac_c" 1>&6
12531else
12532
12533
12534 ac_ext=C
12535# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12536ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12537ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12538ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12539cross_compiling=$ac_cv_prog_cxx_cross
10f2d63a 12540
698dcdb6
VZ
12541
12542 cat > conftest.$ac_ext <<EOF
8db37e06 12543#line 12544 "configure"
10f2d63a
VZ
12544#include "confdefs.h"
12545
698dcdb6
VZ
12546
12547int main() {
10f2d63a
VZ
12548
12549 bool b = true;
12550
12551 return 0;
698dcdb6
VZ
12552
12553; return 0; }
12554EOF
8db37e06 12555if { (eval echo configure:12556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12556 rm -rf conftest*
12557
10f2d63a 12558 wx_cv_cpp_bool=yes
698dcdb6 12559
10f2d63a 12560else
698dcdb6
VZ
12561 echo "configure: failed program was:" >&5
12562 cat conftest.$ac_ext >&5
12563 rm -rf conftest*
12564
10f2d63a 12565 wx_cv_cpp_bool=no
698dcdb6
VZ
12566
12567
10f2d63a 12568fi
698dcdb6 12569rm -f conftest*
10f2d63a
VZ
12570
12571 ac_ext=c
698dcdb6 12572# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12573ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12574ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12575ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12576cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 12577
698dcdb6 12578
10f2d63a 12579fi
698dcdb6
VZ
12580
12581echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10f2d63a
VZ
12582
12583 if test "$wx_cv_cpp_bool" = "yes"; then
698dcdb6 12584 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12585#define HAVE_BOOL 1
12586EOF
12587
12588 fi
12589
1e487827 12590
698dcdb6 12591
698dcdb6 12592echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
8db37e06 12593echo "configure:12594: checking for wcslen in -lc" >&5
698dcdb6
VZ
12594ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12595if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12596 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12597else
698dcdb6 12598 ac_save_LIBS="$LIBS"
10f2d63a 12599LIBS="-lc $LIBS"
698dcdb6 12600cat > conftest.$ac_ext <<EOF
8db37e06 12601#line 12602 "configure"
10f2d63a
VZ
12602#include "confdefs.h"
12603/* Override any gcc2 internal prototype to avoid an error. */
12604/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12605 builtin and then its argument prototype would still apply. */
12606char wcslen();
12607
12608int main() {
12609wcslen()
12610; return 0; }
12611EOF
8db37e06 12612if { (eval echo configure:12613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12613 rm -rf conftest*
12614 eval "ac_cv_lib_$ac_lib_var=yes"
12615else
12616 echo "configure: failed program was:" >&5
12617 cat conftest.$ac_ext >&5
12618 rm -rf conftest*
12619 eval "ac_cv_lib_$ac_lib_var=no"
12620fi
12621rm -f conftest*
12622LIBS="$ac_save_LIBS"
12623
12624fi
12625if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12626 echo "$ac_t""yes" 1>&6
12627
12628 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12629#define HAVE_WCSLEN 1
12630EOF
12631
12632 WCHAR_LINK=""
698dcdb6 12633
10f2d63a 12634else
698dcdb6 12635 echo "$ac_t""no" 1>&6
10f2d63a 12636
698dcdb6 12637 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
8db37e06 12638echo "configure:12639: checking for wcslen in -lw" >&5
698dcdb6
VZ
12639ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12640if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12641 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12642else
698dcdb6 12643 ac_save_LIBS="$LIBS"
10f2d63a 12644LIBS="-lw $LIBS"
698dcdb6 12645cat > conftest.$ac_ext <<EOF
8db37e06 12646#line 12647 "configure"
10f2d63a
VZ
12647#include "confdefs.h"
12648/* Override any gcc2 internal prototype to avoid an error. */
12649/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12650 builtin and then its argument prototype would still apply. */
12651char wcslen();
12652
12653int main() {
12654wcslen()
12655; return 0; }
12656EOF
8db37e06 12657if { (eval echo configure:12658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12658 rm -rf conftest*
12659 eval "ac_cv_lib_$ac_lib_var=yes"
12660else
12661 echo "configure: failed program was:" >&5
12662 cat conftest.$ac_ext >&5
12663 rm -rf conftest*
12664 eval "ac_cv_lib_$ac_lib_var=no"
12665fi
12666rm -f conftest*
12667LIBS="$ac_save_LIBS"
12668
12669fi
12670if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12671 echo "$ac_t""yes" 1>&6
12672
12673 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12674#define HAVE_WCSLEN 1
12675EOF
12676
12677 WCHAR_LINK="-lw"
698dcdb6
VZ
12678
12679else
12680 echo "$ac_t""no" 1>&6
6232543b 12681fi
10f2d63a 12682
698dcdb6 12683
1e487827 12684fi
703e0a69 12685
698dcdb6
VZ
12686
12687echo $ac_n "checking for vprintf""... $ac_c" 1>&6
8db37e06 12688echo "configure:12689: checking for vprintf" >&5
698dcdb6
VZ
12689if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
12690 echo $ac_n "(cached) $ac_c" 1>&6
12691else
12692 cat > conftest.$ac_ext <<EOF
8db37e06 12693#line 12694 "configure"
10f2d63a
VZ
12694#include "confdefs.h"
12695/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12696 which can conflict with char vprintf(); below. */
10f2d63a
VZ
12697#include <assert.h>
12698/* Override any gcc2 internal prototype to avoid an error. */
12699/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12700 builtin and then its argument prototype would still apply. */
12701char vprintf();
12702
12703int main() {
10f2d63a
VZ
12704
12705/* The GNU C library defines this for functions which it implements
12706 to always fail with ENOSYS. Some functions are actually named
12707 something starting with __ and the normal name is an alias. */
698dcdb6 12708#if defined (__stub_vprintf) || defined (__stub___vprintf)
10f2d63a
VZ
12709choke me
12710#else
698dcdb6 12711vprintf();
10f2d63a
VZ
12712#endif
12713
698dcdb6
VZ
12714; return 0; }
12715EOF
8db37e06 12716if { (eval echo configure:12717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12717 rm -rf conftest*
12718 eval "ac_cv_func_vprintf=yes"
12719else
12720 echo "configure: failed program was:" >&5
12721 cat conftest.$ac_ext >&5
12722 rm -rf conftest*
12723 eval "ac_cv_func_vprintf=no"
12724fi
12725rm -f conftest*
12726fi
12727
12728if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12729 echo "$ac_t""yes" 1>&6
12730 cat >> confdefs.h <<\EOF
12731#define HAVE_VPRINTF 1
12732EOF
12733
12734else
12735 echo "$ac_t""no" 1>&6
12736fi
12737
12738if test "$ac_cv_func_vprintf" != yes; then
12739echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
8db37e06 12740echo "configure:12741: checking for _doprnt" >&5
698dcdb6
VZ
12741if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
12742 echo $ac_n "(cached) $ac_c" 1>&6
12743else
12744 cat > conftest.$ac_ext <<EOF
8db37e06 12745#line 12746 "configure"
10f2d63a
VZ
12746#include "confdefs.h"
12747/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12748 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
12749#include <assert.h>
12750/* Override any gcc2 internal prototype to avoid an error. */
12751/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12752 builtin and then its argument prototype would still apply. */
12753char _doprnt();
12754
12755int main() {
10f2d63a
VZ
12756
12757/* The GNU C library defines this for functions which it implements
12758 to always fail with ENOSYS. Some functions are actually named
12759 something starting with __ and the normal name is an alias. */
12760#if defined (__stub__doprnt) || defined (__stub____doprnt)
12761choke me
12762#else
698dcdb6 12763_doprnt();
10f2d63a
VZ
12764#endif
12765
698dcdb6
VZ
12766; return 0; }
12767EOF
8db37e06 12768if { (eval echo configure:12769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12769 rm -rf conftest*
12770 eval "ac_cv_func__doprnt=yes"
12771else
12772 echo "configure: failed program was:" >&5
12773 cat conftest.$ac_ext >&5
12774 rm -rf conftest*
12775 eval "ac_cv_func__doprnt=no"
12776fi
12777rm -f conftest*
12778fi
12779
12780if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12781 echo "$ac_t""yes" 1>&6
12782 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12783#define HAVE_DOPRNT 1
12784EOF
12785
698dcdb6
VZ
12786else
12787 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12788fi
12789
12790fi
12791
1e487827 12792
698dcdb6
VZ
12793
12794
12795
12796
12797
12798echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
8db37e06 12799echo "configure:12800: checking for vsnprintf" >&5
698dcdb6
VZ
12800if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
12801 echo $ac_n "(cached) $ac_c" 1>&6
12802else
12803
12804 cat > conftest.$ac_ext <<EOF
8db37e06 12805#line 12806 "configure"
f6bcfd97
BP
12806#include "confdefs.h"
12807
12808 #include <stdio.h>
698dcdb6
VZ
12809 #include <stdarg.h>
12810
12811int main() {
10f2d63a 12812
f6bcfd97 12813 int wx_test_vsnprintf(const char *, ...);
10f2d63a 12814
f6bcfd97
BP
12815 wx_test_vsnprintf("%s");
12816 return 0;
12817 }
12818
12819 int wx_test_vsnprintf(const char *fmt, ...)
12820 {
12821 char *s;
12822
12823 va_list argp;
12824 va_start(argp, fmt);
12825 vsnprintf(s, 42, fmt, argp);
12826 va_end(argp);
698dcdb6
VZ
12827
12828; return 0; }
12829EOF
8db37e06 12830if { (eval echo configure:12831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12831 rm -rf conftest*
12832
f6bcfd97 12833 wx_cv_func_vsnprintf=yes
698dcdb6 12834
10f2d63a 12835else
698dcdb6
VZ
12836 echo "configure: failed program was:" >&5
12837 cat conftest.$ac_ext >&5
12838 rm -rf conftest*
12839
12840 cat > conftest.$ac_ext <<EOF
8db37e06 12841#line 12842 "configure"
c521c494
RL
12842#include "confdefs.h"
12843
12844 #include <stdio.h>
12845 #include <stdarg.h>
698dcdb6
VZ
12846
12847int main() {
c521c494
RL
12848
12849 int wx_test_vsnprintf(const char *, ...);
12850
12851 wx_test_vsnprintf("%s");
12852 return 0;
12853 }
12854
12855 int wx_test_vsnprintf(const char *fmt, ...)
12856 {
12857 char *s;
12858
12859 va_list argp;
12860 va_start(argp, fmt);
12861 _vsnprintf(s, 42, fmt, argp);
12862 va_end(argp);
698dcdb6
VZ
12863
12864; return 0; }
12865EOF
8db37e06 12866if { (eval echo configure:12867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12867 rm -rf conftest*
12868
c521c494 12869 wx_cv_func_vsnprintf=yes
698dcdb6 12870
c521c494 12871else
698dcdb6
VZ
12872 echo "configure: failed program was:" >&5
12873 cat conftest.$ac_ext >&5
12874 rm -rf conftest*
12875
c521c494 12876 wx_cv_func_vsnprintf=no
698dcdb6 12877
10f2d63a 12878fi
698dcdb6
VZ
12879rm -f conftest*
12880
6232543b 12881fi
698dcdb6 12882rm -f conftest*
703e0a69 12883
1e487827 12884fi
698dcdb6
VZ
12885
12886echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
10f2d63a 12887
9d8deca0 12888if test "$wx_cv_func_vsnprintf" = yes; then
698dcdb6 12889 cat >> confdefs.h <<\EOF
9d8deca0
VZ
12890#define HAVE_VSNPRINTF 1
12891EOF
12892
12893else
698dcdb6 12894 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9d8deca0
VZ
12895fi
12896
698dcdb6 12897echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
8db37e06 12898echo "configure:12899: checking for vsscanf" >&5
698dcdb6
VZ
12899if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
12900 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12901else
698dcdb6
VZ
12902
12903 cat > conftest.$ac_ext <<EOF
8db37e06 12904#line 12905 "configure"
10f2d63a 12905#include "confdefs.h"
10f2d63a 12906
f6bcfd97
BP
12907 #include <stdio.h>
12908 #include <stdarg.h>
698dcdb6
VZ
12909
12910int main() {
10f2d63a 12911
f6bcfd97 12912 int wx_test_vsscanf(const char *, ...);
10f2d63a 12913
f6bcfd97
BP
12914 wx_test_vsscanf("%d");
12915 return 0;
10f2d63a
VZ
12916 }
12917
f6bcfd97 12918 int wx_test_vsscanf(const char *fmt, ...)
10f2d63a 12919 {
f6bcfd97
BP
12920 va_list argp;
12921 va_start(argp, fmt);
12922 vsscanf("42", fmt, argp);
12923 va_end(argp);
698dcdb6
VZ
12924
12925; return 0; }
12926EOF
8db37e06 12927if { (eval echo configure:12928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12928 rm -rf conftest*
12929
f6bcfd97 12930 wx_cv_func_vsscanf=yes
698dcdb6 12931
10f2d63a 12932else
698dcdb6
VZ
12933 echo "configure: failed program was:" >&5
12934 cat conftest.$ac_ext >&5
12935 rm -rf conftest*
12936
f6bcfd97 12937 wx_cv_func_vsscanf=no
698dcdb6 12938
6232543b 12939fi
698dcdb6 12940rm -f conftest*
703e0a69 12941
1e487827 12942fi
698dcdb6
VZ
12943
12944echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10f2d63a 12945
9d8deca0 12946if test "$wx_cv_func_vsscanf" = yes; then
698dcdb6 12947 cat >> confdefs.h <<\EOF
9d8deca0
VZ
12948#define HAVE_VSSCANF 1
12949EOF
12950
12951fi
12952
95c8801c
VS
12953if test "$TOOLKIT" != "MSW"; then
12954
12955
12956
698dcdb6
VZ
12957ac_ext=C
12958# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12959ac_cpp='$CXXCPP $CPPFLAGS'
12960ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12961ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12962cross_compiling=$ac_cv_prog_cxx_cross
12963
12964echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
8db37e06 12965echo "configure:12966: checking if iconv() takes char**" >&5
698dcdb6
VZ
12966if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
12967 echo $ac_n "(cached) $ac_c" 1>&6
12968else
12969
12970 cat > conftest.$ac_ext <<EOF
8db37e06 12971#line 12972 "configure"
95c8801c
VS
12972#include "confdefs.h"
12973#include <iconv.h>
698dcdb6 12974int main() {
95c8801c
VS
12975
12976 char **inbuf, **outbuf;
19af3b06
VZ
12977 iconv_t cd;
12978 size_t insz, outsz;
12979 iconv(cd, inbuf, &insz, outbuf, &outsz);
698dcdb6
VZ
12980
12981; return 0; }
12982EOF
8db37e06 12983if { (eval echo configure:12984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12984 rm -rf conftest*
95c8801c
VS
12985 wx_cv_iconv_takes_char=yes
12986else
698dcdb6
VZ
12987 echo "configure: failed program was:" >&5
12988 cat conftest.$ac_ext >&5
12989 rm -rf conftest*
12990 wx_cv_iconv_takes_char=no
95c8801c 12991fi
698dcdb6 12992rm -f conftest*
95c8801c
VS
12993
12994fi
698dcdb6
VZ
12995
12996echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
10f2d63a 12997ac_ext=c
698dcdb6 12998# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12999ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13000ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13001ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13002cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 13003
95c8801c 13004if test "$wx_cv_iconv_takes_char" = yes ; then
698dcdb6 13005 cat >> confdefs.h <<\EOF
95c8801c
VS
13006#define WX_ICONV_TAKES_CHAR 1
13007EOF
13008
13009fi
10f2d63a 13010
1e487827 13011
698dcdb6
VZ
13012if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
13013 for ac_func in sigaction
eb4efbdc 13014do
698dcdb6 13015echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8db37e06 13016echo "configure:13017: checking for $ac_func" >&5
698dcdb6
VZ
13017if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13018 echo $ac_n "(cached) $ac_c" 1>&6
13019else
13020 cat > conftest.$ac_ext <<EOF
8db37e06 13021#line 13022 "configure"
eb4efbdc
VZ
13022#include "confdefs.h"
13023/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13024 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
13025#include <assert.h>
13026/* Override any gcc2 internal prototype to avoid an error. */
13027/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13028 builtin and then its argument prototype would still apply. */
13029char $ac_func();
13030
13031int main() {
eb4efbdc
VZ
13032
13033/* The GNU C library defines this for functions which it implements
13034 to always fail with ENOSYS. Some functions are actually named
13035 something starting with __ and the normal name is an alias. */
13036#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13037choke me
13038#else
698dcdb6 13039$ac_func();
eb4efbdc
VZ
13040#endif
13041
698dcdb6 13042; return 0; }
eb4efbdc 13043EOF
8db37e06 13044if { (eval echo configure:13045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13045 rm -rf conftest*
13046 eval "ac_cv_func_$ac_func=yes"
13047else
13048 echo "configure: failed program was:" >&5
13049 cat conftest.$ac_ext >&5
13050 rm -rf conftest*
13051 eval "ac_cv_func_$ac_func=no"
13052fi
13053rm -f conftest*
13054fi
eb4efbdc 13055
698dcdb6
VZ
13056if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13057 echo "$ac_t""yes" 1>&6
13058 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13059 cat >> confdefs.h <<EOF
13060#define $ac_tr_func 1
13061EOF
13062
13063else
13064 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
13065fi
13066done
13067
698dcdb6 13068
eb4efbdc 13069 if test "$ac_cv_func_sigaction" = "no"; then
698dcdb6 13070 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
eb4efbdc
VZ
13071 wxUSE_ON_FATAL_EXCEPTION=no
13072 fi
f6bcfd97
BP
13073
13074 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6
VZ
13075
13076 ac_ext=C
13077# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 13078ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
13079ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13080ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13081cross_compiling=$ac_cv_prog_cxx_cross
6232543b 13082
1e487827 13083
698dcdb6 13084 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
8db37e06 13085echo "configure:13086: checking for sa_handler type" >&5
698dcdb6
VZ
13086if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
13087 echo $ac_n "(cached) $ac_c" 1>&6
13088else
13089
13090 cat > conftest.$ac_ext <<EOF
8db37e06 13091#line 13092 "configure"
f6bcfd97
BP
13092#include "confdefs.h"
13093#include <signal.h>
698dcdb6 13094int main() {
f6bcfd97
BP
13095
13096 extern void testSigHandler(int);
13097
13098 struct sigaction sa;
13099 sa.sa_handler = testSigHandler;
698dcdb6
VZ
13100
13101; return 0; }
13102EOF
8db37e06 13103if { (eval echo configure:13104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13104 rm -rf conftest*
13105
f6bcfd97 13106 wx_cv_type_sa_handler=int
698dcdb6 13107
f6bcfd97 13108else
698dcdb6
VZ
13109 echo "configure: failed program was:" >&5
13110 cat conftest.$ac_ext >&5
13111 rm -rf conftest*
13112
f6bcfd97 13113 wx_cv_type_sa_handler=void
698dcdb6 13114
6232543b 13115fi
698dcdb6
VZ
13116rm -f conftest*
13117
1e487827 13118fi
698dcdb6
VZ
13119
13120echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
f6bcfd97
BP
13121
13122 ac_ext=c
698dcdb6 13123# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
f6bcfd97 13124ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13125ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13126ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13127cross_compiling=$ac_cv_prog_cc_cross
13128
703e0a69 13129
698dcdb6 13130 cat >> confdefs.h <<EOF
f6bcfd97
BP
13131#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
13132EOF
13133
13134 fi
eb4efbdc
VZ
13135fi
13136
10f2d63a
VZ
13137for ac_func in vfork
13138do
698dcdb6 13139echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8db37e06 13140echo "configure:13141: checking for $ac_func" >&5
698dcdb6
VZ
13141if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13142 echo $ac_n "(cached) $ac_c" 1>&6
13143else
13144 cat > conftest.$ac_ext <<EOF
8db37e06 13145#line 13146 "configure"
10f2d63a
VZ
13146#include "confdefs.h"
13147/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13148 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13149#include <assert.h>
13150/* Override any gcc2 internal prototype to avoid an error. */
13151/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13152 builtin and then its argument prototype would still apply. */
13153char $ac_func();
13154
13155int main() {
10f2d63a
VZ
13156
13157/* The GNU C library defines this for functions which it implements
13158 to always fail with ENOSYS. Some functions are actually named
13159 something starting with __ and the normal name is an alias. */
13160#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13161choke me
13162#else
698dcdb6 13163$ac_func();
10f2d63a
VZ
13164#endif
13165
698dcdb6 13166; return 0; }
10f2d63a 13167EOF
8db37e06 13168if { (eval echo configure:13169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13169 rm -rf conftest*
13170 eval "ac_cv_func_$ac_func=yes"
13171else
13172 echo "configure: failed program was:" >&5
13173 cat conftest.$ac_ext >&5
13174 rm -rf conftest*
13175 eval "ac_cv_func_$ac_func=no"
13176fi
13177rm -f conftest*
13178fi
270a909e 13179
698dcdb6
VZ
13180if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13181 echo "$ac_t""yes" 1>&6
13182 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13183 cat >> confdefs.h <<EOF
13184#define $ac_tr_func 1
13185EOF
13186
13187else
13188 echo "$ac_t""no" 1>&6
270a909e
VZ
13189fi
13190done
13191
1e487827 13192
698dcdb6
VZ
13193if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
13194 for ac_func in fcntl flock
4f3c5f06 13195do
698dcdb6 13196echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8db37e06 13197echo "configure:13198: checking for $ac_func" >&5
698dcdb6
VZ
13198if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13199 echo $ac_n "(cached) $ac_c" 1>&6
13200else
13201 cat > conftest.$ac_ext <<EOF
8db37e06 13202#line 13203 "configure"
4f3c5f06
VZ
13203#include "confdefs.h"
13204/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13205 which can conflict with char $ac_func(); below. */
4f3c5f06
VZ
13206#include <assert.h>
13207/* Override any gcc2 internal prototype to avoid an error. */
13208/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13209 builtin and then its argument prototype would still apply. */
13210char $ac_func();
13211
13212int main() {
4f3c5f06
VZ
13213
13214/* The GNU C library defines this for functions which it implements
13215 to always fail with ENOSYS. Some functions are actually named
13216 something starting with __ and the normal name is an alias. */
13217#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13218choke me
13219#else
698dcdb6 13220$ac_func();
4f3c5f06
VZ
13221#endif
13222
698dcdb6
VZ
13223; return 0; }
13224EOF
8db37e06 13225if { (eval echo configure:13226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13226 rm -rf conftest*
13227 eval "ac_cv_func_$ac_func=yes"
13228else
13229 echo "configure: failed program was:" >&5
13230 cat conftest.$ac_ext >&5
13231 rm -rf conftest*
13232 eval "ac_cv_func_$ac_func=no"
13233fi
13234rm -f conftest*
13235fi
13236
13237if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13238 echo "$ac_t""yes" 1>&6
13239 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13240 cat >> confdefs.h <<EOF
13241#define $ac_tr_func 1
4f3c5f06
VZ
13242EOF
13243 break
698dcdb6
VZ
13244else
13245 echo "$ac_t""no" 1>&6
4f3c5f06
VZ
13246fi
13247done
13248
698dcdb6 13249
4f3c5f06 13250 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
698dcdb6 13251 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f3c5f06
VZ
13252 wxUSE_SNGLINST_CHECKER=no
13253 fi
13254fi
13255
270a909e
VZ
13256for ac_func in timegm
13257do
698dcdb6 13258echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8db37e06 13259echo "configure:13260: checking for $ac_func" >&5
698dcdb6
VZ
13260if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13261 echo $ac_n "(cached) $ac_c" 1>&6
13262else
13263 cat > conftest.$ac_ext <<EOF
8db37e06 13264#line 13265 "configure"
270a909e
VZ
13265#include "confdefs.h"
13266/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13267 which can conflict with char $ac_func(); below. */
270a909e
VZ
13268#include <assert.h>
13269/* Override any gcc2 internal prototype to avoid an error. */
13270/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13271 builtin and then its argument prototype would still apply. */
13272char $ac_func();
13273
13274int main() {
270a909e
VZ
13275
13276/* The GNU C library defines this for functions which it implements
13277 to always fail with ENOSYS. Some functions are actually named
13278 something starting with __ and the normal name is an alias. */
13279#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13280choke me
13281#else
698dcdb6 13282$ac_func();
270a909e
VZ
13283#endif
13284
698dcdb6 13285; return 0; }
270a909e 13286EOF
8db37e06 13287if { (eval echo configure:13288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13288 rm -rf conftest*
13289 eval "ac_cv_func_$ac_func=yes"
13290else
13291 echo "configure: failed program was:" >&5
13292 cat conftest.$ac_ext >&5
13293 rm -rf conftest*
13294 eval "ac_cv_func_$ac_func=no"
13295fi
13296rm -f conftest*
13297fi
10f2d63a 13298
698dcdb6
VZ
13299if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13300 echo "$ac_t""yes" 1>&6
13301 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13302 cat >> confdefs.h <<EOF
13303#define $ac_tr_func 1
13304EOF
13305
13306else
13307 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13308fi
13309done
13310
698dcdb6 13311
8fd0d89b
VZ
13312for ac_func in putenv setenv
13313do
698dcdb6 13314echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8db37e06 13315echo "configure:13316: checking for $ac_func" >&5
698dcdb6
VZ
13316if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13317 echo $ac_n "(cached) $ac_c" 1>&6
13318else
13319 cat > conftest.$ac_ext <<EOF
8db37e06 13320#line 13321 "configure"
8fd0d89b
VZ
13321#include "confdefs.h"
13322/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13323 which can conflict with char $ac_func(); below. */
8fd0d89b
VZ
13324#include <assert.h>
13325/* Override any gcc2 internal prototype to avoid an error. */
13326/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13327 builtin and then its argument prototype would still apply. */
13328char $ac_func();
13329
13330int main() {
8fd0d89b
VZ
13331
13332/* The GNU C library defines this for functions which it implements
13333 to always fail with ENOSYS. Some functions are actually named
13334 something starting with __ and the normal name is an alias. */
13335#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13336choke me
13337#else
698dcdb6 13338$ac_func();
8fd0d89b
VZ
13339#endif
13340
698dcdb6
VZ
13341; return 0; }
13342EOF
8db37e06 13343if { (eval echo configure:13344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13344 rm -rf conftest*
13345 eval "ac_cv_func_$ac_func=yes"
13346else
13347 echo "configure: failed program was:" >&5
13348 cat conftest.$ac_ext >&5
13349 rm -rf conftest*
13350 eval "ac_cv_func_$ac_func=no"
13351fi
13352rm -f conftest*
13353fi
13354
13355if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13356 echo "$ac_t""yes" 1>&6
13357 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13358 cat >> confdefs.h <<EOF
13359#define $ac_tr_func 1
8fd0d89b
VZ
13360EOF
13361 break
698dcdb6
VZ
13362else
13363 echo "$ac_t""no" 1>&6
8fd0d89b
VZ
13364fi
13365done
13366
698dcdb6 13367
b12915c1
VZ
13368HAVE_SOME_SLEEP_FUNC=0
13369if test "$USE_BEOS" = 1; then
698dcdb6 13370 cat >> confdefs.h <<\EOF
b12915c1
VZ
13371#define HAVE_SLEEP 1
13372EOF
13373
13374 HAVE_SOME_SLEEP_FUNC=1
13375fi
13376
f11bdd03 13377if test "$USE_DARWIN" = 1; then
698dcdb6 13378 cat >> confdefs.h <<\EOF
b4085ce6
GD
13379#define HAVE_USLEEP 1
13380EOF
13381
13382 HAVE_SOME_SLEEP_FUNC=1
13383fi
13384
b12915c1
VZ
13385if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
13386 POSIX4_LINK=
698dcdb6 13387 for ac_func in nanosleep
10f2d63a 13388do
698dcdb6 13389echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8db37e06 13390echo "configure:13391: checking for $ac_func" >&5
698dcdb6
VZ
13391if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13392 echo $ac_n "(cached) $ac_c" 1>&6
13393else
13394 cat > conftest.$ac_ext <<EOF
8db37e06 13395#line 13396 "configure"
10f2d63a
VZ
13396#include "confdefs.h"
13397/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13398 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13399#include <assert.h>
13400/* Override any gcc2 internal prototype to avoid an error. */
13401/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13402 builtin and then its argument prototype would still apply. */
13403char $ac_func();
13404
13405int main() {
10f2d63a
VZ
13406
13407/* The GNU C library defines this for functions which it implements
13408 to always fail with ENOSYS. Some functions are actually named
13409 something starting with __ and the normal name is an alias. */
13410#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13411choke me
13412#else
698dcdb6 13413$ac_func();
10f2d63a
VZ
13414#endif
13415
698dcdb6
VZ
13416; return 0; }
13417EOF
8db37e06 13418if { (eval echo configure:13419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13419 rm -rf conftest*
13420 eval "ac_cv_func_$ac_func=yes"
13421else
13422 echo "configure: failed program was:" >&5
13423 cat conftest.$ac_ext >&5
13424 rm -rf conftest*
13425 eval "ac_cv_func_$ac_func=no"
13426fi
13427rm -f conftest*
13428fi
13429
13430if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13431 echo "$ac_t""yes" 1>&6
13432 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13433 cat >> confdefs.h <<EOF
13434#define $ac_tr_func 1
13435EOF
13436 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13437#define HAVE_NANOSLEEP 1
13438EOF
13439
13440else
698dcdb6
VZ
13441 echo "$ac_t""no" 1>&6
13442echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
8db37e06 13443echo "configure:13444: checking for nanosleep in -lposix4" >&5
698dcdb6
VZ
13444ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
13445if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13446 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13447else
698dcdb6 13448 ac_save_LIBS="$LIBS"
10f2d63a 13449LIBS="-lposix4 $LIBS"
698dcdb6 13450cat > conftest.$ac_ext <<EOF
8db37e06 13451#line 13452 "configure"
10f2d63a
VZ
13452#include "confdefs.h"
13453/* Override any gcc2 internal prototype to avoid an error. */
13454/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13455 builtin and then its argument prototype would still apply. */
13456char nanosleep();
13457
13458int main() {
13459nanosleep()
13460; return 0; }
13461EOF
8db37e06 13462if { (eval echo configure:13463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13463 rm -rf conftest*
13464 eval "ac_cv_lib_$ac_lib_var=yes"
13465else
13466 echo "configure: failed program was:" >&5
13467 cat conftest.$ac_ext >&5
13468 rm -rf conftest*
13469 eval "ac_cv_lib_$ac_lib_var=no"
13470fi
13471rm -f conftest*
13472LIBS="$ac_save_LIBS"
13473
13474fi
13475if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13476 echo "$ac_t""yes" 1>&6
13477
13478 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13479#define HAVE_NANOSLEEP 1
13480EOF
13481
b12915c1 13482 POSIX4_LINK="-lposix4"
698dcdb6 13483
10f2d63a 13484else
698dcdb6 13485 echo "$ac_t""no" 1>&6
10f2d63a 13486
698dcdb6 13487 for ac_func in usleep
10f2d63a 13488do
698dcdb6 13489echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8db37e06 13490echo "configure:13491: checking for $ac_func" >&5
698dcdb6
VZ
13491if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13492 echo $ac_n "(cached) $ac_c" 1>&6
13493else
13494 cat > conftest.$ac_ext <<EOF
8db37e06 13495#line 13496 "configure"
10f2d63a
VZ
13496#include "confdefs.h"
13497/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13498 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13499#include <assert.h>
13500/* Override any gcc2 internal prototype to avoid an error. */
13501/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13502 builtin and then its argument prototype would still apply. */
13503char $ac_func();
13504
13505int main() {
10f2d63a
VZ
13506
13507/* The GNU C library defines this for functions which it implements
13508 to always fail with ENOSYS. Some functions are actually named
13509 something starting with __ and the normal name is an alias. */
13510#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13511choke me
13512#else
698dcdb6 13513$ac_func();
10f2d63a
VZ
13514#endif
13515
698dcdb6
VZ
13516; return 0; }
13517EOF
8db37e06 13518if { (eval echo configure:13519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13519 rm -rf conftest*
13520 eval "ac_cv_func_$ac_func=yes"
13521else
13522 echo "configure: failed program was:" >&5
13523 cat conftest.$ac_ext >&5
13524 rm -rf conftest*
13525 eval "ac_cv_func_$ac_func=no"
13526fi
13527rm -f conftest*
13528fi
13529
13530if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13531 echo "$ac_t""yes" 1>&6
13532 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13533 cat >> confdefs.h <<EOF
13534#define $ac_tr_func 1
13535EOF
13536 cat >> confdefs.h <<\EOF
b4085ce6
GD
13537#define HAVE_USLEEP 1
13538EOF
13539
10f2d63a 13540else
698dcdb6
VZ
13541 echo "$ac_t""no" 1>&6
13542echo "configure: warning: wxSleep() function will not work" 1>&2
13543
10f2d63a
VZ
13544fi
13545done
13546
698dcdb6
VZ
13547
13548
10f2d63a
VZ
13549fi
13550
698dcdb6
VZ
13551
13552
10f2d63a
VZ
13553fi
13554done
13555
b12915c1 13556fi
10f2d63a
VZ
13557
13558for ac_func in uname gethostname
13559do
698dcdb6 13560echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8db37e06 13561echo "configure:13562: checking for $ac_func" >&5
698dcdb6
VZ
13562if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13563 echo $ac_n "(cached) $ac_c" 1>&6
13564else
13565 cat > conftest.$ac_ext <<EOF
8db37e06 13566#line 13567 "configure"
10f2d63a
VZ
13567#include "confdefs.h"
13568/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13569 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13570#include <assert.h>
13571/* Override any gcc2 internal prototype to avoid an error. */
13572/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13573 builtin and then its argument prototype would still apply. */
13574char $ac_func();
13575
13576int main() {
10f2d63a
VZ
13577
13578/* The GNU C library defines this for functions which it implements
13579 to always fail with ENOSYS. Some functions are actually named
13580 something starting with __ and the normal name is an alias. */
13581#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13582choke me
13583#else
698dcdb6 13584$ac_func();
10f2d63a
VZ
13585#endif
13586
698dcdb6
VZ
13587; return 0; }
13588EOF
8db37e06 13589if { (eval echo configure:13590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13590 rm -rf conftest*
13591 eval "ac_cv_func_$ac_func=yes"
13592else
13593 echo "configure: failed program was:" >&5
13594 cat conftest.$ac_ext >&5
13595 rm -rf conftest*
13596 eval "ac_cv_func_$ac_func=no"
13597fi
13598rm -f conftest*
13599fi
13600
13601if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13602 echo "$ac_t""yes" 1>&6
13603 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13604 cat >> confdefs.h <<EOF
13605#define $ac_tr_func 1
10f2d63a
VZ
13606EOF
13607 break
698dcdb6
VZ
13608else
13609 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13610fi
13611done
13612
698dcdb6
VZ
13613
13614
13615ac_ext=C
13616# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 13617ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
13618ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13619ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13620cross_compiling=$ac_cv_prog_cxx_cross
13621
6098c7f9 13622
10f2d63a
VZ
13623for ac_func in strtok_r
13624do
698dcdb6 13625echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8db37e06 13626echo "configure:13627: checking for $ac_func" >&5
698dcdb6
VZ
13627if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13628 echo $ac_n "(cached) $ac_c" 1>&6
13629else
13630 cat > conftest.$ac_ext <<EOF
8db37e06 13631#line 13632 "configure"
10f2d63a
VZ
13632#include "confdefs.h"
13633/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13634 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13635#include <assert.h>
13636/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
13637#ifdef __cplusplus
13638extern "C"
13639#endif
10f2d63a 13640/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13641 builtin and then its argument prototype would still apply. */
13642char $ac_func();
13643
13644int main() {
10f2d63a
VZ
13645
13646/* The GNU C library defines this for functions which it implements
13647 to always fail with ENOSYS. Some functions are actually named
13648 something starting with __ and the normal name is an alias. */
13649#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13650choke me
13651#else
698dcdb6 13652$ac_func();
10f2d63a
VZ
13653#endif
13654
698dcdb6 13655; return 0; }
10f2d63a 13656EOF
8db37e06 13657if { (eval echo configure:13658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13658 rm -rf conftest*
13659 eval "ac_cv_func_$ac_func=yes"
13660else
13661 echo "configure: failed program was:" >&5
13662 cat conftest.$ac_ext >&5
13663 rm -rf conftest*
13664 eval "ac_cv_func_$ac_func=no"
13665fi
13666rm -f conftest*
13667fi
10f2d63a 13668
698dcdb6
VZ
13669if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13670 echo "$ac_t""yes" 1>&6
13671 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13672 cat >> confdefs.h <<EOF
13673#define $ac_tr_func 1
13674EOF
13675
13676else
13677 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13678fi
13679done
13680
698dcdb6 13681
6098c7f9 13682ac_ext=c
698dcdb6 13683# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 13684ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13685ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13686ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13687cross_compiling=$ac_cv_prog_cc_cross
6232543b 13688
1e487827 13689
698dcdb6 13690INET_LINK=
10f2d63a
VZ
13691for ac_func in inet_addr
13692do
698dcdb6 13693echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8db37e06 13694echo "configure:13695: checking for $ac_func" >&5
698dcdb6
VZ
13695if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13696 echo $ac_n "(cached) $ac_c" 1>&6
13697else
13698 cat > conftest.$ac_ext <<EOF
8db37e06 13699#line 13700 "configure"
10f2d63a
VZ
13700#include "confdefs.h"
13701/* System header to define __stub macros and hopefully few prototypes,
698dcdb6
VZ
13702 which can conflict with char $ac_func(); below. */
13703#include <assert.h>
13704/* Override any gcc2 internal prototype to avoid an error. */
10f2d63a 13705/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13706 builtin and then its argument prototype would still apply. */
13707char $ac_func();
13708
13709int main() {
10f2d63a
VZ
13710
13711/* The GNU C library defines this for functions which it implements
13712 to always fail with ENOSYS. Some functions are actually named
1e487827
VS
13713 something starting with __ and the normal name is an alias. */
13714#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13715choke me
13716#else
698dcdb6 13717$ac_func();
1e487827 13718#endif
703e0a69 13719
698dcdb6
VZ
13720; return 0; }
13721EOF
8db37e06 13722if { (eval echo configure:13723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13723 rm -rf conftest*
13724 eval "ac_cv_func_$ac_func=yes"
13725else
13726 echo "configure: failed program was:" >&5
13727 cat conftest.$ac_ext >&5
13728 rm -rf conftest*
13729 eval "ac_cv_func_$ac_func=no"
13730fi
13731rm -f conftest*
13732fi
13733
13734if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13735 echo "$ac_t""yes" 1>&6
13736 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13737 cat >> confdefs.h <<EOF
13738#define $ac_tr_func 1
13739EOF
13740 cat >> confdefs.h <<\EOF
c63c7106
VZ
13741#define HAVE_INET_ADDR 1
13742EOF
13743
10f2d63a 13744else
698dcdb6
VZ
13745 echo "$ac_t""no" 1>&6
13746echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
8db37e06 13747echo "configure:13748: checking for inet_addr in -lnsl" >&5
698dcdb6
VZ
13748ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
13749if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13750 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 13751else
698dcdb6 13752 ac_save_LIBS="$LIBS"
c63c7106 13753LIBS="-lnsl $LIBS"
698dcdb6 13754cat > conftest.$ac_ext <<EOF
8db37e06 13755#line 13756 "configure"
c63c7106
VZ
13756#include "confdefs.h"
13757/* Override any gcc2 internal prototype to avoid an error. */
13758/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13759 builtin and then its argument prototype would still apply. */
13760char inet_addr();
13761
13762int main() {
13763inet_addr()
13764; return 0; }
13765EOF
8db37e06 13766if { (eval echo configure:13767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13767 rm -rf conftest*
13768 eval "ac_cv_lib_$ac_lib_var=yes"
13769else
13770 echo "configure: failed program was:" >&5
13771 cat conftest.$ac_ext >&5
13772 rm -rf conftest*
13773 eval "ac_cv_lib_$ac_lib_var=no"
13774fi
13775rm -f conftest*
13776LIBS="$ac_save_LIBS"
13777
13778fi
13779if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13780 echo "$ac_t""yes" 1>&6
c63c7106
VZ
13781 INET_LINK="nsl"
13782else
698dcdb6
VZ
13783 echo "$ac_t""no" 1>&6
13784echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
8db37e06 13785echo "configure:13786: checking for inet_addr in -lresolv" >&5
698dcdb6
VZ
13786ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
13787if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13788 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 13789else
698dcdb6 13790 ac_save_LIBS="$LIBS"
c63c7106 13791LIBS="-lresolv $LIBS"
698dcdb6 13792cat > conftest.$ac_ext <<EOF
8db37e06 13793#line 13794 "configure"
c63c7106
VZ
13794#include "confdefs.h"
13795/* Override any gcc2 internal prototype to avoid an error. */
13796/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13797 builtin and then its argument prototype would still apply. */
13798char inet_addr();
13799
13800int main() {
13801inet_addr()
13802; return 0; }
13803EOF
8db37e06 13804if { (eval echo configure:13805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13805 rm -rf conftest*
13806 eval "ac_cv_lib_$ac_lib_var=yes"
13807else
13808 echo "configure: failed program was:" >&5
13809 cat conftest.$ac_ext >&5
13810 rm -rf conftest*
13811 eval "ac_cv_lib_$ac_lib_var=no"
13812fi
13813rm -f conftest*
13814LIBS="$ac_save_LIBS"
c63c7106 13815
6232543b 13816fi
698dcdb6
VZ
13817if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13818 echo "$ac_t""yes" 1>&6
13819 INET_LINK="resolv"
13820
13821else
13822 echo "$ac_t""no" 1>&6
13823fi
c63c7106 13824
698dcdb6 13825
1e487827 13826fi
703e0a69 13827
698dcdb6
VZ
13828
13829
10f2d63a
VZ
13830fi
13831done
13832
698dcdb6 13833
10f2d63a
VZ
13834for ac_func in inet_aton
13835do
698dcdb6 13836echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8db37e06 13837echo "configure:13838: checking for $ac_func" >&5
698dcdb6
VZ
13838if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13839 echo $ac_n "(cached) $ac_c" 1>&6
13840else
13841 cat > conftest.$ac_ext <<EOF
8db37e06 13842#line 13843 "configure"
10f2d63a
VZ
13843#include "confdefs.h"
13844/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13845 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13846#include <assert.h>
13847/* Override any gcc2 internal prototype to avoid an error. */
13848/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13849 builtin and then its argument prototype would still apply. */
13850char $ac_func();
13851
13852int main() {
10f2d63a
VZ
13853
13854/* The GNU C library defines this for functions which it implements
13855 to always fail with ENOSYS. Some functions are actually named
13856 something starting with __ and the normal name is an alias. */
13857#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13858choke me
13859#else
698dcdb6 13860$ac_func();
10f2d63a
VZ
13861#endif
13862
698dcdb6
VZ
13863; return 0; }
13864EOF
8db37e06 13865if { (eval echo configure:13866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13866 rm -rf conftest*
13867 eval "ac_cv_func_$ac_func=yes"
13868else
13869 echo "configure: failed program was:" >&5
13870 cat conftest.$ac_ext >&5
13871 rm -rf conftest*
13872 eval "ac_cv_func_$ac_func=no"
13873fi
13874rm -f conftest*
13875fi
13876
13877if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13878 echo "$ac_t""yes" 1>&6
13879 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13880 cat >> confdefs.h <<EOF
13881#define $ac_tr_func 1
13882EOF
13883 cat >> confdefs.h <<\EOF
c63c7106
VZ
13884#define HAVE_INET_ATON 1
13885EOF
13886
10f2d63a 13887else
698dcdb6
VZ
13888 echo "$ac_t""no" 1>&6
13889 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
8db37e06 13890echo "configure:13891: checking for inet_aton in -l$INET_LINK" >&5
698dcdb6
VZ
13891ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
13892if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13893 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13894else
698dcdb6 13895 ac_save_LIBS="$LIBS"
c63c7106 13896LIBS="-l$INET_LINK $LIBS"
698dcdb6 13897cat > conftest.$ac_ext <<EOF
8db37e06 13898#line 13899 "configure"
10f2d63a
VZ
13899#include "confdefs.h"
13900/* Override any gcc2 internal prototype to avoid an error. */
13901/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13902 builtin and then its argument prototype would still apply. */
13903char inet_aton();
13904
13905int main() {
13906inet_aton()
13907; return 0; }
13908EOF
8db37e06 13909if { (eval echo configure:13910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13910 rm -rf conftest*
13911 eval "ac_cv_lib_$ac_lib_var=yes"
13912else
13913 echo "configure: failed program was:" >&5
13914 cat conftest.$ac_ext >&5
13915 rm -rf conftest*
13916 eval "ac_cv_lib_$ac_lib_var=no"
13917fi
13918rm -f conftest*
13919LIBS="$ac_save_LIBS"
13920
13921fi
13922if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13923 echo "$ac_t""yes" 1>&6
13924 cat >> confdefs.h <<\EOF
c63c7106 13925#define HAVE_INET_ATON 1
10f2d63a
VZ
13926EOF
13927
698dcdb6
VZ
13928else
13929 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13930fi
13931
698dcdb6 13932
c63c7106
VZ
13933fi
13934done
13935
698dcdb6 13936
c63c7106 13937if test "x$INET_LINK" != "x"; then
698dcdb6 13938 cat >> confdefs.h <<\EOF
c63c7106
VZ
13939#define HAVE_INET_ADDR 1
13940EOF
13941
13942 INET_LINK="-l$INET_LINK"
13943fi
10f2d63a
VZ
13944
13945fi
13946
698dcdb6
VZ
13947
13948cat > confcache <<\EOF
10f2d63a
VZ
13949# This file is a shell script that caches the results of configure
13950# tests run on this system so they can be shared between configure
698dcdb6
VZ
13951# scripts and configure runs. It is not useful on other systems.
13952# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 13953#
698dcdb6
VZ
13954# By default, configure uses ./config.cache as the cache file,
13955# creating it if it does not exist already. You can give configure
13956# the --cache-file=FILE option to use a different cache file; that is
13957# what configure does when it calls configure scripts in
13958# subdirectories, so they share the cache.
13959# Giving --cache-file=/dev/null disables caching, for debugging configure.
13960# config.status only pays attention to the cache file if you give it the
13961# --recheck option to rerun configure.
10f2d63a 13962#
698dcdb6 13963EOF
10f2d63a
VZ
13964# The following way of writing the cache mishandles newlines in values,
13965# but we know of no workaround that is simple, portable, and efficient.
13966# So, don't put newlines in cache variables' values.
13967# Ultrix sh set writes to stderr and can't be redirected directly,
13968# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
13969(set) 2>&1 |
13970 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13971 *ac_space=\ *)
13972 # `set' does not quote correctly, so add quotes (double-quote substitution
13973 # turns \\\\ into \\, and sed turns \\ into \).
13974 sed -n \
13975 -e "s/'/'\\\\''/g" \
13976 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13977 ;;
13978 *)
13979 # `set' quotes correctly as required by POSIX, so do not add quotes.
13980 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13981 ;;
13982 esac >> confcache
13983if cmp -s $cache_file confcache; then
13984 :
13985else
10f2d63a 13986 if test -w $cache_file; then
698dcdb6
VZ
13987 echo "updating cache $cache_file"
13988 cat confcache > $cache_file
10f2d63a
VZ
13989 else
13990 echo "not updating unwritable cache $cache_file"
13991 fi
13992fi
13993rm -f confcache
13994
698dcdb6
VZ
13995
13996
b089607b 13997if test "$TOOLKIT" != "MSW"; then
10f2d63a 13998
698dcdb6 13999
10f2d63a
VZ
14000THREADS_LINK=""
14001THREADS_OBJ=""
14002
14003if test "$wxUSE_THREADS" = "yes" ; then
14004 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 14005 echo "configure: warning: Threads are not supported under WINE" 1>&2
10f2d63a 14006 wxUSE_THREADS="no"
b12915c1 14007 elif test "$USE_BEOS" = 1; then
698dcdb6 14008 echo "configure: warning: BeOS threads are not yet supported" 1>&2
b12915c1 14009 wxUSE_THREADS="no"
10f2d63a
VZ
14010 fi
14011fi
14012
14013if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 14014
186837b0 14015 if test "$USE_AIX" = 1; then
f6bcfd97
BP
14016 THREADS_LIB=pthreads
14017 else
14018 THREADS_LIB=pthread
14019 fi
14020
698dcdb6 14021 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
8db37e06 14022echo "configure:14023: checking for pthread_create in -l$THREADS_LIB" >&5
698dcdb6
VZ
14023ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
14024if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14025 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14026else
698dcdb6 14027 ac_save_LIBS="$LIBS"
f6bcfd97 14028LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 14029cat > conftest.$ac_ext <<EOF
8db37e06 14030#line 14031 "configure"
10f2d63a
VZ
14031#include "confdefs.h"
14032/* Override any gcc2 internal prototype to avoid an error. */
14033/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14034 builtin and then its argument prototype would still apply. */
14035char pthread_create();
14036
14037int main() {
14038pthread_create()
14039; return 0; }
14040EOF
8db37e06 14041if { (eval echo configure:14042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14042 rm -rf conftest*
14043 eval "ac_cv_lib_$ac_lib_var=yes"
14044else
14045 echo "configure: failed program was:" >&5
14046 cat conftest.$ac_ext >&5
14047 rm -rf conftest*
14048 eval "ac_cv_lib_$ac_lib_var=no"
14049fi
14050rm -f conftest*
14051LIBS="$ac_save_LIBS"
10f2d63a 14052
698dcdb6
VZ
14053fi
14054if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14055 echo "$ac_t""yes" 1>&6
14056
10f2d63a 14057 THREADS_OBJ="threadpsx.lo"
f6bcfd97 14058 THREADS_LINK=$THREADS_LIB
698dcdb6 14059
10f2d63a 14060else
698dcdb6 14061 echo "$ac_t""no" 1>&6
10f2d63a 14062
698dcdb6 14063 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
8db37e06 14064echo "configure:14065: checking for pthread_create in -lc_r" >&5
698dcdb6
VZ
14065ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
14066if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14067 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14068else
698dcdb6 14069 ac_save_LIBS="$LIBS"
10f2d63a 14070LIBS="-lc_r $LIBS"
698dcdb6 14071cat > conftest.$ac_ext <<EOF
8db37e06 14072#line 14073 "configure"
10f2d63a
VZ
14073#include "confdefs.h"
14074/* Override any gcc2 internal prototype to avoid an error. */
14075/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14076 builtin and then its argument prototype would still apply. */
14077char pthread_create();
14078
14079int main() {
14080pthread_create()
14081; return 0; }
14082EOF
8db37e06 14083if { (eval echo configure:14084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14084 rm -rf conftest*
14085 eval "ac_cv_lib_$ac_lib_var=yes"
14086else
14087 echo "configure: failed program was:" >&5
14088 cat conftest.$ac_ext >&5
14089 rm -rf conftest*
14090 eval "ac_cv_lib_$ac_lib_var=no"
14091fi
14092rm -f conftest*
14093LIBS="$ac_save_LIBS"
10f2d63a 14094
698dcdb6
VZ
14095fi
14096if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14097 echo "$ac_t""yes" 1>&6
14098
10f2d63a
VZ
14099 THREADS_OBJ="threadpsx.lo"
14100 THREADS_LINK="c_r"
698dcdb6 14101
10f2d63a 14102else
698dcdb6 14103 echo "$ac_t""no" 1>&6
10f2d63a 14104
698dcdb6
VZ
14105 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
14106echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
8db37e06 14107echo "configure:14108: checking for sys/prctl.h" >&5
698dcdb6
VZ
14108if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14109 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14110else
698dcdb6 14111 cat > conftest.$ac_ext <<EOF
8db37e06 14112#line 14113 "configure"
10f2d63a
VZ
14113#include "confdefs.h"
14114#include <sys/prctl.h>
698dcdb6
VZ
14115EOF
14116ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8db37e06 14117{ (eval echo configure:14118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14118ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14119if test -z "$ac_err"; then
14120 rm -rf conftest*
14121 eval "ac_cv_header_$ac_safe=yes"
1e487827 14122else
698dcdb6
VZ
14123 echo "$ac_err" >&5
14124 echo "configure: failed program was:" >&5
10f2d63a 14125 cat conftest.$ac_ext >&5
698dcdb6
VZ
14126 rm -rf conftest*
14127 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14128fi
698dcdb6 14129rm -f conftest*
10f2d63a 14130fi
698dcdb6
VZ
14131if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14132 echo "$ac_t""yes" 1>&6
14133
1f8ae82f 14134 THREADS_OBJ="threadsgi.lo"
698dcdb6
VZ
14135
14136else
14137 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14138fi
14139
698dcdb6 14140
6232543b 14141fi
10f2d63a 14142
698dcdb6 14143
1e487827 14144fi
703e0a69 14145
698dcdb6 14146
10f2d63a
VZ
14147 if test -z "$THREADS_OBJ" ; then
14148 wxUSE_THREADS=no
698dcdb6 14149 echo "configure: warning: No thread support on this system" 1>&2
10f2d63a
VZ
14150 fi
14151fi
14152
14153if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 14154 for ac_func in thr_setconcurrency
70846f0a 14155do
698dcdb6 14156echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8db37e06 14157echo "configure:14158: checking for $ac_func" >&5
698dcdb6
VZ
14158if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14159 echo $ac_n "(cached) $ac_c" 1>&6
14160else
14161 cat > conftest.$ac_ext <<EOF
8db37e06 14162#line 14163 "configure"
70846f0a
VZ
14163#include "confdefs.h"
14164/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14165 which can conflict with char $ac_func(); below. */
70846f0a
VZ
14166#include <assert.h>
14167/* Override any gcc2 internal prototype to avoid an error. */
14168/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14169 builtin and then its argument prototype would still apply. */
14170char $ac_func();
14171
14172int main() {
70846f0a
VZ
14173
14174/* The GNU C library defines this for functions which it implements
14175 to always fail with ENOSYS. Some functions are actually named
14176 something starting with __ and the normal name is an alias. */
14177#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14178choke me
14179#else
698dcdb6 14180$ac_func();
70846f0a
VZ
14181#endif
14182
698dcdb6 14183; return 0; }
70846f0a 14184EOF
8db37e06 14185if { (eval echo configure:14186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14186 rm -rf conftest*
14187 eval "ac_cv_func_$ac_func=yes"
14188else
14189 echo "configure: failed program was:" >&5
14190 cat conftest.$ac_ext >&5
14191 rm -rf conftest*
14192 eval "ac_cv_func_$ac_func=no"
14193fi
14194rm -f conftest*
14195fi
70846f0a 14196
698dcdb6
VZ
14197if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14198 echo "$ac_t""yes" 1>&6
14199 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14200 cat >> confdefs.h <<EOF
14201#define $ac_tr_func 1
14202EOF
14203
14204else
14205 echo "$ac_t""no" 1>&6
70846f0a
VZ
14206fi
14207done
14208
698dcdb6
VZ
14209
14210
14211 for ac_hdr in sched.h
10f2d63a 14212do
698dcdb6
VZ
14213ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14214echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8db37e06 14215echo "configure:14216: checking for $ac_hdr" >&5
698dcdb6
VZ
14216if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14217 echo $ac_n "(cached) $ac_c" 1>&6
14218else
14219 cat > conftest.$ac_ext <<EOF
8db37e06 14220#line 14221 "configure"
10f2d63a 14221#include "confdefs.h"
698dcdb6
VZ
14222#include <$ac_hdr>
14223EOF
14224ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8db37e06 14225{ (eval echo configure:14226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14226ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14227if test -z "$ac_err"; then
14228 rm -rf conftest*
14229 eval "ac_cv_header_$ac_safe=yes"
1e487827 14230else
698dcdb6
VZ
14231 echo "$ac_err" >&5
14232 echo "configure: failed program was:" >&5
10f2d63a 14233 cat conftest.$ac_ext >&5
698dcdb6
VZ
14234 rm -rf conftest*
14235 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14236fi
698dcdb6 14237rm -f conftest*
10f2d63a 14238fi
698dcdb6
VZ
14239if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14240 echo "$ac_t""yes" 1>&6
14241 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14242 cat >> confdefs.h <<EOF
14243#define $ac_tr_hdr 1
10f2d63a 14244EOF
698dcdb6
VZ
14245
14246else
14247 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14248fi
14249done
14250
698dcdb6
VZ
14251
14252 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
8db37e06 14253echo "configure:14254: checking for sched_yield in -l$THREADS_LINK" >&5
698dcdb6
VZ
14254ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
14255if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14256 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14257else
698dcdb6 14258 ac_save_LIBS="$LIBS"
10f2d63a 14259LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14260cat > conftest.$ac_ext <<EOF
8db37e06 14261#line 14262 "configure"
10f2d63a
VZ
14262#include "confdefs.h"
14263/* Override any gcc2 internal prototype to avoid an error. */
14264/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14265 builtin and then its argument prototype would still apply. */
14266char sched_yield();
14267
14268int main() {
14269sched_yield()
14270; return 0; }
14271EOF
8db37e06 14272if { (eval echo configure:14273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14273 rm -rf conftest*
14274 eval "ac_cv_lib_$ac_lib_var=yes"
14275else
14276 echo "configure: failed program was:" >&5
14277 cat conftest.$ac_ext >&5
14278 rm -rf conftest*
14279 eval "ac_cv_lib_$ac_lib_var=no"
14280fi
14281rm -f conftest*
14282LIBS="$ac_save_LIBS"
14283
14284fi
14285if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14286 echo "$ac_t""yes" 1>&6
14287 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14288#define HAVE_SCHED_YIELD 1
14289EOF
14290
14291else
698dcdb6
VZ
14292 echo "$ac_t""no" 1>&6
14293echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
8db37e06 14294echo "configure:14295: checking for sched_yield in -lposix4" >&5
698dcdb6
VZ
14295ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
14296if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14297 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14298else
698dcdb6 14299 ac_save_LIBS="$LIBS"
1e487827 14300LIBS="-lposix4 $LIBS"
698dcdb6 14301cat > conftest.$ac_ext <<EOF
8db37e06 14302#line 14303 "configure"
10f2d63a
VZ
14303#include "confdefs.h"
14304/* Override any gcc2 internal prototype to avoid an error. */
14305/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14306 builtin and then its argument prototype would still apply. */
14307char sched_yield();
14308
14309int main() {
14310sched_yield()
14311; return 0; }
14312EOF
8db37e06 14313if { (eval echo configure:14314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14314 rm -rf conftest*
14315 eval "ac_cv_lib_$ac_lib_var=yes"
14316else
14317 echo "configure: failed program was:" >&5
14318 cat conftest.$ac_ext >&5
14319 rm -rf conftest*
14320 eval "ac_cv_lib_$ac_lib_var=no"
14321fi
14322rm -f conftest*
14323LIBS="$ac_save_LIBS"
14324
14325fi
14326if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14327 echo "$ac_t""yes" 1>&6
14328 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14329#define HAVE_SCHED_YIELD 1
14330EOF
14331 POSIX4_LINK="-lposix4"
14332else
698dcdb6
VZ
14333 echo "$ac_t""no" 1>&6
14334echo "configure: warning: wxThread::Yield will not work properly" 1>&2
14335
6232543b 14336fi
10f2d63a 14337
698dcdb6 14338
1e487827 14339fi
703e0a69 14340
698dcdb6 14341
f6bcfd97 14342 HAVE_PRIOR_FUNCS=0
698dcdb6 14343 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
8db37e06 14344echo "configure:14345: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
698dcdb6
VZ
14345ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
14346if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14347 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14348else
698dcdb6 14349 ac_save_LIBS="$LIBS"
10f2d63a 14350LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14351cat > conftest.$ac_ext <<EOF
8db37e06 14352#line 14353 "configure"
10f2d63a
VZ
14353#include "confdefs.h"
14354/* Override any gcc2 internal prototype to avoid an error. */
14355/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14356 builtin and then its argument prototype would still apply. */
14357char pthread_attr_getschedpolicy();
14358
14359int main() {
14360pthread_attr_getschedpolicy()
14361; return 0; }
14362EOF
8db37e06 14363if { (eval echo configure:14364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14364 rm -rf conftest*
14365 eval "ac_cv_lib_$ac_lib_var=yes"
14366else
14367 echo "configure: failed program was:" >&5
14368 cat conftest.$ac_ext >&5
14369 rm -rf conftest*
14370 eval "ac_cv_lib_$ac_lib_var=no"
14371fi
14372rm -f conftest*
14373LIBS="$ac_save_LIBS"
14374
14375fi
14376if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14377 echo "$ac_t""yes" 1>&6
14378 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
8db37e06 14379echo "configure:14380: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
698dcdb6
VZ
14380ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
14381if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14382 echo $ac_n "(cached) $ac_c" 1>&6
14383else
14384 ac_save_LIBS="$LIBS"
f6bcfd97 14385LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14386cat > conftest.$ac_ext <<EOF
8db37e06 14387#line 14388 "configure"
f6bcfd97
BP
14388#include "confdefs.h"
14389/* Override any gcc2 internal prototype to avoid an error. */
14390/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14391 builtin and then its argument prototype would still apply. */
14392char pthread_attr_setschedparam();
14393
14394int main() {
14395pthread_attr_setschedparam()
14396; return 0; }
14397EOF
8db37e06 14398if { (eval echo configure:14399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14399 rm -rf conftest*
14400 eval "ac_cv_lib_$ac_lib_var=yes"
14401else
14402 echo "configure: failed program was:" >&5
14403 cat conftest.$ac_ext >&5
14404 rm -rf conftest*
14405 eval "ac_cv_lib_$ac_lib_var=no"
14406fi
14407rm -f conftest*
14408LIBS="$ac_save_LIBS"
14409
14410fi
14411if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14412 echo "$ac_t""yes" 1>&6
14413 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
8db37e06 14414echo "configure:14415: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
698dcdb6
VZ
14415ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14416if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14417 echo $ac_n "(cached) $ac_c" 1>&6
14418else
14419 ac_save_LIBS="$LIBS"
f6bcfd97 14420LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14421cat > conftest.$ac_ext <<EOF
8db37e06 14422#line 14423 "configure"
f6bcfd97
BP
14423#include "confdefs.h"
14424/* Override any gcc2 internal prototype to avoid an error. */
14425/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14426 builtin and then its argument prototype would still apply. */
14427char sched_get_priority_max();
14428
14429int main() {
14430sched_get_priority_max()
14431; return 0; }
14432EOF
8db37e06 14433if { (eval echo configure:14434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14434 rm -rf conftest*
14435 eval "ac_cv_lib_$ac_lib_var=yes"
14436else
14437 echo "configure: failed program was:" >&5
14438 cat conftest.$ac_ext >&5
14439 rm -rf conftest*
14440 eval "ac_cv_lib_$ac_lib_var=no"
14441fi
14442rm -f conftest*
14443LIBS="$ac_save_LIBS"
14444
14445fi
14446if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14447 echo "$ac_t""yes" 1>&6
f6bcfd97 14448 HAVE_PRIOR_FUNCS=1
10f2d63a 14449else
698dcdb6
VZ
14450 echo "$ac_t""no" 1>&6
14451echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
8db37e06 14452echo "configure:14453: checking for sched_get_priority_max in -lposix4" >&5
698dcdb6
VZ
14453ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14454if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14455 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 14456else
698dcdb6 14457 ac_save_LIBS="$LIBS"
1e487827 14458LIBS="-lposix4 $LIBS"
698dcdb6 14459cat > conftest.$ac_ext <<EOF
8db37e06 14460#line 14461 "configure"
10f2d63a 14461#include "confdefs.h"
6232543b 14462/* Override any gcc2 internal prototype to avoid an error. */
6232543b 14463/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14464 builtin and then its argument prototype would still apply. */
14465char sched_get_priority_max();
14466
14467int main() {
14468sched_get_priority_max()
14469; return 0; }
14470EOF
8db37e06 14471if { (eval echo configure:14472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14472 rm -rf conftest*
14473 eval "ac_cv_lib_$ac_lib_var=yes"
14474else
14475 echo "configure: failed program was:" >&5
14476 cat conftest.$ac_ext >&5
14477 rm -rf conftest*
14478 eval "ac_cv_lib_$ac_lib_var=no"
14479fi
14480rm -f conftest*
14481LIBS="$ac_save_LIBS"
10f2d63a 14482
698dcdb6
VZ
14483fi
14484if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14485 echo "$ac_t""yes" 1>&6
14486
f6bcfd97
BP
14487 HAVE_PRIOR_FUNCS=1
14488 POSIX4_LINK="-lposix4"
698dcdb6
VZ
14489
14490else
14491 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14492fi
14493
698dcdb6 14494
10f2d63a
VZ
14495fi
14496
698dcdb6
VZ
14497
14498else
14499 echo "$ac_t""no" 1>&6
6232543b 14500fi
10f2d63a 14501
698dcdb6
VZ
14502
14503else
14504 echo "$ac_t""no" 1>&6
1e487827 14505fi
703e0a69 14506
698dcdb6 14507
f6bcfd97 14508 if test "$HAVE_PRIOR_FUNCS" = 1; then
698dcdb6 14509 cat >> confdefs.h <<\EOF
f6bcfd97
BP
14510#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
14511EOF
14512
14513 else
698dcdb6 14514 echo "configure: warning: Setting thread priority will not work" 1>&2
f6bcfd97
BP
14515 fi
14516
698dcdb6 14517 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
8db37e06 14518echo "configure:14519: checking for pthread_cancel in -l$THREADS_LINK" >&5
698dcdb6
VZ
14519ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
14520if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14521 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14522else
698dcdb6 14523 ac_save_LIBS="$LIBS"
10f2d63a 14524LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14525cat > conftest.$ac_ext <<EOF
8db37e06 14526#line 14527 "configure"
10f2d63a
VZ
14527#include "confdefs.h"
14528/* Override any gcc2 internal prototype to avoid an error. */
14529/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14530 builtin and then its argument prototype would still apply. */
14531char pthread_cancel();
14532
14533int main() {
14534pthread_cancel()
14535; return 0; }
14536EOF
8db37e06 14537if { (eval echo configure:14538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14538 rm -rf conftest*
14539 eval "ac_cv_lib_$ac_lib_var=yes"
14540else
14541 echo "configure: failed program was:" >&5
14542 cat conftest.$ac_ext >&5
14543 rm -rf conftest*
14544 eval "ac_cv_lib_$ac_lib_var=no"
14545fi
14546rm -f conftest*
14547LIBS="$ac_save_LIBS"
14548
14549fi
14550if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14551 echo "$ac_t""yes" 1>&6
14552 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14553#define HAVE_PTHREAD_CANCEL 1
14554EOF
14555
14556else
698dcdb6
VZ
14557 echo "$ac_t""no" 1>&6
14558echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10f2d63a
VZ
14559fi
14560
1e487827 14561
698dcdb6 14562 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
8db37e06 14563echo "configure:14564: checking for pthread_cleanup_push/pop" >&5
698dcdb6
VZ
14564if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
14565 echo $ac_n "(cached) $ac_c" 1>&6
14566else
14567
14568 cat > conftest.$ac_ext <<EOF
8db37e06 14569#line 14570 "configure"
10f2d63a
VZ
14570#include "confdefs.h"
14571#include <pthread.h>
698dcdb6 14572int main() {
10f2d63a
VZ
14573
14574 pthread_cleanup_push(NULL, NULL);
14575 pthread_cleanup_pop(0);
698dcdb6
VZ
14576
14577; return 0; }
14578EOF
8db37e06 14579if { (eval echo configure:14580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14580 rm -rf conftest*
14581
10f2d63a 14582 wx_cv_func_pthread_cleanup_push=yes
698dcdb6 14583
10f2d63a 14584else
698dcdb6
VZ
14585 echo "configure: failed program was:" >&5
14586 cat conftest.$ac_ext >&5
14587 rm -rf conftest*
14588
10f2d63a 14589 wx_cv_func_pthread_cleanup_push=no
698dcdb6 14590
6232543b 14591fi
698dcdb6
VZ
14592rm -f conftest*
14593
1e487827 14594fi
698dcdb6
VZ
14595
14596echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
10f2d63a 14597
d9b9876f 14598 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
698dcdb6 14599 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14600#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
14601EOF
14602
14603 fi
14604
698dcdb6
VZ
14605
14606 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
8db37e06 14607echo "configure:14608: checking for pthread_mutexattr_t" >&5
698dcdb6
VZ
14608if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
14609 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 14610else
698dcdb6
VZ
14611
14612 cat > conftest.$ac_ext <<EOF
8db37e06 14613#line 14614 "configure"
d9b9876f
VZ
14614#include "confdefs.h"
14615#include <pthread.h>
698dcdb6 14616int main() {
d9b9876f
VZ
14617
14618 pthread_mutexattr_t attr;
14619 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
698dcdb6
VZ
14620
14621; return 0; }
14622EOF
8db37e06 14623if { (eval echo configure:14624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14624 rm -rf conftest*
14625
d9b9876f 14626 wx_cv_type_pthread_mutexattr_t=yes
698dcdb6 14627
d9b9876f 14628else
698dcdb6
VZ
14629 echo "configure: failed program was:" >&5
14630 cat conftest.$ac_ext >&5
14631 rm -rf conftest*
14632
d9b9876f 14633 wx_cv_type_pthread_mutexattr_t=no
698dcdb6
VZ
14634
14635
6232543b 14636fi
698dcdb6
VZ
14637rm -f conftest*
14638
1e487827 14639fi
698dcdb6
VZ
14640
14641echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
d9b9876f
VZ
14642
14643 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
698dcdb6 14644 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14645#define HAVE_PTHREAD_MUTEXATTR_T 1
14646EOF
14647
14648 else
698dcdb6 14649 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
8db37e06 14650echo "configure:14651: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
698dcdb6
VZ
14651if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
14652 echo $ac_n "(cached) $ac_c" 1>&6
14653else
14654
14655 cat > conftest.$ac_ext <<EOF
8db37e06 14656#line 14657 "configure"
d9b9876f
VZ
14657#include "confdefs.h"
14658#include <pthread.h>
698dcdb6 14659int main() {
d9b9876f
VZ
14660
14661 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
698dcdb6
VZ
14662
14663; return 0; }
14664EOF
8db37e06 14665if { (eval echo configure:14666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14666 rm -rf conftest*
14667
d9b9876f 14668 wx_cv_type_pthread_rec_mutex_init=yes
698dcdb6 14669
d9b9876f 14670else
698dcdb6
VZ
14671 echo "configure: failed program was:" >&5
14672 cat conftest.$ac_ext >&5
14673 rm -rf conftest*
14674
d9b9876f 14675 wx_cv_type_pthread_rec_mutex_init=no
698dcdb6
VZ
14676
14677
6232543b 14678fi
698dcdb6
VZ
14679rm -f conftest*
14680
1e487827 14681fi
698dcdb6
VZ
14682
14683echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
3765e936 14684 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
698dcdb6 14685 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14686#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
14687EOF
14688
14689 else
698dcdb6 14690 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
d9b9876f
VZ
14691 fi
14692 fi
14693
10f2d63a 14694 THREADS_LINK="-l$THREADS_LINK"
186837b0
VZ
14695
14696 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
14697 CFLAGS="${CFLAGS} -mt"
14698 CXXFLAGS="${CXXFLAGS} -mt"
14699 LDFLAGS="${LDFLAGS} -mt"
14700 fi
10f2d63a
VZ
14701fi
14702
14703fi
14704
14705if test "$wxUSE_THREADS" = "yes"; then
698dcdb6 14706 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14707#define wxUSE_THREADS 1
14708EOF
14709
698dcdb6 14710
7b6058cd 14711 if test "$USE_DARWIN" != 1; then
10f2d63a 14712 CFLAGS="${CFLAGS} -D_REENTRANT"
2c6025bc
GD
14713 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14714 fi
10f2d63a
VZ
14715
14716 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
14717else
14718 if test "$ac_cv_func_strtok_r" = "yes"; then
698dcdb6 14719 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
8db37e06 14720echo "configure:14721: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
14721 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
14722 CFLAGS="${CFLAGS} -D_REENTRANT"
14723 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
698dcdb6 14724 echo "$ac_t""yes" 1>&6
ab9b9eab 14725 else
698dcdb6 14726 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14727 fi
14728 fi
14729fi
14730
6f72b082 14731if test "$WXGTK20" = 1 ; then
698dcdb6 14732 cat >> confdefs.h <<EOF
6f72b082 14733#define __WXGTK20__ $WXGTK20
13111b2a
VZ
14734EOF
14735
14736 WXGTK12=1
14737fi
14738
10f2d63a 14739if test "$WXGTK12" = 1 ; then
698dcdb6 14740 cat >> confdefs.h <<EOF
10f2d63a
VZ
14741#define __WXGTK12__ $WXGTK12
14742EOF
14743
14744fi
14745
f6bcfd97 14746if test "$WXGTK127" = 1 ; then
698dcdb6 14747 cat >> confdefs.h <<EOF
f6bcfd97
BP
14748#define __WXGTK127__ $WXGTK127
14749EOF
14750
14751fi
14752
10f2d63a
VZ
14753if test "$WXWINE" = 1 ; then
14754 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
14755fi
14756
b4085ce6 14757if test "$wxUSE_MAC" = 1 ; then
f11bdd03
GD
14758 TOOLKIT_DEF="${TOOLKIT_DEF} -DTARGET_CARBON"
14759 CFLAGS="${CFLAGS} -fpascal-strings"
14760 CPPFLAGS="${CPPFLAGS} -cpp-precomp -fpascal-strings"
2f51a9ec
GD
14761 # Extract the first word of "Rez", so it can be a program name with args.
14762set dummy Rez; ac_word=$2
698dcdb6 14763echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8db37e06 14764echo "configure:14765: checking for $ac_word" >&5
698dcdb6
VZ
14765if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then
14766 echo $ac_n "(cached) $ac_c" 1>&6
2f51a9ec
GD
14767else
14768 if test -n "$REZ"; then
14769 ac_cv_prog_REZ="$REZ" # Let the user override the test.
14770else
698dcdb6
VZ
14771 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14772 ac_dummy="$PATH"
14773 for ac_dir in $ac_dummy; do
14774 test -z "$ac_dir" && ac_dir=.
14775 if test -f $ac_dir/$ac_word; then
14776 ac_cv_prog_REZ="Rez"
14777 break
14778 fi
14779 done
14780 IFS="$ac_save_ifs"
2f51a9ec
GD
14781 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
14782fi
14783fi
698dcdb6 14784REZ="$ac_cv_prog_REZ"
2f51a9ec 14785if test -n "$REZ"; then
698dcdb6 14786 echo "$ac_t""$REZ" 1>&6
2f51a9ec 14787else
698dcdb6 14788 echo "$ac_t""no" 1>&6
2f51a9ec
GD
14789fi
14790
14791 # Extract the first word of "Derez", so it can be a program name with args.
14792set dummy Derez; ac_word=$2
698dcdb6 14793echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8db37e06 14794echo "configure:14795: checking for $ac_word" >&5
698dcdb6
VZ
14795if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
14796 echo $ac_n "(cached) $ac_c" 1>&6
2f51a9ec
GD
14797else
14798 if test -n "$DEREZ"; then
14799 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
14800else
698dcdb6
VZ
14801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14802 ac_dummy="$PATH"
14803 for ac_dir in $ac_dummy; do
14804 test -z "$ac_dir" && ac_dir=.
14805 if test -f $ac_dir/$ac_word; then
14806 ac_cv_prog_DEREZ="Derez"
14807 break
14808 fi
14809 done
14810 IFS="$ac_save_ifs"
2f51a9ec
GD
14811 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
14812fi
14813fi
698dcdb6 14814DEREZ="$ac_cv_prog_DEREZ"
2f51a9ec 14815if test -n "$DEREZ"; then
698dcdb6 14816 echo "$ac_t""$DEREZ" 1>&6
2f51a9ec 14817else
698dcdb6 14818 echo "$ac_t""no" 1>&6
2f51a9ec
GD
14819fi
14820
14821 RESCOMP=${REZ}
14822 REZFLAGS="-d __UNIX__ -useDF"
14823 DEREZFLAGS="Carbon.r -useDF"
14824 RESFLAGS="Carbon.r -t APPL"
14825 LIBWXMACRES="\$(LIBWX_MACRES)"
14826 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
b4085ce6
GD
14827fi
14828
10f2d63a
VZ
14829if test "$wxUSE_CYGWIN" = 1 ; then
14830 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
14831fi
14832
14833WXDEBUG=
14834
14835if test "$wxUSE_DEBUG_INFO" = "yes" ; then
14836 WXDEBUG="-g"
14837 wxUSE_OPTIMISE=no
14838fi
14839
14840if test "$wxUSE_DEBUG_GDB" = "yes" ; then
14841 wxUSE_DEBUG_INFO=yes
14842 WXDEBUG="-ggdb"
14843fi
14844
14845if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
698dcdb6 14846 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14847#define WXDEBUG 1
14848EOF
14849
14850 WXDEBUG_DEFINE="-D__WXDEBUG__"
14851else
14852 if test "$wxUSE_GTK" = 1 ; then
14853 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
14854 fi
14855fi
14856
14857if test "$wxUSE_MEM_TRACING" = "yes" ; then
698dcdb6 14858 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14859#define wxUSE_MEMORY_TRACING 1
14860EOF
14861
698dcdb6 14862 cat >> confdefs.h <<\EOF
10f2d63a 14863#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
14864EOF
14865
698dcdb6 14866 cat >> confdefs.h <<\EOF
47c13eb7 14867#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
14868EOF
14869
14870 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
14871fi
14872
14873if test "$wxUSE_DMALLOC" = "yes" ; then
14874 DMALLOC_LINK="-ldmalloc"
14875fi
14876
14877PROFILE=
14878if test "$wxUSE_PROFILE" = "yes" ; then
14879 PROFILE="-pg"
14880fi
14881
14882DEP_INFO_FLAGS=
caa2c79b 14883CODE_GEN_FLAGS=
0f3f1cbc 14884CODE_GEN_FLAGS_CXX=
10f2d63a
VZ
14885if test "$GCC" = yes ; then
14886 if test "$wxUSE_NO_RTTI" = "yes" ; then
0f3f1cbc 14887 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
14888 fi
14889 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
0f3f1cbc 14890 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
14891 fi
14892 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 14893 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
14894 fi
14895 if test "$wxUSE_NO_DEPS" = "no" ; then
14896 DEP_INFO_FLAGS="-MMD"
14897 fi
14898fi
14899
698dcdb6 14900
10f2d63a
VZ
14901CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
14902CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
14903if test "$wxUSE_OPTIMISE" = "no" ; then
14904 OPTIMISE=
14905else
14906 if test "$GCC" = yes ; then
14907 OPTIMISE="-O2"
14908 case "${host}" in
14909 i586-*-*|i686-*-* )
14910 OPTIMISE="${OPTIMISE} "
14911 ;;
14912 esac
14913 else
14914 OPTIMISE="-O"
14915 fi
14916fi
14917
54276ccf
VZ
14918if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
14919 cat >> confdefs.h <<\EOF
14920#define WXWIN_COMPATIBILITY_2 1
14921EOF
14922
14923
14924 WXWIN_COMPATIBILITY_2_2="yes"
14925fi
14926
14927if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
14928 cat >> confdefs.h <<\EOF
14929#define WXWIN_COMPATIBILITY_2_2 1
14930EOF
14931
14932fi
14933
698dcdb6 14934
3e44f09d
VZ
14935REGEX_INCLUDE=
14936if test "$wxUSE_REGEX" != "no"; then
14937 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
14938echo $ac_n "checking for regex.h""... $ac_c" 1>&6
8db37e06 14939echo "configure:14940: checking for regex.h" >&5
3e44f09d
VZ
14940if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14941 echo $ac_n "(cached) $ac_c" 1>&6
14942else
14943 cat > conftest.$ac_ext <<EOF
8db37e06 14944#line 14945 "configure"
3e44f09d
VZ
14945#include "confdefs.h"
14946#include <regex.h>
14947EOF
14948ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8db37e06 14949{ (eval echo configure:14950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3e44f09d
VZ
14950ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14951if test -z "$ac_err"; then
14952 rm -rf conftest*
14953 eval "ac_cv_header_$ac_safe=yes"
14954else
14955 echo "$ac_err" >&5
14956 echo "configure: failed program was:" >&5
14957 cat conftest.$ac_ext >&5
14958 rm -rf conftest*
14959 eval "ac_cv_header_$ac_safe=no"
14960fi
14961rm -f conftest*
14962fi
14963if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14964 echo "$ac_t""yes" 1>&6
14965 for ac_func in regcomp
14966do
14967echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8db37e06 14968echo "configure:14969: checking for $ac_func" >&5
3e44f09d
VZ
14969if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14970 echo $ac_n "(cached) $ac_c" 1>&6
14971else
14972 cat > conftest.$ac_ext <<EOF
8db37e06 14973#line 14974 "configure"
3e44f09d
VZ
14974#include "confdefs.h"
14975/* System header to define __stub macros and hopefully few prototypes,
14976 which can conflict with char $ac_func(); below. */
14977#include <assert.h>
14978/* Override any gcc2 internal prototype to avoid an error. */
14979/* We use char because int might match the return type of a gcc2
14980 builtin and then its argument prototype would still apply. */
14981char $ac_func();
14982
14983int main() {
14984
14985/* The GNU C library defines this for functions which it implements
14986 to always fail with ENOSYS. Some functions are actually named
14987 something starting with __ and the normal name is an alias. */
14988#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14989choke me
14990#else
14991$ac_func();
14992#endif
14993
14994; return 0; }
14995EOF
8db37e06 14996if { (eval echo configure:14997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3e44f09d
VZ
14997 rm -rf conftest*
14998 eval "ac_cv_func_$ac_func=yes"
14999else
15000 echo "configure: failed program was:" >&5
15001 cat conftest.$ac_ext >&5
15002 rm -rf conftest*
15003 eval "ac_cv_func_$ac_func=no"
15004fi
15005rm -f conftest*
15006fi
15007
15008if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15009 echo "$ac_t""yes" 1>&6
15010 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15011 cat >> confdefs.h <<EOF
15012#define $ac_tr_func 1
15013EOF
15014
15015else
15016 echo "$ac_t""no" 1>&6
15017fi
15018done
15019
15020else
15021 echo "$ac_t""no" 1>&6
15022fi
15023
15024
15025 if test "x$ac_cv_func_regcomp" != "xyes"; then
15026 if test "$wxUSE_REGEX" = "sys"; then
15027 { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; }
15028 fi
15029
15030 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
15031 fi
15032
15033 cat >> confdefs.h <<\EOF
15034#define wxUSE_REGEX 1
15035EOF
15036
15037fi
15038
10f2d63a 15039ZLIB_INCLUDE=
422107f9 15040if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
698dcdb6 15041 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15042#define wxUSE_ZLIB 1
15043EOF
15044
422107f9
VZ
15045 if test "$wxUSE_ZLIB" = "yes" ; then
15046 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
15047 else
15048 ZLIB_LINK=
698dcdb6
VZ
15049 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
15050echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
8db37e06 15051echo "configure:15052: checking for zlib.h" >&5
698dcdb6
VZ
15052if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15053 echo $ac_n "(cached) $ac_c" 1>&6
15054else
15055 cat > conftest.$ac_ext <<EOF
8db37e06 15056#line 15057 "configure"
422107f9
VZ
15057#include "confdefs.h"
15058#include <zlib.h>
698dcdb6
VZ
15059EOF
15060ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8db37e06 15061{ (eval echo configure:15062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15062ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15063if test -z "$ac_err"; then
15064 rm -rf conftest*
15065 eval "ac_cv_header_$ac_safe=yes"
422107f9 15066else
698dcdb6
VZ
15067 echo "$ac_err" >&5
15068 echo "configure: failed program was:" >&5
422107f9 15069 cat conftest.$ac_ext >&5
698dcdb6
VZ
15070 rm -rf conftest*
15071 eval "ac_cv_header_$ac_safe=no"
422107f9 15072fi
698dcdb6 15073rm -f conftest*
422107f9 15074fi
698dcdb6
VZ
15075if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15076 echo "$ac_t""yes" 1>&6
15077 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
8db37e06 15078echo "configure:15079: checking for deflate in -lz" >&5
698dcdb6
VZ
15079ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
15080if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15081 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15082else
698dcdb6 15083 ac_save_LIBS="$LIBS"
422107f9 15084LIBS="-lz $LIBS"
698dcdb6 15085cat > conftest.$ac_ext <<EOF
8db37e06 15086#line 15087 "configure"
422107f9
VZ
15087#include "confdefs.h"
15088/* Override any gcc2 internal prototype to avoid an error. */
15089/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15090 builtin and then its argument prototype would still apply. */
15091char deflate();
15092
15093int main() {
15094deflate()
15095; return 0; }
15096EOF
8db37e06 15097if { (eval echo configure:15098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15098 rm -rf conftest*
15099 eval "ac_cv_lib_$ac_lib_var=yes"
15100else
15101 echo "configure: failed program was:" >&5
15102 cat conftest.$ac_ext >&5
15103 rm -rf conftest*
15104 eval "ac_cv_lib_$ac_lib_var=no"
15105fi
15106rm -f conftest*
15107LIBS="$ac_save_LIBS"
15108
15109fi
15110if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15111 echo "$ac_t""yes" 1>&6
422107f9 15112 ZLIB_LINK="-lz"
698dcdb6
VZ
15113else
15114 echo "$ac_t""no" 1>&6
422107f9
VZ
15115fi
15116
698dcdb6
VZ
15117else
15118 echo "$ac_t""no" 1>&6
422107f9
VZ
15119fi
15120
15121 if test "x$ZLIB_LINK" = "x" ; then
698dcdb6 15122 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
422107f9
VZ
15123 fi
15124 fi
10f2d63a
VZ
15125fi
15126
15127PNG_INCLUDE=
422107f9 15128if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
698dcdb6 15129 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15130#define wxUSE_LIBPNG 1
15131EOF
15132
41fd4136 15133 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
698dcdb6 15134 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
422107f9
VZ
15135 wxUSE_LIBPNG=yes
15136 fi
15137
15138 if test "$wxUSE_LIBPNG" = "yes" ; then
15139 PNG_INCLUDE="-I\${top_srcdir}/src/png"
15140 else
15141 PNG_LINK=
698dcdb6
VZ
15142 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
15143echo $ac_n "checking for png.h""... $ac_c" 1>&6
8db37e06 15144echo "configure:15145: checking for png.h" >&5
698dcdb6
VZ
15145if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15146 echo $ac_n "(cached) $ac_c" 1>&6
15147else
15148 cat > conftest.$ac_ext <<EOF
8db37e06 15149#line 15150 "configure"
422107f9
VZ
15150#include "confdefs.h"
15151#include <png.h>
698dcdb6
VZ
15152EOF
15153ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8db37e06 15154{ (eval echo configure:15155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15155ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15156if test -z "$ac_err"; then
15157 rm -rf conftest*
15158 eval "ac_cv_header_$ac_safe=yes"
422107f9 15159else
698dcdb6
VZ
15160 echo "$ac_err" >&5
15161 echo "configure: failed program was:" >&5
422107f9 15162 cat conftest.$ac_ext >&5
698dcdb6
VZ
15163 rm -rf conftest*
15164 eval "ac_cv_header_$ac_safe=no"
422107f9 15165fi
698dcdb6 15166rm -f conftest*
422107f9 15167fi
698dcdb6
VZ
15168if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15169 echo "$ac_t""yes" 1>&6
15170 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
8db37e06 15171echo "configure:15172: checking for png_check_sig in -lpng" >&5
698dcdb6
VZ
15172ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
15173if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15174 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15175else
698dcdb6 15176 ac_save_LIBS="$LIBS"
422107f9 15177LIBS="-lpng -lz -lm $LIBS"
698dcdb6 15178cat > conftest.$ac_ext <<EOF
8db37e06 15179#line 15180 "configure"
422107f9
VZ
15180#include "confdefs.h"
15181/* Override any gcc2 internal prototype to avoid an error. */
15182/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15183 builtin and then its argument prototype would still apply. */
15184char png_check_sig();
15185
15186int main() {
15187png_check_sig()
15188; return 0; }
15189EOF
8db37e06 15190if { (eval echo configure:15191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15191 rm -rf conftest*
15192 eval "ac_cv_lib_$ac_lib_var=yes"
15193else
15194 echo "configure: failed program was:" >&5
15195 cat conftest.$ac_ext >&5
15196 rm -rf conftest*
15197 eval "ac_cv_lib_$ac_lib_var=no"
15198fi
15199rm -f conftest*
15200LIBS="$ac_save_LIBS"
15201
15202fi
15203if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15204 echo "$ac_t""yes" 1>&6
422107f9 15205 PNG_LINK="-lpng"
698dcdb6
VZ
15206else
15207 echo "$ac_t""no" 1>&6
422107f9
VZ
15208fi
15209
698dcdb6
VZ
15210
15211else
15212 echo "$ac_t""no" 1>&6
422107f9
VZ
15213fi
15214
15215 if test "x$PNG_LINK" = "x" ; then
698dcdb6 15216 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
15217 fi
15218 fi
15219
10f2d63a
VZ
15220 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
15221fi
15222
15223JPEG_INCLUDE=
422107f9 15224if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
698dcdb6 15225 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15226#define wxUSE_LIBJPEG 1
15227EOF
15228
422107f9
VZ
15229 if test "$wxUSE_LIBJPEG" = "yes" ; then
15230 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
15231 else
15232 JPEG_LINK=
463abc64 15233 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8db37e06 15234echo "configure:15235: checking for jpeglib.h" >&5
463abc64 15235 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
698dcdb6
VZ
15236 echo $ac_n "(cached) $ac_c" 1>&6
15237else
15238 cat > conftest.$ac_ext <<EOF
8db37e06 15239#line 15240 "configure"
422107f9 15240#include "confdefs.h"
463abc64
VZ
15241
15242 #undef HAVE_STDLIB_H
15243 #include <stdio.h>
15244 #include <jpeglib.h>
15245
15246int main() {
15247
15248
15249; return 0; }
698dcdb6 15250EOF
8db37e06 15251if { (eval echo configure:15252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15252 rm -rf conftest*
463abc64 15253 ac_cv_header_jpeglib_h=yes
6232543b 15254else
698dcdb6 15255 echo "configure: failed program was:" >&5
422107f9 15256 cat conftest.$ac_ext >&5
698dcdb6 15257 rm -rf conftest*
463abc64
VZ
15258 ac_cv_header_jpeglib_h=no
15259
422107f9 15260fi
698dcdb6 15261rm -f conftest*
463abc64 15262
422107f9 15263fi
463abc64
VZ
15264
15265 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
15266
15267 if test "$ac_cv_header_jpeglib_h" = "yes"; then
15268 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
8db37e06 15269echo "configure:15270: checking for jpeg_read_header in -ljpeg" >&5
698dcdb6
VZ
15270ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
15271if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15272 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15273else
698dcdb6 15274 ac_save_LIBS="$LIBS"
422107f9 15275LIBS="-ljpeg $LIBS"
698dcdb6 15276cat > conftest.$ac_ext <<EOF
8db37e06 15277#line 15278 "configure"
422107f9
VZ
15278#include "confdefs.h"
15279/* Override any gcc2 internal prototype to avoid an error. */
15280/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15281 builtin and then its argument prototype would still apply. */
15282char jpeg_read_header();
15283
15284int main() {
15285jpeg_read_header()
15286; return 0; }
15287EOF
8db37e06 15288if { (eval echo configure:15289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15289 rm -rf conftest*
15290 eval "ac_cv_lib_$ac_lib_var=yes"
15291else
15292 echo "configure: failed program was:" >&5
15293 cat conftest.$ac_ext >&5
15294 rm -rf conftest*
15295 eval "ac_cv_lib_$ac_lib_var=no"
15296fi
15297rm -f conftest*
15298LIBS="$ac_save_LIBS"
15299
15300fi
15301if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15302 echo "$ac_t""yes" 1>&6
422107f9 15303 JPEG_LINK="-ljpeg"
698dcdb6
VZ
15304else
15305 echo "$ac_t""no" 1>&6
422107f9
VZ
15306fi
15307
463abc64 15308 fi
422107f9
VZ
15309
15310 if test "x$JPEG_LINK" = "x" ; then
698dcdb6 15311 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
15312 fi
15313 fi
10f2d63a
VZ
15314fi
15315
c7a2bf27 15316TIFF_INCLUDE=
0dcf9893 15317if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
698dcdb6 15318 cat >> confdefs.h <<\EOF
c7a2bf27
RR
15319#define wxUSE_LIBTIFF 1
15320EOF
15321
665bbe97 15322 if test "$wxUSE_LIBTIFF" = "yes" ; then
0dcf9893
VZ
15323 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
15324 else
15325 TIFF_LINK=
698dcdb6
VZ
15326 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
15327echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8db37e06 15328echo "configure:15329: checking for tiffio.h" >&5
698dcdb6
VZ
15329if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15330 echo $ac_n "(cached) $ac_c" 1>&6
15331else
15332 cat > conftest.$ac_ext <<EOF
8db37e06 15333#line 15334 "configure"
0dcf9893
VZ
15334#include "confdefs.h"
15335#include <tiffio.h>
698dcdb6
VZ
15336EOF
15337ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8db37e06 15338{ (eval echo configure:15339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15339ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15340if test -z "$ac_err"; then
15341 rm -rf conftest*
15342 eval "ac_cv_header_$ac_safe=yes"
1e487827 15343else
698dcdb6
VZ
15344 echo "$ac_err" >&5
15345 echo "configure: failed program was:" >&5
0dcf9893 15346 cat conftest.$ac_ext >&5
698dcdb6
VZ
15347 rm -rf conftest*
15348 eval "ac_cv_header_$ac_safe=no"
0dcf9893 15349fi
698dcdb6 15350rm -f conftest*
0dcf9893 15351fi
698dcdb6
VZ
15352if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15353 echo "$ac_t""yes" 1>&6
15354 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
8db37e06 15355echo "configure:15356: checking for TIFFError in -ltiff" >&5
698dcdb6
VZ
15356ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
15357if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15358 echo $ac_n "(cached) $ac_c" 1>&6
0dcf9893 15359else
698dcdb6 15360 ac_save_LIBS="$LIBS"
0dcf9893 15361LIBS="-ltiff -lm $LIBS"
698dcdb6 15362cat > conftest.$ac_ext <<EOF
8db37e06 15363#line 15364 "configure"
0dcf9893
VZ
15364#include "confdefs.h"
15365/* Override any gcc2 internal prototype to avoid an error. */
15366/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15367 builtin and then its argument prototype would still apply. */
15368char TIFFError();
15369
15370int main() {
15371TIFFError()
15372; return 0; }
15373EOF
8db37e06 15374if { (eval echo configure:15375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15375 rm -rf conftest*
15376 eval "ac_cv_lib_$ac_lib_var=yes"
15377else
15378 echo "configure: failed program was:" >&5
15379 cat conftest.$ac_ext >&5
15380 rm -rf conftest*
15381 eval "ac_cv_lib_$ac_lib_var=no"
15382fi
15383rm -f conftest*
15384LIBS="$ac_save_LIBS"
15385
15386fi
15387if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15388 echo "$ac_t""yes" 1>&6
0dcf9893 15389 TIFF_LINK="-ltiff"
698dcdb6
VZ
15390else
15391 echo "$ac_t""no" 1>&6
0dcf9893
VZ
15392fi
15393
698dcdb6
VZ
15394else
15395 echo "$ac_t""no" 1>&6
0dcf9893
VZ
15396fi
15397
15398 if test "x$TIFF_LINK" = "x" ; then
698dcdb6 15399 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
0dcf9893
VZ
15400 fi
15401 fi
c7a2bf27
RR
15402fi
15403
3fed1840
RR
15404FREETYPE_INCLUDE=
15405if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
698dcdb6 15406 cat >> confdefs.h <<\EOF
3fed1840
RR
15407#define wxUSE_FREETYPE 1
15408EOF
15409
15410 if test "$wxUSE_FREETYPE" = "yes" ; then
15411 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
15412 else
15413 FREETYPE_LINK=
698dcdb6
VZ
15414 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
15415echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
8db37e06 15416echo "configure:15417: checking for freetype.h" >&5
698dcdb6
VZ
15417if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15418 echo $ac_n "(cached) $ac_c" 1>&6
15419else
15420 cat > conftest.$ac_ext <<EOF
8db37e06 15421#line 15422 "configure"
3fed1840
RR
15422#include "confdefs.h"
15423#include <freetype.h>
698dcdb6
VZ
15424EOF
15425ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8db37e06 15426{ (eval echo configure:15427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15427ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15428if test -z "$ac_err"; then
15429 rm -rf conftest*
15430 eval "ac_cv_header_$ac_safe=yes"
3fed1840 15431else
698dcdb6
VZ
15432 echo "$ac_err" >&5
15433 echo "configure: failed program was:" >&5
3fed1840 15434 cat conftest.$ac_ext >&5
698dcdb6
VZ
15435 rm -rf conftest*
15436 eval "ac_cv_header_$ac_safe=no"
3fed1840 15437fi
698dcdb6 15438rm -f conftest*
3fed1840 15439fi
698dcdb6
VZ
15440if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15441 echo "$ac_t""yes" 1>&6
15442 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
8db37e06 15443echo "configure:15444: checking for FT_Render_Glyph in -lfreetype" >&5
698dcdb6
VZ
15444ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
15445if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15446 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 15447else
698dcdb6 15448 ac_save_LIBS="$LIBS"
3fed1840 15449LIBS="-lfreetype -lm $LIBS"
698dcdb6 15450cat > conftest.$ac_ext <<EOF
8db37e06 15451#line 15452 "configure"
3fed1840
RR
15452#include "confdefs.h"
15453/* Override any gcc2 internal prototype to avoid an error. */
15454/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15455 builtin and then its argument prototype would still apply. */
15456char FT_Render_Glyph();
15457
15458int main() {
15459FT_Render_Glyph()
15460; return 0; }
15461EOF
8db37e06 15462if { (eval echo configure:15463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15463 rm -rf conftest*
15464 eval "ac_cv_lib_$ac_lib_var=yes"
15465else
15466 echo "configure: failed program was:" >&5
15467 cat conftest.$ac_ext >&5
15468 rm -rf conftest*
15469 eval "ac_cv_lib_$ac_lib_var=no"
15470fi
15471rm -f conftest*
15472LIBS="$ac_save_LIBS"
15473
15474fi
15475if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15476 echo "$ac_t""yes" 1>&6
3fed1840 15477 FREETYPE_LINK="-lfreetype"
698dcdb6
VZ
15478else
15479 echo "$ac_t""no" 1>&6
3fed1840
RR
15480fi
15481
698dcdb6
VZ
15482
15483else
15484 echo "$ac_t""no" 1>&6
3fed1840
RR
15485fi
15486
15487 if test "x$FREETYPE_LINK" = "x" ; then
698dcdb6 15488 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
3fed1840
RR
15489 fi
15490 fi
15491fi
15492
10f2d63a 15493if test "$wxUSE_OPENGL" = "yes"; then
7b6058cd
GD
15494 if test "$wxUSE_MAC" = 1; then
15495 cat >> confdefs.h <<\EOF
15496#define wxUSE_OPENGL 1
15497EOF
15498
15499 cat >> confdefs.h <<\EOF
15500#define wxUSE_GLCANVAS 1
15501EOF
15502
15503 OPENGL_LINK="-framework OpenGL -framework AGL"
24176f2c 15504 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
7b6058cd
GD
15505 else
15506 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
698dcdb6 15507echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
8db37e06 15508echo "configure:15509: checking for GL/gl.h" >&5
698dcdb6
VZ
15509if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15510 echo $ac_n "(cached) $ac_c" 1>&6
15511else
15512 cat > conftest.$ac_ext <<EOF
8db37e06 15513#line 15514 "configure"
10f2d63a
VZ
15514#include "confdefs.h"
15515#include <GL/gl.h>
698dcdb6
VZ
15516EOF
15517ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8db37e06 15518{ (eval echo configure:15519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15519ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15520if test -z "$ac_err"; then
15521 rm -rf conftest*
15522 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 15523else
698dcdb6
VZ
15524 echo "$ac_err" >&5
15525 echo "configure: failed program was:" >&5
10f2d63a 15526 cat conftest.$ac_ext >&5
698dcdb6
VZ
15527 rm -rf conftest*
15528 eval "ac_cv_header_$ac_safe=no"
10f2d63a 15529fi
698dcdb6 15530rm -f conftest*
10f2d63a 15531fi
698dcdb6
VZ
15532if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15533 echo "$ac_t""yes" 1>&6
15534
7b6058cd 15535 cat >> confdefs.h <<\EOF
bdad4e7e
RR
15536#define wxUSE_OPENGL 1
15537EOF
15538
7b6058cd 15539 cat >> confdefs.h <<\EOF
bdad4e7e
RR
15540#define wxUSE_GLCANVAS 1
15541EOF
15542
24176f2c 15543 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
7b6058cd 15544 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
8db37e06 15545echo "configure:15546: checking for glFlush in -lGL" >&5
698dcdb6
VZ
15546ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
15547if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15548 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15549else
698dcdb6 15550 ac_save_LIBS="$LIBS"
bdad4e7e 15551LIBS="-lGL $LIBS"
698dcdb6 15552cat > conftest.$ac_ext <<EOF
8db37e06 15553#line 15554 "configure"
10f2d63a
VZ
15554#include "confdefs.h"
15555/* Override any gcc2 internal prototype to avoid an error. */
15556/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15557 builtin and then its argument prototype would still apply. */
15558char glFlush();
6232543b 15559
698dcdb6
VZ
15560int main() {
15561glFlush()
15562; return 0; }
15563EOF
8db37e06 15564if { (eval echo configure:15565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15565 rm -rf conftest*
15566 eval "ac_cv_lib_$ac_lib_var=yes"
15567else
15568 echo "configure: failed program was:" >&5
15569 cat conftest.$ac_ext >&5
15570 rm -rf conftest*
15571 eval "ac_cv_lib_$ac_lib_var=no"
15572fi
15573rm -f conftest*
15574LIBS="$ac_save_LIBS"
1e487827 15575
698dcdb6
VZ
15576fi
15577if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15578 echo "$ac_t""yes" 1>&6
15579
7b6058cd
GD
15580 OPENGL_LINK="-lGL -lGLU"
15581
10f2d63a 15582else
698dcdb6 15583 echo "$ac_t""no" 1>&6
10f2d63a 15584
7b6058cd 15585 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
8db37e06 15586echo "configure:15587: checking for glFlush in -lMesaGL" >&5
698dcdb6
VZ
15587ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
15588if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15589 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15590else
698dcdb6 15591 ac_save_LIBS="$LIBS"
10f2d63a 15592LIBS="-lMesaGL $LIBS"
698dcdb6 15593cat > conftest.$ac_ext <<EOF
8db37e06 15594#line 15595 "configure"
10f2d63a
VZ
15595#include "confdefs.h"
15596/* Override any gcc2 internal prototype to avoid an error. */
15597/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15598 builtin and then its argument prototype would still apply. */
15599char glFlush();
15600
15601int main() {
15602glFlush()
15603; return 0; }
15604EOF
8db37e06 15605if { (eval echo configure:15606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15606 rm -rf conftest*
15607 eval "ac_cv_lib_$ac_lib_var=yes"
15608else
15609 echo "configure: failed program was:" >&5
15610 cat conftest.$ac_ext >&5
15611 rm -rf conftest*
15612 eval "ac_cv_lib_$ac_lib_var=no"
15613fi
15614rm -f conftest*
15615LIBS="$ac_save_LIBS"
10f2d63a 15616
698dcdb6
VZ
15617fi
15618if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15619 echo "$ac_t""yes" 1>&6
15620
7b6058cd
GD
15621 OPENGL_LINK="-lMesaGL -lMesaGLU"
15622
698dcdb6
VZ
15623else
15624 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15625fi
15626
7b6058cd 15627
10f2d63a
VZ
15628fi
15629
7b6058cd 15630
10f2d63a 15631else
698dcdb6
VZ
15632 echo "$ac_t""no" 1>&6
15633wxUSE_OPENGL=0
10f2d63a
VZ
15634fi
15635
7b6058cd 15636 fi
10f2d63a
VZ
15637fi
15638
698dcdb6 15639
10f2d63a 15640if test "$wxUSE_GUI" = "yes"; then
698dcdb6 15641 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15642#define wxUSE_GUI 1
15643EOF
15644
698dcdb6 15645
10f2d63a 15646 else
698dcdb6 15647 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15648#define wxUSE_NOGUI 1
15649EOF
15650
15651fi
15652
698dcdb6 15653
10f2d63a 15654if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 15655 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15656#define wxUSE_UNIX 1
15657EOF
15658
15659fi
15660
698dcdb6 15661
10f2d63a 15662if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 15663 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15664#define wxUSE_APPLE_IEEE 1
15665EOF
15666
15667fi
15668
1e6feb95
VZ
15669if test "$wxUSE_TIMER" = "yes"; then
15670 cat >> confdefs.h <<\EOF
15671#define wxUSE_TIMER 1
15672EOF
15673
15674fi
15675
10f2d63a 15676if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 15677 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15678#define wxUSE_WAVE 1
15679EOF
15680
15681fi
15682
1e6feb95
VZ
15683if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15684 cat >> confdefs.h <<\EOF
15685#define wxUSE_CMDLINE_PARSER 1
15686EOF
15687
15688fi
15689
15690if test "$wxUSE_STOPWATCH" = "yes"; then
15691 cat >> confdefs.h <<\EOF
15692#define wxUSE_STOPWATCH 1
15693EOF
15694
15695fi
15696
15697if test "$wxUSE_DATETIME" = "yes"; then
15698 cat >> confdefs.h <<\EOF
15699#define wxUSE_DATETIME 1
15700EOF
15701
15702fi
15703
15704if test "$wxUSE_TIMEDATE" = "yes"; then
15705 cat >> confdefs.h <<\EOF
15706#define wxUSE_TIMEDATE 1
15707EOF
15708
15709fi
15710
10f2d63a 15711if test "$wxUSE_FILE" = "yes"; then
698dcdb6 15712 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15713#define wxUSE_FILE 1
15714EOF
15715
15716fi
15717
1e6feb95
VZ
15718if test "$wxUSE_FFILE" = "yes"; then
15719 cat >> confdefs.h <<\EOF
15720#define wxUSE_FFILE 1
15721EOF
15722
15723fi
15724
24528b0c 15725if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 15726 cat >> confdefs.h <<\EOF
24528b0c
VS
15727#define wxUSE_FILESYSTEM 1
15728EOF
15729
15730fi
15731
10f2d63a 15732if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 15733 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15734#define wxUSE_FS_INET 1
15735EOF
15736
15737fi
15738
15739if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 15740 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15741#define wxUSE_FS_ZIP 1
15742EOF
15743
15744fi
15745
15746if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 15747 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15748#define wxUSE_ZIPSTREAM 1
15749EOF
15750
15751fi
15752
eb4efbdc 15753if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 15754 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
15755#define wxUSE_ON_FATAL_EXCEPTION 1
15756EOF
15757
15758fi
15759
4f3c5f06 15760if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 15761 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
15762#define wxUSE_SNGLINST_CHECKER 1
15763EOF
15764
15765fi
15766
10f2d63a 15767if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 15768 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15769#define wxUSE_BUSYINFO 1
15770EOF
15771
15772fi
15773
15774if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 15775 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15776#define wxUSE_STD_IOSTREAM 1
15777EOF
15778
15779fi
15780
15781if test "$wxUSE_TEXTFILE" = "yes"; then
15782 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15783 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 15784 else
698dcdb6 15785 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15786#define wxUSE_TEXTFILE 1
15787EOF
15788
15789 fi
15790fi
15791
15792if test "$wxUSE_CONFIG" = "yes" ; then
15793 if test "$wxUSE_TEXTFILE" != "yes"; then
698dcdb6 15794 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
10f2d63a 15795 else
698dcdb6 15796 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15797#define wxUSE_CONFIG 1
15798EOF
15799
15800 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15801 fi
15802fi
15803
15804if test "$wxUSE_INTL" = "yes" ; then
15805 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15806 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 15807 else
698dcdb6 15808 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15809#define wxUSE_INTL 1
15810EOF
15811
15812 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 15813 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
15814 fi
15815fi
15816
15817if test "$wxUSE_LOG" = "yes"; then
698dcdb6 15818 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15819#define wxUSE_LOG 1
15820EOF
15821
d73be714
VZ
15822
15823 if test "$wxUSE_LOGGUI" = "yes"; then
15824 cat >> confdefs.h <<\EOF
15825#define wxUSE_LOGGUI 1
15826EOF
15827
15828 fi
15829
15830 if test "$wxUSE_LOGWINDOW" = "yes"; then
15831 cat >> confdefs.h <<\EOF
15832#define wxUSE_LOGWINDOW 1
15833EOF
15834
15835 fi
10f2d63a
VZ
15836fi
15837
15838if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 15839 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15840#define wxUSE_LONGLONG 1
15841EOF
15842
15843fi
15844
e8f65ba6 15845if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 15846 cat >> confdefs.h <<\EOF
e8f65ba6
RR
15847#define wxUSE_GEOMETRY 1
15848EOF
15849
15850fi
15851
10f2d63a 15852if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 15853 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15854#define wxUSE_DIALUP_MANAGER 1
15855EOF
15856
70f7a477 15857 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
15858fi
15859
15860if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 15861 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15862#define wxUSE_STREAMS 1
15863EOF
15864
15865fi
15866
1e487827 15867
1e6feb95 15868if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 15869 for ac_func in strptime
83307f33 15870do
698dcdb6 15871echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8db37e06 15872echo "configure:15873: checking for $ac_func" >&5
698dcdb6
VZ
15873if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15874 echo $ac_n "(cached) $ac_c" 1>&6
15875else
15876 cat > conftest.$ac_ext <<EOF
8db37e06 15877#line 15878 "configure"
83307f33
VZ
15878#include "confdefs.h"
15879/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15880 which can conflict with char $ac_func(); below. */
83307f33
VZ
15881#include <assert.h>
15882/* Override any gcc2 internal prototype to avoid an error. */
15883/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15884 builtin and then its argument prototype would still apply. */
15885char $ac_func();
15886
15887int main() {
83307f33
VZ
15888
15889/* The GNU C library defines this for functions which it implements
15890 to always fail with ENOSYS. Some functions are actually named
15891 something starting with __ and the normal name is an alias. */
15892#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15893choke me
15894#else
698dcdb6 15895$ac_func();
83307f33
VZ
15896#endif
15897
698dcdb6 15898; return 0; }
83307f33 15899EOF
8db37e06 15900if { (eval echo configure:15901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15901 rm -rf conftest*
15902 eval "ac_cv_func_$ac_func=yes"
15903else
15904 echo "configure: failed program was:" >&5
15905 cat conftest.$ac_ext >&5
15906 rm -rf conftest*
15907 eval "ac_cv_func_$ac_func=no"
15908fi
15909rm -f conftest*
15910fi
83307f33 15911
698dcdb6
VZ
15912if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15913 echo "$ac_t""yes" 1>&6
15914 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15915 cat >> confdefs.h <<EOF
15916#define $ac_tr_func 1
15917EOF
15918
15919else
15920 echo "$ac_t""no" 1>&6
83307f33
VZ
15921fi
15922done
15923
1e487827 15924
698dcdb6 15925 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
8db37e06 15926echo "configure:15927: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
15927if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
15928 echo $ac_n "(cached) $ac_c" 1>&6
15929else
15930
15931 cat > conftest.$ac_ext <<EOF
8db37e06 15932#line 15933 "configure"
360d6699
VZ
15933#include "confdefs.h"
15934
b4085ce6 15935 #include <time.h>
698dcdb6
VZ
15936
15937int main() {
360d6699
VZ
15938
15939 int tz;
4f11a343 15940 tz = timezone;
698dcdb6
VZ
15941
15942; return 0; }
15943EOF
8db37e06 15944if { (eval echo configure:15945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15945 rm -rf conftest*
15946
4f11a343 15947 wx_cv_var_timezone=timezone
698dcdb6 15948
360d6699 15949else
698dcdb6
VZ
15950 echo "configure: failed program was:" >&5
15951 cat conftest.$ac_ext >&5
15952 rm -rf conftest*
15953
15954 cat > conftest.$ac_ext <<EOF
8db37e06 15955#line 15956 "configure"
360d6699
VZ
15956#include "confdefs.h"
15957
b4085ce6 15958 #include <time.h>
698dcdb6
VZ
15959
15960int main() {
360d6699
VZ
15961
15962 int tz;
15963 tz = _timezone;
698dcdb6
VZ
15964
15965; return 0; }
15966EOF
8db37e06 15967if { (eval echo configure:15968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15968 rm -rf conftest*
15969
360d6699 15970 wx_cv_var_timezone=_timezone
698dcdb6 15971
5357c8e8 15972else
698dcdb6
VZ
15973 echo "configure: failed program was:" >&5
15974 cat conftest.$ac_ext >&5
15975 rm -rf conftest*
15976
15977 cat > conftest.$ac_ext <<EOF
8db37e06 15978#line 15979 "configure"
5357c8e8
VZ
15979#include "confdefs.h"
15980
b4085ce6 15981 #include <time.h>
698dcdb6
VZ
15982
15983int main() {
5357c8e8
VZ
15984
15985 int tz;
4f11a343 15986 tz = __timezone;
698dcdb6
VZ
15987
15988; return 0; }
15989EOF
8db37e06 15990if { (eval echo configure:15991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15991 rm -rf conftest*
15992
4f11a343 15993 wx_cv_var_timezone=__timezone
698dcdb6 15994
360d6699 15995else
698dcdb6
VZ
15996 echo "configure: failed program was:" >&5
15997 cat conftest.$ac_ext >&5
15998 rm -rf conftest*
15999 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
16000
360d6699 16001fi
698dcdb6
VZ
16002rm -f conftest*
16003
16004
360d6699 16005fi
698dcdb6
VZ
16006rm -f conftest*
16007
16008
6232543b 16009fi
698dcdb6
VZ
16010rm -f conftest*
16011
16012
1e487827 16013fi
703e0a69 16014
698dcdb6
VZ
16015echo "$ac_t""$wx_cv_var_timezone" 1>&6
16016
16017 cat >> confdefs.h <<EOF
360d6699
VZ
16018#define WX_TIMEZONE $wx_cv_var_timezone
16019EOF
16020
698dcdb6
VZ
16021
16022 for ac_func in localtime
afc31813 16023do
698dcdb6 16024echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8db37e06 16025echo "configure:16026: checking for $ac_func" >&5
698dcdb6
VZ
16026if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16027 echo $ac_n "(cached) $ac_c" 1>&6
16028else
16029 cat > conftest.$ac_ext <<EOF
8db37e06 16030#line 16031 "configure"
10f2d63a 16031#include "confdefs.h"
afc31813 16032/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16033 which can conflict with char $ac_func(); below. */
afc31813
VZ
16034#include <assert.h>
16035/* Override any gcc2 internal prototype to avoid an error. */
16036/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16037 builtin and then its argument prototype would still apply. */
16038char $ac_func();
16039
16040int main() {
afc31813
VZ
16041
16042/* The GNU C library defines this for functions which it implements
16043 to always fail with ENOSYS. Some functions are actually named
16044 something starting with __ and the normal name is an alias. */
16045#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16046choke me
16047#else
698dcdb6 16048$ac_func();
afc31813
VZ
16049#endif
16050
698dcdb6 16051; return 0; }
10f2d63a 16052EOF
8db37e06 16053if { (eval echo configure:16054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16054 rm -rf conftest*
16055 eval "ac_cv_func_$ac_func=yes"
16056else
16057 echo "configure: failed program was:" >&5
16058 cat conftest.$ac_ext >&5
16059 rm -rf conftest*
16060 eval "ac_cv_func_$ac_func=no"
16061fi
16062rm -f conftest*
16063fi
afc31813 16064
698dcdb6
VZ
16065if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16066 echo "$ac_t""yes" 1>&6
16067 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16068 cat >> confdefs.h <<EOF
16069#define $ac_tr_func 1
16070EOF
16071
16072else
16073 echo "$ac_t""no" 1>&6
afc31813
VZ
16074fi
16075done
16076
1e487827 16077
698dcdb6
VZ
16078 if test "$ac_cv_func_localtime" = "yes"; then
16079 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
8db37e06 16080echo "configure:16081: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
16081if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16082 echo $ac_n "(cached) $ac_c" 1>&6
16083else
16084
16085 cat > conftest.$ac_ext <<EOF
8db37e06 16086#line 16087 "configure"
0470b1e6
VZ
16087#include "confdefs.h"
16088
b4085ce6 16089 #include <time.h>
698dcdb6
VZ
16090
16091int main() {
0470b1e6
VZ
16092
16093 struct tm tm;
16094 tm.tm_gmtoff++;
698dcdb6
VZ
16095
16096; return 0; }
16097EOF
8db37e06 16098if { (eval echo configure:16099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16099 rm -rf conftest*
16100
f03a98d8 16101 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 16102
0470b1e6 16103else
698dcdb6
VZ
16104 echo "configure: failed program was:" >&5
16105 cat conftest.$ac_ext >&5
16106 rm -rf conftest*
16107 wx_cv_struct_tm_has_gmtoff=no
16108
0470b1e6 16109fi
698dcdb6
VZ
16110rm -f conftest*
16111
1e487827 16112fi
698dcdb6
VZ
16113
16114echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
16115 fi
16116
16117 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 16118 cat >> confdefs.h <<\EOF
6232543b
VS
16119#define WX_GMTOFF_IN_TM 1
16120EOF
0470b1e6 16121
3fcdd07b
VZ
16122 fi
16123
698dcdb6 16124 for ac_func in gettimeofday ftime
3fcdd07b 16125do
698dcdb6 16126echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8db37e06 16127echo "configure:16128: checking for $ac_func" >&5
698dcdb6
VZ
16128if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16129 echo $ac_n "(cached) $ac_c" 1>&6
16130else
16131 cat > conftest.$ac_ext <<EOF
8db37e06 16132#line 16133 "configure"
3fcdd07b
VZ
16133#include "confdefs.h"
16134/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16135 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
16136#include <assert.h>
16137/* Override any gcc2 internal prototype to avoid an error. */
16138/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16139 builtin and then its argument prototype would still apply. */
16140char $ac_func();
16141
16142int main() {
3fcdd07b
VZ
16143
16144/* The GNU C library defines this for functions which it implements
16145 to always fail with ENOSYS. Some functions are actually named
16146 something starting with __ and the normal name is an alias. */
16147#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16148choke me
16149#else
698dcdb6 16150$ac_func();
3fcdd07b
VZ
16151#endif
16152
698dcdb6
VZ
16153; return 0; }
16154EOF
8db37e06 16155if { (eval echo configure:16156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16156 rm -rf conftest*
16157 eval "ac_cv_func_$ac_func=yes"
16158else
16159 echo "configure: failed program was:" >&5
16160 cat conftest.$ac_ext >&5
16161 rm -rf conftest*
16162 eval "ac_cv_func_$ac_func=no"
16163fi
16164rm -f conftest*
16165fi
16166
16167if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16168 echo "$ac_t""yes" 1>&6
16169 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16170 cat >> confdefs.h <<EOF
16171#define $ac_tr_func 1
3fcdd07b
VZ
16172EOF
16173 break
698dcdb6
VZ
16174else
16175 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
16176fi
16177done
16178
afc31813 16179
698dcdb6
VZ
16180 if test "$ac_cv_func_gettimeofday" = "yes"; then
16181 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
8db37e06 16182echo "configure:16183: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
16183if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16184 echo $ac_n "(cached) $ac_c" 1>&6
16185else
16186
16187
16188 ac_ext=C
16189# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16190ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16191ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16192ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16193cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16194
698dcdb6
VZ
16195
16196 cat > conftest.$ac_ext <<EOF
8db37e06 16197#line 16198 "configure"
10f2d63a 16198#include "confdefs.h"
afc31813
VZ
16199
16200 #include <sys/time.h>
16201 #include <unistd.h>
698dcdb6
VZ
16202
16203int main() {
afc31813
VZ
16204
16205 struct timeval tv;
16206 struct timezone tz;
16207 gettimeofday(&tv, &tz);
698dcdb6
VZ
16208
16209; return 0; }
16210EOF
8db37e06 16211if { (eval echo configure:16212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16212 rm -rf conftest*
afc31813 16213 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 16214else
698dcdb6
VZ
16215 echo "configure: failed program was:" >&5
16216 cat conftest.$ac_ext >&5
16217 rm -rf conftest*
16218 cat > conftest.$ac_ext <<EOF
8db37e06 16219#line 16220 "configure"
10f2d63a 16220#include "confdefs.h"
afc31813
VZ
16221
16222 #include <sys/time.h>
16223 #include <unistd.h>
698dcdb6
VZ
16224
16225int main() {
afc31813
VZ
16226
16227 struct timeval tv;
16228 gettimeofday(&tv);
698dcdb6
VZ
16229
16230; return 0; }
16231EOF
8db37e06 16232if { (eval echo configure:16233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16233 rm -rf conftest*
afc31813 16234 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 16235else
698dcdb6
VZ
16236 echo "configure: failed program was:" >&5
16237 cat conftest.$ac_ext >&5
16238 rm -rf conftest*
16239 wx_cv_func_gettimeofday_has_2_args=unknown
16240
10f2d63a 16241fi
698dcdb6
VZ
16242rm -f conftest*
16243
10f2d63a 16244fi
698dcdb6 16245rm -f conftest*
afc31813 16246 ac_ext=c
698dcdb6 16247# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 16248ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16249ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16250ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16251cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 16252
698dcdb6 16253
afc31813 16254fi
698dcdb6
VZ
16255
16256echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 16257
afc31813 16258 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 16259 cat >> confdefs.h <<\EOF
afc31813
VZ
16260#define WX_GETTIMEOFDAY_NO_TZ 1
16261EOF
16262
16263 fi
16264 fi
16265
698dcdb6 16266 cat >> confdefs.h <<\EOF
afc31813
VZ
16267#define wxUSE_TIMEDATE 1
16268EOF
16269
16270 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16271fi
16272
698dcdb6 16273
b089607b
VZ
16274if test "$TOOLKIT" != "MSW"; then
16275
afc31813 16276if test "$wxUSE_SOCKETS" = "yes"; then
698dcdb6 16277 echo $ac_n "checking for socket""... $ac_c" 1>&6
8db37e06 16278echo "configure:16279: checking for socket" >&5
698dcdb6
VZ
16279if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16280 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16281else
698dcdb6 16282 cat > conftest.$ac_ext <<EOF
8db37e06 16283#line 16284 "configure"
c63c7106
VZ
16284#include "confdefs.h"
16285/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16286 which can conflict with char socket(); below. */
c63c7106
VZ
16287#include <assert.h>
16288/* Override any gcc2 internal prototype to avoid an error. */
16289/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16290 builtin and then its argument prototype would still apply. */
16291char socket();
16292
16293int main() {
c63c7106
VZ
16294
16295/* The GNU C library defines this for functions which it implements
16296 to always fail with ENOSYS. Some functions are actually named
16297 something starting with __ and the normal name is an alias. */
16298#if defined (__stub_socket) || defined (__stub___socket)
16299choke me
16300#else
698dcdb6 16301socket();
c63c7106
VZ
16302#endif
16303
698dcdb6
VZ
16304; return 0; }
16305EOF
8db37e06 16306if { (eval echo configure:16307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16307 rm -rf conftest*
16308 eval "ac_cv_func_socket=yes"
16309else
16310 echo "configure: failed program was:" >&5
16311 cat conftest.$ac_ext >&5
16312 rm -rf conftest*
16313 eval "ac_cv_func_socket=no"
16314fi
16315rm -f conftest*
16316fi
16317
16318if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16319 echo "$ac_t""yes" 1>&6
c63c7106
VZ
16320 :
16321else
698dcdb6
VZ
16322 echo "$ac_t""no" 1>&6
16323echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
8db37e06 16324echo "configure:16325: checking for socket in -lsocket" >&5
698dcdb6
VZ
16325ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16326if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16327 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16328else
698dcdb6 16329 ac_save_LIBS="$LIBS"
c63c7106 16330LIBS="-lsocket $LIBS"
698dcdb6 16331cat > conftest.$ac_ext <<EOF
8db37e06 16332#line 16333 "configure"
c63c7106
VZ
16333#include "confdefs.h"
16334/* Override any gcc2 internal prototype to avoid an error. */
16335/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16336 builtin and then its argument prototype would still apply. */
16337char socket();
16338
16339int main() {
16340socket()
16341; return 0; }
16342EOF
8db37e06 16343if { (eval echo configure:16344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16344 rm -rf conftest*
16345 eval "ac_cv_lib_$ac_lib_var=yes"
16346else
16347 echo "configure: failed program was:" >&5
16348 cat conftest.$ac_ext >&5
16349 rm -rf conftest*
16350 eval "ac_cv_lib_$ac_lib_var=no"
16351fi
16352rm -f conftest*
16353LIBS="$ac_save_LIBS"
16354
16355fi
16356if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16357 echo "$ac_t""yes" 1>&6
c63c7106 16358 INET_LINK="$INET_LINK -lsocket"
c63c7106 16359else
698dcdb6 16360 echo "$ac_t""no" 1>&6
afc31813 16361
698dcdb6 16362 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
afc31813 16363 wxUSE_SOCKETS=no
698dcdb6
VZ
16364
16365
10f2d63a
VZ
16366fi
16367
698dcdb6 16368
6232543b 16369fi
b089607b 16370
1e487827 16371fi
afc31813 16372
51a9faba 16373
698dcdb6
VZ
16374if test "$wxUSE_SOCKETS" = "yes" ; then
16375 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
8db37e06 16376echo "configure:16377: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
16377if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16378 echo $ac_n "(cached) $ac_c" 1>&6
16379else
16380
16381
16382 ac_ext=C
16383# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16384ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16385ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16386ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16387cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16388
698dcdb6
VZ
16389
16390 cat > conftest.$ac_ext <<EOF
8db37e06 16391#line 16392 "configure"
afc31813 16392#include "confdefs.h"
51a9faba 16393
3ace2e6d 16394 #include <sys/types.h>
51a9faba 16395 #include <sys/socket.h>
698dcdb6
VZ
16396
16397int main() {
51a9faba
VZ
16398
16399 socklen_t len;
16400 getsockname(0, 0, &len);
698dcdb6
VZ
16401
16402; return 0; }
16403EOF
8db37e06 16404if { (eval echo configure:16405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16405 rm -rf conftest*
51a9faba 16406 wx_cv_type_getsockname3=socklen_t
afc31813 16407else
698dcdb6
VZ
16408 echo "configure: failed program was:" >&5
16409 cat conftest.$ac_ext >&5
16410 rm -rf conftest*
16411 cat > conftest.$ac_ext <<EOF
8db37e06 16412#line 16413 "configure"
afc31813 16413#include "confdefs.h"
51a9faba 16414
3ace2e6d 16415 #include <sys/types.h>
51a9faba 16416 #include <sys/socket.h>
698dcdb6
VZ
16417
16418int main() {
51a9faba
VZ
16419
16420 size_t len;
16421 getsockname(0, 0, &len);
698dcdb6
VZ
16422
16423; return 0; }
16424EOF
8db37e06 16425if { (eval echo configure:16426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16426 rm -rf conftest*
51a9faba 16427 wx_cv_type_getsockname3=size_t
afc31813 16428else
698dcdb6
VZ
16429 echo "configure: failed program was:" >&5
16430 cat conftest.$ac_ext >&5
16431 rm -rf conftest*
16432 cat > conftest.$ac_ext <<EOF
8db37e06 16433#line 16434 "configure"
afc31813 16434#include "confdefs.h"
51a9faba 16435
3ace2e6d 16436 #include <sys/types.h>
51a9faba 16437 #include <sys/socket.h>
698dcdb6
VZ
16438
16439int main() {
51a9faba
VZ
16440
16441 int len;
16442 getsockname(0, 0, &len);
698dcdb6
VZ
16443
16444; return 0; }
16445EOF
8db37e06 16446if { (eval echo configure:16447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16447 rm -rf conftest*
51a9faba 16448 wx_cv_type_getsockname3=int
afc31813 16449else
698dcdb6
VZ
16450 echo "configure: failed program was:" >&5
16451 cat conftest.$ac_ext >&5
16452 rm -rf conftest*
16453 wx_cv_type_getsockname3=unknown
16454
afc31813 16455fi
698dcdb6
VZ
16456rm -f conftest*
16457
afc31813 16458fi
698dcdb6
VZ
16459rm -f conftest*
16460
afc31813 16461fi
698dcdb6 16462rm -f conftest*
51a9faba
VZ
16463
16464 ac_ext=c
698dcdb6 16465# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 16466ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16467ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16468ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16469cross_compiling=$ac_cv_prog_cc_cross
afc31813 16470
698dcdb6 16471
51a9faba 16472fi
698dcdb6
VZ
16473
16474echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba
VZ
16475
16476 if test "$wx_cv_type_getsockname3" = "unknown"; then
16477 wxUSE_SOCKETS=no
698dcdb6 16478 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
51a9faba 16479 else
698dcdb6 16480 cat >> confdefs.h <<EOF
51a9faba
VZ
16481#define SOCKLEN_T $wx_cv_type_getsockname3
16482EOF
16483
16484 fi
16485fi
afc31813 16486
c521c494
RL
16487fi
16488
51a9faba 16489if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 16490 cat >> confdefs.h <<\EOF
afc31813
VZ
16491#define wxUSE_SOCKETS 1
16492EOF
16493
70f7a477 16494 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
16495 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
16496fi
16497
698dcdb6 16498
dc3d889d
VZ
16499if test "$wxUSE_GUI" = "yes"; then
16500
b089607b
VZ
16501if test "$TOOLKIT" != "MSW"; then
16502
ceded8b9 16503if test "$wxUSE_JOYSTICK" = "yes"; then
698dcdb6 16504 for ac_hdr in linux/joystick.h
10f2d63a 16505do
698dcdb6
VZ
16506ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16507echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8db37e06 16508echo "configure:16509: checking for $ac_hdr" >&5
698dcdb6
VZ
16509if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16510 echo $ac_n "(cached) $ac_c" 1>&6
16511else
16512 cat > conftest.$ac_ext <<EOF
8db37e06 16513#line 16514 "configure"
10f2d63a 16514#include "confdefs.h"
698dcdb6
VZ
16515#include <$ac_hdr>
16516EOF
16517ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8db37e06 16518{ (eval echo configure:16519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
16519ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16520if test -z "$ac_err"; then
16521 rm -rf conftest*
16522 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 16523else
698dcdb6
VZ
16524 echo "$ac_err" >&5
16525 echo "configure: failed program was:" >&5
10f2d63a 16526 cat conftest.$ac_ext >&5
698dcdb6
VZ
16527 rm -rf conftest*
16528 eval "ac_cv_header_$ac_safe=no"
10f2d63a 16529fi
698dcdb6 16530rm -f conftest*
10f2d63a 16531fi
698dcdb6
VZ
16532if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16533 echo "$ac_t""yes" 1>&6
16534 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16535 cat >> confdefs.h <<EOF
16536#define $ac_tr_hdr 1
10f2d63a 16537EOF
698dcdb6
VZ
16538
16539else
16540 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16541fi
16542done
16543
b089607b 16544 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
ceded8b9 16545 wxUSE_JOYSTICK=no
698dcdb6 16546 echo "configure: warning: Joystick not supported by this system" 1>&2
b089607b
VZ
16547 fi
16548fi
16549
16550fi
16551
ceded8b9 16552if test "$wxUSE_JOYSTICK" = "yes"; then
698dcdb6 16553 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16554#define wxUSE_JOYSTICK 1
16555EOF
16556
16557 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
16558fi
16559
dc3d889d
VZ
16560fi
16561
698dcdb6 16562
b089607b
VZ
16563if test "$TOOLKIT" != "MSW"; then
16564
10f2d63a
VZ
16565HAVE_DL_FUNCS=0
16566HAVE_SHL_FUNCS=0
16567if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
f11bdd03 16568 if test "$USE_DARWIN" = 1; then
b4085ce6
GD
16569 HAVE_DL_FUNCS=1
16570 else
698dcdb6 16571 for ac_func in dlopen
10f2d63a 16572do
698dcdb6 16573echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8db37e06 16574echo "configure:16575: checking for $ac_func" >&5
698dcdb6
VZ
16575if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16576 echo $ac_n "(cached) $ac_c" 1>&6
16577else
16578 cat > conftest.$ac_ext <<EOF
8db37e06 16579#line 16580 "configure"
10f2d63a
VZ
16580#include "confdefs.h"
16581/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16582 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16583#include <assert.h>
16584/* Override any gcc2 internal prototype to avoid an error. */
16585/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16586 builtin and then its argument prototype would still apply. */
16587char $ac_func();
16588
16589int main() {
10f2d63a
VZ
16590
16591/* The GNU C library defines this for functions which it implements
16592 to always fail with ENOSYS. Some functions are actually named
16593 something starting with __ and the normal name is an alias. */
16594#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16595choke me
16596#else
698dcdb6 16597$ac_func();
10f2d63a
VZ
16598#endif
16599
698dcdb6
VZ
16600; return 0; }
16601EOF
8db37e06 16602if { (eval echo configure:16603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16603 rm -rf conftest*
16604 eval "ac_cv_func_$ac_func=yes"
16605else
16606 echo "configure: failed program was:" >&5
16607 cat conftest.$ac_ext >&5
16608 rm -rf conftest*
16609 eval "ac_cv_func_$ac_func=no"
16610fi
16611rm -f conftest*
16612fi
16613
16614if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16615 echo "$ac_t""yes" 1>&6
16616 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16617 cat >> confdefs.h <<EOF
16618#define $ac_tr_func 1
16619EOF
16620
16621 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16622#define HAVE_DLOPEN 1
16623EOF
16624
16625 HAVE_DL_FUNCS=1
698dcdb6 16626
10f2d63a 16627else
698dcdb6
VZ
16628 echo "$ac_t""no" 1>&6
16629echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8db37e06 16630echo "configure:16631: checking for dlopen in -ldl" >&5
698dcdb6
VZ
16631ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16632if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16633 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16634else
698dcdb6 16635 ac_save_LIBS="$LIBS"
10f2d63a 16636LIBS="-ldl $LIBS"
698dcdb6 16637cat > conftest.$ac_ext <<EOF
8db37e06 16638#line 16639 "configure"
10f2d63a
VZ
16639#include "confdefs.h"
16640/* Override any gcc2 internal prototype to avoid an error. */
16641/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16642 builtin and then its argument prototype would still apply. */
16643char dlopen();
16644
16645int main() {
16646dlopen()
16647; return 0; }
16648EOF
8db37e06 16649if { (eval echo configure:16650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16650 rm -rf conftest*
16651 eval "ac_cv_lib_$ac_lib_var=yes"
16652else
16653 echo "configure: failed program was:" >&5
16654 cat conftest.$ac_ext >&5
16655 rm -rf conftest*
16656 eval "ac_cv_lib_$ac_lib_var=no"
16657fi
16658rm -f conftest*
16659LIBS="$ac_save_LIBS"
16660
16661fi
16662if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16663 echo "$ac_t""yes" 1>&6
16664
16665 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16666#define HAVE_DLOPEN 1
16667EOF
16668
16669 HAVE_DL_FUNCS=1
16670 LIBS="$LIBS -ldl"
698dcdb6 16671
10f2d63a 16672else
698dcdb6 16673 echo "$ac_t""no" 1>&6
10f2d63a 16674
698dcdb6 16675 for ac_func in shl_load
10f2d63a 16676do
698dcdb6 16677echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8db37e06 16678echo "configure:16679: checking for $ac_func" >&5
698dcdb6
VZ
16679if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16680 echo $ac_n "(cached) $ac_c" 1>&6
16681else
16682 cat > conftest.$ac_ext <<EOF
8db37e06 16683#line 16684 "configure"
10f2d63a
VZ
16684#include "confdefs.h"
16685/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16686 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16687#include <assert.h>
16688/* Override any gcc2 internal prototype to avoid an error. */
16689/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16690 builtin and then its argument prototype would still apply. */
16691char $ac_func();
16692
16693int main() {
10f2d63a
VZ
16694
16695/* The GNU C library defines this for functions which it implements
16696 to always fail with ENOSYS. Some functions are actually named
16697 something starting with __ and the normal name is an alias. */
16698#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16699choke me
16700#else
698dcdb6 16701$ac_func();
10f2d63a
VZ
16702#endif
16703
698dcdb6
VZ
16704; return 0; }
16705EOF
8db37e06 16706if { (eval echo configure:16707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16707 rm -rf conftest*
16708 eval "ac_cv_func_$ac_func=yes"
16709else
16710 echo "configure: failed program was:" >&5
16711 cat conftest.$ac_ext >&5
16712 rm -rf conftest*
16713 eval "ac_cv_func_$ac_func=no"
16714fi
16715rm -f conftest*
16716fi
16717
16718if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16719 echo "$ac_t""yes" 1>&6
16720 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16721 cat >> confdefs.h <<EOF
16722#define $ac_tr_func 1
16723EOF
16724
16725 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16726#define HAVE_SHL_LOAD 1
16727EOF
16728
16729 HAVE_SHL_FUNCS=1
698dcdb6 16730
10f2d63a 16731else
698dcdb6
VZ
16732 echo "$ac_t""no" 1>&6
16733echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
8db37e06 16734echo "configure:16735: checking for dld in -lshl_load" >&5
698dcdb6
VZ
16735ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16736if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16737 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16738else
698dcdb6 16739 ac_save_LIBS="$LIBS"
f6bcfd97 16740LIBS="-lshl_load $LIBS"
698dcdb6 16741cat > conftest.$ac_ext <<EOF
8db37e06 16742#line 16743 "configure"
f6bcfd97
BP
16743#include "confdefs.h"
16744/* Override any gcc2 internal prototype to avoid an error. */
16745/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16746 builtin and then its argument prototype would still apply. */
16747char dld();
16748
16749int main() {
16750dld()
16751; return 0; }
16752EOF
8db37e06 16753if { (eval echo configure:16754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16754 rm -rf conftest*
16755 eval "ac_cv_lib_$ac_lib_var=yes"
16756else
16757 echo "configure: failed program was:" >&5
16758 cat conftest.$ac_ext >&5
16759 rm -rf conftest*
16760 eval "ac_cv_lib_$ac_lib_var=no"
16761fi
16762rm -f conftest*
16763LIBS="$ac_save_LIBS"
f6bcfd97 16764
698dcdb6
VZ
16765fi
16766if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16767 echo "$ac_t""yes" 1>&6
16768
f6bcfd97
BP
16769 HAVE_SHL_FUNCS=1
16770 LIBS="$LIBS -ldld"
698dcdb6
VZ
16771
16772else
16773 echo "$ac_t""no" 1>&6
f6bcfd97
BP
16774fi
16775
698dcdb6 16776
10f2d63a
VZ
16777fi
16778done
16779
698dcdb6 16780
10f2d63a
VZ
16781fi
16782
698dcdb6 16783
10f2d63a
VZ
16784fi
16785done
16786
1e487827 16787
698dcdb6
VZ
16788 if test "$HAVE_DL_FUNCS" = 1; then
16789 for ac_func in dlerror
f6bcfd97 16790do
698dcdb6 16791echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8db37e06 16792echo "configure:16793: checking for $ac_func" >&5
698dcdb6
VZ
16793if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16794 echo $ac_n "(cached) $ac_c" 1>&6
16795else
16796 cat > conftest.$ac_ext <<EOF
8db37e06 16797#line 16798 "configure"
f6bcfd97
BP
16798#include "confdefs.h"
16799/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16800 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
16801#include <assert.h>
16802/* Override any gcc2 internal prototype to avoid an error. */
16803/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16804 builtin and then its argument prototype would still apply. */
16805char $ac_func();
16806
16807int main() {
f6bcfd97
BP
16808
16809/* The GNU C library defines this for functions which it implements
16810 to always fail with ENOSYS. Some functions are actually named
16811 something starting with __ and the normal name is an alias. */
16812#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16813choke me
16814#else
698dcdb6 16815$ac_func();
f6bcfd97
BP
16816#endif
16817
698dcdb6
VZ
16818; return 0; }
16819EOF
8db37e06 16820if { (eval echo configure:16821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16821 rm -rf conftest*
16822 eval "ac_cv_func_$ac_func=yes"
16823else
16824 echo "configure: failed program was:" >&5
16825 cat conftest.$ac_ext >&5
16826 rm -rf conftest*
16827 eval "ac_cv_func_$ac_func=no"
16828fi
16829rm -f conftest*
16830fi
16831
16832if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16833 echo "$ac_t""yes" 1>&6
16834 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16835 cat >> confdefs.h <<EOF
16836#define $ac_tr_func 1
16837EOF
16838 cat >> confdefs.h <<\EOF
f6bcfd97
BP
16839#define HAVE_DLERROR 1
16840EOF
16841
16842else
698dcdb6
VZ
16843 echo "$ac_t""no" 1>&6
16844echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
8db37e06 16845echo "configure:16846: checking for dlerror in -ldl" >&5
698dcdb6
VZ
16846ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
16847if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16848 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16849else
698dcdb6 16850 ac_save_LIBS="$LIBS"
f6bcfd97 16851LIBS="-ldl $LIBS"
698dcdb6 16852cat > conftest.$ac_ext <<EOF
8db37e06 16853#line 16854 "configure"
f6bcfd97
BP
16854#include "confdefs.h"
16855/* Override any gcc2 internal prototype to avoid an error. */
16856/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16857 builtin and then its argument prototype would still apply. */
16858char dlerror();
16859
16860int main() {
16861dlerror()
16862; return 0; }
16863EOF
8db37e06 16864if { (eval echo configure:16865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16865 rm -rf conftest*
16866 eval "ac_cv_lib_$ac_lib_var=yes"
16867else
16868 echo "configure: failed program was:" >&5
16869 cat conftest.$ac_ext >&5
16870 rm -rf conftest*
16871 eval "ac_cv_lib_$ac_lib_var=no"
16872fi
16873rm -f conftest*
16874LIBS="$ac_save_LIBS"
16875
16876fi
16877if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16878 echo "$ac_t""yes" 1>&6
16879 cat >> confdefs.h <<\EOF
f6bcfd97
BP
16880#define HAVE_DLERROR 1
16881EOF
16882
698dcdb6
VZ
16883else
16884 echo "$ac_t""no" 1>&6
f6bcfd97
BP
16885fi
16886
16887fi
16888done
16889
16890 fi
b4085ce6 16891 fi
f6bcfd97 16892
10f2d63a
VZ
16893 if test "$HAVE_DL_FUNCS" = 0; then
16894 if test "$HAVE_SHL_FUNCS" = 0; then
16895 if test "$USE_UNIX" = 1; then
698dcdb6 16896 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
16897 wxUSE_DYNLIB_CLASS=no
16898 else
698dcdb6 16899 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
16900 fi
16901 fi
16902 fi
16903fi
16904
b089607b
VZ
16905fi
16906
10f2d63a 16907if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 16908 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16909#define wxUSE_DYNLIB_CLASS 1
16910EOF
16911
b12915c1
VZ
16912else
16913 wxUSE_ODBC=no
16914 wxUSE_SERIAL=no
10f2d63a
VZ
16915fi
16916
698dcdb6 16917
1e6feb95
VZ
16918if test "$wxUSE_FONTMAP" = "yes" ; then
16919 cat >> confdefs.h <<\EOF
16920#define wxUSE_FONTMAP 1
16921EOF
16922
16923fi
16924
10f2d63a 16925if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 16926 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16927#define wxUSE_UNICODE 1
16928EOF
16929
16930fi
16931
16932if test "$wxUSE_WCSRTOMBS" = "yes" ; then
698dcdb6 16933 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16934#define wxUSE_WCSRTOMBS 1
16935EOF
16936
16937fi
16938
16939if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 16940 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16941#define wxUSE_EXPERIMENTAL_PRINTF 1
16942EOF
16943
16944fi
16945
698dcdb6 16946
b12915c1 16947if test "$wxUSE_SERIAL" = "yes" ; then
698dcdb6 16948 cat >> confdefs.h <<\EOF
b12915c1
VZ
16949#define wxUSE_SERIAL 1
16950EOF
16951
16952fi
16953
698dcdb6 16954
10f2d63a
VZ
16955IODBC_C_SRC=""
16956if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 16957 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16958#define wxUSE_ODBC 1
16959EOF
16960
16961 WXODBCFLAG="-D_IODBC_"
16962 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
16963fi
16964
698dcdb6 16965
10f2d63a 16966if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 16967 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16968#define wxUSE_POSTSCRIPT 1
16969EOF
16970
16971fi
16972
698dcdb6 16973cat >> confdefs.h <<\EOF
10f2d63a
VZ
16974#define wxUSE_AFM_FOR_POSTSCRIPT 1
16975EOF
16976
698dcdb6
VZ
16977
16978cat >> confdefs.h <<\EOF
10f2d63a
VZ
16979#define wxUSE_NORMALIZED_PS_FONTS 1
16980EOF
16981
698dcdb6
VZ
16982
16983
10f2d63a 16984if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 16985 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16986#define wxUSE_CONSTRAINTS 1
16987EOF
16988
16989 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
16990fi
16991
16992if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
698dcdb6 16993 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16994#define wxUSE_MDI_ARCHITECTURE 1
16995EOF
16996
16997 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
16998fi
16999
17000if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 17001 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17002#define wxUSE_DOC_VIEW_ARCHITECTURE 1
17003EOF
17004
17005 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
17006 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17007 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
17008 fi
17009fi
17010
17011if test "$wxUSE_HELP" = "yes"; then
698dcdb6 17012 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17013#define wxUSE_HELP 1
17014EOF
17015
17016 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 17017
3e44f09d 17018 if test "$USE_WIN32" = 1; then
031d8228 17019 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
3379ed37 17020 cat >> confdefs.h <<\EOF
031d8228 17021#define wxUSE_MS_HTML_HELP 1
3379ed37
VZ
17022EOF
17023
29fd3c0c
VS
17024 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
17025echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
8db37e06 17026echo "configure:17027: checking for htmlhelp.h" >&5
29fd3c0c
VS
17027if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17028 echo $ac_n "(cached) $ac_c" 1>&6
17029else
17030 cat > conftest.$ac_ext <<EOF
8db37e06 17031#line 17032 "configure"
29fd3c0c
VS
17032#include "confdefs.h"
17033#include <htmlhelp.h>
17034EOF
17035ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8db37e06 17036{ (eval echo configure:17037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
17037ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17038if test -z "$ac_err"; then
17039 rm -rf conftest*
17040 eval "ac_cv_header_$ac_safe=yes"
17041else
17042 echo "$ac_err" >&5
17043 echo "configure: failed program was:" >&5
17044 cat conftest.$ac_ext >&5
17045 rm -rf conftest*
17046 eval "ac_cv_header_$ac_safe=no"
17047fi
17048rm -f conftest*
17049fi
17050if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17051 echo "$ac_t""yes" 1>&6
17052
17053 cat >> confdefs.h <<\EOF
17054#define wxUSE_MS_HTML_HELP 1
17055EOF
17056
17057
17058else
17059 echo "$ac_t""no" 1>&6
17060
17061 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h so it won't be compiled without it" 1>&2
17062 wxUSE_MS_HTML_HELP=no
17063
17064fi
17065
3e44f09d 17066 fi
3379ed37 17067 fi
031d8228
VS
17068
17069 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17070 if test "$wxUSE_HTML" = "yes"; then
17071 cat >> confdefs.h <<\EOF
17072#define wxUSE_WXHTML_HELP 1
17073EOF
17074
17075 else
17076 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17077 wxUSE_WXHTML_HELP=no
17078 fi
17079 fi
10f2d63a
VZ
17080fi
17081
17082if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17083 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 17084 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 17085 else
698dcdb6 17086 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17087#define wxUSE_PRINTING_ARCHITECTURE 1
17088EOF
17089
17090 fi
17091 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17092fi
17093
17094if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 17095 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17096#define wxUSE_PROLOGIO 1
17097EOF
17098
17099fi
17100
17101if test "$wxUSE_RESOURCES" = "yes" ; then
3379ed37 17102 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17103#define wxUSE_RESOURCES 1
17104EOF
17105
3379ed37 17106 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
10f2d63a
VZ
17107fi
17108
17109if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 17110 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17111#define wxUSE_X_RESOURCES 1
17112EOF
17113
17114fi
17115
698dcdb6 17116
10f2d63a 17117if test "$wxUSE_IPC" = "yes"; then
eb4efbdc 17118 if test "$wxUSE_SOCKETS" != "yes"; then
698dcdb6 17119 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
eb4efbdc
VZ
17120 fi
17121
698dcdb6 17122 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17123#define wxUSE_IPC 1
17124EOF
17125
17126fi
17127
17128if test "$wxUSE_CLIPBOARD" = "yes"; then
698dcdb6 17129 cat >> confdefs.h <<\EOF
10f2d63a 17130#define wxUSE_CLIPBOARD 1
1e6feb95
VZ
17131EOF
17132
17133 cat >> confdefs.h <<\EOF
17134#define wxUSE_DATAOBJ 1
10f2d63a
VZ
17135EOF
17136
17137fi
17138
17139if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17140 if test "$wxUSE_GTK" = 1; then
17141 if test "$WXGTK12" != 1; then
698dcdb6 17142 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
10f2d63a
VZ
17143 wxUSE_DRAG_AND_DROP=no
17144 fi
17145 fi
17146
17147 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 17148 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
10f2d63a
VZ
17149 wxUSE_DRAG_AND_DROP=no
17150 fi
17151
2c6025bc 17152 if test "$wxUSE_MAC" = 1; then
698dcdb6 17153 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
2c6025bc
GD
17154 wxUSE_DRAG_AND_DROP=no
17155 fi
17156
10f2d63a 17157 if test "$USE_WIN32" = 1; then
698dcdb6
VZ
17158
17159 for ac_hdr in ole2.h
10f2d63a 17160do
698dcdb6
VZ
17161ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17162echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8db37e06 17163echo "configure:17164: checking for $ac_hdr" >&5
698dcdb6
VZ
17164if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17165 echo $ac_n "(cached) $ac_c" 1>&6
17166else
17167 cat > conftest.$ac_ext <<EOF
8db37e06 17168#line 17169 "configure"
10f2d63a 17169#include "confdefs.h"
698dcdb6
VZ
17170#include <$ac_hdr>
17171EOF
17172ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8db37e06 17173{ (eval echo configure:17174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
17174ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17175if test -z "$ac_err"; then
17176 rm -rf conftest*
17177 eval "ac_cv_header_$ac_safe=yes"
1e487827 17178else
698dcdb6
VZ
17179 echo "$ac_err" >&5
17180 echo "configure: failed program was:" >&5
10f2d63a 17181 cat conftest.$ac_ext >&5
698dcdb6
VZ
17182 rm -rf conftest*
17183 eval "ac_cv_header_$ac_safe=no"
10f2d63a 17184fi
698dcdb6 17185rm -f conftest*
10f2d63a 17186fi
698dcdb6
VZ
17187if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17188 echo "$ac_t""yes" 1>&6
17189 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17190 cat >> confdefs.h <<EOF
17191#define $ac_tr_hdr 1
10f2d63a 17192EOF
698dcdb6
VZ
17193
17194else
17195 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17196fi
17197done
17198
698dcdb6 17199
57fe5ed0 17200 if test "$ac_cv_header_ole2_h" = "yes" ; then
c521c494 17201 if test "$GCC" = yes ; then
b64f0a5f
RL
17202 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
17203 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
c521c494 17204 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
b64f0a5f 17205 LIBS="$LIBS -lole32 -luuid"
4f11a343
VS
17206 cat >> confdefs.h <<\EOF
17207#define wxUSE_OLE 1
17208EOF
17209
b64f0a5f
RL
17210
17211 if test "$wxUSE_METAFILE" = "yes"; then
698dcdb6 17212 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17213#define wxUSE_METAFILE 1
17214EOF
17215
698dcdb6 17216 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17217#define wxUSE_ENH_METAFILE 1
17218EOF
17219
17220 fi
c521c494
RL
17221 fi
17222 else
698dcdb6 17223 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
10f2d63a
VZ
17224 wxUSE_DRAG_AND_DROP=no
17225 fi
17226 fi
17227
17228 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 17229 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17230#define wxUSE_DRAG_AND_DROP 1
17231EOF
17232
17233 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17234 fi
17235
17236fi
17237
17238if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 17239 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17240#define wxUSE_SPLINES 1
17241EOF
17242
17243fi
17244
698dcdb6 17245
1e6feb95
VZ
17246USES_CONTROLS=0
17247if test "$wxUSE_CONTROLS" = "yes"; then
17248 USES_CONTROLS=1
17249fi
17250
10f2d63a 17251if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 17252 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17253#define wxUSE_ACCEL 1
17254EOF
17255
1e6feb95
VZ
17256 USES_CONTROLS=1
17257fi
17258
17259if test "$wxUSE_BUTTON" = "yes"; then
17260 cat >> confdefs.h <<\EOF
17261#define wxUSE_BUTTON 1
17262EOF
17263
17264 USES_CONTROLS=1
17265fi
17266
17267if test "$wxUSE_BMPBUTTON" = "yes"; then
17268 cat >> confdefs.h <<\EOF
17269#define wxUSE_BMPBUTTON 1
17270EOF
17271
17272 USES_CONTROLS=1
17273fi
17274
17275if test "$wxUSE_CALCTRL" = "yes"; then
17276 cat >> confdefs.h <<\EOF
17277#define wxUSE_CALENDARCTRL 1
17278EOF
17279
17280 USES_CONTROLS=1
17281 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
17282fi
17283
17284if test "$wxUSE_CARET" = "yes"; then
698dcdb6 17285 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17286#define wxUSE_CARET 1
17287EOF
17288
1e6feb95 17289 USES_CONTROLS=1
10f2d63a
VZ
17290 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17291fi
17292
17293if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 17294 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17295#define wxUSE_COMBOBOX 1
17296EOF
17297
1e6feb95 17298 USES_CONTROLS=1
10f2d63a
VZ
17299fi
17300
17301if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 17302 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17303#define wxUSE_CHOICE 1
17304EOF
17305
1e6feb95 17306 USES_CONTROLS=1
10f2d63a
VZ
17307fi
17308
17309if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 17310 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17311#define wxUSE_CHECKBOX 1
17312EOF
17313
1e6feb95 17314 USES_CONTROLS=1
10f2d63a
VZ
17315fi
17316
17317if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 17318 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17319#define wxUSE_CHECKLISTBOX 1
17320EOF
17321
1e6feb95 17322 USES_CONTROLS=1
10f2d63a
VZ
17323 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17324fi
17325
17326if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 17327 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17328#define wxUSE_GAUGE 1
17329EOF
17330
1e6feb95 17331 USES_CONTROLS=1
10f2d63a
VZ
17332fi
17333
d6a55c4b
VZ
17334if test "$wxUSE_NEW_GRID" = "yes"; then
17335 wxUSE_GRID="yes"
698dcdb6 17336 cat >> confdefs.h <<\EOF
d6a55c4b 17337#define wxUSE_NEW_GRID 1
10f2d63a
VZ
17338EOF
17339
1e6feb95 17340 USES_CONTROLS=1
d6a55c4b 17341 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
17342fi
17343
d6a55c4b 17344if test "$wxUSE_GRID" = "yes"; then
698dcdb6 17345 cat >> confdefs.h <<\EOF
d6a55c4b 17346#define wxUSE_GRID 1
10f2d63a
VZ
17347EOF
17348
1e6feb95 17349 USES_CONTROLS=1
d6a55c4b 17350 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
17351fi
17352
17353if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17354 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17355#define wxUSE_IMAGLIST 1
17356EOF
17357
17358fi
17359
17360if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 17361 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17362#define wxUSE_LISTBOX 1
17363EOF
17364
1e6feb95 17365 USES_CONTROLS=1
10f2d63a
VZ
17366fi
17367
17368if test "$wxUSE_LISTCTRL" = "yes"; then
17369 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17370 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17371#define wxUSE_LISTCTRL 1
17372EOF
17373
1e6feb95 17374 USES_CONTROLS=1
10f2d63a
VZ
17375 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17376 else
698dcdb6 17377 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17378 fi
17379fi
17380
17381if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 17382 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17383#define wxUSE_NOTEBOOK 1
17384EOF
17385
1e6feb95 17386 USES_CONTROLS=1
10f2d63a
VZ
17387 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17388fi
17389
24176f2c
GD
17390if test "$wxUSE_PROPSHEET" = "yes"; then
17391 cat >> confdefs.h <<\EOF
17392#define wxUSE_PROPSHEET 1
17393EOF
17394
17395 USES_CONTROLS=1
17396 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
17397fi
17398
10f2d63a 17399if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 17400 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17401#define wxUSE_RADIOBOX 1
17402EOF
17403
1e6feb95 17404 USES_CONTROLS=1
10f2d63a
VZ
17405fi
17406
17407if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 17408 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17409#define wxUSE_RADIOBTN 1
17410EOF
17411
1e6feb95 17412 USES_CONTROLS=1
10f2d63a
VZ
17413fi
17414
17415if test "$wxUSE_SASH" = "yes"; then
698dcdb6 17416 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17417#define wxUSE_SASH 1
17418EOF
17419
17420 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17421fi
17422
17423if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 17424 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17425#define wxUSE_SCROLLBAR 1
17426EOF
17427
1e6feb95 17428 USES_CONTROLS=1
741a9306 17429 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
17430fi
17431
17432if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 17433 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17434#define wxUSE_SLIDER 1
17435EOF
17436
1e6feb95 17437 USES_CONTROLS=1
10f2d63a
VZ
17438fi
17439
17440if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 17441 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17442#define wxUSE_SPINBTN 1
17443EOF
17444
1e6feb95 17445 USES_CONTROLS=1
10f2d63a
VZ
17446fi
17447
56cfaa52 17448if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 17449 cat >> confdefs.h <<\EOF
56cfaa52
RR
17450#define wxUSE_SPINCTRL 1
17451EOF
17452
1e6feb95 17453 USES_CONTROLS=1
56cfaa52
RR
17454fi
17455
10f2d63a 17456if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 17457 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17458#define wxUSE_SPLITTER 1
17459EOF
17460
17461 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17462fi
17463
17464if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 17465 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17466#define wxUSE_STATBMP 1
17467EOF
17468
1e6feb95 17469 USES_CONTROLS=1
10f2d63a
VZ
17470fi
17471
17472if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 17473 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17474#define wxUSE_STATBOX 1
17475EOF
17476
1e6feb95
VZ
17477 USES_CONTROLS=1
17478fi
17479
17480if test "$wxUSE_STATTEXT" = "yes"; then
17481 cat >> confdefs.h <<\EOF
17482#define wxUSE_STATTEXT 1
17483EOF
17484
17485 USES_CONTROLS=1
10f2d63a
VZ
17486fi
17487
17488if test "$wxUSE_STATLINE" = "yes"; then
17489 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 17490 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 17491 else
698dcdb6 17492 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17493#define wxUSE_STATLINE 1
17494EOF
17495
1e6feb95 17496 USES_CONTROLS=1
10f2d63a
VZ
17497 fi
17498fi
17499
17500if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 17501 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17502#define wxUSE_STATUSBAR 1
17503EOF
17504
1e6feb95 17505 USES_CONTROLS=1
698dcdb6 17506
2286341c 17507 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
17508fi
17509
17510if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 17511 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17512#define wxUSE_TAB_DIALOG 1
17513EOF
17514
17515 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17516fi
17517
1e6feb95
VZ
17518if test "$wxUSE_TEXTCTRL" = "yes"; then
17519 cat >> confdefs.h <<\EOF
17520#define wxUSE_TEXTCTRL 1
17521EOF
17522
17523 USES_CONTROLS=1
17524 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17525fi
17526
1db8dc4a 17527if test "$wxUSE_TOGGLEBTN" = "yes"; then
a45d7ab7
GD
17528 if test "$wxUSE_MAC" = 1; then
17529 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
17530 wxUSE_TOGGLEBTN=no
17531 fi
17532
17533 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17534 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
17535#define wxUSE_TOGGLEBTN 1
17536EOF
17537
1e6feb95 17538 USES_CONTROLS=1
a45d7ab7 17539 fi
1db8dc4a
VZ
17540fi
17541
360d6699 17542if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 17543 cat >> confdefs.h <<\EOF
360d6699
VZ
17544#define wxUSE_TOOLBAR_SIMPLE 1
17545EOF
17546
17547 wxUSE_TOOLBAR="yes"
1e6feb95 17548 USES_CONTROLS=1
360d6699
VZ
17549fi
17550
10f2d63a 17551if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 17552 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17553#define wxUSE_TOOLBAR 1
17554EOF
17555
1e6feb95 17556 USES_CONTROLS=1
698dcdb6 17557
360d6699
VZ
17558 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17559 wxUSE_TOOLBAR_NATIVE="yes"
17560 fi
17561
1e6feb95
VZ
17562 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17563 cat >> confdefs.h <<\EOF
360d6699
VZ
17564#define wxUSE_TOOLBAR_NATIVE 1
17565EOF
17566
1e6feb95
VZ
17567 USES_CONTROLS=1
17568 fi
17569
17570 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
17571fi
17572
10f2d63a
VZ
17573if test "$wxUSE_TOOLTIPS" = "yes"; then
17574 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 17575 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
10f2d63a
VZ
17576 else
17577 if test "$wxUSE_WINE" = 1; then
698dcdb6 17578 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
10f2d63a 17579 else
698dcdb6 17580 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17581#define wxUSE_TOOLTIPS 1
17582EOF
17583
17584 fi
17585 fi
17586fi
17587
17588if test "$wxUSE_TREECTRL" = "yes"; then
17589 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17590 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17591#define wxUSE_TREECTRL 1
17592EOF
17593
1e6feb95 17594 USES_CONTROLS=1
10f2d63a
VZ
17595 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17596 else
698dcdb6 17597 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17598 fi
17599fi
17600
9f41d601 17601if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65
GD
17602 if test "$wxUSE_MAC" = 1; then
17603 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
17604 else
17605 cat >> confdefs.h <<\EOF
9f41d601
RR
17606#define wxUSE_POPUPWIN 1
17607EOF
17608
6abe4b65
GD
17609 USES_CONTROLS=1
17610 fi
9f41d601
RR
17611fi
17612
1e6feb95
VZ
17613if test "$USES_CONTROLS" = 1; then
17614 cat >> confdefs.h <<\EOF
17615#define wxUSE_CONTROLS 1
10f2d63a
VZ
17616EOF
17617
10f2d63a
VZ
17618fi
17619
1e6feb95 17620
24176f2c
GD
17621if test "$wxUSE_TREELAYOUT" = "yes"; then
17622 cat >> confdefs.h <<\EOF
17623#define wxUSE_TREELAYOUT 1
17624EOF
17625
17626 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
17627fi
1e6feb95 17628
24fd6d87
VZ
17629if test "$wxUSE_DRAGIMAGE" = "yes"; then
17630 cat >> confdefs.h <<\EOF
17631#define wxUSE_DRAGIMAGE 1
17632EOF
17633
17634 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
17635fi
17636
1e6feb95 17637if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 17638 cat >> confdefs.h <<\EOF
1e6feb95 17639#define wxUSE_MENUS 1
10f2d63a
VZ
17640EOF
17641
1e6feb95 17642 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
17643fi
17644
1e6feb95
VZ
17645if test "$wxUSE_METAFILE" = "yes"; then
17646 cat >> confdefs.h <<\EOF
17647#define wxUSE_METAFILE 1
10f2d63a
VZ
17648EOF
17649
10f2d63a
VZ
17650fi
17651
1e6feb95
VZ
17652if test "$wxUSE_MIMETYPE" = "yes"; then
17653 cat >> confdefs.h <<\EOF
17654#define wxUSE_MIMETYPE 1
10f2d63a
VZ
17655EOF
17656
10f2d63a
VZ
17657fi
17658
3e44f09d
VZ
17659if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
17660 cat >> confdefs.h <<\EOF
17661#define wxUSE_SYSTEM_OPTIONS 1
17662EOF
17663
17664fi
17665
10f2d63a 17666if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 17667 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17668#define wxUSE_MINIFRAME 1
17669EOF
17670
17671 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
17672fi
17673
17674if test "$wxUSE_HTML" = "yes"; then
698dcdb6 17675 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17676#define wxUSE_HTML 1
17677EOF
17678
17679 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
17680 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
17681fi
17682
17683if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 17684 cat >> confdefs.h <<\EOF
1e487827
VS
17685#define wxUSE_VALIDATORS 1
17686EOF
703e0a69 17687
698dcdb6
VZ
17688 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
17689fi
17690
17691if test "$wxUSE_IMAGE" = "yes" ; then
17692 cat >> confdefs.h <<\EOF
17693#define wxUSE_IMAGE 1
17694EOF
17695
17696fi
17697
17698if test "$wxUSE_GIF" = "yes" ; then
17699 cat >> confdefs.h <<\EOF
17700#define wxUSE_GIF 1
17701EOF
17702
17703fi
17704
17705if test "$wxUSE_PCX" = "yes" ; then
17706 cat >> confdefs.h <<\EOF
17707#define wxUSE_PCX 1
17708EOF
17709
17710fi
17711
17712if test "$wxUSE_PNM" = "yes" ; then
17713 cat >> confdefs.h <<\EOF
17714#define wxUSE_PNM 1
17715EOF
17716
17717fi
17718
17719if test "$wxUSE_XPM" = "yes" ; then
17720 cat >> confdefs.h <<\EOF
17721#define wxUSE_XPM 1
17722EOF
17723
17724fi
17725
17726
1e6feb95
VZ
17727if test "$wxUSE_CHOICEDLG" = "yes"; then
17728 cat >> confdefs.h <<\EOF
17729#define wxUSE_CHOICEDLG 1
17730EOF
17731
17732fi
17733
17734if test "$wxUSE_COLOURDLG" = "yes"; then
17735 cat >> confdefs.h <<\EOF
17736#define wxUSE_COLOURDLG 1
17737EOF
17738
17739fi
17740
17741if test "$wxUSE_FILEDLG" = "yes"; then
17742 cat >> confdefs.h <<\EOF
17743#define wxUSE_FILEDLG 1
17744EOF
17745
17746fi
17747
8db37e06
VZ
17748if test "$wxUSE_FINDREPLDLG" = "yes"; then
17749 cat >> confdefs.h <<\EOF
17750#define wxUSE_FINDREPLDLG 1
17751EOF
17752
17753fi
17754
1e6feb95
VZ
17755if test "$wxUSE_FONTDLG" = "yes"; then
17756 cat >> confdefs.h <<\EOF
17757#define wxUSE_FONTDLG 1
17758EOF
17759
17760fi
17761
17762if test "$wxUSE_DIRDLG" = "yes"; then
17763 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17764 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
17765 else
17766 if test "$wxUSE_TREECTRL" != "yes"; then
17767 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
17768 else
17769 cat >> confdefs.h <<\EOF
17770#define wxUSE_DIRDLG 1
17771EOF
17772
17773 fi
17774 fi
17775fi
17776
17777if test "$wxUSE_MSGDLG" = "yes"; then
17778 cat >> confdefs.h <<\EOF
17779#define wxUSE_MSGDLG 1
17780EOF
17781
17782fi
17783
17784if test "$wxUSE_NUMBERDLG" = "yes"; then
17785 cat >> confdefs.h <<\EOF
17786#define wxUSE_NUMBERDLG 1
17787EOF
17788
17789fi
17790
17791if test "$wxUSE_PROGRESSDLG" = "yes"; then
17792 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17793 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
17794 else
17795 cat >> confdefs.h <<\EOF
17796#define wxUSE_PROGRESSDLG 1
17797EOF
17798
17799 fi
17800fi
17801
17802if test "$wxUSE_STARTUP_TIPS" = "yes"; then
17803 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17804 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
17805 else
17806 cat >> confdefs.h <<\EOF
17807#define wxUSE_STARTUP_TIPS 1
17808EOF
17809
17810 fi
17811fi
17812
17813if test "$wxUSE_TEXTDLG" = "yes"; then
17814 cat >> confdefs.h <<\EOF
17815#define wxUSE_TEXTDLG 1
17816EOF
17817
17818fi
17819
b1f5d087
VZ
17820if test "$wxUSE_WIZARDDLG" = "yes"; then
17821 cat >> confdefs.h <<\EOF
17822#define wxUSE_WIZARDDLG 1
17823EOF
17824
17825 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
17826fi
17827
1e6feb95 17828
698dcdb6
VZ
17829if test "$cross_compiling" = "yes"; then
17830 OSINFO="\"$host\""
17831else
17832 OSINFO=`uname -s -r -m`
17833 OSINFO="\"$OSINFO\""
17834fi
17835
17836cat >> confdefs.h <<EOF
17837#define WXWIN_OS_DESCRIPTION $OSINFO
17838EOF
17839
17840
17841
17842GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
17843OPENGL_LIBS="$OPENGL_LINK"
17844
17845EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
f11bdd03 17846if test "$wxUSE_MAC" = 1 ; then
698dcdb6
VZ
17847 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
17848fi
17849if test "$wxUSE_GUI" = "yes"; then
17850 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
17851fi
17852
17853LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
17854
3e44f09d
VZ
17855INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include \
17856$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
17857$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
698dcdb6
VZ
17858
17859if test "$wxUSE_GTK" = 1; then
17860 WXCONFIG_INCLUDE=""
17861else
17862 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
17863fi
17864
17865if test "$GXX" = yes ; then
17866 CXXWARNINGS="-Wall"
17867 fi
17868EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
17869
17870CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
17871CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
17872
17873LDFLAGS="$LDFLAGS $PROFILE"
17874
17875if test "$wxUSE_GUI" = "yes"; then
17876
24fd6d87 17877 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
24176f2c
GD
17878 drawing dynamic erase event exec font image \
17879 minimal richedit rotate widgets"
1e6feb95
VZ
17880
17881 if test "$wxUSE_UNIVERSAL" = "yes" ; then
17882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
17883 fi
698dcdb6
VZ
17884
17885 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
17886else
24176f2c 17887 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
17888fi
17889
17890SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
32832908
VZ
17958
17959
17960
17961
17962
17963
17964
2224580a 17965
dad6c0ea 17966
f6bcfd97
BP
17967
17968
17969
2f51a9ec
GD
17970
17971
17972
17973
17974
17975
f6bcfd97 17976
dad6c0ea 17977
caa2c79b 17978
3711412e 17979
1e6feb95
VZ
17980
17981
0f3f1cbc 17982
10f2d63a
VZ
17983
17984
698dcdb6 17985echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
8db37e06 17986echo "configure:17987: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
17987set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
17988if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
17989 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17990else
698dcdb6 17991 cat > conftestmake <<\EOF
10f2d63a
VZ
17992all:
17993 @echo 'ac_maketemp="${MAKE}"'
17994EOF
17995# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 17996eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
17997if test -n "$ac_maketemp"; then
17998 eval ac_cv_prog_make_${ac_make}_set=yes
17999else
18000 eval ac_cv_prog_make_${ac_make}_set=no
18001fi
698dcdb6 18002rm -f conftestmake
10f2d63a
VZ
18003fi
18004if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 18005 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
18006 SET_MAKE=
18007else
698dcdb6 18008 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18009 SET_MAKE="MAKE=${MAKE-make}"
18010fi
18011
698dcdb6 18012
00cf1208
RR
18013if test -d include; then
18014 if test -d include/wx; then
1e6feb95
VZ
18015 if test -d include/wx/${SETUPH_DIR}; then
18016 if test -f include/wx/${SETUPH_DIR}/setup.h; then
18017 mv -f include/wx/${SETUPH_DIR}/setup.h setup.h
00cf1208
RR
18018 fi
18019 fi
18020 fi
18021fi
665bbe97 18022
698dcdb6 18023
10f2d63a 18024
2224580a 18025if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 18026 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
18027 wx_cv_path_ifs=$PATH_IFS
18028 wx_cv_program_ext=$PROGRAM_EXT
18029 wx_cv_target_library=$WX_TARGET_LIBRARY
7b6058cd 18030 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
3711412e 18031 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
93a20a27 18032 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
7b6058cd 18033 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
698dcdb6 18034 subdirs="demos samples utils contrib"
2224580a
VZ
18035
18036fi
10f2d63a 18037
698dcdb6
VZ
18038trap '' 1 2 15
18039cat > confcache <<\EOF
10f2d63a
VZ
18040# This file is a shell script that caches the results of configure
18041# tests run on this system so they can be shared between configure
698dcdb6
VZ
18042# scripts and configure runs. It is not useful on other systems.
18043# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 18044#
698dcdb6
VZ
18045# By default, configure uses ./config.cache as the cache file,
18046# creating it if it does not exist already. You can give configure
18047# the --cache-file=FILE option to use a different cache file; that is
18048# what configure does when it calls configure scripts in
18049# subdirectories, so they share the cache.
18050# Giving --cache-file=/dev/null disables caching, for debugging configure.
18051# config.status only pays attention to the cache file if you give it the
18052# --recheck option to rerun configure.
10f2d63a 18053#
698dcdb6 18054EOF
10f2d63a
VZ
18055# The following way of writing the cache mishandles newlines in values,
18056# but we know of no workaround that is simple, portable, and efficient.
18057# So, don't put newlines in cache variables' values.
18058# Ultrix sh set writes to stderr and can't be redirected directly,
18059# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
18060(set) 2>&1 |
18061 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18062 *ac_space=\ *)
18063 # `set' does not quote correctly, so add quotes (double-quote substitution
18064 # turns \\\\ into \\, and sed turns \\ into \).
18065 sed -n \
18066 -e "s/'/'\\\\''/g" \
18067 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18068 ;;
18069 *)
18070 # `set' quotes correctly as required by POSIX, so do not add quotes.
18071 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18072 ;;
18073 esac >> confcache
18074if cmp -s $cache_file confcache; then
18075 :
18076else
10f2d63a 18077 if test -w $cache_file; then
698dcdb6
VZ
18078 echo "updating cache $cache_file"
18079 cat confcache > $cache_file
10f2d63a
VZ
18080 else
18081 echo "not updating unwritable cache $cache_file"
18082 fi
18083fi
18084rm -f confcache
18085
698dcdb6
VZ
18086trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18087
10f2d63a
VZ
18088test "x$prefix" = xNONE && prefix=$ac_default_prefix
18089# Let make expand exec_prefix.
18090test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18091
698dcdb6
VZ
18092# Any assignment to VPATH causes Sun make to only execute
18093# the first set of double-colon rules, so remove it if not needed.
18094# If there is a colon in the path, we need to keep it.
10f2d63a 18095if test "x$srcdir" = x.; then
698dcdb6 18096 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
18097fi
18098
698dcdb6
VZ
18099trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18100
10f2d63a
VZ
18101DEFS=-DHAVE_CONFIG_H
18102
698dcdb6 18103# Without the "./", some shells look in PATH for config.status.
10f2d63a 18104: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
18105
18106echo creating $CONFIG_STATUS
18107rm -f $CONFIG_STATUS
18108cat > $CONFIG_STATUS <<EOF
18109#! /bin/sh
10f2d63a
VZ
18110# Generated automatically by configure.
18111# Run this file to recreate the current configuration.
698dcdb6
VZ
18112# This directory was configured as follows,
18113# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18114#
18115# $0 $ac_configure_args
18116#
10f2d63a 18117# Compiler output produced by configure, useful for debugging
698dcdb6 18118# configure, is in ./config.log if it exists.
1e487827 18119
698dcdb6
VZ
18120ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18121for ac_option
10f2d63a 18122do
698dcdb6 18123 case "\$ac_option" in
10f2d63a 18124 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
18125 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18126 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18127 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18128 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18129 exit 0 ;;
18130 -help | --help | --hel | --he | --h)
18131 echo "\$ac_cs_usage"; exit 0 ;;
18132 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
18133 esac
18134done
18135
698dcdb6
VZ
18136ac_given_srcdir=$srcdir
18137ac_given_INSTALL="$INSTALL"
703e0a69 18138
698dcdb6
VZ
18139trap 'rm -fr `echo "
18140 wx-config
18141 src/make.env
18142 src/makeprog.env
18143 src/makelib.env
18144 Makefile
18145 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 18146EOF
698dcdb6 18147cat >> $CONFIG_STATUS <<EOF
1e487827 18148
698dcdb6
VZ
18149# Protect against being on the right side of a sed subst in config.status.
18150sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18151 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18152$ac_vpsub
18153$extrasub
18154s%@SHELL@%$SHELL%g
18155s%@CFLAGS@%$CFLAGS%g
18156s%@CPPFLAGS@%$CPPFLAGS%g
18157s%@CXXFLAGS@%$CXXFLAGS%g
18158s%@FFLAGS@%$FFLAGS%g
18159s%@DEFS@%$DEFS%g
18160s%@LDFLAGS@%$LDFLAGS%g
18161s%@LIBS@%$LIBS%g
18162s%@exec_prefix@%$exec_prefix%g
18163s%@prefix@%$prefix%g
18164s%@program_transform_name@%$program_transform_name%g
18165s%@bindir@%$bindir%g
18166s%@sbindir@%$sbindir%g
18167s%@libexecdir@%$libexecdir%g
18168s%@datadir@%$datadir%g
18169s%@sysconfdir@%$sysconfdir%g
18170s%@sharedstatedir@%$sharedstatedir%g
18171s%@localstatedir@%$localstatedir%g
18172s%@libdir@%$libdir%g
18173s%@includedir@%$includedir%g
18174s%@oldincludedir@%$oldincludedir%g
18175s%@infodir@%$infodir%g
18176s%@mandir@%$mandir%g
18177s%@host@%$host%g
18178s%@host_alias@%$host_alias%g
18179s%@host_cpu@%$host_cpu%g
18180s%@host_vendor@%$host_vendor%g
18181s%@host_os@%$host_os%g
18182s%@target@%$target%g
18183s%@target_alias@%$target_alias%g
18184s%@target_cpu@%$target_cpu%g
18185s%@target_vendor@%$target_vendor%g
18186s%@target_os@%$target_os%g
18187s%@build@%$build%g
18188s%@build_alias@%$build_alias%g
18189s%@build_cpu@%$build_cpu%g
18190s%@build_vendor@%$build_vendor%g
18191s%@build_os@%$build_os%g
18192s%@CC@%$CC%g
18193s%@CPP@%$CPP%g
18194s%@CXX@%$CXX%g
18195s%@CXXCPP@%$CXXCPP%g
18196s%@RANLIB@%$RANLIB%g
18197s%@AR@%$AR%g
18198s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18199s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18200s%@INSTALL_DATA@%$INSTALL_DATA%g
18201s%@STRIP@%$STRIP%g
18202s%@YACC@%$YACC%g
18203s%@LEX@%$LEX%g
18204s%@LEXLIB@%$LEXLIB%g
18205s%@LN_S@%$LN_S%g
18206s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
698dcdb6
VZ
18207s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18208s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 18209s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
18210s%@X_CFLAGS@%$X_CFLAGS%g
18211s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18212s%@X_LIBS@%$X_LIBS%g
18213s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
18214s%@REZ@%$REZ%g
18215s%@DEREZ@%$DEREZ%g
18216s%@LEX_STEM@%$LEX_STEM%g
18217s%@PATH_IFS@%$PATH_IFS%g
18218s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18219s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18220s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
18221s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
18222s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18223s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
18224s%@WX_LIBRARY@%$WX_LIBRARY%g
18225s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18226s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18227s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
18228s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
18229s%@PROGRAM_EXT@%$PROGRAM_EXT%g
18230s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
18231s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18232s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
18233s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
18234s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18235s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18236s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
18237s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
18238s%@WX_ALL@%$WX_ALL%g
18239s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18240s%@SHARED_LD@%$SHARED_LD%g
18241s%@PIC_FLAG@%$PIC_FLAG%g
18242s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
18243s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18244s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
18245s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
18246s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
18247s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18248s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18249s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18250s%@USE_GUI@%$USE_GUI%g
18251s%@AFMINSTALL@%$AFMINSTALL%g
1e6feb95 18252s%@SETUPH_DIR@%$SETUPH_DIR%g
698dcdb6
VZ
18253s%@TOOLKIT@%$TOOLKIT%g
18254s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
18255s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
18256s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
18257s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
1e6feb95 18258s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
698dcdb6
VZ
18259s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18260s%@ALL_OBJECTS@%$ALL_OBJECTS%g
18261s%@ALL_DEPFILES@%$ALL_DEPFILES%g
18262s%@GUIDIST@%$GUIDIST%g
18263s%@PORT_FILES@%$PORT_FILES%g
18264s%@DISTDIR@%$DISTDIR%g
18265s%@RPM_SPEC@%$RPM_SPEC%g
18266s%@RPM_FILES@%$RPM_FILES%g
18267s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
18268s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
18269s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
18270s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
18271s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
18272s%@USER_SUBDIRS@%$USER_SUBDIRS%g
18273s%@EXTRA_LIBS@%$EXTRA_LIBS%g
18274s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18275s%@EXTRADEFS@%$EXTRADEFS%g
18276s%@LD_LIBS@%$LD_LIBS%g
18277s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
18278s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
18279s%@RESPROGRAM@%$RESPROGRAM%g
18280s%@RESCOMP@%$RESCOMP%g
18281s%@RESFLAGS@%$RESFLAGS%g
18282s%@REZFLAGS@%$REZFLAGS%g
18283s%@DEREZFLAGS@%$DEREZFLAGS%g
18284s%@LIBWXMACRES@%$LIBWXMACRES%g
18285s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18286s%@DLLTOOL@%$DLLTOOL%g
18287s%@AS@%$AS%g
18288s%@NM@%$NM%g
18289s%@LD@%$LD%g
18290s%@MAKEINFO@%$MAKEINFO%g
18291s%@SET_MAKE@%$SET_MAKE%g
18292s%@subdirs@%$subdirs%g
1e487827 18293
1e487827 18294CEOF
1e487827
VS
18295EOF
18296
698dcdb6
VZ
18297cat >> $CONFIG_STATUS <<\EOF
18298
18299# Split the substitutions into bite-sized pieces for seds with
18300# small command number limits, like on Digital OSF/1 and HP-UX.
18301ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18302ac_file=1 # Number of current file.
18303ac_beg=1 # First line for current file.
18304ac_end=$ac_max_sed_cmds # Line after last line for current file.
18305ac_more_lines=:
18306ac_sed_cmds=""
18307while $ac_more_lines; do
18308 if test $ac_beg -gt 1; then
18309 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18310 else
18311 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18312 fi
18313 if test ! -s conftest.s$ac_file; then
18314 ac_more_lines=false
18315 rm -f conftest.s$ac_file
18316 else
18317 if test -z "$ac_sed_cmds"; then
18318 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 18319 else
698dcdb6 18320 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 18321 fi
698dcdb6
VZ
18322 ac_file=`expr $ac_file + 1`
18323 ac_beg=$ac_end
18324 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 18325 fi
698dcdb6
VZ
18326done
18327if test -z "$ac_sed_cmds"; then
18328 ac_sed_cmds=cat
18329fi
18330EOF
10f2d63a 18331
698dcdb6
VZ
18332cat >> $CONFIG_STATUS <<EOF
18333
18334CONFIG_FILES=\${CONFIG_FILES-"wx-config
18335 src/make.env
18336 src/makeprog.env
18337 src/makelib.env
18338 Makefile
18339 "}
10f2d63a 18340EOF
698dcdb6
VZ
18341cat >> $CONFIG_STATUS <<\EOF
18342for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 18343 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
18344 case "$ac_file" in
18345 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18346 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18347 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
18348 esac
18349
698dcdb6 18350 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 18351
698dcdb6
VZ
18352 # Remove last slash and all that follows it. Not all systems have dirname.
18353 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18354 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18355 # The file is in a subdirectory.
18356 test ! -d "$ac_dir" && mkdir "$ac_dir"
18357 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 18358 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 18359 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
18360 else
18361 ac_dir_suffix= ac_dots=
18362 fi
18363
698dcdb6
VZ
18364 case "$ac_given_srcdir" in
18365 .) srcdir=.
18366 if test -z "$ac_dots"; then top_srcdir=.
18367 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18368 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 18369 *) # Relative path.
698dcdb6
VZ
18370 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18371 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
18372 esac
18373
698dcdb6
VZ
18374 case "$ac_given_INSTALL" in
18375 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18376 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
18377 esac
18378
698dcdb6
VZ
18379 echo creating "$ac_file"
18380 rm -f "$ac_file"
18381 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18382 case "$ac_file" in
18383 *Makefile*) ac_comsub="1i\\
18384# $configure_input" ;;
18385 *) ac_comsub= ;;
18386 esac
10f2d63a 18387
698dcdb6
VZ
18388 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18389 sed -e "$ac_comsub
18390s%@configure_input@%$configure_input%g
18391s%@srcdir@%$srcdir%g
18392s%@top_srcdir@%$top_srcdir%g
18393s%@INSTALL@%$INSTALL%g
18394" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18395fi; done
18396rm -f conftest.s*
10f2d63a
VZ
18397
18398# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18399# NAME is the cpp macro being defined and VALUE is the value it is being given.
18400#
18401# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
18402ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18403ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18404ac_dC='\3'
18405ac_dD='%g'
18406# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18407ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18408ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 18409ac_uC=' '
698dcdb6
VZ
18410ac_uD='\4%g'
18411# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18412ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18413ac_eB='$%\1#\2define\3'
18414ac_eC=' '
18415ac_eD='%g'
10f2d63a 18416
698dcdb6
VZ
18417if test "${CONFIG_HEADERS+set}" != set; then
18418EOF
18419cat >> $CONFIG_STATUS <<EOF
18420 CONFIG_HEADERS="setup.h:setup.h.in"
18421EOF
18422cat >> $CONFIG_STATUS <<\EOF
18423fi
18424for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 18425 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
18426 case "$ac_file" in
18427 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18428 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18429 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
18430 esac
18431
698dcdb6
VZ
18432 echo creating $ac_file
18433
18434 rm -f conftest.frag conftest.in conftest.out
18435 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18436 cat $ac_file_inputs > conftest.in
18437
18438EOF
18439
18440# Transform confdefs.h into a sed script conftest.vals that substitutes
18441# the proper values into config.h.in to produce config.h. And first:
18442# Protect against being on the right side of a sed subst in config.status.
18443# Protect against being in an unquoted here document in config.status.
18444rm -f conftest.vals
18445cat > conftest.hdr <<\EOF
18446s/[\\&%]/\\&/g
18447s%[\\$`]%\\&%g
18448s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18449s%ac_d%ac_u%gp
18450s%ac_u%ac_e%gp
18451EOF
18452sed -n -f conftest.hdr confdefs.h > conftest.vals
18453rm -f conftest.hdr
10f2d63a
VZ
18454
18455# This sed command replaces #undef with comments. This is necessary, for
18456# example, in the case of _POSIX_SOURCE, which is predefined and required
18457# on some systems where configure will not decide to define it.
698dcdb6
VZ
18458cat >> conftest.vals <<\EOF
18459s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
18460EOF
18461
698dcdb6
VZ
18462# Break up conftest.vals because some shells have a limit on
18463# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
18464
18465rm -f conftest.tail
698dcdb6 18466while :
10f2d63a 18467do
698dcdb6
VZ
18468 ac_lines=`grep -c . conftest.vals`
18469 # grep -c gives empty output for an empty file on some AIX systems.
18470 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18471 # Write a limited-size here document to conftest.frag.
18472 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18473 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 18474 echo 'CEOF
698dcdb6
VZ
18475 sed -f conftest.frag conftest.in > conftest.out
18476 rm -f conftest.in
18477 mv conftest.out conftest.in
18478' >> $CONFIG_STATUS
18479 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18480 rm -f conftest.vals
18481 mv conftest.tail conftest.vals
10f2d63a 18482done
698dcdb6
VZ
18483rm -f conftest.vals
18484
18485cat >> $CONFIG_STATUS <<\EOF
18486 rm -f conftest.frag conftest.h
18487 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18488 cat conftest.in >> conftest.h
18489 rm -f conftest.in
18490 if cmp -s $ac_file conftest.h 2>/dev/null; then
18491 echo "$ac_file is unchanged"
18492 rm -f conftest.h
10f2d63a 18493 else
698dcdb6
VZ
18494 # Remove last slash and all that follows it. Not all systems have dirname.
18495 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 18496 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
18497 # The file is in a subdirectory.
18498 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 18499 fi
698dcdb6
VZ
18500 rm -f $ac_file
18501 mv conftest.h $ac_file
10f2d63a 18502 fi
698dcdb6
VZ
18503fi; done
18504
10f2d63a 18505EOF
698dcdb6 18506cat >> $CONFIG_STATUS <<EOF
10f2d63a 18507
1e6feb95 18508 SETUPH_DIR="${SETUPH_DIR}"
698dcdb6
VZ
18509 TOOLKIT_NAME="${TOOLKIT_NAME}"
18510 LN_S="${LN_S}"
18511
18512
18513EOF
18514cat >> $CONFIG_STATUS <<\EOF
10f2d63a 18515
6ef41520 18516 if test ! -f wx${TOOLKIT_NAME}-config; then
991a5759
VZ
18517 chmod +x wx-config
18518 mv wx-config wx${TOOLKIT_NAME}-config
18519 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
18520 fi
665bbe97 18521
698dcdb6 18522
00cf1208
RR
18523 if test ! -d lib; then
18524 mkdir lib
18525 fi
18526 if test ! -d lib/wx; then
18527 mkdir lib/wx
18528 fi
18529 if test ! -d lib/wx/include; then
18530 mkdir lib/wx/include
18531 fi
18532 if test ! -d lib/wx/include/wx; then
18533 mkdir lib/wx/include/wx
18534 fi
f6bcfd97
BP
18535 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
18536 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
00cf1208
RR
18537 fi
18538 if test -f setup.h; then
066b00aa 18539 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
00cf1208 18540 fi
07eb77a6 18541
698dcdb6 18542
10f2d63a
VZ
18543 if test ! -d include; then
18544 mkdir include
18545 fi
18546 if test ! -d include/wx; then
18547 mkdir include/wx
18548 fi
1e6feb95
VZ
18549 if test ! -d include/wx/${SETUPH_DIR}; then
18550 mkdir include/wx/${SETUPH_DIR}
10f2d63a 18551 fi
afc31813 18552 if test -f setup.h; then
1e6feb95 18553 cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h
afc31813 18554 fi
665bbe97 18555
698dcdb6
VZ
18556
18557exit 0
10f2d63a
VZ
18558EOF
18559chmod +x $CONFIG_STATUS
698dcdb6
VZ
18560rm -fr confdefs* $ac_clean_files
18561test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 18562
2224580a
VZ
18563if test "$no_recursion" != yes; then
18564
18565 # Remove --cache-file and --srcdir arguments so they do not pile up.
18566 ac_sub_configure_args=
18567 ac_prev=
18568 for ac_arg in $ac_configure_args; do
18569 if test -n "$ac_prev"; then
18570 ac_prev=
18571 continue
18572 fi
698dcdb6 18573 case "$ac_arg" in
2224580a
VZ
18574 -cache-file | --cache-file | --cache-fil | --cache-fi \
18575 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18576 ac_prev=cache_file ;;
18577 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 18578 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
18579 ;;
18580 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18581 ac_prev=srcdir ;;
18582 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18583 ;;
18584 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18585 esac
18586 done
18587
698dcdb6 18588 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
18589
18590 # Do not complain, so a configure script can configure whichever
18591 # parts of a large source tree are present.
698dcdb6
VZ
18592 if test ! -d $srcdir/$ac_config_dir; then
18593 continue
18594 fi
18595
18596 echo configuring in $ac_config_dir
2224580a 18597
698dcdb6 18598 case "$srcdir" in
2224580a
VZ
18599 .) ;;
18600 *)
698dcdb6
VZ
18601 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18602 else
18603 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18604 fi
18605 ;;
2224580a
VZ
18606 esac
18607
18608 ac_popdir=`pwd`
698dcdb6 18609 cd $ac_config_dir
2224580a 18610
698dcdb6
VZ
18611 # A "../" for each directory in /$ac_config_dir.
18612 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 18613
698dcdb6 18614 case "$srcdir" in
2224580a
VZ
18615 .) # No --srcdir option. We are building in place.
18616 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
18617 /*) # Absolute path.
18618 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 18619 *) # Relative path.
698dcdb6 18620 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
18621 esac
18622
18623 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
18624 if test -f $ac_sub_srcdir/configure; then
18625 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
18626 elif test -f $ac_sub_srcdir/configure.in; then
18627 ac_sub_configure=$ac_configure
18628 else
698dcdb6 18629 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
18630 ac_sub_configure=
18631 fi
18632
18633 # The recursion is here.
18634 if test -n "$ac_sub_configure"; then
698dcdb6 18635
2224580a 18636 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
18637 case "$cache_file" in
18638 /*) ac_sub_cache_file=$cache_file ;;
2224580a 18639 *) # Relative path.
698dcdb6 18640 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 18641 esac
698dcdb6
VZ
18642 case "$ac_given_INSTALL" in
18643 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18644 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18645 esac
2224580a 18646
698dcdb6 18647 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 18648 # The eval makes quoting arguments work.
698dcdb6
VZ
18649 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
18650 then :
18651 else
18652 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
18653 fi
2224580a
VZ
18654 fi
18655
18656 cd $ac_popdir
18657 done
18658fi
18659
698dcdb6 18660