]> git.saurik.com Git - wxWidgets.git/blame - configure
Where's GL? Hopefully wx-config will now tell us if we need to know.
[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
77e13408 71 --with-msw use MS-Windows"
698dcdb6
VZ
72ac_help="$ac_help
73 --with-pm use OS/2 Presentation Manager"
1e6feb95 74ac_help="$ac_help
b3e8d00a 75 --with-mgl use SciTech MGL"
698dcdb6 76ac_help="$ac_help
8168de4c 77 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
698dcdb6 78ac_help="$ac_help
8168de4c 79 --with-libpng use libpng (PNG image format)"
698dcdb6 80ac_help="$ac_help
8168de4c 81 --with-libjpeg use libjpeg (JPEG file format)"
698dcdb6 82ac_help="$ac_help
8168de4c 83 --with-libtiff use libtiff (TIFF file format)"
698dcdb6 84ac_help="$ac_help
8168de4c 85 --with-freetype use freetype (font rasterizer)"
698dcdb6 86ac_help="$ac_help
8168de4c 87 --with-opengl use OpenGL (or Mesa)"
698dcdb6 88ac_help="$ac_help
8168de4c 89 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
3e44f09d
VZ
90ac_help="$ac_help
91 --with-regex enable support for wxRegEx class"
698dcdb6 92ac_help="$ac_help
8168de4c 93 --with-zlib use zlib for LZW compression"
698dcdb6 94ac_help="$ac_help
8168de4c 95 --with-odbc use the IODBC and wxODBC classes"
698dcdb6 96ac_help="$ac_help
8168de4c 97 --enable-shared create shared library code"
698dcdb6 98ac_help="$ac_help
3a922bb4 99 --enable-soname set the DT_SONAME field in ELF shared libraries"
698dcdb6 100ac_help="$ac_help
8168de4c 101 --enable-optimise create optimised code"
698dcdb6 102ac_help="$ac_help
8168de4c 103 --enable-debug same as debug_flag and debug_info"
683dccda
GD
104ac_help="$ac_help
105 --enable-precomp enable use of precompiled headers (Mac OS X)"
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
b3e8d00a 121 --enable-no_exceptions create code without C++ exceptions handling"
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 126ac_help="$ac_help
b3e8d00a 127 --enable-compat20 enable wxWindows 2.0 compatibility"
54276ccf 128ac_help="$ac_help
b3e8d00a 129 --enable-compat22 enable wxWindows 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
a3a584a7
VZ
171 --enable-textbuf use wxTextBuffer class"
172ac_help="$ac_help
173 --enable-textfile use wxTextFile class"
698dcdb6 174ac_help="$ac_help
8168de4c 175 --enable-fontmap use font encodings conversion classes"
1e6feb95 176ac_help="$ac_help
8168de4c 177 --enable-unicode compile wxString with Unicode support"
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 196ac_help="$ac_help
b3e8d00a 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
b3e8d00a 317 --enable-commondlg use all common dialogs"
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"
cbca9943
VZ
334ac_help="$ac_help
335 --enable-splash use wxSplashScreen"
1e6feb95 336ac_help="$ac_help
8168de4c 337 --enable-textdlg use wxTextDialog"
698dcdb6 338ac_help="$ac_help
8168de4c 339 --enable-tipdlg use startup tips"
698dcdb6 340ac_help="$ac_help
8168de4c 341 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
342ac_help="$ac_help
343 --enable-wizarddlg use wxWizard"
698dcdb6 344ac_help="$ac_help
8168de4c 345 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 346ac_help="$ac_help
8168de4c 347 --enable-miniframe use wxMiniFrame class"
698dcdb6 348ac_help="$ac_help
8168de4c 349 --enable-tooltips use wxToolTip class"
698dcdb6 350ac_help="$ac_help
8168de4c 351 --enable-splines use spline drawing code"
698dcdb6 352ac_help="$ac_help
8168de4c 353 --enable-validators use wxValidator and derived classes"
698dcdb6 354ac_help="$ac_help
8168de4c 355 --enable-busyinfo use wxBusyInfo"
698dcdb6 356ac_help="$ac_help
b3e8d00a 357 --enable-joystick use wxJoystick (Linux only)"
698dcdb6 358ac_help="$ac_help
8168de4c 359 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
360ac_help="$ac_help
361 --enable-dragimage use wxDragImage"
edae8572
VZ
362ac_help="$ac_help
363 --enable-palette use wxPalette class"
1e6feb95 364ac_help="$ac_help
8168de4c 365 --enable-image use wxImage class"
698dcdb6 366ac_help="$ac_help
8168de4c 367 --enable-gif use gif images (GIF file format)"
698dcdb6 368ac_help="$ac_help
8168de4c 369 --enable-pcx use pcx images (PCX file format)"
698dcdb6 370ac_help="$ac_help
8168de4c 371 --enable-pnm use pnm images (PNM file format)"
698dcdb6 372ac_help="$ac_help
8168de4c 373 --enable-xpm use xpm images (XPM file format)"
698dcdb6
VZ
374ac_help="$ac_help
375 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
376ac_help="$ac_help
377 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
378ac_help="$ac_help
379 --disable-gtktest Do not try to compile and run a test GTK program"
380ac_help="$ac_help
381 --with-x use the X Window System"
10f2d63a
VZ
382
383# Initialize some variables set by options.
384# The variables have the same names as the options, with
385# dashes changed to underlines.
698dcdb6
VZ
386build=NONE
387cache_file=./config.cache
10f2d63a 388exec_prefix=NONE
698dcdb6 389host=NONE
10f2d63a 390no_create=
698dcdb6 391nonopt=NONE
10f2d63a
VZ
392no_recursion=
393prefix=NONE
394program_prefix=NONE
395program_suffix=NONE
396program_transform_name=s,x,x,
397silent=
398site=
399srcdir=
698dcdb6 400target=NONE
10f2d63a
VZ
401verbose=
402x_includes=NONE
403x_libraries=NONE
404bindir='${exec_prefix}/bin'
405sbindir='${exec_prefix}/sbin'
406libexecdir='${exec_prefix}/libexec'
407datadir='${prefix}/share'
408sysconfdir='${prefix}/etc'
409sharedstatedir='${prefix}/com'
410localstatedir='${prefix}/var'
411libdir='${exec_prefix}/lib'
412includedir='${prefix}/include'
413oldincludedir='/usr/include'
414infodir='${prefix}/info'
415mandir='${prefix}/man'
416
698dcdb6
VZ
417# Initialize some other variables.
418subdirs=
419MFLAGS= MAKEFLAGS=
420SHELL=${CONFIG_SHELL-/bin/sh}
421# Maximum number of lines to put in a shell here document.
422ac_max_here_lines=12
10f2d63a
VZ
423
424ac_prev=
425for ac_option
426do
698dcdb6 427
10f2d63a
VZ
428 # If the previous option needs an argument, assign it.
429 if test -n "$ac_prev"; then
430 eval "$ac_prev=\$ac_option"
431 ac_prev=
432 continue
433 fi
434
698dcdb6
VZ
435 case "$ac_option" in
436 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
437 *) ac_optarg= ;;
438 esac
10f2d63a
VZ
439
440 # Accept the important Cygnus configure options, so we can diagnose typos.
441
698dcdb6 442 case "$ac_option" in
10f2d63a
VZ
443
444 -bindir | --bindir | --bindi | --bind | --bin | --bi)
445 ac_prev=bindir ;;
446 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 447 bindir="$ac_optarg" ;;
10f2d63a
VZ
448
449 -build | --build | --buil | --bui | --bu)
698dcdb6 450 ac_prev=build ;;
10f2d63a 451 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 452 build="$ac_optarg" ;;
10f2d63a
VZ
453
454 -cache-file | --cache-file | --cache-fil | --cache-fi \
455 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
456 ac_prev=cache_file ;;
457 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
458 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 459 cache_file="$ac_optarg" ;;
10f2d63a
VZ
460
461 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
462 ac_prev=datadir ;;
463 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
464 | --da=*)
698dcdb6 465 datadir="$ac_optarg" ;;
10f2d63a
VZ
466
467 -disable-* | --disable-*)
698dcdb6 468 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 469 # Reject names that are not valid shell variable names.
698dcdb6
VZ
470 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
471 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
472 fi
473 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
474 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
475
476 -enable-* | --enable-*)
698dcdb6 477 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 478 # Reject names that are not valid shell variable names.
698dcdb6
VZ
479 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
480 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
481 fi
482 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
483 case "$ac_option" in
484 *=*) ;;
10f2d63a
VZ
485 *) ac_optarg=yes ;;
486 esac
698dcdb6 487 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
488
489 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
490 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
491 | --exec | --exe | --ex)
492 ac_prev=exec_prefix ;;
493 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
494 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
495 | --exec=* | --exe=* | --ex=*)
698dcdb6 496 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
497
498 -gas | --gas | --ga | --g)
499 # Obsolete; use --with-gas.
500 with_gas=yes ;;
501
698dcdb6
VZ
502 -help | --help | --hel | --he)
503 # Omit some internal or obsolete options to make the list less imposing.
504 # This message is too long to be a string in the A/UX 3.1 sh.
505 cat << EOF
506Usage: configure [options] [host]
507Options: [defaults in brackets after descriptions]
508Configuration:
509 --cache-file=FILE cache test results in FILE
510 --help print this message
511 --no-create do not create output files
512 --quiet, --silent do not print \`checking...' messages
513 --version print the version of autoconf that created configure
514Directory and file names:
515 --prefix=PREFIX install architecture-independent files in PREFIX
516 [$ac_default_prefix]
517 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
518 [same as prefix]
519 --bindir=DIR user executables in DIR [EPREFIX/bin]
520 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
521 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
522 --datadir=DIR read-only architecture-independent data in DIR
523 [PREFIX/share]
524 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
525 --sharedstatedir=DIR modifiable architecture-independent data in DIR
526 [PREFIX/com]
527 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
528 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
529 --includedir=DIR C header files in DIR [PREFIX/include]
530 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
531 --infodir=DIR info documentation in DIR [PREFIX/info]
532 --mandir=DIR man documentation in DIR [PREFIX/man]
533 --srcdir=DIR find the sources in DIR [configure dir or ..]
534 --program-prefix=PREFIX prepend PREFIX to installed program names
535 --program-suffix=SUFFIX append SUFFIX to installed program names
536 --program-transform-name=PROGRAM
537 run sed PROGRAM on installed program names
538EOF
539 cat << EOF
540Host type:
541 --build=BUILD configure for building on BUILD [BUILD=HOST]
542 --host=HOST configure for HOST [guessed]
543 --target=TARGET configure for TARGET [TARGET=HOST]
544Features and packages:
545 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
546 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
547 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
548 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
549 --x-includes=DIR X include files are in DIR
550 --x-libraries=DIR X library files are in DIR
551EOF
552 if test -n "$ac_help"; then
553 echo "--enable and --with options recognized:$ac_help"
554 fi
555 exit 0 ;;
10f2d63a
VZ
556
557 -host | --host | --hos | --ho)
698dcdb6 558 ac_prev=host ;;
10f2d63a 559 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 560 host="$ac_optarg" ;;
10f2d63a
VZ
561
562 -includedir | --includedir | --includedi | --included | --include \
563 | --includ | --inclu | --incl | --inc)
564 ac_prev=includedir ;;
565 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
566 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 567 includedir="$ac_optarg" ;;
10f2d63a
VZ
568
569 -infodir | --infodir | --infodi | --infod | --info | --inf)
570 ac_prev=infodir ;;
571 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 572 infodir="$ac_optarg" ;;
10f2d63a
VZ
573
574 -libdir | --libdir | --libdi | --libd)
575 ac_prev=libdir ;;
576 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 577 libdir="$ac_optarg" ;;
10f2d63a
VZ
578
579 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
580 | --libexe | --libex | --libe)
581 ac_prev=libexecdir ;;
582 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
583 | --libexe=* | --libex=* | --libe=*)
698dcdb6 584 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
585
586 -localstatedir | --localstatedir | --localstatedi | --localstated \
587 | --localstate | --localstat | --localsta | --localst \
588 | --locals | --local | --loca | --loc | --lo)
589 ac_prev=localstatedir ;;
590 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
591 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
592 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 593 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
594
595 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
596 ac_prev=mandir ;;
597 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 598 mandir="$ac_optarg" ;;
10f2d63a
VZ
599
600 -nfp | --nfp | --nf)
601 # Obsolete; use --without-fp.
602 with_fp=no ;;
603
604 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
605 | --no-cr | --no-c)
606 no_create=yes ;;
607
608 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
609 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
610 no_recursion=yes ;;
611
612 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
613 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
614 | --oldin | --oldi | --old | --ol | --o)
615 ac_prev=oldincludedir ;;
616 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
617 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
618 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 619 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
620
621 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
622 ac_prev=prefix ;;
623 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 624 prefix="$ac_optarg" ;;
10f2d63a
VZ
625
626 -program-prefix | --program-prefix | --program-prefi | --program-pref \
627 | --program-pre | --program-pr | --program-p)
628 ac_prev=program_prefix ;;
629 -program-prefix=* | --program-prefix=* | --program-prefi=* \
630 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 631 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
632
633 -program-suffix | --program-suffix | --program-suffi | --program-suff \
634 | --program-suf | --program-su | --program-s)
635 ac_prev=program_suffix ;;
636 -program-suffix=* | --program-suffix=* | --program-suffi=* \
637 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 638 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
639
640 -program-transform-name | --program-transform-name \
641 | --program-transform-nam | --program-transform-na \
642 | --program-transform-n | --program-transform- \
643 | --program-transform | --program-transfor \
644 | --program-transfo | --program-transf \
645 | --program-trans | --program-tran \
646 | --progr-tra | --program-tr | --program-t)
647 ac_prev=program_transform_name ;;
648 -program-transform-name=* | --program-transform-name=* \
649 | --program-transform-nam=* | --program-transform-na=* \
650 | --program-transform-n=* | --program-transform-=* \
651 | --program-transform=* | --program-transfor=* \
652 | --program-transfo=* | --program-transf=* \
653 | --program-trans=* | --program-tran=* \
654 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 655 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
656
657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
658 | -silent | --silent | --silen | --sile | --sil)
659 silent=yes ;;
660
661 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
662 ac_prev=sbindir ;;
663 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
664 | --sbi=* | --sb=*)
698dcdb6 665 sbindir="$ac_optarg" ;;
10f2d63a
VZ
666
667 -sharedstatedir | --sharedstatedir | --sharedstatedi \
668 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
669 | --sharedst | --shareds | --shared | --share | --shar \
670 | --sha | --sh)
671 ac_prev=sharedstatedir ;;
672 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
673 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
674 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
675 | --sha=* | --sh=*)
698dcdb6 676 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
677
678 -site | --site | --sit)
679 ac_prev=site ;;
680 -site=* | --site=* | --sit=*)
698dcdb6 681 site="$ac_optarg" ;;
10f2d63a
VZ
682
683 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
684 ac_prev=srcdir ;;
685 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 686 srcdir="$ac_optarg" ;;
10f2d63a
VZ
687
688 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
689 | --syscon | --sysco | --sysc | --sys | --sy)
690 ac_prev=sysconfdir ;;
691 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
692 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 693 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
694
695 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 696 ac_prev=target ;;
10f2d63a 697 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 698 target="$ac_optarg" ;;
10f2d63a
VZ
699
700 -v | -verbose | --verbose | --verbos | --verbo | --verb)
701 verbose=yes ;;
702
698dcdb6
VZ
703 -version | --version | --versio | --versi | --vers)
704 echo "configure generated by autoconf version 2.13"
705 exit 0 ;;
10f2d63a
VZ
706
707 -with-* | --with-*)
698dcdb6 708 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 709 # Reject names that are not valid shell variable names.
698dcdb6
VZ
710 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
711 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
712 fi
10f2d63a 713 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
714 case "$ac_option" in
715 *=*) ;;
10f2d63a
VZ
716 *) ac_optarg=yes ;;
717 esac
698dcdb6 718 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
719
720 -without-* | --without-*)
698dcdb6 721 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 722 # Reject names that are not valid shell variable names.
698dcdb6
VZ
723 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
724 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
725 fi
726 ac_package=`echo $ac_package| sed 's/-/_/g'`
727 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
728
729 --x)
730 # Obsolete; use --with-x.
731 with_x=yes ;;
732
733 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
734 | --x-incl | --x-inc | --x-in | --x-i)
735 ac_prev=x_includes ;;
736 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
737 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 738 x_includes="$ac_optarg" ;;
10f2d63a
VZ
739
740 -x-libraries | --x-libraries | --x-librarie | --x-librari \
741 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
742 ac_prev=x_libraries ;;
743 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
744 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 745 x_libraries="$ac_optarg" ;;
10f2d63a 746
698dcdb6 747 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
748 ;;
749
750 *)
698dcdb6
VZ
751 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
752 echo "configure: warning: $ac_option: invalid host type" 1>&2
753 fi
754 if test "x$nonopt" != xNONE; then
755 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
756 fi
757 nonopt="$ac_option"
10f2d63a
VZ
758 ;;
759
760 esac
761done
762
763if test -n "$ac_prev"; then
698dcdb6
VZ
764 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
765fi
766
767trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
768
769# File descriptor usage:
770# 0 standard input
771# 1 file creation
772# 2 errors and warnings
773# 3 some systems may open it to /dev/tty
774# 4 used on the Kubota Titan
775# 6 checking for... messages and results
776# 5 compiler messages saved in config.log
777if test "$silent" = yes; then
778 exec 6>/dev/null
779else
780 exec 6>&1
10f2d63a 781fi
698dcdb6
VZ
782exec 5>./config.log
783
784echo "\
785This file contains any messages produced by compilers while
786running configure, to aid debugging if configure makes a mistake.
787" 1>&5
10f2d63a 788
698dcdb6
VZ
789# Strip out --no-create and --no-recursion so they do not pile up.
790# Also quote any args containing shell metacharacters.
791ac_configure_args=
792for ac_arg
10f2d63a 793do
698dcdb6
VZ
794 case "$ac_arg" in
795 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
796 | --no-cr | --no-c) ;;
797 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
798 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
799 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
800 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
801 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
802 esac
803done
804
698dcdb6
VZ
805# NLS nuisances.
806# Only set these to C if already set. These must not be set unconditionally
807# because not all systems understand e.g. LANG=C (notably SCO).
808# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
809# Non-C LC_CTYPE values break the ctype check.
810if test "${LANG+set}" = set; then LANG=C; export LANG; fi
811if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
812if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
813if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 814
698dcdb6
VZ
815# confdefs.h avoids OS command line length limits that DEFS can exceed.
816rm -rf conftest* confdefs.h
817# AIX cpp loses on an empty file, so make sure it contains at least a newline.
818echo > confdefs.h
10f2d63a 819
698dcdb6
VZ
820# A filename unique to this package, relative to the directory that
821# configure is in, which we can look for to find out if srcdir is correct.
822ac_unique_file=wx-config.in
10f2d63a
VZ
823
824# Find the source files, if location was not specified.
825if test -z "$srcdir"; then
826 ac_srcdir_defaulted=yes
827 # Try the directory containing this script, then its parent.
828 ac_prog=$0
698dcdb6 829 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
830 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
831 srcdir=$ac_confdir
832 if test ! -r $srcdir/$ac_unique_file; then
833 srcdir=..
834 fi
835else
836 ac_srcdir_defaulted=no
837fi
838if test ! -r $srcdir/$ac_unique_file; then
839 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 840 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 841 else
698dcdb6 842 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
843 fi
844fi
698dcdb6 845srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
846
847# Prefer explicitly selected file to automatically selected ones.
848if test -z "$CONFIG_SITE"; then
849 if test "x$prefix" != xNONE; then
850 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
851 else
852 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
853 fi
854fi
855for ac_site_file in $CONFIG_SITE; do
856 if test -r "$ac_site_file"; then
698dcdb6 857 echo "loading site script $ac_site_file"
10f2d63a
VZ
858 . "$ac_site_file"
859 fi
860done
861
862if test -r "$cache_file"; then
698dcdb6
VZ
863 echo "loading cache $cache_file"
864 . $cache_file
10f2d63a 865else
698dcdb6
VZ
866 echo "creating cache $cache_file"
867 > $cache_file
10f2d63a
VZ
868fi
869
870ac_ext=c
698dcdb6 871# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 872ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
873ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
874ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
875cross_compiling=$ac_cv_prog_cc_cross
876
877ac_exeext=
878ac_objext=o
879if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
880 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
881 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
882 ac_n= ac_c='
883' ac_t=' '
884 else
885 ac_n=-n ac_c= ac_t=
886 fi
10f2d63a 887else
698dcdb6 888 ac_n= ac_c='\c' ac_t=
10f2d63a 889fi
698dcdb6
VZ
890
891
10f2d63a 892
7c66a493
VZ
893ac_aux_dir=
894for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
895 if 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 elif test -f $ac_dir/install.sh; then
900 ac_aux_dir=$ac_dir
901 ac_install_sh="$ac_aux_dir/install.sh -c"
902 break
903 fi
904done
905if test -z "$ac_aux_dir"; then
698dcdb6 906 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 907fi
698dcdb6
VZ
908ac_config_guess=$ac_aux_dir/config.guess
909ac_config_sub=$ac_aux_dir/config.sub
910ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 911
698dcdb6
VZ
912
913# Do some error checking and defaulting for the host and target type.
914# The inputs are:
915# configure --host=HOST --target=TARGET --build=BUILD NONOPT
916#
917# The rules are:
918# 1. You are not allowed to specify --host, --target, and nonopt at the
919# same time.
920# 2. Host defaults to nonopt.
921# 3. If nonopt is not specified, then host defaults to the current host,
922# as determined by config.guess.
923# 4. Target and build default to nonopt.
924# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
925
926# The aliases save the names the user supplied, while $host etc.
927# will get canonicalized.
698dcdb6
VZ
928case $host---$target---$nonopt in
929NONE---*---* | *---NONE---* | *---*---NONE) ;;
930*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
931esac
932
933
934# Make sure we can run config.sub.
935if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
936else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
937fi
938
939echo $ac_n "checking host system type""... $ac_c" 1>&6
a3a584a7 940echo "configure:941: checking host system type" >&5
698dcdb6
VZ
941
942host_alias=$host
943case "$host_alias" in
944NONE)
945 case $nonopt in
946 NONE)
947 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
948 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
949 fi ;;
950 *) host_alias=$nonopt ;;
951 esac ;;
952esac
953
954host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
955host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
956host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
957host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
958echo "$ac_t""$host" 1>&6
959
960echo $ac_n "checking target system type""... $ac_c" 1>&6
a3a584a7 961echo "configure:962: checking target system type" >&5
698dcdb6
VZ
962
963target_alias=$target
964case "$target_alias" in
965NONE)
966 case $nonopt in
967 NONE) target_alias=$host_alias ;;
968 *) target_alias=$nonopt ;;
969 esac ;;
970esac
971
972target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
973target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
974target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
975target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
976echo "$ac_t""$target" 1>&6
977
978echo $ac_n "checking build system type""... $ac_c" 1>&6
a3a584a7 979echo "configure:980: checking build system type" >&5
698dcdb6
VZ
980
981build_alias=$build
982case "$build_alias" in
983NONE)
984 case $nonopt in
985 NONE) build_alias=$host_alias ;;
986 *) build_alias=$nonopt ;;
987 esac ;;
988esac
989
990build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
991build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
992build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
993build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
994echo "$ac_t""$build" 1>&6
995
996test "$host_alias" != "$target_alias" &&
7c66a493
VZ
997 test "$program_prefix$program_suffix$program_transform_name" = \
998 NONENONEs,x,x, &&
999 program_prefix=${target_alias}-
1000
698dcdb6
VZ
1001
1002
10f2d63a 1003WX_MAJOR_VERSION_NUMBER=2
37d403aa 1004WX_MINOR_VERSION_NUMBER=3
6c01ec02 1005WX_RELEASE_NUMBER=2
10f2d63a 1006
10f2d63a 1007WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1008WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1009
978f1259
RL
1010WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1011
6c01ec02 1012WX_CURRENT=1
6426998c
RL
1013WX_REVISION=0
1014WX_AGE=0
1015
698dcdb6
VZ
1016
1017
10f2d63a
VZ
1018USE_UNIX=1
1019USE_WIN32=0
b12915c1 1020USE_BEOS=0
1216f52d 1021USE_MAC=0
b12915c1 1022
10f2d63a
VZ
1023USE_LINUX=
1024USE_SGI=
1025USE_HPUX=
1026USE_SYSV=
1027USE_SVR4=
1028USE_AIX=
1029USE_SUN=
1030USE_SOLARIS=
1031USE_SUNOS=
1032USE_ALPHA=
7cf43d5e 1033USE_IA64=
10f2d63a
VZ
1034USE_OSF=
1035USE_BSD=
f11bdd03 1036USE_DARWIN=
10f2d63a 1037USE_FREEBSD=
95c8801c 1038USE_OPENBSD=
f6bcfd97 1039USE_NETBSD=
10f2d63a
VZ
1040USE_VMS=
1041USE_ULTRIX=
10f2d63a
VZ
1042USE_DATA_GENERAL=
1043
ab9b9eab
VZ
1044NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1045
77e13408 1046ALL_TOOLKITS="GTK MAC MGL MOTIF MSW PM WINE"
10f2d63a
VZ
1047
1048DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1049DEFAULT_wxUSE_MAC=0
1050DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1051DEFAULT_wxUSE_MOTIF=0
1052DEFAULT_wxUSE_MSW=0
e07802fc 1053DEFAULT_wxUSE_PM=0
1e6feb95 1054DEFAULT_wxUSE_WINE=0
10f2d63a
VZ
1055
1056DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1057DEFAULT_DEFAULT_wxUSE_MAC=0
1058DEFAULT_DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1059DEFAULT_DEFAULT_wxUSE_MOTIF=0
1060DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1061DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1062DEFAULT_DEFAULT_wxUSE_WINE=0
10f2d63a 1063
d6a55c4b 1064PROGRAM_EXT=
3a922bb4 1065SO_SUFFIX=so
d6a55c4b 1066
10f2d63a
VZ
1067case "${host}" in
1068 *-hp-hpux* )
1069 USE_HPUX=1
1070 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1071 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1072 SO_SUFFIX=sl
698dcdb6 1073 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1074#define __HPUX__ 1
1075EOF
1076
1077 ;;
1078 *-*-linux* )
1079 USE_LINUX=1
698dcdb6 1080 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1081#define __LINUX__ 1
1082EOF
1083
1084 TMP=`uname -m`
1085 if test "x$TMP" = "xalpha"; then
1086 USE_ALPHA=1
698dcdb6 1087 cat >> confdefs.h <<\EOF
10f2d63a 1088#define __ALPHA__ 1
7cf43d5e
RL
1089EOF
1090
1091 fi
1092 if test "x$TMP" = "xia64"; then
1093 USE_IA64=1
1094 cat >> confdefs.h <<\EOF
1095#define __IA64__ 1
10f2d63a
VZ
1096EOF
1097
1098 fi
1099 DEFAULT_DEFAULT_wxUSE_GTK=1
1100 ;;
1101 *-*-irix5* | *-*-irix6* )
1102 USE_SGI=1
1103 USE_SVR4=1
698dcdb6 1104 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1105#define __SGI__ 1
1106EOF
1107
698dcdb6 1108 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1109#define __SVR4__ 1
1110EOF
1111
1112 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1113 ;;
1114 *-*-solaris2* )
1115 USE_SUN=1
1116 USE_SOLARIS=1
1117 USE_SVR4=1
698dcdb6 1118 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1119#define __SUN__ 1
1120EOF
1121
698dcdb6 1122 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1123#define __SOLARIS__ 1
1124EOF
1125
698dcdb6 1126 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1127#define __SVR4__ 1
1128EOF
1129
1130 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1131 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1132 ;;
1133 *-*-sunos4* )
1134 USE_SUN=1
1135 USE_SUNOS=1
1136 USE_BSD=1
698dcdb6 1137 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1138#define __SUN__ 1
1139EOF
1140
698dcdb6 1141 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1142#define __SUNOS__ 1
1143EOF
1144
698dcdb6 1145 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1146#define __BSD__ 1
1147EOF
1148
1149 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1150 ;;
f6bcfd97 1151 *-*-freebsd*)
10f2d63a
VZ
1152 USE_BSD=1
1153 USE_FREEBSD=1
698dcdb6 1154 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1155#define __FREEBSD__ 1
1156EOF
1157
698dcdb6 1158 cat >> confdefs.h <<\EOF
10f2d63a 1159#define __BSD__ 1
95c8801c
VS
1160EOF
1161
1162 DEFAULT_DEFAULT_wxUSE_GTK=1
1163 ;;
1164 *-*-openbsd*)
1165 USE_BSD=1
1166 USE_OPENBSD=1
698dcdb6 1167 cat >> confdefs.h <<\EOF
95c8801c
VS
1168#define __FREEBSD__ 1
1169EOF
1170
698dcdb6 1171 cat >> confdefs.h <<\EOF
95c8801c 1172#define __OPENBSD__ 1
f6bcfd97
BP
1173EOF
1174
1175 DEFAULT_DEFAULT_wxUSE_GTK=1
1176 ;;
1177 *-*-netbsd*)
1178 USE_BSD=1
1179 USE_NETBSD=1
698dcdb6 1180 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1181#define __FREEBSD__ 1
1182EOF
1183
698dcdb6 1184 cat >> confdefs.h <<\EOF
f6bcfd97 1185#define __NETBSD__ 1
10f2d63a
VZ
1186EOF
1187
1188 DEFAULT_DEFAULT_wxUSE_GTK=1
1189 ;;
1190 *-*-osf* )
1191 USE_ALPHA=1
1192 USE_OSF=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 __OSF__ 1
1199EOF
1200
1201 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1202 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1203 ;;
1204 *-*-dgux5* )
1205 USE_ALPHA=1
1206 USE_SVR4=1
698dcdb6 1207 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1208#define __ALPHA__ 1
1209EOF
1210
698dcdb6 1211 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1212#define __SVR4__ 1
1213EOF
1214
1215 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1216 ;;
1217 *-*-sysv5* )
1218 USE_SYSV=1
1219 USE_SVR4=1
698dcdb6 1220 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1221#define __SYSV__ 1
1222EOF
1223
698dcdb6 1224 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1225#define __SVR4__ 1
1226EOF
1227
1228 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1229 ;;
1230 *-*-aix* )
1231 USE_AIX=1
1232 USE_SYSV=1
1233 USE_SVR4=1
698dcdb6 1234 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1235#define __AIX__ 1
1236EOF
1237
698dcdb6 1238 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1239#define __SYSV__ 1
1240EOF
1241
698dcdb6 1242 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1243#define __SVR4__ 1
1244EOF
1245
1246 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1247 ;;
1248
1c8183e2 1249 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1250 USE_UNIX=0
1251 USE_WIN32=1
3a922bb4 1252 SO_SUFFIX=dll
698dcdb6 1253 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1254#define __WIN32__ 1
1255EOF
1256
698dcdb6 1257 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1258#define __WIN95__ 1
1259EOF
1260
698dcdb6 1261 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1262#define __WINDOWS__ 1
1263EOF
1264
698dcdb6 1265 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1266#define __GNUWIN32__ 1
1267EOF
1268
698dcdb6 1269 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1270#define STRICT 1
1271EOF
1272
698dcdb6 1273 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1274#define WINVER 0x0400
1275EOF
1276
cf27ef00 1277 PROGRAM_EXT=".exe"
7b7a7637 1278 RESCOMP=windres
10f2d63a
VZ
1279 DEFAULT_DEFAULT_wxUSE_MSW=1
1280 ;;
1281
6fa882bd 1282 *-pc-os2_emx | *-pc-os2-emx )
698dcdb6 1283 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1284#define __EMX__ 1
1285EOF
1286
cf27ef00 1287 PROGRAM_EXT=".exe"
e07802fc 1288 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1289 ;;
1290
d08b457b
GD
1291 powerpc-*-darwin* )
1292 USE_BSD=1
f11bdd03 1293 USE_DARWIN=1
3a922bb4 1294 SO_SUFFIX=dylib
698dcdb6 1295 cat >> confdefs.h <<\EOF
f11bdd03 1296#define __BSD__ 1
b4085ce6
GD
1297EOF
1298
698dcdb6 1299 cat >> confdefs.h <<\EOF
f11bdd03 1300#define __DARWIN__ 1
d08b457b
GD
1301EOF
1302
1303 cat >> confdefs.h <<\EOF
1304#define __POWERPC__ 1
b4085ce6
GD
1305EOF
1306
1307 DEFAULT_DEFAULT_wxUSE_MAC=1
1308 ;;
1309
b12915c1
VZ
1310 *-*-beos* )
1311 USE_BEOS=1
698dcdb6 1312 cat >> confdefs.h <<\EOF
b12915c1
VZ
1313#define __BEOS__ 1
1314EOF
1315
1316 ;;
1317
10f2d63a 1318 *)
698dcdb6 1319 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1320esac
1321
1322if test "$USE_UNIX" = 1 ; then
b12915c1 1323 wxUSE_UNIX=yes
698dcdb6 1324 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1325#define __UNIX__ 1
1326EOF
1327
10f2d63a
VZ
1328fi
1329
2389f33b
VZ
1330if test "$USE_LINUX" = 1; then
1331 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
a3a584a7 1332echo "configure:1333: checking for glibc 2.1 or later" >&5
2389f33b
VZ
1333if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1335else
1336 cat > conftest.$ac_ext <<EOF
a3a584a7 1337#line 1338 "configure"
2389f33b
VZ
1338#include "confdefs.h"
1339#include <features.h>
1340int main() {
1341
1342 #if !__GLIBC_PREREQ(2, 1)
1343 #error not glibc2.1
1344 #endif
1345
1346; return 0; }
1347EOF
a3a584a7 1348if { (eval echo configure:1349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2389f33b
VZ
1349 rm -rf conftest*
1350
1351 wx_lib_glibc21=yes
1352
1353else
1354 echo "configure: failed program was:" >&5
1355 cat conftest.$ac_ext >&5
1356 rm -rf conftest*
1357
1358 wx_lib_glibc21=no
1359
1360
1361fi
1362rm -f conftest*
1363
1364fi
1365
1366echo "$ac_t""$wx_lib_glibc21" 1>&6
2389f33b
VZ
1367 if test "$wx_lib_glibc21" = "yes"; then
1368 cat >> confdefs.h <<\EOF
1369#define wxHAVE_GLIBC2 1
1370EOF
1371
1372 fi
1373fi
10f2d63a 1374
1e487827 1375
1e487827 1376
6232543b 1377
10f2d63a
VZ
1378 wx_arg_cache_file="configarg.cache"
1379 echo "loading argument cache $wx_arg_cache_file"
1380 rm -f ${wx_arg_cache_file}.tmp
1381 touch ${wx_arg_cache_file}.tmp
1382 touch ${wx_arg_cache_file}
698dcdb6 1383
10f2d63a
VZ
1384
1385DEBUG_CONFIGURE=0
1386if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1387 DEFAULT_wxUSE_UNIVERSAL=no
1388
10f2d63a
VZ
1389 DEFAULT_wxUSE_THREADS=yes
1390
1391 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1392 DEFAULT_wxUSE_SONAME=no
1e6feb95 1393 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1394 DEFAULT_wxUSE_PROFILE=no
1395 DEFAULT_wxUSE_NO_DEPS=no
f676c7ff
MB
1396 DEFAULT_wxUSE_NO_RTTI=yes
1397 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
10f2d63a
VZ
1398 DEFAULT_wxUSE_PERMISSIVE=no
1399 DEFAULT_wxUSE_DEBUG_FLAG=yes
1400 DEFAULT_wxUSE_DEBUG_INFO=yes
1401 DEFAULT_wxUSE_DEBUG_GDB=yes
1402 DEFAULT_wxUSE_MEM_TRACING=no
1403 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1404 DEFAULT_wxUSE_DMALLOC=no
683dccda 1405 DEFAULT_wxUSE_PRECOMP=yes
10f2d63a
VZ
1406 DEFAULT_wxUSE_APPLE_IEEE=no
1407
1408 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1409 DEFAULT_wxUSE_LOGWINDOW=no
1410 DEFAULT_wxUSE_LOGGUI=no
10f2d63a
VZ
1411
1412 DEFAULT_wxUSE_GUI=yes
1e6feb95 1413 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1414
3e44f09d 1415 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1416 DEFAULT_wxUSE_ZLIB=no
1417 DEFAULT_wxUSE_LIBPNG=no
1418 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1419 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1420 DEFAULT_wxUSE_ODBC=no
3fed1840 1421 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1422 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1423
eb4efbdc 1424 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1425 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1426 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1427 DEFAULT_wxUSE_CMDLINE_PARSER=no
1428 DEFAULT_wxUSE_DATETIME=no
1429 DEFAULT_wxUSE_TIMEDATE=no
1430 DEFAULT_wxUSE_TIMER=no
1431 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1432 DEFAULT_wxUSE_FILE=no
1e6feb95 1433 DEFAULT_wxUSE_FFILE=no
a3a584a7 1434 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1435 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1436 DEFAULT_wxUSE_WAVE=no
1437 DEFAULT_wxUSE_INTL=no
1438 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1439 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1440 DEFAULT_wxUSE_STREAMS=no
1441 DEFAULT_wxUSE_SOCKETS=no
1442 DEFAULT_wxUSE_DIALUP_MANAGER=no
1443 DEFAULT_wxUSE_SERIAL=no
1444 DEFAULT_wxUSE_JOYSTICK=no
1445 DEFAULT_wxUSE_DYNLIB_CLASS=no
1446 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1447 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1448
1449 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1450 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1451 DEFAULT_wxUSE_POSTSCRIPT=no
1452
1453 DEFAULT_wxUSE_X_RESOURCES=no
1454 DEFAULT_wxUSE_CLIPBOARD=no
1455 DEFAULT_wxUSE_TOOLTIPS=no
1456 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1457 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1458 DEFAULT_wxUSE_SPLINES=no
1459
1460 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1461 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1462 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1463
1464 DEFAULT_wxUSE_PROLOGIO=no
1465 DEFAULT_wxUSE_RESOURCES=no
1466 DEFAULT_wxUSE_CONSTRAINTS=no
1467 DEFAULT_wxUSE_IPC=no
1468 DEFAULT_wxUSE_HELP=no
29fd3c0c 1469 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1470 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1471 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1472 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1473 DEFAULT_wxUSE_MIMETYPE=no
3e44f09d 1474 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1475
1476 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1477 DEFAULT_wxUSE_CHOICEDLG=no
1478 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1479 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1480 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1481 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1482 DEFAULT_wxUSE_FONTDLG=no
1483 DEFAULT_wxUSE_MSGDLG=no
1484 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1485 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1486 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1487 DEFAULT_wxUSE_STARTUP_TIPS=no
1488 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1489 DEFAULT_wxUSE_WIZARDDLG=no
1490
1e6feb95 1491 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1492 DEFAULT_wxUSE_MINIFRAME=no
1493 DEFAULT_wxUSE_HTML=no
24528b0c 1494 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1495 DEFAULT_wxUSE_FS_INET=no
1496 DEFAULT_wxUSE_FS_ZIP=no
1497 DEFAULT_wxUSE_BUSYINFO=no
1498 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1499 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1500
1501 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1502 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1503 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1504 DEFAULT_wxUSE_CALCTRL=no
1505 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1506 DEFAULT_wxUSE_CHECKBOX=no
1507 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1508 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1509 DEFAULT_wxUSE_COMBOBOX=no
1510 DEFAULT_wxUSE_GAUGE=no
1511 DEFAULT_wxUSE_GRID=no
1512 DEFAULT_wxUSE_NEW_GRID=no
1513 DEFAULT_wxUSE_IMAGLIST=no
1514 DEFAULT_wxUSE_LISTBOX=no
1515 DEFAULT_wxUSE_LISTCTRL=no
1516 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1517 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1518 DEFAULT_wxUSE_RADIOBOX=no
1519 DEFAULT_wxUSE_RADIOBTN=no
1520 DEFAULT_wxUSE_SASH=no
1521 DEFAULT_wxUSE_SCROLLBAR=no
1522 DEFAULT_wxUSE_SLIDER=no
1523 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1524 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1525 DEFAULT_wxUSE_SPLITTER=no
1526 DEFAULT_wxUSE_STATBMP=no
1527 DEFAULT_wxUSE_STATBOX=no
1528 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1529 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1530 DEFAULT_wxUSE_STATUSBAR=yes
1531 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1532 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1533 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1534 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1535 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1536 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1537 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1538 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
1539
1540 DEFAULT_wxUSE_UNICODE=no
1541 DEFAULT_wxUSE_WCSRTOMBS=no
1542
edae8572 1543 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1544 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1545 DEFAULT_wxUSE_GIF=no
1546 DEFAULT_wxUSE_PCX=no
1547 DEFAULT_wxUSE_PNM=no
0046ff7c 1548 DEFAULT_wxUSE_XPM=no
10f2d63a 1549else
1e6feb95
VZ
1550 DEFAULT_wxUSE_UNIVERSAL=no
1551
10f2d63a
VZ
1552 DEFAULT_wxUSE_THREADS=yes
1553
1554 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1555 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1556 DEFAULT_wxUSE_OPTIMISE=yes
1557 DEFAULT_wxUSE_PROFILE=no
1558 DEFAULT_wxUSE_NO_DEPS=no
f676c7ff
MB
1559 DEFAULT_wxUSE_NO_RTTI=yes
1560 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
10f2d63a
VZ
1561 DEFAULT_wxUSE_PERMISSIVE=no
1562 DEFAULT_wxUSE_DEBUG_FLAG=no
1563 DEFAULT_wxUSE_DEBUG_INFO=no
1564 DEFAULT_wxUSE_DEBUG_GDB=no
1565 DEFAULT_wxUSE_MEM_TRACING=no
1566 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1567 DEFAULT_wxUSE_DMALLOC=no
683dccda 1568 DEFAULT_wxUSE_PRECOMP=yes
10f2d63a
VZ
1569 DEFAULT_wxUSE_APPLE_IEEE=yes
1570
1571 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1572 DEFAULT_wxUSE_LOGWINDOW=yes
1573 DEFAULT_wxUSE_LOGGUI=yes
10f2d63a
VZ
1574
1575 DEFAULT_wxUSE_GUI=yes
1576
831b3152 1577 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1578 DEFAULT_wxUSE_ZLIB=yes
1579 DEFAULT_wxUSE_LIBPNG=yes
1580 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1581 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1582 DEFAULT_wxUSE_ODBC=no
3fed1840 1583 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1584 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1585
eb4efbdc 1586 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1587 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1588 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1589 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1590 DEFAULT_wxUSE_DATETIME=yes
1591 DEFAULT_wxUSE_TIMEDATE=no
1592 DEFAULT_wxUSE_TIMER=yes
1593 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1594 DEFAULT_wxUSE_FILE=yes
1e6feb95 1595 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1596 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1597 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1598 DEFAULT_wxUSE_WAVE=no
1599 DEFAULT_wxUSE_INTL=yes
1600 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1601 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1602 DEFAULT_wxUSE_STREAMS=yes
1603 DEFAULT_wxUSE_SOCKETS=yes
1604 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1605 DEFAULT_wxUSE_SERIAL=yes
1606 DEFAULT_wxUSE_JOYSTICK=yes
1607 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1608 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1609 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1610
1611 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1612 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1613 DEFAULT_wxUSE_POSTSCRIPT=yes
1614
1615 DEFAULT_wxUSE_X_RESOURCES=no
1616 DEFAULT_wxUSE_CLIPBOARD=yes
1617 DEFAULT_wxUSE_TOOLTIPS=yes
1618 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1619 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1620 DEFAULT_wxUSE_SPLINES=yes
1621
1622 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1623 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1624 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1625
1626 DEFAULT_wxUSE_PROLOGIO=yes
1627 DEFAULT_wxUSE_RESOURCES=yes
1628 DEFAULT_wxUSE_CONSTRAINTS=yes
1629 DEFAULT_wxUSE_IPC=yes
1630 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1631 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1632 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1633 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1634 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1635 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1636 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1637
1638 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1639 DEFAULT_wxUSE_CHOICEDLG=yes
1640 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1641 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1642 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1643 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1644 DEFAULT_wxUSE_FONTDLG=yes
1645 DEFAULT_wxUSE_MSGDLG=yes
1646 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1647 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1648 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1649 DEFAULT_wxUSE_STARTUP_TIPS=yes
1650 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1651 DEFAULT_wxUSE_WIZARDDLG=yes
1652
1e6feb95 1653 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1654 DEFAULT_wxUSE_MINIFRAME=yes
1655 DEFAULT_wxUSE_HTML=yes
24528b0c 1656 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1657 DEFAULT_wxUSE_FS_INET=yes
1658 DEFAULT_wxUSE_FS_ZIP=yes
1659 DEFAULT_wxUSE_BUSYINFO=yes
1660 DEFAULT_wxUSE_ZIPSTREAM=yes
1661 DEFAULT_wxUSE_VALIDATORS=yes
1662
1663 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1664 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1665 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1666 DEFAULT_wxUSE_CALCTRL=yes
1667 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1668 DEFAULT_wxUSE_CHECKBOX=yes
1669 DEFAULT_wxUSE_CHECKLST=yes
1670 DEFAULT_wxUSE_CHOICE=yes
1671 DEFAULT_wxUSE_COMBOBOX=yes
1672 DEFAULT_wxUSE_GAUGE=yes
1673 DEFAULT_wxUSE_GRID=yes
cc977e5f 1674 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1675 DEFAULT_wxUSE_IMAGLIST=yes
1676 DEFAULT_wxUSE_LISTBOX=yes
1677 DEFAULT_wxUSE_LISTCTRL=yes
1678 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1679 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1680 DEFAULT_wxUSE_RADIOBOX=yes
1681 DEFAULT_wxUSE_RADIOBTN=yes
1682 DEFAULT_wxUSE_SASH=yes
1683 DEFAULT_wxUSE_SCROLLBAR=yes
1684 DEFAULT_wxUSE_SLIDER=yes
1685 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1686 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1687 DEFAULT_wxUSE_SPLITTER=yes
1688 DEFAULT_wxUSE_STATBMP=yes
1689 DEFAULT_wxUSE_STATBOX=yes
1690 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1691 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1692 DEFAULT_wxUSE_STATUSBAR=yes
1693 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1694 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1695 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1696 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1697 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1698 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1699 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1700 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
1701
1702 DEFAULT_wxUSE_UNICODE=no
1703 DEFAULT_wxUSE_WCSRTOMBS=no
1704
edae8572 1705 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1706 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1707 DEFAULT_wxUSE_GIF=yes
1708 DEFAULT_wxUSE_PCX=yes
1709 DEFAULT_wxUSE_PNM=yes
0046ff7c 1710 DEFAULT_wxUSE_XPM=yes
10f2d63a
VZ
1711fi
1712
698dcdb6
VZ
1713
1714
10f2d63a
VZ
1715for toolkit in `echo $ALL_TOOLKITS`; do
1716 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1717 if test "x$LINE" != x ; then
1718 has_toolkit_in_cache=1
1719 eval "DEFAULT_$LINE"
1720 eval "CACHE_$toolkit=1"
1721 fi
1722done
1723
698dcdb6
VZ
1724
1725
1726 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
a3a584a7 1727echo "configure:1728: checking for --enable-gui" >&5
10f2d63a
VZ
1728 no_cache=0
1729 # Check whether --enable-gui or --disable-gui was given.
1730if test "${enable_gui+set}" = set; then
1731 enableval="$enable_gui"
698dcdb6 1732
10f2d63a
VZ
1733 if test "$enableval" = yes; then
1734 ac_cv_use_gui='wxUSE_GUI=yes'
1735 else
1736 ac_cv_use_gui='wxUSE_GUI=no'
1737 fi
698dcdb6 1738
10f2d63a 1739else
698dcdb6 1740
10f2d63a
VZ
1741 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1742 if test "x$LINE" != x ; then
1743 eval "DEFAULT_$LINE"
1744 else
1745 no_cache=1
1746 fi
1747
1748 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1749
1750fi
10f2d63a
VZ
1751
1752
1753 eval "$ac_cv_use_gui"
1754 if test "$no_cache" != 1; then
1755 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1756 fi
1757
1758 if test "$wxUSE_GUI" = yes; then
698dcdb6 1759 echo "$ac_t""yes" 1>&6
10f2d63a 1760 else
698dcdb6 1761 echo "$ac_t""no" 1>&6
10f2d63a 1762 fi
698dcdb6 1763
10f2d63a 1764
b12915c1 1765if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1766
1e6feb95
VZ
1767
1768 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
a3a584a7 1769echo "configure:1770: checking for --enable-universal" >&5
1e6feb95
VZ
1770 no_cache=0
1771 # Check whether --enable-universal or --disable-universal was given.
1772if test "${enable_universal+set}" = set; then
1773 enableval="$enable_universal"
1774
1775 if test "$enableval" = yes; then
1776 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1777 else
1778 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1779 fi
1780
1781else
1782
1783 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1784 if test "x$LINE" != x ; then
1785 eval "DEFAULT_$LINE"
1786 else
1787 no_cache=1
1788 fi
1789
1790 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1791
1792fi
1793
1794
1795 eval "$ac_cv_use_universal"
1796 if test "$no_cache" != 1; then
1797 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1798 fi
1799
1800 if test "$wxUSE_UNIVERSAL" = yes; then
1801 echo "$ac_t""yes" 1>&6
1802 else
1803 echo "$ac_t""no" 1>&6
1804 fi
1805
10f2d63a
VZ
1806# Check whether --with-gtk or --without-gtk was given.
1807if test "${with_gtk+set}" = set; then
1808 withval="$with_gtk"
1809 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1810fi
10f2d63a
VZ
1811
1812# Check whether --with-motif or --without-motif was given.
1813if test "${with_motif+set}" = set; then
1814 withval="$with_motif"
1815 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1816fi
10f2d63a 1817
b4085ce6
GD
1818# Check whether --with-mac or --without-mac was given.
1819if test "${with_mac+set}" = set; then
1820 withval="$with_mac"
1821 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1822fi
b4085ce6 1823
10f2d63a
VZ
1824# Check whether --with-wine or --without-wine was given.
1825if test "${with_wine+set}" = set; then
1826 withval="$with_wine"
1827 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1828fi
10f2d63a 1829
77e13408
RL
1830# Check whether --with-msw or --without-msw was given.
1831if test "${with_msw+set}" = set; then
1832 withval="$with_msw"
1833 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
698dcdb6 1834fi
10f2d63a 1835
e07802fc
VZ
1836# Check whether --with-pm or --without-pm was given.
1837if test "${with_pm+set}" = set; then
1838 withval="$with_pm"
1839 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1840fi
1841
1e6feb95
VZ
1842# Check whether --with-mgl or --without-mgl was given.
1843if test "${with_mgl+set}" = set; then
1844 withval="$with_mgl"
1845 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1846fi
1847
10f2d63a 1848
8168de4c
VZ
1849# Check whether --enable-gtk2 or --disable-gtk2 was given.
1850if test "${enable_gtk2+set}" = set; then
1851 enableval="$enable_gtk2"
1852 wxUSE_GTK2=1
10f2d63a 1853else
8168de4c 1854 wxUSE_GTK2=0
698dcdb6
VZ
1855fi
1856
703e0a69 1857
1e487827 1858
698dcdb6 1859 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
a3a584a7 1860echo "configure:1861: checking for --with-libpng" >&5
698dcdb6
VZ
1861 no_cache=0
1862 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1863if test "${with_libpng+set}" = set; then
1864 withval="$with_libpng"
698dcdb6 1865
10f2d63a 1866 if test "$withval" = yes; then
b12915c1 1867 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1868 elif test "$withval" = no; then
b12915c1 1869 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1870 elif test "$withval" = sys; then
1871 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
1872 elif test "$withval" = builtin; then
1873 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 1874 else
4f14bcd8 1875 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1876 fi
698dcdb6 1877
10f2d63a 1878else
698dcdb6 1879
b12915c1 1880 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1881 if test "x$LINE" != x ; then
1882 eval "DEFAULT_$LINE"
1883 else
1884 no_cache=1
1885 fi
1886
b12915c1 1887 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1888
1889fi
10f2d63a
VZ
1890
1891
b12915c1 1892 eval "$ac_cv_use_libpng"
10f2d63a 1893 if test "$no_cache" != 1; then
b12915c1 1894 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1895 fi
1896
b12915c1 1897 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1898 echo "$ac_t""yes" 1>&6
422107f9 1899 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1900 echo "$ac_t""no" 1>&6
422107f9 1901 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1902 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
1903 elif test "$wxUSE_LIBPNG" = builtin; then
1904 echo "$ac_t""builtin version" 1>&6
422107f9 1905 else
4f14bcd8 1906 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1907 fi
698dcdb6 1908
10f2d63a 1909
698dcdb6 1910 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
a3a584a7 1911echo "configure:1912: checking for --with-libjpeg" >&5
10f2d63a 1912 no_cache=0
698dcdb6 1913 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1914if test "${with_libjpeg+set}" = set; then
1915 withval="$with_libjpeg"
698dcdb6 1916
10f2d63a 1917 if test "$withval" = yes; then
b12915c1 1918 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1919 elif test "$withval" = no; then
b12915c1 1920 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1921 elif test "$withval" = sys; then
1922 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
1923 elif test "$withval" = builtin; then
1924 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 1925 else
4f14bcd8 1926 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1927 fi
698dcdb6 1928
10f2d63a 1929else
698dcdb6 1930
b12915c1 1931 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1932 if test "x$LINE" != x ; then
1933 eval "DEFAULT_$LINE"
1934 else
1935 no_cache=1
1936 fi
1937
b12915c1 1938 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
1939
1940fi
10f2d63a
VZ
1941
1942
b12915c1 1943 eval "$ac_cv_use_libjpeg"
10f2d63a 1944 if test "$no_cache" != 1; then
b12915c1 1945 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1946 fi
1947
b12915c1 1948 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 1949 echo "$ac_t""yes" 1>&6
422107f9 1950 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 1951 echo "$ac_t""no" 1>&6
422107f9 1952 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 1953 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
1954 elif test "$wxUSE_LIBJPEG" = builtin; then
1955 echo "$ac_t""builtin version" 1>&6
422107f9 1956 else
4f14bcd8 1957 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1958 fi
698dcdb6 1959
10f2d63a 1960
698dcdb6 1961 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
a3a584a7 1962echo "configure:1963: checking for --with-libtiff" >&5
10f2d63a 1963 no_cache=0
698dcdb6 1964 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
1965if test "${with_libtiff+set}" = set; then
1966 withval="$with_libtiff"
698dcdb6 1967
10f2d63a 1968 if test "$withval" = yes; then
b12915c1 1969 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1970 elif test "$withval" = no; then
b12915c1 1971 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1972 elif test "$withval" = sys; then
1973 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
1974 elif test "$withval" = builtin; then
1975 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 1976 else
4f14bcd8 1977 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1978 fi
698dcdb6 1979
10f2d63a 1980else
698dcdb6 1981
b12915c1 1982 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1983 if test "x$LINE" != x ; then
1984 eval "DEFAULT_$LINE"
1985 else
1986 no_cache=1
1987 fi
1988
b12915c1 1989 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
1990
1991fi
10f2d63a
VZ
1992
1993
b12915c1 1994 eval "$ac_cv_use_libtiff"
10f2d63a 1995 if test "$no_cache" != 1; then
b12915c1 1996 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1997 fi
1998
b12915c1 1999 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 2000 echo "$ac_t""yes" 1>&6
0dcf9893 2001 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 2002 echo "$ac_t""no" 1>&6
0dcf9893 2003 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 2004 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2005 elif test "$wxUSE_LIBTIFF" = builtin; then
2006 echo "$ac_t""builtin version" 1>&6
0dcf9893 2007 else
4f14bcd8 2008 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2009 fi
698dcdb6 2010
10f2d63a 2011
698dcdb6 2012 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
a3a584a7 2013echo "configure:2014: checking for --with-freetype" >&5
3fed1840 2014 no_cache=0
698dcdb6 2015 # Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
2016if test "${with_freetype+set}" = set; then
2017 withval="$with_freetype"
698dcdb6 2018
3fed1840
RR
2019 if test "$withval" = yes; then
2020 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2021 elif test "$withval" = no; then
2022 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2023 elif test "$withval" = sys; then
2024 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
4f14bcd8
GD
2025 elif test "$withval" = builtin; then
2026 ac_cv_use_freetype='wxUSE_FREETYPE=builtin'
3fed1840 2027 else
4f14bcd8 2028 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3fed1840 2029 fi
698dcdb6 2030
3fed1840 2031else
698dcdb6 2032
3fed1840
RR
2033 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2034 if test "x$LINE" != x ; then
2035 eval "DEFAULT_$LINE"
2036 else
2037 no_cache=1
2038 fi
2039
2040 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
698dcdb6
VZ
2041
2042fi
3fed1840
RR
2043
2044
2045 eval "$ac_cv_use_freetype"
2046 if test "$no_cache" != 1; then
2047 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2048 fi
2049
2050 if test "$wxUSE_FREETYPE" = yes; then
698dcdb6 2051 echo "$ac_t""yes" 1>&6
3fed1840 2052 elif test "$wxUSE_FREETYPE" = no; then
698dcdb6 2053 echo "$ac_t""no" 1>&6
3fed1840 2054 elif test "$wxUSE_FREETYPE" = sys; then
698dcdb6 2055 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2056 elif test "$wxUSE_FREETYPE" = builtin; then
2057 echo "$ac_t""builtin version" 1>&6
3fed1840 2058 else
4f14bcd8 2059 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3fed1840 2060 fi
698dcdb6 2061
3fed1840 2062
698dcdb6 2063 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
a3a584a7 2064echo "configure:2065: checking for --with-opengl" >&5
10f2d63a 2065 no_cache=0
698dcdb6 2066 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2067if test "${with_opengl+set}" = set; then
2068 withval="$with_opengl"
698dcdb6 2069
10f2d63a 2070 if test "$withval" = yes; then
b12915c1 2071 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2072 else
b12915c1 2073 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2074 fi
698dcdb6 2075
10f2d63a 2076else
698dcdb6 2077
b12915c1 2078 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2079 if test "x$LINE" != x ; then
2080 eval "DEFAULT_$LINE"
2081 else
2082 no_cache=1
2083 fi
2084
b12915c1 2085 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2086
2087fi
10f2d63a
VZ
2088
2089
b12915c1 2090 eval "$ac_cv_use_opengl"
10f2d63a 2091 if test "$no_cache" != 1; then
b12915c1 2092 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2093 fi
2094
b12915c1 2095 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2096 echo "$ac_t""yes" 1>&6
10f2d63a 2097 else
698dcdb6 2098 echo "$ac_t""no" 1>&6
10f2d63a 2099 fi
698dcdb6 2100
10f2d63a 2101
b12915c1
VZ
2102fi
2103
1e487827 2104
698dcdb6 2105 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
a3a584a7 2106echo "configure:2107: checking for --with-dmalloc" >&5
698dcdb6
VZ
2107 no_cache=0
2108 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2109if test "${with_dmalloc+set}" = set; then
2110 withval="$with_dmalloc"
698dcdb6 2111
c7a2bf27 2112 if test "$withval" = yes; then
b12915c1 2113 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2114 else
b12915c1 2115 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2116 fi
698dcdb6 2117
c7a2bf27 2118else
698dcdb6 2119
b12915c1 2120 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2121 if test "x$LINE" != x ; then
2122 eval "DEFAULT_$LINE"
2123 else
2124 no_cache=1
2125 fi
2126
b12915c1 2127 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2128
2129fi
c7a2bf27
RR
2130
2131
b12915c1 2132 eval "$ac_cv_use_dmalloc"
c7a2bf27 2133 if test "$no_cache" != 1; then
b12915c1 2134 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2135 fi
2136
b12915c1 2137 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2138 echo "$ac_t""yes" 1>&6
c7a2bf27 2139 else
698dcdb6 2140 echo "$ac_t""no" 1>&6
c7a2bf27 2141 fi
698dcdb6 2142
c7a2bf27 2143
3e44f09d 2144 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
a3a584a7 2145echo "configure:2146: checking for --with-regex" >&5
3e44f09d
VZ
2146 no_cache=0
2147 # Check whether --with-regex or --without-regex was given.
2148if test "${with_regex+set}" = set; then
2149 withval="$with_regex"
2150
2151 if test "$withval" = yes; then
2152 ac_cv_use_regex='wxUSE_REGEX=yes'
2153 elif test "$withval" = no; then
2154 ac_cv_use_regex='wxUSE_REGEX=no'
2155 elif test "$withval" = sys; then
2156 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2157 elif test "$withval" = builtin; then
2158 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2159 else
4f14bcd8 2160 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2161 fi
2162
2163else
2164
2165 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2166 if test "x$LINE" != x ; then
2167 eval "DEFAULT_$LINE"
2168 else
2169 no_cache=1
2170 fi
2171
2172 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2173
2174fi
2175
2176
2177 eval "$ac_cv_use_regex"
2178 if test "$no_cache" != 1; then
2179 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2180 fi
2181
2182 if test "$wxUSE_REGEX" = yes; then
2183 echo "$ac_t""yes" 1>&6
2184 elif test "$wxUSE_REGEX" = no; then
2185 echo "$ac_t""no" 1>&6
2186 elif test "$wxUSE_REGEX" = sys; then
2187 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2188 elif test "$wxUSE_REGEX" = builtin; then
2189 echo "$ac_t""builtin version" 1>&6
3e44f09d 2190 else
4f14bcd8 2191 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2192 fi
2193
2194
698dcdb6 2195 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
a3a584a7 2196echo "configure:2197: checking for --with-zlib" >&5
10f2d63a 2197 no_cache=0
698dcdb6 2198 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2199if test "${with_zlib+set}" = set; then
2200 withval="$with_zlib"
698dcdb6 2201
10f2d63a 2202 if test "$withval" = yes; then
b12915c1 2203 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2204 elif test "$withval" = no; then
b12915c1 2205 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2206 elif test "$withval" = sys; then
2207 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2208 elif test "$withval" = builtin; then
2209 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2210 else
4f14bcd8 2211 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2212 fi
698dcdb6 2213
10f2d63a 2214else
698dcdb6 2215
b12915c1 2216 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2217 if test "x$LINE" != x ; then
2218 eval "DEFAULT_$LINE"
2219 else
2220 no_cache=1
2221 fi
2222
b12915c1 2223 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2224
2225fi
10f2d63a
VZ
2226
2227
b12915c1 2228 eval "$ac_cv_use_zlib"
10f2d63a 2229 if test "$no_cache" != 1; then
b12915c1 2230 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2231 fi
2232
b12915c1 2233 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2234 echo "$ac_t""yes" 1>&6
422107f9 2235 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2236 echo "$ac_t""no" 1>&6
422107f9 2237 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2238 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2239 elif test "$wxUSE_ZLIB" = builtin; then
2240 echo "$ac_t""builtin version" 1>&6
422107f9 2241 else
4f14bcd8 2242 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2243 fi
698dcdb6 2244
10f2d63a 2245
698dcdb6 2246 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
a3a584a7 2247echo "configure:2248: checking for --with-odbc" >&5
10f2d63a 2248 no_cache=0
698dcdb6 2249 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2250if test "${with_odbc+set}" = set; then
2251 withval="$with_odbc"
698dcdb6 2252
10f2d63a
VZ
2253 if test "$withval" = yes; then
2254 ac_cv_use_odbc='wxUSE_ODBC=yes'
2255 else
2256 ac_cv_use_odbc='wxUSE_ODBC=no'
2257 fi
698dcdb6 2258
10f2d63a 2259else
698dcdb6 2260
10f2d63a
VZ
2261 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2262 if test "x$LINE" != x ; then
2263 eval "DEFAULT_$LINE"
2264 else
2265 no_cache=1
2266 fi
2267
2268 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2269
2270fi
10f2d63a
VZ
2271
2272
2273 eval "$ac_cv_use_odbc"
2274 if test "$no_cache" != 1; then
2275 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2276 fi
2277
2278 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2279 echo "$ac_t""yes" 1>&6
10f2d63a 2280 else
698dcdb6 2281 echo "$ac_t""no" 1>&6
10f2d63a 2282 fi
698dcdb6
VZ
2283
2284
10f2d63a 2285
698dcdb6 2286
698dcdb6 2287 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
a3a584a7 2288echo "configure:2289: checking for --enable-shared" >&5
10f2d63a
VZ
2289 no_cache=0
2290 # Check whether --enable-shared or --disable-shared was given.
2291if test "${enable_shared+set}" = set; then
2292 enableval="$enable_shared"
698dcdb6 2293
10f2d63a
VZ
2294 if test "$enableval" = yes; then
2295 ac_cv_use_shared='wxUSE_SHARED=yes'
2296 else
2297 ac_cv_use_shared='wxUSE_SHARED=no'
2298 fi
698dcdb6 2299
10f2d63a 2300else
698dcdb6 2301
10f2d63a
VZ
2302 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2303 if test "x$LINE" != x ; then
2304 eval "DEFAULT_$LINE"
2305 else
2306 no_cache=1
2307 fi
2308
2309 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2310
2311fi
10f2d63a
VZ
2312
2313
2314 eval "$ac_cv_use_shared"
2315 if test "$no_cache" != 1; then
2316 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2317 fi
2318
2319 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2320 echo "$ac_t""yes" 1>&6
10f2d63a 2321 else
698dcdb6 2322 echo "$ac_t""no" 1>&6
10f2d63a 2323 fi
698dcdb6 2324
10f2d63a 2325
3a922bb4 2326 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
a3a584a7 2327echo "configure:2328: checking for --enable-soname" >&5
00cf1208 2328 no_cache=0
3a922bb4
RL
2329 # Check whether --enable-soname or --disable-soname was given.
2330if test "${enable_soname+set}" = set; then
2331 enableval="$enable_soname"
698dcdb6 2332
00cf1208 2333 if test "$enableval" = yes; then
3a922bb4 2334 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2335 else
3a922bb4 2336 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2337 fi
698dcdb6 2338
00cf1208 2339else
698dcdb6 2340
3a922bb4 2341 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2342 if test "x$LINE" != x ; then
2343 eval "DEFAULT_$LINE"
2344 else
2345 no_cache=1
2346 fi
2347
3a922bb4 2348 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
698dcdb6
VZ
2349
2350fi
00cf1208
RR
2351
2352
3a922bb4 2353 eval "$ac_cv_use_soname"
00cf1208 2354 if test "$no_cache" != 1; then
3a922bb4 2355 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2356 fi
2357
3a922bb4 2358 if test "$wxUSE_SONAME" = yes; then
698dcdb6 2359 echo "$ac_t""yes" 1>&6
00cf1208 2360 else
698dcdb6 2361 echo "$ac_t""no" 1>&6
00cf1208 2362 fi
698dcdb6 2363
00cf1208 2364
698dcdb6 2365 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
a3a584a7 2366echo "configure:2367: checking for --enable-optimise" >&5
10f2d63a
VZ
2367 no_cache=0
2368 # Check whether --enable-optimise or --disable-optimise was given.
2369if test "${enable_optimise+set}" = set; then
2370 enableval="$enable_optimise"
698dcdb6 2371
10f2d63a
VZ
2372 if test "$enableval" = yes; then
2373 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2374 else
2375 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2376 fi
698dcdb6 2377
10f2d63a 2378else
698dcdb6 2379
10f2d63a
VZ
2380 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2381 if test "x$LINE" != x ; then
2382 eval "DEFAULT_$LINE"
2383 else
2384 no_cache=1
2385 fi
2386
2387 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2388
2389fi
10f2d63a
VZ
2390
2391
2392 eval "$ac_cv_use_optimise"
2393 if test "$no_cache" != 1; then
2394 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2395 fi
2396
2397 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2398 echo "$ac_t""yes" 1>&6
10f2d63a 2399 else
698dcdb6 2400 echo "$ac_t""no" 1>&6
10f2d63a 2401 fi
698dcdb6 2402
10f2d63a 2403
698dcdb6 2404 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
a3a584a7 2405echo "configure:2406: checking for --enable-debug" >&5
10f2d63a
VZ
2406 no_cache=0
2407 # Check whether --enable-debug or --disable-debug was given.
2408if test "${enable_debug+set}" = set; then
2409 enableval="$enable_debug"
698dcdb6 2410
10f2d63a
VZ
2411 if test "$enableval" = yes; then
2412 ac_cv_use_debug='wxUSE_DEBUG=yes'
2413 else
2414 ac_cv_use_debug='wxUSE_DEBUG=no'
2415 fi
698dcdb6 2416
10f2d63a 2417else
698dcdb6 2418
10f2d63a
VZ
2419 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2420 if test "x$LINE" != x ; then
2421 eval "DEFAULT_$LINE"
2422 else
2423 no_cache=1
2424 fi
2425
2426 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2427
2428fi
10f2d63a
VZ
2429
2430
2431 eval "$ac_cv_use_debug"
2432 if test "$no_cache" != 1; then
2433 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2434 fi
2435
2436 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2437 echo "$ac_t""yes" 1>&6
10f2d63a 2438 else
698dcdb6 2439 echo "$ac_t""no" 1>&6
10f2d63a 2440 fi
698dcdb6 2441
10f2d63a 2442
683dccda
GD
2443
2444 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
a3a584a7 2445echo "configure:2446: checking for --enable-precomp" >&5
683dccda
GD
2446 no_cache=0
2447 # Check whether --enable-precomp or --disable-precomp was given.
2448if test "${enable_precomp+set}" = set; then
2449 enableval="$enable_precomp"
2450
2451 if test "$enableval" = yes; then
2452 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2453 else
2454 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2455 fi
2456
2457else
2458
2459 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2460 if test "x$LINE" != x ; then
2461 eval "DEFAULT_$LINE"
2462 else
2463 no_cache=1
2464 fi
2465
2466 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2467
2468fi
2469
2470
2471 eval "$ac_cv_use_precomp"
2472 if test "$no_cache" != 1; then
2473 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2474 fi
2475
2476 if test "$wxUSE_PRECOMP" = yes; then
2477 echo "$ac_t""yes" 1>&6
2478 else
2479 echo "$ac_t""no" 1>&6
2480 fi
2481
2482
10f2d63a
VZ
2483if test "$wxUSE_DEBUG" = "yes"; then
2484 DEFAULT_wxUSE_DEBUG_FLAG=yes
2485 DEFAULT_wxUSE_DEBUG_INFO=yes
2486elif test "$wxUSE_DEBUG" = "no"; then
2487 DEFAULT_wxUSE_DEBUG_FLAG=no
2488 DEFAULT_wxUSE_DEBUG_INFO=no
2489fi
2490
698dcdb6
VZ
2491
2492 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
a3a584a7 2493echo "configure:2494: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2494 no_cache=0
2495 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2496if test "${enable_debug_flag+set}" = set; then
2497 enableval="$enable_debug_flag"
698dcdb6 2498
10f2d63a
VZ
2499 if test "$enableval" = yes; then
2500 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2501 else
2502 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2503 fi
698dcdb6 2504
10f2d63a 2505else
698dcdb6 2506
10f2d63a
VZ
2507 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2508 if test "x$LINE" != x ; then
2509 eval "DEFAULT_$LINE"
2510 else
2511 no_cache=1
2512 fi
2513
2514 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2515
2516fi
10f2d63a
VZ
2517
2518
2519 eval "$ac_cv_use_debug_flag"
2520 if test "$no_cache" != 1; then
2521 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2522 fi
2523
2524 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2525 echo "$ac_t""yes" 1>&6
10f2d63a 2526 else
698dcdb6 2527 echo "$ac_t""no" 1>&6
10f2d63a 2528 fi
698dcdb6 2529
10f2d63a 2530
698dcdb6 2531 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
a3a584a7 2532echo "configure:2533: checking for --enable-debug_info" >&5
10f2d63a
VZ
2533 no_cache=0
2534 # Check whether --enable-debug_info or --disable-debug_info was given.
2535if test "${enable_debug_info+set}" = set; then
2536 enableval="$enable_debug_info"
698dcdb6 2537
10f2d63a
VZ
2538 if test "$enableval" = yes; then
2539 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2540 else
2541 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2542 fi
698dcdb6 2543
10f2d63a 2544else
698dcdb6 2545
10f2d63a
VZ
2546 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2547 if test "x$LINE" != x ; then
2548 eval "DEFAULT_$LINE"
2549 else
2550 no_cache=1
2551 fi
2552
2553 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2554
2555fi
10f2d63a
VZ
2556
2557
2558 eval "$ac_cv_use_debug_info"
2559 if test "$no_cache" != 1; then
2560 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2561 fi
2562
2563 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2564 echo "$ac_t""yes" 1>&6
10f2d63a 2565 else
698dcdb6 2566 echo "$ac_t""no" 1>&6
10f2d63a 2567 fi
698dcdb6 2568
10f2d63a 2569
698dcdb6 2570 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
a3a584a7 2571echo "configure:2572: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2572 no_cache=0
2573 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2574if test "${enable_debug_gdb+set}" = set; then
2575 enableval="$enable_debug_gdb"
698dcdb6 2576
10f2d63a
VZ
2577 if test "$enableval" = yes; then
2578 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2579 else
2580 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2581 fi
698dcdb6 2582
10f2d63a 2583else
698dcdb6 2584
10f2d63a
VZ
2585 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2586 if test "x$LINE" != x ; then
2587 eval "DEFAULT_$LINE"
2588 else
2589 no_cache=1
2590 fi
2591
2592 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2593
2594fi
10f2d63a
VZ
2595
2596
2597 eval "$ac_cv_use_debug_gdb"
2598 if test "$no_cache" != 1; then
2599 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2600 fi
2601
2602 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2603 echo "$ac_t""yes" 1>&6
10f2d63a 2604 else
698dcdb6 2605 echo "$ac_t""no" 1>&6
10f2d63a 2606 fi
698dcdb6 2607
10f2d63a 2608
698dcdb6 2609 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
a3a584a7 2610echo "configure:2611: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2611 no_cache=0
2612 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2613if test "${enable_debug_cntxt+set}" = set; then
2614 enableval="$enable_debug_cntxt"
698dcdb6 2615
10f2d63a
VZ
2616 if test "$enableval" = yes; then
2617 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2618 else
2619 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2620 fi
698dcdb6 2621
10f2d63a 2622else
698dcdb6 2623
10f2d63a
VZ
2624 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2625 if test "x$LINE" != x ; then
2626 eval "DEFAULT_$LINE"
2627 else
2628 no_cache=1
2629 fi
2630
2631 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2632
2633fi
10f2d63a
VZ
2634
2635
2636 eval "$ac_cv_use_debug_cntxt"
2637 if test "$no_cache" != 1; then
2638 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2639 fi
2640
2641 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2642 echo "$ac_t""yes" 1>&6
10f2d63a 2643 else
698dcdb6 2644 echo "$ac_t""no" 1>&6
10f2d63a 2645 fi
698dcdb6 2646
10f2d63a 2647
698dcdb6 2648 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
a3a584a7 2649echo "configure:2650: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2650 no_cache=0
2651 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2652if test "${enable_mem_tracing+set}" = set; then
2653 enableval="$enable_mem_tracing"
698dcdb6 2654
10f2d63a
VZ
2655 if test "$enableval" = yes; then
2656 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2657 else
2658 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2659 fi
698dcdb6 2660
10f2d63a 2661else
698dcdb6 2662
10f2d63a
VZ
2663 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2664 if test "x$LINE" != x ; then
2665 eval "DEFAULT_$LINE"
2666 else
2667 no_cache=1
2668 fi
2669
2670 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2671
2672fi
10f2d63a
VZ
2673
2674
2675 eval "$ac_cv_use_mem_tracing"
2676 if test "$no_cache" != 1; then
2677 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2678 fi
2679
2680 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2681 echo "$ac_t""yes" 1>&6
10f2d63a 2682 else
698dcdb6 2683 echo "$ac_t""no" 1>&6
10f2d63a 2684 fi
698dcdb6 2685
10f2d63a 2686
698dcdb6 2687 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
a3a584a7 2688echo "configure:2689: checking for --enable-profile" >&5
10f2d63a
VZ
2689 no_cache=0
2690 # Check whether --enable-profile or --disable-profile was given.
2691if test "${enable_profile+set}" = set; then
2692 enableval="$enable_profile"
698dcdb6 2693
10f2d63a
VZ
2694 if test "$enableval" = yes; then
2695 ac_cv_use_profile='wxUSE_PROFILE=yes'
2696 else
2697 ac_cv_use_profile='wxUSE_PROFILE=no'
2698 fi
698dcdb6 2699
10f2d63a 2700else
698dcdb6 2701
10f2d63a
VZ
2702 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2703 if test "x$LINE" != x ; then
2704 eval "DEFAULT_$LINE"
2705 else
2706 no_cache=1
2707 fi
2708
2709 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2710
2711fi
10f2d63a
VZ
2712
2713
2714 eval "$ac_cv_use_profile"
2715 if test "$no_cache" != 1; then
2716 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2717 fi
2718
2719 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2720 echo "$ac_t""yes" 1>&6
10f2d63a 2721 else
698dcdb6 2722 echo "$ac_t""no" 1>&6
10f2d63a 2723 fi
698dcdb6 2724
10f2d63a 2725
698dcdb6 2726 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
a3a584a7 2727echo "configure:2728: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2728 no_cache=0
2729 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2730if test "${enable_no_rtti+set}" = set; then
2731 enableval="$enable_no_rtti"
698dcdb6 2732
10f2d63a
VZ
2733 if test "$enableval" = yes; then
2734 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2735 else
2736 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2737 fi
698dcdb6 2738
10f2d63a 2739else
698dcdb6 2740
10f2d63a
VZ
2741 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2742 if test "x$LINE" != x ; then
2743 eval "DEFAULT_$LINE"
2744 else
2745 no_cache=1
2746 fi
2747
2748 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2749
2750fi
10f2d63a
VZ
2751
2752
2753 eval "$ac_cv_use_no_rtti"
2754 if test "$no_cache" != 1; then
2755 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2756 fi
2757
2758 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2759 echo "$ac_t""yes" 1>&6
10f2d63a 2760 else
698dcdb6 2761 echo "$ac_t""no" 1>&6
10f2d63a 2762 fi
698dcdb6 2763
10f2d63a 2764
698dcdb6 2765 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
a3a584a7 2766echo "configure:2767: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2767 no_cache=0
2768 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2769if test "${enable_no_exceptions+set}" = set; then
2770 enableval="$enable_no_exceptions"
698dcdb6 2771
10f2d63a
VZ
2772 if test "$enableval" = yes; then
2773 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2774 else
2775 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2776 fi
698dcdb6 2777
10f2d63a 2778else
698dcdb6 2779
10f2d63a
VZ
2780 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2781 if test "x$LINE" != x ; then
2782 eval "DEFAULT_$LINE"
2783 else
2784 no_cache=1
2785 fi
2786
2787 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2788
2789fi
10f2d63a
VZ
2790
2791
2792 eval "$ac_cv_use_no_exceptions"
2793 if test "$no_cache" != 1; then
2794 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2795 fi
2796
2797 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2798 echo "$ac_t""yes" 1>&6
10f2d63a 2799 else
698dcdb6 2800 echo "$ac_t""no" 1>&6
10f2d63a 2801 fi
698dcdb6 2802
10f2d63a 2803
698dcdb6 2804 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
a3a584a7 2805echo "configure:2806: checking for --enable-permissive" >&5
10f2d63a
VZ
2806 no_cache=0
2807 # Check whether --enable-permissive or --disable-permissive was given.
2808if test "${enable_permissive+set}" = set; then
2809 enableval="$enable_permissive"
698dcdb6 2810
10f2d63a
VZ
2811 if test "$enableval" = yes; then
2812 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2813 else
2814 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2815 fi
698dcdb6 2816
10f2d63a 2817else
698dcdb6 2818
10f2d63a
VZ
2819 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2820 if test "x$LINE" != x ; then
2821 eval "DEFAULT_$LINE"
2822 else
2823 no_cache=1
2824 fi
2825
2826 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2827
2828fi
10f2d63a
VZ
2829
2830
2831 eval "$ac_cv_use_permissive"
2832 if test "$no_cache" != 1; then
2833 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2834 fi
2835
2836 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2837 echo "$ac_t""yes" 1>&6
10f2d63a 2838 else
698dcdb6 2839 echo "$ac_t""no" 1>&6
10f2d63a 2840 fi
698dcdb6 2841
10f2d63a 2842
698dcdb6 2843 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
a3a584a7 2844echo "configure:2845: checking for --enable-no_deps" >&5
10f2d63a
VZ
2845 no_cache=0
2846 # Check whether --enable-no_deps or --disable-no_deps was given.
2847if test "${enable_no_deps+set}" = set; then
2848 enableval="$enable_no_deps"
698dcdb6 2849
10f2d63a
VZ
2850 if test "$enableval" = yes; then
2851 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2852 else
2853 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2854 fi
698dcdb6 2855
10f2d63a 2856else
698dcdb6 2857
10f2d63a
VZ
2858 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2859 if test "x$LINE" != x ; then
2860 eval "DEFAULT_$LINE"
2861 else
2862 no_cache=1
2863 fi
2864
2865 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2866
2867fi
10f2d63a
VZ
2868
2869
2870 eval "$ac_cv_use_no_deps"
2871 if test "$no_cache" != 1; then
2872 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2873 fi
2874
2875 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2876 echo "$ac_t""yes" 1>&6
10f2d63a 2877 else
698dcdb6 2878 echo "$ac_t""no" 1>&6
10f2d63a 2879 fi
698dcdb6
VZ
2880
2881
10f2d63a 2882
54276ccf 2883 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
a3a584a7 2884echo "configure:2885: checking for --enable-compat20" >&5
54276ccf
VZ
2885 no_cache=0
2886 # Check whether --enable-compat20 or --disable-compat20 was given.
2887if test "${enable_compat20+set}" = set; then
2888 enableval="$enable_compat20"
2889
2890 if test "$enableval" = yes; then
2891 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2892 else
2893 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2894 fi
2895
2896else
2897
2898 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2899 if test "x$LINE" != x ; then
2900 eval "DEFAULT_$LINE"
2901 else
2902 no_cache=1
2903 fi
2904
2905 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2906
2907fi
2908
2909
2910 eval "$ac_cv_use_compat20"
2911 if test "$no_cache" != 1; then
2912 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2913 fi
2914
2915 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2916 echo "$ac_t""yes" 1>&6
2917 else
2918 echo "$ac_t""no" 1>&6
2919 fi
2920
2921
2922 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
a3a584a7 2923echo "configure:2924: checking for --enable-compat22" >&5
54276ccf
VZ
2924 no_cache=0
2925 # Check whether --enable-compat22 or --disable-compat22 was given.
2926if test "${enable_compat22+set}" = set; then
2927 enableval="$enable_compat22"
2928
2929 if test "$enableval" = yes; then
2930 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2931 else
2932 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2933 fi
2934
2935else
2936
2937 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2938 if test "x$LINE" != x ; then
2939 eval "DEFAULT_$LINE"
2940 else
2941 no_cache=1
2942 fi
2943
2944 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2945
2946fi
2947
2948
2949 eval "$ac_cv_use_compat22"
2950 if test "$no_cache" != 1; then
2951 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2952 fi
2953
2954 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2955 echo "$ac_t""yes" 1>&6
2956 else
2957 echo "$ac_t""no" 1>&6
2958 fi
2959
2960
2961
698dcdb6
VZ
2962
2963 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
a3a584a7 2964echo "configure:2965: checking for --enable-intl" >&5
10f2d63a
VZ
2965 no_cache=0
2966 # Check whether --enable-intl or --disable-intl was given.
2967if test "${enable_intl+set}" = set; then
2968 enableval="$enable_intl"
698dcdb6 2969
10f2d63a
VZ
2970 if test "$enableval" = yes; then
2971 ac_cv_use_intl='wxUSE_INTL=yes'
2972 else
2973 ac_cv_use_intl='wxUSE_INTL=no'
2974 fi
698dcdb6 2975
10f2d63a 2976else
698dcdb6 2977
10f2d63a
VZ
2978 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2979 if test "x$LINE" != x ; then
2980 eval "DEFAULT_$LINE"
2981 else
2982 no_cache=1
2983 fi
2984
2985 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
2986
2987fi
10f2d63a
VZ
2988
2989
2990 eval "$ac_cv_use_intl"
2991 if test "$no_cache" != 1; then
2992 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2993 fi
2994
2995 if test "$wxUSE_INTL" = yes; then
698dcdb6 2996 echo "$ac_t""yes" 1>&6
10f2d63a 2997 else
698dcdb6 2998 echo "$ac_t""no" 1>&6
10f2d63a 2999 fi
698dcdb6 3000
10f2d63a 3001
698dcdb6 3002 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
a3a584a7 3003echo "configure:3004: checking for --enable-config" >&5
10f2d63a
VZ
3004 no_cache=0
3005 # Check whether --enable-config or --disable-config was given.
3006if test "${enable_config+set}" = set; then
3007 enableval="$enable_config"
698dcdb6 3008
10f2d63a
VZ
3009 if test "$enableval" = yes; then
3010 ac_cv_use_config='wxUSE_CONFIG=yes'
3011 else
3012 ac_cv_use_config='wxUSE_CONFIG=no'
3013 fi
698dcdb6 3014
10f2d63a 3015else
698dcdb6 3016
10f2d63a
VZ
3017 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3018 if test "x$LINE" != x ; then
3019 eval "DEFAULT_$LINE"
3020 else
3021 no_cache=1
3022 fi
3023
3024 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
3025
3026fi
10f2d63a
VZ
3027
3028
3029 eval "$ac_cv_use_config"
3030 if test "$no_cache" != 1; then
3031 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3032 fi
3033
3034 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 3035 echo "$ac_t""yes" 1>&6
10f2d63a 3036 else
698dcdb6 3037 echo "$ac_t""no" 1>&6
10f2d63a 3038 fi
698dcdb6
VZ
3039
3040
b12915c1 3041
698dcdb6 3042 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
a3a584a7 3043echo "configure:3044: checking for --enable-sockets" >&5
10f2d63a
VZ
3044 no_cache=0
3045 # Check whether --enable-sockets or --disable-sockets was given.
3046if test "${enable_sockets+set}" = set; then
3047 enableval="$enable_sockets"
698dcdb6 3048
10f2d63a
VZ
3049 if test "$enableval" = yes; then
3050 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3051 else
3052 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3053 fi
698dcdb6 3054
10f2d63a 3055else
698dcdb6 3056
10f2d63a
VZ
3057 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3058 if test "x$LINE" != x ; then
3059 eval "DEFAULT_$LINE"
3060 else
3061 no_cache=1
3062 fi
3063
3064 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
3065
3066fi
10f2d63a
VZ
3067
3068
3069 eval "$ac_cv_use_sockets"
3070 if test "$no_cache" != 1; then
3071 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3072 fi
3073
3074 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 3075 echo "$ac_t""yes" 1>&6
10f2d63a 3076 else
698dcdb6 3077 echo "$ac_t""no" 1>&6
10f2d63a 3078 fi
698dcdb6 3079
b12915c1 3080
698dcdb6
VZ
3081
3082 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
a3a584a7 3083echo "configure:3084: checking for --enable-ipc" >&5
10f2d63a 3084 no_cache=0
eb4efbdc
VZ
3085 # Check whether --enable-ipc or --disable-ipc was given.
3086if test "${enable_ipc+set}" = set; then
3087 enableval="$enable_ipc"
698dcdb6 3088
10f2d63a 3089 if test "$enableval" = yes; then
eb4efbdc 3090 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3091 else
eb4efbdc 3092 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3093 fi
698dcdb6 3094
10f2d63a 3095else
698dcdb6 3096
eb4efbdc 3097 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3098 if test "x$LINE" != x ; then
3099 eval "DEFAULT_$LINE"
3100 else
3101 no_cache=1
3102 fi
3103
eb4efbdc 3104 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3105
3106fi
10f2d63a
VZ
3107
3108
eb4efbdc 3109 eval "$ac_cv_use_ipc"
10f2d63a 3110 if test "$no_cache" != 1; then
eb4efbdc 3111 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3112 fi
3113
eb4efbdc 3114 if test "$wxUSE_IPC" = yes; then
698dcdb6 3115 echo "$ac_t""yes" 1>&6
10f2d63a 3116 else
698dcdb6 3117 echo "$ac_t""no" 1>&6
10f2d63a 3118 fi
698dcdb6
VZ
3119
3120
eb4efbdc 3121
1e6feb95 3122 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
a3a584a7 3123echo "configure:3124: checking for --enable-cmdline" >&5
1e6feb95
VZ
3124 no_cache=0
3125 # Check whether --enable-cmdline or --disable-cmdline was given.
3126if test "${enable_cmdline+set}" = set; then
3127 enableval="$enable_cmdline"
3128
3129 if test "$enableval" = yes; then
3130 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3131 else
3132 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3133 fi
3134
3135else
3136
3137 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3138 if test "x$LINE" != x ; then
3139 eval "DEFAULT_$LINE"
3140 else
3141 no_cache=1
3142 fi
3143
3144 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3145
3146fi
3147
3148
3149 eval "$ac_cv_use_cmdline"
3150 if test "$no_cache" != 1; then
3151 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3152 fi
3153
3154 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3155 echo "$ac_t""yes" 1>&6
3156 else
3157 echo "$ac_t""no" 1>&6
3158 fi
3159
3160
3161 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
a3a584a7 3162echo "configure:3163: checking for --enable-datetime" >&5
1e6feb95
VZ
3163 no_cache=0
3164 # Check whether --enable-datetime or --disable-datetime was given.
3165if test "${enable_datetime+set}" = set; then
3166 enableval="$enable_datetime"
3167
3168 if test "$enableval" = yes; then
3169 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3170 else
3171 ac_cv_use_datetime='wxUSE_DATETIME=no'
3172 fi
3173
3174else
3175
3176 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3177 if test "x$LINE" != x ; then
3178 eval "DEFAULT_$LINE"
3179 else
3180 no_cache=1
3181 fi
3182
3183 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3184
3185fi
3186
3187
3188 eval "$ac_cv_use_datetime"
3189 if test "$no_cache" != 1; then
3190 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3191 fi
3192
3193 if test "$wxUSE_DATETIME" = yes; then
3194 echo "$ac_t""yes" 1>&6
3195 else
3196 echo "$ac_t""no" 1>&6
3197 fi
3198
3199
3200 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
a3a584a7 3201echo "configure:3202: checking for --enable-timedate" >&5
1e6feb95
VZ
3202 no_cache=0
3203 # Check whether --enable-timedate or --disable-timedate was given.
3204if test "${enable_timedate+set}" = set; then
3205 enableval="$enable_timedate"
3206
3207 if test "$enableval" = yes; then
3208 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3209 else
3210 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3211 fi
3212
3213else
3214
3215 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3216 if test "x$LINE" != x ; then
3217 eval "DEFAULT_$LINE"
3218 else
3219 no_cache=1
3220 fi
3221
3222 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3223
3224fi
3225
3226
3227 eval "$ac_cv_use_timedate"
3228 if test "$no_cache" != 1; then
3229 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3230 fi
3231
3232 if test "$wxUSE_TIMEDATE" = yes; then
3233 echo "$ac_t""yes" 1>&6
3234 else
3235 echo "$ac_t""no" 1>&6
3236 fi
3237
3238
3239 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
a3a584a7 3240echo "configure:3241: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3241 no_cache=0
3242 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3243if test "${enable_stopwatch+set}" = set; then
3244 enableval="$enable_stopwatch"
3245
3246 if test "$enableval" = yes; then
3247 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3248 else
3249 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3250 fi
3251
3252else
3253
3254 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3255 if test "x$LINE" != x ; then
3256 eval "DEFAULT_$LINE"
3257 else
3258 no_cache=1
3259 fi
3260
3261 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3262
3263fi
3264
3265
3266 eval "$ac_cv_use_stopwatch"
3267 if test "$no_cache" != 1; then
3268 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3269 fi
3270
3271 if test "$wxUSE_STOPWATCH" = yes; then
3272 echo "$ac_t""yes" 1>&6
3273 else
3274 echo "$ac_t""no" 1>&6
3275 fi
3276
3277
698dcdb6 3278 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
a3a584a7 3279echo "configure:3280: checking for --enable-dialupman" >&5
10f2d63a 3280 no_cache=0
eb4efbdc
VZ
3281 # Check whether --enable-dialupman or --disable-dialupman was given.
3282if test "${enable_dialupman+set}" = set; then
3283 enableval="$enable_dialupman"
698dcdb6 3284
10f2d63a 3285 if test "$enableval" = yes; then
eb4efbdc 3286 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3287 else
eb4efbdc 3288 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3289 fi
698dcdb6 3290
10f2d63a 3291else
698dcdb6 3292
eb4efbdc 3293 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3294 if test "x$LINE" != x ; then
3295 eval "DEFAULT_$LINE"
3296 else
3297 no_cache=1
3298 fi
3299
eb4efbdc 3300 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3301
3302fi
10f2d63a
VZ
3303
3304
eb4efbdc 3305 eval "$ac_cv_use_dialupman"
10f2d63a 3306 if test "$no_cache" != 1; then
eb4efbdc 3307 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3308 fi
3309
eb4efbdc 3310 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3311 echo "$ac_t""yes" 1>&6
10f2d63a 3312 else
698dcdb6 3313 echo "$ac_t""no" 1>&6
10f2d63a 3314 fi
698dcdb6 3315
10f2d63a 3316
698dcdb6 3317 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
a3a584a7 3318echo "configure:3319: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3319 no_cache=0
3320 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3321if test "${enable_apple_ieee+set}" = set; then
3322 enableval="$enable_apple_ieee"
698dcdb6 3323
10f2d63a
VZ
3324 if test "$enableval" = yes; then
3325 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3326 else
3327 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3328 fi
698dcdb6 3329
10f2d63a 3330else
698dcdb6 3331
10f2d63a
VZ
3332 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3333 if test "x$LINE" != x ; then
3334 eval "DEFAULT_$LINE"
3335 else
3336 no_cache=1
3337 fi
3338
3339 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3340
3341fi
10f2d63a
VZ
3342
3343
3344 eval "$ac_cv_use_apple_ieee"
3345 if test "$no_cache" != 1; then
3346 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3347 fi
3348
3349 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3350 echo "$ac_t""yes" 1>&6
10f2d63a 3351 else
698dcdb6 3352 echo "$ac_t""no" 1>&6
10f2d63a 3353 fi
698dcdb6 3354
10f2d63a 3355
1e6feb95 3356 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
a3a584a7 3357echo "configure:3358: checking for --enable-timer" >&5
10f2d63a 3358 no_cache=0
1e6feb95
VZ
3359 # Check whether --enable-timer or --disable-timer was given.
3360if test "${enable_timer+set}" = set; then
3361 enableval="$enable_timer"
698dcdb6 3362
10f2d63a 3363 if test "$enableval" = yes; then
1e6feb95 3364 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3365 else
1e6feb95 3366 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3367 fi
698dcdb6 3368
10f2d63a 3369else
698dcdb6 3370
1e6feb95 3371 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3372 if test "x$LINE" != x ; then
3373 eval "DEFAULT_$LINE"
3374 else
3375 no_cache=1
3376 fi
3377
1e6feb95 3378 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3379
3380fi
10f2d63a
VZ
3381
3382
1e6feb95 3383 eval "$ac_cv_use_timer"
10f2d63a 3384 if test "$no_cache" != 1; then
1e6feb95 3385 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3386 fi
3387
1e6feb95 3388 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3389 echo "$ac_t""yes" 1>&6
10f2d63a 3390 else
698dcdb6 3391 echo "$ac_t""no" 1>&6
10f2d63a 3392 fi
698dcdb6 3393
10f2d63a 3394
698dcdb6 3395 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
a3a584a7 3396echo "configure:3397: checking for --enable-wave" >&5
10f2d63a
VZ
3397 no_cache=0
3398 # Check whether --enable-wave or --disable-wave was given.
3399if test "${enable_wave+set}" = set; then
3400 enableval="$enable_wave"
698dcdb6 3401
10f2d63a
VZ
3402 if test "$enableval" = yes; then
3403 ac_cv_use_wave='wxUSE_WAVE=yes'
3404 else
3405 ac_cv_use_wave='wxUSE_WAVE=no'
3406 fi
698dcdb6 3407
10f2d63a 3408else
698dcdb6 3409
10f2d63a
VZ
3410 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3411 if test "x$LINE" != x ; then
3412 eval "DEFAULT_$LINE"
3413 else
3414 no_cache=1
3415 fi
3416
3417 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3418
3419fi
10f2d63a
VZ
3420
3421
3422 eval "$ac_cv_use_wave"
3423 if test "$no_cache" != 1; then
3424 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3425 fi
3426
3427 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3428 echo "$ac_t""yes" 1>&6
10f2d63a 3429 else
698dcdb6 3430 echo "$ac_t""no" 1>&6
10f2d63a 3431 fi
698dcdb6 3432
10f2d63a 3433
698dcdb6 3434 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
a3a584a7 3435echo "configure:3436: checking for --enable-fraction" >&5
10f2d63a
VZ
3436 no_cache=0
3437 # Check whether --enable-fraction or --disable-fraction was given.
3438if test "${enable_fraction+set}" = set; then
3439 enableval="$enable_fraction"
698dcdb6 3440
10f2d63a
VZ
3441 if test "$enableval" = yes; then
3442 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3443 else
3444 ac_cv_use_fraction='wxUSE_FRACTION=no'
3445 fi
698dcdb6 3446
10f2d63a 3447else
698dcdb6 3448
10f2d63a
VZ
3449 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3450 if test "x$LINE" != x ; then
3451 eval "DEFAULT_$LINE"
3452 else
3453 no_cache=1
3454 fi
3455
3456 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3457
3458fi
10f2d63a
VZ
3459
3460
3461 eval "$ac_cv_use_fraction"
3462 if test "$no_cache" != 1; then
3463 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3464 fi
3465
3466 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3467 echo "$ac_t""yes" 1>&6
10f2d63a 3468 else
698dcdb6 3469 echo "$ac_t""no" 1>&6
10f2d63a 3470 fi
698dcdb6 3471
10f2d63a 3472
698dcdb6 3473 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
a3a584a7 3474echo "configure:3475: checking for --enable-dynlib" >&5
10f2d63a
VZ
3475 no_cache=0
3476 # Check whether --enable-dynlib or --disable-dynlib was given.
3477if test "${enable_dynlib+set}" = set; then
3478 enableval="$enable_dynlib"
698dcdb6 3479
10f2d63a
VZ
3480 if test "$enableval" = yes; then
3481 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3482 else
3483 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3484 fi
698dcdb6 3485
10f2d63a 3486else
698dcdb6 3487
10f2d63a
VZ
3488 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3489 if test "x$LINE" != x ; then
3490 eval "DEFAULT_$LINE"
3491 else
3492 no_cache=1
3493 fi
3494
3495 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3496
3497fi
10f2d63a
VZ
3498
3499
3500 eval "$ac_cv_use_dynlib"
3501 if test "$no_cache" != 1; then
3502 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3503 fi
3504
3505 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3506 echo "$ac_t""yes" 1>&6
10f2d63a 3507 else
698dcdb6 3508 echo "$ac_t""no" 1>&6
10f2d63a 3509 fi
698dcdb6 3510
10f2d63a 3511
698dcdb6 3512 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
a3a584a7 3513echo "configure:3514: checking for --enable-longlong" >&5
10f2d63a
VZ
3514 no_cache=0
3515 # Check whether --enable-longlong or --disable-longlong was given.
3516if test "${enable_longlong+set}" = set; then
3517 enableval="$enable_longlong"
698dcdb6 3518
10f2d63a
VZ
3519 if test "$enableval" = yes; then
3520 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3521 else
3522 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3523 fi
698dcdb6 3524
10f2d63a 3525else
698dcdb6 3526
10f2d63a
VZ
3527 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3528 if test "x$LINE" != x ; then
3529 eval "DEFAULT_$LINE"
3530 else
3531 no_cache=1
3532 fi
3533
3534 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3535
3536fi
10f2d63a
VZ
3537
3538
3539 eval "$ac_cv_use_longlong"
3540 if test "$no_cache" != 1; then
3541 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3542 fi
3543
3544 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3545 echo "$ac_t""yes" 1>&6
10f2d63a 3546 else
698dcdb6 3547 echo "$ac_t""no" 1>&6
10f2d63a 3548 fi
698dcdb6 3549
10f2d63a 3550
698dcdb6 3551 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
a3a584a7 3552echo "configure:3553: checking for --enable-geometry" >&5
e8f65ba6
RR
3553 no_cache=0
3554 # Check whether --enable-geometry or --disable-geometry was given.
3555if test "${enable_geometry+set}" = set; then
3556 enableval="$enable_geometry"
698dcdb6 3557
e8f65ba6
RR
3558 if test "$enableval" = yes; then
3559 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3560 else
3561 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3562 fi
698dcdb6 3563
e8f65ba6 3564else
698dcdb6 3565
e8f65ba6
RR
3566 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3567 if test "x$LINE" != x ; then
3568 eval "DEFAULT_$LINE"
3569 else
3570 no_cache=1
3571 fi
3572
3573 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3574
3575fi
e8f65ba6
RR
3576
3577
3578 eval "$ac_cv_use_geometry"
3579 if test "$no_cache" != 1; then
3580 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3581 fi
3582
3583 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3584 echo "$ac_t""yes" 1>&6
e8f65ba6 3585 else
698dcdb6 3586 echo "$ac_t""no" 1>&6
e8f65ba6 3587 fi
698dcdb6 3588
e8f65ba6 3589
698dcdb6 3590 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
a3a584a7 3591echo "configure:3592: checking for --enable-log" >&5
10f2d63a
VZ
3592 no_cache=0
3593 # Check whether --enable-log or --disable-log was given.
3594if test "${enable_log+set}" = set; then
3595 enableval="$enable_log"
698dcdb6 3596
10f2d63a
VZ
3597 if test "$enableval" = yes; then
3598 ac_cv_use_log='wxUSE_LOG=yes'
3599 else
3600 ac_cv_use_log='wxUSE_LOG=no'
3601 fi
698dcdb6 3602
10f2d63a 3603else
698dcdb6 3604
10f2d63a
VZ
3605 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3606 if test "x$LINE" != x ; then
3607 eval "DEFAULT_$LINE"
3608 else
3609 no_cache=1
3610 fi
3611
3612 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3613
3614fi
10f2d63a
VZ
3615
3616
3617 eval "$ac_cv_use_log"
3618 if test "$no_cache" != 1; then
3619 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3620 fi
3621
3622 if test "$wxUSE_LOG" = yes; then
698dcdb6 3623 echo "$ac_t""yes" 1>&6
10f2d63a 3624 else
698dcdb6 3625 echo "$ac_t""no" 1>&6
10f2d63a 3626 fi
698dcdb6 3627
10f2d63a 3628
698dcdb6 3629 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
a3a584a7 3630echo "configure:3631: checking for --enable-streams" >&5
10f2d63a
VZ
3631 no_cache=0
3632 # Check whether --enable-streams or --disable-streams was given.
3633if test "${enable_streams+set}" = set; then
3634 enableval="$enable_streams"
698dcdb6 3635
10f2d63a
VZ
3636 if test "$enableval" = yes; then
3637 ac_cv_use_streams='wxUSE_STREAMS=yes'
3638 else
3639 ac_cv_use_streams='wxUSE_STREAMS=no'
3640 fi
698dcdb6 3641
10f2d63a 3642else
698dcdb6 3643
10f2d63a
VZ
3644 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3645 if test "x$LINE" != x ; then
3646 eval "DEFAULT_$LINE"
3647 else
3648 no_cache=1
3649 fi
3650
3651 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3652
3653fi
10f2d63a
VZ
3654
3655
3656 eval "$ac_cv_use_streams"
3657 if test "$no_cache" != 1; then
3658 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3659 fi
3660
3661 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3662 echo "$ac_t""yes" 1>&6
10f2d63a 3663 else
698dcdb6 3664 echo "$ac_t""no" 1>&6
10f2d63a 3665 fi
698dcdb6 3666
10f2d63a 3667
698dcdb6 3668 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
a3a584a7 3669echo "configure:3670: checking for --enable-file" >&5
10f2d63a
VZ
3670 no_cache=0
3671 # Check whether --enable-file or --disable-file was given.
3672if test "${enable_file+set}" = set; then
3673 enableval="$enable_file"
698dcdb6 3674
10f2d63a
VZ
3675 if test "$enableval" = yes; then
3676 ac_cv_use_file='wxUSE_FILE=yes'
3677 else
3678 ac_cv_use_file='wxUSE_FILE=no'
3679 fi
698dcdb6 3680
10f2d63a 3681else
698dcdb6 3682
10f2d63a
VZ
3683 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3684 if test "x$LINE" != x ; then
3685 eval "DEFAULT_$LINE"
3686 else
3687 no_cache=1
3688 fi
3689
3690 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3691
3692fi
10f2d63a
VZ
3693
3694
3695 eval "$ac_cv_use_file"
3696 if test "$no_cache" != 1; then
3697 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3698 fi
3699
3700 if test "$wxUSE_FILE" = yes; then
698dcdb6 3701 echo "$ac_t""yes" 1>&6
10f2d63a 3702 else
698dcdb6 3703 echo "$ac_t""no" 1>&6
10f2d63a 3704 fi
698dcdb6 3705
10f2d63a 3706
1e6feb95 3707 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
a3a584a7 3708echo "configure:3709: checking for --enable-ffile" >&5
10f2d63a 3709 no_cache=0
1e6feb95
VZ
3710 # Check whether --enable-ffile or --disable-ffile was given.
3711if test "${enable_ffile+set}" = set; then
3712 enableval="$enable_ffile"
698dcdb6 3713
10f2d63a 3714 if test "$enableval" = yes; then
1e6feb95 3715 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3716 else
1e6feb95 3717 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3718 fi
698dcdb6 3719
10f2d63a 3720else
698dcdb6 3721
1e6feb95 3722 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3723 if test "x$LINE" != x ; then
3724 eval "DEFAULT_$LINE"
3725 else
3726 no_cache=1
3727 fi
3728
1e6feb95 3729 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3730
3731fi
10f2d63a
VZ
3732
3733
1e6feb95 3734 eval "$ac_cv_use_ffile"
10f2d63a 3735 if test "$no_cache" != 1; then
1e6feb95 3736 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3737 fi
3738
1e6feb95 3739 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3740 echo "$ac_t""yes" 1>&6
10f2d63a 3741 else
698dcdb6 3742 echo "$ac_t""no" 1>&6
10f2d63a 3743 fi
698dcdb6 3744
10f2d63a 3745
a3a584a7
VZ
3746 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
3747echo "configure:3748: checking for --enable-textbuf" >&5
3748 no_cache=0
3749 # Check whether --enable-textbuf or --disable-textbuf was given.
3750if test "${enable_textbuf+set}" = set; then
3751 enableval="$enable_textbuf"
3752
3753 if test "$enableval" = yes; then
3754 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3755 else
3756 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
3757 fi
3758
3759else
3760
3761 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
3762 if test "x$LINE" != x ; then
3763 eval "DEFAULT_$LINE"
3764 else
3765 no_cache=1
3766 fi
3767
3768 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
3769
3770fi
3771
3772
3773 eval "$ac_cv_use_textbuf"
3774 if test "$no_cache" != 1; then
3775 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
3776 fi
3777
3778 if test "$wxUSE_TEXTBUFFER" = yes; then
3779 echo "$ac_t""yes" 1>&6
3780 else
3781 echo "$ac_t""no" 1>&6
3782 fi
3783
3784
1e6feb95 3785 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
a3a584a7 3786echo "configure:3787: checking for --enable-textfile" >&5
10f2d63a 3787 no_cache=0
1e6feb95
VZ
3788 # Check whether --enable-textfile or --disable-textfile was given.
3789if test "${enable_textfile+set}" = set; then
3790 enableval="$enable_textfile"
698dcdb6 3791
10f2d63a 3792 if test "$enableval" = yes; then
1e6feb95 3793 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 3794 else
1e6feb95 3795 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 3796 fi
698dcdb6 3797
10f2d63a 3798else
698dcdb6 3799
1e6feb95 3800 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3801 if test "x$LINE" != x ; then
3802 eval "DEFAULT_$LINE"
3803 else
3804 no_cache=1
3805 fi
3806
1e6feb95 3807 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
3808
3809fi
10f2d63a
VZ
3810
3811
1e6feb95 3812 eval "$ac_cv_use_textfile"
10f2d63a 3813 if test "$no_cache" != 1; then
1e6feb95 3814 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3815 fi
3816
1e6feb95 3817 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 3818 echo "$ac_t""yes" 1>&6
10f2d63a 3819 else
698dcdb6 3820 echo "$ac_t""no" 1>&6
10f2d63a 3821 fi
698dcdb6 3822
10f2d63a 3823
1e6feb95 3824 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
a3a584a7 3825echo "configure:3826: checking for --enable-fontmap" >&5
10f2d63a 3826 no_cache=0
1e6feb95
VZ
3827 # Check whether --enable-fontmap or --disable-fontmap was given.
3828if test "${enable_fontmap+set}" = set; then
3829 enableval="$enable_fontmap"
698dcdb6 3830
10f2d63a 3831 if test "$enableval" = yes; then
1e6feb95 3832 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 3833 else
1e6feb95 3834 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 3835 fi
698dcdb6 3836
10f2d63a 3837else
698dcdb6 3838
1e6feb95 3839 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
3840 if test "x$LINE" != x ; then
3841 eval "DEFAULT_$LINE"
3842 else
3843 no_cache=1
3844 fi
3845
1e6feb95 3846 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
3847
3848fi
10f2d63a
VZ
3849
3850
1e6feb95 3851 eval "$ac_cv_use_fontmap"
10f2d63a 3852 if test "$no_cache" != 1; then
1e6feb95 3853 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3854 fi
3855
1e6feb95 3856 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 3857 echo "$ac_t""yes" 1>&6
10f2d63a 3858 else
698dcdb6 3859 echo "$ac_t""no" 1>&6
10f2d63a 3860 fi
698dcdb6 3861
10f2d63a 3862
1e6feb95 3863 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
a3a584a7 3864echo "configure:3865: checking for --enable-unicode" >&5
10f2d63a 3865 no_cache=0
1e6feb95
VZ
3866 # Check whether --enable-unicode or --disable-unicode was given.
3867if test "${enable_unicode+set}" = set; then
3868 enableval="$enable_unicode"
3869
3870 if test "$enableval" = yes; then
3871 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3872 else
3873 ac_cv_use_unicode='wxUSE_UNICODE=no'
3874 fi
3875
3876else
3877
3878 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3879 if test "x$LINE" != x ; then
3880 eval "DEFAULT_$LINE"
3881 else
3882 no_cache=1
3883 fi
3884
3885 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3886
3887fi
3888
3889
3890 eval "$ac_cv_use_unicode"
3891 if test "$no_cache" != 1; then
3892 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3893 fi
3894
3895 if test "$wxUSE_UNICODE" = yes; then
3896 echo "$ac_t""yes" 1>&6
3897 else
3898 echo "$ac_t""no" 1>&6
3899 fi
3900
3901
1e6feb95 3902 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
a3a584a7 3903echo "configure:3904: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
3904 no_cache=0
3905 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3906if test "${enable_wxprintfv+set}" = set; then
3907 enableval="$enable_wxprintfv"
3908
3909 if test "$enableval" = yes; then
10f2d63a
VZ
3910 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3911 else
3912 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3913 fi
698dcdb6 3914
10f2d63a 3915else
698dcdb6 3916
10f2d63a
VZ
3917 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3918 if test "x$LINE" != x ; then
3919 eval "DEFAULT_$LINE"
3920 else
3921 no_cache=1
3922 fi
3923
3924 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
3925
3926fi
10f2d63a
VZ
3927
3928
3929 eval "$ac_cv_use_wxprintfv"
3930 if test "$no_cache" != 1; then
3931 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3932 fi
3933
3934 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 3935 echo "$ac_t""yes" 1>&6
10f2d63a 3936 else
698dcdb6 3937 echo "$ac_t""no" 1>&6
10f2d63a 3938 fi
698dcdb6 3939
10f2d63a 3940
698dcdb6 3941 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
a3a584a7 3942echo "configure:3943: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
3943 no_cache=0
3944 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3945if test "${enable_std_iostreams+set}" = set; then
3946 enableval="$enable_std_iostreams"
698dcdb6 3947
10f2d63a
VZ
3948 if test "$enableval" = yes; then
3949 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3950 else
3951 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3952 fi
698dcdb6 3953
10f2d63a 3954else
698dcdb6 3955
10f2d63a
VZ
3956 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3957 if test "x$LINE" != x ; then
3958 eval "DEFAULT_$LINE"
3959 else
3960 no_cache=1
3961 fi
3962
3963 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
3964
3965fi
10f2d63a
VZ
3966
3967
3968 eval "$ac_cv_use_std_iostreams"
3969 if test "$no_cache" != 1; then
3970 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3971 fi
3972
3973 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 3974 echo "$ac_t""yes" 1>&6
10f2d63a 3975 else
698dcdb6 3976 echo "$ac_t""no" 1>&6
10f2d63a 3977 fi
698dcdb6 3978
10f2d63a 3979
698dcdb6 3980 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
a3a584a7 3981echo "configure:3982: checking for --enable-filesystem" >&5
24528b0c
VS
3982 no_cache=0
3983 # Check whether --enable-filesystem or --disable-filesystem was given.
3984if test "${enable_filesystem+set}" = set; then
3985 enableval="$enable_filesystem"
698dcdb6 3986
24528b0c
VS
3987 if test "$enableval" = yes; then
3988 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3989 else
3990 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3991 fi
698dcdb6 3992
24528b0c 3993else
698dcdb6 3994
24528b0c
VS
3995 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3996 if test "x$LINE" != x ; then
3997 eval "DEFAULT_$LINE"
3998 else
3999 no_cache=1
4000 fi
4001
4002 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
4003
4004fi
24528b0c
VS
4005
4006
4007 eval "$ac_cv_use_filesystem"
4008 if test "$no_cache" != 1; then
4009 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4010 fi
4011
4012 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 4013 echo "$ac_t""yes" 1>&6
24528b0c 4014 else
698dcdb6 4015 echo "$ac_t""no" 1>&6
24528b0c 4016 fi
698dcdb6 4017
24528b0c 4018
698dcdb6 4019 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
a3a584a7 4020echo "configure:4021: checking for --enable-fs_inet" >&5
10f2d63a
VZ
4021 no_cache=0
4022 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4023if test "${enable_fs_inet+set}" = set; then
4024 enableval="$enable_fs_inet"
698dcdb6 4025
10f2d63a
VZ
4026 if test "$enableval" = yes; then
4027 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4028 else
4029 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4030 fi
698dcdb6 4031
10f2d63a 4032else
698dcdb6 4033
10f2d63a
VZ
4034 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4035 if test "x$LINE" != x ; then
4036 eval "DEFAULT_$LINE"
4037 else
4038 no_cache=1
4039 fi
4040
4041 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
4042
4043fi
10f2d63a
VZ
4044
4045
4046 eval "$ac_cv_use_fs_inet"
4047 if test "$no_cache" != 1; then
4048 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4049 fi
4050
4051 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 4052 echo "$ac_t""yes" 1>&6
10f2d63a 4053 else
698dcdb6 4054 echo "$ac_t""no" 1>&6
10f2d63a 4055 fi
698dcdb6 4056
10f2d63a 4057
698dcdb6 4058 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
a3a584a7 4059echo "configure:4060: checking for --enable-fs_zip" >&5
10f2d63a
VZ
4060 no_cache=0
4061 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4062if test "${enable_fs_zip+set}" = set; then
4063 enableval="$enable_fs_zip"
698dcdb6 4064
10f2d63a
VZ
4065 if test "$enableval" = yes; then
4066 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4067 else
4068 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4069 fi
698dcdb6 4070
10f2d63a 4071else
698dcdb6 4072
10f2d63a
VZ
4073 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4074 if test "x$LINE" != x ; then
4075 eval "DEFAULT_$LINE"
4076 else
4077 no_cache=1
4078 fi
4079
4080 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
4081
4082fi
10f2d63a
VZ
4083
4084
4085 eval "$ac_cv_use_fs_zip"
4086 if test "$no_cache" != 1; then
4087 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4088 fi
4089
4090 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 4091 echo "$ac_t""yes" 1>&6
10f2d63a 4092 else
698dcdb6 4093 echo "$ac_t""no" 1>&6
10f2d63a 4094 fi
698dcdb6 4095
10f2d63a 4096
698dcdb6 4097 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
a3a584a7 4098echo "configure:4099: checking for --enable-zipstream" >&5
10f2d63a
VZ
4099 no_cache=0
4100 # Check whether --enable-zipstream or --disable-zipstream was given.
4101if test "${enable_zipstream+set}" = set; then
4102 enableval="$enable_zipstream"
698dcdb6 4103
10f2d63a
VZ
4104 if test "$enableval" = yes; then
4105 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4106 else
4107 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4108 fi
698dcdb6 4109
10f2d63a 4110else
698dcdb6 4111
10f2d63a
VZ
4112 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4113 if test "x$LINE" != x ; then
4114 eval "DEFAULT_$LINE"
4115 else
4116 no_cache=1
4117 fi
4118
4119 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4120
4121fi
10f2d63a
VZ
4122
4123
4124 eval "$ac_cv_use_zipstream"
4125 if test "$no_cache" != 1; then
4126 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4127 fi
4128
4129 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4130 echo "$ac_t""yes" 1>&6
10f2d63a 4131 else
698dcdb6 4132 echo "$ac_t""no" 1>&6
10f2d63a 4133 fi
698dcdb6 4134
10f2d63a 4135
698dcdb6
VZ
4136
4137 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
a3a584a7 4138echo "configure:4139: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4139 no_cache=0
4140 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4141if test "${enable_catch_segvs+set}" = set; then
4142 enableval="$enable_catch_segvs"
698dcdb6 4143
eb4efbdc
VZ
4144 if test "$enableval" = yes; then
4145 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4146 else
4147 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4148 fi
698dcdb6 4149
eb4efbdc 4150else
698dcdb6 4151
eb4efbdc
VZ
4152 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4153 if test "x$LINE" != x ; then
4154 eval "DEFAULT_$LINE"
4155 else
4156 no_cache=1
4157 fi
4158
4159 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4160
4161fi
eb4efbdc
VZ
4162
4163
4164 eval "$ac_cv_use_catch_segvs"
4165 if test "$no_cache" != 1; then
4166 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4167 fi
4168
4169 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4170 echo "$ac_t""yes" 1>&6
eb4efbdc 4171 else
698dcdb6 4172 echo "$ac_t""no" 1>&6
eb4efbdc 4173 fi
698dcdb6 4174
eb4efbdc 4175
698dcdb6 4176 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
a3a584a7 4177echo "configure:4178: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4178 no_cache=0
4179 # Check whether --enable-snglinst or --disable-snglinst was given.
4180if test "${enable_snglinst+set}" = set; then
4181 enableval="$enable_snglinst"
698dcdb6 4182
4f3c5f06
VZ
4183 if test "$enableval" = yes; then
4184 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4185 else
4186 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4187 fi
698dcdb6 4188
4f3c5f06 4189else
698dcdb6 4190
4f3c5f06
VZ
4191 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4192 if test "x$LINE" != x ; then
4193 eval "DEFAULT_$LINE"
4194 else
4195 no_cache=1
4196 fi
4197
4198 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4199
4200fi
4f3c5f06
VZ
4201
4202
4203 eval "$ac_cv_use_snglinst"
4204 if test "$no_cache" != 1; then
4205 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4206 fi
4207
4208 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4209 echo "$ac_t""yes" 1>&6
4f3c5f06 4210 else
698dcdb6 4211 echo "$ac_t""no" 1>&6
4f3c5f06 4212 fi
698dcdb6
VZ
4213
4214
eb4efbdc 4215
1e6feb95 4216 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
a3a584a7 4217echo "configure:4218: checking for --enable-mimetype" >&5
1e6feb95
VZ
4218 no_cache=0
4219 # Check whether --enable-mimetype or --disable-mimetype was given.
4220if test "${enable_mimetype+set}" = set; then
4221 enableval="$enable_mimetype"
4222
4223 if test "$enableval" = yes; then
4224 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4225 else
4226 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4227 fi
4228
4229else
4230
4231 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4232 if test "x$LINE" != x ; then
4233 eval "DEFAULT_$LINE"
4234 else
4235 no_cache=1
4236 fi
4237
4238 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4239
4240fi
4241
4242
4243 eval "$ac_cv_use_mimetype"
4244 if test "$no_cache" != 1; then
4245 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4246 fi
4247
4248 if test "$wxUSE_MIMETYPE" = yes; then
4249 echo "$ac_t""yes" 1>&6
4250 else
4251 echo "$ac_t""no" 1>&6
4252 fi
4253
4254
3e44f09d 4255 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
a3a584a7 4256echo "configure:4257: checking for --enable-system_options" >&5
3e44f09d
VZ
4257 no_cache=0
4258 # Check whether --enable-system_options or --disable-system_options was given.
4259if test "${enable_system_options+set}" = set; then
4260 enableval="$enable_system_options"
4261
4262 if test "$enableval" = yes; then
4263 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4264 else
4265 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4266 fi
4267
4268else
4269
4270 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4271 if test "x$LINE" != x ; then
4272 eval "DEFAULT_$LINE"
4273 else
4274 no_cache=1
4275 fi
4276
4277 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4278
4279fi
4280
4281
4282 eval "$ac_cv_use_system_options"
4283 if test "$no_cache" != 1; then
4284 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4285 fi
4286
4287 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4288 echo "$ac_t""yes" 1>&6
4289 else
4290 echo "$ac_t""no" 1>&6
4291 fi
4292
4293
1e6feb95 4294
698dcdb6
VZ
4295
4296 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
a3a584a7 4297echo "configure:4298: checking for --enable-threads" >&5
10f2d63a
VZ
4298 no_cache=0
4299 # Check whether --enable-threads or --disable-threads was given.
4300if test "${enable_threads+set}" = set; then
4301 enableval="$enable_threads"
698dcdb6 4302
10f2d63a
VZ
4303 if test "$enableval" = yes; then
4304 ac_cv_use_threads='wxUSE_THREADS=yes'
4305 else
4306 ac_cv_use_threads='wxUSE_THREADS=no'
4307 fi
698dcdb6 4308
10f2d63a 4309else
698dcdb6 4310
10f2d63a
VZ
4311 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4312 if test "x$LINE" != x ; then
4313 eval "DEFAULT_$LINE"
4314 else
4315 no_cache=1
4316 fi
4317
4318 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4319
4320fi
10f2d63a
VZ
4321
4322
4323 eval "$ac_cv_use_threads"
4324 if test "$no_cache" != 1; then
4325 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4326 fi
4327
4328 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4329 echo "$ac_t""yes" 1>&6
10f2d63a 4330 else
698dcdb6 4331 echo "$ac_t""no" 1>&6
10f2d63a 4332 fi
698dcdb6 4333
10f2d63a 4334
698dcdb6 4335 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
a3a584a7 4336echo "configure:4337: checking for --enable-serial" >&5
10f2d63a
VZ
4337 no_cache=0
4338 # Check whether --enable-serial or --disable-serial was given.
4339if test "${enable_serial+set}" = set; then
4340 enableval="$enable_serial"
698dcdb6 4341
10f2d63a
VZ
4342 if test "$enableval" = yes; then
4343 ac_cv_use_serial='wxUSE_SERIAL=yes'
4344 else
4345 ac_cv_use_serial='wxUSE_SERIAL=no'
4346 fi
698dcdb6 4347
10f2d63a 4348else
698dcdb6 4349
10f2d63a
VZ
4350 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4351 if test "x$LINE" != x ; then
4352 eval "DEFAULT_$LINE"
4353 else
4354 no_cache=1
4355 fi
4356
4357 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
698dcdb6
VZ
4358
4359fi
10f2d63a
VZ
4360
4361
4362 eval "$ac_cv_use_serial"
4363 if test "$no_cache" != 1; then
4364 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4365 fi
4366
4367 if test "$wxUSE_SERIAL" = yes; then
698dcdb6 4368 echo "$ac_t""yes" 1>&6
10f2d63a 4369 else
698dcdb6 4370 echo "$ac_t""no" 1>&6
10f2d63a 4371 fi
698dcdb6 4372
10f2d63a 4373
b12915c1
VZ
4374if test "$wxUSE_GUI" = "yes"; then
4375
698dcdb6
VZ
4376
4377
4378 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
a3a584a7 4379echo "configure:4380: checking for --enable-docview" >&5
10f2d63a
VZ
4380 no_cache=0
4381 # Check whether --enable-docview or --disable-docview was given.
4382if test "${enable_docview+set}" = set; then
4383 enableval="$enable_docview"
698dcdb6 4384
10f2d63a
VZ
4385 if test "$enableval" = yes; then
4386 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4387 else
4388 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4389 fi
698dcdb6 4390
10f2d63a 4391else
698dcdb6 4392
10f2d63a
VZ
4393 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4394 if test "x$LINE" != x ; then
4395 eval "DEFAULT_$LINE"
4396 else
4397 no_cache=1
4398 fi
4399
4400 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4401
4402fi
10f2d63a
VZ
4403
4404
4405 eval "$ac_cv_use_docview"
4406 if test "$no_cache" != 1; then
4407 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4408 fi
4409
4410 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4411 echo "$ac_t""yes" 1>&6
10f2d63a 4412 else
698dcdb6 4413 echo "$ac_t""no" 1>&6
10f2d63a 4414 fi
698dcdb6 4415
10f2d63a 4416
698dcdb6 4417 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
a3a584a7 4418echo "configure:4419: checking for --enable-help" >&5
10f2d63a
VZ
4419 no_cache=0
4420 # Check whether --enable-help or --disable-help was given.
4421if test "${enable_help+set}" = set; then
4422 enableval="$enable_help"
698dcdb6 4423
10f2d63a
VZ
4424 if test "$enableval" = yes; then
4425 ac_cv_use_help='wxUSE_HELP=yes'
4426 else
4427 ac_cv_use_help='wxUSE_HELP=no'
4428 fi
698dcdb6 4429
10f2d63a 4430else
698dcdb6 4431
10f2d63a
VZ
4432 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4433 if test "x$LINE" != x ; then
4434 eval "DEFAULT_$LINE"
4435 else
4436 no_cache=1
4437 fi
4438
4439 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4440
4441fi
10f2d63a
VZ
4442
4443
4444 eval "$ac_cv_use_help"
4445 if test "$no_cache" != 1; then
4446 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4447 fi
4448
4449 if test "$wxUSE_HELP" = yes; then
698dcdb6 4450 echo "$ac_t""yes" 1>&6
10f2d63a 4451 else
698dcdb6 4452 echo "$ac_t""no" 1>&6
10f2d63a 4453 fi
698dcdb6 4454
10f2d63a 4455
29fd3c0c 4456 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
a3a584a7 4457echo "configure:4458: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4458 no_cache=0
4459 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4460if test "${enable_mshtmlhelp+set}" = set; then
4461 enableval="$enable_mshtmlhelp"
4462
4463 if test "$enableval" = yes; then
4464 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4465 else
4466 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4467 fi
4468
4469else
4470
4471 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4472 if test "x$LINE" != x ; then
4473 eval "DEFAULT_$LINE"
4474 else
4475 no_cache=1
4476 fi
4477
4478 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4479
4480fi
4481
4482
4483 eval "$ac_cv_use_mshtmlhelp"
4484 if test "$no_cache" != 1; then
4485 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4486 fi
4487
4488 if test "$wxUSE_MS_HTML_HELP" = yes; then
4489 echo "$ac_t""yes" 1>&6
4490 else
4491 echo "$ac_t""no" 1>&6
4492 fi
4493
4494
3379ed37 4495 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
a3a584a7 4496echo "configure:4497: checking for --enable-html" >&5
3379ed37
VZ
4497 no_cache=0
4498 # Check whether --enable-html or --disable-html was given.
4499if test "${enable_html+set}" = set; then
4500 enableval="$enable_html"
4501
4502 if test "$enableval" = yes; then
4503 ac_cv_use_html='wxUSE_HTML=yes'
4504 else
4505 ac_cv_use_html='wxUSE_HTML=no'
4506 fi
4507
4508else
4509
4510 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4511 if test "x$LINE" != x ; then
4512 eval "DEFAULT_$LINE"
4513 else
4514 no_cache=1
4515 fi
4516
4517 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4518
4519fi
4520
4521
4522 eval "$ac_cv_use_html"
4523 if test "$no_cache" != 1; then
4524 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4525 fi
4526
4527 if test "$wxUSE_HTML" = yes; then
4528 echo "$ac_t""yes" 1>&6
4529 else
4530 echo "$ac_t""no" 1>&6
4531 fi
4532
4533
4534 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
a3a584a7 4535echo "configure:4536: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4536 no_cache=0
4537 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4538if test "${enable_htmlhelp+set}" = set; then
4539 enableval="$enable_htmlhelp"
4540
4541 if test "$enableval" = yes; then
4542 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4543 else
4544 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4545 fi
4546
4547else
4548
4549 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4550 if test "x$LINE" != x ; then
4551 eval "DEFAULT_$LINE"
4552 else
4553 no_cache=1
4554 fi
4555
4556 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4557
4558fi
4559
4560
4561 eval "$ac_cv_use_htmlhelp"
4562 if test "$no_cache" != 1; then
4563 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4564 fi
4565
4566 if test "$wxUSE_WXHTML_HELP" = yes; then
4567 echo "$ac_t""yes" 1>&6
4568 else
4569 echo "$ac_t""no" 1>&6
4570 fi
4571
4572
698dcdb6 4573 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
a3a584a7 4574echo "configure:4575: checking for --enable-constraints" >&5
10f2d63a
VZ
4575 no_cache=0
4576 # Check whether --enable-constraints or --disable-constraints was given.
4577if test "${enable_constraints+set}" = set; then
4578 enableval="$enable_constraints"
698dcdb6 4579
10f2d63a
VZ
4580 if test "$enableval" = yes; then
4581 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4582 else
4583 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4584 fi
698dcdb6 4585
10f2d63a 4586else
698dcdb6 4587
10f2d63a
VZ
4588 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4589 if test "x$LINE" != x ; then
4590 eval "DEFAULT_$LINE"
4591 else
4592 no_cache=1
4593 fi
4594
4595 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
4596
4597fi
10f2d63a
VZ
4598
4599
4600 eval "$ac_cv_use_constraints"
4601 if test "$no_cache" != 1; then
4602 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4603 fi
4604
4605 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 4606 echo "$ac_t""yes" 1>&6
10f2d63a 4607 else
698dcdb6 4608 echo "$ac_t""no" 1>&6
10f2d63a 4609 fi
698dcdb6 4610
10f2d63a 4611
698dcdb6 4612 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
a3a584a7 4613echo "configure:4614: checking for --enable-printarch" >&5
10f2d63a
VZ
4614 no_cache=0
4615 # Check whether --enable-printarch or --disable-printarch was given.
4616if test "${enable_printarch+set}" = set; then
4617 enableval="$enable_printarch"
698dcdb6 4618
10f2d63a
VZ
4619 if test "$enableval" = yes; then
4620 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4621 else
4622 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4623 fi
698dcdb6 4624
10f2d63a 4625else
698dcdb6 4626
10f2d63a
VZ
4627 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4628 if test "x$LINE" != x ; then
4629 eval "DEFAULT_$LINE"
4630 else
4631 no_cache=1
4632 fi
4633
4634 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
4635
4636fi
10f2d63a
VZ
4637
4638
4639 eval "$ac_cv_use_printarch"
4640 if test "$no_cache" != 1; then
4641 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4642 fi
4643
4644 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 4645 echo "$ac_t""yes" 1>&6
10f2d63a 4646 else
698dcdb6 4647 echo "$ac_t""no" 1>&6
10f2d63a 4648 fi
698dcdb6 4649
10f2d63a 4650
698dcdb6 4651 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
a3a584a7 4652echo "configure:4653: checking for --enable-mdi" >&5
10f2d63a
VZ
4653 no_cache=0
4654 # Check whether --enable-mdi or --disable-mdi was given.
4655if test "${enable_mdi+set}" = set; then
4656 enableval="$enable_mdi"
698dcdb6 4657
10f2d63a
VZ
4658 if test "$enableval" = yes; then
4659 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4660 else
4661 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4662 fi
698dcdb6 4663
10f2d63a 4664else
698dcdb6 4665
10f2d63a
VZ
4666 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4667 if test "x$LINE" != x ; then
4668 eval "DEFAULT_$LINE"
4669 else
4670 no_cache=1
4671 fi
4672
4673 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
4674
4675fi
10f2d63a
VZ
4676
4677
4678 eval "$ac_cv_use_mdi"
4679 if test "$no_cache" != 1; then
4680 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4681 fi
4682
4683 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 4684 echo "$ac_t""yes" 1>&6
10f2d63a 4685 else
698dcdb6 4686 echo "$ac_t""no" 1>&6
10f2d63a 4687 fi
698dcdb6
VZ
4688
4689
1e6feb95 4690 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
a3a584a7 4691echo "configure:4692: checking for --enable-loggui" >&5
1e6feb95
VZ
4692 no_cache=0
4693 # Check whether --enable-loggui or --disable-loggui was given.
4694if test "${enable_loggui+set}" = set; then
4695 enableval="$enable_loggui"
4696
4697 if test "$enableval" = yes; then
4698 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4699 else
4700 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4701 fi
4702
4703else
4704
4705 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4706 if test "x$LINE" != x ; then
4707 eval "DEFAULT_$LINE"
4708 else
4709 no_cache=1
4710 fi
4711
4712 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4713
4714fi
4715
4716
4717 eval "$ac_cv_use_loggui"
4718 if test "$no_cache" != 1; then
4719 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4720 fi
4721
4722 if test "$wxUSE_LOGGUI" = yes; then
4723 echo "$ac_t""yes" 1>&6
4724 else
4725 echo "$ac_t""no" 1>&6
4726 fi
4727
4728
4729 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
a3a584a7 4730echo "configure:4731: checking for --enable-logwin" >&5
1e6feb95
VZ
4731 no_cache=0
4732 # Check whether --enable-logwin or --disable-logwin was given.
4733if test "${enable_logwin+set}" = set; then
4734 enableval="$enable_logwin"
4735
4736 if test "$enableval" = yes; then
4737 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4738 else
4739 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4740 fi
4741
4742else
4743
4744 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4745 if test "x$LINE" != x ; then
4746 eval "DEFAULT_$LINE"
4747 else
4748 no_cache=1
4749 fi
4750
4751 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4752
4753fi
4754
4755
4756 eval "$ac_cv_use_logwin"
4757 if test "$no_cache" != 1; then
4758 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4759 fi
4760
4761 if test "$wxUSE_LOGWINDOW" = yes; then
4762 echo "$ac_t""yes" 1>&6
4763 else
4764 echo "$ac_t""no" 1>&6
4765 fi
4766
4767
10f2d63a 4768
698dcdb6 4769 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
a3a584a7 4770echo "configure:4771: checking for --enable-postscript" >&5
10f2d63a
VZ
4771 no_cache=0
4772 # Check whether --enable-postscript or --disable-postscript was given.
4773if test "${enable_postscript+set}" = set; then
4774 enableval="$enable_postscript"
698dcdb6 4775
10f2d63a
VZ
4776 if test "$enableval" = yes; then
4777 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4778 else
4779 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4780 fi
698dcdb6 4781
10f2d63a 4782else
698dcdb6 4783
10f2d63a
VZ
4784 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4785 if test "x$LINE" != x ; then
4786 eval "DEFAULT_$LINE"
4787 else
4788 no_cache=1
4789 fi
4790
4791 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
4792
4793fi
10f2d63a
VZ
4794
4795
4796 eval "$ac_cv_use_postscript"
4797 if test "$no_cache" != 1; then
4798 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4799 fi
4800
4801 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 4802 echo "$ac_t""yes" 1>&6
10f2d63a 4803 else
698dcdb6 4804 echo "$ac_t""no" 1>&6
10f2d63a 4805 fi
698dcdb6
VZ
4806
4807
4808
10f2d63a 4809
1e6feb95 4810
698dcdb6 4811 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
a3a584a7 4812echo "configure:4813: checking for --enable-prologio" >&5
10f2d63a
VZ
4813 no_cache=0
4814 # Check whether --enable-prologio or --disable-prologio was given.
4815if test "${enable_prologio+set}" = set; then
4816 enableval="$enable_prologio"
698dcdb6 4817
10f2d63a
VZ
4818 if test "$enableval" = yes; then
4819 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4820 else
4821 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4822 fi
698dcdb6 4823
10f2d63a 4824else
698dcdb6 4825
10f2d63a
VZ
4826 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4827 if test "x$LINE" != x ; then
4828 eval "DEFAULT_$LINE"
4829 else
4830 no_cache=1
4831 fi
4832
4833 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
4834
4835fi
10f2d63a
VZ
4836
4837
4838 eval "$ac_cv_use_prologio"
4839 if test "$no_cache" != 1; then
4840 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4841 fi
4842
4843 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 4844 echo "$ac_t""yes" 1>&6
10f2d63a 4845 else
698dcdb6 4846 echo "$ac_t""no" 1>&6
10f2d63a 4847 fi
698dcdb6 4848
10f2d63a 4849
698dcdb6 4850 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
a3a584a7 4851echo "configure:4852: checking for --enable-resources" >&5
10f2d63a
VZ
4852 no_cache=0
4853 # Check whether --enable-resources or --disable-resources was given.
4854if test "${enable_resources+set}" = set; then
4855 enableval="$enable_resources"
698dcdb6 4856
10f2d63a
VZ
4857 if test "$enableval" = yes; then
4858 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4859 else
4860 ac_cv_use_resources='wxUSE_RESOURCES=no'
4861 fi
698dcdb6 4862
10f2d63a 4863else
698dcdb6 4864
10f2d63a
VZ
4865 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4866 if test "x$LINE" != x ; then
4867 eval "DEFAULT_$LINE"
4868 else
4869 no_cache=1
4870 fi
4871
4872 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
4873
4874fi
10f2d63a
VZ
4875
4876
4877 eval "$ac_cv_use_resources"
4878 if test "$no_cache" != 1; then
4879 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4880 fi
4881
4882 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 4883 echo "$ac_t""yes" 1>&6
10f2d63a 4884 else
698dcdb6 4885 echo "$ac_t""no" 1>&6
10f2d63a 4886 fi
698dcdb6 4887
10f2d63a 4888
698dcdb6
VZ
4889
4890 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
a3a584a7 4891echo "configure:4892: checking for --enable-xresources" >&5
10f2d63a
VZ
4892 no_cache=0
4893 # Check whether --enable-xresources or --disable-xresources was given.
4894if test "${enable_xresources+set}" = set; then
4895 enableval="$enable_xresources"
698dcdb6 4896
10f2d63a
VZ
4897 if test "$enableval" = yes; then
4898 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4899 else
4900 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4901 fi
698dcdb6 4902
10f2d63a 4903else
698dcdb6 4904
10f2d63a
VZ
4905 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4906 if test "x$LINE" != x ; then
4907 eval "DEFAULT_$LINE"
4908 else
4909 no_cache=1
4910 fi
4911
4912 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
4913
4914fi
10f2d63a
VZ
4915
4916
4917 eval "$ac_cv_use_xresources"
4918 if test "$no_cache" != 1; then
4919 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4920 fi
4921
4922 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 4923 echo "$ac_t""yes" 1>&6
10f2d63a 4924 else
698dcdb6 4925 echo "$ac_t""no" 1>&6
10f2d63a 4926 fi
698dcdb6
VZ
4927
4928
10f2d63a 4929
698dcdb6
VZ
4930
4931 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
a3a584a7 4932echo "configure:4933: checking for --enable-clipboard" >&5
10f2d63a
VZ
4933 no_cache=0
4934 # Check whether --enable-clipboard or --disable-clipboard was given.
4935if test "${enable_clipboard+set}" = set; then
4936 enableval="$enable_clipboard"
698dcdb6 4937
10f2d63a
VZ
4938 if test "$enableval" = yes; then
4939 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4940 else
4941 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4942 fi
698dcdb6 4943
10f2d63a 4944else
698dcdb6 4945
10f2d63a
VZ
4946 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4947 if test "x$LINE" != x ; then
4948 eval "DEFAULT_$LINE"
4949 else
4950 no_cache=1
4951 fi
4952
4953 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
4954
4955fi
10f2d63a
VZ
4956
4957
4958 eval "$ac_cv_use_clipboard"
4959 if test "$no_cache" != 1; then
4960 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4961 fi
4962
4963 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 4964 echo "$ac_t""yes" 1>&6
10f2d63a 4965 else
698dcdb6 4966 echo "$ac_t""no" 1>&6
10f2d63a 4967 fi
698dcdb6 4968
10f2d63a 4969
698dcdb6 4970 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
a3a584a7 4971echo "configure:4972: checking for --enable-dnd" >&5
10f2d63a
VZ
4972 no_cache=0
4973 # Check whether --enable-dnd or --disable-dnd was given.
4974if test "${enable_dnd+set}" = set; then
4975 enableval="$enable_dnd"
698dcdb6 4976
10f2d63a
VZ
4977 if test "$enableval" = yes; then
4978 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4979 else
4980 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4981 fi
698dcdb6 4982
10f2d63a 4983else
698dcdb6 4984
10f2d63a
VZ
4985 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4986 if test "x$LINE" != x ; then
4987 eval "DEFAULT_$LINE"
4988 else
4989 no_cache=1
4990 fi
4991
4992 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
4993
4994fi
10f2d63a
VZ
4995
4996
4997 eval "$ac_cv_use_dnd"
4998 if test "$no_cache" != 1; then
4999 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5000 fi
5001
5002 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 5003 echo "$ac_t""yes" 1>&6
10f2d63a 5004 else
698dcdb6 5005 echo "$ac_t""no" 1>&6
10f2d63a 5006 fi
698dcdb6 5007
10f2d63a 5008
698dcdb6 5009 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
a3a584a7 5010echo "configure:5011: checking for --enable-metafile" >&5
b64f0a5f
RL
5011 no_cache=0
5012 # Check whether --enable-metafile or --disable-metafile was given.
5013if test "${enable_metafile+set}" = set; then
5014 enableval="$enable_metafile"
698dcdb6 5015
b64f0a5f
RL
5016 if test "$enableval" = yes; then
5017 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5018 else
5019 ac_cv_use_metafile='wxUSE_METAFILE=no'
5020 fi
698dcdb6 5021
b64f0a5f 5022else
698dcdb6 5023
b64f0a5f
RL
5024 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5025 if test "x$LINE" != x ; then
5026 eval "DEFAULT_$LINE"
5027 else
5028 no_cache=1
5029 fi
5030
5031 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
5032
5033fi
b64f0a5f
RL
5034
5035
5036 eval "$ac_cv_use_metafile"
5037 if test "$no_cache" != 1; then
5038 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5039 fi
5040
5041 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 5042 echo "$ac_t""yes" 1>&6
b64f0a5f 5043 else
698dcdb6 5044 echo "$ac_t""no" 1>&6
b64f0a5f 5045 fi
698dcdb6
VZ
5046
5047
10f2d63a 5048
24176f2c 5049 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
a3a584a7 5050echo "configure:5051: checking for --enable-treelayout" >&5
10f2d63a 5051 no_cache=0
24176f2c
GD
5052 # Check whether --enable-treelayout or --disable-treelayout was given.
5053if test "${enable_treelayout+set}" = set; then
5054 enableval="$enable_treelayout"
698dcdb6 5055
10f2d63a 5056 if test "$enableval" = yes; then
24176f2c 5057 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5058 else
24176f2c 5059 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5060 fi
698dcdb6 5061
10f2d63a 5062else
698dcdb6 5063
24176f2c 5064 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5065 if test "x$LINE" != x ; then
5066 eval "DEFAULT_$LINE"
5067 else
5068 no_cache=1
5069 fi
5070
24176f2c 5071 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
5072
5073fi
10f2d63a
VZ
5074
5075
24176f2c 5076 eval "$ac_cv_use_treelayout"
10f2d63a 5077 if test "$no_cache" != 1; then
24176f2c 5078 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5079 fi
5080
24176f2c 5081 if test "$wxUSE_TREELAYOUT" = yes; then
698dcdb6 5082 echo "$ac_t""yes" 1>&6
10f2d63a 5083 else
698dcdb6 5084 echo "$ac_t""no" 1>&6
10f2d63a 5085 fi
698dcdb6 5086
10f2d63a 5087
698dcdb6
VZ
5088
5089
5090 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
a3a584a7 5091echo "configure:5092: checking for --enable-controls" >&5
10f2d63a
VZ
5092 no_cache=0
5093 # Check whether --enable-controls or --disable-controls was given.
5094if test "${enable_controls+set}" = set; then
5095 enableval="$enable_controls"
698dcdb6 5096
10f2d63a
VZ
5097 if test "$enableval" = yes; then
5098 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5099 else
5100 ac_cv_use_controls='wxUSE_CONTROLS=no'
5101 fi
698dcdb6 5102
10f2d63a 5103else
698dcdb6 5104
10f2d63a
VZ
5105 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5106 if test "x$LINE" != x ; then
5107 eval "DEFAULT_$LINE"
5108 else
5109 no_cache=1
5110 fi
5111
5112 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5113
5114fi
10f2d63a
VZ
5115
5116
5117 eval "$ac_cv_use_controls"
5118 if test "$no_cache" != 1; then
5119 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5120 fi
5121
5122 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5123 echo "$ac_t""yes" 1>&6
10f2d63a 5124 else
698dcdb6 5125 echo "$ac_t""no" 1>&6
10f2d63a 5126 fi
698dcdb6 5127
10f2d63a
VZ
5128
5129if test "$wxUSE_CONTROLS" = "yes"; then
5130 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5131 DEFAULT_wxUSE_BMPBUTTON=yes
5132 DEFAULT_wxUSE_BUTTON=yes
5133 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5134 DEFAULT_wxUSE_CARET=yes
5135 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5136 DEFAULT_wxUSE_CHECKBOX=yes
5137 DEFAULT_wxUSE_CHECKLISTBOX=yes
5138 DEFAULT_wxUSE_CHOICE=yes
5139 DEFAULT_wxUSE_GAUGE=yes
5140 DEFAULT_wxUSE_GRID=yes
cc977e5f 5141 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5142 DEFAULT_wxUSE_IMAGLIST=yes
5143 DEFAULT_wxUSE_LISTBOX=yes
5144 DEFAULT_wxUSE_LISTCTRL=yes
5145 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5146 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5147 DEFAULT_wxUSE_RADIOBOX=yes
5148 DEFAULT_wxUSE_RADIOBTN=yes
5149 DEFAULT_wxUSE_SASH=yes
5150 DEFAULT_wxUSE_SCROLLBAR=yes
5151 DEFAULT_wxUSE_SLIDER=yes
5152 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5153 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5154 DEFAULT_wxUSE_SPLITTER=yes
5155 DEFAULT_wxUSE_STATBMP=yes
5156 DEFAULT_wxUSE_STATBOX=yes
5157 DEFAULT_wxUSE_STATLINE=yes
5158 DEFAULT_wxUSE_STATUSBAR=yes
5159 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5160 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5161 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5162 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5163 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5164 DEFAULT_wxUSE_TOOLTIPS=yes
5165 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5166 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
5167elif test "$wxUSE_CONTROLS" = "no"; then
5168 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5169 DEFAULT_wxUSE_BMPBUTTON=no
5170 DEFAULT_wxUSE_BUTTON=no
5171 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5172 DEFAULT_wxUSE_CARET=no
5173 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5174 DEFAULT_wxUSE_CHECKBOX=no
5175 DEFAULT_wxUSE_CHECKLISTBOX=no
5176 DEFAULT_wxUSE_CHOICE=no
5177 DEFAULT_wxUSE_GAUGE=no
5178 DEFAULT_wxUSE_GRID=no
5179 DEFAULT_wxUSE_NEW_GRID=no
5180 DEFAULT_wxUSE_IMAGLIST=no
5181 DEFAULT_wxUSE_LISTBOX=no
5182 DEFAULT_wxUSE_LISTCTRL=no
5183 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5184 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5185 DEFAULT_wxUSE_RADIOBOX=no
5186 DEFAULT_wxUSE_RADIOBTN=no
5187 DEFAULT_wxUSE_SASH=no
5188 DEFAULT_wxUSE_SCROLLBAR=no
5189 DEFAULT_wxUSE_SLIDER=no
5190 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5191 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5192 DEFAULT_wxUSE_SPLITTER=no
5193 DEFAULT_wxUSE_STATBMP=no
5194 DEFAULT_wxUSE_STATBOX=no
5195 DEFAULT_wxUSE_STATLINE=no
5196 DEFAULT_wxUSE_STATUSBAR=no
5197 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5198 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5199 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5200 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5201 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5202 DEFAULT_wxUSE_TOOLTIPS=no
5203 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5204 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
5205fi
5206
698dcdb6
VZ
5207
5208 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
a3a584a7 5209echo "configure:5210: checking for --enable-accel" >&5
10f2d63a
VZ
5210 no_cache=0
5211 # Check whether --enable-accel or --disable-accel was given.
5212if test "${enable_accel+set}" = set; then
5213 enableval="$enable_accel"
698dcdb6 5214
10f2d63a
VZ
5215 if test "$enableval" = yes; then
5216 ac_cv_use_accel='wxUSE_ACCEL=yes'
5217 else
5218 ac_cv_use_accel='wxUSE_ACCEL=no'
5219 fi
698dcdb6 5220
10f2d63a 5221else
698dcdb6 5222
10f2d63a
VZ
5223 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5224 if test "x$LINE" != x ; then
5225 eval "DEFAULT_$LINE"
5226 else
5227 no_cache=1
5228 fi
5229
5230 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5231
5232fi
10f2d63a
VZ
5233
5234
5235 eval "$ac_cv_use_accel"
5236 if test "$no_cache" != 1; then
5237 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5238 fi
5239
5240 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5241 echo "$ac_t""yes" 1>&6
10f2d63a 5242 else
698dcdb6 5243 echo "$ac_t""no" 1>&6
10f2d63a 5244 fi
698dcdb6 5245
10f2d63a 5246
1e6feb95 5247 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
a3a584a7 5248echo "configure:5249: checking for --enable-button" >&5
10f2d63a 5249 no_cache=0
1e6feb95
VZ
5250 # Check whether --enable-button or --disable-button was given.
5251if test "${enable_button+set}" = set; then
5252 enableval="$enable_button"
698dcdb6 5253
10f2d63a 5254 if test "$enableval" = yes; then
1e6feb95 5255 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5256 else
1e6feb95 5257 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5258 fi
698dcdb6 5259
10f2d63a 5260else
698dcdb6 5261
1e6feb95 5262 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5263 if test "x$LINE" != x ; then
5264 eval "DEFAULT_$LINE"
5265 else
5266 no_cache=1
5267 fi
5268
1e6feb95 5269 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5270
5271fi
10f2d63a
VZ
5272
5273
1e6feb95 5274 eval "$ac_cv_use_button"
10f2d63a 5275 if test "$no_cache" != 1; then
1e6feb95 5276 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5277 fi
5278
1e6feb95 5279 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5280 echo "$ac_t""yes" 1>&6
10f2d63a 5281 else
698dcdb6 5282 echo "$ac_t""no" 1>&6
10f2d63a 5283 fi
698dcdb6 5284
10f2d63a 5285
698dcdb6 5286 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
a3a584a7 5287echo "configure:5288: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5288 no_cache=0
5289 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5290if test "${enable_bmpbutton+set}" = set; then
5291 enableval="$enable_bmpbutton"
698dcdb6 5292
10f2d63a
VZ
5293 if test "$enableval" = yes; then
5294 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5295 else
5296 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5297 fi
698dcdb6 5298
10f2d63a 5299else
698dcdb6 5300
10f2d63a
VZ
5301 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5302 if test "x$LINE" != x ; then
5303 eval "DEFAULT_$LINE"
5304 else
5305 no_cache=1
5306 fi
5307
5308 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5309
5310fi
10f2d63a
VZ
5311
5312
5313 eval "$ac_cv_use_bmpbutton"
5314 if test "$no_cache" != 1; then
5315 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5316 fi
5317
5318 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5319 echo "$ac_t""yes" 1>&6
10f2d63a 5320 else
698dcdb6 5321 echo "$ac_t""no" 1>&6
10f2d63a 5322 fi
698dcdb6 5323
10f2d63a 5324
1e6feb95 5325 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
a3a584a7 5326echo "configure:5327: checking for --enable-calendar" >&5
1e6feb95
VZ
5327 no_cache=0
5328 # Check whether --enable-calendar or --disable-calendar was given.
5329if test "${enable_calendar+set}" = set; then
5330 enableval="$enable_calendar"
5331
5332 if test "$enableval" = yes; then
5333 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5334 else
5335 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5336 fi
5337
5338else
5339
5340 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5341 if test "x$LINE" != x ; then
5342 eval "DEFAULT_$LINE"
5343 else
5344 no_cache=1
5345 fi
5346
5347 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5348
5349fi
5350
5351
5352 eval "$ac_cv_use_calendar"
5353 if test "$no_cache" != 1; then
5354 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5355 fi
5356
5357 if test "$wxUSE_CALCTRL" = yes; then
5358 echo "$ac_t""yes" 1>&6
5359 else
5360 echo "$ac_t""no" 1>&6
5361 fi
5362
5363
5364 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
a3a584a7 5365echo "configure:5366: checking for --enable-caret" >&5
1e6feb95
VZ
5366 no_cache=0
5367 # Check whether --enable-caret or --disable-caret was given.
5368if test "${enable_caret+set}" = set; then
5369 enableval="$enable_caret"
5370
5371 if test "$enableval" = yes; then
5372 ac_cv_use_caret='wxUSE_CARET=yes'
5373 else
5374 ac_cv_use_caret='wxUSE_CARET=no'
5375 fi
5376
5377else
5378
5379 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5380 if test "x$LINE" != x ; then
5381 eval "DEFAULT_$LINE"
5382 else
5383 no_cache=1
5384 fi
5385
5386 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5387
5388fi
5389
5390
5391 eval "$ac_cv_use_caret"
5392 if test "$no_cache" != 1; then
5393 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5394 fi
5395
5396 if test "$wxUSE_CARET" = yes; then
5397 echo "$ac_t""yes" 1>&6
5398 else
5399 echo "$ac_t""no" 1>&6
5400 fi
5401
5402
698dcdb6 5403 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
a3a584a7 5404echo "configure:5405: checking for --enable-checkbox" >&5
10f2d63a
VZ
5405 no_cache=0
5406 # Check whether --enable-checkbox or --disable-checkbox was given.
5407if test "${enable_checkbox+set}" = set; then
5408 enableval="$enable_checkbox"
698dcdb6 5409
10f2d63a
VZ
5410 if test "$enableval" = yes; then
5411 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5412 else
5413 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5414 fi
698dcdb6 5415
10f2d63a 5416else
698dcdb6 5417
10f2d63a
VZ
5418 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5419 if test "x$LINE" != x ; then
5420 eval "DEFAULT_$LINE"
5421 else
5422 no_cache=1
5423 fi
5424
5425 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5426
5427fi
10f2d63a
VZ
5428
5429
5430 eval "$ac_cv_use_checkbox"
5431 if test "$no_cache" != 1; then
5432 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5433 fi
5434
5435 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5436 echo "$ac_t""yes" 1>&6
10f2d63a 5437 else
698dcdb6 5438 echo "$ac_t""no" 1>&6
10f2d63a 5439 fi
698dcdb6 5440
10f2d63a 5441
698dcdb6 5442 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
a3a584a7 5443echo "configure:5444: checking for --enable-checklst" >&5
10f2d63a
VZ
5444 no_cache=0
5445 # Check whether --enable-checklst or --disable-checklst was given.
5446if test "${enable_checklst+set}" = set; then
5447 enableval="$enable_checklst"
698dcdb6 5448
10f2d63a
VZ
5449 if test "$enableval" = yes; then
5450 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5451 else
5452 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5453 fi
698dcdb6 5454
10f2d63a 5455else
698dcdb6 5456
10f2d63a
VZ
5457 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5458 if test "x$LINE" != x ; then
5459 eval "DEFAULT_$LINE"
5460 else
5461 no_cache=1
5462 fi
5463
5464 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5465
5466fi
10f2d63a
VZ
5467
5468
5469 eval "$ac_cv_use_checklst"
5470 if test "$no_cache" != 1; then
5471 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5472 fi
5473
5474 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5475 echo "$ac_t""yes" 1>&6
10f2d63a 5476 else
698dcdb6 5477 echo "$ac_t""no" 1>&6
10f2d63a 5478 fi
698dcdb6 5479
10f2d63a 5480
698dcdb6 5481 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
a3a584a7 5482echo "configure:5483: checking for --enable-choice" >&5
10f2d63a
VZ
5483 no_cache=0
5484 # Check whether --enable-choice or --disable-choice was given.
5485if test "${enable_choice+set}" = set; then
5486 enableval="$enable_choice"
698dcdb6 5487
10f2d63a
VZ
5488 if test "$enableval" = yes; then
5489 ac_cv_use_choice='wxUSE_CHOICE=yes'
5490 else
5491 ac_cv_use_choice='wxUSE_CHOICE=no'
5492 fi
698dcdb6 5493
10f2d63a 5494else
698dcdb6 5495
10f2d63a
VZ
5496 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5497 if test "x$LINE" != x ; then
5498 eval "DEFAULT_$LINE"
5499 else
5500 no_cache=1
5501 fi
5502
5503 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5504
5505fi
10f2d63a
VZ
5506
5507
5508 eval "$ac_cv_use_choice"
5509 if test "$no_cache" != 1; then
5510 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5511 fi
5512
5513 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5514 echo "$ac_t""yes" 1>&6
10f2d63a 5515 else
698dcdb6 5516 echo "$ac_t""no" 1>&6
10f2d63a 5517 fi
698dcdb6 5518
10f2d63a 5519
698dcdb6 5520 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
a3a584a7 5521echo "configure:5522: checking for --enable-combobox" >&5
10f2d63a
VZ
5522 no_cache=0
5523 # Check whether --enable-combobox or --disable-combobox was given.
5524if test "${enable_combobox+set}" = set; then
5525 enableval="$enable_combobox"
698dcdb6 5526
10f2d63a
VZ
5527 if test "$enableval" = yes; then
5528 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5529 else
5530 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5531 fi
698dcdb6 5532
10f2d63a 5533else
698dcdb6 5534
10f2d63a
VZ
5535 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5536 if test "x$LINE" != x ; then
5537 eval "DEFAULT_$LINE"
5538 else
5539 no_cache=1
5540 fi
5541
5542 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
5543
5544fi
10f2d63a
VZ
5545
5546
5547 eval "$ac_cv_use_combobox"
5548 if test "$no_cache" != 1; then
5549 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5550 fi
5551
5552 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 5553 echo "$ac_t""yes" 1>&6
10f2d63a 5554 else
698dcdb6 5555 echo "$ac_t""no" 1>&6
10f2d63a 5556 fi
698dcdb6 5557
10f2d63a 5558
698dcdb6 5559 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
a3a584a7 5560echo "configure:5561: checking for --enable-gauge" >&5
10f2d63a
VZ
5561 no_cache=0
5562 # Check whether --enable-gauge or --disable-gauge was given.
5563if test "${enable_gauge+set}" = set; then
5564 enableval="$enable_gauge"
698dcdb6 5565
10f2d63a
VZ
5566 if test "$enableval" = yes; then
5567 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5568 else
5569 ac_cv_use_gauge='wxUSE_GAUGE=no'
5570 fi
698dcdb6 5571
10f2d63a 5572else
698dcdb6 5573
10f2d63a
VZ
5574 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5575 if test "x$LINE" != x ; then
5576 eval "DEFAULT_$LINE"
5577 else
5578 no_cache=1
5579 fi
5580
5581 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
5582
5583fi
10f2d63a
VZ
5584
5585
5586 eval "$ac_cv_use_gauge"
5587 if test "$no_cache" != 1; then
5588 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5589 fi
5590
5591 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 5592 echo "$ac_t""yes" 1>&6
10f2d63a 5593 else
698dcdb6 5594 echo "$ac_t""no" 1>&6
10f2d63a 5595 fi
698dcdb6 5596
10f2d63a 5597
698dcdb6 5598 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
a3a584a7 5599echo "configure:5600: checking for --enable-grid" >&5
10f2d63a
VZ
5600 no_cache=0
5601 # Check whether --enable-grid or --disable-grid was given.
5602if test "${enable_grid+set}" = set; then
5603 enableval="$enable_grid"
698dcdb6 5604
10f2d63a
VZ
5605 if test "$enableval" = yes; then
5606 ac_cv_use_grid='wxUSE_GRID=yes'
5607 else
5608 ac_cv_use_grid='wxUSE_GRID=no'
5609 fi
698dcdb6 5610
10f2d63a 5611else
698dcdb6 5612
10f2d63a
VZ
5613 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5614 if test "x$LINE" != x ; then
5615 eval "DEFAULT_$LINE"
5616 else
5617 no_cache=1
5618 fi
5619
5620 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
5621
5622fi
10f2d63a
VZ
5623
5624
5625 eval "$ac_cv_use_grid"
5626 if test "$no_cache" != 1; then
5627 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5628 fi
5629
5630 if test "$wxUSE_GRID" = yes; then
698dcdb6 5631 echo "$ac_t""yes" 1>&6
10f2d63a 5632 else
698dcdb6 5633 echo "$ac_t""no" 1>&6
10f2d63a 5634 fi
698dcdb6 5635
10f2d63a 5636
698dcdb6 5637 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
a3a584a7 5638echo "configure:5639: checking for --enable-newgrid" >&5
10f2d63a
VZ
5639 no_cache=0
5640 # Check whether --enable-newgrid or --disable-newgrid was given.
5641if test "${enable_newgrid+set}" = set; then
5642 enableval="$enable_newgrid"
698dcdb6 5643
10f2d63a
VZ
5644 if test "$enableval" = yes; then
5645 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5646 else
5647 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5648 fi
698dcdb6 5649
10f2d63a 5650else
698dcdb6 5651
10f2d63a
VZ
5652 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5653 if test "x$LINE" != x ; then
5654 eval "DEFAULT_$LINE"
5655 else
5656 no_cache=1
5657 fi
5658
5659 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
5660
5661fi
10f2d63a
VZ
5662
5663
5664 eval "$ac_cv_use_newgrid"
5665 if test "$no_cache" != 1; then
5666 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5667 fi
5668
5669 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 5670 echo "$ac_t""yes" 1>&6
10f2d63a 5671 else
698dcdb6 5672 echo "$ac_t""no" 1>&6
10f2d63a 5673 fi
698dcdb6 5674
10f2d63a 5675
698dcdb6 5676 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
a3a584a7 5677echo "configure:5678: checking for --enable-imaglist" >&5
10f2d63a
VZ
5678 no_cache=0
5679 # Check whether --enable-imaglist or --disable-imaglist was given.
5680if test "${enable_imaglist+set}" = set; then
5681 enableval="$enable_imaglist"
698dcdb6 5682
10f2d63a
VZ
5683 if test "$enableval" = yes; then
5684 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5685 else
5686 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5687 fi
698dcdb6 5688
10f2d63a 5689else
698dcdb6 5690
10f2d63a
VZ
5691 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5692 if test "x$LINE" != x ; then
5693 eval "DEFAULT_$LINE"
5694 else
5695 no_cache=1
5696 fi
5697
5698 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
5699
5700fi
10f2d63a
VZ
5701
5702
5703 eval "$ac_cv_use_imaglist"
5704 if test "$no_cache" != 1; then
5705 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5706 fi
5707
5708 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 5709 echo "$ac_t""yes" 1>&6
10f2d63a 5710 else
698dcdb6 5711 echo "$ac_t""no" 1>&6
10f2d63a 5712 fi
698dcdb6 5713
10f2d63a 5714
698dcdb6 5715 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
a3a584a7 5716echo "configure:5717: checking for --enable-listbox" >&5
10f2d63a
VZ
5717 no_cache=0
5718 # Check whether --enable-listbox or --disable-listbox was given.
5719if test "${enable_listbox+set}" = set; then
5720 enableval="$enable_listbox"
698dcdb6 5721
10f2d63a
VZ
5722 if test "$enableval" = yes; then
5723 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5724 else
5725 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5726 fi
698dcdb6 5727
10f2d63a 5728else
698dcdb6 5729
10f2d63a
VZ
5730 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5731 if test "x$LINE" != x ; then
5732 eval "DEFAULT_$LINE"
5733 else
5734 no_cache=1
5735 fi
5736
5737 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
5738
5739fi
10f2d63a
VZ
5740
5741
5742 eval "$ac_cv_use_listbox"
5743 if test "$no_cache" != 1; then
5744 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5745 fi
5746
5747 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 5748 echo "$ac_t""yes" 1>&6
10f2d63a 5749 else
698dcdb6 5750 echo "$ac_t""no" 1>&6
10f2d63a 5751 fi
698dcdb6 5752
10f2d63a 5753
698dcdb6 5754 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
a3a584a7 5755echo "configure:5756: checking for --enable-listctrl" >&5
10f2d63a
VZ
5756 no_cache=0
5757 # Check whether --enable-listctrl or --disable-listctrl was given.
5758if test "${enable_listctrl+set}" = set; then
5759 enableval="$enable_listctrl"
698dcdb6 5760
10f2d63a
VZ
5761 if test "$enableval" = yes; then
5762 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5763 else
5764 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5765 fi
698dcdb6 5766
10f2d63a 5767else
698dcdb6 5768
10f2d63a
VZ
5769 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5770 if test "x$LINE" != x ; then
5771 eval "DEFAULT_$LINE"
5772 else
5773 no_cache=1
5774 fi
5775
5776 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
5777
5778fi
10f2d63a
VZ
5779
5780
5781 eval "$ac_cv_use_listctrl"
5782 if test "$no_cache" != 1; then
5783 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5784 fi
5785
5786 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 5787 echo "$ac_t""yes" 1>&6
10f2d63a 5788 else
698dcdb6 5789 echo "$ac_t""no" 1>&6
10f2d63a 5790 fi
698dcdb6 5791
10f2d63a 5792
698dcdb6 5793 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
a3a584a7 5794echo "configure:5795: checking for --enable-notebook" >&5
10f2d63a
VZ
5795 no_cache=0
5796 # Check whether --enable-notebook or --disable-notebook was given.
5797if test "${enable_notebook+set}" = set; then
5798 enableval="$enable_notebook"
698dcdb6 5799
10f2d63a
VZ
5800 if test "$enableval" = yes; then
5801 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5802 else
5803 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5804 fi
698dcdb6 5805
10f2d63a 5806else
698dcdb6 5807
10f2d63a
VZ
5808 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5809 if test "x$LINE" != x ; then
5810 eval "DEFAULT_$LINE"
5811 else
5812 no_cache=1
5813 fi
5814
5815 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
5816
5817fi
10f2d63a
VZ
5818
5819
5820 eval "$ac_cv_use_notebook"
5821 if test "$no_cache" != 1; then
5822 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5823 fi
5824
5825 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 5826 echo "$ac_t""yes" 1>&6
10f2d63a 5827 else
698dcdb6 5828 echo "$ac_t""no" 1>&6
10f2d63a 5829 fi
698dcdb6 5830
10f2d63a 5831
24176f2c 5832 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
a3a584a7 5833echo "configure:5834: checking for --enable-propsheet" >&5
24176f2c
GD
5834 no_cache=0
5835 # Check whether --enable-propsheet or --disable-propsheet was given.
5836if test "${enable_propsheet+set}" = set; then
5837 enableval="$enable_propsheet"
5838
5839 if test "$enableval" = yes; then
5840 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5841 else
5842 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5843 fi
5844
5845else
5846
5847 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5848 if test "x$LINE" != x ; then
5849 eval "DEFAULT_$LINE"
5850 else
5851 no_cache=1
5852 fi
5853
5854 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5855
5856fi
5857
5858
5859 eval "$ac_cv_use_propsheet"
5860 if test "$no_cache" != 1; then
5861 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5862 fi
5863
5864 if test "$wxUSE_PROPSHEET" = yes; then
5865 echo "$ac_t""yes" 1>&6
5866 else
5867 echo "$ac_t""no" 1>&6
5868 fi
5869
5870
698dcdb6 5871 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
a3a584a7 5872echo "configure:5873: checking for --enable-radiobox" >&5
10f2d63a
VZ
5873 no_cache=0
5874 # Check whether --enable-radiobox or --disable-radiobox was given.
5875if test "${enable_radiobox+set}" = set; then
5876 enableval="$enable_radiobox"
698dcdb6 5877
10f2d63a
VZ
5878 if test "$enableval" = yes; then
5879 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5880 else
5881 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5882 fi
698dcdb6 5883
10f2d63a 5884else
698dcdb6 5885
10f2d63a
VZ
5886 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5887 if test "x$LINE" != x ; then
5888 eval "DEFAULT_$LINE"
5889 else
5890 no_cache=1
5891 fi
5892
5893 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
5894
5895fi
10f2d63a
VZ
5896
5897
5898 eval "$ac_cv_use_radiobox"
5899 if test "$no_cache" != 1; then
5900 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5901 fi
5902
5903 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 5904 echo "$ac_t""yes" 1>&6
10f2d63a 5905 else
698dcdb6 5906 echo "$ac_t""no" 1>&6
10f2d63a 5907 fi
698dcdb6 5908
10f2d63a 5909
698dcdb6 5910 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
a3a584a7 5911echo "configure:5912: checking for --enable-radiobtn" >&5
10f2d63a
VZ
5912 no_cache=0
5913 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5914if test "${enable_radiobtn+set}" = set; then
5915 enableval="$enable_radiobtn"
698dcdb6 5916
10f2d63a
VZ
5917 if test "$enableval" = yes; then
5918 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5919 else
5920 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5921 fi
698dcdb6 5922
10f2d63a 5923else
698dcdb6 5924
10f2d63a
VZ
5925 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5926 if test "x$LINE" != x ; then
5927 eval "DEFAULT_$LINE"
5928 else
5929 no_cache=1
5930 fi
5931
5932 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
5933
5934fi
10f2d63a
VZ
5935
5936
5937 eval "$ac_cv_use_radiobtn"
5938 if test "$no_cache" != 1; then
5939 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5940 fi
5941
5942 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 5943 echo "$ac_t""yes" 1>&6
10f2d63a 5944 else
698dcdb6 5945 echo "$ac_t""no" 1>&6
10f2d63a 5946 fi
698dcdb6 5947
10f2d63a 5948
698dcdb6 5949 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
a3a584a7 5950echo "configure:5951: checking for --enable-sash" >&5
10f2d63a
VZ
5951 no_cache=0
5952 # Check whether --enable-sash or --disable-sash was given.
5953if test "${enable_sash+set}" = set; then
5954 enableval="$enable_sash"
698dcdb6 5955
10f2d63a
VZ
5956 if test "$enableval" = yes; then
5957 ac_cv_use_sash='wxUSE_SASH=yes'
5958 else
5959 ac_cv_use_sash='wxUSE_SASH=no'
5960 fi
698dcdb6 5961
10f2d63a 5962else
698dcdb6 5963
10f2d63a
VZ
5964 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5965 if test "x$LINE" != x ; then
5966 eval "DEFAULT_$LINE"
5967 else
5968 no_cache=1
5969 fi
5970
5971 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
5972
5973fi
10f2d63a
VZ
5974
5975
5976 eval "$ac_cv_use_sash"
5977 if test "$no_cache" != 1; then
5978 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5979 fi
5980
5981 if test "$wxUSE_SASH" = yes; then
698dcdb6 5982 echo "$ac_t""yes" 1>&6
10f2d63a 5983 else
698dcdb6 5984 echo "$ac_t""no" 1>&6
10f2d63a 5985 fi
698dcdb6 5986
10f2d63a 5987
698dcdb6 5988 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
a3a584a7 5989echo "configure:5990: checking for --enable-scrollbar" >&5
10f2d63a
VZ
5990 no_cache=0
5991 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5992if test "${enable_scrollbar+set}" = set; then
5993 enableval="$enable_scrollbar"
698dcdb6 5994
10f2d63a
VZ
5995 if test "$enableval" = yes; then
5996 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5997 else
5998 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5999 fi
698dcdb6 6000
10f2d63a 6001else
698dcdb6 6002
10f2d63a
VZ
6003 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6004 if test "x$LINE" != x ; then
6005 eval "DEFAULT_$LINE"
6006 else
6007 no_cache=1
6008 fi
6009
6010 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
6011
6012fi
10f2d63a
VZ
6013
6014
6015 eval "$ac_cv_use_scrollbar"
6016 if test "$no_cache" != 1; then
6017 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6018 fi
6019
6020 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 6021 echo "$ac_t""yes" 1>&6
10f2d63a 6022 else
698dcdb6 6023 echo "$ac_t""no" 1>&6
10f2d63a 6024 fi
698dcdb6 6025
10f2d63a 6026
698dcdb6 6027 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
a3a584a7 6028echo "configure:6029: checking for --enable-slider" >&5
10f2d63a
VZ
6029 no_cache=0
6030 # Check whether --enable-slider or --disable-slider was given.
6031if test "${enable_slider+set}" = set; then
6032 enableval="$enable_slider"
698dcdb6 6033
10f2d63a
VZ
6034 if test "$enableval" = yes; then
6035 ac_cv_use_slider='wxUSE_SLIDER=yes'
6036 else
6037 ac_cv_use_slider='wxUSE_SLIDER=no'
6038 fi
698dcdb6 6039
10f2d63a 6040else
698dcdb6 6041
10f2d63a
VZ
6042 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6043 if test "x$LINE" != x ; then
6044 eval "DEFAULT_$LINE"
6045 else
6046 no_cache=1
6047 fi
6048
6049 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
6050
6051fi
10f2d63a
VZ
6052
6053
6054 eval "$ac_cv_use_slider"
6055 if test "$no_cache" != 1; then
6056 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6057 fi
6058
6059 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 6060 echo "$ac_t""yes" 1>&6
10f2d63a 6061 else
698dcdb6 6062 echo "$ac_t""no" 1>&6
10f2d63a 6063 fi
698dcdb6 6064
10f2d63a 6065
698dcdb6 6066 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
a3a584a7 6067echo "configure:6068: checking for --enable-spinbtn" >&5
10f2d63a
VZ
6068 no_cache=0
6069 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6070if test "${enable_spinbtn+set}" = set; then
6071 enableval="$enable_spinbtn"
698dcdb6 6072
10f2d63a
VZ
6073 if test "$enableval" = yes; then
6074 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6075 else
6076 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6077 fi
698dcdb6 6078
10f2d63a 6079else
698dcdb6 6080
10f2d63a
VZ
6081 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6082 if test "x$LINE" != x ; then
6083 eval "DEFAULT_$LINE"
6084 else
6085 no_cache=1
6086 fi
6087
6088 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
6089
6090fi
10f2d63a
VZ
6091
6092
6093 eval "$ac_cv_use_spinbtn"
6094 if test "$no_cache" != 1; then
6095 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6096 fi
6097
6098 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 6099 echo "$ac_t""yes" 1>&6
10f2d63a 6100 else
698dcdb6 6101 echo "$ac_t""no" 1>&6
10f2d63a 6102 fi
698dcdb6 6103
10f2d63a 6104
698dcdb6 6105 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
a3a584a7 6106echo "configure:6107: checking for --enable-spinctrl" >&5
56cfaa52
RR
6107 no_cache=0
6108 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6109if test "${enable_spinctrl+set}" = set; then
6110 enableval="$enable_spinctrl"
698dcdb6 6111
56cfaa52
RR
6112 if test "$enableval" = yes; then
6113 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6114 else
6115 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6116 fi
698dcdb6 6117
56cfaa52 6118else
698dcdb6 6119
56cfaa52
RR
6120 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6121 if test "x$LINE" != x ; then
6122 eval "DEFAULT_$LINE"
6123 else
6124 no_cache=1
6125 fi
6126
6127 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6128
6129fi
56cfaa52
RR
6130
6131
6132 eval "$ac_cv_use_spinctrl"
6133 if test "$no_cache" != 1; then
6134 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6135 fi
6136
6137 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6138 echo "$ac_t""yes" 1>&6
56cfaa52 6139 else
698dcdb6 6140 echo "$ac_t""no" 1>&6
56cfaa52 6141 fi
698dcdb6 6142
56cfaa52 6143
698dcdb6 6144 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
a3a584a7 6145echo "configure:6146: checking for --enable-splitter" >&5
10f2d63a
VZ
6146 no_cache=0
6147 # Check whether --enable-splitter or --disable-splitter was given.
6148if test "${enable_splitter+set}" = set; then
6149 enableval="$enable_splitter"
698dcdb6 6150
10f2d63a
VZ
6151 if test "$enableval" = yes; then
6152 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6153 else
6154 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6155 fi
698dcdb6 6156
10f2d63a 6157else
698dcdb6 6158
10f2d63a
VZ
6159 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6160 if test "x$LINE" != x ; then
6161 eval "DEFAULT_$LINE"
6162 else
6163 no_cache=1
6164 fi
6165
6166 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6167
6168fi
10f2d63a
VZ
6169
6170
6171 eval "$ac_cv_use_splitter"
6172 if test "$no_cache" != 1; then
6173 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6174 fi
6175
6176 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6177 echo "$ac_t""yes" 1>&6
10f2d63a 6178 else
698dcdb6 6179 echo "$ac_t""no" 1>&6
10f2d63a 6180 fi
698dcdb6 6181
10f2d63a 6182
698dcdb6 6183 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
a3a584a7 6184echo "configure:6185: checking for --enable-statbmp" >&5
10f2d63a
VZ
6185 no_cache=0
6186 # Check whether --enable-statbmp or --disable-statbmp was given.
6187if test "${enable_statbmp+set}" = set; then
6188 enableval="$enable_statbmp"
698dcdb6 6189
10f2d63a
VZ
6190 if test "$enableval" = yes; then
6191 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6192 else
6193 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6194 fi
698dcdb6 6195
10f2d63a 6196else
698dcdb6 6197
10f2d63a
VZ
6198 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6199 if test "x$LINE" != x ; then
6200 eval "DEFAULT_$LINE"
6201 else
6202 no_cache=1
6203 fi
6204
6205 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6206
6207fi
10f2d63a
VZ
6208
6209
6210 eval "$ac_cv_use_statbmp"
6211 if test "$no_cache" != 1; then
6212 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6213 fi
6214
6215 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6216 echo "$ac_t""yes" 1>&6
10f2d63a 6217 else
698dcdb6 6218 echo "$ac_t""no" 1>&6
10f2d63a 6219 fi
698dcdb6 6220
10f2d63a 6221
698dcdb6 6222 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
a3a584a7 6223echo "configure:6224: checking for --enable-statbox" >&5
10f2d63a
VZ
6224 no_cache=0
6225 # Check whether --enable-statbox or --disable-statbox was given.
6226if test "${enable_statbox+set}" = set; then
6227 enableval="$enable_statbox"
698dcdb6 6228
10f2d63a
VZ
6229 if test "$enableval" = yes; then
6230 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6231 else
6232 ac_cv_use_statbox='wxUSE_STATBOX=no'
6233 fi
698dcdb6 6234
10f2d63a 6235else
698dcdb6 6236
10f2d63a
VZ
6237 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6238 if test "x$LINE" != x ; then
6239 eval "DEFAULT_$LINE"
6240 else
6241 no_cache=1
6242 fi
6243
6244 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6245
6246fi
10f2d63a
VZ
6247
6248
6249 eval "$ac_cv_use_statbox"
6250 if test "$no_cache" != 1; then
6251 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6252 fi
6253
6254 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6255 echo "$ac_t""yes" 1>&6
10f2d63a 6256 else
698dcdb6 6257 echo "$ac_t""no" 1>&6
10f2d63a 6258 fi
698dcdb6 6259
10f2d63a 6260
698dcdb6 6261 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
a3a584a7 6262echo "configure:6263: checking for --enable-statline" >&5
10f2d63a
VZ
6263 no_cache=0
6264 # Check whether --enable-statline or --disable-statline was given.
6265if test "${enable_statline+set}" = set; then
6266 enableval="$enable_statline"
698dcdb6 6267
10f2d63a
VZ
6268 if test "$enableval" = yes; then
6269 ac_cv_use_statline='wxUSE_STATLINE=yes'
6270 else
6271 ac_cv_use_statline='wxUSE_STATLINE=no'
6272 fi
698dcdb6 6273
10f2d63a 6274else
698dcdb6 6275
10f2d63a
VZ
6276 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6277 if test "x$LINE" != x ; then
6278 eval "DEFAULT_$LINE"
6279 else
6280 no_cache=1
6281 fi
6282
6283 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6284
6285fi
10f2d63a
VZ
6286
6287
6288 eval "$ac_cv_use_statline"
6289 if test "$no_cache" != 1; then
6290 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6291 fi
6292
6293 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6294 echo "$ac_t""yes" 1>&6
10f2d63a 6295 else
698dcdb6 6296 echo "$ac_t""no" 1>&6
10f2d63a 6297 fi
698dcdb6 6298
10f2d63a 6299
1e6feb95 6300 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
a3a584a7 6301echo "configure:6302: checking for --enable-stattext" >&5
1e6feb95
VZ
6302 no_cache=0
6303 # Check whether --enable-stattext or --disable-stattext was given.
6304if test "${enable_stattext+set}" = set; then
6305 enableval="$enable_stattext"
6306
6307 if test "$enableval" = yes; then
6308 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6309 else
6310 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6311 fi
6312
6313else
6314
6315 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6316 if test "x$LINE" != x ; then
6317 eval "DEFAULT_$LINE"
6318 else
6319 no_cache=1
6320 fi
6321
6322 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6323
6324fi
6325
6326
6327 eval "$ac_cv_use_stattext"
6328 if test "$no_cache" != 1; then
6329 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6330 fi
6331
6332 if test "$wxUSE_STATTEXT" = yes; then
6333 echo "$ac_t""yes" 1>&6
6334 else
6335 echo "$ac_t""no" 1>&6
6336 fi
6337
6338
698dcdb6 6339 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
a3a584a7 6340echo "configure:6341: checking for --enable-statusbar" >&5
10f2d63a
VZ
6341 no_cache=0
6342 # Check whether --enable-statusbar or --disable-statusbar was given.
6343if test "${enable_statusbar+set}" = set; then
6344 enableval="$enable_statusbar"
698dcdb6 6345
10f2d63a
VZ
6346 if test "$enableval" = yes; then
6347 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6348 else
6349 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6350 fi
698dcdb6 6351
10f2d63a 6352else
698dcdb6 6353
10f2d63a
VZ
6354 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6355 if test "x$LINE" != x ; then
6356 eval "DEFAULT_$LINE"
6357 else
6358 no_cache=1
6359 fi
6360
6361 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6362
6363fi
10f2d63a
VZ
6364
6365
6366 eval "$ac_cv_use_statusbar"
6367 if test "$no_cache" != 1; then
6368 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6369 fi
6370
6371 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6372 echo "$ac_t""yes" 1>&6
10f2d63a 6373 else
698dcdb6 6374 echo "$ac_t""no" 1>&6
10f2d63a 6375 fi
698dcdb6 6376
10f2d63a 6377
698dcdb6 6378 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
a3a584a7 6379echo "configure:6380: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6380 no_cache=0
6381 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6382if test "${enable_tabdialog+set}" = set; then
6383 enableval="$enable_tabdialog"
698dcdb6 6384
10f2d63a
VZ
6385 if test "$enableval" = yes; then
6386 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6387 else
6388 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6389 fi
698dcdb6 6390
10f2d63a 6391else
698dcdb6 6392
10f2d63a
VZ
6393 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6394 if test "x$LINE" != x ; then
6395 eval "DEFAULT_$LINE"
6396 else
6397 no_cache=1
6398 fi
6399
6400 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6401
6402fi
10f2d63a
VZ
6403
6404
6405 eval "$ac_cv_use_tabdialog"
6406 if test "$no_cache" != 1; then
6407 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6408 fi
6409
6410 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6411 echo "$ac_t""yes" 1>&6
10f2d63a 6412 else
698dcdb6 6413 echo "$ac_t""no" 1>&6
10f2d63a 6414 fi
698dcdb6 6415
10f2d63a 6416
1e6feb95 6417 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
a3a584a7 6418echo "configure:6419: checking for --enable-textctrl" >&5
1e6feb95
VZ
6419 no_cache=0
6420 # Check whether --enable-textctrl or --disable-textctrl was given.
6421if test "${enable_textctrl+set}" = set; then
6422 enableval="$enable_textctrl"
6423
6424 if test "$enableval" = yes; then
6425 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6426 else
6427 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6428 fi
6429
6430else
6431
6432 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6433 if test "x$LINE" != x ; then
6434 eval "DEFAULT_$LINE"
6435 else
6436 no_cache=1
6437 fi
6438
6439 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6440
6441fi
6442
6443
6444 eval "$ac_cv_use_textctrl"
6445 if test "$no_cache" != 1; then
6446 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6447 fi
6448
6449 if test "$wxUSE_TEXTCTRL" = yes; then
6450 echo "$ac_t""yes" 1>&6
6451 else
6452 echo "$ac_t""no" 1>&6
6453 fi
6454
6455
698dcdb6 6456 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
a3a584a7 6457echo "configure:6458: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6458 no_cache=0
6459 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6460if test "${enable_togglebtn+set}" = set; then
6461 enableval="$enable_togglebtn"
698dcdb6 6462
1db8dc4a
VZ
6463 if test "$enableval" = yes; then
6464 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6465 else
6466 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6467 fi
698dcdb6 6468
1db8dc4a 6469else
698dcdb6 6470
1db8dc4a
VZ
6471 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6472 if test "x$LINE" != x ; then
6473 eval "DEFAULT_$LINE"
6474 else
6475 no_cache=1
6476 fi
6477
6478 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6479
6480fi
1db8dc4a
VZ
6481
6482
6483 eval "$ac_cv_use_togglebtn"
6484 if test "$no_cache" != 1; then
6485 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6486 fi
6487
6488 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6489 echo "$ac_t""yes" 1>&6
1db8dc4a 6490 else
698dcdb6 6491 echo "$ac_t""no" 1>&6
1db8dc4a 6492 fi
698dcdb6 6493
1db8dc4a 6494
698dcdb6 6495 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
a3a584a7 6496echo "configure:6497: checking for --enable-toolbar" >&5
10f2d63a
VZ
6497 no_cache=0
6498 # Check whether --enable-toolbar or --disable-toolbar was given.
6499if test "${enable_toolbar+set}" = set; then
6500 enableval="$enable_toolbar"
698dcdb6 6501
10f2d63a
VZ
6502 if test "$enableval" = yes; then
6503 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6504 else
6505 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6506 fi
698dcdb6 6507
10f2d63a 6508else
698dcdb6 6509
10f2d63a
VZ
6510 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6511 if test "x$LINE" != x ; then
6512 eval "DEFAULT_$LINE"
6513 else
6514 no_cache=1
6515 fi
6516
6517 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
6518
6519fi
10f2d63a
VZ
6520
6521
6522 eval "$ac_cv_use_toolbar"
6523 if test "$no_cache" != 1; then
6524 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6525 fi
6526
6527 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 6528 echo "$ac_t""yes" 1>&6
10f2d63a 6529 else
698dcdb6 6530 echo "$ac_t""no" 1>&6
10f2d63a 6531 fi
698dcdb6 6532
10f2d63a 6533
698dcdb6 6534 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
a3a584a7 6535echo "configure:6536: checking for --enable-tbarnative" >&5
360d6699
VZ
6536 no_cache=0
6537 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6538if test "${enable_tbarnative+set}" = set; then
6539 enableval="$enable_tbarnative"
698dcdb6 6540
360d6699
VZ
6541 if test "$enableval" = yes; then
6542 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6543 else
6544 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6545 fi
698dcdb6 6546
360d6699 6547else
698dcdb6 6548
360d6699
VZ
6549 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6550 if test "x$LINE" != x ; then
6551 eval "DEFAULT_$LINE"
6552 else
6553 no_cache=1
6554 fi
6555
6556 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
6557
6558fi
360d6699
VZ
6559
6560
6561 eval "$ac_cv_use_tbarnative"
6562 if test "$no_cache" != 1; then
6563 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6564 fi
6565
6566 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 6567 echo "$ac_t""yes" 1>&6
360d6699 6568 else
698dcdb6 6569 echo "$ac_t""no" 1>&6
360d6699 6570 fi
698dcdb6 6571
360d6699 6572
698dcdb6 6573 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
a3a584a7 6574echo "configure:6575: checking for --enable-tbarsmpl" >&5
360d6699
VZ
6575 no_cache=0
6576 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6577if test "${enable_tbarsmpl+set}" = set; then
6578 enableval="$enable_tbarsmpl"
698dcdb6 6579
360d6699
VZ
6580 if test "$enableval" = yes; then
6581 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6582 else
6583 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6584 fi
698dcdb6 6585
360d6699 6586else
698dcdb6 6587
360d6699
VZ
6588 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6589 if test "x$LINE" != x ; then
6590 eval "DEFAULT_$LINE"
6591 else
6592 no_cache=1
6593 fi
6594
6595 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
6596
6597fi
360d6699
VZ
6598
6599
6600 eval "$ac_cv_use_tbarsmpl"
6601 if test "$no_cache" != 1; then
6602 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6603 fi
6604
6605 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 6606 echo "$ac_t""yes" 1>&6
360d6699 6607 else
698dcdb6 6608 echo "$ac_t""no" 1>&6
360d6699 6609 fi
698dcdb6 6610
360d6699 6611
698dcdb6 6612 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
a3a584a7 6613echo "configure:6614: checking for --enable-treectrl" >&5
10f2d63a
VZ
6614 no_cache=0
6615 # Check whether --enable-treectrl or --disable-treectrl was given.
6616if test "${enable_treectrl+set}" = set; then
6617 enableval="$enable_treectrl"
698dcdb6 6618
10f2d63a
VZ
6619 if test "$enableval" = yes; then
6620 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6621 else
6622 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6623 fi
698dcdb6 6624
10f2d63a 6625else
698dcdb6 6626
10f2d63a
VZ
6627 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6628 if test "x$LINE" != x ; then
6629 eval "DEFAULT_$LINE"
6630 else
6631 no_cache=1
6632 fi
6633
6634 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
6635
6636fi
10f2d63a
VZ
6637
6638
1e6feb95
VZ
6639 eval "$ac_cv_use_treectrl"
6640 if test "$no_cache" != 1; then
6641 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6642 fi
6643
6644 if test "$wxUSE_TREECTRL" = yes; then
6645 echo "$ac_t""yes" 1>&6
6646 else
6647 echo "$ac_t""no" 1>&6
6648 fi
6649
6650
9f41d601 6651 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
a3a584a7 6652echo "configure:6653: checking for --enable-popupwin" >&5
9f41d601
RR
6653 no_cache=0
6654 # Check whether --enable-popupwin or --disable-popupwin was given.
6655if test "${enable_popupwin+set}" = set; then
6656 enableval="$enable_popupwin"
6657
6658 if test "$enableval" = yes; then
6659 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6660 else
6661 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6662 fi
6663
6664else
6665
6666 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6667 if test "x$LINE" != x ; then
6668 eval "DEFAULT_$LINE"
6669 else
6670 no_cache=1
6671 fi
6672
6673 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6674
6675fi
6676
6677
6678 eval "$ac_cv_use_popupwin"
6679 if test "$no_cache" != 1; then
6680 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6681 fi
6682
6683 if test "$wxUSE_POPUPWIN" = yes; then
6684 echo "$ac_t""yes" 1>&6
6685 else
6686 echo "$ac_t""no" 1>&6
6687 fi
6688
6689
1e6feb95
VZ
6690
6691
6692 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
a3a584a7 6693echo "configure:6694: checking for --enable-commondlg" >&5
1e6feb95
VZ
6694 no_cache=0
6695 # Check whether --enable-commondlg or --disable-commondlg was given.
6696if test "${enable_commondlg+set}" = set; then
6697 enableval="$enable_commondlg"
6698
6699 if test "$enableval" = yes; then
6700 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6701 else
6702 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6703 fi
6704
6705else
6706
6707 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6708 if test "x$LINE" != x ; then
6709 eval "DEFAULT_$LINE"
6710 else
6711 no_cache=1
6712 fi
6713
6714 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6715
6716fi
6717
6718
6719 eval "$ac_cv_use_commondlg"
6720 if test "$no_cache" != 1; then
6721 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6722 fi
6723
6724 if test "$wxUSE_COMMONDLGS" = yes; then
6725 echo "$ac_t""yes" 1>&6
6726 else
6727 echo "$ac_t""no" 1>&6
6728 fi
6729
6730
6731 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
a3a584a7 6732echo "configure:6733: checking for --enable-choicedlg" >&5
1e6feb95
VZ
6733 no_cache=0
6734 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6735if test "${enable_choicedlg+set}" = set; then
6736 enableval="$enable_choicedlg"
6737
6738 if test "$enableval" = yes; then
6739 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6740 else
6741 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6742 fi
6743
6744else
6745
6746 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6747 if test "x$LINE" != x ; then
6748 eval "DEFAULT_$LINE"
6749 else
6750 no_cache=1
6751 fi
6752
6753 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6754
6755fi
6756
6757
6758 eval "$ac_cv_use_choicedlg"
6759 if test "$no_cache" != 1; then
6760 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6761 fi
6762
6763 if test "$wxUSE_CHOICEDLG" = yes; then
6764 echo "$ac_t""yes" 1>&6
6765 else
6766 echo "$ac_t""no" 1>&6
6767 fi
6768
6769
6770 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
a3a584a7 6771echo "configure:6772: checking for --enable-coldlg" >&5
1e6feb95
VZ
6772 no_cache=0
6773 # Check whether --enable-coldlg or --disable-coldlg was given.
6774if test "${enable_coldlg+set}" = set; then
6775 enableval="$enable_coldlg"
6776
6777 if test "$enableval" = yes; then
6778 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6779 else
6780 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6781 fi
6782
6783else
6784
6785 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6786 if test "x$LINE" != x ; then
6787 eval "DEFAULT_$LINE"
6788 else
6789 no_cache=1
6790 fi
6791
6792 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6793
6794fi
6795
6796
6797 eval "$ac_cv_use_coldlg"
6798 if test "$no_cache" != 1; then
6799 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6800 fi
6801
6802 if test "$wxUSE_COLOURDLG" = yes; then
6803 echo "$ac_t""yes" 1>&6
6804 else
6805 echo "$ac_t""no" 1>&6
6806 fi
6807
6808
6809 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
a3a584a7 6810echo "configure:6811: checking for --enable-filedlg" >&5
1e6feb95
VZ
6811 no_cache=0
6812 # Check whether --enable-filedlg or --disable-filedlg was given.
6813if test "${enable_filedlg+set}" = set; then
6814 enableval="$enable_filedlg"
6815
6816 if test "$enableval" = yes; then
6817 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6818 else
6819 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6820 fi
6821
6822else
6823
6824 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6825 if test "x$LINE" != x ; then
6826 eval "DEFAULT_$LINE"
6827 else
6828 no_cache=1
6829 fi
6830
6831 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6832
6833fi
6834
6835
6836 eval "$ac_cv_use_filedlg"
6837 if test "$no_cache" != 1; then
6838 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6839 fi
6840
6841 if test "$wxUSE_FILEDLG" = yes; then
6842 echo "$ac_t""yes" 1>&6
6843 else
6844 echo "$ac_t""no" 1>&6
6845 fi
6846
6847
8db37e06 6848 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
a3a584a7 6849echo "configure:6850: checking for --enable-filedlg" >&5
8db37e06
VZ
6850 no_cache=0
6851 # Check whether --enable-filedlg or --disable-filedlg was given.
6852if test "${enable_filedlg+set}" = set; then
6853 enableval="$enable_filedlg"
6854
6855 if test "$enableval" = yes; then
6856 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes'
6857 else
6858 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no'
6859 fi
6860
6861else
6862
6863 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6864 if test "x$LINE" != x ; then
6865 eval "DEFAULT_$LINE"
6866 else
6867 no_cache=1
6868 fi
6869
6870 ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
6871
6872fi
6873
6874
6875 eval "$ac_cv_use_filedlg"
6876 if test "$no_cache" != 1; then
6877 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6878 fi
6879
6880 if test "$wxUSE_FINDREPLDLG" = yes; then
6881 echo "$ac_t""yes" 1>&6
6882 else
6883 echo "$ac_t""no" 1>&6
6884 fi
6885
6886
1e6feb95 6887 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
a3a584a7 6888echo "configure:6889: checking for --enable-fontdlg" >&5
1e6feb95
VZ
6889 no_cache=0
6890 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6891if test "${enable_fontdlg+set}" = set; then
6892 enableval="$enable_fontdlg"
6893
6894 if test "$enableval" = yes; then
6895 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6896 else
6897 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6898 fi
6899
6900else
6901
6902 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6903 if test "x$LINE" != x ; then
6904 eval "DEFAULT_$LINE"
6905 else
6906 no_cache=1
6907 fi
6908
6909 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6910
6911fi
6912
6913
6914 eval "$ac_cv_use_fontdlg"
6915 if test "$no_cache" != 1; then
6916 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6917 fi
6918
6919 if test "$wxUSE_FONTDLG" = yes; then
6920 echo "$ac_t""yes" 1>&6
6921 else
6922 echo "$ac_t""no" 1>&6
6923 fi
6924
6925
6926 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
a3a584a7 6927echo "configure:6928: checking for --enable-dirdlg" >&5
1e6feb95
VZ
6928 no_cache=0
6929 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6930if test "${enable_dirdlg+set}" = set; then
6931 enableval="$enable_dirdlg"
6932
6933 if test "$enableval" = yes; then
6934 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6935 else
6936 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6937 fi
6938
6939else
6940
6941 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6942 if test "x$LINE" != x ; then
6943 eval "DEFAULT_$LINE"
6944 else
6945 no_cache=1
6946 fi
6947
6948 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6949
6950fi
6951
6952
6953 eval "$ac_cv_use_dirdlg"
10f2d63a 6954 if test "$no_cache" != 1; then
1e6feb95 6955 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6956 fi
6957
1e6feb95 6958 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 6959 echo "$ac_t""yes" 1>&6
10f2d63a 6960 else
698dcdb6 6961 echo "$ac_t""no" 1>&6
10f2d63a 6962 fi
698dcdb6
VZ
6963
6964
1e6feb95 6965 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
a3a584a7 6966echo "configure:6967: checking for --enable-msgdlg" >&5
10f2d63a 6967 no_cache=0
1e6feb95
VZ
6968 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6969if test "${enable_msgdlg+set}" = set; then
6970 enableval="$enable_msgdlg"
698dcdb6 6971
10f2d63a 6972 if test "$enableval" = yes; then
1e6feb95 6973 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 6974 else
1e6feb95 6975 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 6976 fi
698dcdb6 6977
10f2d63a 6978else
698dcdb6 6979
1e6feb95 6980 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6981 if test "x$LINE" != x ; then
6982 eval "DEFAULT_$LINE"
6983 else
6984 no_cache=1
6985 fi
6986
1e6feb95 6987 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
6988
6989fi
10f2d63a
VZ
6990
6991
1e6feb95 6992 eval "$ac_cv_use_msgdlg"
10f2d63a 6993 if test "$no_cache" != 1; then
1e6feb95 6994 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6995 fi
6996
1e6feb95 6997 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 6998 echo "$ac_t""yes" 1>&6
10f2d63a 6999 else
698dcdb6 7000 echo "$ac_t""no" 1>&6
10f2d63a 7001 fi
698dcdb6 7002
10f2d63a 7003
1e6feb95 7004 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
a3a584a7 7005echo "configure:7006: checking for --enable-numberdlg" >&5
10f2d63a 7006 no_cache=0
1e6feb95
VZ
7007 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7008if test "${enable_numberdlg+set}" = set; then
7009 enableval="$enable_numberdlg"
698dcdb6 7010
10f2d63a 7011 if test "$enableval" = yes; then
1e6feb95 7012 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7013 else
1e6feb95 7014 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7015 fi
698dcdb6 7016
10f2d63a 7017else
698dcdb6 7018
1e6feb95 7019 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7020 if test "x$LINE" != x ; then
7021 eval "DEFAULT_$LINE"
7022 else
7023 no_cache=1
7024 fi
7025
1e6feb95 7026 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
7027
7028fi
10f2d63a
VZ
7029
7030
1e6feb95 7031 eval "$ac_cv_use_numberdlg"
10f2d63a 7032 if test "$no_cache" != 1; then
1e6feb95 7033 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7034 fi
7035
1e6feb95 7036 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 7037 echo "$ac_t""yes" 1>&6
10f2d63a 7038 else
698dcdb6 7039 echo "$ac_t""no" 1>&6
10f2d63a 7040 fi
698dcdb6 7041
10f2d63a 7042
cbca9943 7043 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
a3a584a7 7044echo "configure:7045: checking for --enable-splash" >&5
cbca9943
VZ
7045 no_cache=0
7046 # Check whether --enable-splash or --disable-splash was given.
7047if test "${enable_splash+set}" = set; then
7048 enableval="$enable_splash"
7049
7050 if test "$enableval" = yes; then
7051 ac_cv_use_splash='wxUSE_SPLASH=yes'
7052 else
7053 ac_cv_use_splash='wxUSE_SPLASH=no'
7054 fi
7055
7056else
7057
7058 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7059 if test "x$LINE" != x ; then
7060 eval "DEFAULT_$LINE"
7061 else
7062 no_cache=1
7063 fi
7064
7065 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7066
7067fi
7068
7069
7070 eval "$ac_cv_use_splash"
7071 if test "$no_cache" != 1; then
7072 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7073 fi
7074
7075 if test "$wxUSE_SPLASH" = yes; then
7076 echo "$ac_t""yes" 1>&6
7077 else
7078 echo "$ac_t""no" 1>&6
7079 fi
7080
7081
698dcdb6 7082 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
a3a584a7 7083echo "configure:7084: checking for --enable-textdlg" >&5
10f2d63a
VZ
7084 no_cache=0
7085 # Check whether --enable-textdlg or --disable-textdlg was given.
7086if test "${enable_textdlg+set}" = set; then
7087 enableval="$enable_textdlg"
698dcdb6 7088
10f2d63a
VZ
7089 if test "$enableval" = yes; then
7090 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7091 else
7092 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7093 fi
698dcdb6 7094
10f2d63a 7095else
698dcdb6 7096
10f2d63a
VZ
7097 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7098 if test "x$LINE" != x ; then
7099 eval "DEFAULT_$LINE"
7100 else
7101 no_cache=1
7102 fi
7103
7104 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
7105
7106fi
10f2d63a
VZ
7107
7108
7109 eval "$ac_cv_use_textdlg"
7110 if test "$no_cache" != 1; then
7111 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7112 fi
7113
7114 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 7115 echo "$ac_t""yes" 1>&6
10f2d63a 7116 else
698dcdb6 7117 echo "$ac_t""no" 1>&6
10f2d63a 7118 fi
698dcdb6 7119
10f2d63a 7120
698dcdb6 7121 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
a3a584a7 7122echo "configure:7123: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7123 no_cache=0
7124 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7125if test "${enable_tipdlg+set}" = set; then
7126 enableval="$enable_tipdlg"
698dcdb6 7127
10f2d63a
VZ
7128 if test "$enableval" = yes; then
7129 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7130 else
7131 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7132 fi
698dcdb6 7133
10f2d63a 7134else
698dcdb6 7135
10f2d63a
VZ
7136 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7137 if test "x$LINE" != x ; then
7138 eval "DEFAULT_$LINE"
7139 else
7140 no_cache=1
7141 fi
7142
7143 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
7144
7145fi
10f2d63a
VZ
7146
7147
7148 eval "$ac_cv_use_tipdlg"
7149 if test "$no_cache" != 1; then
7150 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7151 fi
7152
7153 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 7154 echo "$ac_t""yes" 1>&6
10f2d63a 7155 else
698dcdb6 7156 echo "$ac_t""no" 1>&6
10f2d63a 7157 fi
698dcdb6 7158
10f2d63a 7159
698dcdb6 7160 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
a3a584a7 7161echo "configure:7162: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7162 no_cache=0
7163 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7164if test "${enable_progressdlg+set}" = set; then
7165 enableval="$enable_progressdlg"
698dcdb6 7166
10f2d63a
VZ
7167 if test "$enableval" = yes; then
7168 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7169 else
7170 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7171 fi
698dcdb6 7172
10f2d63a 7173else
698dcdb6 7174
10f2d63a
VZ
7175 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7176 if test "x$LINE" != x ; then
7177 eval "DEFAULT_$LINE"
7178 else
7179 no_cache=1
7180 fi
7181
7182 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7183
7184fi
10f2d63a
VZ
7185
7186
7187 eval "$ac_cv_use_progressdlg"
7188 if test "$no_cache" != 1; then
7189 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7190 fi
7191
7192 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7193 echo "$ac_t""yes" 1>&6
10f2d63a 7194 else
698dcdb6 7195 echo "$ac_t""no" 1>&6
10f2d63a 7196 fi
698dcdb6 7197
10f2d63a 7198
b1f5d087 7199 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
a3a584a7 7200echo "configure:7201: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7201 no_cache=0
7202 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7203if test "${enable_wizarddlg+set}" = set; then
7204 enableval="$enable_wizarddlg"
7205
7206 if test "$enableval" = yes; then
7207 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7208 else
7209 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7210 fi
7211
7212else
7213
7214 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7215 if test "x$LINE" != x ; then
7216 eval "DEFAULT_$LINE"
7217 else
7218 no_cache=1
7219 fi
7220
7221 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7222
7223fi
7224
7225
7226 eval "$ac_cv_use_wizarddlg"
7227 if test "$no_cache" != 1; then
7228 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7229 fi
7230
7231 if test "$wxUSE_WIZARDDLG" = yes; then
7232 echo "$ac_t""yes" 1>&6
7233 else
7234 echo "$ac_t""no" 1>&6
7235 fi
7236
7237
7238
7239
1e6feb95 7240 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
a3a584a7 7241echo "configure:7242: checking for --enable-menus" >&5
1e6feb95
VZ
7242 no_cache=0
7243 # Check whether --enable-menus or --disable-menus was given.
7244if test "${enable_menus+set}" = set; then
7245 enableval="$enable_menus"
7246
7247 if test "$enableval" = yes; then
7248 ac_cv_use_menus='wxUSE_MENUS=yes'
7249 else
7250 ac_cv_use_menus='wxUSE_MENUS=no'
7251 fi
7252
7253else
7254
7255 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7256 if test "x$LINE" != x ; then
7257 eval "DEFAULT_$LINE"
7258 else
7259 no_cache=1
7260 fi
7261
7262 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7263
7264fi
7265
7266
7267 eval "$ac_cv_use_menus"
7268 if test "$no_cache" != 1; then
7269 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7270 fi
7271
7272 if test "$wxUSE_MENUS" = yes; then
7273 echo "$ac_t""yes" 1>&6
7274 else
7275 echo "$ac_t""no" 1>&6
7276 fi
7277
7278
698dcdb6 7279 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
a3a584a7 7280echo "configure:7281: checking for --enable-miniframe" >&5
10f2d63a
VZ
7281 no_cache=0
7282 # Check whether --enable-miniframe or --disable-miniframe was given.
7283if test "${enable_miniframe+set}" = set; then
7284 enableval="$enable_miniframe"
698dcdb6 7285
10f2d63a
VZ
7286 if test "$enableval" = yes; then
7287 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7288 else
7289 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7290 fi
698dcdb6 7291
10f2d63a 7292else
698dcdb6 7293
10f2d63a
VZ
7294 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7295 if test "x$LINE" != x ; then
7296 eval "DEFAULT_$LINE"
7297 else
7298 no_cache=1
7299 fi
7300
7301 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7302
7303fi
10f2d63a
VZ
7304
7305
7306 eval "$ac_cv_use_miniframe"
7307 if test "$no_cache" != 1; then
7308 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7309 fi
7310
7311 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7312 echo "$ac_t""yes" 1>&6
10f2d63a 7313 else
698dcdb6 7314 echo "$ac_t""no" 1>&6
10f2d63a 7315 fi
698dcdb6 7316
10f2d63a 7317
698dcdb6 7318 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
a3a584a7 7319echo "configure:7320: checking for --enable-tooltips" >&5
10f2d63a
VZ
7320 no_cache=0
7321 # Check whether --enable-tooltips or --disable-tooltips was given.
7322if test "${enable_tooltips+set}" = set; then
7323 enableval="$enable_tooltips"
698dcdb6 7324
10f2d63a
VZ
7325 if test "$enableval" = yes; then
7326 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7327 else
7328 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7329 fi
698dcdb6 7330
10f2d63a 7331else
698dcdb6 7332
10f2d63a
VZ
7333 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7334 if test "x$LINE" != x ; then
7335 eval "DEFAULT_$LINE"
7336 else
7337 no_cache=1
7338 fi
7339
7340 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7341
7342fi
10f2d63a
VZ
7343
7344
7345 eval "$ac_cv_use_tooltips"
7346 if test "$no_cache" != 1; then
7347 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7348 fi
7349
7350 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7351 echo "$ac_t""yes" 1>&6
10f2d63a 7352 else
698dcdb6 7353 echo "$ac_t""no" 1>&6
10f2d63a 7354 fi
698dcdb6 7355
10f2d63a 7356
698dcdb6 7357 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
a3a584a7 7358echo "configure:7359: checking for --enable-splines" >&5
10f2d63a
VZ
7359 no_cache=0
7360 # Check whether --enable-splines or --disable-splines was given.
7361if test "${enable_splines+set}" = set; then
7362 enableval="$enable_splines"
698dcdb6 7363
10f2d63a
VZ
7364 if test "$enableval" = yes; then
7365 ac_cv_use_splines='wxUSE_SPLINES=yes'
7366 else
7367 ac_cv_use_splines='wxUSE_SPLINES=no'
7368 fi
698dcdb6 7369
10f2d63a 7370else
698dcdb6 7371
10f2d63a
VZ
7372 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7373 if test "x$LINE" != x ; then
7374 eval "DEFAULT_$LINE"
7375 else
7376 no_cache=1
7377 fi
7378
7379 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7380
7381fi
10f2d63a
VZ
7382
7383
7384 eval "$ac_cv_use_splines"
7385 if test "$no_cache" != 1; then
7386 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7387 fi
7388
7389 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7390 echo "$ac_t""yes" 1>&6
10f2d63a 7391 else
698dcdb6 7392 echo "$ac_t""no" 1>&6
10f2d63a 7393 fi
698dcdb6 7394
10f2d63a 7395
698dcdb6 7396 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
a3a584a7 7397echo "configure:7398: checking for --enable-validators" >&5
10f2d63a
VZ
7398 no_cache=0
7399 # Check whether --enable-validators or --disable-validators was given.
7400if test "${enable_validators+set}" = set; then
7401 enableval="$enable_validators"
698dcdb6 7402
10f2d63a
VZ
7403 if test "$enableval" = yes; then
7404 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7405 else
7406 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7407 fi
698dcdb6 7408
10f2d63a 7409else
698dcdb6 7410
10f2d63a
VZ
7411 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7412 if test "x$LINE" != x ; then
7413 eval "DEFAULT_$LINE"
7414 else
7415 no_cache=1
7416 fi
7417
7418 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7419
7420fi
10f2d63a
VZ
7421
7422
7423 eval "$ac_cv_use_validators"
7424 if test "$no_cache" != 1; then
7425 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7426 fi
7427
7428 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7429 echo "$ac_t""yes" 1>&6
10f2d63a 7430 else
698dcdb6 7431 echo "$ac_t""no" 1>&6
10f2d63a 7432 fi
698dcdb6 7433
10f2d63a 7434
698dcdb6 7435 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
a3a584a7 7436echo "configure:7437: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7437 no_cache=0
7438 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7439if test "${enable_busyinfo+set}" = set; then
7440 enableval="$enable_busyinfo"
698dcdb6 7441
10f2d63a
VZ
7442 if test "$enableval" = yes; then
7443 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7444 else
7445 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7446 fi
698dcdb6 7447
10f2d63a 7448else
698dcdb6 7449
10f2d63a
VZ
7450 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7451 if test "x$LINE" != x ; then
7452 eval "DEFAULT_$LINE"
7453 else
7454 no_cache=1
7455 fi
7456
7457 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
7458
7459fi
10f2d63a
VZ
7460
7461
7462 eval "$ac_cv_use_busyinfo"
7463 if test "$no_cache" != 1; then
7464 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7465 fi
7466
7467 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 7468 echo "$ac_t""yes" 1>&6
10f2d63a 7469 else
698dcdb6 7470 echo "$ac_t""no" 1>&6
10f2d63a 7471 fi
698dcdb6 7472
10f2d63a 7473
698dcdb6 7474 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
a3a584a7 7475echo "configure:7476: checking for --enable-joystick" >&5
f6bcfd97
BP
7476 no_cache=0
7477 # Check whether --enable-joystick or --disable-joystick was given.
7478if test "${enable_joystick+set}" = set; then
7479 enableval="$enable_joystick"
698dcdb6 7480
f6bcfd97
BP
7481 if test "$enableval" = yes; then
7482 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7483 else
7484 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7485 fi
698dcdb6 7486
f6bcfd97 7487else
698dcdb6 7488
f6bcfd97
BP
7489 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7490 if test "x$LINE" != x ; then
7491 eval "DEFAULT_$LINE"
7492 else
7493 no_cache=1
7494 fi
7495
7496 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
7497
7498fi
f6bcfd97
BP
7499
7500
7501 eval "$ac_cv_use_joystick"
7502 if test "$no_cache" != 1; then
7503 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7504 fi
7505
7506 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 7507 echo "$ac_t""yes" 1>&6
f6bcfd97 7508 else
698dcdb6 7509 echo "$ac_t""no" 1>&6
f6bcfd97 7510 fi
698dcdb6
VZ
7511
7512
1e6feb95 7513 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
a3a584a7 7514echo "configure:7515: checking for --enable-metafile" >&5
1e6feb95
VZ
7515 no_cache=0
7516 # Check whether --enable-metafile or --disable-metafile was given.
7517if test "${enable_metafile+set}" = set; then
7518 enableval="$enable_metafile"
7519
7520 if test "$enableval" = yes; then
7521 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7522 else
7523 ac_cv_use_metafile='wxUSE_METAFILE=no'
7524 fi
7525
7526else
7527
7528 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7529 if test "x$LINE" != x ; then
7530 eval "DEFAULT_$LINE"
7531 else
7532 no_cache=1
7533 fi
7534
7535 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7536
7537fi
7538
7539
7540 eval "$ac_cv_use_metafile"
7541 if test "$no_cache" != 1; then
7542 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7543 fi
7544
7545 if test "$wxUSE_METAFILE" = yes; then
7546 echo "$ac_t""yes" 1>&6
7547 else
7548 echo "$ac_t""no" 1>&6
7549 fi
7550
7551
24fd6d87 7552 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
a3a584a7 7553echo "configure:7554: checking for --enable-dragimage" >&5
24fd6d87
VZ
7554 no_cache=0
7555 # Check whether --enable-dragimage or --disable-dragimage was given.
7556if test "${enable_dragimage+set}" = set; then
7557 enableval="$enable_dragimage"
7558
7559 if test "$enableval" = yes; then
7560 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7561 else
7562 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7563 fi
7564
7565else
7566
7567 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7568 if test "x$LINE" != x ; then
7569 eval "DEFAULT_$LINE"
7570 else
7571 no_cache=1
7572 fi
7573
7574 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7575
7576fi
7577
7578
7579 eval "$ac_cv_use_dragimage"
7580 if test "$no_cache" != 1; then
7581 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7582 fi
7583
7584 if test "$wxUSE_DRAGIMAGE" = yes; then
7585 echo "$ac_t""yes" 1>&6
7586 else
7587 echo "$ac_t""no" 1>&6
7588 fi
7589
7590
10f2d63a 7591
698dcdb6 7592
edae8572 7593 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
a3a584a7 7594echo "configure:7595: checking for --enable-palette" >&5
edae8572
VZ
7595 no_cache=0
7596 # Check whether --enable-palette or --disable-palette was given.
7597if test "${enable_palette+set}" = set; then
7598 enableval="$enable_palette"
7599
7600 if test "$enableval" = yes; then
7601 ac_cv_use_palette='wxUSE_PALETTE=yes'
7602 else
7603 ac_cv_use_palette='wxUSE_PALETTE=no'
7604 fi
7605
7606else
7607
7608 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
7609 if test "x$LINE" != x ; then
7610 eval "DEFAULT_$LINE"
7611 else
7612 no_cache=1
7613 fi
7614
7615 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
7616
7617fi
7618
7619
7620 eval "$ac_cv_use_palette"
7621 if test "$no_cache" != 1; then
7622 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
7623 fi
7624
7625 if test "$wxUSE_PALETTE" = yes; then
7626 echo "$ac_t""yes" 1>&6
7627 else
7628 echo "$ac_t""no" 1>&6
7629 fi
7630
7631
698dcdb6 7632 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
a3a584a7 7633echo "configure:7634: checking for --enable-image" >&5
0046ff7c
VS
7634 no_cache=0
7635 # Check whether --enable-image or --disable-image was given.
7636if test "${enable_image+set}" = set; then
7637 enableval="$enable_image"
698dcdb6 7638
0046ff7c
VS
7639 if test "$enableval" = yes; then
7640 ac_cv_use_image='wxUSE_IMAGE=yes'
7641 else
7642 ac_cv_use_image='wxUSE_IMAGE=no'
7643 fi
698dcdb6 7644
0046ff7c 7645else
698dcdb6 7646
0046ff7c
VS
7647 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7648 if test "x$LINE" != x ; then
7649 eval "DEFAULT_$LINE"
7650 else
7651 no_cache=1
7652 fi
7653
7654 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
7655
7656fi
0046ff7c
VS
7657
7658
7659 eval "$ac_cv_use_image"
7660 if test "$no_cache" != 1; then
7661 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7662 fi
7663
7664 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 7665 echo "$ac_t""yes" 1>&6
0046ff7c 7666 else
698dcdb6 7667 echo "$ac_t""no" 1>&6
0046ff7c 7668 fi
698dcdb6 7669
0046ff7c 7670
698dcdb6 7671 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
a3a584a7 7672echo "configure:7673: checking for --enable-gif" >&5
10f2d63a
VZ
7673 no_cache=0
7674 # Check whether --enable-gif or --disable-gif was given.
7675if test "${enable_gif+set}" = set; then
7676 enableval="$enable_gif"
698dcdb6 7677
10f2d63a
VZ
7678 if test "$enableval" = yes; then
7679 ac_cv_use_gif='wxUSE_GIF=yes'
7680 else
7681 ac_cv_use_gif='wxUSE_GIF=no'
7682 fi
698dcdb6 7683
10f2d63a 7684else
698dcdb6 7685
10f2d63a
VZ
7686 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7687 if test "x$LINE" != x ; then
7688 eval "DEFAULT_$LINE"
7689 else
7690 no_cache=1
7691 fi
7692
7693 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
7694
7695fi
10f2d63a
VZ
7696
7697
7698 eval "$ac_cv_use_gif"
7699 if test "$no_cache" != 1; then
7700 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7701 fi
7702
7703 if test "$wxUSE_GIF" = yes; then
698dcdb6 7704 echo "$ac_t""yes" 1>&6
10f2d63a 7705 else
698dcdb6 7706 echo "$ac_t""no" 1>&6
10f2d63a 7707 fi
698dcdb6 7708
10f2d63a 7709
698dcdb6 7710 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
a3a584a7 7711echo "configure:7712: checking for --enable-pcx" >&5
10f2d63a
VZ
7712 no_cache=0
7713 # Check whether --enable-pcx or --disable-pcx was given.
7714if test "${enable_pcx+set}" = set; then
7715 enableval="$enable_pcx"
698dcdb6 7716
10f2d63a
VZ
7717 if test "$enableval" = yes; then
7718 ac_cv_use_pcx='wxUSE_PCX=yes'
7719 else
7720 ac_cv_use_pcx='wxUSE_PCX=no'
7721 fi
698dcdb6 7722
10f2d63a 7723else
698dcdb6 7724
10f2d63a
VZ
7725 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7726 if test "x$LINE" != x ; then
7727 eval "DEFAULT_$LINE"
7728 else
7729 no_cache=1
7730 fi
7731
7732 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
7733
7734fi
10f2d63a
VZ
7735
7736
7737 eval "$ac_cv_use_pcx"
7738 if test "$no_cache" != 1; then
7739 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7740 fi
7741
7742 if test "$wxUSE_PCX" = yes; then
698dcdb6 7743 echo "$ac_t""yes" 1>&6
10f2d63a 7744 else
698dcdb6 7745 echo "$ac_t""no" 1>&6
10f2d63a 7746 fi
698dcdb6 7747
10f2d63a 7748
698dcdb6 7749 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
a3a584a7 7750echo "configure:7751: checking for --enable-pnm" >&5
10f2d63a
VZ
7751 no_cache=0
7752 # Check whether --enable-pnm or --disable-pnm was given.
7753if test "${enable_pnm+set}" = set; then
7754 enableval="$enable_pnm"
698dcdb6 7755
10f2d63a
VZ
7756 if test "$enableval" = yes; then
7757 ac_cv_use_pnm='wxUSE_PNM=yes'
7758 else
7759 ac_cv_use_pnm='wxUSE_PNM=no'
7760 fi
698dcdb6 7761
10f2d63a 7762else
698dcdb6 7763
10f2d63a
VZ
7764 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7765 if test "x$LINE" != x ; then
7766 eval "DEFAULT_$LINE"
7767 else
7768 no_cache=1
7769 fi
7770
7771 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
7772
7773fi
10f2d63a
VZ
7774
7775
7776 eval "$ac_cv_use_pnm"
7777 if test "$no_cache" != 1; then
7778 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7779 fi
7780
7781 if test "$wxUSE_PNM" = yes; then
698dcdb6 7782 echo "$ac_t""yes" 1>&6
10f2d63a 7783 else
698dcdb6 7784 echo "$ac_t""no" 1>&6
10f2d63a 7785 fi
698dcdb6 7786
10f2d63a 7787
698dcdb6 7788 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
a3a584a7 7789echo "configure:7790: checking for --enable-pnm" >&5
0046ff7c
VS
7790 no_cache=0
7791 # Check whether --enable-pnm or --disable-pnm was given.
7792if test "${enable_pnm+set}" = set; then
7793 enableval="$enable_pnm"
698dcdb6 7794
0046ff7c
VS
7795 if test "$enableval" = yes; then
7796 ac_cv_use_pnm='wxUSE_XPM=yes'
7797 else
7798 ac_cv_use_pnm='wxUSE_XPM=no'
7799 fi
698dcdb6 7800
0046ff7c 7801else
698dcdb6 7802
0046ff7c
VS
7803 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7804 if test "x$LINE" != x ; then
7805 eval "DEFAULT_$LINE"
7806 else
7807 no_cache=1
7808 fi
7809
7810 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
7811
7812fi
0046ff7c
VS
7813
7814
7815 eval "$ac_cv_use_pnm"
7816 if test "$no_cache" != 1; then
7817 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7818 fi
7819
7820 if test "$wxUSE_XPM" = yes; then
698dcdb6 7821 echo "$ac_t""yes" 1>&6
0046ff7c 7822 else
698dcdb6 7823 echo "$ac_t""no" 1>&6
0046ff7c 7824 fi
698dcdb6 7825
0046ff7c 7826
b12915c1
VZ
7827fi
7828
698dcdb6 7829
10f2d63a
VZ
7830 echo "saving argument cache $wx_arg_cache_file"
7831 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 7832
10f2d63a 7833
698dcdb6
VZ
7834
7835echo $ac_n "checking for toolkit""... $ac_c" 1>&6
a3a584a7 7836echo "configure:7837: checking for toolkit" >&5
10f2d63a
VZ
7837
7838if test "$wxUSE_GUI" = "yes"; then
7839
3a922bb4
RL
7840 if test "$USE_BEOS" = 1; then
7841 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7842 fi
b12915c1 7843
3a922bb4
RL
7844 if test "$TOOLKIT_GIVEN" = 1; then
7845 for toolkit in `echo $ALL_TOOLKITS`; do
7846 var=wxUSE_$toolkit
7847 eval "value=\$${var}"
7848 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7849 done
10f2d63a 7850 else
3a922bb4
RL
7851 for toolkit in `echo $ALL_TOOLKITS`; do
7852 if test "$has_toolkit_in_cache" != 1; then
7853 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7854 else
7855 var=DEFAULT_wxUSE_$toolkit
7856 fi
7857 eval "wxUSE_$toolkit=\$${var}"
7858 done
10f2d63a 7859 fi
10f2d63a 7860
3a922bb4 7861 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
77e13408 7862 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0}`
10f2d63a 7863
3a922bb4 7864 case "${host}" in
6fa882bd 7865 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4
RL
7866 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7867 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7868 LEX_STEM="lexyy"
7869 ;;
7870 *)
7871 PATH_IFS=':'
7872 LEX_STEM="lex.yy"
7873 ;;
7874 esac
10f2d63a 7875
3a922bb4
RL
7876 case "$NUM_TOOLKITS" in
7877 1)
7878 ;;
7879 0)
7880 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7881 ;;
7882 *)
7883 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7884 esac
10f2d63a 7885
3a922bb4
RL
7886 for toolkit in `echo $ALL_TOOLKITS`; do
7887 var=wxUSE_$toolkit
7888 eval "value=\$${var}"
7889 if test "x$value" != x; then
7890 cache_var=CACHE_$toolkit
7891 eval "cache=\$${cache_var}"
7892 if test "$cache" = 1; then
7893 echo "$var=$value" >> ${wx_arg_cache_file}
7894 fi
7895 if test "$value" = 1; then
7896 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7897 echo "$ac_t""$toolkit_echo" 1>&6
7898 fi
7899 fi
7900 done
10f2d63a 7901else
cf27ef00 7902 PATH_IFS=':'
3a922bb4 7903 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
7904fi
7905
698dcdb6
VZ
7906
7907cat > confcache <<\EOF
10f2d63a
VZ
7908# This file is a shell script that caches the results of configure
7909# tests run on this system so they can be shared between configure
698dcdb6
VZ
7910# scripts and configure runs. It is not useful on other systems.
7911# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 7912#
698dcdb6
VZ
7913# By default, configure uses ./config.cache as the cache file,
7914# creating it if it does not exist already. You can give configure
7915# the --cache-file=FILE option to use a different cache file; that is
7916# what configure does when it calls configure scripts in
7917# subdirectories, so they share the cache.
7918# Giving --cache-file=/dev/null disables caching, for debugging configure.
7919# config.status only pays attention to the cache file if you give it the
7920# --recheck option to rerun configure.
10f2d63a 7921#
698dcdb6 7922EOF
10f2d63a
VZ
7923# The following way of writing the cache mishandles newlines in values,
7924# but we know of no workaround that is simple, portable, and efficient.
7925# So, don't put newlines in cache variables' values.
7926# Ultrix sh set writes to stderr and can't be redirected directly,
7927# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
7928(set) 2>&1 |
7929 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7930 *ac_space=\ *)
7931 # `set' does not quote correctly, so add quotes (double-quote substitution
7932 # turns \\\\ into \\, and sed turns \\ into \).
7933 sed -n \
7934 -e "s/'/'\\\\''/g" \
7935 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7936 ;;
7937 *)
7938 # `set' quotes correctly as required by POSIX, so do not add quotes.
7939 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7940 ;;
7941 esac >> confcache
7942if cmp -s $cache_file confcache; then
7943 :
7944else
10f2d63a 7945 if test -w $cache_file; then
698dcdb6
VZ
7946 echo "updating cache $cache_file"
7947 cat confcache > $cache_file
10f2d63a
VZ
7948 else
7949 echo "not updating unwritable cache $cache_file"
7950 fi
7951fi
7952rm -f confcache
7953
698dcdb6 7954
e59890c3 7955if test "$build" != "$host" ; then
3a922bb4
RL
7956 if test "$USE_WIN32" = 1 ; then
7957 CC=$host_alias-gcc
7958 CXX=$host_alias-c++
7959 AR=$host_alias-ar
7960 RANLIB=$host_alias-ranlib
7961 DLLTOOL=$host_alias-dlltool
7962 RESCOMP=$host_alias-windres
7963 LD=$host_alias-ld
7964 NM=$host_alias-nm
7965 STRIP=$host_alias-strip
7966 else
7967 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
7968 fi
10f2d63a
VZ
7969fi
7970
698dcdb6 7971# Extract the first word of "gcc", so it can be a program name with args.
1e487827 7972set dummy gcc; ac_word=$2
698dcdb6 7973echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a3a584a7 7974echo "configure:7975: checking for $ac_word" >&5
698dcdb6
VZ
7975if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7976 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
7977else
7978 if test -n "$CC"; then
7979 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 7980else
698dcdb6
VZ
7981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7982 ac_dummy="$PATH"
7983 for ac_dir in $ac_dummy; do
7984 test -z "$ac_dir" && ac_dir=.
7985 if test -f $ac_dir/$ac_word; then
7986 ac_cv_prog_CC="gcc"
7987 break
7988 fi
7989 done
7990 IFS="$ac_save_ifs"
10f2d63a 7991fi
6232543b 7992fi
698dcdb6 7993CC="$ac_cv_prog_CC"
6232543b 7994if test -n "$CC"; then
698dcdb6 7995 echo "$ac_t""$CC" 1>&6
1e487827 7996else
698dcdb6 7997 echo "$ac_t""no" 1>&6
1e487827 7998fi
6232543b 7999
1e487827
VS
8000if test -z "$CC"; then
8001 # Extract the first word of "cc", so it can be a program name with args.
8002set dummy cc; ac_word=$2
698dcdb6 8003echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a3a584a7 8004echo "configure:8005: checking for $ac_word" >&5
698dcdb6
VZ
8005if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8006 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8007else
8008 if test -n "$CC"; then
8009 ac_cv_prog_CC="$CC" # Let the user override the test.
8010else
698dcdb6 8011 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 8012 ac_prog_rejected=no
698dcdb6
VZ
8013 ac_dummy="$PATH"
8014 for ac_dir in $ac_dummy; do
8015 test -z "$ac_dir" && ac_dir=.
8016 if test -f $ac_dir/$ac_word; then
8017 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8018 ac_prog_rejected=yes
8019 continue
8020 fi
8021 ac_cv_prog_CC="cc"
8022 break
8023 fi
8024 done
8025 IFS="$ac_save_ifs"
1e487827
VS
8026if test $ac_prog_rejected = yes; then
8027 # We found a bogon in the path, so make sure we never use it.
8028 set dummy $ac_cv_prog_CC
8029 shift
698dcdb6 8030 if test $# -gt 0; then
1e487827
VS
8031 # We chose a different compiler from the bogus one.
8032 # However, it has the same basename, so the bogon will be chosen
8033 # first if we set CC to just the basename; use the full file name.
8034 shift
698dcdb6 8035 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
8036 shift
8037 ac_cv_prog_CC="$@"
703e0a69 8038 fi
1e487827
VS
8039fi
8040fi
8041fi
698dcdb6 8042CC="$ac_cv_prog_CC"
1e487827 8043if test -n "$CC"; then
698dcdb6 8044 echo "$ac_t""$CC" 1>&6
703e0a69 8045else
698dcdb6 8046 echo "$ac_t""no" 1>&6
703e0a69 8047fi
1e487827 8048
698dcdb6
VZ
8049 if test -z "$CC"; then
8050 case "`uname -s`" in
8051 *win32* | *WIN32*)
8052 # Extract the first word of "cl", so it can be a program name with args.
8053set dummy cl; ac_word=$2
8054echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a3a584a7 8055echo "configure:8056: checking for $ac_word" >&5
698dcdb6
VZ
8056if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8057 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8058else
8059 if test -n "$CC"; then
8060 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 8061else
698dcdb6
VZ
8062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8063 ac_dummy="$PATH"
8064 for ac_dir in $ac_dummy; do
8065 test -z "$ac_dir" && ac_dir=.
8066 if test -f $ac_dir/$ac_word; then
8067 ac_cv_prog_CC="cl"
8068 break
8069 fi
8070 done
8071 IFS="$ac_save_ifs"
703e0a69 8072fi
1e487827 8073fi
698dcdb6 8074CC="$ac_cv_prog_CC"
1e487827 8075if test -n "$CC"; then
698dcdb6 8076 echo "$ac_t""$CC" 1>&6
1e487827 8077else
698dcdb6 8078 echo "$ac_t""no" 1>&6
1e487827 8079fi
698dcdb6
VZ
8080 ;;
8081 esac
8082 fi
8083 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
8084fi
8085
698dcdb6 8086echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
a3a584a7 8087echo "configure:8088: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 8088
698dcdb6
VZ
8089ac_ext=c
8090# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8091ac_cpp='$CPP $CPPFLAGS'
8092ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8093ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8094cross_compiling=$ac_cv_prog_cc_cross
6232543b 8095
698dcdb6 8096cat > conftest.$ac_ext << EOF
1e487827 8097
a3a584a7 8098#line 8099 "configure"
1e487827
VS
8099#include "confdefs.h"
8100
698dcdb6
VZ
8101main(){return(0);}
8102EOF
a3a584a7 8103if { (eval echo configure:8104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8104 ac_cv_prog_cc_works=yes
8105 # If we can't run a trivial program, we are probably using a cross compiler.
8106 if (./conftest; exit) 2>/dev/null; then
8107 ac_cv_prog_cc_cross=no
8108 else
8109 ac_cv_prog_cc_cross=yes
8110 fi
8111else
8112 echo "configure: failed program was:" >&5
8113 cat conftest.$ac_ext >&5
8114 ac_cv_prog_cc_works=no
8115fi
8116rm -fr conftest*
8117ac_ext=c
8118# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8119ac_cpp='$CPP $CPPFLAGS'
8120ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8121ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8122cross_compiling=$ac_cv_prog_cc_cross
8123
8124echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8125if test $ac_cv_prog_cc_works = no; then
8126 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8127fi
8128echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
a3a584a7 8129echo "configure:8130: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8130echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8131cross_compiling=$ac_cv_prog_cc_cross
8132
8133echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
a3a584a7 8134echo "configure:8135: checking whether we are using GNU C" >&5
698dcdb6
VZ
8135if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8136 echo $ac_n "(cached) $ac_c" 1>&6
8137else
8138 cat > conftest.c <<EOF
8139#ifdef __GNUC__
8140 yes;
1e487827 8141#endif
698dcdb6 8142EOF
a3a584a7 8143if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8144 ac_cv_prog_gcc=yes
8145else
8146 ac_cv_prog_gcc=no
8147fi
8148fi
1e487827 8149
698dcdb6 8150echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 8151
698dcdb6
VZ
8152if test $ac_cv_prog_gcc = yes; then
8153 GCC=yes
8154else
8155 GCC=
8156fi
1e487827 8157
698dcdb6
VZ
8158ac_test_CFLAGS="${CFLAGS+set}"
8159ac_save_CFLAGS="$CFLAGS"
8160CFLAGS=
8161echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
a3a584a7 8162echo "configure:8163: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
8163if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8164 echo $ac_n "(cached) $ac_c" 1>&6
8165else
8166 echo 'void f(){}' > conftest.c
8167if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8168 ac_cv_prog_cc_g=yes
8169else
698dcdb6 8170 ac_cv_prog_cc_g=no
10f2d63a 8171fi
698dcdb6
VZ
8172rm -f conftest*
8173
10f2d63a 8174fi
698dcdb6
VZ
8175
8176echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 8177if test "$ac_test_CFLAGS" = set; then
698dcdb6 8178 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
8179elif test $ac_cv_prog_cc_g = yes; then
8180 if test "$GCC" = yes; then
8181 CFLAGS="-g -O2"
8182 else
8183 CFLAGS="-g"
8184 fi
8185else
8186 if test "$GCC" = yes; then
8187 CFLAGS="-O2"
8188 else
8189 CFLAGS=
8190 fi
8191fi
8192
8193
8194CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8195
698dcdb6 8196echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
a3a584a7 8197echo "configure:8198: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8198# On Suns, sometimes $CPP names a directory.
8199if test -n "$CPP" && test -d "$CPP"; then
8200 CPP=
8201fi
8202if test -z "$CPP"; then
698dcdb6
VZ
8203if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8204 echo $ac_n "(cached) $ac_c" 1>&6
8205else
8206 # This must be in double quotes, not single quotes, because CPP may get
8207 # substituted into the Makefile and "${CC-cc}" will confuse make.
8208 CPP="${CC-cc} -E"
10f2d63a 8209 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8210 # not just through cpp.
8211 cat > conftest.$ac_ext <<EOF
a3a584a7 8212#line 8213 "configure"
10f2d63a
VZ
8213#include "confdefs.h"
8214#include <assert.h>
698dcdb6
VZ
8215Syntax Error
8216EOF
8217ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a3a584a7 8218{ (eval echo configure:8219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8219ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8220if test -z "$ac_err"; then
10f2d63a
VZ
8221 :
8222else
698dcdb6
VZ
8223 echo "$ac_err" >&5
8224 echo "configure: failed program was:" >&5
10f2d63a 8225 cat conftest.$ac_ext >&5
698dcdb6
VZ
8226 rm -rf conftest*
8227 CPP="${CC-cc} -E -traditional-cpp"
8228 cat > conftest.$ac_ext <<EOF
a3a584a7 8229#line 8230 "configure"
10f2d63a 8230#include "confdefs.h"
698dcdb6
VZ
8231#include <assert.h>
8232Syntax Error
8233EOF
8234ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a3a584a7 8235{ (eval echo configure:8236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8236ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8237if test -z "$ac_err"; then
8238 :
10f2d63a 8239else
698dcdb6
VZ
8240 echo "$ac_err" >&5
8241 echo "configure: failed program was:" >&5
10f2d63a 8242 cat conftest.$ac_ext >&5
698dcdb6
VZ
8243 rm -rf conftest*
8244 CPP="${CC-cc} -nologo -E"
8245 cat > conftest.$ac_ext <<EOF
a3a584a7 8246#line 8247 "configure"
10f2d63a
VZ
8247#include "confdefs.h"
8248#include <assert.h>
698dcdb6
VZ
8249Syntax Error
8250EOF
8251ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a3a584a7 8252{ (eval echo configure:8253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8253ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8254if test -z "$ac_err"; then
10f2d63a
VZ
8255 :
8256else
698dcdb6
VZ
8257 echo "$ac_err" >&5
8258 echo "configure: failed program was:" >&5
10f2d63a 8259 cat conftest.$ac_ext >&5
698dcdb6
VZ
8260 rm -rf conftest*
8261 CPP=/lib/cpp
10f2d63a 8262fi
698dcdb6 8263rm -f conftest*
10f2d63a 8264fi
698dcdb6 8265rm -f conftest*
703e0a69 8266fi
698dcdb6
VZ
8267rm -f conftest*
8268 ac_cv_prog_CPP="$CPP"
8269fi
8270 CPP="$ac_cv_prog_CPP"
10f2d63a 8271else
698dcdb6 8272 ac_cv_prog_CPP="$CPP"
10f2d63a 8273fi
698dcdb6 8274echo "$ac_t""$CPP" 1>&6
10f2d63a 8275
698dcdb6
VZ
8276if test $ac_cv_prog_gcc = yes; then
8277 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
a3a584a7 8278echo "configure:8279: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8279if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8280 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8281else
8282 ac_pattern="Autoconf.*'x'"
698dcdb6 8283 cat > conftest.$ac_ext <<EOF
a3a584a7 8284#line 8285 "configure"
10f2d63a
VZ
8285#include "confdefs.h"
8286#include <sgtty.h>
8287Autoconf TIOCGETP
698dcdb6 8288EOF
10f2d63a
VZ
8289if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8290 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8291 rm -rf conftest*
10f2d63a
VZ
8292 ac_cv_prog_gcc_traditional=yes
8293else
698dcdb6 8294 rm -rf conftest*
10f2d63a
VZ
8295 ac_cv_prog_gcc_traditional=no
8296fi
8297rm -f conftest*
8298
698dcdb6 8299
10f2d63a 8300 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8301 cat > conftest.$ac_ext <<EOF
a3a584a7 8302#line 8303 "configure"
10f2d63a
VZ
8303#include "confdefs.h"
8304#include <termio.h>
8305Autoconf TCGETA
698dcdb6 8306EOF
10f2d63a
VZ
8307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8308 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8309 rm -rf conftest*
10f2d63a
VZ
8310 ac_cv_prog_gcc_traditional=yes
8311fi
8312rm -f conftest*
8313
8314 fi
8315fi
698dcdb6
VZ
8316
8317echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8318 if test $ac_cv_prog_gcc_traditional = yes; then
8319 CC="$CC -traditional"
8320 fi
8321fi
8322
703e0a69 8323
698dcdb6
VZ
8324
8325ac_ext=C
8326# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8327ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8328ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8329ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8330cross_compiling=$ac_cv_prog_cxx_cross
8331
8332
8333for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8334do
8335# Extract the first word of "$ac_prog", so it can be a program name with args.
8336set dummy $ac_prog; ac_word=$2
8337echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a3a584a7 8338echo "configure:8339: checking for $ac_word" >&5
698dcdb6
VZ
8339if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8340 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8341else
8342 if test -n "$CXX"; then
8343 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8344else
698dcdb6
VZ
8345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8346 ac_dummy="$PATH"
8347 for ac_dir in $ac_dummy; do
8348 test -z "$ac_dir" && ac_dir=.
8349 if test -f $ac_dir/$ac_word; then
8350 ac_cv_prog_CXX="$ac_prog"
8351 break
8352 fi
8353 done
8354 IFS="$ac_save_ifs"
10f2d63a
VZ
8355fi
8356fi
698dcdb6 8357CXX="$ac_cv_prog_CXX"
10f2d63a 8358if test -n "$CXX"; then
698dcdb6 8359 echo "$ac_t""$CXX" 1>&6
10f2d63a 8360else
698dcdb6 8361 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8362fi
8363
698dcdb6 8364test -n "$CXX" && break
10f2d63a 8365done
698dcdb6 8366test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
8367
8368
698dcdb6 8369echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
a3a584a7 8370echo "configure:8371: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 8371
698dcdb6
VZ
8372ac_ext=C
8373# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8374ac_cpp='$CXXCPP $CPPFLAGS'
8375ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8376ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8377cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 8378
698dcdb6
VZ
8379cat > conftest.$ac_ext << EOF
8380
a3a584a7 8381#line 8382 "configure"
10f2d63a
VZ
8382#include "confdefs.h"
8383
698dcdb6
VZ
8384int main(){return(0);}
8385EOF
a3a584a7 8386if { (eval echo configure:8387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8387 ac_cv_prog_cxx_works=yes
8388 # If we can't run a trivial program, we are probably using a cross compiler.
8389 if (./conftest; exit) 2>/dev/null; then
8390 ac_cv_prog_cxx_cross=no
8391 else
8392 ac_cv_prog_cxx_cross=yes
8393 fi
8394else
8395 echo "configure: failed program was:" >&5
8396 cat conftest.$ac_ext >&5
8397 ac_cv_prog_cxx_works=no
8398fi
8399rm -fr conftest*
8400ac_ext=C
8401# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8402ac_cpp='$CXXCPP $CPPFLAGS'
8403ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8404ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8405cross_compiling=$ac_cv_prog_cxx_cross
8406
8407echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8408if test $ac_cv_prog_cxx_works = no; then
8409 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8410fi
8411echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
a3a584a7 8412echo "configure:8413: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8413echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8414cross_compiling=$ac_cv_prog_cxx_cross
8415
8416echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
a3a584a7 8417echo "configure:8418: checking whether we are using GNU C++" >&5
698dcdb6
VZ
8418if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8419 echo $ac_n "(cached) $ac_c" 1>&6
8420else
8421 cat > conftest.C <<EOF
8422#ifdef __GNUC__
8423 yes;
10f2d63a 8424#endif
698dcdb6 8425EOF
a3a584a7 8426if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8427 ac_cv_prog_gxx=yes
8428else
8429 ac_cv_prog_gxx=no
8430fi
8431fi
10f2d63a 8432
698dcdb6 8433echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 8434
698dcdb6
VZ
8435if test $ac_cv_prog_gxx = yes; then
8436 GXX=yes
8437else
8438 GXX=
8439fi
10f2d63a 8440
698dcdb6
VZ
8441ac_test_CXXFLAGS="${CXXFLAGS+set}"
8442ac_save_CXXFLAGS="$CXXFLAGS"
8443CXXFLAGS=
8444echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
a3a584a7 8445echo "configure:8446: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
8446if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8447 echo $ac_n "(cached) $ac_c" 1>&6
8448else
8449 echo 'void f(){}' > conftest.cc
8450if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
8451 ac_cv_prog_cxx_g=yes
8452else
698dcdb6 8453 ac_cv_prog_cxx_g=no
10f2d63a 8454fi
698dcdb6
VZ
8455rm -f conftest*
8456
10f2d63a 8457fi
698dcdb6
VZ
8458
8459echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 8460if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 8461 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
8462elif test $ac_cv_prog_cxx_g = yes; then
8463 if test "$GXX" = yes; then
8464 CXXFLAGS="-g -O2"
8465 else
8466 CXXFLAGS="-g"
8467 fi
8468else
8469 if test "$GXX" = yes; then
8470 CXXFLAGS="-O2"
8471 else
8472 CXXFLAGS=
8473 fi
8474fi
8475
8476
10f2d63a
VZ
8477CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8478
8479ac_ext=c
698dcdb6 8480# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 8481ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
8482ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8483ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8484cross_compiling=$ac_cv_prog_cc_cross
8485
8486
8487# Extract the first word of "ranlib", so it can be a program name with args.
8488set dummy ranlib; ac_word=$2
8489echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a3a584a7 8490echo "configure:8491: checking for $ac_word" >&5
698dcdb6
VZ
8491if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8492 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8493else
8494 if test -n "$RANLIB"; then
8495 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8496else
698dcdb6
VZ
8497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8498 ac_dummy="$PATH"
8499 for ac_dir in $ac_dummy; do
8500 test -z "$ac_dir" && ac_dir=.
8501 if test -f $ac_dir/$ac_word; then
8502 ac_cv_prog_RANLIB="ranlib"
8503 break
8504 fi
8505 done
8506 IFS="$ac_save_ifs"
8507 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
8508fi
8509fi
698dcdb6 8510RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 8511if test -n "$RANLIB"; then
698dcdb6 8512 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 8513else
698dcdb6 8514 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8515fi
8516
8517
8518# Extract the first word of "ar", so it can be a program name with args.
8519set dummy ar; ac_word=$2
698dcdb6 8520echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a3a584a7 8521echo "configure:8522: checking for $ac_word" >&5
698dcdb6
VZ
8522if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8523 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8524else
8525 if test -n "$AR"; then
8526 ac_cv_prog_AR="$AR" # Let the user override the test.
8527else
698dcdb6
VZ
8528 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8529 ac_dummy="$PATH"
8530 for ac_dir in $ac_dummy; do
8531 test -z "$ac_dir" && ac_dir=.
8532 if test -f $ac_dir/$ac_word; then
8533 ac_cv_prog_AR="ar"
8534 break
8535 fi
8536 done
8537 IFS="$ac_save_ifs"
10f2d63a
VZ
8538 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8539fi
8540fi
698dcdb6 8541AR="$ac_cv_prog_AR"
10f2d63a 8542if test -n "$AR"; then
698dcdb6 8543 echo "$ac_t""$AR" 1>&6
10f2d63a 8544else
698dcdb6 8545 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8546fi
8547
698dcdb6 8548
6054113a 8549# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
8550# so one script is as good as another. But avoid the broken or
8551# incompatible versions:
8552# SysV /etc/install, /usr/sbin/install
8553# SunOS /usr/etc/install
8554# IRIX /sbin/install
8555# AIX /bin/install
8556# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8557# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8558# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8559# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 8560echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
a3a584a7 8561echo "configure:8562: checking for a BSD compatible install" >&5
10f2d63a 8562if test -z "$INSTALL"; then
698dcdb6
VZ
8563if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8564 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8565else
698dcdb6 8566 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
8567 for ac_dir in $PATH; do
8568 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
8569 case "$ac_dir/" in
8570 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
8571 *)
8572 # OSF1 and SCO ODT 3.0 have their own names for install.
8573 # Don't use installbsd from OSF since it installs stuff as root
8574 # by default.
8575 for ac_prog in ginstall scoinst install; do
698dcdb6 8576 if test -f $ac_dir/$ac_prog; then
10f2d63a 8577 if test $ac_prog = install &&
698dcdb6 8578 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
8579 # AIX install. It has an incompatible calling convention.
8580 :
8581 else
8582 ac_cv_path_install="$ac_dir/$ac_prog -c"
8583 break 2
8584 fi
8585 fi
8586 done
8587 ;;
8588 esac
8589 done
698dcdb6 8590 IFS="$ac_save_IFS"
10f2d63a
VZ
8591
8592fi
8593 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 8594 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
8595 else
8596 # As a last resort, use the slow shell script. We don't cache a
8597 # path for INSTALL within a source directory, because that will
8598 # break other packages using the cache if that directory is
8599 # removed, or if the path is relative.
698dcdb6 8600 INSTALL="$ac_install_sh"
10f2d63a
VZ
8601 fi
8602fi
698dcdb6 8603echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
8604
8605# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8606# It thinks the first close brace ends the variable substitution.
8607test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8608
698dcdb6 8609test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
8610
8611test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8612
6054113a
GD
8613case "${host}" in
8614
b5853384 8615 powerpc-*-darwin* )
eb99ae0b
GD
8616 INSTALL_PROGRAM="cp -fp"
8617 INSTALL_DATA="cp -fp"
6054113a
GD
8618 ;;
8619 *)
8620 ;;
d6853540 8621esac
698dcdb6 8622
10f2d63a
VZ
8623# Extract the first word of "strip", so it can be a program name with args.
8624set dummy strip; ac_word=$2
698dcdb6 8625echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a3a584a7 8626echo "configure:8627: checking for $ac_word" >&5
698dcdb6
VZ
8627if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8628 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8629else
8630 if test -n "$STRIP"; then
8631 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8632else
698dcdb6
VZ
8633 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8634 ac_dummy="$PATH"
8635 for ac_dir in $ac_dummy; do
8636 test -z "$ac_dir" && ac_dir=.
8637 if test -f $ac_dir/$ac_word; then
8638 ac_cv_prog_STRIP="strip"
8639 break
8640 fi
8641 done
8642 IFS="$ac_save_ifs"
10f2d63a
VZ
8643 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8644fi
8645fi
698dcdb6 8646STRIP="$ac_cv_prog_STRIP"
10f2d63a 8647if test -n "$STRIP"; then
698dcdb6 8648 echo "$ac_t""$STRIP" 1>&6
10f2d63a 8649else
698dcdb6 8650 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8651fi
8652
698dcdb6
VZ
8653
8654echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
a3a584a7 8655echo "configure:8656: checking make for VPATH support" >&5
10f2d63a
VZ
8656cat - << EOF > confMake
8657check : file
8658 cp \$? \$@
8659 cp \$? final_file
8660EOF
8661
8662if test ! -d sub ; then
8663 mkdir sub
8664fi
8665echo dummy > sub/file
f6bcfd97 8666${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
8667RESULT=$?
8668rm -f sub/file check final_file confMake
8669rmdir sub
8670if test "$RESULT" = 0; then
698dcdb6 8671 echo "$ac_t""yes" 1>&6
10f2d63a 8672else
698dcdb6
VZ
8673 echo "$ac_t""no" 1>&6
8674 { echo "configure: error:
1e487827
VS
8675You need a make-utility that is able to use the variable
8676VPATH correctly.
8677If your version of make does not support VPATH correctly,
8678please install GNU-make (possibly as gmake), and start
8679configure with the following command:
8680export MAKE=gmake; ./configure for sh-type shells
8681setenv MAKE gmake; ./configure for csh-type shells
8682Also please do remember to use gmake in this case every time
8683you are trying to compile.
698dcdb6 8684" 1>&2; exit 1; }
10f2d63a
VZ
8685fi
8686
8687for ac_prog in 'bison -y' byacc
8688do
698dcdb6 8689# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 8690set dummy $ac_prog; ac_word=$2
698dcdb6 8691echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a3a584a7 8692echo "configure:8693: checking for $ac_word" >&5
698dcdb6
VZ
8693if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8694 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8695else
8696 if test -n "$YACC"; then
8697 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8698else
698dcdb6
VZ
8699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8700 ac_dummy="$PATH"
8701 for ac_dir in $ac_dummy; do
8702 test -z "$ac_dir" && ac_dir=.
8703 if test -f $ac_dir/$ac_word; then
8704 ac_cv_prog_YACC="$ac_prog"
8705 break
8706 fi
8707 done
8708 IFS="$ac_save_ifs"
10f2d63a
VZ
8709fi
8710fi
698dcdb6 8711YACC="$ac_cv_prog_YACC"
10f2d63a 8712if test -n "$YACC"; then
698dcdb6 8713 echo "$ac_t""$YACC" 1>&6
10f2d63a 8714else
698dcdb6 8715 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8716fi
8717
698dcdb6 8718test -n "$YACC" && break
10f2d63a
VZ
8719done
8720test -n "$YACC" || YACC="yacc"
8721
698dcdb6
VZ
8722
8723# Extract the first word of "flex", so it can be a program name with args.
8724set dummy flex; ac_word=$2
8725echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a3a584a7 8726echo "configure:8727: checking for $ac_word" >&5
698dcdb6
VZ
8727if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8728 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8729else
8730 if test -n "$LEX"; then
8731 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8732else
698dcdb6
VZ
8733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8734 ac_dummy="$PATH"
8735 for ac_dir in $ac_dummy; do
8736 test -z "$ac_dir" && ac_dir=.
8737 if test -f $ac_dir/$ac_word; then
8738 ac_cv_prog_LEX="flex"
8739 break
8740 fi
8741 done
8742 IFS="$ac_save_ifs"
8743 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
8744fi
8745fi
698dcdb6 8746LEX="$ac_cv_prog_LEX"
10f2d63a 8747if test -n "$LEX"; then
698dcdb6 8748 echo "$ac_t""$LEX" 1>&6
10f2d63a 8749else
698dcdb6 8750 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8751fi
8752
8753if test -z "$LEXLIB"
8754then
698dcdb6
VZ
8755 case "$LEX" in
8756 flex*) ac_lib=fl ;;
8757 *) ac_lib=l ;;
8758 esac
8759 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
a3a584a7 8760echo "configure:8761: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
8761ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8762if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8763 echo $ac_n "(cached) $ac_c" 1>&6
8764else
8765 ac_save_LIBS="$LIBS"
8766LIBS="-l$ac_lib $LIBS"
8767cat > conftest.$ac_ext <<EOF
a3a584a7 8768#line 8769 "configure"
10f2d63a
VZ
8769#include "confdefs.h"
8770/* Override any gcc2 internal prototype to avoid an error. */
8771/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
8772 builtin and then its argument prototype would still apply. */
8773char yywrap();
10f2d63a 8774
698dcdb6
VZ
8775int main() {
8776yywrap()
8777; return 0; }
8778EOF
a3a584a7 8779if { (eval echo configure:8780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8780 rm -rf conftest*
8781 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 8782else
698dcdb6
VZ
8783 echo "configure: failed program was:" >&5
8784 cat conftest.$ac_ext >&5
8785 rm -rf conftest*
8786 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 8787fi
698dcdb6
VZ
8788rm -f conftest*
8789LIBS="$ac_save_LIBS"
8790
10f2d63a 8791fi
698dcdb6
VZ
8792if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8793 echo "$ac_t""yes" 1>&6
8794 LEXLIB="-l$ac_lib"
8795else
8796 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8797fi
8798
8799fi
8800
8801
698dcdb6 8802echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
a3a584a7 8803echo "configure:8804: checking whether ln -s works" >&5
698dcdb6
VZ
8804if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8805 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8806else
698dcdb6
VZ
8807 rm -f conftestdata
8808if ln -s X conftestdata 2>/dev/null
8809then
8810 rm -f conftestdata
8811 ac_cv_prog_LN_S="ln -s"
10f2d63a 8812else
698dcdb6 8813 ac_cv_prog_LN_S=ln
10f2d63a
VZ
8814fi
8815fi
698dcdb6
VZ
8816LN_S="$ac_cv_prog_LN_S"
8817if test "$ac_cv_prog_LN_S" = "ln -s"; then
8818 echo "$ac_t""yes" 1>&6
10f2d63a 8819else
698dcdb6 8820 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8821fi
8822
8823
8824
8825SEARCH_INCLUDE="\
8826 /usr/local/include \
8827 \
8828 /usr/Motif-1.2/include \
8829 /usr/Motif-2.1/include \
8830 \
8831 /usr/include/Motif1.2 \
8832 /opt/xpm/include/X11 \
8833 /opt/GBxpm/include/ \
8834 /opt/GBxpm/X11/include/ \
8835 \
8836 /usr/Motif1.2/include \
8837 /usr/dt/include \
afc31813
VZ
8838 /usr/openwin/include \
8839 \
10f2d63a
VZ
8840 /usr/include/Xm \
8841 \
8842 /usr/X11R6/include \
afc31813 8843 /usr/X11R6.4/include \
10f2d63a
VZ
8844 /usr/X11R5/include \
8845 /usr/X11R4/include \
8846 \
10f2d63a
VZ
8847 /usr/include/X11R6 \
8848 /usr/include/X11R5 \
8849 /usr/include/X11R4 \
8850 \
8851 /usr/local/X11R6/include \
8852 /usr/local/X11R5/include \
8853 /usr/local/X11R4/include \
8854 \
8855 /usr/local/include/X11R6 \
8856 /usr/local/include/X11R5 \
8857 /usr/local/include/X11R4 \
8858 \
8859 /usr/X11/include \
8860 /usr/include/X11 \
8861 /usr/local/X11/include \
8862 /usr/local/include/X11 \
8863 \
8864 /usr/X386/include \
8865 /usr/x386/include \
8866 /usr/XFree86/include/X11 \
8867 \
cf27ef00 8868 X:/XFree86/include \
ec14dd32
VZ
8869 X:/XFree86/include/X11 \
8870 \
10f2d63a
VZ
8871 /usr/include/gtk \
8872 /usr/local/include/gtk \
8873 /usr/include/glib \
8874 /usr/local/include/glib \
8875 \
8876 /usr/include/qt \
8877 /usr/local/include/qt \
8878 \
8879 /usr/include/windows \
8880 /usr/include/wine \
8881 /usr/local/include/wine \
8882 \
8883 /usr/unsupported/include \
8884 /usr/athena/include \
8885 /usr/local/x11r5/include \
8886 /usr/lpp/Xamples/include \
8887 \
10f2d63a 8888 /usr/openwin/share/include \
928b5c08
VZ
8889 \
8890 /usr/include"
10f2d63a
VZ
8891
8892SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8893
698dcdb6
VZ
8894
8895cat > confcache <<\EOF
10f2d63a
VZ
8896# This file is a shell script that caches the results of configure
8897# tests run on this system so they can be shared between configure
698dcdb6
VZ
8898# scripts and configure runs. It is not useful on other systems.
8899# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8900#
698dcdb6
VZ
8901# By default, configure uses ./config.cache as the cache file,
8902# creating it if it does not exist already. You can give configure
8903# the --cache-file=FILE option to use a different cache file; that is
8904# what configure does when it calls configure scripts in
8905# subdirectories, so they share the cache.
8906# Giving --cache-file=/dev/null disables caching, for debugging configure.
8907# config.status only pays attention to the cache file if you give it the
8908# --recheck option to rerun configure.
10f2d63a 8909#
698dcdb6 8910EOF
10f2d63a
VZ
8911# The following way of writing the cache mishandles newlines in values,
8912# but we know of no workaround that is simple, portable, and efficient.
8913# So, don't put newlines in cache variables' values.
8914# Ultrix sh set writes to stderr and can't be redirected directly,
8915# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8916(set) 2>&1 |
8917 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8918 *ac_space=\ *)
8919 # `set' does not quote correctly, so add quotes (double-quote substitution
8920 # turns \\\\ into \\, and sed turns \\ into \).
8921 sed -n \
8922 -e "s/'/'\\\\''/g" \
8923 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8924 ;;
8925 *)
8926 # `set' quotes correctly as required by POSIX, so do not add quotes.
8927 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8928 ;;
8929 esac >> confcache
8930if cmp -s $cache_file confcache; then
8931 :
8932else
10f2d63a 8933 if test -w $cache_file; then
698dcdb6
VZ
8934 echo "updating cache $cache_file"
8935 cat confcache > $cache_file
10f2d63a
VZ
8936 else
8937 echo "not updating unwritable cache $cache_file"
8938 fi
8939fi
8940rm -f confcache
8941
698dcdb6
VZ
8942
8943
4f14bcd8 8944
18dbb1f6
VZ
8945REGEX_INCLUDE=
8946if test "$wxUSE_REGEX" != "no"; then
4f14bcd8
GD
8947 cat >> confdefs.h <<\EOF
8948#define wxUSE_REGEX 1
8949EOF
8950
8951
8952 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
8953 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
18dbb1f6 8954echo $ac_n "checking for regex.h""... $ac_c" 1>&6
a3a584a7 8955echo "configure:8956: checking for regex.h" >&5
18dbb1f6
VZ
8956if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8957 echo $ac_n "(cached) $ac_c" 1>&6
8958else
8959 cat > conftest.$ac_ext <<EOF
a3a584a7 8960#line 8961 "configure"
18dbb1f6
VZ
8961#include "confdefs.h"
8962#include <regex.h>
8963EOF
8964ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a3a584a7 8965{ (eval echo configure:8966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18dbb1f6
VZ
8966ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8967if test -z "$ac_err"; then
8968 rm -rf conftest*
8969 eval "ac_cv_header_$ac_safe=yes"
8970else
8971 echo "$ac_err" >&5
8972 echo "configure: failed program was:" >&5
8973 cat conftest.$ac_ext >&5
8974 rm -rf conftest*
8975 eval "ac_cv_header_$ac_safe=no"
8976fi
8977rm -f conftest*
8978fi
8979if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8980 echo "$ac_t""yes" 1>&6
8981 for ac_func in regcomp
8982do
8983echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a3a584a7 8984echo "configure:8985: checking for $ac_func" >&5
18dbb1f6
VZ
8985if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8986 echo $ac_n "(cached) $ac_c" 1>&6
8987else
8988 cat > conftest.$ac_ext <<EOF
a3a584a7 8989#line 8990 "configure"
18dbb1f6
VZ
8990#include "confdefs.h"
8991/* System header to define __stub macros and hopefully few prototypes,
8992 which can conflict with char $ac_func(); below. */
8993#include <assert.h>
8994/* Override any gcc2 internal prototype to avoid an error. */
8995/* We use char because int might match the return type of a gcc2
8996 builtin and then its argument prototype would still apply. */
8997char $ac_func();
8998
8999int main() {
9000
9001/* The GNU C library defines this for functions which it implements
9002 to always fail with ENOSYS. Some functions are actually named
9003 something starting with __ and the normal name is an alias. */
9004#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9005choke me
9006#else
9007$ac_func();
9008#endif
9009
9010; return 0; }
9011EOF
a3a584a7 9012if { (eval echo configure:9013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18dbb1f6
VZ
9013 rm -rf conftest*
9014 eval "ac_cv_func_$ac_func=yes"
9015else
9016 echo "configure: failed program was:" >&5
9017 cat conftest.$ac_ext >&5
9018 rm -rf conftest*
9019 eval "ac_cv_func_$ac_func=no"
9020fi
9021rm -f conftest*
9022fi
9023
9024if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9025 echo "$ac_t""yes" 1>&6
9026 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9027 cat >> confdefs.h <<EOF
9028#define $ac_tr_func 1
9029EOF
9030
9031else
9032 echo "$ac_t""no" 1>&6
9033fi
9034done
9035
9036else
9037 echo "$ac_t""no" 1>&6
9038fi
9039
9040
4f14bcd8
GD
9041 if test "x$ac_cv_func_regcomp" != "xyes"; then
9042 if test "$wxUSE_REGEX" = "sys" ; then
9043 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9044 else
a3df447d 9045 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9046 wxUSE_REGEX=builtin
9047 fi
9048 else
9049 wxUSE_REGEX=sys
18dbb1f6 9050 fi
18dbb1f6
VZ
9051 fi
9052
4f14bcd8
GD
9053 if test "$wxUSE_REGEX" = "builtin" ; then
9054 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9055 fi
18dbb1f6
VZ
9056fi
9057
9058
4f14bcd8
GD
9059ZLIB_INCLUDE=
9060ZLIB_LINK=
9061if test "$wxUSE_ZLIB" != "no" ; then
9062 cat >> confdefs.h <<\EOF
9063#define wxUSE_ZLIB 1
9064EOF
dad6c0ea 9065
10f2d63a 9066
4f14bcd8
GD
9067 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9068 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9069echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
a3a584a7 9070echo "configure:9071: checking for zlib.h" >&5
3a922bb4
RL
9071if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9072 echo $ac_n "(cached) $ac_c" 1>&6
9073else
9074 cat > conftest.$ac_ext <<EOF
a3a584a7 9075#line 9076 "configure"
3a922bb4 9076#include "confdefs.h"
4f14bcd8 9077#include <zlib.h>
3a922bb4
RL
9078EOF
9079ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a3a584a7 9080{ (eval echo configure:9081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
9081ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9082if test -z "$ac_err"; then
9083 rm -rf conftest*
9084 eval "ac_cv_header_$ac_safe=yes"
9085else
9086 echo "$ac_err" >&5
9087 echo "configure: failed program was:" >&5
9088 cat conftest.$ac_ext >&5
9089 rm -rf conftest*
9090 eval "ac_cv_header_$ac_safe=no"
9091fi
9092rm -f conftest*
9093fi
9094if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9095 echo "$ac_t""yes" 1>&6
4f14bcd8 9096 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
a3a584a7 9097echo "configure:9098: checking for deflate in -lz" >&5
4f14bcd8
GD
9098ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9099if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9100 echo $ac_n "(cached) $ac_c" 1>&6
9101else
9102 ac_save_LIBS="$LIBS"
9103LIBS="-lz $LIBS"
9104cat > conftest.$ac_ext <<EOF
a3a584a7 9105#line 9106 "configure"
4f14bcd8
GD
9106#include "confdefs.h"
9107/* Override any gcc2 internal prototype to avoid an error. */
9108/* We use char because int might match the return type of a gcc2
9109 builtin and then its argument prototype would still apply. */
9110char deflate();
9111
9112int main() {
9113deflate()
9114; return 0; }
3a922bb4 9115EOF
a3a584a7 9116if { (eval echo configure:9117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9117 rm -rf conftest*
9118 eval "ac_cv_lib_$ac_lib_var=yes"
9119else
9120 echo "configure: failed program was:" >&5
9121 cat conftest.$ac_ext >&5
9122 rm -rf conftest*
9123 eval "ac_cv_lib_$ac_lib_var=no"
9124fi
9125rm -f conftest*
9126LIBS="$ac_save_LIBS"
9127
9128fi
9129if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9130 echo "$ac_t""yes" 1>&6
3d63bc3a 9131 ZLIB_LINK=" -lz"
3a922bb4
RL
9132else
9133 echo "$ac_t""no" 1>&6
9134fi
10f2d63a 9135
4f14bcd8
GD
9136else
9137 echo "$ac_t""no" 1>&6
9138fi
9139
9140
9141 if test "x$ZLIB_LINK" = "x" ; then
9142 if test "$wxUSE_ZLIB" = "sys" ; then
9143 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9144 else
a3df447d 9145 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9146 wxUSE_ZLIB=builtin
9147 fi
9148 else
9149 wxUSE_ZLIB=sys
9150 fi
9151 fi
9152
9153 if test "$wxUSE_ZLIB" = "builtin" ; then
9154 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9155 fi
9156fi
9157
9158
9159PNG_INCLUDE=
9160PNG_LINK=
9161if test "$wxUSE_LIBPNG" != "no" ; then
9162 cat >> confdefs.h <<\EOF
9163#define wxUSE_LIBPNG 1
9164EOF
9165
9166
9167 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
a3df447d 9168 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
4f14bcd8
GD
9169 wxUSE_LIBPNG=builtin
9170 fi
9171
9172 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9173 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9174echo $ac_n "checking for png.h""... $ac_c" 1>&6
a3a584a7 9175echo "configure:9176: checking for png.h" >&5
d4158b5d
VS
9176if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9177 echo $ac_n "(cached) $ac_c" 1>&6
9178else
9179 cat > conftest.$ac_ext <<EOF
a3a584a7 9180#line 9181 "configure"
d4158b5d 9181#include "confdefs.h"
4f14bcd8 9182#include <png.h>
d4158b5d
VS
9183EOF
9184ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a3a584a7 9185{ (eval echo configure:9186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4158b5d
VS
9186ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9187if test -z "$ac_err"; then
9188 rm -rf conftest*
9189 eval "ac_cv_header_$ac_safe=yes"
9190else
9191 echo "$ac_err" >&5
9192 echo "configure: failed program was:" >&5
9193 cat conftest.$ac_ext >&5
9194 rm -rf conftest*
9195 eval "ac_cv_header_$ac_safe=no"
9196fi
9197rm -f conftest*
9198fi
9199if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9200 echo "$ac_t""yes" 1>&6
4f14bcd8 9201 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
a3a584a7 9202echo "configure:9203: checking for png_check_sig in -lpng" >&5
4f14bcd8
GD
9203ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9204if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3a922bb4
RL
9205 echo $ac_n "(cached) $ac_c" 1>&6
9206else
4f14bcd8
GD
9207 ac_save_LIBS="$LIBS"
9208LIBS="-lpng -lz -lm $LIBS"
9209cat > conftest.$ac_ext <<EOF
a3a584a7 9210#line 9211 "configure"
3a922bb4 9211#include "confdefs.h"
4f14bcd8
GD
9212/* Override any gcc2 internal prototype to avoid an error. */
9213/* We use char because int might match the return type of a gcc2
9214 builtin and then its argument prototype would still apply. */
9215char png_check_sig();
f6bcfd97 9216
4f14bcd8
GD
9217int main() {
9218png_check_sig()
3a922bb4
RL
9219; return 0; }
9220EOF
a3a584a7 9221if { (eval echo configure:9222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4 9222 rm -rf conftest*
4f14bcd8 9223 eval "ac_cv_lib_$ac_lib_var=yes"
3a922bb4
RL
9224else
9225 echo "configure: failed program was:" >&5
9226 cat conftest.$ac_ext >&5
9227 rm -rf conftest*
4f14bcd8 9228 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4
RL
9229fi
9230rm -f conftest*
4f14bcd8 9231LIBS="$ac_save_LIBS"
10f2d63a 9232
4f14bcd8
GD
9233fi
9234if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9235 echo "$ac_t""yes" 1>&6
3d63bc3a 9236 PNG_LINK=" -lpng"
4f14bcd8
GD
9237else
9238 echo "$ac_t""no" 1>&6
9239fi
32832908 9240
4f14bcd8
GD
9241
9242else
9243 echo "$ac_t""no" 1>&6
9244fi
3a922bb4 9245
7b7a7637 9246
4f14bcd8
GD
9247 if test "x$PNG_LINK" = "x" ; then
9248 if test "$wxUSE_LIBPNG" = "sys" ; then
9249 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9250 else
a3df447d 9251 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9252 wxUSE_LIBPNG=builtin
9253 fi
9254 else
9255 wxUSE_LIBPNG=yes
9256 fi
3a922bb4
RL
9257 fi
9258
4f14bcd8
GD
9259 if test "$wxUSE_LIBPNG" = "builtin" ; then
9260 PNG_INCLUDE="-I\${top_srcdir}/src/png"
3a922bb4
RL
9261 fi
9262
4f14bcd8 9263 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
3a922bb4
RL
9264fi
9265
32832908 9266
4f14bcd8
GD
9267JPEG_INCLUDE=
9268JPEG_LINK=
9269if test "$wxUSE_LIBJPEG" != "no" ; then
9270 cat >> confdefs.h <<\EOF
9271#define wxUSE_LIBJPEG 1
9272EOF
10f2d63a 9273
8168de4c 9274
4f14bcd8
GD
9275 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9276 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
a3a584a7 9277echo "configure:9278: checking for jpeglib.h" >&5
4f14bcd8 9278 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
8168de4c
VZ
9279 echo $ac_n "(cached) $ac_c" 1>&6
9280else
4f14bcd8 9281 cat > conftest.$ac_ext <<EOF
a3a584a7 9282#line 9283 "configure"
4f14bcd8 9283#include "confdefs.h"
8168de4c 9284
4f14bcd8
GD
9285 #undef HAVE_STDLIB_H
9286 #include <stdio.h>
9287 #include <jpeglib.h>
9288
9289int main() {
9290
9291
9292; return 0; }
9293EOF
a3a584a7 9294if { (eval echo configure:9295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
9295 rm -rf conftest*
9296 ac_cv_header_jpeglib_h=yes
6f72b082 9297else
4f14bcd8
GD
9298 echo "configure: failed program was:" >&5
9299 cat conftest.$ac_ext >&5
9300 rm -rf conftest*
9301 ac_cv_header_jpeglib_h=no
9302
9303fi
9304rm -f conftest*
9305
698dcdb6 9306fi
6f72b082 9307
4f14bcd8
GD
9308 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
9309
9310 if test "$ac_cv_header_jpeglib_h" = "yes"; then
9311 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
a3a584a7 9312echo "configure:9313: checking for jpeg_read_header in -ljpeg" >&5
4f14bcd8
GD
9313ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
9314if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9315 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 9316else
4f14bcd8
GD
9317 ac_save_LIBS="$LIBS"
9318LIBS="-ljpeg $LIBS"
9319cat > conftest.$ac_ext <<EOF
a3a584a7 9320#line 9321 "configure"
4f14bcd8
GD
9321#include "confdefs.h"
9322/* Override any gcc2 internal prototype to avoid an error. */
9323/* We use char because int might match the return type of a gcc2
9324 builtin and then its argument prototype would still apply. */
9325char jpeg_read_header();
698dcdb6 9326
4f14bcd8
GD
9327int main() {
9328jpeg_read_header()
9329; return 0; }
9330EOF
a3a584a7 9331if { (eval echo configure:9332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9332 rm -rf conftest*
9333 eval "ac_cv_lib_$ac_lib_var=yes"
6f72b082 9334else
4f14bcd8
GD
9335 echo "configure: failed program was:" >&5
9336 cat conftest.$ac_ext >&5
9337 rm -rf conftest*
9338 eval "ac_cv_lib_$ac_lib_var=no"
698dcdb6 9339fi
4f14bcd8
GD
9340rm -f conftest*
9341LIBS="$ac_save_LIBS"
698dcdb6 9342
4f14bcd8
GD
9343fi
9344if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9345 echo "$ac_t""yes" 1>&6
3d63bc3a 9346 JPEG_LINK=" -ljpeg"
4f14bcd8
GD
9347else
9348 echo "$ac_t""no" 1>&6
9349fi
9350
9351 fi
9352
9353 if test "x$JPEG_LINK" = "x" ; then
9354 if test "$wxUSE_LIBJPEG" = "sys" ; then
9355 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
9356 else
a3df447d 9357 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9358 wxUSE_LIBJPEG=builtin
9359 fi
9360 else
9361 wxUSE_LIBJPEG=sys
9362 fi
9363 fi
9364
9365 if test "$wxUSE_LIBJPEG" = "builtin" ; then
9366 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
9367 fi
9368fi
9369
9370
9371TIFF_INCLUDE=
9372TIFF_LINK=
9373if test "$wxUSE_LIBTIFF" != "no" ; then
9374 cat >> confdefs.h <<\EOF
9375#define wxUSE_LIBTIFF 1
9376EOF
9377
9378
9379 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
9380 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
9381echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
a3a584a7 9382echo "configure:9383: checking for tiffio.h" >&5
4f14bcd8
GD
9383if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9384 echo $ac_n "(cached) $ac_c" 1>&6
9385else
9386 cat > conftest.$ac_ext <<EOF
a3a584a7 9387#line 9388 "configure"
4f14bcd8
GD
9388#include "confdefs.h"
9389#include <tiffio.h>
9390EOF
9391ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a3a584a7 9392{ (eval echo configure:9393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
9393ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9394if test -z "$ac_err"; then
9395 rm -rf conftest*
9396 eval "ac_cv_header_$ac_safe=yes"
9397else
9398 echo "$ac_err" >&5
9399 echo "configure: failed program was:" >&5
9400 cat conftest.$ac_ext >&5
9401 rm -rf conftest*
9402 eval "ac_cv_header_$ac_safe=no"
9403fi
9404rm -f conftest*
9405fi
9406if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9407 echo "$ac_t""yes" 1>&6
9408 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
a3a584a7 9409echo "configure:9410: checking for TIFFError in -ltiff" >&5
4f14bcd8
GD
9410ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
9411if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9412 echo $ac_n "(cached) $ac_c" 1>&6
9413else
9414 ac_save_LIBS="$LIBS"
9415LIBS="-ltiff -lm $LIBS"
9416cat > conftest.$ac_ext <<EOF
a3a584a7 9417#line 9418 "configure"
4f14bcd8
GD
9418#include "confdefs.h"
9419/* Override any gcc2 internal prototype to avoid an error. */
9420/* We use char because int might match the return type of a gcc2
9421 builtin and then its argument prototype would still apply. */
9422char TIFFError();
9423
9424int main() {
9425TIFFError()
9426; return 0; }
9427EOF
a3a584a7 9428if { (eval echo configure:9429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9429 rm -rf conftest*
9430 eval "ac_cv_lib_$ac_lib_var=yes"
9431else
9432 echo "configure: failed program was:" >&5
9433 cat conftest.$ac_ext >&5
9434 rm -rf conftest*
9435 eval "ac_cv_lib_$ac_lib_var=no"
9436fi
9437rm -f conftest*
9438LIBS="$ac_save_LIBS"
9439
9440fi
9441if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9442 echo "$ac_t""yes" 1>&6
3d63bc3a 9443 TIFF_LINK=" -ltiff"
4f14bcd8
GD
9444else
9445 echo "$ac_t""no" 1>&6
9446fi
9447
9448
9449else
9450 echo "$ac_t""no" 1>&6
9451fi
9452
9453
9454 if test "x$TIFF_LINK" = "x" ; then
9455 if test "$wxUSE_LIBTIFF" = "sys" ; then
9456 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
9457 else
a3df447d 9458 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9459 wxUSE_LIBTIFF=builtin
9460 fi
9461 else
9462 wxUSE_LIBTIFF=sys
9463 fi
9464 fi
9465
9466 if test "$wxUSE_LIBTIFF" = "builtin" ; then
9467 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
9468 fi
9469fi
9470
9471
9472FREETYPE_INCLUDE=
9473FREETYPE_LINK=
9474if test "$wxUSE_FREETYPE" != "no" ; then
9475 cat >> confdefs.h <<\EOF
9476#define wxUSE_FREETYPE 1
9477EOF
9478
9479
9480 if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then
9481 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
9482echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
a3a584a7 9483echo "configure:9484: checking for freetype.h" >&5
4f14bcd8
GD
9484if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9485 echo $ac_n "(cached) $ac_c" 1>&6
9486else
9487 cat > conftest.$ac_ext <<EOF
a3a584a7 9488#line 9489 "configure"
4f14bcd8
GD
9489#include "confdefs.h"
9490#include <freetype.h>
9491EOF
9492ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a3a584a7 9493{ (eval echo configure:9494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
9494ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9495if test -z "$ac_err"; then
9496 rm -rf conftest*
9497 eval "ac_cv_header_$ac_safe=yes"
9498else
9499 echo "$ac_err" >&5
9500 echo "configure: failed program was:" >&5
9501 cat conftest.$ac_ext >&5
9502 rm -rf conftest*
9503 eval "ac_cv_header_$ac_safe=no"
9504fi
9505rm -f conftest*
9506fi
9507if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9508 echo "$ac_t""yes" 1>&6
9509 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
a3a584a7 9510echo "configure:9511: checking for FT_Render_Glyph in -lfreetype" >&5
4f14bcd8
GD
9511ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
9512if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9513 echo $ac_n "(cached) $ac_c" 1>&6
9514else
9515 ac_save_LIBS="$LIBS"
9516LIBS="-lfreetype -lm $LIBS"
9517cat > conftest.$ac_ext <<EOF
a3a584a7 9518#line 9519 "configure"
4f14bcd8
GD
9519#include "confdefs.h"
9520/* Override any gcc2 internal prototype to avoid an error. */
9521/* We use char because int might match the return type of a gcc2
9522 builtin and then its argument prototype would still apply. */
9523char FT_Render_Glyph();
9524
9525int main() {
9526FT_Render_Glyph()
9527; return 0; }
9528EOF
a3a584a7 9529if { (eval echo configure:9530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9530 rm -rf conftest*
9531 eval "ac_cv_lib_$ac_lib_var=yes"
9532else
9533 echo "configure: failed program was:" >&5
9534 cat conftest.$ac_ext >&5
9535 rm -rf conftest*
9536 eval "ac_cv_lib_$ac_lib_var=no"
9537fi
9538rm -f conftest*
9539LIBS="$ac_save_LIBS"
9540
9541fi
9542if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9543 echo "$ac_t""yes" 1>&6
3d63bc3a 9544 FREETYPE_LINK=" -lfreetype"
4f14bcd8
GD
9545else
9546 echo "$ac_t""no" 1>&6
9547fi
9548
9549
9550else
9551 echo "$ac_t""no" 1>&6
9552fi
9553
9554
9555 if test "x$FREETYPE_LINK" = "x" ; then
9556 if test "$wxUSE_FREETYPE" = "sys" ; then
9557 { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; }
9558 else
a3df447d 9559 echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9560 wxUSE_FREETYPE=builtin
9561 fi
9562 else
9563 wxUSE_FREETYPE=sys
9564 fi
9565 fi
9566
9567 if test "$wxUSE_FREETYPE" = "builtin" ; then
9568 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
9569 fi
9570fi
9571
9572
9573AFMINSTALL=
9574
9575TOOLKIT=
9576TOOLKIT_INCLUDE=
9577WIDGET_SET=
9578
9579if test "$USE_WIN32" = 1 ; then
9580 for ac_hdr in w32api.h
9581do
9582ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9583echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a3a584a7 9584echo "configure:9585: checking for $ac_hdr" >&5
4f14bcd8
GD
9585if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9586 echo $ac_n "(cached) $ac_c" 1>&6
9587else
9588 cat > conftest.$ac_ext <<EOF
a3a584a7 9589#line 9590 "configure"
4f14bcd8
GD
9590#include "confdefs.h"
9591#include <$ac_hdr>
9592EOF
9593ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a3a584a7 9594{ (eval echo configure:9595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
9595ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9596if test -z "$ac_err"; then
9597 rm -rf conftest*
9598 eval "ac_cv_header_$ac_safe=yes"
9599else
9600 echo "$ac_err" >&5
9601 echo "configure: failed program was:" >&5
9602 cat conftest.$ac_ext >&5
9603 rm -rf conftest*
9604 eval "ac_cv_header_$ac_safe=no"
9605fi
9606rm -f conftest*
9607fi
9608if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9609 echo "$ac_t""yes" 1>&6
9610 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9611 cat >> confdefs.h <<EOF
9612#define $ac_tr_hdr 1
9613EOF
9614
9615else
9616 echo "$ac_t""no" 1>&6
9617fi
9618done
9619
9620 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
9621echo $ac_n "checking for windows.h""... $ac_c" 1>&6
a3a584a7 9622echo "configure:9623: checking for windows.h" >&5
4f14bcd8
GD
9623if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9624 echo $ac_n "(cached) $ac_c" 1>&6
9625else
9626 cat > conftest.$ac_ext <<EOF
a3a584a7 9627#line 9628 "configure"
4f14bcd8
GD
9628#include "confdefs.h"
9629#include <windows.h>
9630EOF
9631ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a3a584a7 9632{ (eval echo configure:9633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
9633ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9634if test -z "$ac_err"; then
9635 rm -rf conftest*
9636 eval "ac_cv_header_$ac_safe=yes"
9637else
9638 echo "$ac_err" >&5
9639 echo "configure: failed program was:" >&5
9640 cat conftest.$ac_ext >&5
9641 rm -rf conftest*
9642 eval "ac_cv_header_$ac_safe=no"
9643fi
9644rm -f conftest*
9645fi
9646if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9647 echo "$ac_t""yes" 1>&6
9648 :
9649else
9650 echo "$ac_t""no" 1>&6
9651
9652 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9653
9654fi
9655
9656
9657 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
a3a584a7 9658echo "configure:9659: checking if w32api has good enough MSIE support" >&5
ea7682f0 9659if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
4f14bcd8
GD
9660 echo $ac_n "(cached) $ac_c" 1>&6
9661else
9662
9663 cat > conftest.$ac_ext <<EOF
a3a584a7 9664#line 9665 "configure"
4f14bcd8
GD
9665#include "confdefs.h"
9666#include <w32api.h>
9667int main() {
9668
9669 #define wxCHECK_W32API_VERSION( major, minor ) \
9670 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
9671 && ( ( __W32API_MAJOR_VERSION > (major) ) \
9672 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
9673
9674 #if !wxCHECK_W32API_VERSION(1,1)
9675 #error You need w32api 1.1 or newer
9676 #endif
9677
9678; return 0; }
9679EOF
a3a584a7 9680if { (eval echo configure:9681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
9681 rm -rf conftest*
9682
ea7682f0 9683 wx_cv_w32api_win32_ie=yes
4f14bcd8
GD
9684
9685else
9686 echo "configure: failed program was:" >&5
9687 cat conftest.$ac_ext >&5
9688 rm -rf conftest*
9689
ea7682f0 9690 wx_cv_w32api_win32_ie=no
4f14bcd8
GD
9691
9692fi
9693rm -f conftest*
9694
9695fi
9696
ea7682f0
VS
9697echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
9698 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
9699 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
9700 fi
4f14bcd8
GD
9701
9702 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
9703
77e13408
RL
9704 case "${host}" in
9705 *-*-cygwin* )
9706 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
9707 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
9708 esac
4f14bcd8
GD
9709
9710 if test "$wxUSE_ODBC" = "yes" ; then
3d63bc3a 9711 LIBS=" -lodbc32 -lole32 -loleaut32$LIBS"
4f14bcd8
GD
9712 fi
9713
4f14bcd8
GD
9714 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
9715 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
9716fi
9717
9718if test "$wxUSE_GUI" = "yes"; then
9719 USE_GUI=1
9720
9721 GUI_TK_LIBRARY=
9722
9723 WXGTK12=
9724 WXGTK127=
9725 WXGTK20=
9726
77e13408 9727 if test "$wxUSE_MSW" = 1 ; then
4f14bcd8
GD
9728 TOOLKIT=MSW
9729 GUIDIST=MSW_DIST
77e13408
RL
9730
9731 case "${host}" in
9732 *-*-mingw32* )
3d63bc3a 9733 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
77e13408 9734 esac
4f14bcd8
GD
9735 fi
9736
9737 if test "$wxUSE_GTK" = 1; then
9738 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
a3a584a7 9739echo "configure:9740: checking for GTK+ version" >&5
4f14bcd8
GD
9740
9741 gtk_version_cached=1
9742 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9743 echo $ac_n "(cached) $ac_c" 1>&6
9744else
9745
9746 gtk_version_cached=0
d48ad9bd 9747 echo "$ac_t""" 1>&6
4f14bcd8
GD
9748
9749 wx_cv_lib_gtk=
9750 if test "x$wxUSE_GTK2" = "xyes"; then
9751 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
9752if test "${with_gtk_prefix+set}" = set; then
9753 withval="$with_gtk_prefix"
9754 gtk_config_prefix="$withval"
9755else
9756 gtk_config_prefix=""
9757fi
9758
9759# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9760if test "${with_gtk_exec_prefix+set}" = set; then
9761 withval="$with_gtk_exec_prefix"
9762 gtk_config_exec_prefix="$withval"
9763else
9764 gtk_config_exec_prefix=""
9765fi
9766
9767# Check whether --enable-gtktest or --disable-gtktest was given.
9768if test "${enable_gtktest+set}" = set; then
9769 enableval="$enable_gtktest"
9770 :
9771else
9772 enable_gtktest=yes
9773fi
9774
9775
9776 for module in .
9777 do
6f72b082 9778 case "$module" in
8168de4c 9779 gthread)
6f72b082
OK
9780 gtk_config_args="$gtk_config_args gthread"
9781 ;;
9782 esac
9783 done
9784
9785 if test x$gtk_config_exec_prefix != x ; then
9786 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9787 if test x${GTK_CONFIG_2_0+set} != xset ; then
9788 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9789 fi
9790 fi
9791 if test x$gtk_config_prefix != x ; then
9792 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9793 if test x${GTK_CONFIG_2_0+set} != xset ; then
9794 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9795 fi
9796 fi
9797
9798 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9799set dummy gtk-config-2.0; ac_word=$2
698dcdb6 9800echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a3a584a7 9801echo "configure:9802: checking for $ac_word" >&5
698dcdb6
VZ
9802if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9803 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 9804else
698dcdb6
VZ
9805 case "$GTK_CONFIG_2_0" in
9806 /*)
6f72b082
OK
9807 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9808 ;;
698dcdb6
VZ
9809 ?:/*)
9810 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9811 ;;
6f72b082 9812 *)
698dcdb6
VZ
9813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9814 ac_dummy="$PATH"
9815 for ac_dir in $ac_dummy; do
9816 test -z "$ac_dir" && ac_dir=.
9817 if test -f $ac_dir/$ac_word; then
9818 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9819 break
9820 fi
9821 done
9822 IFS="$ac_save_ifs"
6f72b082
OK
9823 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9824 ;;
9825esac
9826fi
698dcdb6 9827GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 9828if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 9829 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 9830else
698dcdb6 9831 echo "$ac_t""no" 1>&6
6f72b082
OK
9832fi
9833
9834 min_gtk_version=1.3.1
698dcdb6 9835 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
a3a584a7 9836echo "configure:9837: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
9837 no_gtk=""
9838 if test "$GTK_CONFIG_2_0" = "no" ; then
9839 no_gtk=yes
9840 else
9841 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9842 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9843 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9844 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9845 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9846 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9847 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9848 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9849 if test "x$enable_gtktest" = "xyes" ; then
9850 ac_save_CFLAGS="$CFLAGS"
9851 ac_save_LIBS="$LIBS"
9852 CFLAGS="$CFLAGS $GTK_CFLAGS"
9853 LIBS="$GTK_LIBS $LIBS"
9854 rm -f conf.gtktest
9855 if test "$cross_compiling" = yes; then
9856 echo $ac_n "cross compiling; assumed OK... $ac_c"
9857else
698dcdb6 9858 cat > conftest.$ac_ext <<EOF
a3a584a7 9859#line 9860 "configure"
6f72b082
OK
9860#include "confdefs.h"
9861
9862#include <gtk/gtk.h>
9863#include <stdio.h>
9864#include <stdlib.h>
9865
8168de4c 9866int
6f72b082
OK
9867main ()
9868{
9869 int major, minor, micro;
9870 char *tmp_version;
9871
9872 system ("touch conf.gtktest");
9873
9874 /* HP/UX 9 (%@#!) writes to sscanf strings */
9875 tmp_version = g_strdup("$min_gtk_version");
9876 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9877 printf("%s, bad version string\n", "$min_gtk_version");
9878 exit(1);
9879 }
9880
9881 if ((gtk_major_version != $gtk_config_major_version) ||
9882 (gtk_minor_version != $gtk_config_minor_version) ||
9883 (gtk_micro_version != $gtk_config_micro_version))
9884 {
8168de4c 9885 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
9886 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9887 gtk_major_version, gtk_minor_version, gtk_micro_version);
9888 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9889 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9890 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9891 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9892 printf("*** required on your system.\n");
9893 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9894 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9895 printf("*** before re-running configure\n");
8168de4c 9896 }
6f72b082
OK
9897#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9898 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8168de4c 9899 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
9900 (gtk_micro_version != GTK_MICRO_VERSION))
9901 {
9902 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8168de4c 9903 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 9904 printf("*** library (version %d.%d.%d)\n",
8168de4c 9905 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082
OK
9906 }
9907#endif /* defined (GTK_MAJOR_VERSION) ... */
9908 else
9909 {
9910 if ((gtk_major_version > major) ||
9911 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9912 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9913 {
9914 return 0;
9915 }
9916 else
9917 {
9918 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9919 gtk_major_version, gtk_minor_version, gtk_micro_version);
9920 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8168de4c 9921 major, minor, micro);
6f72b082
OK
9922 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9923 printf("***\n");
9924 printf("*** If you have already installed a sufficiently new version, this error\n");
9925 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9926 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9927 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9928 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9929 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9930 printf("*** so that the correct libraries are found at run-time))\n");
9931 }
9932 }
9933 return 1;
9934}
9935
698dcdb6 9936EOF
a3a584a7 9937if { (eval echo configure:9938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9938then
6f72b082
OK
9939 :
9940else
698dcdb6
VZ
9941 echo "configure: failed program was:" >&5
9942 cat conftest.$ac_ext >&5
9943 rm -fr conftest*
9944 no_gtk=yes
6f72b082 9945fi
698dcdb6 9946rm -fr conftest*
6f72b082 9947fi
698dcdb6 9948
6f72b082
OK
9949 CFLAGS="$ac_save_CFLAGS"
9950 LIBS="$ac_save_LIBS"
9951 fi
9952 fi
9953 if test "x$no_gtk" = x ; then
698dcdb6 9954 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8168de4c 9955 wx_cv_lib_gtk=2.0
6f72b082 9956 else
698dcdb6 9957 echo "$ac_t""no" 1>&6
6f72b082
OK
9958 if test "$GTK_CONFIG_2_0" = "no" ; then
9959 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9960 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9961 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9962 echo "*** full path to gtk-config-2.0."
9963 else
9964 if test -f conf.gtktest ; then
9965 :
9966 else
9967 echo "*** Could not run GTK test program, checking why..."
9968 CFLAGS="$CFLAGS $GTK_CFLAGS"
9969 LIBS="$LIBS $GTK_LIBS"
698dcdb6 9970 cat > conftest.$ac_ext <<EOF
a3a584a7 9971#line 9972 "configure"
6f72b082
OK
9972#include "confdefs.h"
9973
9974#include <gtk/gtk.h>
9975#include <stdio.h>
9976
698dcdb6
VZ
9977int main() {
9978 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9979; return 0; }
9980EOF
a3a584a7 9981if { (eval echo configure:9982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9982 rm -rf conftest*
6f72b082
OK
9983 echo "*** The test program compiled, but did not run. This usually means"
9984 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9985 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9986 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9987 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9988 echo "*** is required on your system"
8168de4c 9989 echo "***"
6f72b082
OK
9990 echo "*** If you have an old version installed, it is best to remove it, although"
9991 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9992 echo "***"
9993 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9994 echo "*** came with the system with the command"
9995 echo "***"
698dcdb6 9996 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 9997else
698dcdb6
VZ
9998 echo "configure: failed program was:" >&5
9999 cat conftest.$ac_ext >&5
10000 rm -rf conftest*
10001 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
10002 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10003 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
698dcdb6 10004 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 10005fi
698dcdb6 10006rm -f conftest*
6f72b082
OK
10007 CFLAGS="$ac_save_CFLAGS"
10008 LIBS="$ac_save_LIBS"
10009 fi
10010 fi
10011 GTK_CFLAGS=""
10012 GTK_LIBS=""
8168de4c
VZ
10013 gthread
10014 fi
10015
10016
10017 rm -f conf.gtktest
10018
10019 fi
10020
10021 if test -z "$wx_cv_lib_gtk"; then
10022
10f2d63a
VZ
10023 if test x$gtk_config_exec_prefix != x ; then
10024 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10025 if test x${GTK_CONFIG+set} != xset ; then
10026 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10027 fi
10028 fi
10029 if test x$gtk_config_prefix != x ; then
10030 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10031 if test x${GTK_CONFIG+set} != xset ; then
10032 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10033 fi
10034 fi
10035
10036 # Extract the first word of "gtk-config", so it can be a program name with args.
10037set dummy gtk-config; ac_word=$2
698dcdb6 10038echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a3a584a7 10039echo "configure:10040: checking for $ac_word" >&5
698dcdb6
VZ
10040if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10041 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 10042else
698dcdb6
VZ
10043 case "$GTK_CONFIG" in
10044 /*)
f6bcfd97
BP
10045 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10046 ;;
698dcdb6
VZ
10047 ?:/*)
10048 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10049 ;;
f6bcfd97 10050 *)
698dcdb6
VZ
10051 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10052 ac_dummy="$PATH"
10053 for ac_dir in $ac_dummy; do
10054 test -z "$ac_dir" && ac_dir=.
10055 if test -f $ac_dir/$ac_word; then
10056 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10057 break
10058 fi
10059 done
10060 IFS="$ac_save_ifs"
f6bcfd97
BP
10061 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10062 ;;
10063esac
10064fi
698dcdb6 10065GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 10066if test -n "$GTK_CONFIG"; then
698dcdb6 10067 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 10068else
698dcdb6 10069 echo "$ac_t""no" 1>&6
f6bcfd97
BP
10070fi
10071
10072 min_gtk_version=1.2.7
698dcdb6 10073 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
a3a584a7 10074echo "configure:10075: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
10075 no_gtk=""
10076 if test "$GTK_CONFIG" != "no" ; then
10077 GTK_CFLAGS=`$GTK_CONFIG --cflags`
10078 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10079 ac_save_CFLAGS="$CFLAGS"
10080 ac_save_LIBS="$LIBS"
10081 CFLAGS="$CFLAGS $GTK_CFLAGS"
10082 LIBS="$LIBS $GTK_LIBS"
10083 if test "$cross_compiling" = yes; then
10084 echo $ac_n "cross compiling; assumed OK... $ac_c"
10085else
698dcdb6 10086 cat > conftest.$ac_ext <<EOF
a3a584a7 10087#line 10088 "configure"
f6bcfd97
BP
10088#include "confdefs.h"
10089
10090#include <gtk/gtk.h>
10091#include <gtk/gtkfeatures.h>
10092#include <stdio.h>
10093#include <stdlib.h>
10094
10095int
10096main ()
10097{
10098 int major, minor, micro;
10099
10100 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
10101 printf("%s, bad version string\n", "$min_gtk_version");
10102 exit(1);
10103 }
10104
10105 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
10106 (GTK_MINOR_VERSION != gtk_minor_version) ||
10107 (GTK_MICRO_VERSION != gtk_micro_version)) {
10108 printf("Headers vs. library version mismatch!\n");
10109 exit(1);
10110 }
10111
10112 if (gtk_minor_version == 1) return FALSE;
10113
10114 return !((gtk_major_version > major) ||
10115 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10116 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
10117}
10118
698dcdb6 10119EOF
a3a584a7 10120if { (eval echo configure:10121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10121then
f6bcfd97
BP
10122 :
10123else
698dcdb6
VZ
10124 echo "configure: failed program was:" >&5
10125 cat conftest.$ac_ext >&5
10126 rm -fr conftest*
10127 no_gtk=yes
f6bcfd97 10128fi
698dcdb6 10129rm -fr conftest*
f6bcfd97 10130fi
698dcdb6 10131
f6bcfd97
BP
10132 CFLAGS="$ac_save_CFLAGS"
10133 LIBS="$ac_save_LIBS"
10134 else
10135 no_gtk=yes
10136 fi
10137 if test "x$no_gtk" = x ; then
698dcdb6 10138 echo "$ac_t""yes" 1>&6
8168de4c 10139 wx_cv_lib_gtk=1.2.7
f6bcfd97 10140 else
698dcdb6 10141 echo "$ac_t""no" 1>&6
f6bcfd97
BP
10142 GTK_CFLAGS=""
10143 GTK_LIBS=""
10144 :
10145 fi
698dcdb6
VZ
10146
10147
f6bcfd97 10148
8168de4c
VZ
10149 fi
10150
10151 if test -z "$wx_cv_lib_gtk"; then
10152
f6bcfd97
BP
10153 if test x$gtk_config_exec_prefix != x ; then
10154 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10155 if test x${GTK_CONFIG+set} != xset ; then
10156 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10157 fi
10158 fi
10159 if test x$gtk_config_prefix != x ; then
10160 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10161 if test x${GTK_CONFIG+set} != xset ; then
10162 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10163 fi
10164 fi
10165
10166 # Extract the first word of "gtk-config", so it can be a program name with args.
10167set dummy gtk-config; ac_word=$2
698dcdb6 10168echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a3a584a7 10169echo "configure:10170: checking for $ac_word" >&5
698dcdb6
VZ
10170if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10171 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 10172else
698dcdb6
VZ
10173 case "$GTK_CONFIG" in
10174 /*)
10f2d63a
VZ
10175 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10176 ;;
698dcdb6
VZ
10177 ?:/*)
10178 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10179 ;;
10f2d63a 10180 *)
698dcdb6
VZ
10181 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10182 ac_dummy="$PATH"
10183 for ac_dir in $ac_dummy; do
10184 test -z "$ac_dir" && ac_dir=.
10185 if test -f $ac_dir/$ac_word; then
10186 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10187 break
10188 fi
10189 done
10190 IFS="$ac_save_ifs"
10f2d63a
VZ
10191 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10192 ;;
10193esac
10194fi
698dcdb6 10195GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 10196if test -n "$GTK_CONFIG"; then
698dcdb6 10197 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 10198else
698dcdb6 10199 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10200fi
10201
04165bec 10202 min_gtk_version=1.2.3
698dcdb6 10203 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
a3a584a7 10204echo "configure:10205: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
10205 no_gtk=""
10206 if test "$GTK_CONFIG" != "no" ; then
10207 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 10208 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
10209 ac_save_CFLAGS="$CFLAGS"
10210 ac_save_LIBS="$LIBS"
10211 CFLAGS="$CFLAGS $GTK_CFLAGS"
10212 LIBS="$LIBS $GTK_LIBS"
10213 if test "$cross_compiling" = yes; then
10214 echo $ac_n "cross compiling; assumed OK... $ac_c"
10215else
698dcdb6 10216 cat > conftest.$ac_ext <<EOF
a3a584a7 10217#line 10218 "configure"
10f2d63a
VZ
10218#include "confdefs.h"
10219
10220#include <gtk/gtk.h>
f49f2b0c 10221#include <gtk/gtkfeatures.h>
10f2d63a 10222#include <stdio.h>
32832908 10223#include <stdlib.h>
10f2d63a
VZ
10224
10225int
10226main ()
10227{
10228 int major, minor, micro;
10229
10230 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
10231 printf("%s, bad version string\n", "$min_gtk_version");
10232 exit(1);
10233 }
10234
f49f2b0c
RR
10235 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
10236 (GTK_MINOR_VERSION != gtk_minor_version) ||
10237 (GTK_MICRO_VERSION != gtk_micro_version)) {
10238 printf("Headers vs. library version mismatch!\n");
10239 exit(1);
10240 }
10241
10f2d63a
VZ
10242 if (gtk_minor_version == 1) return FALSE;
10243
10244 return !((gtk_major_version > major) ||
10245 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10246 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
10247}
10248
698dcdb6 10249EOF
a3a584a7 10250if { (eval echo configure:10251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10251then
10f2d63a
VZ
10252 :
10253else
698dcdb6
VZ
10254 echo "configure: failed program was:" >&5
10255 cat conftest.$ac_ext >&5
10256 rm -fr conftest*
10257 no_gtk=yes
10f2d63a 10258fi
698dcdb6 10259rm -fr conftest*
10f2d63a 10260fi
698dcdb6 10261
10f2d63a
VZ
10262 CFLAGS="$ac_save_CFLAGS"
10263 LIBS="$ac_save_LIBS"
10264 else
10265 no_gtk=yes
10266 fi
10267 if test "x$no_gtk" = x ; then
698dcdb6 10268 echo "$ac_t""yes" 1>&6
8168de4c 10269 wx_cv_lib_gtk=1.2.3
10f2d63a 10270 else
698dcdb6 10271 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10272 GTK_CFLAGS=""
10273 GTK_LIBS=""
7e99ad86 10274 :
10f2d63a 10275 fi
698dcdb6
VZ
10276
10277
10f2d63a 10278
8168de4c
VZ
10279 fi
10280
10281 if test -z "$wx_cv_lib_gtk"; then
10282 wx_cv_lib_gtk=none
138be253
VZ
10283 else
10284 wx_cv_cflags_gtk=$GTK_CFLAGS
10285 wx_cv_libs_gtk=$GTK_LIBS
8168de4c
VZ
10286 fi
10287
1e6feb95 10288
8168de4c 10289fi
703e0a69 10290
698dcdb6 10291
8168de4c
VZ
10292 if test "$gtk_version_cached" = 1; then
10293 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
1e6feb95 10294 fi
698dcdb6 10295
8168de4c
VZ
10296 case "$wx_cv_lib_gtk" in
10297 2.0) WXGTK20=1
10298 ;;
10299 1.2.7) WXGTK127=1
d1a8d972 10300 WXGTK12=1
8168de4c
VZ
10301 ;;
10302 1.2.3) WXGTK12=1
10303 ;;
10304 *) { echo "configure: error:
10305Please check that gtk-config is in path, the directory
10306where GTK+ libraries are installed (returned by
10307'gtk-config --libs' command) is in LD_LIBRARY_PATH or
10308equivalent variable and GTK+ is version 1.2.3 or above.
10309 " 1>&2; exit 1; }
10310 ;;
10311 esac
2224580a 10312
138be253 10313 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11dfaa5f 10314 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
698dcdb6 10315
1e6feb95
VZ
10316 AFMINSTALL=afminstall
10317 TOOLKIT=GTK
10318 GUIDIST=GTK_DIST
7ec2881a 10319
1e6feb95 10320 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
a3a584a7 10321echo "configure:10322: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
10322ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
10323if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10324 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 10325else
698dcdb6 10326 ac_save_LIBS="$LIBS"
7ec2881a 10327LIBS="-lgdk $LIBS"
698dcdb6 10328cat > conftest.$ac_ext <<EOF
a3a584a7 10329#line 10330 "configure"
7ec2881a
RR
10330#include "confdefs.h"
10331/* Override any gcc2 internal prototype to avoid an error. */
10332/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10333 builtin and then its argument prototype would still apply. */
10334char gdk_im_open();
10335
10336int main() {
10337gdk_im_open()
10338; return 0; }
10339EOF
a3a584a7 10340if { (eval echo configure:10341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10341 rm -rf conftest*
10342 eval "ac_cv_lib_$ac_lib_var=yes"
10343else
10344 echo "configure: failed program was:" >&5
10345 cat conftest.$ac_ext >&5
10346 rm -rf conftest*
10347 eval "ac_cv_lib_$ac_lib_var=no"
10348fi
10349rm -f conftest*
10350LIBS="$ac_save_LIBS"
10351
10352fi
10353if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10354 echo "$ac_t""yes" 1>&6
10355 cat >> confdefs.h <<\EOF
7ec2881a
RR
10356#define HAVE_XIM 1
10357EOF
10358
698dcdb6
VZ
10359else
10360 echo "$ac_t""no" 1>&6
7ec2881a
RR
10361fi
10362
1e6feb95 10363 fi
10f2d63a 10364
1e6feb95
VZ
10365 if test "$wxUSE_MGL" = 1; then
10366
10367 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
a3a584a7 10368echo "configure:10369: checking for SciTech MGL library" >&5
1e6feb95
VZ
10369 if test "x$MGL_ROOT" = x ; then
10370 echo "$ac_t""not found" 1>&6
10371 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
10372 else
10373 echo "$ac_t""$MGL_ROOT" 1>&6
10374 fi
10375
3a922bb4
RL
10376 mgl_os=linux/gcc/glibc
10377 mgl_lib_type=""
1e6feb95
VZ
10378
10379 if test "$wxUSE_DEBUG_FLAG" = yes ; then
223e7fbf
VS
10380 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
10381 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
3a922bb4 10382 mgl_lib_type=debug
1e6feb95
VZ
10383 fi
10384 fi
3a922bb4 10385 if test "x$mgl_lib_type" = x ; then
223e7fbf
VS
10386 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
10387 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
3a922bb4 10388 mgl_lib_type=release
1e6feb95
VZ
10389 else
10390 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
10391 fi
10392 fi
10393
10394 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
3a922bb4 10395 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
1e6feb95
VZ
10396
10397 AFMINSTALL=afminstall
10398 TOOLKIT=MGL
10399 GUIDIST=MGL_DIST
10400 fi
10401
10402 if test "$wxUSE_WINE" = 1; then
3a922bb4
RL
10403 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10404echo $ac_n "checking for windows.h""... $ac_c" 1>&6
a3a584a7 10405echo "configure:10406: checking for windows.h" >&5
3a922bb4
RL
10406if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10407 echo $ac_n "(cached) $ac_c" 1>&6
10408else
10409 cat > conftest.$ac_ext <<EOF
a3a584a7 10410#line 10411 "configure"
3a922bb4
RL
10411#include "confdefs.h"
10412#include <windows.h>
10413EOF
10414ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a3a584a7 10415{ (eval echo configure:10416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
10416ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10417if test -z "$ac_err"; then
10418 rm -rf conftest*
10419 eval "ac_cv_header_$ac_safe=yes"
10420else
10421 echo "$ac_err" >&5
10422 echo "configure: failed program was:" >&5
10423 cat conftest.$ac_ext >&5
10424 rm -rf conftest*
10425 eval "ac_cv_header_$ac_safe=no"
10426fi
10427rm -f conftest*
10428fi
10429if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10430 echo "$ac_t""yes" 1>&6
10431 :
10432else
10433 echo "$ac_t""no" 1>&6
10f2d63a 10434
1e6feb95 10435 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
3a922bb4
RL
10436
10437fi
10438
10f2d63a 10439
3d63bc3a 10440 xpm_link=
1e6feb95 10441 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
a3a584a7 10442echo "configure:10443: checking for Xpm library" >&5
1e6feb95 10443
10f2d63a
VZ
10444ac_find_libraries=
10445for ac_dir in $SEARCH_LIB;
10446 do
f11bdd03 10447 for ac_extension in a so sl dylib; do
10f2d63a
VZ
10448 if test -f "$ac_dir/libXpm.$ac_extension"; then
10449 ac_find_libraries=$ac_dir
10450 break 2
10451 fi
10452 done
10453 done
10454
1e6feb95
VZ
10455 if test "$ac_find_libraries" != "" ; then
10456 GUI_TK_LIBRARY="-L$ac_find_libraries"
3d63bc3a 10457 xpm_link=" -lXpm"
1e6feb95 10458 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10459#define wxHAVE_LIB_XPM 1
10460EOF
10461
1e6feb95
VZ
10462 echo "$ac_t""found at $ac_find_libraries" 1>&6
10463 else
10464 echo "$ac_t""no" 1>&6
10465 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10466 fi
10f2d63a 10467
3d63bc3a 10468 mesa_link=
1e6feb95 10469 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
a3a584a7 10470echo "configure:10471: checking for Mesa library" >&5
1e6feb95 10471
10f2d63a
VZ
10472ac_find_libraries=
10473for ac_dir in $SEARCH_LIB;
10474 do
f11bdd03 10475 for ac_extension in a so sl dylib; do
10f2d63a
VZ
10476 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
10477 ac_find_libraries=$ac_dir
10478 break 2
10479 fi
10480 done
10481 done
10482
1e6feb95
VZ
10483 if test "$ac_find_libraries" != "" ; then
10484 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
3d63bc3a 10485 mesa_link=" -lMesaGL"
1e6feb95
VZ
10486 echo "$ac_t""found at $ac_find_libraries" 1>&6
10487 else
10488 { echo "configure: error: no" 1>&2; exit 1; }
10489 fi
10f2d63a 10490
3d63bc3a 10491 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
1e6feb95
VZ
10492 TOOLKIT=MSW
10493 GUIDIST=MSW_DIST
3a922bb4 10494 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
1e6feb95 10495 fi
698dcdb6 10496
d714471b
VZ
10497 if test "$wxUSE_MOTIF" = 1; then
10498 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
10499# paths, otherwise set no_x=yes.
10500# Uses ac_ vars as temps to allow command line to override cache and checks.
10501# --without-x overrides everything else, but does not touch the cache.
10502echo $ac_n "checking for X""... $ac_c" 1>&6
a3a584a7 10503echo "configure:10504: checking for X" >&5
ab9b9eab
VZ
10504
10505# Check whether --with-x or --without-x was given.
10506if test "${with_x+set}" = set; then
10507 withval="$with_x"
698dcdb6
VZ
10508 :
10509fi
ba337fe7 10510
ab9b9eab
VZ
10511# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10512if test "x$with_x" = xno; then
10513 # The user explicitly disabled X.
10514 have_x=disabled
10515else
10516 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
10517 # Both variables are already set.
10518 have_x=yes
10519 else
698dcdb6
VZ
10520if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
10521 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
10522else
10523 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
10524ac_x_includes=NO ac_x_libraries=NO
10525rm -fr conftestdir
10526if mkdir conftestdir; then
10527 cd conftestdir
ab9b9eab 10528 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 10529 cat > Imakefile <<'EOF'
ab9b9eab
VZ
10530acfindx:
10531 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
10532EOF
10533 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10534 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10535 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10536 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 10537 for ac_extension in a so sl; do
ab9b9eab 10538 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 10539 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 10540 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
10541 fi
10542 done
ab9b9eab
VZ
10543 # Screen out bogus values from the imake configuration. They are
10544 # bogus both because they are the default anyway, and because
10545 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 10546 case "$ac_im_incroot" in
ab9b9eab 10547 /usr/include) ;;
698dcdb6 10548 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 10549 esac
698dcdb6 10550 case "$ac_im_usrlibdir" in
ab9b9eab 10551 /usr/lib | /lib) ;;
698dcdb6 10552 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 10553 esac
ba337fe7 10554 fi
ab9b9eab 10555 cd ..
698dcdb6 10556 rm -fr conftestdir
ab9b9eab 10557fi
10f2d63a 10558
698dcdb6
VZ
10559if test "$ac_x_includes" = NO; then
10560 # Guess where to find include files, by looking for this one X11 .h file.
10561 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
10562
ab9b9eab 10563 # First, try using that file with no special directory specified.
698dcdb6 10564cat > conftest.$ac_ext <<EOF
a3a584a7 10565#line 10566 "configure"
ab9b9eab 10566#include "confdefs.h"
698dcdb6
VZ
10567#include <$x_direct_test_include>
10568EOF
10569ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a3a584a7 10570{ (eval echo configure:10571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10571ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10572if test -z "$ac_err"; then
10573 rm -rf conftest*
ab9b9eab
VZ
10574 # We can compile using X headers with no special include directory.
10575ac_x_includes=
10576else
698dcdb6
VZ
10577 echo "$ac_err" >&5
10578 echo "configure: failed program was:" >&5
ab9b9eab 10579 cat conftest.$ac_ext >&5
698dcdb6
VZ
10580 rm -rf conftest*
10581 # Look for the header file in a standard set of common directories.
10582# Check X11 before X11Rn because it is often a symlink to the current release.
10583 for ac_dir in \
10584 /usr/X11/include \
10585 /usr/X11R6/include \
10586 /usr/X11R5/include \
10587 /usr/X11R4/include \
10588 \
10589 /usr/include/X11 \
10590 /usr/include/X11R6 \
10591 /usr/include/X11R5 \
10592 /usr/include/X11R4 \
10593 \
10594 /usr/local/X11/include \
10595 /usr/local/X11R6/include \
10596 /usr/local/X11R5/include \
10597 /usr/local/X11R4/include \
10598 \
10599 /usr/local/include/X11 \
10600 /usr/local/include/X11R6 \
10601 /usr/local/include/X11R5 \
10602 /usr/local/include/X11R4 \
10603 \
10604 /usr/X386/include \
10605 /usr/x386/include \
10606 /usr/XFree86/include/X11 \
10607 \
10608 /usr/include \
10609 /usr/local/include \
10610 /usr/unsupported/include \
10611 /usr/athena/include \
10612 /usr/local/x11r5/include \
10613 /usr/lpp/Xamples/include \
10614 \
10615 /usr/openwin/include \
10616 /usr/openwin/share/include \
10617 ; \
10618 do
10619 if test -r "$ac_dir/$x_direct_test_include"; then
10620 ac_x_includes=$ac_dir
10621 break
10622 fi
10623 done
ab9b9eab 10624fi
698dcdb6
VZ
10625rm -f conftest*
10626fi # $ac_x_includes = NO
10f2d63a 10627
698dcdb6 10628if test "$ac_x_libraries" = NO; then
ab9b9eab 10629 # Check for the libraries.
698dcdb6
VZ
10630
10631 test -z "$x_direct_test_library" && x_direct_test_library=Xt
10632 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10633
ab9b9eab
VZ
10634 # See if we find them without any special options.
10635 # Don't add to $LIBS permanently.
698dcdb6
VZ
10636 ac_save_LIBS="$LIBS"
10637 LIBS="-l$x_direct_test_library $LIBS"
10638cat > conftest.$ac_ext <<EOF
a3a584a7 10639#line 10640 "configure"
ab9b9eab 10640#include "confdefs.h"
698dcdb6
VZ
10641
10642int main() {
10643${x_direct_test_function}()
10644; return 0; }
10645EOF
a3a584a7 10646if { (eval echo configure:10647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10647 rm -rf conftest*
10648 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
10649# We can link X programs with no special library path.
10650ac_x_libraries=
10651else
698dcdb6
VZ
10652 echo "configure: failed program was:" >&5
10653 cat conftest.$ac_ext >&5
10654 rm -rf conftest*
10655 LIBS="$ac_save_LIBS"
10656# First see if replacing the include by lib works.
10657# Check X11 before X11Rn because it is often a symlink to the current release.
10658for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
10659 /usr/X11/lib \
10660 /usr/X11R6/lib \
10661 /usr/X11R5/lib \
10662 /usr/X11R4/lib \
10663 \
10664 /usr/lib/X11 \
10665 /usr/lib/X11R6 \
10666 /usr/lib/X11R5 \
10667 /usr/lib/X11R4 \
10668 \
10669 /usr/local/X11/lib \
10670 /usr/local/X11R6/lib \
10671 /usr/local/X11R5/lib \
10672 /usr/local/X11R4/lib \
10673 \
10674 /usr/local/lib/X11 \
10675 /usr/local/lib/X11R6 \
10676 /usr/local/lib/X11R5 \
10677 /usr/local/lib/X11R4 \
10678 \
10679 /usr/X386/lib \
10680 /usr/x386/lib \
10681 /usr/XFree86/lib/X11 \
10682 \
10683 /usr/lib \
10684 /usr/local/lib \
10685 /usr/unsupported/lib \
10686 /usr/athena/lib \
10687 /usr/local/x11r5/lib \
10688 /usr/lpp/Xamples/lib \
10689 /lib/usr/lib/X11 \
10690 \
10691 /usr/openwin/lib \
10692 /usr/openwin/share/lib \
10693 ; \
ab9b9eab
VZ
10694do
10695 for ac_extension in a so sl; do
698dcdb6 10696 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
10697 ac_x_libraries=$ac_dir
10698 break 2
10f2d63a 10699 fi
10f2d63a 10700 done
ab9b9eab
VZ
10701done
10702fi
698dcdb6
VZ
10703rm -f conftest*
10704fi # $ac_x_libraries = NO
10f2d63a 10705
698dcdb6 10706if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
10707 # Didn't find X anywhere. Cache the known absence of X.
10708 ac_cv_have_x="have_x=no"
10709else
10710 # Record where we found X for the cache.
10711 ac_cv_have_x="have_x=yes \
10712 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10713fi
10714fi
10f2d63a 10715 fi
ab9b9eab
VZ
10716 eval "$ac_cv_have_x"
10717fi # $with_x != no
10f2d63a 10718
ab9b9eab 10719if test "$have_x" != yes; then
698dcdb6 10720 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
10721 no_x=yes
10722else
10723 # If each of the values was on the command line, it overrides each guess.
10724 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10725 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10726 # Update the cache value to reflect the command line values.
10727 ac_cv_have_x="have_x=yes \
10728 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 10729 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 10730fi
10f2d63a 10731
ab9b9eab
VZ
10732if test "$no_x" = yes; then
10733 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 10734 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
10735#define X_DISPLAY_MISSING 1
10736EOF
10f2d63a 10737
ab9b9eab
VZ
10738 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10739else
10740 if test -n "$x_includes"; then
10741 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
10742 fi
10743
ab9b9eab
VZ
10744 # It would also be nice to do this for all -L options, not just this one.
10745 if test -n "$x_libraries"; then
10746 X_LIBS="$X_LIBS -L$x_libraries"
10747 # For Solaris; some versions of Sun CC require a space after -R and
10748 # others require no space. Words are not sufficient . . . .
698dcdb6 10749 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 10750 "SunOS 5"*)
698dcdb6 10751 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
a3a584a7 10752echo "configure:10753: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
10753 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
10754 cat > conftest.$ac_ext <<EOF
a3a584a7 10755#line 10756 "configure"
ab9b9eab 10756#include "confdefs.h"
10f2d63a 10757
698dcdb6 10758int main() {
788deba1 10759
698dcdb6
VZ
10760; return 0; }
10761EOF
a3a584a7 10762if { (eval echo configure:10763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10763 rm -rf conftest*
ab9b9eab
VZ
10764 ac_R_nospace=yes
10765else
698dcdb6
VZ
10766 echo "configure: failed program was:" >&5
10767 cat conftest.$ac_ext >&5
10768 rm -rf conftest*
10769 ac_R_nospace=no
ab9b9eab 10770fi
698dcdb6 10771rm -f conftest*
ab9b9eab 10772 if test $ac_R_nospace = yes; then
698dcdb6 10773 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10774 X_LIBS="$X_LIBS -R$x_libraries"
10775 else
10776 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 10777 cat > conftest.$ac_ext <<EOF
a3a584a7 10778#line 10779 "configure"
ab9b9eab 10779#include "confdefs.h"
788deba1 10780
698dcdb6 10781int main() {
ab9b9eab 10782
698dcdb6
VZ
10783; return 0; }
10784EOF
a3a584a7 10785if { (eval echo configure:10786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10786 rm -rf conftest*
ab9b9eab
VZ
10787 ac_R_space=yes
10788else
698dcdb6
VZ
10789 echo "configure: failed program was:" >&5
10790 cat conftest.$ac_ext >&5
10791 rm -rf conftest*
10792 ac_R_space=no
ab9b9eab 10793fi
698dcdb6 10794rm -f conftest*
ab9b9eab 10795 if test $ac_R_space = yes; then
698dcdb6 10796 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
10797 X_LIBS="$X_LIBS -R $x_libraries"
10798 else
698dcdb6 10799 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
10800 fi
10801 fi
698dcdb6 10802 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
10803 esac
10804 fi
10805
10806 # Check for system-dependent libraries X programs must link with.
10807 # Do this before checking for the system-independent R6 libraries
10808 # (-lICE), since we may need -lsocket or whatever for X linking.
10809
10810 if test "$ISC" = yes; then
10811 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10812 else
698dcdb6
VZ
10813 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10814 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 10815 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 10816 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
a3a584a7 10817echo "configure:10818: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
10818ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10819if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10820 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10821else
698dcdb6 10822 ac_save_LIBS="$LIBS"
ab9b9eab 10823LIBS="-ldnet $LIBS"
698dcdb6 10824cat > conftest.$ac_ext <<EOF
a3a584a7 10825#line 10826 "configure"
ab9b9eab
VZ
10826#include "confdefs.h"
10827/* Override any gcc2 internal prototype to avoid an error. */
10828/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10829 builtin and then its argument prototype would still apply. */
10830char dnet_ntoa();
10831
10832int main() {
10833dnet_ntoa()
10834; return 0; }
10835EOF
a3a584a7 10836if { (eval echo configure:10837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10837 rm -rf conftest*
10838 eval "ac_cv_lib_$ac_lib_var=yes"
10839else
10840 echo "configure: failed program was:" >&5
10841 cat conftest.$ac_ext >&5
10842 rm -rf conftest*
10843 eval "ac_cv_lib_$ac_lib_var=no"
10844fi
10845rm -f conftest*
10846LIBS="$ac_save_LIBS"
10847
10848fi
10849if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10850 echo "$ac_t""yes" 1>&6
ab9b9eab 10851 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
10852else
10853 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10854fi
10855
10856 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 10857 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
a3a584a7 10858echo "configure:10859: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
10859ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10860if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10861 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10862else
698dcdb6 10863 ac_save_LIBS="$LIBS"
ab9b9eab 10864LIBS="-ldnet_stub $LIBS"
698dcdb6 10865cat > conftest.$ac_ext <<EOF
a3a584a7 10866#line 10867 "configure"
ab9b9eab
VZ
10867#include "confdefs.h"
10868/* Override any gcc2 internal prototype to avoid an error. */
10869/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10870 builtin and then its argument prototype would still apply. */
10871char dnet_ntoa();
10872
10873int main() {
10874dnet_ntoa()
10875; return 0; }
10876EOF
a3a584a7 10877if { (eval echo configure:10878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10878 rm -rf conftest*
10879 eval "ac_cv_lib_$ac_lib_var=yes"
10880else
10881 echo "configure: failed program was:" >&5
10882 cat conftest.$ac_ext >&5
10883 rm -rf conftest*
10884 eval "ac_cv_lib_$ac_lib_var=no"
10885fi
10886rm -f conftest*
10887LIBS="$ac_save_LIBS"
10888
10889fi
10890if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10891 echo "$ac_t""yes" 1>&6
ab9b9eab 10892 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
10893else
10894 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10895fi
10896
10897 fi
10898
10899 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10900 # to get the SysV transport functions.
698dcdb6 10901 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
10902 # needs -lnsl.
10903 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
10904 # on Irix 5.2, according to dickey@clark.net.
10905 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
a3a584a7 10906echo "configure:10907: checking for gethostbyname" >&5
698dcdb6
VZ
10907if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10908 echo $ac_n "(cached) $ac_c" 1>&6
10909else
10910 cat > conftest.$ac_ext <<EOF
a3a584a7 10911#line 10912 "configure"
ab9b9eab
VZ
10912#include "confdefs.h"
10913/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10914 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
10915#include <assert.h>
10916/* Override any gcc2 internal prototype to avoid an error. */
10917/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10918 builtin and then its argument prototype would still apply. */
10919char gethostbyname();
10920
10921int main() {
ab9b9eab
VZ
10922
10923/* The GNU C library defines this for functions which it implements
10924 to always fail with ENOSYS. Some functions are actually named
10925 something starting with __ and the normal name is an alias. */
10926#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10927choke me
10928#else
698dcdb6 10929gethostbyname();
ab9b9eab
VZ
10930#endif
10931
698dcdb6
VZ
10932; return 0; }
10933EOF
a3a584a7 10934if { (eval echo configure:10935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10935 rm -rf conftest*
10936 eval "ac_cv_func_gethostbyname=yes"
10937else
10938 echo "configure: failed program was:" >&5
10939 cat conftest.$ac_ext >&5
10940 rm -rf conftest*
10941 eval "ac_cv_func_gethostbyname=no"
10942fi
10943rm -f conftest*
10944fi
10945
10946if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10947 echo "$ac_t""yes" 1>&6
10948 :
10949else
10950 echo "$ac_t""no" 1>&6
10951fi
ab9b9eab
VZ
10952
10953 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 10954 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
a3a584a7 10955echo "configure:10956: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
10956ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10957if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10958 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10959else
698dcdb6 10960 ac_save_LIBS="$LIBS"
ab9b9eab 10961LIBS="-lnsl $LIBS"
698dcdb6 10962cat > conftest.$ac_ext <<EOF
a3a584a7 10963#line 10964 "configure"
ab9b9eab
VZ
10964#include "confdefs.h"
10965/* Override any gcc2 internal prototype to avoid an error. */
10966/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10967 builtin and then its argument prototype would still apply. */
10968char gethostbyname();
6232543b 10969
698dcdb6
VZ
10970int main() {
10971gethostbyname()
10972; return 0; }
10973EOF
a3a584a7 10974if { (eval echo configure:10975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10975 rm -rf conftest*
10976 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 10977else
698dcdb6
VZ
10978 echo "configure: failed program was:" >&5
10979 cat conftest.$ac_ext >&5
10980 rm -rf conftest*
10981 eval "ac_cv_lib_$ac_lib_var=no"
10982fi
10983rm -f conftest*
10984LIBS="$ac_save_LIBS"
1e487827 10985
698dcdb6
VZ
10986fi
10987if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10988 echo "$ac_t""yes" 1>&6
10989 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10990else
10991 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10992fi
10993
10994 fi
10995
10996 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10997 # socket/setsockopt and other routines are undefined under SCO ODT
10998 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
10999 # on later versions), says simon@lia.di.epfl.ch: it contains
11000 # gethostby* variants that don't use the nameserver (or something).
11001 # -lsocket must be given before -lnsl if both are needed.
11002 # We assume that if connect needs -lnsl, so does gethostbyname.
11003 echo $ac_n "checking for connect""... $ac_c" 1>&6
a3a584a7 11004echo "configure:11005: checking for connect" >&5
698dcdb6
VZ
11005if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
11006 echo $ac_n "(cached) $ac_c" 1>&6
11007else
11008 cat > conftest.$ac_ext <<EOF
a3a584a7 11009#line 11010 "configure"
ab9b9eab
VZ
11010#include "confdefs.h"
11011/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11012 which can conflict with char connect(); below. */
ab9b9eab
VZ
11013#include <assert.h>
11014/* Override any gcc2 internal prototype to avoid an error. */
11015/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11016 builtin and then its argument prototype would still apply. */
11017char connect();
11018
11019int main() {
ab9b9eab
VZ
11020
11021/* The GNU C library defines this for functions which it implements
11022 to always fail with ENOSYS. Some functions are actually named
11023 something starting with __ and the normal name is an alias. */
11024#if defined (__stub_connect) || defined (__stub___connect)
11025choke me
11026#else
698dcdb6 11027connect();
ab9b9eab
VZ
11028#endif
11029
698dcdb6
VZ
11030; return 0; }
11031EOF
a3a584a7 11032if { (eval echo configure:11033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11033 rm -rf conftest*
11034 eval "ac_cv_func_connect=yes"
11035else
11036 echo "configure: failed program was:" >&5
11037 cat conftest.$ac_ext >&5
11038 rm -rf conftest*
11039 eval "ac_cv_func_connect=no"
11040fi
11041rm -f conftest*
11042fi
11043
11044if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
11045 echo "$ac_t""yes" 1>&6
11046 :
11047else
11048 echo "$ac_t""no" 1>&6
11049fi
ab9b9eab
VZ
11050
11051 if test $ac_cv_func_connect = no; then
698dcdb6 11052 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
a3a584a7 11053echo "configure:11054: checking for connect in -lsocket" >&5
698dcdb6
VZ
11054ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
11055if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11056 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11057else
698dcdb6 11058 ac_save_LIBS="$LIBS"
ab9b9eab 11059LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 11060cat > conftest.$ac_ext <<EOF
a3a584a7 11061#line 11062 "configure"
ab9b9eab
VZ
11062#include "confdefs.h"
11063/* Override any gcc2 internal prototype to avoid an error. */
11064/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11065 builtin and then its argument prototype would still apply. */
11066char connect();
11067
11068int main() {
11069connect()
11070; return 0; }
11071EOF
a3a584a7 11072if { (eval echo configure:11073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11073 rm -rf conftest*
11074 eval "ac_cv_lib_$ac_lib_var=yes"
11075else
11076 echo "configure: failed program was:" >&5
11077 cat conftest.$ac_ext >&5
11078 rm -rf conftest*
11079 eval "ac_cv_lib_$ac_lib_var=no"
11080fi
11081rm -f conftest*
11082LIBS="$ac_save_LIBS"
11083
11084fi
11085if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11086 echo "$ac_t""yes" 1>&6
ab9b9eab 11087 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
11088else
11089 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11090fi
11091
11092 fi
11093
698dcdb6
VZ
11094 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
11095 echo $ac_n "checking for remove""... $ac_c" 1>&6
a3a584a7 11096echo "configure:11097: checking for remove" >&5
698dcdb6
VZ
11097if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
11098 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11099else
698dcdb6 11100 cat > conftest.$ac_ext <<EOF
a3a584a7 11101#line 11102 "configure"
ab9b9eab
VZ
11102#include "confdefs.h"
11103/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11104 which can conflict with char remove(); below. */
ab9b9eab
VZ
11105#include <assert.h>
11106/* Override any gcc2 internal prototype to avoid an error. */
11107/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11108 builtin and then its argument prototype would still apply. */
11109char remove();
11110
11111int main() {
ab9b9eab
VZ
11112
11113/* The GNU C library defines this for functions which it implements
11114 to always fail with ENOSYS. Some functions are actually named
11115 something starting with __ and the normal name is an alias. */
11116#if defined (__stub_remove) || defined (__stub___remove)
11117choke me
11118#else
698dcdb6 11119remove();
ab9b9eab
VZ
11120#endif
11121
698dcdb6
VZ
11122; return 0; }
11123EOF
a3a584a7 11124if { (eval echo configure:11125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11125 rm -rf conftest*
11126 eval "ac_cv_func_remove=yes"
11127else
11128 echo "configure: failed program was:" >&5
11129 cat conftest.$ac_ext >&5
11130 rm -rf conftest*
11131 eval "ac_cv_func_remove=no"
11132fi
11133rm -f conftest*
11134fi
11135
11136if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
11137 echo "$ac_t""yes" 1>&6
11138 :
11139else
11140 echo "$ac_t""no" 1>&6
11141fi
ab9b9eab
VZ
11142
11143 if test $ac_cv_func_remove = no; then
698dcdb6 11144 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
a3a584a7 11145echo "configure:11146: checking for remove in -lposix" >&5
698dcdb6
VZ
11146ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
11147if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11148 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11149else
698dcdb6 11150 ac_save_LIBS="$LIBS"
ab9b9eab 11151LIBS="-lposix $LIBS"
698dcdb6 11152cat > conftest.$ac_ext <<EOF
a3a584a7 11153#line 11154 "configure"
ab9b9eab
VZ
11154#include "confdefs.h"
11155/* Override any gcc2 internal prototype to avoid an error. */
11156/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11157 builtin and then its argument prototype would still apply. */
11158char remove();
11159
11160int main() {
11161remove()
11162; return 0; }
11163EOF
a3a584a7 11164if { (eval echo configure:11165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11165 rm -rf conftest*
11166 eval "ac_cv_lib_$ac_lib_var=yes"
11167else
11168 echo "configure: failed program was:" >&5
11169 cat conftest.$ac_ext >&5
11170 rm -rf conftest*
11171 eval "ac_cv_lib_$ac_lib_var=no"
11172fi
11173rm -f conftest*
11174LIBS="$ac_save_LIBS"
11175
11176fi
11177if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11178 echo "$ac_t""yes" 1>&6
ab9b9eab 11179 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
11180else
11181 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11182fi
11183
11184 fi
11185
11186 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 11187 echo $ac_n "checking for shmat""... $ac_c" 1>&6
a3a584a7 11188echo "configure:11189: checking for shmat" >&5
698dcdb6
VZ
11189if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
11190 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11191else
698dcdb6 11192 cat > conftest.$ac_ext <<EOF
a3a584a7 11193#line 11194 "configure"
ab9b9eab
VZ
11194#include "confdefs.h"
11195/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11196 which can conflict with char shmat(); below. */
ab9b9eab
VZ
11197#include <assert.h>
11198/* Override any gcc2 internal prototype to avoid an error. */
11199/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11200 builtin and then its argument prototype would still apply. */
11201char shmat();
11202
11203int main() {
ab9b9eab
VZ
11204
11205/* The GNU C library defines this for functions which it implements
11206 to always fail with ENOSYS. Some functions are actually named
11207 something starting with __ and the normal name is an alias. */
11208#if defined (__stub_shmat) || defined (__stub___shmat)
11209choke me
11210#else
698dcdb6 11211shmat();
ab9b9eab
VZ
11212#endif
11213
698dcdb6
VZ
11214; return 0; }
11215EOF
a3a584a7 11216if { (eval echo configure:11217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11217 rm -rf conftest*
11218 eval "ac_cv_func_shmat=yes"
11219else
11220 echo "configure: failed program was:" >&5
11221 cat conftest.$ac_ext >&5
11222 rm -rf conftest*
11223 eval "ac_cv_func_shmat=no"
11224fi
11225rm -f conftest*
11226fi
11227
11228if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
11229 echo "$ac_t""yes" 1>&6
11230 :
11231else
11232 echo "$ac_t""no" 1>&6
11233fi
ab9b9eab
VZ
11234
11235 if test $ac_cv_func_shmat = no; then
698dcdb6 11236 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
a3a584a7 11237echo "configure:11238: checking for shmat in -lipc" >&5
698dcdb6
VZ
11238ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
11239if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11240 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11241else
698dcdb6 11242 ac_save_LIBS="$LIBS"
ab9b9eab 11243LIBS="-lipc $LIBS"
698dcdb6 11244cat > conftest.$ac_ext <<EOF
a3a584a7 11245#line 11246 "configure"
ab9b9eab
VZ
11246#include "confdefs.h"
11247/* Override any gcc2 internal prototype to avoid an error. */
11248/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11249 builtin and then its argument prototype would still apply. */
11250char shmat();
11251
11252int main() {
11253shmat()
11254; return 0; }
11255EOF
a3a584a7 11256if { (eval echo configure:11257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11257 rm -rf conftest*
11258 eval "ac_cv_lib_$ac_lib_var=yes"
11259else
11260 echo "configure: failed program was:" >&5
11261 cat conftest.$ac_ext >&5
11262 rm -rf conftest*
11263 eval "ac_cv_lib_$ac_lib_var=no"
11264fi
11265rm -f conftest*
11266LIBS="$ac_save_LIBS"
11267
11268fi
11269if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11270 echo "$ac_t""yes" 1>&6
ab9b9eab 11271 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
11272else
11273 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11274fi
11275
11276 fi
11277 fi
11278
11279 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 11280 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
11281 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
11282 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
11283 # check for ICE first), but we must link in the order -lSM -lICE or
11284 # we get undefined symbols. So assume we have SM if we have ICE.
11285 # These have to be linked with before -lX11, unlike the other
11286 # libraries we check for below, so use a different variable.
698dcdb6
VZ
11287 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
11288 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
a3a584a7 11289echo "configure:11290: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
11290ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
11291if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11292 echo $ac_n "(cached) $ac_c" 1>&6
11293else
11294 ac_save_LIBS="$LIBS"
ab9b9eab 11295LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 11296cat > conftest.$ac_ext <<EOF
a3a584a7 11297#line 11298 "configure"
ab9b9eab
VZ
11298#include "confdefs.h"
11299/* Override any gcc2 internal prototype to avoid an error. */
11300/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11301 builtin and then its argument prototype would still apply. */
11302char IceConnectionNumber();
11303
11304int main() {
11305IceConnectionNumber()
11306; return 0; }
11307EOF
a3a584a7 11308if { (eval echo configure:11309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11309 rm -rf conftest*
11310 eval "ac_cv_lib_$ac_lib_var=yes"
11311else
11312 echo "configure: failed program was:" >&5
11313 cat conftest.$ac_ext >&5
11314 rm -rf conftest*
11315 eval "ac_cv_lib_$ac_lib_var=no"
11316fi
11317rm -f conftest*
11318LIBS="$ac_save_LIBS"
11319
11320fi
11321if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11322 echo "$ac_t""yes" 1>&6
ab9b9eab 11323 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
11324else
11325 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11326fi
11327
698dcdb6 11328 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
11329
11330fi
11331
11332
1e6feb95
VZ
11333 if test "$no_x" = "yes"; then
11334 { echo "configure: error: X11 not found" 1>&2; exit 1; }
11335 fi
ab9b9eab 11336
1e6feb95
VZ
11337 GUI_TK_LIBRARY="$X_LIBS"
11338 TOOLKIT_INCLUDE="$X_CFLAGS"
1e6feb95 11339 AFMINSTALL=afminstall
1e6feb95 11340 COMPILED_X_PROGRAM=0
cd6d6d5b 11341
1e6feb95 11342 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
a3a584a7 11343echo "configure:11344: checking for Motif/Lesstif headers" >&5
1e6feb95 11344
ab9b9eab
VZ
11345ac_find_includes=
11346for ac_dir in $SEARCH_INCLUDE;
11347 do
11348 if test -f "$ac_dir/Xm/Xm.h"; then
11349 ac_find_includes=$ac_dir
11350 break
11351 fi
11352 done
11353
1e6feb95
VZ
11354 if test "$ac_find_includes" != "" ; then
11355 echo "$ac_t""found $ac_find_includes" 1>&6
11356 else
11357 cat > conftest.$ac_ext <<EOF
a3a584a7 11358#line 11359 "configure"
cd6d6d5b
VZ
11359#include "confdefs.h"
11360
1e6feb95
VZ
11361 #include <Xm/Xm.h>
11362
698dcdb6 11363int main() {
cd6d6d5b 11364
1e6feb95 11365 int version;
1e6feb95
VZ
11366 version = xmUseVersion;
11367
698dcdb6
VZ
11368; return 0; }
11369EOF
a3a584a7 11370if { (eval echo configure:11371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
11371 rm -rf conftest*
11372
1e6feb95
VZ
11373 echo "$ac_t""found in default search path" 1>&6
11374 COMPILED_X_PROGRAM=1
11375
cd6d6d5b 11376else
698dcdb6
VZ
11377 echo "configure: failed program was:" >&5
11378 cat conftest.$ac_ext >&5
11379 rm -rf conftest*
11380
1e6feb95
VZ
11381 echo "$ac_t""no" 1>&6
11382 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
11383
698dcdb6 11384
cd6d6d5b 11385fi
698dcdb6 11386rm -f conftest*
1e6feb95 11387 fi
ab9b9eab 11388
1e6feb95
VZ
11389 if test "$COMPILED_X_PROGRAM" = 0; then
11390 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
a3a584a7 11391echo "configure:11392: checking for Motif/Lesstif library" >&5
1e6feb95 11392
ab9b9eab
VZ
11393ac_find_libraries=
11394for ac_dir in $SEARCH_LIB;
11395 do
f11bdd03 11396 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
11397 if test -f "$ac_dir/libXm.$ac_extension"; then
11398 ac_find_libraries=$ac_dir
11399 break 2
11400 fi
11401 done
11402 done
11403
1e6feb95
VZ
11404 if test "$ac_find_libraries" != "" ; then
11405
ab9b9eab
VZ
11406 ac_path_to_include=$ac_find_includes
11407 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
11408 result=$?
11409 if test $result = 0; then
11410 ac_path_to_include=""
11411 else
62d0491b 11412 ac_path_to_include=" -I$ac_find_includes"
ab9b9eab
VZ
11413 fi
11414
1e6feb95 11415
ab9b9eab
VZ
11416 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
11417 result=$?
11418 if test $result = 0; then
11419 ac_path_to_link=""
11420 else
62d0491b 11421 ac_path_to_link=" -L$ac_find_libraries"
ab9b9eab
VZ
11422 fi
11423
698dcdb6 11424
62d0491b
RL
11425 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
11426 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
1e6feb95
VZ
11427 echo "$ac_t""found at $ac_find_libraries" 1>&6
11428 else
11429 cat > conftest.$ac_ext <<EOF
a3a584a7 11430#line 11431 "configure"
cd6d6d5b 11431#include "confdefs.h"
ab9b9eab 11432
1e6feb95
VZ
11433 #include <Xm/Xm.h>
11434
698dcdb6 11435int main() {
ab9b9eab 11436
1e6feb95 11437 int version;
1e6feb95
VZ
11438 version = xmUseVersion;
11439
698dcdb6
VZ
11440; return 0; }
11441EOF
a3a584a7 11442if { (eval echo configure:11443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
11443 rm -rf conftest*
11444
1e6feb95
VZ
11445 echo "$ac_t""found in default search path" 1>&6
11446 COMPILED_X_PROGRAM=1
11447
cd6d6d5b 11448else
698dcdb6
VZ
11449 echo "configure: failed program was:" >&5
11450 cat conftest.$ac_ext >&5
11451 rm -rf conftest*
11452
1e6feb95
VZ
11453 echo "$ac_t""no" 1>&6
11454 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
11455
698dcdb6 11456
cd6d6d5b 11457fi
698dcdb6 11458rm -f conftest*
1e6feb95 11459 fi
cd6d6d5b 11460 fi
ab9b9eab 11461
3d63bc3a 11462 xpm_link=
1e6feb95 11463 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
a3a584a7 11464echo "configure:11465: checking for Xpm library" >&5
1e6feb95 11465
ab9b9eab
VZ
11466ac_find_libraries=
11467for ac_dir in $SEARCH_LIB;
11468 do
f11bdd03 11469 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
11470 if test -f "$ac_dir/libXpm.$ac_extension"; then
11471 ac_find_libraries=$ac_dir
11472 break 2
11473 fi
11474 done
11475 done
11476
1e6feb95
VZ
11477 if test "$ac_find_libraries" != "" ; then
11478
ab9b9eab
VZ
11479 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
11480 result=$?
11481 if test $result = 0; then
11482 ac_path_to_link=""
11483 else
62d0491b 11484 ac_path_to_link=" -L$ac_find_libraries"
ab9b9eab
VZ
11485 fi
11486
62d0491b 11487 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
3d63bc3a 11488 xpm_link=" -lXpm"
1e6feb95 11489 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
11490#define wxHAVE_LIB_XPM 1
11491EOF
11492
1e6feb95
VZ
11493 echo "$ac_t""found at $ac_find_libraries" 1>&6
11494 else
11495 cat > conftest.$ac_ext <<EOF
a3a584a7 11496#line 11497 "configure"
cd6d6d5b
VZ
11497#include "confdefs.h"
11498
1e6feb95
VZ
11499 #include <X11/xpm.h>
11500
698dcdb6 11501int main() {
cd6d6d5b 11502
1e6feb95 11503 int version;
1e6feb95
VZ
11504 version = XpmLibraryVersion();
11505
698dcdb6
VZ
11506; return 0; }
11507EOF
a3a584a7 11508if { (eval echo configure:11509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
11509 rm -rf conftest*
11510
3d63bc3a 11511 xpm_link=" -lXpm"
3a922bb4 11512 cat >> confdefs.h <<\EOF
3ace2e6d
SN
11513#define wxHAVE_LIB_XPM 1
11514EOF
11515
1e6feb95
VZ
11516 echo "$ac_t""found in default search path" 1>&6
11517 COMPILED_X_PROGRAM=0
11518
cd6d6d5b 11519else
698dcdb6
VZ
11520 echo "configure: failed program was:" >&5
11521 cat conftest.$ac_ext >&5
11522 rm -rf conftest*
11523
1e6feb95
VZ
11524 echo "$ac_t""no" 1>&6
11525 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
11526
698dcdb6 11527
cd6d6d5b 11528fi
698dcdb6 11529rm -f conftest*
1e6feb95
VZ
11530 fi
11531
3d63bc3a 11532 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
334f0d2c 11533 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
1e6feb95
VZ
11534 TOOLKIT=MOTIF
11535 GUIDIST=MOTIF_DIST
ab9b9eab
VZ
11536 fi
11537
683dccda
GD
11538 if test "$wxUSE_MAC" = 1; then
11539 if test "$wxUSE_PRECOMP" = "yes"; then
3d63bc3a 11540 CPPFLAGS="$CPPFLAGS -cpp-precomp"
683dccda 11541 fi
3d63bc3a
RL
11542 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
11543 CFLAGS="$CFLAGS -fpascal-strings"
11544 CXXFLAGS="$CXXFLAGS -fpascal-strings"
11545 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -DTARGET_CARBON"
d08b457b 11546
13c0541d 11547 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
1e6feb95 11548 TOOLKIT=MAC
683dccda 11549 GUIDIST=MACX_DIST
1e6feb95 11550 fi
10f2d63a 11551
1e6feb95
VZ
11552 if test "$wxUSE_PM" = 1; then
11553 TOOLKIT=PM
11554 GUIDIST=GTK_DIST
11555 fi
b4085ce6 11556
3a922bb4 11557 if test "$TOOLKIT" = "PM" ; then
1e6feb95 11558 TOOLKIT_DIR="os2"
3a922bb4
RL
11559 else
11560 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
1e6feb95 11561 fi
e07802fc 11562
3a922bb4 11563 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
1e6feb95 11564
3a922bb4
RL
11565 if test "$wxUSE_UNIVERSAL" = "yes"; then
11566 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
11567 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
11568 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
11569 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
11570 WIDGET_SET=univ
f6bcfd97 11571 else
3a922bb4 11572 ALL_OBJECTS="\$(GUIOBJS)"
1e6feb95
VZ
11573 fi
11574
ba0e650c 11575 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
1e6feb95
VZ
11576
11577 if test "$TOOLKIT" != "MSW"; then
11578 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
11579 fi
11580
11581 if test "$wxUSE_HTML" = "yes"; then
11582 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
11583 fi
3fcdd07b 11584
3a922bb4
RL
11585 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
11586 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
831b3152 11587 fi
4f14bcd8 11588 if test "$wxUSE_LIBJPEG" = "builtin" ; then
2224580a 11589 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d 11590 fi
4f14bcd8 11591 if test "$wxUSE_LIBTIFF" = "builtin" ; then
d9d8273d
RR
11592 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
11593 fi
4f14bcd8 11594 if test "$wxUSE_LIBPNG" = "builtin" ; then
d9d8273d
RR
11595 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
11596 fi
4f14bcd8 11597 if test "$wxUSE_FREETYPE" = "builtin" ; then
3fed1840
RR
11598 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
11599 fi
2224580a 11600
2224580a
VZ
11601 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
11602 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 11603else
dad6c0ea
VZ
11604 USE_GUI=0
11605
3a922bb4 11606 TOOLKIT_DIR="base"
f6bcfd97 11607
3a922bb4
RL
11608 if test "$USE_WIN32" = 1 ; then
11609 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
11610 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
0b2effe9 11611
3a922bb4 11612 TOOLKIT="MSW"
f6bcfd97 11613 else
3a922bb4
RL
11614 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
11615 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
f6bcfd97
BP
11616 fi
11617
831b3152 11618 PORT_FILES="\${top_srcdir}/src/files.lst"
2224580a
VZ
11619
11620 GUIDIST="BASE_DIST"
11621 DISTDIR="wxBase"
10f2d63a
VZ
11622fi
11623
4f14bcd8 11624if test "$wxUSE_REGEX" = "builtin" ; then
3a922bb4
RL
11625 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
11626fi
4f14bcd8 11627if test "$wxUSE_ZLIB" = "builtin" ; then
3a922bb4
RL
11628 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
11629fi
10f2d63a 11630
3a922bb4 11631if test "$wxUSE_OPENGL" = "yes"; then
62d0491b
RL
11632 if test "$wxUSE_MAC" = 1; then
11633 OPENGL_LIBS="-framework OpenGL -framework AGL"
11634 else
570cb8cb 11635
62d0491b 11636 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
3a922bb4 11637echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
62d0491b 11638echo "configure:11639: checking for GL/gl.h" >&5
3a922bb4
RL
11639if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11640 echo $ac_n "(cached) $ac_c" 1>&6
11641else
11642 cat > conftest.$ac_ext <<EOF
62d0491b 11643#line 11644 "configure"
3a922bb4
RL
11644#include "confdefs.h"
11645#include <GL/gl.h>
11646EOF
11647ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
62d0491b 11648{ (eval echo configure:11649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
11649ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11650if test -z "$ac_err"; then
11651 rm -rf conftest*
11652 eval "ac_cv_header_$ac_safe=yes"
11653else
11654 echo "$ac_err" >&5
11655 echo "configure: failed program was:" >&5
11656 cat conftest.$ac_ext >&5
11657 rm -rf conftest*
11658 eval "ac_cv_header_$ac_safe=no"
11659fi
11660rm -f conftest*
11661fi
11662if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11663 echo "$ac_t""yes" 1>&6
11664
57964555 11665
62d0491b
RL
11666ac_find_libraries=
11667for ac_dir in $SEARCH_LIB;
11668 do
11669 for ac_extension in a so sl dylib; do
11670 if test -f "$ac_dir/libGL.$ac_extension"; then
11671 ac_find_libraries=$ac_dir
11672 break 2
11673 fi
11674 done
11675 done
3a922bb4 11676
62d0491b
RL
11677 if test "$ac_find_libraries" != "" ; then
11678
11679 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
11680 result=$?
11681 if test $result = 0; then
11682 ac_path_to_link=""
11683 else
11684 ac_path_to_link=" -L$ac_find_libraries"
11685 fi
3a922bb4 11686
62d0491b
RL
11687 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
11688 OPENGL_LIBS="-lGL -lGLU"
11689 else
11690
11691ac_find_libraries=
11692for ac_dir in $SEARCH_LIB;
11693 do
11694 for ac_extension in a so sl dylib; do
11695 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
11696 ac_find_libraries=$ac_dir
11697 break 2
11698 fi
11699 done
11700 done
3a922bb4 11701
62d0491b 11702 if test "$ac_find_libraries" != "" ; then
57964555 11703
62d0491b
RL
11704 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
11705 result=$?
11706 if test $result = 0; then
11707 ac_path_to_link=""
11708 else
11709 ac_path_to_link=" -L$ac_find_libraries"
11710 fi
3a922bb4 11711
62d0491b
RL
11712 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
11713 OPENGL_LIBS="-lMesaGL -lMesaGLU"
11714 fi
11715 fi
11716
3a922bb4
RL
11717else
11718 echo "$ac_t""no" 1>&6
3a922bb4
RL
11719fi
11720
6f754473 11721
62d0491b
RL
11722
11723# AC_CHECK_HEADER(GL/gl.h,
11724# [
11725# AC_CHECK_LIB(GL, glFlush,
11726# [
11727# OPENGL_LIBS="-lGL -lGLU"
11728# ],
11729# [
11730# AC_CHECK_LIB(MesaGL, glFlush,
11731# [
11732# OPENGL_LIBS="-lMesaGL -lMesaGLU"
11733# ],
11734# [],
11735# [-lm])
11736# ],
11737# [-lm])
11738# ])
11739
11740 if test "x$OPENGL_LIBS" = "x"; then
11741 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
11742 fi
6f754473 11743 fi
6f754473 11744
62d0491b
RL
11745 if test "$wxUSE_OPENGL" = "yes"; then
11746 cat >> confdefs.h <<\EOF
6f754473
VZ
11747#define wxUSE_OPENGL 1
11748EOF
11749
62d0491b 11750 cat >> confdefs.h <<\EOF
6f754473
VZ
11751#define wxUSE_GLCANVAS 1
11752EOF
11753
62d0491b
RL
11754 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
11755 fi
3a922bb4
RL
11756fi
11757
11758if test -z "$TOOLKIT_VPATH" ; then
11759 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
11760fi
11761
11762if test -n "$TOOLKIT" ; then
11763 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
11764fi
11765
f676c7ff
MB
11766lib_unicode_suffix=
11767if test "$wxUSE_UNICODE" = "yes"; then
11768 lib_unicode_suffix=u
11769fi
11770
3a922bb4
RL
11771lib_debug_suffix=
11772if test "$wxUSE_DEBUG_FLAG" = "yes"; then
11773 lib_debug_suffix=d
3a922bb4
RL
11774fi
11775
f676c7ff
MB
11776TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
11777TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
3a922bb4
RL
11778
11779if test "$cross_compiling" = "yes"; then
11780 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
11781 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
11782fi
11783
11784WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
11785WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
11786
3a922bb4
RL
11787WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11788WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11789
11790WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
11791WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
11792WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
11793WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
11794
d08b457b 11795WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
e23081de 11796WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
3a922bb4 11797
978f1259
RL
11798case "${host}" in
11799 *-*-cygwin* | *-*-mingw32* )
11800
2da4f892 11801
978f1259
RL
11802
11803 if test "$cross_compiling" != "yes"; then
11804 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
11805 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
11806 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
11807 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
2da4f892
RL
11808 else
11809 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
11810 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
978f1259
RL
11811 fi
11812
11813esac
11814
11815WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
11816WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
11817
11818WXCONFIG_LIBS="-l${WX_LIBRARY}"
11819
11820if test "$wxUSE_OPENGL" = "yes"; then
11821 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} $OPENGL_LIBS"
11822fi
11823
11824
3a922bb4
RL
11825
11826if test "$wxUSE_SHARED" = "yes"; then
55e80573
VZ
11827
11828 if test "$wxUSE_OPENGL" = "yes"; then
11829 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
3a922bb4 11830 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
55e80573
VZ
11831 else
11832 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
3a922bb4 11833 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
55e80573
VZ
11834 fi
11835
dd4f7467 11836 if test "$GCC" = "yes"; then
55e80573 11837 PIC_FLAG="-fPIC"
dd4f7467 11838 fi
55e80573
VZ
11839
11840 SHARED_LD="${CXX} -shared -o"
698dcdb6 11841
10f2d63a
VZ
11842 case "${host}" in
11843 *-hp-hpux* )
55e80573 11844 if test "$GCC" != "yes"; then
3d63bc3a 11845 LDFLAGS="$LDFLAGS -L/usr/lib"
f6bcfd97 11846
10f2d63a
VZ
11847 SHARED_LD="${CXX} -b -o"
11848 PIC_FLAG="+Z"
11849 fi
55e80573 11850
7b7a7637
RL
11851 if test "$wxUSE_OPENGL" = "yes"; then
11852 WX_ALL_INSTALLED="preinstall_gl"
11853 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
11854 else
11855 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
11856 fi
10f2d63a 11857 ;;
b12915c1 11858
55e80573
VZ
11859 *-*-linux* )
11860 if test "$GCC" != "yes"; then
11861 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
62d0491b 11862echo "configure:11863: checking for Intel compiler" >&5
55e80573
VZ
11863if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
11864 echo $ac_n "(cached) $ac_c" 1>&6
11865else
11866
11867 cat > conftest.$ac_ext <<EOF
62d0491b 11868#line 11869 "configure"
55e80573
VZ
11869#include "confdefs.h"
11870
11871int main() {
11872
11873 #ifndef __INTEL_COMPILER
dd4f7467 11874 #error Not icc
55e80573
VZ
11875 #endif
11876
11877; return 0; }
11878EOF
62d0491b 11879if { (eval echo configure:11880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
55e80573
VZ
11880 rm -rf conftest*
11881 wx_cv_prog_icc=yes
11882else
11883 echo "configure: failed program was:" >&5
11884 cat conftest.$ac_ext >&5
11885 rm -rf conftest*
11886 wx_cv_prog_icc=no
11887
11888fi
11889rm -f conftest*
11890
11891fi
11892
11893echo "$ac_t""$wx_cv_prog_icc" 1>&6
55e80573
VZ
11894 if test "$wx_cv_prog_icc" = "yes"; then
11895 PIC_FLAG="-KPIC"
11896 fi
11897 fi
11898
3a922bb4
RL
11899 if test "$wxUSE_SONAME" = "yes" ; then
11900 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
11901 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 11902 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 11903 fi
10f2d63a 11904 ;;
55e80573 11905
10f2d63a
VZ
11906 *-*-solaris2* )
11907 if test "$GCC" = yes ; then
f6bcfd97 11908 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
11909 else
11910 SHARED_LD="${CXX} -G -o"
11911 PIC_FLAG="-KPIC"
7b7a7637
RL
11912 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
11913 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}"
10f2d63a 11914 fi
10f2d63a 11915 ;;
55e80573 11916
b4085ce6 11917 *-*-darwin* )
3d63bc3a
RL
11918 CFLAGS="$CFLAGS -fno-common"
11919 CXXFLAGS="$CXXFLAGS -fno-common"
11920 SHARED_LD="$CXX -dynamiclib -o"
ea5999b9 11921 PIC_FLAG="-dynamic -fPIC"
10f2d63a 11922 ;;
55e80573 11923
10f2d63a
VZ
11924 *-*-aix* )
11925 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10f2d63a 11926 ;;
55e80573 11927
7b7a7637 11928 *-*-cygwin* | *-*-mingw32* )
77e13408 11929
2da4f892 11930 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
77e13408 11931
77e13408 11932 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
00c81359 11933 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
25d0687a
RL
11934
11935 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
7b7a7637
RL
11936
11937 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 11938 WX_ALL_INSTALLED="preinstall_gl"
978f1259 11939 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
f6bcfd97 11940 else
978f1259 11941 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
f6bcfd97 11942 fi
10f2d63a 11943 ;;
55e80573 11944
6fa882bd 11945 *-pc-os2_emx | *-pc-os2-emx )
7b7a7637 11946 wxUSE_SHARED=no
10f2d63a 11947 ;;
55e80573 11948
b12915c1 11949 *-*-beos* )
e2b8b066 11950 SHARED_LD="${LD} -shared -o"
b12915c1 11951 ;;
55e80573
VZ
11952
11953 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
11954 *-*-sunos4* | \
11955 *-*-irix5* | *-*-irix6* | \
11956 *-*-osf* | \
11957 *-*-dgux5* | \
11958 *-*-sysv5* )
11959 ;;
11960
10f2d63a 11961 *)
7b7a7637 11962 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
10f2d63a
VZ
11963 esac
11964
11965 if test "x$WX_TARGET_LIBRARY" = "x"; then
11966 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 11967 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 11968 fi
55e80573 11969
3711412e 11970 WX_TARGET_LIBRARY_TYPE="so"
3a922bb4 11971fi
f6bcfd97 11972
3a922bb4 11973if test "$wxUSE_SHARED" = "no"; then
f6bcfd97 11974
3a922bb4 11975 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
f6bcfd97
BP
11976 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11977 fi
11978
6fa882bd
RR
11979 if test "$wxUSE_MAC" = 1; then
11980 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11981 fi
11982
3a922bb4
RL
11983 if test "$wxUSE_OPENGL" = "yes"; then
11984 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
11985 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
11986 else
11987 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
11988 fi
698dcdb6 11989
3a922bb4
RL
11990 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11991 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
11992
11993 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a 11994fi
10f2d63a 11995
d08b457b
GD
11996if test "$wxUSE_MAC" = 1; then
11997 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
e23081de 11998 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
d08b457b
GD
11999 # Extract the first word of "Rez", so it can be a program name with args.
12000set dummy Rez; ac_word=$2
12001echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
62d0491b 12002echo "configure:12003: checking for $ac_word" >&5
d08b457b
GD
12003if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
12004 echo $ac_n "(cached) $ac_c" 1>&6
12005else
12006 if test -n "$RESCOMP"; then
12007 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
12008else
12009 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12010 ac_dummy="$PATH"
12011 for ac_dir in $ac_dummy; do
12012 test -z "$ac_dir" && ac_dir=.
12013 if test -f $ac_dir/$ac_word; then
12014 ac_cv_prog_RESCOMP="Rez"
12015 break
12016 fi
12017 done
12018 IFS="$ac_save_ifs"
12019 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
12020fi
12021fi
12022RESCOMP="$ac_cv_prog_RESCOMP"
12023if test -n "$RESCOMP"; then
12024 echo "$ac_t""$RESCOMP" 1>&6
12025else
12026 echo "$ac_t""no" 1>&6
12027fi
12028
12029 # Extract the first word of "Derez", so it can be a program name with args.
12030set dummy Derez; ac_word=$2
12031echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
62d0491b 12032echo "configure:12033: checking for $ac_word" >&5
d08b457b
GD
12033if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
12034 echo $ac_n "(cached) $ac_c" 1>&6
12035else
12036 if test -n "$DEREZ"; then
12037 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
12038else
12039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12040 ac_dummy="$PATH"
12041 for ac_dir in $ac_dummy; do
12042 test -z "$ac_dir" && ac_dir=.
12043 if test -f $ac_dir/$ac_word; then
12044 ac_cv_prog_DEREZ="Derez"
12045 break
12046 fi
12047 done
12048 IFS="$ac_save_ifs"
12049 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
12050fi
12051fi
12052DEREZ="$ac_cv_prog_DEREZ"
12053if test -n "$DEREZ"; then
12054 echo "$ac_t""$DEREZ" 1>&6
12055else
12056 echo "$ac_t""no" 1>&6
12057fi
12058
12059 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
12060 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
e23081de 12061 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
d08b457b
GD
12062fi
12063
3a922bb4 12064
13c0541d
GD
12065if test "$wxUSE_MAC" != 1; then
12066 for ac_hdr in strings.h
9cfadba2 12067do
698dcdb6
VZ
12068ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12069echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
62d0491b 12070echo "configure:12071: checking for $ac_hdr" >&5
698dcdb6
VZ
12071if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12072 echo $ac_n "(cached) $ac_c" 1>&6
12073else
12074 cat > conftest.$ac_ext <<EOF
62d0491b 12075#line 12076 "configure"
9cfadba2 12076#include "confdefs.h"
698dcdb6
VZ
12077#include <$ac_hdr>
12078EOF
12079ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
62d0491b 12080{ (eval echo configure:12081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12081ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12082if test -z "$ac_err"; then
12083 rm -rf conftest*
12084 eval "ac_cv_header_$ac_safe=yes"
6232543b 12085else
698dcdb6
VZ
12086 echo "$ac_err" >&5
12087 echo "configure: failed program was:" >&5
9cfadba2 12088 cat conftest.$ac_ext >&5
698dcdb6
VZ
12089 rm -rf conftest*
12090 eval "ac_cv_header_$ac_safe=no"
9cfadba2 12091fi
698dcdb6 12092rm -f conftest*
9cfadba2 12093fi
698dcdb6
VZ
12094if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12095 echo "$ac_t""yes" 1>&6
12096 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12097 cat >> confdefs.h <<EOF
12098#define $ac_tr_hdr 1
9cfadba2 12099EOF
698dcdb6
VZ
12100
12101else
12102 echo "$ac_t""no" 1>&6
9cfadba2
VZ
12103fi
12104done
10f2d63a 12105
13c0541d
GD
12106fi
12107
3a922bb4 12108for ac_hdr in stdlib.h
10f2d63a 12109do
698dcdb6
VZ
12110ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12111echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
62d0491b 12112echo "configure:12113: checking for $ac_hdr" >&5
698dcdb6
VZ
12113if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12114 echo $ac_n "(cached) $ac_c" 1>&6
12115else
12116 cat > conftest.$ac_ext <<EOF
62d0491b 12117#line 12118 "configure"
10f2d63a 12118#include "confdefs.h"
698dcdb6
VZ
12119#include <$ac_hdr>
12120EOF
12121ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
62d0491b 12122{ (eval echo configure:12123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12123ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12124if test -z "$ac_err"; then
12125 rm -rf conftest*
12126 eval "ac_cv_header_$ac_safe=yes"
6232543b 12127else
698dcdb6
VZ
12128 echo "$ac_err" >&5
12129 echo "configure: failed program was:" >&5
10f2d63a 12130 cat conftest.$ac_ext >&5
698dcdb6
VZ
12131 rm -rf conftest*
12132 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12133fi
698dcdb6 12134rm -f conftest*
10f2d63a 12135fi
698dcdb6
VZ
12136if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12137 echo "$ac_t""yes" 1>&6
12138 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12139 cat >> confdefs.h <<EOF
12140#define $ac_tr_hdr 1
10f2d63a 12141EOF
698dcdb6
VZ
12142
12143else
12144 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12145fi
12146done
12147
3a922bb4 12148for ac_hdr in unistd.h
10f2d63a 12149do
698dcdb6
VZ
12150ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12151echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
62d0491b 12152echo "configure:12153: checking for $ac_hdr" >&5
698dcdb6
VZ
12153if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12154 echo $ac_n "(cached) $ac_c" 1>&6
12155else
12156 cat > conftest.$ac_ext <<EOF
62d0491b 12157#line 12158 "configure"
10f2d63a 12158#include "confdefs.h"
698dcdb6
VZ
12159#include <$ac_hdr>
12160EOF
12161ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
62d0491b 12162{ (eval echo configure:12163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12163ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12164if test -z "$ac_err"; then
12165 rm -rf conftest*
12166 eval "ac_cv_header_$ac_safe=yes"
6f72b082 12167else
698dcdb6
VZ
12168 echo "$ac_err" >&5
12169 echo "configure: failed program was:" >&5
6f72b082 12170 cat conftest.$ac_ext >&5
698dcdb6
VZ
12171 rm -rf conftest*
12172 eval "ac_cv_header_$ac_safe=no"
6f72b082 12173fi
698dcdb6 12174rm -f conftest*
6f72b082 12175fi
698dcdb6
VZ
12176if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12177 echo "$ac_t""yes" 1>&6
12178 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12179 cat >> confdefs.h <<EOF
12180#define $ac_tr_hdr 1
6f72b082 12181EOF
698dcdb6
VZ
12182
12183else
12184 echo "$ac_t""no" 1>&6
6f72b082
OK
12185fi
12186done
12187
3a922bb4 12188for ac_hdr in wchar.h
6f72b082 12189do
698dcdb6
VZ
12190ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12191echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
62d0491b 12192echo "configure:12193: checking for $ac_hdr" >&5
698dcdb6
VZ
12193if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12194 echo $ac_n "(cached) $ac_c" 1>&6
12195else
12196 cat > conftest.$ac_ext <<EOF
62d0491b 12197#line 12198 "configure"
6f72b082 12198#include "confdefs.h"
698dcdb6
VZ
12199#include <$ac_hdr>
12200EOF
12201ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
62d0491b 12202{ (eval echo configure:12203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12203ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12204if test -z "$ac_err"; then
12205 rm -rf conftest*
12206 eval "ac_cv_header_$ac_safe=yes"
6f72b082 12207else
698dcdb6
VZ
12208 echo "$ac_err" >&5
12209 echo "configure: failed program was:" >&5
6f72b082 12210 cat conftest.$ac_ext >&5
698dcdb6
VZ
12211 rm -rf conftest*
12212 eval "ac_cv_header_$ac_safe=no"
6f72b082 12213fi
698dcdb6 12214rm -f conftest*
6f72b082 12215fi
698dcdb6
VZ
12216if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12217 echo "$ac_t""yes" 1>&6
12218 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12219 cat >> confdefs.h <<EOF
12220#define $ac_tr_hdr 1
6f72b082 12221EOF
698dcdb6
VZ
12222
12223else
12224 echo "$ac_t""no" 1>&6
6f72b082
OK
12225fi
12226done
12227
3a922bb4 12228for ac_hdr in wcstr.h
6f72b082 12229do
698dcdb6
VZ
12230ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12231echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
62d0491b 12232echo "configure:12233: checking for $ac_hdr" >&5
698dcdb6
VZ
12233if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12234 echo $ac_n "(cached) $ac_c" 1>&6
12235else
12236 cat > conftest.$ac_ext <<EOF
62d0491b 12237#line 12238 "configure"
6f72b082 12238#include "confdefs.h"
698dcdb6
VZ
12239#include <$ac_hdr>
12240EOF
12241ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
62d0491b 12242{ (eval echo configure:12243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12243ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12244if test -z "$ac_err"; then
12245 rm -rf conftest*
12246 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12247else
698dcdb6
VZ
12248 echo "$ac_err" >&5
12249 echo "configure: failed program was:" >&5
10f2d63a 12250 cat conftest.$ac_ext >&5
698dcdb6
VZ
12251 rm -rf conftest*
12252 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12253fi
698dcdb6 12254rm -f conftest*
10f2d63a 12255fi
698dcdb6
VZ
12256if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12257 echo "$ac_t""yes" 1>&6
12258 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12259 cat >> confdefs.h <<EOF
12260#define $ac_tr_hdr 1
10f2d63a 12261EOF
698dcdb6
VZ
12262
12263else
12264 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12265fi
12266done
12267
3a922bb4 12268for ac_hdr in fnmatch.h
0fb0dd83 12269do
698dcdb6
VZ
12270ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12271echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
62d0491b 12272echo "configure:12273: checking for $ac_hdr" >&5
698dcdb6
VZ
12273if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12274 echo $ac_n "(cached) $ac_c" 1>&6
12275else
12276 cat > conftest.$ac_ext <<EOF
62d0491b 12277#line 12278 "configure"
0fb0dd83 12278#include "confdefs.h"
698dcdb6
VZ
12279#include <$ac_hdr>
12280EOF
12281ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
62d0491b 12282{ (eval echo configure:12283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12283ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12284if test -z "$ac_err"; then
12285 rm -rf conftest*
12286 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 12287else
698dcdb6
VZ
12288 echo "$ac_err" >&5
12289 echo "configure: failed program was:" >&5
0fb0dd83 12290 cat conftest.$ac_ext >&5
698dcdb6
VZ
12291 rm -rf conftest*
12292 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 12293fi
698dcdb6 12294rm -f conftest*
0fb0dd83 12295fi
698dcdb6
VZ
12296if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12297 echo "$ac_t""yes" 1>&6
12298 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12299 cat >> confdefs.h <<EOF
12300#define $ac_tr_hdr 1
0fb0dd83 12301EOF
698dcdb6
VZ
12302
12303else
12304 echo "$ac_t""no" 1>&6
0fb0dd83
RR
12305fi
12306done
12307
3a922bb4 12308for ac_hdr in iconv.h
1f8ae82f 12309do
698dcdb6
VZ
12310ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12311echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
62d0491b 12312echo "configure:12313: checking for $ac_hdr" >&5
698dcdb6
VZ
12313if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12314 echo $ac_n "(cached) $ac_c" 1>&6
12315else
12316 cat > conftest.$ac_ext <<EOF
62d0491b 12317#line 12318 "configure"
1f8ae82f 12318#include "confdefs.h"
698dcdb6
VZ
12319#include <$ac_hdr>
12320EOF
12321ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
62d0491b 12322{ (eval echo configure:12323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12323ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12324if test -z "$ac_err"; then
12325 rm -rf conftest*
12326 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 12327else
698dcdb6
VZ
12328 echo "$ac_err" >&5
12329 echo "configure: failed program was:" >&5
1f8ae82f 12330 cat conftest.$ac_ext >&5
698dcdb6
VZ
12331 rm -rf conftest*
12332 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 12333fi
698dcdb6 12334rm -f conftest*
1f8ae82f 12335fi
698dcdb6
VZ
12336if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12337 echo "$ac_t""yes" 1>&6
12338 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12339 cat >> confdefs.h <<EOF
12340#define $ac_tr_hdr 1
1f8ae82f 12341EOF
698dcdb6
VZ
12342
12343else
12344 echo "$ac_t""no" 1>&6
1f8ae82f
GD
12345fi
12346done
12347
3a922bb4 12348for ac_hdr in langinfo.h
10f2d63a 12349do
698dcdb6
VZ
12350ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12351echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
62d0491b 12352echo "configure:12353: checking for $ac_hdr" >&5
698dcdb6
VZ
12353if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12354 echo $ac_n "(cached) $ac_c" 1>&6
12355else
12356 cat > conftest.$ac_ext <<EOF
62d0491b 12357#line 12358 "configure"
10f2d63a 12358#include "confdefs.h"
698dcdb6
VZ
12359#include <$ac_hdr>
12360EOF
12361ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
62d0491b 12362{ (eval echo configure:12363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12363ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12364if test -z "$ac_err"; then
12365 rm -rf conftest*
12366 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12367else
698dcdb6
VZ
12368 echo "$ac_err" >&5
12369 echo "configure: failed program was:" >&5
10f2d63a 12370 cat conftest.$ac_ext >&5
698dcdb6
VZ
12371 rm -rf conftest*
12372 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12373fi
698dcdb6 12374rm -f conftest*
10f2d63a 12375fi
698dcdb6
VZ
12376if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12377 echo "$ac_t""yes" 1>&6
12378 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12379 cat >> confdefs.h <<EOF
12380#define $ac_tr_hdr 1
10f2d63a 12381EOF
698dcdb6
VZ
12382
12383else
12384 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12385fi
12386done
12387
10f2d63a 12388
3a922bb4
RL
12389if test "$wxUSE_GUI" = "yes"; then
12390 if test "$wxUSE_UNIX" = "yes"; then
12391 for ac_hdr in X11/XKBlib.h
29fd3c0c
VS
12392do
12393ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12394echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
62d0491b 12395echo "configure:12396: checking for $ac_hdr" >&5
29fd3c0c
VS
12396if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12397 echo $ac_n "(cached) $ac_c" 1>&6
12398else
12399 cat > conftest.$ac_ext <<EOF
62d0491b 12400#line 12401 "configure"
29fd3c0c
VS
12401#include "confdefs.h"
12402#include <$ac_hdr>
12403EOF
12404ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
62d0491b 12405{ (eval echo configure:12406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
12406ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12407if test -z "$ac_err"; then
12408 rm -rf conftest*
12409 eval "ac_cv_header_$ac_safe=yes"
12410else
12411 echo "$ac_err" >&5
12412 echo "configure: failed program was:" >&5
12413 cat conftest.$ac_ext >&5
12414 rm -rf conftest*
12415 eval "ac_cv_header_$ac_safe=no"
12416fi
12417rm -f conftest*
12418fi
12419if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12420 echo "$ac_t""yes" 1>&6
12421 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12422 cat >> confdefs.h <<EOF
12423#define $ac_tr_hdr 1
12424EOF
12425
12426else
12427 echo "$ac_t""no" 1>&6
12428fi
12429done
12430
3a922bb4 12431 fi
29fd3c0c
VS
12432fi
12433
698dcdb6
VZ
12434
12435echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
62d0491b 12436echo "configure:12437: checking for ANSI C header files" >&5
698dcdb6
VZ
12437if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
12438 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12439else
698dcdb6 12440 cat > conftest.$ac_ext <<EOF
62d0491b 12441#line 12442 "configure"
10f2d63a
VZ
12442#include "confdefs.h"
12443#include <stdlib.h>
12444#include <stdarg.h>
12445#include <string.h>
12446#include <float.h>
698dcdb6
VZ
12447EOF
12448ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
62d0491b 12449{ (eval echo configure:12450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12450ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12451if test -z "$ac_err"; then
12452 rm -rf conftest*
10f2d63a
VZ
12453 ac_cv_header_stdc=yes
12454else
698dcdb6
VZ
12455 echo "$ac_err" >&5
12456 echo "configure: failed program was:" >&5
10f2d63a 12457 cat conftest.$ac_ext >&5
698dcdb6 12458 rm -rf conftest*
10f2d63a
VZ
12459 ac_cv_header_stdc=no
12460fi
698dcdb6 12461rm -f conftest*
10f2d63a
VZ
12462
12463if test $ac_cv_header_stdc = yes; then
12464 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 12465cat > conftest.$ac_ext <<EOF
62d0491b 12466#line 12467 "configure"
10f2d63a
VZ
12467#include "confdefs.h"
12468#include <string.h>
698dcdb6 12469EOF
10f2d63a
VZ
12470if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12471 egrep "memchr" >/dev/null 2>&1; then
12472 :
12473else
698dcdb6 12474 rm -rf conftest*
10f2d63a
VZ
12475 ac_cv_header_stdc=no
12476fi
12477rm -f conftest*
12478
12479fi
12480
12481if test $ac_cv_header_stdc = yes; then
12482 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 12483cat > conftest.$ac_ext <<EOF
62d0491b 12484#line 12485 "configure"
10f2d63a
VZ
12485#include "confdefs.h"
12486#include <stdlib.h>
698dcdb6 12487EOF
10f2d63a
VZ
12488if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12489 egrep "free" >/dev/null 2>&1; then
12490 :
12491else
698dcdb6 12492 rm -rf conftest*
10f2d63a
VZ
12493 ac_cv_header_stdc=no
12494fi
12495rm -f conftest*
12496
12497fi
12498
12499if test $ac_cv_header_stdc = yes; then
12500 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 12501if test "$cross_compiling" = yes; then
10f2d63a
VZ
12502 :
12503else
698dcdb6 12504 cat > conftest.$ac_ext <<EOF
62d0491b 12505#line 12506 "configure"
10f2d63a
VZ
12506#include "confdefs.h"
12507#include <ctype.h>
698dcdb6
VZ
12508#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12509#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 12510#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
12511int main () { int i; for (i = 0; i < 256; i++)
12512if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
12513exit (0); }
12514
12515EOF
62d0491b 12516if { (eval echo configure:12517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12517then
10f2d63a
VZ
12518 :
12519else
698dcdb6
VZ
12520 echo "configure: failed program was:" >&5
12521 cat conftest.$ac_ext >&5
12522 rm -fr conftest*
12523 ac_cv_header_stdc=no
10f2d63a 12524fi
698dcdb6 12525rm -fr conftest*
10f2d63a 12526fi
698dcdb6 12527
10f2d63a
VZ
12528fi
12529fi
1e487827 12530
698dcdb6
VZ
12531echo "$ac_t""$ac_cv_header_stdc" 1>&6
12532if test $ac_cv_header_stdc = yes; then
12533 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12534#define STDC_HEADERS 1
12535EOF
12536
12537fi
12538
698dcdb6 12539echo $ac_n "checking for mode_t""... $ac_c" 1>&6
62d0491b 12540echo "configure:12541: checking for mode_t" >&5
698dcdb6
VZ
12541if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
12542 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 12543else
698dcdb6 12544 cat > conftest.$ac_ext <<EOF
62d0491b 12545#line 12546 "configure"
1e487827 12546#include "confdefs.h"
698dcdb6
VZ
12547#include <sys/types.h>
12548#if STDC_HEADERS
12549#include <stdlib.h>
12550#include <stddef.h>
12551#endif
12552EOF
12553if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12554 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12555 rm -rf conftest*
10f2d63a
VZ
12556 ac_cv_type_mode_t=yes
12557else
698dcdb6
VZ
12558 rm -rf conftest*
12559 ac_cv_type_mode_t=no
703e0a69 12560fi
698dcdb6 12561rm -f conftest*
1e487827 12562
698dcdb6
VZ
12563fi
12564echo "$ac_t""$ac_cv_type_mode_t" 1>&6
12565if test $ac_cv_type_mode_t = no; then
12566 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12567#define mode_t int
12568EOF
12569
12570fi
12571
698dcdb6 12572echo $ac_n "checking for off_t""... $ac_c" 1>&6
62d0491b 12573echo "configure:12574: checking for off_t" >&5
698dcdb6
VZ
12574if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
12575 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12576else
698dcdb6 12577 cat > conftest.$ac_ext <<EOF
62d0491b 12578#line 12579 "configure"
10f2d63a 12579#include "confdefs.h"
698dcdb6
VZ
12580#include <sys/types.h>
12581#if STDC_HEADERS
12582#include <stdlib.h>
12583#include <stddef.h>
12584#endif
12585EOF
12586if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12587 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12588 rm -rf conftest*
10f2d63a
VZ
12589 ac_cv_type_off_t=yes
12590else
698dcdb6
VZ
12591 rm -rf conftest*
12592 ac_cv_type_off_t=no
703e0a69 12593fi
698dcdb6 12594rm -f conftest*
1e487827 12595
698dcdb6
VZ
12596fi
12597echo "$ac_t""$ac_cv_type_off_t" 1>&6
12598if test $ac_cv_type_off_t = no; then
12599 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12600#define off_t long
12601EOF
12602
12603fi
12604
698dcdb6 12605echo $ac_n "checking for pid_t""... $ac_c" 1>&6
62d0491b 12606echo "configure:12607: checking for pid_t" >&5
698dcdb6
VZ
12607if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
12608 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12609else
698dcdb6 12610 cat > conftest.$ac_ext <<EOF
62d0491b 12611#line 12612 "configure"
10f2d63a 12612#include "confdefs.h"
698dcdb6
VZ
12613#include <sys/types.h>
12614#if STDC_HEADERS
12615#include <stdlib.h>
12616#include <stddef.h>
12617#endif
12618EOF
12619if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12620 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12621 rm -rf conftest*
10f2d63a
VZ
12622 ac_cv_type_pid_t=yes
12623else
698dcdb6
VZ
12624 rm -rf conftest*
12625 ac_cv_type_pid_t=no
703e0a69 12626fi
698dcdb6 12627rm -f conftest*
1e487827 12628
698dcdb6
VZ
12629fi
12630echo "$ac_t""$ac_cv_type_pid_t" 1>&6
12631if test $ac_cv_type_pid_t = no; then
12632 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12633#define pid_t int
12634EOF
12635
12636fi
12637
698dcdb6 12638echo $ac_n "checking for size_t""... $ac_c" 1>&6
62d0491b 12639echo "configure:12640: checking for size_t" >&5
698dcdb6
VZ
12640if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
12641 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12642else
698dcdb6 12643 cat > conftest.$ac_ext <<EOF
62d0491b 12644#line 12645 "configure"
10f2d63a 12645#include "confdefs.h"
698dcdb6
VZ
12646#include <sys/types.h>
12647#if STDC_HEADERS
12648#include <stdlib.h>
12649#include <stddef.h>
12650#endif
12651EOF
12652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12653 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12654 rm -rf conftest*
10f2d63a
VZ
12655 ac_cv_type_size_t=yes
12656else
698dcdb6
VZ
12657 rm -rf conftest*
12658 ac_cv_type_size_t=no
703e0a69 12659fi
698dcdb6 12660rm -f conftest*
1e487827 12661
698dcdb6
VZ
12662fi
12663echo "$ac_t""$ac_cv_type_size_t" 1>&6
12664if test $ac_cv_type_size_t = no; then
12665 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12666#define size_t unsigned
12667EOF
12668
12669fi
12670
698dcdb6 12671echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
62d0491b 12672echo "configure:12673: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
12673if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
12674 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12675else
698dcdb6 12676 cat > conftest.$ac_ext <<EOF
62d0491b 12677#line 12678 "configure"
10f2d63a
VZ
12678#include "confdefs.h"
12679#include <sys/types.h>
698dcdb6 12680EOF
10f2d63a
VZ
12681if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12682 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 12683 rm -rf conftest*
10f2d63a
VZ
12684 ac_cv_type_uid_t=yes
12685else
698dcdb6 12686 rm -rf conftest*
10f2d63a
VZ
12687 ac_cv_type_uid_t=no
12688fi
12689rm -f conftest*
12690
12691fi
1e487827 12692
698dcdb6
VZ
12693echo "$ac_t""$ac_cv_type_uid_t" 1>&6
12694if test $ac_cv_type_uid_t = no; then
12695 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12696#define uid_t int
12697EOF
12698
698dcdb6 12699 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12700#define gid_t int
12701EOF
12702
12703fi
12704
1e487827 12705
698dcdb6 12706echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
62d0491b 12707echo "configure:12708: checking for wchar_t" >&5
698dcdb6
VZ
12708if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
12709 echo $ac_n "(cached) $ac_c" 1>&6
12710else
12711
12712 cat > conftest.$ac_ext <<EOF
62d0491b 12713#line 12714 "configure"
0046ff7c 12714#include "confdefs.h"
4b42290e
GD
12715
12716 #ifdef HAVE_WCHAR_H
12717 # include <wchar.h>
12718 #endif
12719 #ifdef HAVE_STDLIB_H
12720 # include <stdlib.h>
12721 #endif
12722
698dcdb6 12723int main() {
0046ff7c 12724
d836ee96
VZ
12725 wchar_t wc, *ws;
12726 wc = L'a';
12727 ws = L"Hello, world!";
698dcdb6
VZ
12728
12729; return 0; }
12730EOF
62d0491b 12731if { (eval echo configure:12732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12732 rm -rf conftest*
1f8ae82f 12733 wx_cv_type_wchar_t=yes
0046ff7c 12734else
698dcdb6
VZ
12735 echo "configure: failed program was:" >&5
12736 cat conftest.$ac_ext >&5
12737 rm -rf conftest*
12738 wx_cv_type_wchar_t=no
d836ee96 12739
6232543b 12740fi
698dcdb6 12741rm -f conftest*
703e0a69 12742
1e487827 12743fi
698dcdb6
VZ
12744
12745echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
12746
12747if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 12748 cat >> confdefs.h <<\EOF
0046ff7c
VS
12749#define wxUSE_WCHAR_T 1
12750EOF
12751
12752fi
12753
19af3b06
VZ
12754
12755ac_ext=C
12756# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12757ac_cpp='$CXXCPP $CPPFLAGS'
12758ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12759ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12760cross_compiling=$ac_cv_prog_cxx_cross
12761
d836ee96 12762echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
62d0491b 12763echo "configure:12764: checking if size_t is unsigned int" >&5
d836ee96
VZ
12764if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
12765 echo $ac_n "(cached) $ac_c" 1>&6
12766else
dd2c8b7c 12767 cat > conftest.$ac_ext <<EOF
62d0491b 12768#line 12769 "configure"
d836ee96
VZ
12769#include "confdefs.h"
12770#include <stddef.h>
12771int main() {
12772
dd2c8b7c
VZ
12773 return 0; }
12774
d836ee96 12775 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
12776
12777 int bar() {
d836ee96
VZ
12778
12779; return 0; }
12780EOF
62d0491b 12781if { (eval echo configure:12782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
12782 rm -rf conftest*
12783 wx_cv_size_t_is_uint=no
12784else
12785 echo "configure: failed program was:" >&5
12786 cat conftest.$ac_ext >&5
12787 rm -rf conftest*
12788 wx_cv_size_t_is_uint=yes
12789
12790fi
12791rm -f conftest*
12792
12793fi
12794
12795echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
12796
12797if test "$wx_cv_size_t_is_uint" = "yes"; then
12798 cat >> confdefs.h <<\EOF
12799#define wxSIZE_T_IS_UINT 1
12800EOF
12801
12802else
12803 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
62d0491b 12804echo "configure:12805: checking if size_t is unsigned long" >&5
d836ee96
VZ
12805if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
12806 echo $ac_n "(cached) $ac_c" 1>&6
12807else
12808 cat > conftest.$ac_ext <<EOF
62d0491b 12809#line 12810 "configure"
d836ee96
VZ
12810#include "confdefs.h"
12811#include <stddef.h>
12812int main() {
12813
dd2c8b7c
VZ
12814 return 0; }
12815
d836ee96 12816 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
12817
12818 int bar() {
d836ee96
VZ
12819
12820; return 0; }
12821EOF
62d0491b 12822if { (eval echo configure:12823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
12823 rm -rf conftest*
12824 wx_cv_size_t_is_ulong=no
12825else
12826 echo "configure: failed program was:" >&5
12827 cat conftest.$ac_ext >&5
12828 rm -rf conftest*
12829 wx_cv_size_t_is_ulong=yes
12830
12831fi
12832rm -f conftest*
12833
12834fi
12835
12836echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
12837
12838 if test "$wx_cv_size_t_is_ulong" = "yes"; then
12839 cat >> confdefs.h <<\EOF
12840#define wxSIZE_T_IS_ULONG 1
12841EOF
12842
12843 fi
12844fi
12845
19af3b06
VZ
12846ac_ext=c
12847# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12848ac_cpp='$CPP $CPPFLAGS'
12849ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12850ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12851cross_compiling=$ac_cv_prog_cc_cross
12852
12853
1e487827 12854
698dcdb6 12855echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
62d0491b 12856echo "configure:12857: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
12857if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
12858 echo $ac_n "(cached) $ac_c" 1>&6
12859else
12860
12861 cat > conftest.$ac_ext <<EOF
62d0491b 12862#line 12863 "configure"
b12915c1
VZ
12863#include "confdefs.h"
12864#include <pwd.h>
698dcdb6 12865int main() {
b12915c1
VZ
12866
12867 char *p;
12868 struct passwd *pw;
12869 p = pw->pw_gecos;
698dcdb6
VZ
12870
12871; return 0; }
12872EOF
62d0491b 12873if { (eval echo configure:12874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12874 rm -rf conftest*
12875
b12915c1 12876 wx_cv_struct_pw_gecos=yes
698dcdb6 12877
b12915c1 12878else
698dcdb6
VZ
12879 echo "configure: failed program was:" >&5
12880 cat conftest.$ac_ext >&5
12881 rm -rf conftest*
12882
b12915c1 12883 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
12884
12885
6232543b 12886fi
698dcdb6
VZ
12887rm -f conftest*
12888
703e0a69 12889
1e487827 12890fi
698dcdb6
VZ
12891
12892echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 12893
bd3277fe 12894if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 12895 cat >> confdefs.h <<\EOF
bd3277fe
VZ
12896#define HAVE_PW_GECOS 1
12897EOF
12898
12899fi
12900
698dcdb6
VZ
12901
12902echo $ac_n "checking for working const""... $ac_c" 1>&6
62d0491b 12903echo "configure:12904: checking for working const" >&5
698dcdb6
VZ
12904if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
12905 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12906else
698dcdb6 12907 cat > conftest.$ac_ext <<EOF
62d0491b 12908#line 12909 "configure"
10f2d63a 12909#include "confdefs.h"
698dcdb6
VZ
12910
12911int main() {
12912
12913/* Ultrix mips cc rejects this. */
a3df447d 12914typedef int charset[2]; const charset x;
698dcdb6
VZ
12915/* SunOS 4.1.1 cc rejects this. */
12916char const *const *ccp;
12917char **p;
12918/* NEC SVR4.0.2 mips cc rejects this. */
12919struct point {int x, y;};
12920static struct point const zero = {0,0};
12921/* AIX XL C 1.02.0.0 rejects this.
12922 It does not let you subtract one const X* pointer from another in an arm
12923 of an if-expression whose if-part is not a constant expression */
12924const char *g = "string";
12925ccp = &g + (g ? g-g : 0);
12926/* HPUX 7.0 cc rejects these. */
12927++ccp;
12928p = (char**) ccp;
12929ccp = (char const *const *) p;
12930{ /* SCO 3.2v4 cc rejects this. */
12931 char *t;
12932 char const *s = 0 ? (char *) 0 : (char const *) 0;
12933
12934 *t++ = 0;
10f2d63a 12935}
698dcdb6
VZ
12936{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12937 int x[] = {25, 17};
12938 const int *foo = &x[0];
12939 ++foo;
703e0a69 12940}
698dcdb6
VZ
12941{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12942 typedef const int *iptr;
12943 iptr p = 0;
12944 ++p;
6232543b 12945}
698dcdb6
VZ
12946{ /* AIX XL C 1.02.0.0 rejects this saying
12947 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12948 struct s { int j; const int *ap[3]; };
12949 struct s *b; b->j = 5;
1e487827 12950}
698dcdb6
VZ
12951{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12952 const int foo = 10;
12953}
4f14bcd8
GD
12954
12955; return 0; }
698dcdb6 12956EOF
62d0491b 12957if { (eval echo configure:12958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
12958 rm -rf conftest*
12959 ac_cv_c_const=yes
698dcdb6
VZ
12960else
12961 echo "configure: failed program was:" >&5
12962 cat conftest.$ac_ext >&5
4f14bcd8
GD
12963 rm -rf conftest*
12964 ac_cv_c_const=no
703e0a69 12965fi
4f14bcd8 12966rm -f conftest*
698dcdb6
VZ
12967fi
12968
4f14bcd8
GD
12969echo "$ac_t""$ac_cv_c_const" 1>&6
12970if test $ac_cv_c_const = no; then
12971 cat >> confdefs.h <<\EOF
12972#define const
698dcdb6
VZ
12973EOF
12974
4f14bcd8 12975fi
698dcdb6 12976
4f14bcd8 12977echo $ac_n "checking for inline""... $ac_c" 1>&6
62d0491b 12978echo "configure:12979: checking for inline" >&5
4f14bcd8 12979if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
698dcdb6 12980 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12981else
4f14bcd8
GD
12982 ac_cv_c_inline=no
12983for ac_kw in inline __inline__ __inline; do
698dcdb6 12984 cat > conftest.$ac_ext <<EOF
62d0491b 12985#line 12986 "configure"
10f2d63a 12986#include "confdefs.h"
4f14bcd8
GD
12987
12988int main() {
a3df447d 12989} $ac_kw foo() {
4f14bcd8 12990; return 0; }
698dcdb6 12991EOF
62d0491b 12992if { (eval echo configure:12993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
12993 rm -rf conftest*
12994 ac_cv_c_inline=$ac_kw; break
10f2d63a 12995else
698dcdb6
VZ
12996 echo "configure: failed program was:" >&5
12997 cat conftest.$ac_ext >&5
10f2d63a 12998fi
4f14bcd8
GD
12999rm -f conftest*
13000done
698dcdb6 13001
10f2d63a 13002fi
4f14bcd8
GD
13003
13004echo "$ac_t""$ac_cv_c_inline" 1>&6
13005case "$ac_cv_c_inline" in
13006 inline | yes) ;;
13007 no) cat >> confdefs.h <<\EOF
13008#define inline
13009EOF
13010 ;;
13011 *) cat >> confdefs.h <<EOF
13012#define inline $ac_cv_c_inline
698dcdb6 13013EOF
4f14bcd8
GD
13014 ;;
13015esac
698dcdb6
VZ
13016
13017
4f14bcd8 13018echo $ac_n "checking size of char""... $ac_c" 1>&6
62d0491b 13019echo "configure:13020: checking size of char" >&5
4f14bcd8 13020if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
698dcdb6
VZ
13021 echo $ac_n "(cached) $ac_c" 1>&6
13022else
13023 if test "$cross_compiling" = yes; then
4f14bcd8 13024 ac_cv_sizeof_char=1
698dcdb6
VZ
13025else
13026 cat > conftest.$ac_ext <<EOF
62d0491b 13027#line 13028 "configure"
698dcdb6
VZ
13028#include "confdefs.h"
13029#include <stdio.h>
62d0491b 13030#include <sys/types.h>
698dcdb6
VZ
13031main()
13032{
13033 FILE *f=fopen("conftestval", "w");
13034 if (!f) exit(1);
4f14bcd8 13035 fprintf(f, "%d\n", sizeof(char));
698dcdb6
VZ
13036 exit(0);
13037}
13038EOF
62d0491b 13039if { (eval echo configure:13040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 13040then
4f14bcd8 13041 ac_cv_sizeof_char=`cat conftestval`
6232543b 13042else
698dcdb6
VZ
13043 echo "configure: failed program was:" >&5
13044 cat conftest.$ac_ext >&5
13045 rm -fr conftest*
4f14bcd8 13046 ac_cv_sizeof_char=0
6232543b 13047fi
698dcdb6
VZ
13048rm -fr conftest*
13049fi
13050
703e0a69 13051fi
4f14bcd8 13052echo "$ac_t""$ac_cv_sizeof_char" 1>&6
698dcdb6 13053cat >> confdefs.h <<EOF
4f14bcd8 13054#define SIZEOF_CHAR $ac_cv_sizeof_char
10f2d63a
VZ
13055EOF
13056
1e487827 13057
4f14bcd8 13058echo $ac_n "checking size of short""... $ac_c" 1>&6
62d0491b 13059echo "configure:13060: checking size of short" >&5
4f14bcd8 13060if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
698dcdb6
VZ
13061 echo $ac_n "(cached) $ac_c" 1>&6
13062else
4f14bcd8
GD
13063 if test "$cross_compiling" = yes; then
13064 ac_cv_sizeof_short=2
b93d0d08 13065else
698dcdb6 13066 cat > conftest.$ac_ext <<EOF
62d0491b 13067#line 13068 "configure"
b93d0d08 13068#include "confdefs.h"
4f14bcd8 13069#include <stdio.h>
62d0491b 13070#include <sys/types.h>
4f14bcd8
GD
13071main()
13072{
13073 FILE *f=fopen("conftestval", "w");
13074 if (!f) exit(1);
13075 fprintf(f, "%d\n", sizeof(short));
13076 exit(0);
13077}
698dcdb6 13078EOF
62d0491b 13079if { (eval echo configure:13080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 13080then
4f14bcd8 13081 ac_cv_sizeof_short=`cat conftestval`
b93d0d08 13082else
698dcdb6
VZ
13083 echo "configure: failed program was:" >&5
13084 cat conftest.$ac_ext >&5
13085 rm -fr conftest*
4f14bcd8 13086 ac_cv_sizeof_short=0
b93d0d08 13087fi
698dcdb6 13088rm -fr conftest*
b93d0d08
VS
13089fi
13090
b93d0d08 13091fi
4f14bcd8 13092echo "$ac_t""$ac_cv_sizeof_short" 1>&6
698dcdb6 13093cat >> confdefs.h <<EOF
4f14bcd8 13094#define SIZEOF_SHORT $ac_cv_sizeof_short
b93d0d08
VS
13095EOF
13096
698dcdb6 13097
4f14bcd8 13098echo $ac_n "checking size of int *""... $ac_c" 1>&6
62d0491b 13099echo "configure:13100: checking size of int *" >&5
4f14bcd8 13100if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
698dcdb6 13101 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13102else
4f14bcd8
GD
13103 if test "$cross_compiling" = yes; then
13104 ac_cv_sizeof_int_p=4
3a922bb4 13105else
3a922bb4 13106 cat > conftest.$ac_ext <<EOF
62d0491b 13107#line 13108 "configure"
3a922bb4 13108#include "confdefs.h"
4f14bcd8 13109#include <stdio.h>
62d0491b 13110#include <sys/types.h>
4f14bcd8
GD
13111main()
13112{
13113 FILE *f=fopen("conftestval", "w");
13114 if (!f) exit(1);
13115 fprintf(f, "%d\n", sizeof(int *));
13116 exit(0);
13117}
13118EOF
62d0491b 13119if { (eval echo configure:13120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13120then
13121 ac_cv_sizeof_int_p=`cat conftestval`
13122else
13123 echo "configure: failed program was:" >&5
13124 cat conftest.$ac_ext >&5
13125 rm -fr conftest*
13126 ac_cv_sizeof_int_p=0
3a922bb4 13127fi
4f14bcd8 13128rm -fr conftest*
3a922bb4 13129fi
698dcdb6 13130
4f14bcd8
GD
13131fi
13132echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
13133cat >> confdefs.h <<EOF
13134#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
13135EOF
13136
703e0a69 13137
4f14bcd8 13138echo $ac_n "checking size of int""... $ac_c" 1>&6
62d0491b 13139echo "configure:13140: checking size of int" >&5
4f14bcd8 13140if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
698dcdb6 13141 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8
GD
13142else
13143 if test "$cross_compiling" = yes; then
13144 ac_cv_sizeof_int=4
698dcdb6
VZ
13145else
13146 cat > conftest.$ac_ext <<EOF
62d0491b 13147#line 13148 "configure"
10f2d63a 13148#include "confdefs.h"
4f14bcd8 13149#include <stdio.h>
62d0491b 13150#include <sys/types.h>
4f14bcd8
GD
13151main()
13152{
13153 FILE *f=fopen("conftestval", "w");
13154 if (!f) exit(1);
13155 fprintf(f, "%d\n", sizeof(int));
13156 exit(0);
13157}
698dcdb6 13158EOF
62d0491b 13159if { (eval echo configure:13160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13160then
13161 ac_cv_sizeof_int=`cat conftestval`
10f2d63a 13162else
698dcdb6 13163 echo "configure: failed program was:" >&5
10f2d63a 13164 cat conftest.$ac_ext >&5
4f14bcd8
GD
13165 rm -fr conftest*
13166 ac_cv_sizeof_int=0
10f2d63a 13167fi
4f14bcd8 13168rm -fr conftest*
10f2d63a 13169fi
10f2d63a 13170
4f14bcd8
GD
13171fi
13172echo "$ac_t""$ac_cv_sizeof_int" 1>&6
13173cat >> confdefs.h <<EOF
13174#define SIZEOF_INT $ac_cv_sizeof_int
10f2d63a
VZ
13175EOF
13176
698dcdb6 13177
4f14bcd8 13178echo $ac_n "checking size of long""... $ac_c" 1>&6
62d0491b 13179echo "configure:13180: checking size of long" >&5
4f14bcd8 13180if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
698dcdb6
VZ
13181 echo $ac_n "(cached) $ac_c" 1>&6
13182else
4f14bcd8
GD
13183 if test "$cross_compiling" = yes; then
13184 ac_cv_sizeof_long=4
13185else
13186 cat > conftest.$ac_ext <<EOF
62d0491b 13187#line 13188 "configure"
10f2d63a 13188#include "confdefs.h"
4f14bcd8 13189#include <stdio.h>
62d0491b 13190#include <sys/types.h>
4f14bcd8
GD
13191main()
13192{
13193 FILE *f=fopen("conftestval", "w");
13194 if (!f) exit(1);
13195 fprintf(f, "%d\n", sizeof(long));
13196 exit(0);
13197}
698dcdb6 13198EOF
62d0491b 13199if { (eval echo configure:13200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13200then
13201 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 13202else
698dcdb6
VZ
13203 echo "configure: failed program was:" >&5
13204 cat conftest.$ac_ext >&5
4f14bcd8
GD
13205 rm -fr conftest*
13206 ac_cv_sizeof_long=0
10f2d63a 13207fi
4f14bcd8 13208rm -fr conftest*
10f2d63a 13209fi
698dcdb6 13210
4f14bcd8
GD
13211fi
13212echo "$ac_t""$ac_cv_sizeof_long" 1>&6
13213cat >> confdefs.h <<EOF
13214#define SIZEOF_LONG $ac_cv_sizeof_long
10f2d63a
VZ
13215EOF
13216
698dcdb6 13217
4f14bcd8 13218echo $ac_n "checking size of long long""... $ac_c" 1>&6
62d0491b 13219echo "configure:13220: checking size of long long" >&5
4f14bcd8 13220if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
698dcdb6 13221 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13222else
4f14bcd8
GD
13223 if test "$cross_compiling" = yes; then
13224 ac_cv_sizeof_long_long=0
13225else
13226 cat > conftest.$ac_ext <<EOF
62d0491b 13227#line 13228 "configure"
10f2d63a 13228#include "confdefs.h"
4f14bcd8 13229#include <stdio.h>
62d0491b 13230#include <sys/types.h>
4f14bcd8
GD
13231main()
13232{
13233 FILE *f=fopen("conftestval", "w");
13234 if (!f) exit(1);
13235 fprintf(f, "%d\n", sizeof(long long));
13236 exit(0);
13237}
698dcdb6 13238EOF
62d0491b 13239if { (eval echo configure:13240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13240then
13241 ac_cv_sizeof_long_long=`cat conftestval`
698dcdb6
VZ
13242else
13243 echo "configure: failed program was:" >&5
13244 cat conftest.$ac_ext >&5
4f14bcd8
GD
13245 rm -fr conftest*
13246 ac_cv_sizeof_long_long=0
13247fi
13248rm -fr conftest*
698dcdb6 13249fi
698dcdb6
VZ
13250
13251fi
4f14bcd8
GD
13252echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
13253cat >> confdefs.h <<EOF
13254#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10f2d63a
VZ
13255EOF
13256
10f2d63a 13257
4f14bcd8
GD
13258
13259echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
62d0491b 13260echo "configure:13261: checking size of wchar_t" >&5
4f14bcd8 13261if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
698dcdb6 13262 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13263else
4f14bcd8
GD
13264
13265 if test "$cross_compiling" = yes; then
13266 wx_cv_sizeof_wchar_t=4
13267
13268else
13269 cat > conftest.$ac_ext <<EOF
62d0491b 13270#line 13271 "configure"
10f2d63a 13271#include "confdefs.h"
698dcdb6 13272
4f14bcd8
GD
13273 #ifdef HAVE_WCHAR_H
13274 # include <wchar.h>
13275 #endif
13276 #ifdef HAVE_STDLIB_H
13277 # include <stdlib.h>
13278 #endif
13279 #include <stdio.h>
13280 int main()
13281 {
13282 FILE *f=fopen("conftestval", "w");
13283 if (!f) exit(1);
13284 fprintf(f, "%i", sizeof(wchar_t));
13285 exit(0);
13286 }
13287
698dcdb6 13288EOF
62d0491b 13289if { (eval echo configure:13290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13290then
13291 wx_cv_sizeof_wchar_t=`cat conftestval`
698dcdb6
VZ
13292else
13293 echo "configure: failed program was:" >&5
13294 cat conftest.$ac_ext >&5
4f14bcd8
GD
13295 rm -fr conftest*
13296 wx_cv_sizeof_wchar_t=0
698dcdb6 13297fi
4f14bcd8
GD
13298rm -fr conftest*
13299fi
13300
698dcdb6
VZ
13301
13302fi
4f14bcd8
GD
13303
13304echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
13305
13306cat >> confdefs.h <<EOF
13307#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10f2d63a
VZ
13308EOF
13309
18dbb1f6 13310
4f14bcd8 13311echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
62d0491b 13312echo "configure:13313: checking whether byte ordering is bigendian" >&5
4f14bcd8 13313if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
18dbb1f6
VZ
13314 echo $ac_n "(cached) $ac_c" 1>&6
13315else
4f14bcd8
GD
13316 ac_cv_c_bigendian=unknown
13317# See if sys/param.h defines the BYTE_ORDER macro.
18dbb1f6 13318cat > conftest.$ac_ext <<EOF
62d0491b 13319#line 13320 "configure"
18dbb1f6 13320#include "confdefs.h"
4f14bcd8
GD
13321#include <sys/types.h>
13322#include <sys/param.h>
13323int main() {
18dbb1f6 13324
4f14bcd8
GD
13325#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13326 bogus endian macros
13327#endif
13328; return 0; }
13329EOF
62d0491b 13330if { (eval echo configure:13331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
13331 rm -rf conftest*
13332 # It does; now see whether it defined to BIG_ENDIAN or not.
13333cat > conftest.$ac_ext <<EOF
62d0491b 13334#line 13335 "configure"
4f14bcd8
GD
13335#include "confdefs.h"
13336#include <sys/types.h>
13337#include <sys/param.h>
18dbb1f6 13338int main() {
4f14bcd8
GD
13339
13340#if BYTE_ORDER != BIG_ENDIAN
13341 not big endian
13342#endif
18dbb1f6
VZ
13343; return 0; }
13344EOF
62d0491b 13345if { (eval echo configure:13346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18dbb1f6 13346 rm -rf conftest*
4f14bcd8 13347 ac_cv_c_bigendian=yes
18dbb1f6
VZ
13348else
13349 echo "configure: failed program was:" >&5
13350 cat conftest.$ac_ext >&5
13351 rm -rf conftest*
4f14bcd8 13352 ac_cv_c_bigendian=no
18dbb1f6
VZ
13353fi
13354rm -f conftest*
698dcdb6 13355else
4f14bcd8
GD
13356 echo "configure: failed program was:" >&5
13357 cat conftest.$ac_ext >&5
1e487827 13358fi
4f14bcd8
GD
13359rm -f conftest*
13360if test $ac_cv_c_bigendian = unknown; then
13361if test "$cross_compiling" = yes; then
13362 ac_cv_c_bigendian=unknown
b3e8d00a
VZ
13363else
13364 cat > conftest.$ac_ext <<EOF
62d0491b 13365#line 13366 "configure"
b3e8d00a 13366#include "confdefs.h"
4f14bcd8
GD
13367main () {
13368 /* Are we little or big endian? From Harbison&Steele. */
13369 union
13370 {
13371 long l;
13372 char c[sizeof (long)];
13373 } u;
13374 u.l = 1;
13375 exit (u.c[sizeof (long) - 1] == 1);
13376}
b3e8d00a 13377EOF
62d0491b 13378if { (eval echo configure:13379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13379then
13380 ac_cv_c_bigendian=no
b3e8d00a
VZ
13381else
13382 echo "configure: failed program was:" >&5
13383 cat conftest.$ac_ext >&5
4f14bcd8
GD
13384 rm -fr conftest*
13385 ac_cv_c_bigendian=yes
b3e8d00a 13386fi
4f14bcd8 13387rm -fr conftest*
b3e8d00a
VZ
13388fi
13389
4f14bcd8
GD
13390fi
13391fi
13392
13393echo "$ac_t""$ac_cv_c_bigendian" 1>&6
13394if test $ac_cv_c_bigendian = unknown; then
13395 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
13396fi
13397if test $ac_cv_c_bigendian = yes; then
13398 cat >> confdefs.h <<\EOF
13399#define WORDS_BIGENDIAN 1
b3e8d00a 13400EOF
4f14bcd8 13401
b3e8d00a 13402fi
b3e8d00a
VZ
13403
13404
4f14bcd8 13405echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
62d0491b 13406echo "configure:13407: checking how to run the C++ preprocessor" >&5
4f14bcd8
GD
13407if test -z "$CXXCPP"; then
13408if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
698dcdb6
VZ
13409 echo $ac_n "(cached) $ac_c" 1>&6
13410else
4f14bcd8
GD
13411 ac_ext=C
13412# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13413ac_cpp='$CXXCPP $CPPFLAGS'
13414ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13415ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13416cross_compiling=$ac_cv_prog_cxx_cross
13417 CXXCPP="${CXX-g++} -E"
698dcdb6 13418 cat > conftest.$ac_ext <<EOF
62d0491b 13419#line 13420 "configure"
10f2d63a 13420#include "confdefs.h"
4f14bcd8 13421#include <stdlib.h>
698dcdb6 13422EOF
4f14bcd8 13423ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
62d0491b 13424{ (eval echo configure:13425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
13425ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13426if test -z "$ac_err"; then
13427 :
698dcdb6 13428else
4f14bcd8 13429 echo "$ac_err" >&5
698dcdb6
VZ
13430 echo "configure: failed program was:" >&5
13431 cat conftest.$ac_ext >&5
13432 rm -rf conftest*
4f14bcd8 13433 CXXCPP=/lib/cpp
698dcdb6
VZ
13434fi
13435rm -f conftest*
4f14bcd8
GD
13436 ac_cv_prog_CXXCPP="$CXXCPP"
13437ac_ext=C
13438# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13439ac_cpp='$CXXCPP $CPPFLAGS'
13440ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13441ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13442cross_compiling=$ac_cv_prog_cxx_cross
13443fi
698dcdb6 13444fi
4f14bcd8
GD
13445CXXCPP="$ac_cv_prog_CXXCPP"
13446echo "$ac_t""$CXXCPP" 1>&6
698dcdb6 13447
4f14bcd8
GD
13448
13449 if test "$cross_compiling" = "yes"; then
13450 cat >> confdefs.h <<\EOF
13451#define wxUSE_IOSTREAMH 1
698dcdb6
VZ
13452EOF
13453
4f14bcd8
GD
13454 else
13455
13456 ac_ext=C
13457# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13458ac_cpp='$CXXCPP $CPPFLAGS'
13459ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13460ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13461cross_compiling=$ac_cv_prog_cxx_cross
698dcdb6 13462
4f14bcd8
GD
13463
13464 for ac_hdr in iostream
13465do
13466ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13467echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
62d0491b 13468echo "configure:13469: checking for $ac_hdr" >&5
4f14bcd8 13469if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6
VZ
13470 echo $ac_n "(cached) $ac_c" 1>&6
13471else
13472 cat > conftest.$ac_ext <<EOF
62d0491b 13473#line 13474 "configure"
10f2d63a 13474#include "confdefs.h"
4f14bcd8 13475#include <$ac_hdr>
698dcdb6 13476EOF
4f14bcd8 13477ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
62d0491b 13478{ (eval echo configure:13479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
13479ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13480if test -z "$ac_err"; then
698dcdb6 13481 rm -rf conftest*
4f14bcd8 13482 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 13483else
4f14bcd8 13484 echo "$ac_err" >&5
698dcdb6
VZ
13485 echo "configure: failed program was:" >&5
13486 cat conftest.$ac_ext >&5
13487 rm -rf conftest*
4f14bcd8 13488 eval "ac_cv_header_$ac_safe=no"
698dcdb6
VZ
13489fi
13490rm -f conftest*
13491fi
4f14bcd8 13492if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
698dcdb6 13493 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
13494 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13495 cat >> confdefs.h <<EOF
13496#define $ac_tr_hdr 1
10f2d63a 13497EOF
4f14bcd8 13498
698dcdb6
VZ
13499else
13500 echo "$ac_t""no" 1>&6
10f2d63a 13501fi
4f14bcd8 13502done
10f2d63a 13503
10f2d63a 13504
4f14bcd8
GD
13505 if test "$ac_cv_header_iostream" = "yes" ; then
13506 :
13507 else
13508 cat >> confdefs.h <<\EOF
13509#define wxUSE_IOSTREAMH 1
13510EOF
13511
13512 fi
1e487827 13513
4f14bcd8
GD
13514 ac_ext=c
13515# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13516ac_cpp='$CPP $CPPFLAGS'
13517ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13518ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13519cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 13520
4f14bcd8 13521 fi
698dcdb6
VZ
13522
13523
13524
4f14bcd8 13525 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
62d0491b 13526echo "configure:13527: checking if C++ compiler supports bool" >&5
4f14bcd8 13527if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
698dcdb6
VZ
13528 echo $ac_n "(cached) $ac_c" 1>&6
13529else
13530
4f14bcd8
GD
13531
13532 ac_ext=C
13533# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13534ac_cpp='$CXXCPP $CPPFLAGS'
13535ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13536ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13537cross_compiling=$ac_cv_prog_cxx_cross
f6bcfd97 13538
10f2d63a 13539
4f14bcd8 13540 cat > conftest.$ac_ext <<EOF
62d0491b 13541#line 13542 "configure"
4f14bcd8 13542#include "confdefs.h"
10f2d63a 13543
4f14bcd8
GD
13544
13545int main() {
f6bcfd97 13546
4f14bcd8 13547 bool b = true;
f6bcfd97 13548
4f14bcd8
GD
13549 return 0;
13550
698dcdb6
VZ
13551; return 0; }
13552EOF
62d0491b 13553if { (eval echo configure:13554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13554 rm -rf conftest*
13555
4f14bcd8
GD
13556 wx_cv_cpp_bool=yes
13557
10f2d63a 13558else
698dcdb6
VZ
13559 echo "configure: failed program was:" >&5
13560 cat conftest.$ac_ext >&5
13561 rm -rf conftest*
13562
4f14bcd8
GD
13563 wx_cv_cpp_bool=no
13564
13565
13566fi
13567rm -f conftest*
c521c494 13568
4f14bcd8
GD
13569 ac_ext=c
13570# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13571ac_cpp='$CPP $CPPFLAGS'
13572ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13573ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13574cross_compiling=$ac_cv_prog_cc_cross
c521c494 13575
4f14bcd8
GD
13576
13577fi
c521c494 13578
4f14bcd8 13579echo "$ac_t""$wx_cv_cpp_bool" 1>&6
c521c494 13580
4f14bcd8
GD
13581 if test "$wx_cv_cpp_bool" = "yes"; then
13582 cat >> confdefs.h <<\EOF
13583#define HAVE_BOOL 1
13584EOF
c521c494 13585
4f14bcd8
GD
13586 fi
13587
13588
13589
13590echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
62d0491b 13591echo "configure:13592: checking for wcslen in -lc" >&5
4f14bcd8
GD
13592ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
13593if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13594 echo $ac_n "(cached) $ac_c" 1>&6
13595else
13596 ac_save_LIBS="$LIBS"
13597LIBS="-lc $LIBS"
13598cat > conftest.$ac_ext <<EOF
62d0491b 13599#line 13600 "configure"
4f14bcd8
GD
13600#include "confdefs.h"
13601/* Override any gcc2 internal prototype to avoid an error. */
13602/* We use char because int might match the return type of a gcc2
13603 builtin and then its argument prototype would still apply. */
13604char wcslen();
13605
13606int main() {
13607wcslen()
698dcdb6
VZ
13608; return 0; }
13609EOF
62d0491b 13610if { (eval echo configure:13611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 13611 rm -rf conftest*
4f14bcd8 13612 eval "ac_cv_lib_$ac_lib_var=yes"
c521c494 13613else
698dcdb6
VZ
13614 echo "configure: failed program was:" >&5
13615 cat conftest.$ac_ext >&5
13616 rm -rf conftest*
4f14bcd8 13617 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 13618fi
698dcdb6 13619rm -f conftest*
4f14bcd8 13620LIBS="$ac_save_LIBS"
703e0a69 13621
1e487827 13622fi
4f14bcd8
GD
13623if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13624 echo "$ac_t""yes" 1>&6
13625
13626 cat >> confdefs.h <<\EOF
13627#define HAVE_WCSLEN 1
9d8deca0
VZ
13628EOF
13629
3d63bc3a 13630 WCHAR_LINK=
4f14bcd8 13631
9d8deca0 13632else
4f14bcd8 13633 echo "$ac_t""no" 1>&6
9d8deca0 13634
4f14bcd8 13635 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
62d0491b 13636echo "configure:13637: checking for wcslen in -lw" >&5
4f14bcd8
GD
13637ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
13638if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6 13639 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13640else
4f14bcd8
GD
13641 ac_save_LIBS="$LIBS"
13642LIBS="-lw $LIBS"
13643cat > conftest.$ac_ext <<EOF
62d0491b 13644#line 13645 "configure"
10f2d63a 13645#include "confdefs.h"
4f14bcd8
GD
13646/* Override any gcc2 internal prototype to avoid an error. */
13647/* We use char because int might match the return type of a gcc2
13648 builtin and then its argument prototype would still apply. */
13649char wcslen();
10f2d63a 13650
698dcdb6 13651int main() {
4f14bcd8 13652wcslen()
698dcdb6
VZ
13653; return 0; }
13654EOF
62d0491b 13655if { (eval echo configure:13656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 13656 rm -rf conftest*
4f14bcd8 13657 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 13658else
698dcdb6
VZ
13659 echo "configure: failed program was:" >&5
13660 cat conftest.$ac_ext >&5
13661 rm -rf conftest*
4f14bcd8 13662 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 13663fi
698dcdb6 13664rm -f conftest*
4f14bcd8 13665LIBS="$ac_save_LIBS"
703e0a69 13666
1e487827 13667fi
4f14bcd8
GD
13668if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13669 echo "$ac_t""yes" 1>&6
13670
13671 cat >> confdefs.h <<\EOF
13672#define HAVE_WCSLEN 1
9d8deca0
VZ
13673EOF
13674
3d63bc3a 13675 WCHAR_LINK=" -lw"
4f14bcd8
GD
13676
13677else
13678 echo "$ac_t""no" 1>&6
698dcdb6 13679
4f14bcd8 13680 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
62d0491b 13681echo "configure:13682: checking for wcslen in -lmsvcrt" >&5
4f14bcd8
GD
13682ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
13683if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
13684 echo $ac_n "(cached) $ac_c" 1>&6
13685else
4f14bcd8
GD
13686 ac_save_LIBS="$LIBS"
13687LIBS="-lmsvcrt $LIBS"
13688cat > conftest.$ac_ext <<EOF
62d0491b 13689#line 13690 "configure"
95c8801c 13690#include "confdefs.h"
4f14bcd8
GD
13691/* Override any gcc2 internal prototype to avoid an error. */
13692/* We use char because int might match the return type of a gcc2
13693 builtin and then its argument prototype would still apply. */
13694char wcslen();
95c8801c 13695
4f14bcd8
GD
13696int main() {
13697wcslen()
698dcdb6
VZ
13698; return 0; }
13699EOF
62d0491b 13700if { (eval echo configure:13701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 13701 rm -rf conftest*
4f14bcd8 13702 eval "ac_cv_lib_$ac_lib_var=yes"
95c8801c 13703else
698dcdb6
VZ
13704 echo "configure: failed program was:" >&5
13705 cat conftest.$ac_ext >&5
13706 rm -rf conftest*
4f14bcd8 13707 eval "ac_cv_lib_$ac_lib_var=no"
95c8801c 13708fi
698dcdb6 13709rm -f conftest*
4f14bcd8 13710LIBS="$ac_save_LIBS"
95c8801c
VS
13711
13712fi
4f14bcd8
GD
13713if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13714 echo "$ac_t""yes" 1>&6
13715
13716 cat >> confdefs.h <<\EOF
13717#define HAVE_WCSLEN 1
13718EOF
698dcdb6 13719
3d63bc3a 13720 WCHAR_LINK=
4f14bcd8
GD
13721
13722else
13723 echo "$ac_t""no" 1>&6
13724fi
10f2d63a 13725
4f14bcd8
GD
13726
13727fi
95c8801c 13728
4f14bcd8 13729
95c8801c 13730fi
10f2d63a 13731
1e487827 13732
4f14bcd8 13733for ac_func in wcsrtombs
eb4efbdc 13734do
698dcdb6 13735echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
62d0491b 13736echo "configure:13737: checking for $ac_func" >&5
698dcdb6
VZ
13737if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13738 echo $ac_n "(cached) $ac_c" 1>&6
13739else
13740 cat > conftest.$ac_ext <<EOF
62d0491b 13741#line 13742 "configure"
eb4efbdc
VZ
13742#include "confdefs.h"
13743/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13744 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
13745#include <assert.h>
13746/* Override any gcc2 internal prototype to avoid an error. */
13747/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13748 builtin and then its argument prototype would still apply. */
13749char $ac_func();
13750
13751int main() {
eb4efbdc
VZ
13752
13753/* The GNU C library defines this for functions which it implements
13754 to always fail with ENOSYS. Some functions are actually named
13755 something starting with __ and the normal name is an alias. */
13756#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13757choke me
13758#else
698dcdb6 13759$ac_func();
eb4efbdc
VZ
13760#endif
13761
698dcdb6 13762; return 0; }
eb4efbdc 13763EOF
62d0491b 13764if { (eval echo configure:13765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13765 rm -rf conftest*
13766 eval "ac_cv_func_$ac_func=yes"
13767else
13768 echo "configure: failed program was:" >&5
13769 cat conftest.$ac_ext >&5
13770 rm -rf conftest*
13771 eval "ac_cv_func_$ac_func=no"
13772fi
13773rm -f conftest*
13774fi
eb4efbdc 13775
698dcdb6
VZ
13776if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13777 echo "$ac_t""yes" 1>&6
13778 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13779 cat >> confdefs.h <<EOF
13780#define $ac_tr_func 1
13781EOF
13782
13783else
13784 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
13785fi
13786done
13787
698dcdb6 13788
4f14bcd8 13789echo $ac_n "checking for vprintf""... $ac_c" 1>&6
62d0491b 13790echo "configure:13791: checking for vprintf" >&5
4f14bcd8 13791if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
698dcdb6
VZ
13792 echo $ac_n "(cached) $ac_c" 1>&6
13793else
4f14bcd8 13794 cat > conftest.$ac_ext <<EOF
62d0491b 13795#line 13796 "configure"
f6bcfd97 13796#include "confdefs.h"
4f14bcd8
GD
13797/* System header to define __stub macros and hopefully few prototypes,
13798 which can conflict with char vprintf(); below. */
13799#include <assert.h>
13800/* Override any gcc2 internal prototype to avoid an error. */
13801/* We use char because int might match the return type of a gcc2
13802 builtin and then its argument prototype would still apply. */
13803char vprintf();
13804
698dcdb6 13805int main() {
f6bcfd97 13806
4f14bcd8
GD
13807/* The GNU C library defines this for functions which it implements
13808 to always fail with ENOSYS. Some functions are actually named
13809 something starting with __ and the normal name is an alias. */
13810#if defined (__stub_vprintf) || defined (__stub___vprintf)
13811choke me
13812#else
13813vprintf();
13814#endif
f6bcfd97 13815
698dcdb6
VZ
13816; return 0; }
13817EOF
62d0491b 13818if { (eval echo configure:13819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 13819 rm -rf conftest*
4f14bcd8 13820 eval "ac_cv_func_vprintf=yes"
f6bcfd97 13821else
698dcdb6
VZ
13822 echo "configure: failed program was:" >&5
13823 cat conftest.$ac_ext >&5
13824 rm -rf conftest*
4f14bcd8 13825 eval "ac_cv_func_vprintf=no"
6232543b 13826fi
698dcdb6 13827rm -f conftest*
1e487827 13828fi
698dcdb6 13829
4f14bcd8
GD
13830if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
13831 echo "$ac_t""yes" 1>&6
13832 cat >> confdefs.h <<\EOF
13833#define HAVE_VPRINTF 1
f6bcfd97
BP
13834EOF
13835
4f14bcd8
GD
13836else
13837 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
13838fi
13839
4f14bcd8
GD
13840if test "$ac_cv_func_vprintf" != yes; then
13841echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
62d0491b 13842echo "configure:13843: checking for _doprnt" >&5
4f14bcd8 13843if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
698dcdb6
VZ
13844 echo $ac_n "(cached) $ac_c" 1>&6
13845else
13846 cat > conftest.$ac_ext <<EOF
62d0491b 13847#line 13848 "configure"
10f2d63a
VZ
13848#include "confdefs.h"
13849/* System header to define __stub macros and hopefully few prototypes,
4f14bcd8 13850 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
13851#include <assert.h>
13852/* Override any gcc2 internal prototype to avoid an error. */
13853/* We use char because int might match the return type of a gcc2
698dcdb6 13854 builtin and then its argument prototype would still apply. */
4f14bcd8 13855char _doprnt();
698dcdb6
VZ
13856
13857int main() {
10f2d63a
VZ
13858
13859/* The GNU C library defines this for functions which it implements
13860 to always fail with ENOSYS. Some functions are actually named
13861 something starting with __ and the normal name is an alias. */
4f14bcd8 13862#if defined (__stub__doprnt) || defined (__stub____doprnt)
10f2d63a
VZ
13863choke me
13864#else
4f14bcd8 13865_doprnt();
10f2d63a
VZ
13866#endif
13867
698dcdb6 13868; return 0; }
10f2d63a 13869EOF
62d0491b 13870if { (eval echo configure:13871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 13871 rm -rf conftest*
4f14bcd8 13872 eval "ac_cv_func__doprnt=yes"
698dcdb6
VZ
13873else
13874 echo "configure: failed program was:" >&5
13875 cat conftest.$ac_ext >&5
13876 rm -rf conftest*
4f14bcd8 13877 eval "ac_cv_func__doprnt=no"
698dcdb6
VZ
13878fi
13879rm -f conftest*
13880fi
270a909e 13881
4f14bcd8 13882if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
698dcdb6 13883 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
13884 cat >> confdefs.h <<\EOF
13885#define HAVE_DOPRNT 1
698dcdb6 13886EOF
4f14bcd8 13887
698dcdb6
VZ
13888else
13889 echo "$ac_t""no" 1>&6
270a909e 13890fi
270a909e 13891
4f14bcd8 13892fi
1e487827 13893
52e8b690 13894
52e8b690 13895
52e8b690 13896
52e8b690 13897
52e8b690 13898
4f14bcd8 13899echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
62d0491b 13900echo "configure:13901: checking for vsnprintf" >&5
4f14bcd8 13901if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
698dcdb6 13902 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 13903else
4f14bcd8 13904
af15babd 13905 cat > conftest.$ac_ext <<EOF
62d0491b 13906#line 13907 "configure"
c63c7106 13907#include "confdefs.h"
698dcdb6 13908
4f14bcd8
GD
13909 #include <stdio.h>
13910 #include <stdarg.h>
13911
af15babd
VZ
13912int main() {
13913
4f14bcd8
GD
13914 int wx_test_vsnprintf(const char *, ...);
13915
13916 wx_test_vsnprintf("%s");
13917 return 0;
13918 }
13919
13920 int wx_test_vsnprintf(const char *fmt, ...)
13921 {
13922 char *s;
13923
13924 va_list argp;
13925 va_start(argp, fmt);
13926 vsnprintf(s, 42, fmt, argp);
13927 va_end(argp);
13928
af15babd
VZ
13929; return 0; }
13930EOF
62d0491b 13931if { (eval echo configure:13932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd
VZ
13932 rm -rf conftest*
13933
4f14bcd8
GD
13934 wx_cv_func_vsnprintf=yes
13935
af15babd
VZ
13936else
13937 echo "configure: failed program was:" >&5
13938 cat conftest.$ac_ext >&5
13939 rm -rf conftest*
13940
4f14bcd8 13941 cat > conftest.$ac_ext <<EOF
62d0491b 13942#line 13943 "configure"
af15babd 13943#include "confdefs.h"
af15babd 13944
4f14bcd8
GD
13945 #include <stdio.h>
13946 #include <stdarg.h>
13947
af15babd
VZ
13948int main() {
13949
4f14bcd8
GD
13950 int wx_test_vsnprintf(const char *, ...);
13951
13952 wx_test_vsnprintf("%s");
13953 return 0;
13954 }
13955
13956 int wx_test_vsnprintf(const char *fmt, ...)
13957 {
13958 char *s;
af15babd 13959
4f14bcd8
GD
13960 va_list argp;
13961 va_start(argp, fmt);
13962 _vsnprintf(s, 42, fmt, argp);
13963 va_end(argp);
13964
af15babd
VZ
13965; return 0; }
13966EOF
62d0491b 13967if { (eval echo configure:13968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 13968 rm -rf conftest*
4f14bcd8
GD
13969
13970 wx_cv_func_vsnprintf=yes
13971
af15babd
VZ
13972else
13973 echo "configure: failed program was:" >&5
13974 cat conftest.$ac_ext >&5
13975 rm -rf conftest*
4f14bcd8
GD
13976
13977 wx_cv_func_vsnprintf=no
13978
af15babd
VZ
13979fi
13980rm -f conftest*
4f14bcd8 13981
af15babd 13982fi
4f14bcd8 13983rm -f conftest*
af15babd 13984
af15babd 13985fi
af15babd 13986
4f14bcd8 13987echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
af15babd 13988
4f14bcd8
GD
13989if test "$wx_cv_func_vsnprintf" = yes; then
13990 cat >> confdefs.h <<\EOF
13991#define HAVE_VSNPRINTF 1
13992EOF
13993
13994else
13995 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
af15babd
VZ
13996fi
13997
4f14bcd8 13998echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
62d0491b 13999echo "configure:14000: checking for vsscanf" >&5
4f14bcd8 14000if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
af15babd
VZ
14001 echo $ac_n "(cached) $ac_c" 1>&6
14002else
4f14bcd8 14003
af15babd 14004 cat > conftest.$ac_ext <<EOF
62d0491b 14005#line 14006 "configure"
af15babd 14006#include "confdefs.h"
af15babd 14007
4f14bcd8
GD
14008 #include <stdio.h>
14009 #include <stdarg.h>
14010
af15babd
VZ
14011int main() {
14012
4f14bcd8
GD
14013 int wx_test_vsscanf(const char *, ...);
14014
14015 wx_test_vsscanf("%d");
14016 return 0;
14017 }
af15babd 14018
4f14bcd8
GD
14019 int wx_test_vsscanf(const char *fmt, ...)
14020 {
14021 va_list argp;
14022 va_start(argp, fmt);
14023 vsscanf("42", fmt, argp);
14024 va_end(argp);
14025
af15babd
VZ
14026; return 0; }
14027EOF
62d0491b 14028if { (eval echo configure:14029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 14029 rm -rf conftest*
4f14bcd8
GD
14030
14031 wx_cv_func_vsscanf=yes
14032
af15babd
VZ
14033else
14034 echo "configure: failed program was:" >&5
14035 cat conftest.$ac_ext >&5
14036 rm -rf conftest*
4f14bcd8
GD
14037
14038 wx_cv_func_vsscanf=no
14039
af15babd
VZ
14040fi
14041rm -f conftest*
4f14bcd8 14042
af15babd
VZ
14043fi
14044
4f14bcd8
GD
14045echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
14046
14047if test "$wx_cv_func_vsscanf" = yes; then
14048 cat >> confdefs.h <<\EOF
14049#define HAVE_VSSCANF 1
af15babd 14050EOF
4f14bcd8 14051
af15babd 14052fi
af15babd 14053
4f14bcd8 14054if test "$TOOLKIT" != "MSW"; then
af15babd 14055
4f14bcd8
GD
14056
14057
14058ac_ext=C
14059# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14060ac_cpp='$CXXCPP $CPPFLAGS'
14061ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14062ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14063cross_compiling=$ac_cv_prog_cxx_cross
14064
14065echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
62d0491b 14066echo "configure:14067: checking if iconv() takes char**" >&5
4f14bcd8 14067if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
af15babd
VZ
14068 echo $ac_n "(cached) $ac_c" 1>&6
14069else
4f14bcd8
GD
14070
14071 cat > conftest.$ac_ext <<EOF
62d0491b 14072#line 14073 "configure"
af15babd 14073#include "confdefs.h"
4f14bcd8 14074#include <iconv.h>
af15babd
VZ
14075int main() {
14076
4f14bcd8
GD
14077 char **inbuf, **outbuf;
14078 iconv_t cd;
14079 size_t insz, outsz;
14080 iconv(cd, inbuf, &insz, outbuf, &outsz);
14081
af15babd
VZ
14082; return 0; }
14083EOF
62d0491b 14084if { (eval echo configure:14085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 14085 rm -rf conftest*
4f14bcd8 14086 wx_cv_iconv_takes_char=yes
af15babd
VZ
14087else
14088 echo "configure: failed program was:" >&5
14089 cat conftest.$ac_ext >&5
14090 rm -rf conftest*
4f14bcd8 14091 wx_cv_iconv_takes_char=no
af15babd
VZ
14092fi
14093rm -f conftest*
af15babd 14094
af15babd 14095fi
af15babd 14096
4f14bcd8
GD
14097echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
14098ac_ext=c
14099# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14100ac_cpp='$CPP $CPPFLAGS'
14101ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14102ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14103cross_compiling=$ac_cv_prog_cc_cross
af15babd 14104
4f14bcd8
GD
14105if test "$wx_cv_iconv_takes_char" = yes ; then
14106 cat >> confdefs.h <<\EOF
14107#define WX_ICONV_TAKES_CHAR 1
af15babd
VZ
14108EOF
14109
af15babd
VZ
14110fi
14111
af15babd 14112
4f14bcd8
GD
14113if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
14114 for ac_func in sigaction
af15babd
VZ
14115do
14116echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
62d0491b 14117echo "configure:14118: checking for $ac_func" >&5
af15babd
VZ
14118if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14119 echo $ac_n "(cached) $ac_c" 1>&6
14120else
14121 cat > conftest.$ac_ext <<EOF
62d0491b 14122#line 14123 "configure"
af15babd
VZ
14123#include "confdefs.h"
14124/* System header to define __stub macros and hopefully few prototypes,
14125 which can conflict with char $ac_func(); below. */
14126#include <assert.h>
14127/* Override any gcc2 internal prototype to avoid an error. */
14128/* We use char because int might match the return type of a gcc2
14129 builtin and then its argument prototype would still apply. */
14130char $ac_func();
14131
14132int main() {
14133
14134/* The GNU C library defines this for functions which it implements
14135 to always fail with ENOSYS. Some functions are actually named
14136 something starting with __ and the normal name is an alias. */
14137#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14138choke me
14139#else
14140$ac_func();
14141#endif
14142
14143; return 0; }
14144EOF
62d0491b 14145if { (eval echo configure:14146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
14146 rm -rf conftest*
14147 eval "ac_cv_func_$ac_func=yes"
14148else
14149 echo "configure: failed program was:" >&5
14150 cat conftest.$ac_ext >&5
14151 rm -rf conftest*
14152 eval "ac_cv_func_$ac_func=no"
14153fi
14154rm -f conftest*
14155fi
14156
14157if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14158 echo "$ac_t""yes" 1>&6
14159 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14160 cat >> confdefs.h <<EOF
14161#define $ac_tr_func 1
14162EOF
4f14bcd8 14163
af15babd
VZ
14164else
14165 echo "$ac_t""no" 1>&6
4f14bcd8
GD
14166fi
14167done
14168
14169
14170 if test "$ac_cv_func_sigaction" = "no"; then
14171 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
14172 wxUSE_ON_FATAL_EXCEPTION=no
14173 fi
14174
14175 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
14176
14177 ac_ext=C
14178# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14179ac_cpp='$CXXCPP $CPPFLAGS'
14180ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14181ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14182cross_compiling=$ac_cv_prog_cxx_cross
14183
14184
14185 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
62d0491b 14186echo "configure:14187: checking for sa_handler type" >&5
4f14bcd8 14187if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
af15babd
VZ
14188 echo $ac_n "(cached) $ac_c" 1>&6
14189else
4f14bcd8
GD
14190
14191 cat > conftest.$ac_ext <<EOF
62d0491b 14192#line 14193 "configure"
af15babd 14193#include "confdefs.h"
4f14bcd8 14194#include <signal.h>
af15babd 14195int main() {
4f14bcd8
GD
14196
14197 extern void testSigHandler(int);
14198
14199 struct sigaction sa;
14200 sa.sa_handler = testSigHandler;
14201
af15babd
VZ
14202; return 0; }
14203EOF
62d0491b 14204if { (eval echo configure:14205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 14205 rm -rf conftest*
4f14bcd8
GD
14206
14207 wx_cv_type_sa_handler=int
14208
af15babd
VZ
14209else
14210 echo "configure: failed program was:" >&5
14211 cat conftest.$ac_ext >&5
14212 rm -rf conftest*
4f14bcd8
GD
14213
14214 wx_cv_type_sa_handler=void
14215
af15babd
VZ
14216fi
14217rm -f conftest*
4f14bcd8
GD
14218
14219fi
14220
14221echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
14222
14223 ac_ext=c
14224# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14225ac_cpp='$CPP $CPPFLAGS'
14226ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14227ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14228cross_compiling=$ac_cv_prog_cc_cross
af15babd 14229
4f14bcd8
GD
14230
14231 cat >> confdefs.h <<EOF
14232#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
af15babd
VZ
14233EOF
14234
4f14bcd8
GD
14235 fi
14236fi
af15babd 14237
4f14bcd8 14238for ac_func in vfork
af15babd
VZ
14239do
14240echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
62d0491b 14241echo "configure:14242: checking for $ac_func" >&5
af15babd
VZ
14242if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14243 echo $ac_n "(cached) $ac_c" 1>&6
14244else
14245 cat > conftest.$ac_ext <<EOF
62d0491b 14246#line 14247 "configure"
af15babd
VZ
14247#include "confdefs.h"
14248/* System header to define __stub macros and hopefully few prototypes,
14249 which can conflict with char $ac_func(); below. */
14250#include <assert.h>
14251/* Override any gcc2 internal prototype to avoid an error. */
14252/* We use char because int might match the return type of a gcc2
14253 builtin and then its argument prototype would still apply. */
14254char $ac_func();
14255
14256int main() {
14257
14258/* The GNU C library defines this for functions which it implements
14259 to always fail with ENOSYS. Some functions are actually named
14260 something starting with __ and the normal name is an alias. */
14261#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14262choke me
14263#else
14264$ac_func();
14265#endif
14266
14267; return 0; }
14268EOF
62d0491b 14269if { (eval echo configure:14270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
14270 rm -rf conftest*
14271 eval "ac_cv_func_$ac_func=yes"
14272else
14273 echo "configure: failed program was:" >&5
14274 cat conftest.$ac_ext >&5
14275 rm -rf conftest*
14276 eval "ac_cv_func_$ac_func=no"
14277fi
14278rm -f conftest*
14279fi
14280
14281if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14282 echo "$ac_t""yes" 1>&6
14283 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14284 cat >> confdefs.h <<EOF
14285#define $ac_tr_func 1
14286EOF
4f14bcd8 14287
af15babd
VZ
14288else
14289 echo "$ac_t""no" 1>&6
af15babd
VZ
14290fi
14291done
14292
af15babd 14293
4f14bcd8 14294echo $ac_n "checking for statfs""... $ac_c" 1>&6
62d0491b 14295echo "configure:14296: checking for statfs" >&5
4f14bcd8
GD
14296if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
14297 echo $ac_n "(cached) $ac_c" 1>&6
14298else
14299 cat > conftest.$ac_ext <<EOF
62d0491b 14300#line 14301 "configure"
4f14bcd8
GD
14301#include "confdefs.h"
14302
14303 #if defined(__BSD__)
14304 #include <sys/param.h>
14305 #include <sys/mount.h>
14306 #else
14307 #include <sys/vfs.h>
14308 #endif
14309
14310int main() {
14311
14312 long l;
14313 struct statfs fs;
14314 statfs("/", &fs);
14315 l = fs.f_bsize;
14316 l += fs.f_blocks;
14317 l += fs.f_bavail;
14318
14319; return 0; }
14320EOF
62d0491b 14321if { (eval echo configure:14322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
14322 rm -rf conftest*
14323
14324 wx_cv_func_statfs=yes
14325
14326else
14327 echo "configure: failed program was:" >&5
14328 cat conftest.$ac_ext >&5
14329 rm -rf conftest*
14330
14331 wx_cv_func_statfs=no
af15babd
VZ
14332
14333
14334fi
4f14bcd8 14335rm -f conftest*
af15babd
VZ
14336
14337fi
14338
4f14bcd8
GD
14339echo "$ac_t""$wx_cv_func_statfs" 1>&6
14340
14341if test "$wx_cv_func_statfs" = "yes"; then
14342 cat >> confdefs.h <<\EOF
14343#define HAVE_STATFS 1
14344EOF
14345
14346else
14347 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
62d0491b 14348echo "configure:14349: checking for statvfs" >&5
4f14bcd8 14349if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
af15babd
VZ
14350 echo $ac_n "(cached) $ac_c" 1>&6
14351else
14352 cat > conftest.$ac_ext <<EOF
62d0491b 14353#line 14354 "configure"
af15babd 14354#include "confdefs.h"
af15babd 14355
4f14bcd8
GD
14356 #include <sys/statvfs.h>
14357
af15babd
VZ
14358int main() {
14359
4f14bcd8
GD
14360 long l;
14361 struct statvfs fs;
14362 statvfs("/", &fs);
14363 l = fs.f_bsize;
14364 l += fs.f_blocks;
14365 l += fs.f_bavail;
14366
af15babd
VZ
14367; return 0; }
14368EOF
62d0491b 14369if { (eval echo configure:14370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 14370 rm -rf conftest*
4f14bcd8
GD
14371
14372 wx_cv_func_statvfs=yes
14373
af15babd
VZ
14374else
14375 echo "configure: failed program was:" >&5
14376 cat conftest.$ac_ext >&5
14377 rm -rf conftest*
4f14bcd8
GD
14378
14379 wx_cv_func_statvfs=no
14380
14381
af15babd
VZ
14382fi
14383rm -f conftest*
4f14bcd8 14384
af15babd
VZ
14385fi
14386
4f14bcd8 14387echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 14388
4f14bcd8
GD
14389 if test "$wx_cv_func_statvfs" = "yes"; then
14390 cat >> confdefs.h <<\EOF
14391#define HAVE_STATVFS 1
14392EOF
af15babd 14393
4f14bcd8
GD
14394 else
14395 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
14396 fi
14397fi
af15babd 14398
4f14bcd8
GD
14399if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
14400 for ac_func in fcntl flock
af15babd
VZ
14401do
14402echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
62d0491b 14403echo "configure:14404: checking for $ac_func" >&5
af15babd
VZ
14404if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14405 echo $ac_n "(cached) $ac_c" 1>&6
14406else
14407 cat > conftest.$ac_ext <<EOF
62d0491b 14408#line 14409 "configure"
af15babd
VZ
14409#include "confdefs.h"
14410/* System header to define __stub macros and hopefully few prototypes,
14411 which can conflict with char $ac_func(); below. */
14412#include <assert.h>
14413/* Override any gcc2 internal prototype to avoid an error. */
af15babd
VZ
14414/* We use char because int might match the return type of a gcc2
14415 builtin and then its argument prototype would still apply. */
14416char $ac_func();
14417
14418int main() {
14419
14420/* The GNU C library defines this for functions which it implements
14421 to always fail with ENOSYS. Some functions are actually named
14422 something starting with __ and the normal name is an alias. */
14423#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14424choke me
14425#else
14426$ac_func();
14427#endif
14428
14429; return 0; }
14430EOF
62d0491b 14431if { (eval echo configure:14432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
14432 rm -rf conftest*
14433 eval "ac_cv_func_$ac_func=yes"
14434else
14435 echo "configure: failed program was:" >&5
14436 cat conftest.$ac_ext >&5
14437 rm -rf conftest*
14438 eval "ac_cv_func_$ac_func=no"
14439fi
14440rm -f conftest*
14441fi
14442
14443if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14444 echo "$ac_t""yes" 1>&6
14445 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14446 cat >> confdefs.h <<EOF
14447#define $ac_tr_func 1
14448EOF
4f14bcd8 14449 break
af15babd
VZ
14450else
14451 echo "$ac_t""no" 1>&6
14452fi
14453done
14454
14455
4f14bcd8
GD
14456 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
14457 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
14458 wxUSE_SNGLINST_CHECKER=no
14459 fi
14460fi
af15babd 14461
4f14bcd8 14462for ac_func in timegm
af15babd
VZ
14463do
14464echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
62d0491b 14465echo "configure:14466: checking for $ac_func" >&5
af15babd
VZ
14466if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14467 echo $ac_n "(cached) $ac_c" 1>&6
14468else
14469 cat > conftest.$ac_ext <<EOF
62d0491b 14470#line 14471 "configure"
af15babd
VZ
14471#include "confdefs.h"
14472/* System header to define __stub macros and hopefully few prototypes,
14473 which can conflict with char $ac_func(); below. */
14474#include <assert.h>
14475/* Override any gcc2 internal prototype to avoid an error. */
14476/* We use char because int might match the return type of a gcc2
14477 builtin and then its argument prototype would still apply. */
14478char $ac_func();
14479
698dcdb6 14480int main() {
698dcdb6 14481
af15babd
VZ
14482/* The GNU C library defines this for functions which it implements
14483 to always fail with ENOSYS. Some functions are actually named
14484 something starting with __ and the normal name is an alias. */
14485#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14486choke me
14487#else
14488$ac_func();
14489#endif
14490
698dcdb6
VZ
14491; return 0; }
14492EOF
62d0491b 14493if { (eval echo configure:14494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14494 rm -rf conftest*
af15babd 14495 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
14496else
14497 echo "configure: failed program was:" >&5
14498 cat conftest.$ac_ext >&5
14499 rm -rf conftest*
af15babd 14500 eval "ac_cv_func_$ac_func=no"
1e487827 14501fi
9952adac 14502rm -f conftest*
af15babd 14503fi
703e0a69 14504
af15babd
VZ
14505if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14506 echo "$ac_t""yes" 1>&6
14507 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4f14bcd8
GD
14508 cat >> confdefs.h <<EOF
14509#define $ac_tr_func 1
14510EOF
14511
14512else
14513 echo "$ac_t""no" 1>&6
af15babd
VZ
14514fi
14515done
14516
14517
4f14bcd8 14518for ac_func in putenv setenv
10f2d63a 14519do
698dcdb6 14520echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
62d0491b 14521echo "configure:14522: checking for $ac_func" >&5
698dcdb6
VZ
14522if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14523 echo $ac_n "(cached) $ac_c" 1>&6
14524else
14525 cat > conftest.$ac_ext <<EOF
62d0491b 14526#line 14527 "configure"
af15babd
VZ
14527#include "confdefs.h"
14528/* System header to define __stub macros and hopefully few prototypes,
14529 which can conflict with char $ac_func(); below. */
14530#include <assert.h>
14531/* Override any gcc2 internal prototype to avoid an error. */
14532/* We use char because int might match the return type of a gcc2
14533 builtin and then its argument prototype would still apply. */
14534char $ac_func();
14535
14536int main() {
14537
14538/* The GNU C library defines this for functions which it implements
14539 to always fail with ENOSYS. Some functions are actually named
14540 something starting with __ and the normal name is an alias. */
14541#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14542choke me
14543#else
14544$ac_func();
14545#endif
14546
14547; return 0; }
14548EOF
62d0491b 14549if { (eval echo configure:14550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
14550 rm -rf conftest*
14551 eval "ac_cv_func_$ac_func=yes"
14552else
14553 echo "configure: failed program was:" >&5
14554 cat conftest.$ac_ext >&5
14555 rm -rf conftest*
14556 eval "ac_cv_func_$ac_func=no"
14557fi
14558rm -f conftest*
14559fi
14560
14561if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14562 echo "$ac_t""yes" 1>&6
14563 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14564 cat >> confdefs.h <<EOF
14565#define $ac_tr_func 1
14566EOF
4f14bcd8 14567 break
af15babd
VZ
14568else
14569 echo "$ac_t""no" 1>&6
14570fi
af15babd
VZ
14571done
14572
14573
4f14bcd8
GD
14574HAVE_SOME_SLEEP_FUNC=0
14575if test "$USE_BEOS" = 1; then
14576 cat >> confdefs.h <<\EOF
14577#define HAVE_SLEEP 1
af15babd
VZ
14578EOF
14579
4f14bcd8 14580 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
14581fi
14582
4f14bcd8
GD
14583if test "$USE_DARWIN" = 1; then
14584 cat >> confdefs.h <<\EOF
14585#define HAVE_USLEEP 1
af15babd 14586EOF
10f2d63a 14587
4f14bcd8 14588 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
14589fi
14590
4f14bcd8
GD
14591if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
14592 POSIX4_LINK=
14593 for ac_func in nanosleep
14594do
14595echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
62d0491b 14596echo "configure:14597: checking for $ac_func" >&5
4f14bcd8 14597if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 14598 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14599else
4f14bcd8 14600 cat > conftest.$ac_ext <<EOF
62d0491b 14601#line 14602 "configure"
10f2d63a 14602#include "confdefs.h"
4f14bcd8
GD
14603/* System header to define __stub macros and hopefully few prototypes,
14604 which can conflict with char $ac_func(); below. */
14605#include <assert.h>
10f2d63a
VZ
14606/* Override any gcc2 internal prototype to avoid an error. */
14607/* We use char because int might match the return type of a gcc2
698dcdb6 14608 builtin and then its argument prototype would still apply. */
4f14bcd8 14609char $ac_func();
698dcdb6
VZ
14610
14611int main() {
4f14bcd8
GD
14612
14613/* The GNU C library defines this for functions which it implements
14614 to always fail with ENOSYS. Some functions are actually named
14615 something starting with __ and the normal name is an alias. */
14616#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14617choke me
14618#else
14619$ac_func();
14620#endif
14621
698dcdb6
VZ
14622; return 0; }
14623EOF
62d0491b 14624if { (eval echo configure:14625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14625 rm -rf conftest*
4f14bcd8 14626 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
14627else
14628 echo "configure: failed program was:" >&5
14629 cat conftest.$ac_ext >&5
14630 rm -rf conftest*
4f14bcd8 14631 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
14632fi
14633rm -f conftest*
698dcdb6 14634fi
4f14bcd8
GD
14635
14636if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 14637 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
14638 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14639 cat >> confdefs.h <<EOF
14640#define $ac_tr_func 1
14641EOF
14642 cat >> confdefs.h <<\EOF
14643#define HAVE_NANOSLEEP 1
14644EOF
14645
10f2d63a 14646else
698dcdb6 14647 echo "$ac_t""no" 1>&6
4f14bcd8 14648echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
62d0491b 14649echo "configure:14650: checking for nanosleep in -lposix4" >&5
4f14bcd8 14650ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
698dcdb6
VZ
14651if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14652 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14653else
698dcdb6 14654 ac_save_LIBS="$LIBS"
4f14bcd8 14655LIBS="-lposix4 $LIBS"
698dcdb6 14656cat > conftest.$ac_ext <<EOF
62d0491b 14657#line 14658 "configure"
10f2d63a
VZ
14658#include "confdefs.h"
14659/* Override any gcc2 internal prototype to avoid an error. */
14660/* We use char because int might match the return type of a gcc2
698dcdb6 14661 builtin and then its argument prototype would still apply. */
4f14bcd8 14662char nanosleep();
698dcdb6
VZ
14663
14664int main() {
4f14bcd8 14665nanosleep()
698dcdb6
VZ
14666; return 0; }
14667EOF
62d0491b 14668if { (eval echo configure:14669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14669 rm -rf conftest*
14670 eval "ac_cv_lib_$ac_lib_var=yes"
14671else
14672 echo "configure: failed program was:" >&5
14673 cat conftest.$ac_ext >&5
14674 rm -rf conftest*
14675 eval "ac_cv_lib_$ac_lib_var=no"
14676fi
14677rm -f conftest*
14678LIBS="$ac_save_LIBS"
10f2d63a 14679
698dcdb6
VZ
14680fi
14681if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14682 echo "$ac_t""yes" 1>&6
14683
4f14bcd8
GD
14684 cat >> confdefs.h <<\EOF
14685#define HAVE_NANOSLEEP 1
14686EOF
14687
3d63bc3a 14688 POSIX4_LINK=" -lposix4"
4f14bcd8 14689
10f2d63a 14690else
698dcdb6 14691 echo "$ac_t""no" 1>&6
10f2d63a 14692
4f14bcd8
GD
14693 for ac_func in usleep
14694do
14695echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
62d0491b 14696echo "configure:14697: checking for $ac_func" >&5
4f14bcd8 14697if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 14698 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14699else
698dcdb6 14700 cat > conftest.$ac_ext <<EOF
62d0491b 14701#line 14702 "configure"
10f2d63a 14702#include "confdefs.h"
4f14bcd8
GD
14703/* System header to define __stub macros and hopefully few prototypes,
14704 which can conflict with char $ac_func(); below. */
14705#include <assert.h>
14706/* Override any gcc2 internal prototype to avoid an error. */
14707/* We use char because int might match the return type of a gcc2
14708 builtin and then its argument prototype would still apply. */
14709char $ac_func();
14710
14711int main() {
14712
14713/* The GNU C library defines this for functions which it implements
14714 to always fail with ENOSYS. Some functions are actually named
14715 something starting with __ and the normal name is an alias. */
14716#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14717choke me
14718#else
14719$ac_func();
14720#endif
14721
14722; return 0; }
698dcdb6 14723EOF
62d0491b 14724if { (eval echo configure:14725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14725 rm -rf conftest*
4f14bcd8 14726 eval "ac_cv_func_$ac_func=yes"
1e487827 14727else
698dcdb6 14728 echo "configure: failed program was:" >&5
10f2d63a 14729 cat conftest.$ac_ext >&5
698dcdb6 14730 rm -rf conftest*
4f14bcd8 14731 eval "ac_cv_func_$ac_func=no"
10f2d63a 14732fi
698dcdb6 14733rm -f conftest*
10f2d63a 14734fi
4f14bcd8
GD
14735
14736if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 14737 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
14738 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14739 cat >> confdefs.h <<EOF
14740#define $ac_tr_func 1
14741EOF
14742 cat >> confdefs.h <<\EOF
14743#define HAVE_USLEEP 1
14744EOF
14745
698dcdb6
VZ
14746else
14747 echo "$ac_t""no" 1>&6
4f14bcd8
GD
14748echo "configure: warning: wxSleep() function will not work" 1>&2
14749
10f2d63a 14750fi
4f14bcd8 14751done
10f2d63a 14752
4f14bcd8 14753
698dcdb6 14754
6232543b 14755fi
10f2d63a 14756
698dcdb6 14757
4f14bcd8 14758
1e487827 14759fi
4f14bcd8 14760done
703e0a69 14761
10f2d63a
VZ
14762fi
14763
4f14bcd8 14764for ac_func in uname gethostname
70846f0a 14765do
698dcdb6 14766echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
62d0491b 14767echo "configure:14768: checking for $ac_func" >&5
698dcdb6
VZ
14768if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14769 echo $ac_n "(cached) $ac_c" 1>&6
14770else
14771 cat > conftest.$ac_ext <<EOF
62d0491b 14772#line 14773 "configure"
70846f0a
VZ
14773#include "confdefs.h"
14774/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14775 which can conflict with char $ac_func(); below. */
70846f0a
VZ
14776#include <assert.h>
14777/* Override any gcc2 internal prototype to avoid an error. */
14778/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14779 builtin and then its argument prototype would still apply. */
14780char $ac_func();
14781
14782int main() {
70846f0a
VZ
14783
14784/* The GNU C library defines this for functions which it implements
14785 to always fail with ENOSYS. Some functions are actually named
14786 something starting with __ and the normal name is an alias. */
14787#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14788choke me
14789#else
698dcdb6 14790$ac_func();
70846f0a
VZ
14791#endif
14792
698dcdb6 14793; return 0; }
70846f0a 14794EOF
62d0491b 14795if { (eval echo configure:14796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14796 rm -rf conftest*
14797 eval "ac_cv_func_$ac_func=yes"
14798else
14799 echo "configure: failed program was:" >&5
14800 cat conftest.$ac_ext >&5
14801 rm -rf conftest*
14802 eval "ac_cv_func_$ac_func=no"
14803fi
14804rm -f conftest*
14805fi
70846f0a 14806
698dcdb6
VZ
14807if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14808 echo "$ac_t""yes" 1>&6
14809 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14810 cat >> confdefs.h <<EOF
14811#define $ac_tr_func 1
14812EOF
4f14bcd8 14813 break
698dcdb6
VZ
14814else
14815 echo "$ac_t""no" 1>&6
70846f0a
VZ
14816fi
14817done
14818
698dcdb6 14819
4f14bcd8
GD
14820
14821ac_ext=C
14822# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14823ac_cpp='$CXXCPP $CPPFLAGS'
14824ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14825ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14826cross_compiling=$ac_cv_prog_cxx_cross
14827
14828
14829for ac_func in strtok_r
10f2d63a 14830do
4f14bcd8 14831echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
62d0491b 14832echo "configure:14833: checking for $ac_func" >&5
4f14bcd8 14833if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
14834 echo $ac_n "(cached) $ac_c" 1>&6
14835else
14836 cat > conftest.$ac_ext <<EOF
62d0491b 14837#line 14838 "configure"
10f2d63a 14838#include "confdefs.h"
4f14bcd8
GD
14839/* System header to define __stub macros and hopefully few prototypes,
14840 which can conflict with char $ac_func(); below. */
14841#include <assert.h>
14842/* Override any gcc2 internal prototype to avoid an error. */
14843#ifdef __cplusplus
14844extern "C"
14845#endif
14846/* We use char because int might match the return type of a gcc2
14847 builtin and then its argument prototype would still apply. */
14848char $ac_func();
14849
14850int main() {
14851
14852/* The GNU C library defines this for functions which it implements
14853 to always fail with ENOSYS. Some functions are actually named
14854 something starting with __ and the normal name is an alias. */
14855#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14856choke me
14857#else
14858$ac_func();
14859#endif
14860
14861; return 0; }
698dcdb6 14862EOF
62d0491b 14863if { (eval echo configure:14864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14864 rm -rf conftest*
4f14bcd8 14865 eval "ac_cv_func_$ac_func=yes"
1e487827 14866else
698dcdb6 14867 echo "configure: failed program was:" >&5
10f2d63a 14868 cat conftest.$ac_ext >&5
698dcdb6 14869 rm -rf conftest*
4f14bcd8 14870 eval "ac_cv_func_$ac_func=no"
10f2d63a 14871fi
698dcdb6 14872rm -f conftest*
10f2d63a 14873fi
4f14bcd8
GD
14874
14875if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 14876 echo "$ac_t""yes" 1>&6
4f14bcd8 14877 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
698dcdb6 14878 cat >> confdefs.h <<EOF
4f14bcd8 14879#define $ac_tr_func 1
10f2d63a 14880EOF
698dcdb6
VZ
14881
14882else
14883 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14884fi
14885done
14886
698dcdb6 14887
4f14bcd8
GD
14888ac_ext=c
14889# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14890ac_cpp='$CPP $CPPFLAGS'
14891ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14892ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14893cross_compiling=$ac_cv_prog_cc_cross
14894
14895
14896INET_LINK=
14897for ac_func in inet_addr
14898do
14899echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
62d0491b 14900echo "configure:14901: checking for $ac_func" >&5
4f14bcd8 14901if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 14902 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14903else
4f14bcd8 14904 cat > conftest.$ac_ext <<EOF
62d0491b 14905#line 14906 "configure"
10f2d63a 14906#include "confdefs.h"
4f14bcd8
GD
14907/* System header to define __stub macros and hopefully few prototypes,
14908 which can conflict with char $ac_func(); below. */
14909#include <assert.h>
10f2d63a
VZ
14910/* Override any gcc2 internal prototype to avoid an error. */
14911/* We use char because int might match the return type of a gcc2
698dcdb6 14912 builtin and then its argument prototype would still apply. */
4f14bcd8 14913char $ac_func();
698dcdb6
VZ
14914
14915int main() {
4f14bcd8
GD
14916
14917/* The GNU C library defines this for functions which it implements
14918 to always fail with ENOSYS. Some functions are actually named
14919 something starting with __ and the normal name is an alias. */
14920#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14921choke me
14922#else
14923$ac_func();
14924#endif
14925
698dcdb6
VZ
14926; return 0; }
14927EOF
62d0491b 14928if { (eval echo configure:14929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14929 rm -rf conftest*
4f14bcd8 14930 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
14931else
14932 echo "configure: failed program was:" >&5
14933 cat conftest.$ac_ext >&5
14934 rm -rf conftest*
4f14bcd8 14935 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
14936fi
14937rm -f conftest*
698dcdb6 14938fi
4f14bcd8
GD
14939
14940if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 14941 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
14942 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14943 cat >> confdefs.h <<EOF
14944#define $ac_tr_func 1
14945EOF
14946 cat >> confdefs.h <<\EOF
14947#define HAVE_INET_ADDR 1
10f2d63a
VZ
14948EOF
14949
14950else
698dcdb6 14951 echo "$ac_t""no" 1>&6
4f14bcd8 14952echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
62d0491b 14953echo "configure:14954: checking for inet_addr in -lnsl" >&5
4f14bcd8 14954ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
14955if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14956 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14957else
698dcdb6 14958 ac_save_LIBS="$LIBS"
4f14bcd8 14959LIBS="-lnsl $LIBS"
698dcdb6 14960cat > conftest.$ac_ext <<EOF
62d0491b 14961#line 14962 "configure"
10f2d63a
VZ
14962#include "confdefs.h"
14963/* Override any gcc2 internal prototype to avoid an error. */
14964/* We use char because int might match the return type of a gcc2
698dcdb6 14965 builtin and then its argument prototype would still apply. */
4f14bcd8 14966char inet_addr();
698dcdb6
VZ
14967
14968int main() {
4f14bcd8 14969inet_addr()
698dcdb6
VZ
14970; return 0; }
14971EOF
62d0491b 14972if { (eval echo configure:14973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14973 rm -rf conftest*
14974 eval "ac_cv_lib_$ac_lib_var=yes"
14975else
14976 echo "configure: failed program was:" >&5
14977 cat conftest.$ac_ext >&5
14978 rm -rf conftest*
14979 eval "ac_cv_lib_$ac_lib_var=no"
14980fi
14981rm -f conftest*
14982LIBS="$ac_save_LIBS"
14983
14984fi
14985if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14986 echo "$ac_t""yes" 1>&6
4f14bcd8 14987 INET_LINK="nsl"
10f2d63a 14988else
698dcdb6 14989 echo "$ac_t""no" 1>&6
4f14bcd8 14990echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
62d0491b 14991echo "configure:14992: checking for inet_addr in -lresolv" >&5
4f14bcd8 14992ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
14993if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14994 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14995else
698dcdb6 14996 ac_save_LIBS="$LIBS"
4f14bcd8 14997LIBS="-lresolv $LIBS"
698dcdb6 14998cat > conftest.$ac_ext <<EOF
62d0491b 14999#line 15000 "configure"
10f2d63a
VZ
15000#include "confdefs.h"
15001/* Override any gcc2 internal prototype to avoid an error. */
15002/* We use char because int might match the return type of a gcc2
698dcdb6 15003 builtin and then its argument prototype would still apply. */
4f14bcd8 15004char inet_addr();
698dcdb6
VZ
15005
15006int main() {
4f14bcd8 15007inet_addr()
698dcdb6
VZ
15008; return 0; }
15009EOF
62d0491b 15010if { (eval echo configure:15011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15011 rm -rf conftest*
15012 eval "ac_cv_lib_$ac_lib_var=yes"
15013else
15014 echo "configure: failed program was:" >&5
15015 cat conftest.$ac_ext >&5
15016 rm -rf conftest*
15017 eval "ac_cv_lib_$ac_lib_var=no"
15018fi
15019rm -f conftest*
15020LIBS="$ac_save_LIBS"
15021
15022fi
15023if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15024 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15025 INET_LINK="resolv"
15026
698dcdb6 15027else
4f14bcd8
GD
15028 echo "$ac_t""no" 1>&6
15029fi
698dcdb6 15030
4f14bcd8 15031
698dcdb6 15032fi
4f14bcd8
GD
15033
15034
698dcdb6
VZ
15035
15036fi
4f14bcd8
GD
15037done
15038
15039
15040for ac_func in inet_aton
15041do
15042echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
62d0491b 15043echo "configure:15044: checking for $ac_func" >&5
4f14bcd8 15044if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
15045 echo $ac_n "(cached) $ac_c" 1>&6
15046else
4f14bcd8 15047 cat > conftest.$ac_ext <<EOF
62d0491b 15048#line 15049 "configure"
f6bcfd97 15049#include "confdefs.h"
4f14bcd8
GD
15050/* System header to define __stub macros and hopefully few prototypes,
15051 which can conflict with char $ac_func(); below. */
15052#include <assert.h>
f6bcfd97
BP
15053/* Override any gcc2 internal prototype to avoid an error. */
15054/* We use char because int might match the return type of a gcc2
698dcdb6 15055 builtin and then its argument prototype would still apply. */
4f14bcd8 15056char $ac_func();
698dcdb6
VZ
15057
15058int main() {
4f14bcd8
GD
15059
15060/* The GNU C library defines this for functions which it implements
15061 to always fail with ENOSYS. Some functions are actually named
15062 something starting with __ and the normal name is an alias. */
15063#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15064choke me
15065#else
15066$ac_func();
15067#endif
15068
698dcdb6
VZ
15069; return 0; }
15070EOF
62d0491b 15071if { (eval echo configure:15072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15072 rm -rf conftest*
4f14bcd8 15073 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
15074else
15075 echo "configure: failed program was:" >&5
15076 cat conftest.$ac_ext >&5
15077 rm -rf conftest*
4f14bcd8 15078 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
15079fi
15080rm -f conftest*
698dcdb6 15081fi
4f14bcd8
GD
15082
15083if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15084 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15085 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15086 cat >> confdefs.h <<EOF
15087#define $ac_tr_func 1
15088EOF
15089 cat >> confdefs.h <<\EOF
15090#define HAVE_INET_ATON 1
15091EOF
15092
10f2d63a 15093else
698dcdb6 15094 echo "$ac_t""no" 1>&6
4f14bcd8 15095 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
62d0491b 15096echo "configure:15097: checking for inet_aton in -l$INET_LINK" >&5
4f14bcd8 15097ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15098if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15099 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 15100else
698dcdb6 15101 ac_save_LIBS="$LIBS"
4f14bcd8 15102LIBS="-l$INET_LINK $LIBS"
698dcdb6 15103cat > conftest.$ac_ext <<EOF
62d0491b 15104#line 15105 "configure"
10f2d63a 15105#include "confdefs.h"
6232543b 15106/* Override any gcc2 internal prototype to avoid an error. */
6232543b 15107/* We use char because int might match the return type of a gcc2
698dcdb6 15108 builtin and then its argument prototype would still apply. */
4f14bcd8 15109char inet_aton();
698dcdb6
VZ
15110
15111int main() {
4f14bcd8 15112inet_aton()
698dcdb6
VZ
15113; return 0; }
15114EOF
62d0491b 15115if { (eval echo configure:15116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15116 rm -rf conftest*
15117 eval "ac_cv_lib_$ac_lib_var=yes"
15118else
15119 echo "configure: failed program was:" >&5
15120 cat conftest.$ac_ext >&5
15121 rm -rf conftest*
15122 eval "ac_cv_lib_$ac_lib_var=no"
15123fi
15124rm -f conftest*
15125LIBS="$ac_save_LIBS"
10f2d63a 15126
698dcdb6
VZ
15127fi
15128if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15129 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15130 cat >> confdefs.h <<\EOF
15131#define HAVE_INET_ATON 1
15132EOF
15133
698dcdb6
VZ
15134else
15135 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15136fi
15137
4f14bcd8 15138
10f2d63a 15139fi
4f14bcd8 15140done
10f2d63a 15141
4f14bcd8
GD
15142
15143if test "x$INET_LINK" != "x"; then
15144 cat >> confdefs.h <<\EOF
15145#define HAVE_INET_ADDR 1
15146EOF
15147
3d63bc3a 15148 INET_LINK=" -l$INET_LINK"
6232543b 15149fi
10f2d63a 15150
1e487827 15151fi
703e0a69 15152
698dcdb6 15153
4f14bcd8
GD
15154cat > confcache <<\EOF
15155# This file is a shell script that caches the results of configure
15156# tests run on this system so they can be shared between configure
15157# scripts and configure runs. It is not useful on other systems.
15158# If it contains results you don't want to keep, you may remove or edit it.
15159#
15160# By default, configure uses ./config.cache as the cache file,
15161# creating it if it does not exist already. You can give configure
15162# the --cache-file=FILE option to use a different cache file; that is
15163# what configure does when it calls configure scripts in
15164# subdirectories, so they share the cache.
15165# Giving --cache-file=/dev/null disables caching, for debugging configure.
15166# config.status only pays attention to the cache file if you give it the
15167# --recheck option to rerun configure.
15168#
f6bcfd97 15169EOF
4f14bcd8
GD
15170# The following way of writing the cache mishandles newlines in values,
15171# but we know of no workaround that is simple, portable, and efficient.
15172# So, don't put newlines in cache variables' values.
15173# Ultrix sh set writes to stderr and can't be redirected directly,
15174# and sets the high bit in the cache file unless we assign to the vars.
15175(set) 2>&1 |
15176 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15177 *ac_space=\ *)
15178 # `set' does not quote correctly, so add quotes (double-quote substitution
15179 # turns \\\\ into \\, and sed turns \\ into \).
15180 sed -n \
15181 -e "s/'/'\\\\''/g" \
15182 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15183 ;;
15184 *)
15185 # `set' quotes correctly as required by POSIX, so do not add quotes.
15186 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15187 ;;
15188 esac >> confcache
15189if cmp -s $cache_file confcache; then
15190 :
15191else
15192 if test -w $cache_file; then
15193 echo "updating cache $cache_file"
15194 cat confcache > $cache_file
f6bcfd97 15195 else
4f14bcd8 15196 echo "not updating unwritable cache $cache_file"
f6bcfd97 15197 fi
4f14bcd8
GD
15198fi
15199rm -f confcache
f6bcfd97 15200
4f14bcd8
GD
15201
15202
15203if test "$TOOLKIT" != "MSW"; then
15204
7274f1c7
RL
15205
15206 THREADS_LINK=
15207 THREADS_OBJ=
15208 CODE_GEN_FLAGS=
15209 CODE_GEN_FLAGS_CXX=
15210
15211 if test "$wxUSE_THREADS" = "yes" ; then
15212 if test "$wxUSE_WINE" = 1 ; then
15213 echo "configure: warning: Threads are not supported under WINE" 1>&2
15214 wxUSE_THREADS="no"
15215 elif test "$USE_BEOS" = 1; then
15216 echo "configure: warning: BeOS threads are not yet supported" 1>&2
15217 wxUSE_THREADS="no"
15218 fi
4f14bcd8 15219 fi
4f14bcd8 15220
7274f1c7
RL
15221 if test "$wxUSE_THREADS" = "yes" ; then
15222
15223 if test "$USE_AIX" = 1; then
15224 THREADS_LIB=pthreads
15225 else
15226 THREADS_LIB=pthread
15227 fi
4f14bcd8 15228
7274f1c7 15229 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
62d0491b 15230echo "configure:15231: checking for pthread_create in -l$THREADS_LIB" >&5
4f14bcd8 15231ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15232if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15233 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15234else
698dcdb6 15235 ac_save_LIBS="$LIBS"
4f14bcd8 15236LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 15237cat > conftest.$ac_ext <<EOF
62d0491b 15238#line 15239 "configure"
10f2d63a
VZ
15239#include "confdefs.h"
15240/* Override any gcc2 internal prototype to avoid an error. */
15241/* We use char because int might match the return type of a gcc2
698dcdb6 15242 builtin and then its argument prototype would still apply. */
4f14bcd8 15243char pthread_create();
698dcdb6
VZ
15244
15245int main() {
4f14bcd8 15246pthread_create()
698dcdb6
VZ
15247; return 0; }
15248EOF
62d0491b 15249if { (eval echo configure:15250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15250 rm -rf conftest*
15251 eval "ac_cv_lib_$ac_lib_var=yes"
15252else
15253 echo "configure: failed program was:" >&5
15254 cat conftest.$ac_ext >&5
15255 rm -rf conftest*
15256 eval "ac_cv_lib_$ac_lib_var=no"
15257fi
15258rm -f conftest*
15259LIBS="$ac_save_LIBS"
15260
15261fi
15262if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15263 echo "$ac_t""yes" 1>&6
4f14bcd8 15264
7274f1c7
RL
15265 THREADS_OBJ="threadpsx.lo"
15266 THREADS_LINK=$THREADS_LIB
15267
10f2d63a 15268else
698dcdb6 15269 echo "$ac_t""no" 1>&6
10f2d63a 15270
7274f1c7 15271 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
62d0491b 15272echo "configure:15273: checking for pthread_create in -lc_r" >&5
4f14bcd8
GD
15273ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
15274if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
15275 echo $ac_n "(cached) $ac_c" 1>&6
15276else
4f14bcd8
GD
15277 ac_save_LIBS="$LIBS"
15278LIBS="-lc_r $LIBS"
15279cat > conftest.$ac_ext <<EOF
62d0491b 15280#line 15281 "configure"
10f2d63a 15281#include "confdefs.h"
4f14bcd8
GD
15282/* Override any gcc2 internal prototype to avoid an error. */
15283/* We use char because int might match the return type of a gcc2
15284 builtin and then its argument prototype would still apply. */
15285char pthread_create();
10f2d63a 15286
4f14bcd8
GD
15287int main() {
15288pthread_create()
698dcdb6
VZ
15289; return 0; }
15290EOF
62d0491b 15291if { (eval echo configure:15292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15292 rm -rf conftest*
4f14bcd8 15293 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 15294else
698dcdb6
VZ
15295 echo "configure: failed program was:" >&5
15296 cat conftest.$ac_ext >&5
15297 rm -rf conftest*
4f14bcd8 15298 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 15299fi
698dcdb6 15300rm -f conftest*
4f14bcd8 15301LIBS="$ac_save_LIBS"
d9b9876f 15302
4f14bcd8
GD
15303fi
15304if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15305 echo "$ac_t""yes" 1>&6
15306
7274f1c7
RL
15307 THREADS_OBJ="threadpsx.lo"
15308 THREADS_LINK="c_r"
15309
4f14bcd8
GD
15310else
15311 echo "$ac_t""no" 1>&6
ab252f7b 15312
7274f1c7 15313 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
4f14bcd8 15314echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
62d0491b 15315echo "configure:15316: checking for sys/prctl.h" >&5
4f14bcd8 15316if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 15317 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 15318else
4f14bcd8 15319 cat > conftest.$ac_ext <<EOF
62d0491b 15320#line 15321 "configure"
d9b9876f 15321#include "confdefs.h"
4f14bcd8 15322#include <sys/prctl.h>
698dcdb6 15323EOF
4f14bcd8 15324ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
62d0491b 15325{ (eval echo configure:15326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
15326ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15327if test -z "$ac_err"; then
698dcdb6 15328 rm -rf conftest*
4f14bcd8 15329 eval "ac_cv_header_$ac_safe=yes"
d9b9876f 15330else
4f14bcd8 15331 echo "$ac_err" >&5
698dcdb6
VZ
15332 echo "configure: failed program was:" >&5
15333 cat conftest.$ac_ext >&5
15334 rm -rf conftest*
4f14bcd8 15335 eval "ac_cv_header_$ac_safe=no"
6232543b 15336fi
698dcdb6 15337rm -f conftest*
4f14bcd8
GD
15338fi
15339if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15340 echo "$ac_t""yes" 1>&6
698dcdb6 15341
7274f1c7
RL
15342 THREADS_OBJ="threadsgi.lo"
15343
4f14bcd8
GD
15344else
15345 echo "$ac_t""no" 1>&6
1e487827 15346fi
698dcdb6 15347
7274f1c7 15348
4f14bcd8 15349fi
d9b9876f 15350
7274f1c7 15351
4f14bcd8 15352fi
d9b9876f 15353
4f14bcd8 15354
7274f1c7
RL
15355 if test -z "$THREADS_OBJ" ; then
15356 wxUSE_THREADS=no
15357 echo "configure: warning: No thread support on this system" 1>&2
15358 fi
4f14bcd8 15359 fi
4f14bcd8 15360
7274f1c7
RL
15361 if test "$wxUSE_THREADS" = "yes" ; then
15362 for ac_func in thr_setconcurrency
4f14bcd8
GD
15363do
15364echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
62d0491b 15365echo "configure:15366: checking for $ac_func" >&5
4f14bcd8 15366if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
15367 echo $ac_n "(cached) $ac_c" 1>&6
15368else
4f14bcd8 15369 cat > conftest.$ac_ext <<EOF
62d0491b 15370#line 15371 "configure"
d9b9876f 15371#include "confdefs.h"
4f14bcd8
GD
15372/* System header to define __stub macros and hopefully few prototypes,
15373 which can conflict with char $ac_func(); below. */
15374#include <assert.h>
15375/* Override any gcc2 internal prototype to avoid an error. */
15376/* We use char because int might match the return type of a gcc2
15377 builtin and then its argument prototype would still apply. */
15378char $ac_func();
15379
698dcdb6 15380int main() {
d9b9876f 15381
4f14bcd8
GD
15382/* The GNU C library defines this for functions which it implements
15383 to always fail with ENOSYS. Some functions are actually named
15384 something starting with __ and the normal name is an alias. */
15385#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15386choke me
15387#else
15388$ac_func();
15389#endif
15390
698dcdb6
VZ
15391; return 0; }
15392EOF
62d0491b 15393if { (eval echo configure:15394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15394 rm -rf conftest*
4f14bcd8 15395 eval "ac_cv_func_$ac_func=yes"
d9b9876f 15396else
698dcdb6
VZ
15397 echo "configure: failed program was:" >&5
15398 cat conftest.$ac_ext >&5
15399 rm -rf conftest*
4f14bcd8 15400 eval "ac_cv_func_$ac_func=no"
6232543b 15401fi
698dcdb6 15402rm -f conftest*
1e487827 15403fi
698dcdb6 15404
4f14bcd8
GD
15405if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15406 echo "$ac_t""yes" 1>&6
15407 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15408 cat >> confdefs.h <<EOF
15409#define $ac_tr_func 1
d9b9876f 15410EOF
4f14bcd8
GD
15411
15412else
15413 echo "$ac_t""no" 1>&6
10f2d63a 15414fi
4f14bcd8 15415done
10f2d63a 15416
10f2d63a 15417
7274f1c7
RL
15418
15419 for ac_hdr in sched.h
4f14bcd8
GD
15420do
15421ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15422echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
62d0491b 15423echo "configure:15424: checking for $ac_hdr" >&5
4f14bcd8
GD
15424if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15425 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15426else
4f14bcd8 15427 cat > conftest.$ac_ext <<EOF
62d0491b 15428#line 15429 "configure"
4f14bcd8
GD
15429#include "confdefs.h"
15430#include <$ac_hdr>
13111b2a 15431EOF
4f14bcd8 15432ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
62d0491b 15433{ (eval echo configure:15434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
15434ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15435if test -z "$ac_err"; then
15436 rm -rf conftest*
15437 eval "ac_cv_header_$ac_safe=yes"
15438else
15439 echo "$ac_err" >&5
15440 echo "configure: failed program was:" >&5
15441 cat conftest.$ac_ext >&5
15442 rm -rf conftest*
15443 eval "ac_cv_header_$ac_safe=no"
13111b2a 15444fi
4f14bcd8 15445rm -f conftest*
10f2d63a 15446fi
4f14bcd8
GD
15447if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15448 echo "$ac_t""yes" 1>&6
15449 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
698dcdb6 15450 cat >> confdefs.h <<EOF
4f14bcd8 15451#define $ac_tr_hdr 1
f6bcfd97 15452EOF
4f14bcd8
GD
15453
15454else
15455 echo "$ac_t""no" 1>&6
f6bcfd97 15456fi
4f14bcd8 15457done
f6bcfd97 15458
10f2d63a 15459
7274f1c7 15460 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
62d0491b 15461echo "configure:15462: checking for sched_yield in -l$THREADS_LINK" >&5
4f14bcd8
GD
15462ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
15463if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15464 echo $ac_n "(cached) $ac_c" 1>&6
15465else
15466 ac_save_LIBS="$LIBS"
15467LIBS="-l$THREADS_LINK $LIBS"
15468cat > conftest.$ac_ext <<EOF
62d0491b 15469#line 15470 "configure"
4f14bcd8
GD
15470#include "confdefs.h"
15471/* Override any gcc2 internal prototype to avoid an error. */
15472/* We use char because int might match the return type of a gcc2
15473 builtin and then its argument prototype would still apply. */
15474char sched_yield();
10f2d63a 15475
4f14bcd8
GD
15476int main() {
15477sched_yield()
15478; return 0; }
10f2d63a 15479EOF
62d0491b 15480if { (eval echo configure:15481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
15481 rm -rf conftest*
15482 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 15483else
4f14bcd8
GD
15484 echo "configure: failed program was:" >&5
15485 cat conftest.$ac_ext >&5
15486 rm -rf conftest*
15487 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 15488fi
4f14bcd8
GD
15489rm -f conftest*
15490LIBS="$ac_save_LIBS"
10f2d63a 15491
4f14bcd8
GD
15492fi
15493if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15494 echo "$ac_t""yes" 1>&6
15495 cat >> confdefs.h <<\EOF
15496#define HAVE_SCHED_YIELD 1
10f2d63a
VZ
15497EOF
15498
4f14bcd8
GD
15499else
15500 echo "$ac_t""no" 1>&6
15501echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
62d0491b 15502echo "configure:15503: checking for sched_yield in -lposix4" >&5
4f14bcd8
GD
15503ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
15504if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15505 echo $ac_n "(cached) $ac_c" 1>&6
15506else
15507 ac_save_LIBS="$LIBS"
15508LIBS="-lposix4 $LIBS"
15509cat > conftest.$ac_ext <<EOF
62d0491b 15510#line 15511 "configure"
4f14bcd8
GD
15511#include "confdefs.h"
15512/* Override any gcc2 internal prototype to avoid an error. */
15513/* We use char because int might match the return type of a gcc2
15514 builtin and then its argument prototype would still apply. */
15515char sched_yield();
47c13eb7 15516
4f14bcd8
GD
15517int main() {
15518sched_yield()
15519; return 0; }
10f2d63a 15520EOF
62d0491b 15521if { (eval echo configure:15522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
15522 rm -rf conftest*
15523 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 15524else
4f14bcd8
GD
15525 echo "configure: failed program was:" >&5
15526 cat conftest.$ac_ext >&5
15527 rm -rf conftest*
15528 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 15529fi
4f14bcd8
GD
15530rm -f conftest*
15531LIBS="$ac_save_LIBS"
10f2d63a 15532
54276ccf 15533fi
4f14bcd8
GD
15534if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15535 echo "$ac_t""yes" 1>&6
15536 cat >> confdefs.h <<\EOF
15537#define HAVE_SCHED_YIELD 1
54276ccf 15538EOF
3d63bc3a 15539 POSIX4_LINK=" -lposix4"
4f14bcd8
GD
15540else
15541 echo "$ac_t""no" 1>&6
15542echo "configure: warning: wxThread::Yield will not work properly" 1>&2
7274f1c7 15543
54276ccf
VZ
15544fi
15545
7274f1c7 15546
4f14bcd8 15547fi
698dcdb6 15548
10f2d63a 15549
7274f1c7
RL
15550 HAVE_PRIOR_FUNCS=0
15551 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
62d0491b 15552echo "configure:15553: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
4f14bcd8
GD
15553ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
15554if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
15555 echo $ac_n "(cached) $ac_c" 1>&6
15556else
4f14bcd8
GD
15557 ac_save_LIBS="$LIBS"
15558LIBS="-l$THREADS_LINK $LIBS"
15559cat > conftest.$ac_ext <<EOF
62d0491b 15560#line 15561 "configure"
422107f9 15561#include "confdefs.h"
4f14bcd8
GD
15562/* Override any gcc2 internal prototype to avoid an error. */
15563/* We use char because int might match the return type of a gcc2
15564 builtin and then its argument prototype would still apply. */
15565char pthread_attr_getschedpolicy();
15566
15567int main() {
15568pthread_attr_getschedpolicy()
15569; return 0; }
698dcdb6 15570EOF
62d0491b 15571if { (eval echo configure:15572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15572 rm -rf conftest*
4f14bcd8 15573 eval "ac_cv_lib_$ac_lib_var=yes"
422107f9 15574else
698dcdb6 15575 echo "configure: failed program was:" >&5
422107f9 15576 cat conftest.$ac_ext >&5
698dcdb6 15577 rm -rf conftest*
4f14bcd8 15578 eval "ac_cv_lib_$ac_lib_var=no"
422107f9 15579fi
698dcdb6 15580rm -f conftest*
4f14bcd8
GD
15581LIBS="$ac_save_LIBS"
15582
422107f9 15583fi
4f14bcd8 15584if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 15585 echo "$ac_t""yes" 1>&6
4f14bcd8 15586 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
62d0491b 15587echo "configure:15588: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
4f14bcd8 15588ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15589if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15590 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15591else
698dcdb6 15592 ac_save_LIBS="$LIBS"
4f14bcd8 15593LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 15594cat > conftest.$ac_ext <<EOF
62d0491b 15595#line 15596 "configure"
422107f9
VZ
15596#include "confdefs.h"
15597/* Override any gcc2 internal prototype to avoid an error. */
15598/* We use char because int might match the return type of a gcc2
698dcdb6 15599 builtin and then its argument prototype would still apply. */
4f14bcd8 15600char pthread_attr_setschedparam();
698dcdb6
VZ
15601
15602int main() {
4f14bcd8 15603pthread_attr_setschedparam()
698dcdb6
VZ
15604; return 0; }
15605EOF
62d0491b 15606if { (eval echo configure:15607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15607 rm -rf conftest*
15608 eval "ac_cv_lib_$ac_lib_var=yes"
15609else
15610 echo "configure: failed program was:" >&5
15611 cat conftest.$ac_ext >&5
15612 rm -rf conftest*
15613 eval "ac_cv_lib_$ac_lib_var=no"
15614fi
15615rm -f conftest*
15616LIBS="$ac_save_LIBS"
15617
15618fi
15619if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15620 echo "$ac_t""yes" 1>&6
4f14bcd8 15621 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
62d0491b 15622echo "configure:15623: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
4f14bcd8
GD
15623ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
15624if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
15625 echo $ac_n "(cached) $ac_c" 1>&6
15626else
4f14bcd8
GD
15627 ac_save_LIBS="$LIBS"
15628LIBS="-l$THREADS_LINK $LIBS"
15629cat > conftest.$ac_ext <<EOF
62d0491b 15630#line 15631 "configure"
422107f9 15631#include "confdefs.h"
4f14bcd8
GD
15632/* Override any gcc2 internal prototype to avoid an error. */
15633/* We use char because int might match the return type of a gcc2
15634 builtin and then its argument prototype would still apply. */
15635char sched_get_priority_max();
15636
15637int main() {
15638sched_get_priority_max()
15639; return 0; }
698dcdb6 15640EOF
62d0491b 15641if { (eval echo configure:15642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15642 rm -rf conftest*
4f14bcd8 15643 eval "ac_cv_lib_$ac_lib_var=yes"
422107f9 15644else
698dcdb6 15645 echo "configure: failed program was:" >&5
422107f9 15646 cat conftest.$ac_ext >&5
698dcdb6 15647 rm -rf conftest*
4f14bcd8 15648 eval "ac_cv_lib_$ac_lib_var=no"
422107f9 15649fi
698dcdb6 15650rm -f conftest*
4f14bcd8
GD
15651LIBS="$ac_save_LIBS"
15652
422107f9 15653fi
4f14bcd8 15654if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 15655 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15656 HAVE_PRIOR_FUNCS=1
15657else
15658 echo "$ac_t""no" 1>&6
15659echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
62d0491b 15660echo "configure:15661: checking for sched_get_priority_max in -lposix4" >&5
4f14bcd8 15661ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15662if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15663 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15664else
698dcdb6 15665 ac_save_LIBS="$LIBS"
4f14bcd8 15666LIBS="-lposix4 $LIBS"
698dcdb6 15667cat > conftest.$ac_ext <<EOF
62d0491b 15668#line 15669 "configure"
422107f9
VZ
15669#include "confdefs.h"
15670/* Override any gcc2 internal prototype to avoid an error. */
15671/* We use char because int might match the return type of a gcc2
698dcdb6 15672 builtin and then its argument prototype would still apply. */
4f14bcd8 15673char sched_get_priority_max();
698dcdb6
VZ
15674
15675int main() {
4f14bcd8 15676sched_get_priority_max()
698dcdb6
VZ
15677; return 0; }
15678EOF
62d0491b 15679if { (eval echo configure:15680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15680 rm -rf conftest*
15681 eval "ac_cv_lib_$ac_lib_var=yes"
15682else
15683 echo "configure: failed program was:" >&5
15684 cat conftest.$ac_ext >&5
15685 rm -rf conftest*
15686 eval "ac_cv_lib_$ac_lib_var=no"
15687fi
15688rm -f conftest*
15689LIBS="$ac_save_LIBS"
15690
15691fi
15692if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15693 echo "$ac_t""yes" 1>&6
4f14bcd8 15694
7274f1c7
RL
15695 HAVE_PRIOR_FUNCS=1
15696 POSIX4_LINK=" -lposix4"
15697
698dcdb6
VZ
15698else
15699 echo "$ac_t""no" 1>&6
422107f9
VZ
15700fi
15701
7274f1c7 15702
422107f9
VZ
15703fi
15704
7274f1c7 15705
4f14bcd8
GD
15706else
15707 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15708fi
15709
7274f1c7 15710
698dcdb6 15711else
4f14bcd8
GD
15712 echo "$ac_t""no" 1>&6
15713fi
463abc64 15714
463abc64 15715
7274f1c7
RL
15716 if test "$HAVE_PRIOR_FUNCS" = 1; then
15717 cat >> confdefs.h <<\EOF
4f14bcd8 15718#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
698dcdb6 15719EOF
463abc64 15720
7274f1c7
RL
15721 else
15722 echo "configure: warning: Setting thread priority will not work" 1>&2
15723 fi
463abc64 15724
7274f1c7 15725 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
62d0491b 15726echo "configure:15727: checking for pthread_cancel in -l$THREADS_LINK" >&5
4f14bcd8 15727ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15728if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15729 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15730else
698dcdb6 15731 ac_save_LIBS="$LIBS"
4f14bcd8 15732LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 15733cat > conftest.$ac_ext <<EOF
62d0491b 15734#line 15735 "configure"
422107f9
VZ
15735#include "confdefs.h"
15736/* Override any gcc2 internal prototype to avoid an error. */
15737/* We use char because int might match the return type of a gcc2
698dcdb6 15738 builtin and then its argument prototype would still apply. */
4f14bcd8 15739char pthread_cancel();
698dcdb6
VZ
15740
15741int main() {
4f14bcd8 15742pthread_cancel()
698dcdb6
VZ
15743; return 0; }
15744EOF
62d0491b 15745if { (eval echo configure:15746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15746 rm -rf conftest*
15747 eval "ac_cv_lib_$ac_lib_var=yes"
15748else
15749 echo "configure: failed program was:" >&5
15750 cat conftest.$ac_ext >&5
15751 rm -rf conftest*
15752 eval "ac_cv_lib_$ac_lib_var=no"
15753fi
15754rm -f conftest*
15755LIBS="$ac_save_LIBS"
15756
15757fi
15758if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15759 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15760 cat >> confdefs.h <<\EOF
15761#define HAVE_PTHREAD_CANCEL 1
15762EOF
15763
698dcdb6
VZ
15764else
15765 echo "$ac_t""no" 1>&6
4f14bcd8 15766echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
15767fi
15768
422107f9 15769
7274f1c7 15770 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
62d0491b 15771echo "configure:15772: checking for pthread_cleanup_push/pop" >&5
4f14bcd8
GD
15772if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
15773 echo $ac_n "(cached) $ac_c" 1>&6
15774else
15775
7274f1c7 15776 cat > conftest.$ac_ext <<EOF
62d0491b 15777#line 15778 "configure"
4f14bcd8
GD
15778#include "confdefs.h"
15779#include <pthread.h>
15780int main() {
15781
7274f1c7
RL
15782 pthread_cleanup_push(NULL, NULL);
15783 pthread_cleanup_pop(0);
15784
4f14bcd8
GD
15785; return 0; }
15786EOF
62d0491b 15787if { (eval echo configure:15788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
15788 rm -rf conftest*
15789
7274f1c7
RL
15790 wx_cv_func_pthread_cleanup_push=yes
15791
4f14bcd8
GD
15792else
15793 echo "configure: failed program was:" >&5
15794 cat conftest.$ac_ext >&5
15795 rm -rf conftest*
15796
7274f1c7
RL
15797 wx_cv_func_pthread_cleanup_push=no
15798
4f14bcd8
GD
15799fi
15800rm -f conftest*
7274f1c7 15801
10f2d63a
VZ
15802fi
15803
4f14bcd8
GD
15804echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
15805
7274f1c7
RL
15806 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
15807 cat >> confdefs.h <<\EOF
4f14bcd8 15808#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
c7a2bf27
RR
15809EOF
15810
7274f1c7 15811 fi
4f14bcd8 15812
7274f1c7
RL
15813
15814 if test "x$wx_lib_glibc21" = "xyes"; then
15815 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
15816 fi
4f14bcd8 15817
7274f1c7 15818 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
62d0491b 15819echo "configure:15820: checking for pthread_mutexattr_t" >&5
4f14bcd8 15820if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
698dcdb6
VZ
15821 echo $ac_n "(cached) $ac_c" 1>&6
15822else
4f14bcd8 15823
7274f1c7 15824 cat > conftest.$ac_ext <<EOF
62d0491b 15825#line 15826 "configure"
0dcf9893 15826#include "confdefs.h"
4f14bcd8
GD
15827#include <pthread.h>
15828int main() {
15829
7274f1c7
RL
15830 pthread_mutexattr_t attr;
15831 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
15832
4f14bcd8 15833; return 0; }
698dcdb6 15834EOF
62d0491b 15835if { (eval echo configure:15836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15836 rm -rf conftest*
4f14bcd8 15837
7274f1c7
RL
15838 wx_cv_type_pthread_mutexattr_t=yes
15839
3fed1840 15840else
698dcdb6 15841 echo "configure: failed program was:" >&5
3fed1840 15842 cat conftest.$ac_ext >&5
698dcdb6 15843 rm -rf conftest*
4f14bcd8 15844
7274f1c7
RL
15845 wx_cv_type_pthread_mutexattr_t=no
15846
4f14bcd8 15847
3fed1840 15848fi
698dcdb6 15849rm -f conftest*
7274f1c7 15850
3fed1840 15851fi
4f14bcd8
GD
15852
15853echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
15854
7274f1c7
RL
15855 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
15856 cat >> confdefs.h <<\EOF
4f14bcd8
GD
15857#define HAVE_PTHREAD_MUTEXATTR_T 1
15858EOF
15859
7274f1c7
RL
15860 else
15861 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
62d0491b 15862echo "configure:15863: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
4f14bcd8 15863if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
698dcdb6 15864 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 15865else
4f14bcd8 15866
7274f1c7 15867 cat > conftest.$ac_ext <<EOF
62d0491b 15868#line 15869 "configure"
3fed1840 15869#include "confdefs.h"
4f14bcd8 15870#include <pthread.h>
698dcdb6 15871int main() {
4f14bcd8 15872
7274f1c7
RL
15873 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
15874
698dcdb6
VZ
15875; return 0; }
15876EOF
62d0491b 15877if { (eval echo configure:15878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15878 rm -rf conftest*
4f14bcd8 15879
7274f1c7
RL
15880 wx_cv_type_pthread_rec_mutex_init=yes
15881
698dcdb6
VZ
15882else
15883 echo "configure: failed program was:" >&5
15884 cat conftest.$ac_ext >&5
15885 rm -rf conftest*
4f14bcd8 15886
7274f1c7
RL
15887 wx_cv_type_pthread_rec_mutex_init=no
15888
4f14bcd8 15889
698dcdb6
VZ
15890fi
15891rm -f conftest*
7274f1c7 15892
3fed1840
RR
15893fi
15894
4f14bcd8 15895echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7
RL
15896 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
15897 cat >> confdefs.h <<\EOF
4f14bcd8
GD
15898#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
15899EOF
3fed1840 15900
7274f1c7
RL
15901 else
15902 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
15903 fi
15904 fi
4f14bcd8 15905
7274f1c7 15906 THREADS_LINK=" -l$THREADS_LINK"
4f14bcd8 15907
7274f1c7
RL
15908 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
15909 CPPFLAGS="$CFLAGS -mt"
15910 CXXFLAGS="$CXXFLAGS -mt"
15911 LDFLAGS="$LDFLAGS -mt"
15912 fi
15913 fi
3fed1840 15914
4f14bcd8
GD
15915fi
15916
15917if test "$wxUSE_THREADS" = "yes"; then
3a922bb4 15918 cat >> confdefs.h <<\EOF
4f14bcd8 15919#define wxUSE_THREADS 1
7b6058cd
GD
15920EOF
15921
4f14bcd8
GD
15922
15923 if test "$USE_DARWIN" != 1; then
3d63bc3a 15924 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -D_REENTRANT"
4f14bcd8
GD
15925 fi
15926
15927 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 15928else
4f14bcd8
GD
15929 if test "$ac_cv_func_strtok_r" = "yes"; then
15930 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
62d0491b 15931echo "configure:15932: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
15932 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
15933 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
15934 echo "$ac_t""yes" 1>&6
15935 else
15936 echo "$ac_t""no" 1>&6
15937 fi
15938 fi
15939fi
15940
15941if test "$WXGTK20" = 1 ; then
15942 cat >> confdefs.h <<EOF
15943#define __WXGTK20__ $WXGTK20
698dcdb6 15944EOF
4f14bcd8
GD
15945
15946 WXGTK12=1
10f2d63a 15947fi
4f14bcd8
GD
15948
15949if test "$WXGTK12" = 1 ; then
15950 cat >> confdefs.h <<EOF
15951#define __WXGTK12__ $WXGTK12
15952EOF
15953
10f2d63a 15954fi
698dcdb6 15955
4f14bcd8
GD
15956if test "$WXGTK127" = 1 ; then
15957 cat >> confdefs.h <<EOF
15958#define __WXGTK127__ $WXGTK127
698dcdb6 15959EOF
4f14bcd8 15960
698dcdb6 15961fi
10f2d63a 15962
4f14bcd8
GD
15963WXDEBUG=
15964
15965if test "$wxUSE_DEBUG_INFO" = "yes" ; then
15966 WXDEBUG="-g"
15967 wxUSE_OPTIMISE=no
698dcdb6 15968fi
4f14bcd8
GD
15969
15970if test "$wxUSE_DEBUG_GDB" = "yes" ; then
15971 wxUSE_DEBUG_INFO=yes
15972 WXDEBUG="-ggdb"
10f2d63a
VZ
15973fi
15974
4f14bcd8
GD
15975if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
15976 cat >> confdefs.h <<\EOF
15977#define WXDEBUG 1
15978EOF
15979
15980 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 15981else
4f14bcd8
GD
15982 if test "$wxUSE_GTK" = 1 ; then
15983 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
15984 fi
15985fi
15986
15987if test "$wxUSE_MEM_TRACING" = "yes" ; then
15988 cat >> confdefs.h <<\EOF
15989#define wxUSE_MEMORY_TRACING 1
15990EOF
15991
15992 cat >> confdefs.h <<\EOF
15993#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
15994EOF
15995
15996 cat >> confdefs.h <<\EOF
15997#define wxUSE_DEBUG_NEW_ALWAYS 1
15998EOF
15999
16000 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
16001fi
16002
16003if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 16004 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
16005fi
16006
16007PROFILE=
16008if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 16009 PROFILE=" -pg"
10f2d63a
VZ
16010fi
16011
88e30f2b 16012if test "$GCC" = "yes" ; then
4f14bcd8
GD
16013 if test "$wxUSE_NO_RTTI" = "yes" ; then
16014 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 16015 fi
4f14bcd8
GD
16016 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
16017 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
16018 fi
16019 if test "$wxUSE_PERMISSIVE" = "yes" ; then
16020 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
16021 fi
4f14bcd8
GD
16022 if test "$USE_WIN32" = 1 ; then
16023 # I'm not even really sure what this was ever added to solve,
16024 # but someone added it for mingw native builds, so I guess
16025 # they had a reason, right??
16026 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
16027 fi
16028fi
16029
16030
16031CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
16032CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
16033if test "$wxUSE_OPTIMISE" = "no" ; then
16034 OPTIMISE=
16035else
16036 if test "$GCC" = yes ; then
16037 OPTIMISE="-O2"
16038 case "${host}" in
16039 i586-*-*|i686-*-* )
16040 OPTIMISE="${OPTIMISE} "
16041 ;;
16042 esac
16043 else
16044 OPTIMISE="-O"
16045 fi
16046fi
16047
16048if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
16049 cat >> confdefs.h <<\EOF
16050#define WXWIN_COMPATIBILITY_2 1
16051EOF
16052
16053
16054 WXWIN_COMPATIBILITY_2_2="yes"
16055fi
16056
16057if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
16058 cat >> confdefs.h <<\EOF
16059#define WXWIN_COMPATIBILITY_2_2 1
16060EOF
16061
10f2d63a
VZ
16062fi
16063
698dcdb6 16064
10f2d63a 16065if test "$wxUSE_GUI" = "yes"; then
698dcdb6 16066 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16067#define wxUSE_GUI 1
16068EOF
16069
698dcdb6 16070
10f2d63a 16071 else
698dcdb6 16072 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16073#define wxUSE_NOGUI 1
16074EOF
16075
16076fi
16077
698dcdb6 16078
10f2d63a 16079if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 16080 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16081#define wxUSE_UNIX 1
16082EOF
16083
16084fi
16085
698dcdb6 16086
10f2d63a 16087if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 16088 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16089#define wxUSE_APPLE_IEEE 1
16090EOF
16091
16092fi
16093
1e6feb95
VZ
16094if test "$wxUSE_TIMER" = "yes"; then
16095 cat >> confdefs.h <<\EOF
16096#define wxUSE_TIMER 1
16097EOF
16098
16099fi
16100
10f2d63a 16101if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 16102 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16103#define wxUSE_WAVE 1
16104EOF
16105
16106fi
16107
1e6feb95
VZ
16108if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
16109 cat >> confdefs.h <<\EOF
16110#define wxUSE_CMDLINE_PARSER 1
16111EOF
16112
16113fi
16114
16115if test "$wxUSE_STOPWATCH" = "yes"; then
16116 cat >> confdefs.h <<\EOF
16117#define wxUSE_STOPWATCH 1
16118EOF
16119
16120fi
16121
16122if test "$wxUSE_DATETIME" = "yes"; then
16123 cat >> confdefs.h <<\EOF
16124#define wxUSE_DATETIME 1
16125EOF
16126
16127fi
16128
16129if test "$wxUSE_TIMEDATE" = "yes"; then
16130 cat >> confdefs.h <<\EOF
16131#define wxUSE_TIMEDATE 1
16132EOF
16133
16134fi
16135
10f2d63a 16136if test "$wxUSE_FILE" = "yes"; then
698dcdb6 16137 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16138#define wxUSE_FILE 1
16139EOF
16140
16141fi
16142
1e6feb95
VZ
16143if test "$wxUSE_FFILE" = "yes"; then
16144 cat >> confdefs.h <<\EOF
16145#define wxUSE_FFILE 1
16146EOF
16147
16148fi
16149
24528b0c 16150if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 16151 cat >> confdefs.h <<\EOF
24528b0c
VS
16152#define wxUSE_FILESYSTEM 1
16153EOF
16154
16155fi
16156
10f2d63a 16157if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 16158 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16159#define wxUSE_FS_INET 1
16160EOF
16161
16162fi
16163
16164if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 16165 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16166#define wxUSE_FS_ZIP 1
16167EOF
16168
16169fi
16170
16171if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 16172 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16173#define wxUSE_ZIPSTREAM 1
16174EOF
16175
16176fi
16177
eb4efbdc 16178if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 16179 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
16180#define wxUSE_ON_FATAL_EXCEPTION 1
16181EOF
16182
16183fi
16184
4f3c5f06 16185if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 16186 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
16187#define wxUSE_SNGLINST_CHECKER 1
16188EOF
16189
16190fi
16191
10f2d63a 16192if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 16193 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16194#define wxUSE_BUSYINFO 1
16195EOF
16196
16197fi
16198
16199if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 16200 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16201#define wxUSE_STD_IOSTREAM 1
16202EOF
16203
16204fi
16205
a3a584a7
VZ
16206if test "$wxUSE_TEXTBUFFER" = "yes"; then
16207 cat >> confdefs.h <<\EOF
16208#define wxUSE_TEXTBUFFER 1
16209EOF
16210
16211fi
16212
10f2d63a 16213if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7
VZ
16214 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
16215 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer and won't be compiled without them" 1>&2
10f2d63a 16216 else
698dcdb6 16217 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16218#define wxUSE_TEXTFILE 1
16219EOF
16220
16221 fi
16222fi
16223
16224if test "$wxUSE_CONFIG" = "yes" ; then
16225 if test "$wxUSE_TEXTFILE" != "yes"; then
698dcdb6 16226 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
10f2d63a 16227 else
698dcdb6 16228 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16229#define wxUSE_CONFIG 1
16230EOF
16231
16232 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
16233 fi
16234fi
16235
16236if test "$wxUSE_INTL" = "yes" ; then
16237 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 16238 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 16239 else
698dcdb6 16240 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16241#define wxUSE_INTL 1
16242EOF
16243
16244 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 16245 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
16246 fi
16247fi
16248
16249if test "$wxUSE_LOG" = "yes"; then
698dcdb6 16250 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16251#define wxUSE_LOG 1
16252EOF
16253
d73be714
VZ
16254
16255 if test "$wxUSE_LOGGUI" = "yes"; then
16256 cat >> confdefs.h <<\EOF
16257#define wxUSE_LOGGUI 1
16258EOF
16259
16260 fi
16261
16262 if test "$wxUSE_LOGWINDOW" = "yes"; then
16263 cat >> confdefs.h <<\EOF
16264#define wxUSE_LOGWINDOW 1
16265EOF
16266
16267 fi
10f2d63a
VZ
16268fi
16269
16270if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 16271 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16272#define wxUSE_LONGLONG 1
16273EOF
16274
16275fi
16276
e8f65ba6 16277if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 16278 cat >> confdefs.h <<\EOF
e8f65ba6
RR
16279#define wxUSE_GEOMETRY 1
16280EOF
16281
16282fi
16283
10f2d63a 16284if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 16285 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16286#define wxUSE_DIALUP_MANAGER 1
16287EOF
16288
70f7a477 16289 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
16290fi
16291
16292if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 16293 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16294#define wxUSE_STREAMS 1
16295EOF
16296
16297fi
16298
1e487827 16299
1e6feb95 16300if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 16301 for ac_func in strptime
83307f33 16302do
698dcdb6 16303echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
62d0491b 16304echo "configure:16305: checking for $ac_func" >&5
698dcdb6
VZ
16305if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16306 echo $ac_n "(cached) $ac_c" 1>&6
16307else
16308 cat > conftest.$ac_ext <<EOF
62d0491b 16309#line 16310 "configure"
83307f33
VZ
16310#include "confdefs.h"
16311/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16312 which can conflict with char $ac_func(); below. */
83307f33
VZ
16313#include <assert.h>
16314/* Override any gcc2 internal prototype to avoid an error. */
16315/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16316 builtin and then its argument prototype would still apply. */
16317char $ac_func();
16318
16319int main() {
83307f33
VZ
16320
16321/* The GNU C library defines this for functions which it implements
16322 to always fail with ENOSYS. Some functions are actually named
16323 something starting with __ and the normal name is an alias. */
16324#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16325choke me
16326#else
698dcdb6 16327$ac_func();
83307f33
VZ
16328#endif
16329
698dcdb6 16330; return 0; }
83307f33 16331EOF
62d0491b 16332if { (eval echo configure:16333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16333 rm -rf conftest*
16334 eval "ac_cv_func_$ac_func=yes"
16335else
16336 echo "configure: failed program was:" >&5
16337 cat conftest.$ac_ext >&5
16338 rm -rf conftest*
16339 eval "ac_cv_func_$ac_func=no"
16340fi
16341rm -f conftest*
16342fi
83307f33 16343
698dcdb6
VZ
16344if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16345 echo "$ac_t""yes" 1>&6
16346 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16347 cat >> confdefs.h <<EOF
16348#define $ac_tr_func 1
16349EOF
16350
16351else
16352 echo "$ac_t""no" 1>&6
83307f33
VZ
16353fi
16354done
16355
1e487827 16356
698dcdb6 16357 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
62d0491b 16358echo "configure:16359: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
16359if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
16360 echo $ac_n "(cached) $ac_c" 1>&6
16361else
16362
16363 cat > conftest.$ac_ext <<EOF
62d0491b 16364#line 16365 "configure"
360d6699
VZ
16365#include "confdefs.h"
16366
b4085ce6 16367 #include <time.h>
698dcdb6
VZ
16368
16369int main() {
360d6699
VZ
16370
16371 int tz;
4f11a343 16372 tz = timezone;
698dcdb6
VZ
16373
16374; return 0; }
16375EOF
62d0491b 16376if { (eval echo configure:16377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16377 rm -rf conftest*
16378
4f11a343 16379 wx_cv_var_timezone=timezone
698dcdb6 16380
360d6699 16381else
698dcdb6
VZ
16382 echo "configure: failed program was:" >&5
16383 cat conftest.$ac_ext >&5
16384 rm -rf conftest*
16385
16386 cat > conftest.$ac_ext <<EOF
62d0491b 16387#line 16388 "configure"
360d6699
VZ
16388#include "confdefs.h"
16389
b4085ce6 16390 #include <time.h>
698dcdb6
VZ
16391
16392int main() {
360d6699
VZ
16393
16394 int tz;
16395 tz = _timezone;
698dcdb6
VZ
16396
16397; return 0; }
16398EOF
62d0491b 16399if { (eval echo configure:16400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16400 rm -rf conftest*
16401
360d6699 16402 wx_cv_var_timezone=_timezone
698dcdb6 16403
5357c8e8 16404else
698dcdb6
VZ
16405 echo "configure: failed program was:" >&5
16406 cat conftest.$ac_ext >&5
16407 rm -rf conftest*
16408
16409 cat > conftest.$ac_ext <<EOF
62d0491b 16410#line 16411 "configure"
5357c8e8
VZ
16411#include "confdefs.h"
16412
b4085ce6 16413 #include <time.h>
698dcdb6
VZ
16414
16415int main() {
5357c8e8
VZ
16416
16417 int tz;
4f11a343 16418 tz = __timezone;
698dcdb6
VZ
16419
16420; return 0; }
16421EOF
62d0491b 16422if { (eval echo configure:16423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16423 rm -rf conftest*
16424
4f11a343 16425 wx_cv_var_timezone=__timezone
698dcdb6 16426
360d6699 16427else
698dcdb6
VZ
16428 echo "configure: failed program was:" >&5
16429 cat conftest.$ac_ext >&5
16430 rm -rf conftest*
16431 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
16432
360d6699 16433fi
698dcdb6
VZ
16434rm -f conftest*
16435
16436
360d6699 16437fi
698dcdb6
VZ
16438rm -f conftest*
16439
16440
6232543b 16441fi
698dcdb6
VZ
16442rm -f conftest*
16443
16444
1e487827 16445fi
703e0a69 16446
698dcdb6
VZ
16447echo "$ac_t""$wx_cv_var_timezone" 1>&6
16448
16449 cat >> confdefs.h <<EOF
360d6699
VZ
16450#define WX_TIMEZONE $wx_cv_var_timezone
16451EOF
16452
698dcdb6
VZ
16453
16454 for ac_func in localtime
afc31813 16455do
698dcdb6 16456echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
62d0491b 16457echo "configure:16458: checking for $ac_func" >&5
698dcdb6
VZ
16458if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16459 echo $ac_n "(cached) $ac_c" 1>&6
16460else
16461 cat > conftest.$ac_ext <<EOF
62d0491b 16462#line 16463 "configure"
10f2d63a 16463#include "confdefs.h"
afc31813 16464/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16465 which can conflict with char $ac_func(); below. */
afc31813
VZ
16466#include <assert.h>
16467/* Override any gcc2 internal prototype to avoid an error. */
16468/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16469 builtin and then its argument prototype would still apply. */
16470char $ac_func();
16471
16472int main() {
afc31813
VZ
16473
16474/* The GNU C library defines this for functions which it implements
16475 to always fail with ENOSYS. Some functions are actually named
16476 something starting with __ and the normal name is an alias. */
16477#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16478choke me
16479#else
698dcdb6 16480$ac_func();
afc31813
VZ
16481#endif
16482
698dcdb6 16483; return 0; }
10f2d63a 16484EOF
62d0491b 16485if { (eval echo configure:16486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16486 rm -rf conftest*
16487 eval "ac_cv_func_$ac_func=yes"
16488else
16489 echo "configure: failed program was:" >&5
16490 cat conftest.$ac_ext >&5
16491 rm -rf conftest*
16492 eval "ac_cv_func_$ac_func=no"
16493fi
16494rm -f conftest*
16495fi
afc31813 16496
698dcdb6
VZ
16497if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16498 echo "$ac_t""yes" 1>&6
16499 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16500 cat >> confdefs.h <<EOF
16501#define $ac_tr_func 1
16502EOF
16503
16504else
16505 echo "$ac_t""no" 1>&6
afc31813
VZ
16506fi
16507done
16508
1e487827 16509
698dcdb6
VZ
16510 if test "$ac_cv_func_localtime" = "yes"; then
16511 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
62d0491b 16512echo "configure:16513: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
16513if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16514 echo $ac_n "(cached) $ac_c" 1>&6
16515else
16516
16517 cat > conftest.$ac_ext <<EOF
62d0491b 16518#line 16519 "configure"
0470b1e6
VZ
16519#include "confdefs.h"
16520
b4085ce6 16521 #include <time.h>
698dcdb6
VZ
16522
16523int main() {
0470b1e6
VZ
16524
16525 struct tm tm;
16526 tm.tm_gmtoff++;
698dcdb6
VZ
16527
16528; return 0; }
16529EOF
62d0491b 16530if { (eval echo configure:16531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16531 rm -rf conftest*
16532
f03a98d8 16533 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 16534
0470b1e6 16535else
698dcdb6
VZ
16536 echo "configure: failed program was:" >&5
16537 cat conftest.$ac_ext >&5
16538 rm -rf conftest*
16539 wx_cv_struct_tm_has_gmtoff=no
16540
0470b1e6 16541fi
698dcdb6
VZ
16542rm -f conftest*
16543
1e487827 16544fi
698dcdb6
VZ
16545
16546echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
16547 fi
16548
16549 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 16550 cat >> confdefs.h <<\EOF
6232543b
VS
16551#define WX_GMTOFF_IN_TM 1
16552EOF
0470b1e6 16553
3fcdd07b
VZ
16554 fi
16555
698dcdb6 16556 for ac_func in gettimeofday ftime
3fcdd07b 16557do
698dcdb6 16558echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
62d0491b 16559echo "configure:16560: checking for $ac_func" >&5
698dcdb6
VZ
16560if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16561 echo $ac_n "(cached) $ac_c" 1>&6
16562else
16563 cat > conftest.$ac_ext <<EOF
62d0491b 16564#line 16565 "configure"
3fcdd07b
VZ
16565#include "confdefs.h"
16566/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16567 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
16568#include <assert.h>
16569/* Override any gcc2 internal prototype to avoid an error. */
16570/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16571 builtin and then its argument prototype would still apply. */
16572char $ac_func();
16573
16574int main() {
3fcdd07b
VZ
16575
16576/* The GNU C library defines this for functions which it implements
16577 to always fail with ENOSYS. Some functions are actually named
16578 something starting with __ and the normal name is an alias. */
16579#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16580choke me
16581#else
698dcdb6 16582$ac_func();
3fcdd07b
VZ
16583#endif
16584
698dcdb6
VZ
16585; return 0; }
16586EOF
62d0491b 16587if { (eval echo configure:16588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16588 rm -rf conftest*
16589 eval "ac_cv_func_$ac_func=yes"
16590else
16591 echo "configure: failed program was:" >&5
16592 cat conftest.$ac_ext >&5
16593 rm -rf conftest*
16594 eval "ac_cv_func_$ac_func=no"
16595fi
16596rm -f conftest*
16597fi
16598
16599if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16600 echo "$ac_t""yes" 1>&6
16601 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16602 cat >> confdefs.h <<EOF
16603#define $ac_tr_func 1
3fcdd07b
VZ
16604EOF
16605 break
698dcdb6
VZ
16606else
16607 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
16608fi
16609done
16610
afc31813 16611
698dcdb6
VZ
16612 if test "$ac_cv_func_gettimeofday" = "yes"; then
16613 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
62d0491b 16614echo "configure:16615: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
16615if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16616 echo $ac_n "(cached) $ac_c" 1>&6
16617else
16618
16619
16620 ac_ext=C
16621# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16622ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16623ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16624ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16625cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16626
698dcdb6
VZ
16627
16628 cat > conftest.$ac_ext <<EOF
62d0491b 16629#line 16630 "configure"
10f2d63a 16630#include "confdefs.h"
afc31813
VZ
16631
16632 #include <sys/time.h>
16633 #include <unistd.h>
698dcdb6
VZ
16634
16635int main() {
afc31813
VZ
16636
16637 struct timeval tv;
776862b4 16638 gettimeofday(&tv, NULL);
698dcdb6
VZ
16639
16640; return 0; }
16641EOF
62d0491b 16642if { (eval echo configure:16643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16643 rm -rf conftest*
afc31813 16644 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 16645else
698dcdb6
VZ
16646 echo "configure: failed program was:" >&5
16647 cat conftest.$ac_ext >&5
16648 rm -rf conftest*
16649 cat > conftest.$ac_ext <<EOF
62d0491b 16650#line 16651 "configure"
10f2d63a 16651#include "confdefs.h"
afc31813
VZ
16652
16653 #include <sys/time.h>
16654 #include <unistd.h>
698dcdb6
VZ
16655
16656int main() {
afc31813
VZ
16657
16658 struct timeval tv;
16659 gettimeofday(&tv);
698dcdb6
VZ
16660
16661; return 0; }
16662EOF
62d0491b 16663if { (eval echo configure:16664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16664 rm -rf conftest*
afc31813 16665 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 16666else
698dcdb6
VZ
16667 echo "configure: failed program was:" >&5
16668 cat conftest.$ac_ext >&5
16669 rm -rf conftest*
776862b4
VZ
16670
16671 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
16672 wx_cv_func_gettimeofday_has_2_args=unknown
16673
698dcdb6 16674
10f2d63a 16675fi
698dcdb6
VZ
16676rm -f conftest*
16677
10f2d63a 16678fi
698dcdb6 16679rm -f conftest*
afc31813 16680 ac_ext=c
698dcdb6 16681# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 16682ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16683ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16684ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16685cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 16686
698dcdb6 16687
afc31813 16688fi
698dcdb6
VZ
16689
16690echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 16691
afc31813 16692 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 16693 cat >> confdefs.h <<\EOF
afc31813
VZ
16694#define WX_GETTIMEOFDAY_NO_TZ 1
16695EOF
16696
16697 fi
16698 fi
16699
698dcdb6 16700 cat >> confdefs.h <<\EOF
afc31813
VZ
16701#define wxUSE_TIMEDATE 1
16702EOF
16703
16704 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16705fi
16706
698dcdb6 16707
b089607b
VZ
16708if test "$TOOLKIT" != "MSW"; then
16709
3a922bb4
RL
16710 if test "$wxUSE_SOCKETS" = "yes"; then
16711 echo $ac_n "checking for socket""... $ac_c" 1>&6
62d0491b 16712echo "configure:16713: checking for socket" >&5
698dcdb6
VZ
16713if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16714 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16715else
698dcdb6 16716 cat > conftest.$ac_ext <<EOF
62d0491b 16717#line 16718 "configure"
c63c7106
VZ
16718#include "confdefs.h"
16719/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16720 which can conflict with char socket(); below. */
c63c7106
VZ
16721#include <assert.h>
16722/* Override any gcc2 internal prototype to avoid an error. */
16723/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16724 builtin and then its argument prototype would still apply. */
16725char socket();
16726
16727int main() {
c63c7106
VZ
16728
16729/* The GNU C library defines this for functions which it implements
16730 to always fail with ENOSYS. Some functions are actually named
16731 something starting with __ and the normal name is an alias. */
16732#if defined (__stub_socket) || defined (__stub___socket)
16733choke me
16734#else
698dcdb6 16735socket();
c63c7106
VZ
16736#endif
16737
698dcdb6
VZ
16738; return 0; }
16739EOF
62d0491b 16740if { (eval echo configure:16741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16741 rm -rf conftest*
16742 eval "ac_cv_func_socket=yes"
16743else
16744 echo "configure: failed program was:" >&5
16745 cat conftest.$ac_ext >&5
16746 rm -rf conftest*
16747 eval "ac_cv_func_socket=no"
16748fi
16749rm -f conftest*
16750fi
16751
16752if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16753 echo "$ac_t""yes" 1>&6
c63c7106
VZ
16754 :
16755else
698dcdb6
VZ
16756 echo "$ac_t""no" 1>&6
16757echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
62d0491b 16758echo "configure:16759: checking for socket in -lsocket" >&5
698dcdb6
VZ
16759ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16760if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16761 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16762else
698dcdb6 16763 ac_save_LIBS="$LIBS"
c63c7106 16764LIBS="-lsocket $LIBS"
698dcdb6 16765cat > conftest.$ac_ext <<EOF
62d0491b 16766#line 16767 "configure"
c63c7106
VZ
16767#include "confdefs.h"
16768/* Override any gcc2 internal prototype to avoid an error. */
16769/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16770 builtin and then its argument prototype would still apply. */
16771char socket();
16772
16773int main() {
16774socket()
16775; return 0; }
16776EOF
62d0491b 16777if { (eval echo configure:16778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16778 rm -rf conftest*
16779 eval "ac_cv_lib_$ac_lib_var=yes"
16780else
16781 echo "configure: failed program was:" >&5
16782 cat conftest.$ac_ext >&5
16783 rm -rf conftest*
16784 eval "ac_cv_lib_$ac_lib_var=no"
16785fi
16786rm -f conftest*
16787LIBS="$ac_save_LIBS"
16788
16789fi
16790if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16791 echo "$ac_t""yes" 1>&6
c63c7106 16792 INET_LINK="$INET_LINK -lsocket"
c63c7106 16793else
698dcdb6 16794 echo "$ac_t""no" 1>&6
afc31813 16795
3a922bb4
RL
16796 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
16797 wxUSE_SOCKETS=no
16798
698dcdb6 16799
6232543b 16800fi
b089607b 16801
3a922bb4 16802
1e487827 16803fi
afc31813 16804
3a922bb4 16805 fi
51a9faba 16806
3a922bb4
RL
16807
16808 if test "$wxUSE_SOCKETS" = "yes" ; then
16809 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
62d0491b 16810echo "configure:16811: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
16811if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16812 echo $ac_n "(cached) $ac_c" 1>&6
16813else
16814
3a922bb4
RL
16815
16816 ac_ext=C
698dcdb6 16817# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16818ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16819ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16820ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16821cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16822
698dcdb6 16823
3a922bb4 16824 cat > conftest.$ac_ext <<EOF
62d0491b 16825#line 16826 "configure"
afc31813 16826#include "confdefs.h"
51a9faba 16827
3a922bb4
RL
16828 #include <sys/types.h>
16829 #include <sys/socket.h>
16830
698dcdb6 16831int main() {
51a9faba 16832
3a922bb4
RL
16833 socklen_t len;
16834 getsockname(0, 0, &len);
16835
698dcdb6
VZ
16836; return 0; }
16837EOF
62d0491b 16838if { (eval echo configure:16839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16839 rm -rf conftest*
51a9faba 16840 wx_cv_type_getsockname3=socklen_t
afc31813 16841else
698dcdb6
VZ
16842 echo "configure: failed program was:" >&5
16843 cat conftest.$ac_ext >&5
16844 rm -rf conftest*
16845 cat > conftest.$ac_ext <<EOF
62d0491b 16846#line 16847 "configure"
afc31813 16847#include "confdefs.h"
51a9faba 16848
3a922bb4
RL
16849 #include <sys/types.h>
16850 #include <sys/socket.h>
16851
698dcdb6 16852int main() {
51a9faba 16853
3a922bb4
RL
16854 size_t len;
16855 getsockname(0, 0, &len);
16856
698dcdb6
VZ
16857; return 0; }
16858EOF
62d0491b 16859if { (eval echo configure:16860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16860 rm -rf conftest*
51a9faba 16861 wx_cv_type_getsockname3=size_t
afc31813 16862else
698dcdb6
VZ
16863 echo "configure: failed program was:" >&5
16864 cat conftest.$ac_ext >&5
16865 rm -rf conftest*
16866 cat > conftest.$ac_ext <<EOF
62d0491b 16867#line 16868 "configure"
afc31813 16868#include "confdefs.h"
51a9faba 16869
3a922bb4
RL
16870 #include <sys/types.h>
16871 #include <sys/socket.h>
16872
698dcdb6 16873int main() {
51a9faba 16874
3a922bb4
RL
16875 int len;
16876 getsockname(0, 0, &len);
16877
698dcdb6
VZ
16878; return 0; }
16879EOF
62d0491b 16880if { (eval echo configure:16881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16881 rm -rf conftest*
51a9faba 16882 wx_cv_type_getsockname3=int
afc31813 16883else
698dcdb6
VZ
16884 echo "configure: failed program was:" >&5
16885 cat conftest.$ac_ext >&5
16886 rm -rf conftest*
16887 wx_cv_type_getsockname3=unknown
3a922bb4 16888
afc31813 16889fi
698dcdb6 16890rm -f conftest*
3a922bb4 16891
afc31813 16892fi
698dcdb6 16893rm -f conftest*
3a922bb4 16894
afc31813 16895fi
698dcdb6 16896rm -f conftest*
51a9faba 16897
3a922bb4 16898 ac_ext=c
698dcdb6 16899# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 16900ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16901ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16902ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16903cross_compiling=$ac_cv_prog_cc_cross
afc31813 16904
3a922bb4 16905
51a9faba 16906fi
698dcdb6
VZ
16907
16908echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 16909
3a922bb4
RL
16910 if test "$wx_cv_type_getsockname3" = "unknown"; then
16911 wxUSE_SOCKETS=no
16912 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
16913 else
16914 cat >> confdefs.h <<EOF
51a9faba
VZ
16915#define SOCKLEN_T $wx_cv_type_getsockname3
16916EOF
16917
3a922bb4 16918 fi
51a9faba
VZ
16919 fi
16920fi
afc31813 16921
51a9faba 16922if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 16923 cat >> confdefs.h <<\EOF
afc31813
VZ
16924#define wxUSE_SOCKETS 1
16925EOF
16926
70f7a477 16927 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
16928fi
16929
698dcdb6 16930
dc3d889d
VZ
16931if test "$wxUSE_GUI" = "yes"; then
16932
3a922bb4
RL
16933 if test "$TOOLKIT" != "MSW"; then
16934 if test "$wxUSE_JOYSTICK" = "yes"; then
16935 for ac_hdr in linux/joystick.h
10f2d63a 16936do
698dcdb6
VZ
16937ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16938echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
62d0491b 16939echo "configure:16940: checking for $ac_hdr" >&5
698dcdb6
VZ
16940if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16941 echo $ac_n "(cached) $ac_c" 1>&6
16942else
16943 cat > conftest.$ac_ext <<EOF
62d0491b 16944#line 16945 "configure"
10f2d63a 16945#include "confdefs.h"
698dcdb6
VZ
16946#include <$ac_hdr>
16947EOF
16948ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
62d0491b 16949{ (eval echo configure:16950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
16950ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16951if test -z "$ac_err"; then
16952 rm -rf conftest*
16953 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 16954else
698dcdb6
VZ
16955 echo "$ac_err" >&5
16956 echo "configure: failed program was:" >&5
10f2d63a 16957 cat conftest.$ac_ext >&5
698dcdb6
VZ
16958 rm -rf conftest*
16959 eval "ac_cv_header_$ac_safe=no"
10f2d63a 16960fi
698dcdb6 16961rm -f conftest*
10f2d63a 16962fi
698dcdb6
VZ
16963if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16964 echo "$ac_t""yes" 1>&6
16965 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16966 cat >> confdefs.h <<EOF
16967#define $ac_tr_hdr 1
10f2d63a 16968EOF
698dcdb6
VZ
16969
16970else
16971 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16972fi
16973done
16974
3a922bb4
RL
16975 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
16976 wxUSE_JOYSTICK=no
16977 echo "configure: warning: Joystick not supported by this system" 1>&2
16978 fi
16979 fi
16980 fi
b089607b 16981
3a922bb4
RL
16982 if test "$wxUSE_JOYSTICK" = "yes"; then
16983 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16984#define wxUSE_JOYSTICK 1
16985EOF
16986
3a922bb4
RL
16987 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
16988 fi
dc3d889d
VZ
16989fi
16990
698dcdb6 16991
b089607b
VZ
16992if test "$TOOLKIT" != "MSW"; then
16993
3a922bb4
RL
16994 HAVE_DL_FUNCS=0
16995 HAVE_SHL_FUNCS=0
16996 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
16997 if test "$USE_DARWIN" = 1; then
16998 HAVE_DL_FUNCS=1
16999 else
17000 for ac_func in dlopen
10f2d63a 17001do
698dcdb6 17002echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
62d0491b 17003echo "configure:17004: checking for $ac_func" >&5
698dcdb6
VZ
17004if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17005 echo $ac_n "(cached) $ac_c" 1>&6
17006else
17007 cat > conftest.$ac_ext <<EOF
62d0491b 17008#line 17009 "configure"
10f2d63a
VZ
17009#include "confdefs.h"
17010/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17011 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
17012#include <assert.h>
17013/* Override any gcc2 internal prototype to avoid an error. */
17014/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17015 builtin and then its argument prototype would still apply. */
17016char $ac_func();
17017
17018int main() {
10f2d63a
VZ
17019
17020/* The GNU C library defines this for functions which it implements
17021 to always fail with ENOSYS. Some functions are actually named
17022 something starting with __ and the normal name is an alias. */
17023#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17024choke me
17025#else
698dcdb6 17026$ac_func();
10f2d63a
VZ
17027#endif
17028
698dcdb6
VZ
17029; return 0; }
17030EOF
62d0491b 17031if { (eval echo configure:17032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17032 rm -rf conftest*
17033 eval "ac_cv_func_$ac_func=yes"
17034else
17035 echo "configure: failed program was:" >&5
17036 cat conftest.$ac_ext >&5
17037 rm -rf conftest*
17038 eval "ac_cv_func_$ac_func=no"
17039fi
17040rm -f conftest*
17041fi
17042
17043if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17044 echo "$ac_t""yes" 1>&6
17045 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17046 cat >> confdefs.h <<EOF
17047#define $ac_tr_func 1
17048EOF
17049
3a922bb4 17050 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17051#define HAVE_DLOPEN 1
17052EOF
17053
3a922bb4
RL
17054 HAVE_DL_FUNCS=1
17055
10f2d63a 17056else
698dcdb6
VZ
17057 echo "$ac_t""no" 1>&6
17058echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
62d0491b 17059echo "configure:17060: checking for dlopen in -ldl" >&5
698dcdb6
VZ
17060ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
17061if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17062 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17063else
698dcdb6 17064 ac_save_LIBS="$LIBS"
10f2d63a 17065LIBS="-ldl $LIBS"
698dcdb6 17066cat > conftest.$ac_ext <<EOF
62d0491b 17067#line 17068 "configure"
10f2d63a
VZ
17068#include "confdefs.h"
17069/* Override any gcc2 internal prototype to avoid an error. */
17070/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17071 builtin and then its argument prototype would still apply. */
17072char dlopen();
17073
17074int main() {
17075dlopen()
17076; return 0; }
17077EOF
62d0491b 17078if { (eval echo configure:17079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17079 rm -rf conftest*
17080 eval "ac_cv_lib_$ac_lib_var=yes"
17081else
17082 echo "configure: failed program was:" >&5
17083 cat conftest.$ac_ext >&5
17084 rm -rf conftest*
17085 eval "ac_cv_lib_$ac_lib_var=no"
17086fi
17087rm -f conftest*
17088LIBS="$ac_save_LIBS"
17089
17090fi
17091if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17092 echo "$ac_t""yes" 1>&6
17093
3a922bb4 17094 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17095#define HAVE_DLOPEN 1
17096EOF
17097
3a922bb4 17098 HAVE_DL_FUNCS=1
3d63bc3a 17099 DL_LINK=" -ldl$DL_LINK"
3a922bb4 17100
10f2d63a 17101else
698dcdb6 17102 echo "$ac_t""no" 1>&6
10f2d63a 17103
3a922bb4 17104 for ac_func in shl_load
10f2d63a 17105do
698dcdb6 17106echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
62d0491b 17107echo "configure:17108: checking for $ac_func" >&5
698dcdb6
VZ
17108if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17109 echo $ac_n "(cached) $ac_c" 1>&6
17110else
17111 cat > conftest.$ac_ext <<EOF
62d0491b 17112#line 17113 "configure"
10f2d63a
VZ
17113#include "confdefs.h"
17114/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17115 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
17116#include <assert.h>
17117/* Override any gcc2 internal prototype to avoid an error. */
17118/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17119 builtin and then its argument prototype would still apply. */
17120char $ac_func();
17121
17122int main() {
10f2d63a
VZ
17123
17124/* The GNU C library defines this for functions which it implements
17125 to always fail with ENOSYS. Some functions are actually named
17126 something starting with __ and the normal name is an alias. */
17127#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17128choke me
17129#else
698dcdb6 17130$ac_func();
10f2d63a
VZ
17131#endif
17132
698dcdb6
VZ
17133; return 0; }
17134EOF
62d0491b 17135if { (eval echo configure:17136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17136 rm -rf conftest*
17137 eval "ac_cv_func_$ac_func=yes"
17138else
17139 echo "configure: failed program was:" >&5
17140 cat conftest.$ac_ext >&5
17141 rm -rf conftest*
17142 eval "ac_cv_func_$ac_func=no"
17143fi
17144rm -f conftest*
17145fi
17146
17147if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17148 echo "$ac_t""yes" 1>&6
17149 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17150 cat >> confdefs.h <<EOF
17151#define $ac_tr_func 1
17152EOF
17153
3a922bb4 17154 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17155#define HAVE_SHL_LOAD 1
17156EOF
17157
3a922bb4
RL
17158 HAVE_SHL_FUNCS=1
17159
10f2d63a 17160else
698dcdb6
VZ
17161 echo "$ac_t""no" 1>&6
17162echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
62d0491b 17163echo "configure:17164: checking for dld in -lshl_load" >&5
698dcdb6
VZ
17164ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
17165if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17166 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 17167else
698dcdb6 17168 ac_save_LIBS="$LIBS"
f6bcfd97 17169LIBS="-lshl_load $LIBS"
698dcdb6 17170cat > conftest.$ac_ext <<EOF
62d0491b 17171#line 17172 "configure"
f6bcfd97
BP
17172#include "confdefs.h"
17173/* Override any gcc2 internal prototype to avoid an error. */
17174/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17175 builtin and then its argument prototype would still apply. */
17176char dld();
17177
17178int main() {
17179dld()
17180; return 0; }
17181EOF
62d0491b 17182if { (eval echo configure:17183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17183 rm -rf conftest*
17184 eval "ac_cv_lib_$ac_lib_var=yes"
17185else
17186 echo "configure: failed program was:" >&5
17187 cat conftest.$ac_ext >&5
17188 rm -rf conftest*
17189 eval "ac_cv_lib_$ac_lib_var=no"
17190fi
17191rm -f conftest*
17192LIBS="$ac_save_LIBS"
f6bcfd97 17193
698dcdb6
VZ
17194fi
17195if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17196 echo "$ac_t""yes" 1>&6
17197
3a922bb4 17198 HAVE_SHL_FUNCS=1
3d63bc3a 17199 DL_LINK=" -ldld$DL_LINK"
3a922bb4 17200
698dcdb6
VZ
17201else
17202 echo "$ac_t""no" 1>&6
f6bcfd97
BP
17203fi
17204
3a922bb4 17205
10f2d63a
VZ
17206fi
17207done
17208
3a922bb4 17209
10f2d63a
VZ
17210fi
17211
3a922bb4 17212
10f2d63a
VZ
17213fi
17214done
17215
1e487827 17216
3a922bb4
RL
17217 if test "$HAVE_DL_FUNCS" = 1; then
17218 for ac_func in dlerror
f6bcfd97 17219do
698dcdb6 17220echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
62d0491b 17221echo "configure:17222: checking for $ac_func" >&5
698dcdb6
VZ
17222if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17223 echo $ac_n "(cached) $ac_c" 1>&6
17224else
17225 cat > conftest.$ac_ext <<EOF
62d0491b 17226#line 17227 "configure"
f6bcfd97
BP
17227#include "confdefs.h"
17228/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17229 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
17230#include <assert.h>
17231/* Override any gcc2 internal prototype to avoid an error. */
17232/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17233 builtin and then its argument prototype would still apply. */
17234char $ac_func();
17235
17236int main() {
f6bcfd97
BP
17237
17238/* The GNU C library defines this for functions which it implements
17239 to always fail with ENOSYS. Some functions are actually named
17240 something starting with __ and the normal name is an alias. */
17241#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17242choke me
17243#else
698dcdb6 17244$ac_func();
f6bcfd97
BP
17245#endif
17246
698dcdb6
VZ
17247; return 0; }
17248EOF
62d0491b 17249if { (eval echo configure:17250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17250 rm -rf conftest*
17251 eval "ac_cv_func_$ac_func=yes"
17252else
17253 echo "configure: failed program was:" >&5
17254 cat conftest.$ac_ext >&5
17255 rm -rf conftest*
17256 eval "ac_cv_func_$ac_func=no"
17257fi
17258rm -f conftest*
17259fi
17260
17261if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17262 echo "$ac_t""yes" 1>&6
17263 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17264 cat >> confdefs.h <<EOF
17265#define $ac_tr_func 1
17266EOF
17267 cat >> confdefs.h <<\EOF
f6bcfd97
BP
17268#define HAVE_DLERROR 1
17269EOF
17270
17271else
698dcdb6
VZ
17272 echo "$ac_t""no" 1>&6
17273echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
62d0491b 17274echo "configure:17275: checking for dlerror in -ldl" >&5
698dcdb6
VZ
17275ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
17276if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17277 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 17278else
698dcdb6 17279 ac_save_LIBS="$LIBS"
f6bcfd97 17280LIBS="-ldl $LIBS"
698dcdb6 17281cat > conftest.$ac_ext <<EOF
62d0491b 17282#line 17283 "configure"
f6bcfd97
BP
17283#include "confdefs.h"
17284/* Override any gcc2 internal prototype to avoid an error. */
17285/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17286 builtin and then its argument prototype would still apply. */
17287char dlerror();
17288
17289int main() {
17290dlerror()
17291; return 0; }
17292EOF
62d0491b 17293if { (eval echo configure:17294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17294 rm -rf conftest*
17295 eval "ac_cv_lib_$ac_lib_var=yes"
17296else
17297 echo "configure: failed program was:" >&5
17298 cat conftest.$ac_ext >&5
17299 rm -rf conftest*
17300 eval "ac_cv_lib_$ac_lib_var=no"
17301fi
17302rm -f conftest*
17303LIBS="$ac_save_LIBS"
17304
17305fi
17306if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17307 echo "$ac_t""yes" 1>&6
17308 cat >> confdefs.h <<\EOF
f6bcfd97
BP
17309#define HAVE_DLERROR 1
17310EOF
17311
698dcdb6
VZ
17312else
17313 echo "$ac_t""no" 1>&6
f6bcfd97
BP
17314fi
17315
17316fi
17317done
17318
3a922bb4
RL
17319 fi
17320 fi
f6bcfd97 17321
3a922bb4
RL
17322 if test "$HAVE_DL_FUNCS" = 0; then
17323 if test "$HAVE_SHL_FUNCS" = 0; then
17324 if test "$USE_UNIX" = 1; then
17325 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
17326 wxUSE_DYNLIB_CLASS=no
17327 else
17328 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
17329 fi
17330 fi
10f2d63a
VZ
17331 fi
17332 fi
17333fi
17334
17335if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 17336 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17337#define wxUSE_DYNLIB_CLASS 1
17338EOF
17339
b12915c1
VZ
17340else
17341 wxUSE_ODBC=no
17342 wxUSE_SERIAL=no
10f2d63a
VZ
17343fi
17344
698dcdb6 17345
1e6feb95
VZ
17346if test "$wxUSE_FONTMAP" = "yes" ; then
17347 cat >> confdefs.h <<\EOF
17348#define wxUSE_FONTMAP 1
17349EOF
17350
17351fi
17352
10f2d63a 17353if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 17354 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17355#define wxUSE_UNICODE 1
17356EOF
17357
17358fi
17359
10f2d63a 17360if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 17361 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17362#define wxUSE_EXPERIMENTAL_PRINTF 1
17363EOF
17364
17365fi
17366
698dcdb6 17367
b12915c1 17368if test "$wxUSE_SERIAL" = "yes" ; then
698dcdb6 17369 cat >> confdefs.h <<\EOF
b12915c1
VZ
17370#define wxUSE_SERIAL 1
17371EOF
17372
17373fi
17374
698dcdb6 17375
10f2d63a
VZ
17376IODBC_C_SRC=""
17377if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 17378 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17379#define wxUSE_ODBC 1
17380EOF
17381
17382 WXODBCFLAG="-D_IODBC_"
17383 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
17384fi
17385
698dcdb6 17386
10f2d63a 17387if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 17388 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17389#define wxUSE_POSTSCRIPT 1
17390EOF
17391
17392fi
17393
698dcdb6 17394cat >> confdefs.h <<\EOF
10f2d63a
VZ
17395#define wxUSE_AFM_FOR_POSTSCRIPT 1
17396EOF
17397
698dcdb6
VZ
17398
17399cat >> confdefs.h <<\EOF
10f2d63a
VZ
17400#define wxUSE_NORMALIZED_PS_FONTS 1
17401EOF
17402
698dcdb6
VZ
17403
17404
10f2d63a 17405if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 17406 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17407#define wxUSE_CONSTRAINTS 1
17408EOF
17409
17410 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
17411fi
17412
17413if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab
RL
17414 if test "$wxUSE_UNIVERSAL" = "yes"; then
17415 echo "configure: warning: MDI is not supported for wxUNIVERSAL yet... disabled" 1>&2
17416 wxUSE_MDI_ARCHITECTURE=no
17417 fi
17418
17419 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17420 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17421#define wxUSE_MDI_ARCHITECTURE 1
17422EOF
17423
fc26f4ab
RL
17424 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
17425 fi
10f2d63a
VZ
17426fi
17427
17428if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 17429 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17430#define wxUSE_DOC_VIEW_ARCHITECTURE 1
17431EOF
17432
17433 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
17434 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17435 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
17436 fi
17437fi
17438
17439if test "$wxUSE_HELP" = "yes"; then
698dcdb6 17440 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17441#define wxUSE_HELP 1
17442EOF
17443
17444 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 17445
77e13408 17446 if test "$wxUSE_MSW" = 1; then
031d8228 17447 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
29fd3c0c
VS
17448 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
17449echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
62d0491b 17450echo "configure:17451: checking for htmlhelp.h" >&5
29fd3c0c
VS
17451if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17452 echo $ac_n "(cached) $ac_c" 1>&6
17453else
17454 cat > conftest.$ac_ext <<EOF
62d0491b 17455#line 17456 "configure"
29fd3c0c
VS
17456#include "confdefs.h"
17457#include <htmlhelp.h>
17458EOF
17459ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
62d0491b 17460{ (eval echo configure:17461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
17461ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17462if test -z "$ac_err"; then
17463 rm -rf conftest*
17464 eval "ac_cv_header_$ac_safe=yes"
17465else
17466 echo "$ac_err" >&5
17467 echo "configure: failed program was:" >&5
17468 cat conftest.$ac_ext >&5
17469 rm -rf conftest*
17470 eval "ac_cv_header_$ac_safe=no"
17471fi
17472rm -f conftest*
17473fi
17474if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17475 echo "$ac_t""yes" 1>&6
17476
17477 cat >> confdefs.h <<\EOF
17478#define wxUSE_MS_HTML_HELP 1
17479EOF
17480
17481
17482else
17483 echo "$ac_t""no" 1>&6
17484
fc26f4ab 17485 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
29fd3c0c
VS
17486 wxUSE_MS_HTML_HELP=no
17487
17488fi
17489
3e44f09d 17490 fi
3379ed37 17491 fi
031d8228
VS
17492
17493 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17494 if test "$wxUSE_HTML" = "yes"; then
17495 cat >> confdefs.h <<\EOF
17496#define wxUSE_WXHTML_HELP 1
17497EOF
17498
17499 else
17500 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17501 wxUSE_WXHTML_HELP=no
17502 fi
17503 fi
10f2d63a
VZ
17504fi
17505
17506if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17507 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 17508 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 17509 else
698dcdb6 17510 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17511#define wxUSE_PRINTING_ARCHITECTURE 1
17512EOF
17513
17514 fi
17515 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17516fi
17517
17518if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 17519 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17520#define wxUSE_PROLOGIO 1
17521EOF
17522
17523fi
17524
17525if test "$wxUSE_RESOURCES" = "yes" ; then
3379ed37 17526 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17527#define wxUSE_RESOURCES 1
17528EOF
17529
3379ed37 17530 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
10f2d63a
VZ
17531fi
17532
17533if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 17534 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17535#define wxUSE_X_RESOURCES 1
17536EOF
17537
17538fi
17539
698dcdb6 17540
77e13408
RL
17541if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
17542 -o "$wxUSE_CLIPBOARD" = "yes" \
17543 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
2b9bdf71 17544 for ac_hdr in ole2.h
10f2d63a 17545do
698dcdb6
VZ
17546ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17547echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
62d0491b 17548echo "configure:17549: checking for $ac_hdr" >&5
698dcdb6
VZ
17549if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17550 echo $ac_n "(cached) $ac_c" 1>&6
17551else
17552 cat > conftest.$ac_ext <<EOF
62d0491b 17553#line 17554 "configure"
10f2d63a 17554#include "confdefs.h"
698dcdb6
VZ
17555#include <$ac_hdr>
17556EOF
17557ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
62d0491b 17558{ (eval echo configure:17559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
17559ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17560if test -z "$ac_err"; then
17561 rm -rf conftest*
17562 eval "ac_cv_header_$ac_safe=yes"
1e487827 17563else
698dcdb6
VZ
17564 echo "$ac_err" >&5
17565 echo "configure: failed program was:" >&5
10f2d63a 17566 cat conftest.$ac_ext >&5
698dcdb6
VZ
17567 rm -rf conftest*
17568 eval "ac_cv_header_$ac_safe=no"
10f2d63a 17569fi
698dcdb6 17570rm -f conftest*
10f2d63a 17571fi
698dcdb6
VZ
17572if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17573 echo "$ac_t""yes" 1>&6
17574 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17575 cat >> confdefs.h <<EOF
17576#define $ac_tr_hdr 1
10f2d63a 17577EOF
698dcdb6
VZ
17578
17579else
17580 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17581fi
17582done
17583
698dcdb6 17584
2b9bdf71
VZ
17585 if test "$ac_cv_header_ole2_h" = "yes" ; then
17586 if test "$GCC" = yes ; then
17587 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
2b9bdf71 17588 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
3d63bc3a 17589 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
2b9bdf71 17590 cat >> confdefs.h <<\EOF
4f11a343
VS
17591#define wxUSE_OLE 1
17592EOF
17593
b64f0a5f 17594
2b9bdf71
VZ
17595 fi
17596
17597 cat >> confdefs.h <<\EOF
17598#define wxUSE_DATAOBJ 1
17599EOF
17600
17601 else
17602 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
17603
17604 wxUSE_CLIPBOARD=no
17605 wxUSE_DRAG_AND_DROP=no
17606 wxUSE_DATAOBJ=no
17607 fi
17608
77e13408 17609 if test "$wxUSE_METAFILE" = "yes"; then
2b9bdf71 17610 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17611#define wxUSE_METAFILE 1
17612EOF
17613
2b9bdf71
VZ
17614
17615 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17616#define wxUSE_ENH_METAFILE 1
17617EOF
17618
2b9bdf71
VZ
17619 fi
17620fi
17621
17622if test "$wxUSE_IPC" = "yes"; then
17623 if test "$wxUSE_SOCKETS" != "yes"; then
17624 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
17625 fi
17626
17627 cat >> confdefs.h <<\EOF
17628#define wxUSE_IPC 1
17629EOF
17630
17631fi
17632
17633if test "$wxUSE_CLIPBOARD" = "yes"; then
17634 cat >> confdefs.h <<\EOF
17635#define wxUSE_CLIPBOARD 1
17636EOF
17637
673f4220 17638
e33ef661 17639 cat >> confdefs.h <<\EOF
673f4220
VZ
17640#define wxUSE_DATAOBJ 1
17641EOF
17642
2b9bdf71
VZ
17643fi
17644
17645if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17646 if test "$wxUSE_GTK" = 1; then
17647 if test "$WXGTK12" != 1; then
17648 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
10f2d63a
VZ
17649 wxUSE_DRAG_AND_DROP=no
17650 fi
17651 fi
17652
2b9bdf71
VZ
17653 if test "$wxUSE_MOTIF" = 1; then
17654 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
17655 wxUSE_DRAG_AND_DROP=no
17656 fi
17657
17658 if test "$wxUSE_MAC" = 1; then
17659 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
17660 wxUSE_DRAG_AND_DROP=no
17661 fi
17662
10f2d63a 17663 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 17664 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17665#define wxUSE_DRAG_AND_DROP 1
17666EOF
17667
17668 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17669 fi
17670
17671fi
17672
17673if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 17674 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17675#define wxUSE_SPLINES 1
17676EOF
17677
17678fi
17679
698dcdb6 17680
1e6feb95
VZ
17681USES_CONTROLS=0
17682if test "$wxUSE_CONTROLS" = "yes"; then
17683 USES_CONTROLS=1
17684fi
17685
10f2d63a 17686if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 17687 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17688#define wxUSE_ACCEL 1
17689EOF
17690
1e6feb95
VZ
17691 USES_CONTROLS=1
17692fi
17693
17694if test "$wxUSE_BUTTON" = "yes"; then
17695 cat >> confdefs.h <<\EOF
17696#define wxUSE_BUTTON 1
17697EOF
17698
17699 USES_CONTROLS=1
17700fi
17701
17702if test "$wxUSE_BMPBUTTON" = "yes"; then
17703 cat >> confdefs.h <<\EOF
17704#define wxUSE_BMPBUTTON 1
17705EOF
17706
17707 USES_CONTROLS=1
17708fi
17709
17710if test "$wxUSE_CALCTRL" = "yes"; then
17711 cat >> confdefs.h <<\EOF
17712#define wxUSE_CALENDARCTRL 1
17713EOF
17714
17715 USES_CONTROLS=1
17716 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
17717fi
17718
17719if test "$wxUSE_CARET" = "yes"; then
698dcdb6 17720 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17721#define wxUSE_CARET 1
17722EOF
17723
1e6feb95 17724 USES_CONTROLS=1
10f2d63a
VZ
17725 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17726fi
17727
17728if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 17729 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17730#define wxUSE_COMBOBOX 1
17731EOF
17732
1e6feb95 17733 USES_CONTROLS=1
10f2d63a
VZ
17734fi
17735
17736if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 17737 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17738#define wxUSE_CHOICE 1
17739EOF
17740
1e6feb95 17741 USES_CONTROLS=1
10f2d63a
VZ
17742fi
17743
17744if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 17745 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17746#define wxUSE_CHECKBOX 1
17747EOF
17748
1e6feb95 17749 USES_CONTROLS=1
10f2d63a
VZ
17750fi
17751
17752if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 17753 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17754#define wxUSE_CHECKLISTBOX 1
17755EOF
17756
1e6feb95 17757 USES_CONTROLS=1
10f2d63a
VZ
17758 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17759fi
17760
17761if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 17762 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17763#define wxUSE_GAUGE 1
17764EOF
17765
1e6feb95 17766 USES_CONTROLS=1
10f2d63a
VZ
17767fi
17768
d6a55c4b
VZ
17769if test "$wxUSE_NEW_GRID" = "yes"; then
17770 wxUSE_GRID="yes"
698dcdb6 17771 cat >> confdefs.h <<\EOF
d6a55c4b 17772#define wxUSE_NEW_GRID 1
10f2d63a
VZ
17773EOF
17774
1e6feb95 17775 USES_CONTROLS=1
d6a55c4b 17776 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
17777fi
17778
d6a55c4b 17779if test "$wxUSE_GRID" = "yes"; then
698dcdb6 17780 cat >> confdefs.h <<\EOF
d6a55c4b 17781#define wxUSE_GRID 1
10f2d63a
VZ
17782EOF
17783
1e6feb95 17784 USES_CONTROLS=1
d6a55c4b 17785 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
17786fi
17787
17788if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17789 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17790#define wxUSE_IMAGLIST 1
17791EOF
17792
17793fi
17794
17795if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 17796 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17797#define wxUSE_LISTBOX 1
17798EOF
17799
1e6feb95 17800 USES_CONTROLS=1
10f2d63a
VZ
17801fi
17802
17803if test "$wxUSE_LISTCTRL" = "yes"; then
17804 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17805 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17806#define wxUSE_LISTCTRL 1
17807EOF
17808
1e6feb95 17809 USES_CONTROLS=1
10f2d63a
VZ
17810 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17811 else
698dcdb6 17812 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17813 fi
17814fi
17815
17816if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 17817 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17818#define wxUSE_NOTEBOOK 1
17819EOF
17820
1e6feb95 17821 USES_CONTROLS=1
10f2d63a
VZ
17822 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17823fi
17824
24176f2c
GD
17825if test "$wxUSE_PROPSHEET" = "yes"; then
17826 cat >> confdefs.h <<\EOF
17827#define wxUSE_PROPSHEET 1
17828EOF
17829
17830 USES_CONTROLS=1
17831 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
17832fi
17833
10f2d63a 17834if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 17835 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17836#define wxUSE_RADIOBOX 1
17837EOF
17838
1e6feb95 17839 USES_CONTROLS=1
10f2d63a
VZ
17840fi
17841
17842if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 17843 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17844#define wxUSE_RADIOBTN 1
17845EOF
17846
1e6feb95 17847 USES_CONTROLS=1
10f2d63a
VZ
17848fi
17849
17850if test "$wxUSE_SASH" = "yes"; then
698dcdb6 17851 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17852#define wxUSE_SASH 1
17853EOF
17854
17855 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17856fi
17857
17858if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 17859 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17860#define wxUSE_SCROLLBAR 1
17861EOF
17862
1e6feb95 17863 USES_CONTROLS=1
741a9306 17864 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
17865fi
17866
17867if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 17868 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17869#define wxUSE_SLIDER 1
17870EOF
17871
1e6feb95 17872 USES_CONTROLS=1
10f2d63a
VZ
17873fi
17874
17875if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 17876 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17877#define wxUSE_SPINBTN 1
17878EOF
17879
1e6feb95 17880 USES_CONTROLS=1
10f2d63a
VZ
17881fi
17882
56cfaa52 17883if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 17884 cat >> confdefs.h <<\EOF
56cfaa52
RR
17885#define wxUSE_SPINCTRL 1
17886EOF
17887
1e6feb95 17888 USES_CONTROLS=1
56cfaa52
RR
17889fi
17890
10f2d63a 17891if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 17892 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17893#define wxUSE_SPLITTER 1
17894EOF
17895
17896 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17897fi
17898
17899if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 17900 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17901#define wxUSE_STATBMP 1
17902EOF
17903
1e6feb95 17904 USES_CONTROLS=1
10f2d63a
VZ
17905fi
17906
17907if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 17908 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17909#define wxUSE_STATBOX 1
17910EOF
17911
1e6feb95
VZ
17912 USES_CONTROLS=1
17913fi
17914
17915if test "$wxUSE_STATTEXT" = "yes"; then
17916 cat >> confdefs.h <<\EOF
17917#define wxUSE_STATTEXT 1
17918EOF
17919
17920 USES_CONTROLS=1
10f2d63a
VZ
17921fi
17922
17923if test "$wxUSE_STATLINE" = "yes"; then
17924 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 17925 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 17926 else
698dcdb6 17927 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17928#define wxUSE_STATLINE 1
17929EOF
17930
1e6feb95 17931 USES_CONTROLS=1
10f2d63a
VZ
17932 fi
17933fi
17934
17935if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 17936 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17937#define wxUSE_STATUSBAR 1
17938EOF
17939
1e6feb95 17940 USES_CONTROLS=1
698dcdb6 17941
2286341c 17942 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
17943fi
17944
17945if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 17946 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17947#define wxUSE_TAB_DIALOG 1
17948EOF
17949
17950 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17951fi
17952
1e6feb95
VZ
17953if test "$wxUSE_TEXTCTRL" = "yes"; then
17954 cat >> confdefs.h <<\EOF
17955#define wxUSE_TEXTCTRL 1
17956EOF
17957
17958 USES_CONTROLS=1
17959 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17960fi
17961
1db8dc4a 17962if test "$wxUSE_TOGGLEBTN" = "yes"; then
fc26f4ab
RL
17963 if test "$wxUSE_MAC" = 1 -o "$wxUSE_UNIVERSAL" = "yes"; then
17964 echo "configure: warning: Toggle button not yet supported under Mac OS X or wxUNIVERSAL... disabled" 1>&2
a45d7ab7
GD
17965 wxUSE_TOGGLEBTN=no
17966 fi
17967
17968 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17969 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
17970#define wxUSE_TOGGLEBTN 1
17971EOF
17972
1e6feb95 17973 USES_CONTROLS=1
a45d7ab7 17974 fi
1db8dc4a
VZ
17975fi
17976
360d6699 17977if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 17978 cat >> confdefs.h <<\EOF
360d6699
VZ
17979#define wxUSE_TOOLBAR_SIMPLE 1
17980EOF
17981
17982 wxUSE_TOOLBAR="yes"
1e6feb95 17983 USES_CONTROLS=1
360d6699
VZ
17984fi
17985
10f2d63a 17986if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 17987 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17988#define wxUSE_TOOLBAR 1
17989EOF
17990
1e6feb95 17991 USES_CONTROLS=1
698dcdb6 17992
360d6699
VZ
17993 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17994 wxUSE_TOOLBAR_NATIVE="yes"
17995 fi
17996
1e6feb95
VZ
17997 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17998 cat >> confdefs.h <<\EOF
360d6699
VZ
17999#define wxUSE_TOOLBAR_NATIVE 1
18000EOF
18001
1e6feb95
VZ
18002 USES_CONTROLS=1
18003 fi
18004
18005 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
18006fi
18007
10f2d63a
VZ
18008if test "$wxUSE_TOOLTIPS" = "yes"; then
18009 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 18010 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
10f2d63a
VZ
18011 else
18012 if test "$wxUSE_WINE" = 1; then
698dcdb6 18013 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
10f2d63a 18014 else
698dcdb6 18015 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18016#define wxUSE_TOOLTIPS 1
18017EOF
18018
18019 fi
18020 fi
18021fi
18022
18023if test "$wxUSE_TREECTRL" = "yes"; then
18024 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 18025 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18026#define wxUSE_TREECTRL 1
18027EOF
18028
1e6feb95 18029 USES_CONTROLS=1
10f2d63a
VZ
18030 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
18031 else
698dcdb6 18032 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
18033 fi
18034fi
18035
9f41d601 18036if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65
GD
18037 if test "$wxUSE_MAC" = 1; then
18038 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
18039 else
18040 cat >> confdefs.h <<\EOF
9f41d601
RR
18041#define wxUSE_POPUPWIN 1
18042EOF
18043
6abe4b65
GD
18044 USES_CONTROLS=1
18045 fi
9f41d601
RR
18046fi
18047
1e6feb95
VZ
18048if test "$USES_CONTROLS" = 1; then
18049 cat >> confdefs.h <<\EOF
18050#define wxUSE_CONTROLS 1
10f2d63a
VZ
18051EOF
18052
10f2d63a
VZ
18053fi
18054
1e6feb95 18055
24176f2c
GD
18056if test "$wxUSE_TREELAYOUT" = "yes"; then
18057 cat >> confdefs.h <<\EOF
18058#define wxUSE_TREELAYOUT 1
18059EOF
18060
18061 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
18062fi
1e6feb95 18063
24fd6d87
VZ
18064if test "$wxUSE_DRAGIMAGE" = "yes"; then
18065 cat >> confdefs.h <<\EOF
18066#define wxUSE_DRAGIMAGE 1
18067EOF
18068
18069 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
18070fi
18071
1e6feb95 18072if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 18073 cat >> confdefs.h <<\EOF
1e6feb95 18074#define wxUSE_MENUS 1
10f2d63a
VZ
18075EOF
18076
1e6feb95 18077 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
18078fi
18079
1e6feb95
VZ
18080if test "$wxUSE_METAFILE" = "yes"; then
18081 cat >> confdefs.h <<\EOF
18082#define wxUSE_METAFILE 1
10f2d63a
VZ
18083EOF
18084
10f2d63a
VZ
18085fi
18086
1e6feb95
VZ
18087if test "$wxUSE_MIMETYPE" = "yes"; then
18088 cat >> confdefs.h <<\EOF
18089#define wxUSE_MIMETYPE 1
10f2d63a
VZ
18090EOF
18091
10f2d63a
VZ
18092fi
18093
3e44f09d
VZ
18094if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
18095 cat >> confdefs.h <<\EOF
18096#define wxUSE_SYSTEM_OPTIONS 1
18097EOF
18098
18099fi
18100
10f2d63a 18101if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 18102 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18103#define wxUSE_MINIFRAME 1
18104EOF
18105
18106 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
18107fi
18108
18109if test "$wxUSE_HTML" = "yes"; then
698dcdb6 18110 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18111#define wxUSE_HTML 1
18112EOF
18113
18114 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
18115fi
18116
18117if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 18118 cat >> confdefs.h <<\EOF
1e487827
VS
18119#define wxUSE_VALIDATORS 1
18120EOF
703e0a69 18121
698dcdb6
VZ
18122 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
18123fi
18124
edae8572
VZ
18125if test "$wxUSE_PALETTE" = "yes" ; then
18126 cat >> confdefs.h <<\EOF
18127#define wxUSE_PALETTE 1
18128EOF
18129
18130fi
18131
698dcdb6
VZ
18132if test "$wxUSE_IMAGE" = "yes" ; then
18133 cat >> confdefs.h <<\EOF
18134#define wxUSE_IMAGE 1
18135EOF
18136
18137fi
18138
18139if test "$wxUSE_GIF" = "yes" ; then
18140 cat >> confdefs.h <<\EOF
18141#define wxUSE_GIF 1
18142EOF
18143
18144fi
18145
18146if test "$wxUSE_PCX" = "yes" ; then
18147 cat >> confdefs.h <<\EOF
18148#define wxUSE_PCX 1
18149EOF
18150
18151fi
18152
18153if test "$wxUSE_PNM" = "yes" ; then
18154 cat >> confdefs.h <<\EOF
18155#define wxUSE_PNM 1
18156EOF
18157
18158fi
18159
18160if test "$wxUSE_XPM" = "yes" ; then
18161 cat >> confdefs.h <<\EOF
18162#define wxUSE_XPM 1
18163EOF
18164
18165fi
18166
18167
1e6feb95
VZ
18168if test "$wxUSE_CHOICEDLG" = "yes"; then
18169 cat >> confdefs.h <<\EOF
18170#define wxUSE_CHOICEDLG 1
18171EOF
18172
18173fi
18174
18175if test "$wxUSE_COLOURDLG" = "yes"; then
18176 cat >> confdefs.h <<\EOF
18177#define wxUSE_COLOURDLG 1
18178EOF
18179
18180fi
18181
18182if test "$wxUSE_FILEDLG" = "yes"; then
18183 cat >> confdefs.h <<\EOF
18184#define wxUSE_FILEDLG 1
18185EOF
18186
18187fi
18188
8db37e06
VZ
18189if test "$wxUSE_FINDREPLDLG" = "yes"; then
18190 cat >> confdefs.h <<\EOF
18191#define wxUSE_FINDREPLDLG 1
18192EOF
18193
18194fi
18195
1e6feb95
VZ
18196if test "$wxUSE_FONTDLG" = "yes"; then
18197 cat >> confdefs.h <<\EOF
18198#define wxUSE_FONTDLG 1
18199EOF
18200
18201fi
18202
18203if test "$wxUSE_DIRDLG" = "yes"; then
18204 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18205 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
18206 else
18207 if test "$wxUSE_TREECTRL" != "yes"; then
18208 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
18209 else
18210 cat >> confdefs.h <<\EOF
18211#define wxUSE_DIRDLG 1
18212EOF
18213
18214 fi
18215 fi
18216fi
18217
18218if test "$wxUSE_MSGDLG" = "yes"; then
18219 cat >> confdefs.h <<\EOF
18220#define wxUSE_MSGDLG 1
18221EOF
18222
18223fi
18224
18225if test "$wxUSE_NUMBERDLG" = "yes"; then
18226 cat >> confdefs.h <<\EOF
18227#define wxUSE_NUMBERDLG 1
18228EOF
18229
18230fi
18231
18232if test "$wxUSE_PROGRESSDLG" = "yes"; then
18233 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18234 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
18235 else
18236 cat >> confdefs.h <<\EOF
18237#define wxUSE_PROGRESSDLG 1
18238EOF
18239
18240 fi
18241fi
18242
cbca9943
VZ
18243if test "$wxUSE_SPLASH" = "yes"; then
18244 cat >> confdefs.h <<\EOF
18245#define wxUSE_SPLASH 1
18246EOF
18247
18248fi
18249
1e6feb95
VZ
18250if test "$wxUSE_STARTUP_TIPS" = "yes"; then
18251 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18252 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
18253 else
18254 cat >> confdefs.h <<\EOF
18255#define wxUSE_STARTUP_TIPS 1
18256EOF
18257
18258 fi
18259fi
18260
18261if test "$wxUSE_TEXTDLG" = "yes"; then
18262 cat >> confdefs.h <<\EOF
18263#define wxUSE_TEXTDLG 1
18264EOF
18265
18266fi
18267
b1f5d087
VZ
18268if test "$wxUSE_WIZARDDLG" = "yes"; then
18269 cat >> confdefs.h <<\EOF
18270#define wxUSE_WIZARDDLG 1
18271EOF
18272
18273 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
18274fi
18275
1e6feb95 18276
698dcdb6
VZ
18277if test "$cross_compiling" = "yes"; then
18278 OSINFO="\"$host\""
18279else
18280 OSINFO=`uname -s -r -m`
18281 OSINFO="\"$OSINFO\""
18282fi
18283
18284cat >> confdefs.h <<EOF
18285#define WXWIN_OS_DESCRIPTION $OSINFO
18286EOF
18287
18288
18289
06dda230
VZ
18290if test "x$prefix" != "xNONE"; then
18291 wxPREFIX=$prefix
18292else
18293 wxPREFIX=$ac_default_prefix
18294fi
18295
7e67ed0d 18296cat >> confdefs.h <<EOF
06dda230 18297#define wxINSTALL_PREFIX "$wxPREFIX"
7e67ed0d
VZ
18298EOF
18299
18300
18301
698dcdb6 18302
3a922bb4 18303
f11bdd03 18304if test "$wxUSE_MAC" = 1 ; then
3d63bc3a 18305 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
698dcdb6 18306fi
3a922bb4 18307
3d63bc3a
RL
18308
18309LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS"
18310
698dcdb6 18311if test "$wxUSE_GUI" = "yes"; then
3d63bc3a
RL
18312
18313 LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS"
3a922bb4
RL
18314
18315
18316 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
18317 drawing dynamic erase event exec font image \
18318 minimal richedit rotate widgets"
18319
3a922bb4
RL
18320 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
18321else
18322 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
18323fi
18324
698dcdb6 18325
d714471b 18326INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
3e44f09d
VZ
18327$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
18328$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
698dcdb6 18329
63e7762e 18330if test "$wxUSE_GTK" = 1; then
3d63bc3a 18331 WXCONFIG_INCLUDE=
698dcdb6
VZ
18332else
18333 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
18334fi
18335
18336if test "$GXX" = yes ; then
18337 CXXWARNINGS="-Wall"
88e30f2b
RL
18338
18339 if test "$wxUSE_NO_DEPS" = "no" ; then
18340 CFLAGS="-MMD $CFLAGS"
18341 CXXFLAGS="-MMD $CXXFLAGS"
18342 fi
18343fi
18344
3d63bc3a 18345EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG$PROFILE $OPTIMISE $INCLUDES"
698dcdb6
VZ
18346
18347CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
18348CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
18349
3d63bc3a 18350LDFLAGS="$LDFLAGS$PROFILE"
698dcdb6 18351
698dcdb6
VZ
18352SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
32832908 18420
2f51a9ec
GD
18421
18422
18423
18424
f6bcfd97 18425
dad6c0ea 18426
caa2c79b 18427
3711412e 18428
1e6feb95
VZ
18429
18430
0f3f1cbc 18431
00c81359 18432
62d0491b 18433
10f2d63a
VZ
18434
18435
698dcdb6 18436echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
62d0491b 18437echo "configure:18438: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
18438set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
18439if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
18440 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18441else
698dcdb6 18442 cat > conftestmake <<\EOF
10f2d63a
VZ
18443all:
18444 @echo 'ac_maketemp="${MAKE}"'
18445EOF
18446# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 18447eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
18448if test -n "$ac_maketemp"; then
18449 eval ac_cv_prog_make_${ac_make}_set=yes
18450else
18451 eval ac_cv_prog_make_${ac_make}_set=no
18452fi
698dcdb6 18453rm -f conftestmake
10f2d63a
VZ
18454fi
18455if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 18456 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
18457 SET_MAKE=
18458else
698dcdb6 18459 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18460 SET_MAKE="MAKE=${MAKE-make}"
18461fi
18462
698dcdb6 18463
3a922bb4
RL
18464if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
18465 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 18466fi
665bbe97 18467
698dcdb6 18468
10f2d63a 18469
2224580a 18470if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 18471 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
18472 wx_cv_path_ifs=$PATH_IFS
18473 wx_cv_program_ext=$PROGRAM_EXT
18474 wx_cv_target_library=$WX_TARGET_LIBRARY
7b6058cd 18475 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
3711412e 18476 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
93a20a27 18477 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
7b6058cd 18478 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
698dcdb6 18479 subdirs="demos samples utils contrib"
2224580a
VZ
18480
18481fi
10f2d63a 18482
698dcdb6
VZ
18483trap '' 1 2 15
18484cat > confcache <<\EOF
10f2d63a
VZ
18485# This file is a shell script that caches the results of configure
18486# tests run on this system so they can be shared between configure
698dcdb6
VZ
18487# scripts and configure runs. It is not useful on other systems.
18488# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 18489#
698dcdb6
VZ
18490# By default, configure uses ./config.cache as the cache file,
18491# creating it if it does not exist already. You can give configure
18492# the --cache-file=FILE option to use a different cache file; that is
18493# what configure does when it calls configure scripts in
18494# subdirectories, so they share the cache.
18495# Giving --cache-file=/dev/null disables caching, for debugging configure.
18496# config.status only pays attention to the cache file if you give it the
18497# --recheck option to rerun configure.
10f2d63a 18498#
698dcdb6 18499EOF
10f2d63a
VZ
18500# The following way of writing the cache mishandles newlines in values,
18501# but we know of no workaround that is simple, portable, and efficient.
18502# So, don't put newlines in cache variables' values.
18503# Ultrix sh set writes to stderr and can't be redirected directly,
18504# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
18505(set) 2>&1 |
18506 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18507 *ac_space=\ *)
18508 # `set' does not quote correctly, so add quotes (double-quote substitution
18509 # turns \\\\ into \\, and sed turns \\ into \).
18510 sed -n \
18511 -e "s/'/'\\\\''/g" \
18512 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18513 ;;
18514 *)
18515 # `set' quotes correctly as required by POSIX, so do not add quotes.
18516 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18517 ;;
18518 esac >> confcache
18519if cmp -s $cache_file confcache; then
18520 :
18521else
10f2d63a 18522 if test -w $cache_file; then
698dcdb6
VZ
18523 echo "updating cache $cache_file"
18524 cat confcache > $cache_file
10f2d63a
VZ
18525 else
18526 echo "not updating unwritable cache $cache_file"
18527 fi
18528fi
18529rm -f confcache
18530
698dcdb6
VZ
18531trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18532
10f2d63a
VZ
18533test "x$prefix" = xNONE && prefix=$ac_default_prefix
18534# Let make expand exec_prefix.
18535test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18536
698dcdb6
VZ
18537# Any assignment to VPATH causes Sun make to only execute
18538# the first set of double-colon rules, so remove it if not needed.
18539# If there is a colon in the path, we need to keep it.
10f2d63a 18540if test "x$srcdir" = x.; then
698dcdb6 18541 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
18542fi
18543
698dcdb6
VZ
18544trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18545
10f2d63a
VZ
18546DEFS=-DHAVE_CONFIG_H
18547
698dcdb6 18548# Without the "./", some shells look in PATH for config.status.
10f2d63a 18549: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
18550
18551echo creating $CONFIG_STATUS
18552rm -f $CONFIG_STATUS
18553cat > $CONFIG_STATUS <<EOF
18554#! /bin/sh
10f2d63a
VZ
18555# Generated automatically by configure.
18556# Run this file to recreate the current configuration.
698dcdb6
VZ
18557# This directory was configured as follows,
18558# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18559#
18560# $0 $ac_configure_args
18561#
10f2d63a 18562# Compiler output produced by configure, useful for debugging
698dcdb6 18563# configure, is in ./config.log if it exists.
1e487827 18564
698dcdb6
VZ
18565ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18566for ac_option
10f2d63a 18567do
698dcdb6 18568 case "\$ac_option" in
10f2d63a 18569 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
18570 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18571 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18572 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18573 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18574 exit 0 ;;
18575 -help | --help | --hel | --he | --h)
18576 echo "\$ac_cs_usage"; exit 0 ;;
18577 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
18578 esac
18579done
18580
698dcdb6
VZ
18581ac_given_srcdir=$srcdir
18582ac_given_INSTALL="$INSTALL"
703e0a69 18583
698dcdb6
VZ
18584trap 'rm -fr `echo "
18585 wx-config
18586 src/make.env
18587 src/makeprog.env
18588 src/makelib.env
18589 Makefile
18590 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 18591EOF
698dcdb6 18592cat >> $CONFIG_STATUS <<EOF
1e487827 18593
698dcdb6
VZ
18594# Protect against being on the right side of a sed subst in config.status.
18595sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18596 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18597$ac_vpsub
18598$extrasub
18599s%@SHELL@%$SHELL%g
18600s%@CFLAGS@%$CFLAGS%g
18601s%@CPPFLAGS@%$CPPFLAGS%g
18602s%@CXXFLAGS@%$CXXFLAGS%g
18603s%@FFLAGS@%$FFLAGS%g
18604s%@DEFS@%$DEFS%g
18605s%@LDFLAGS@%$LDFLAGS%g
18606s%@LIBS@%$LIBS%g
18607s%@exec_prefix@%$exec_prefix%g
18608s%@prefix@%$prefix%g
18609s%@program_transform_name@%$program_transform_name%g
18610s%@bindir@%$bindir%g
18611s%@sbindir@%$sbindir%g
18612s%@libexecdir@%$libexecdir%g
18613s%@datadir@%$datadir%g
18614s%@sysconfdir@%$sysconfdir%g
18615s%@sharedstatedir@%$sharedstatedir%g
18616s%@localstatedir@%$localstatedir%g
18617s%@libdir@%$libdir%g
18618s%@includedir@%$includedir%g
18619s%@oldincludedir@%$oldincludedir%g
18620s%@infodir@%$infodir%g
18621s%@mandir@%$mandir%g
18622s%@host@%$host%g
18623s%@host_alias@%$host_alias%g
18624s%@host_cpu@%$host_cpu%g
18625s%@host_vendor@%$host_vendor%g
18626s%@host_os@%$host_os%g
18627s%@target@%$target%g
18628s%@target_alias@%$target_alias%g
18629s%@target_cpu@%$target_cpu%g
18630s%@target_vendor@%$target_vendor%g
18631s%@target_os@%$target_os%g
18632s%@build@%$build%g
18633s%@build_alias@%$build_alias%g
18634s%@build_cpu@%$build_cpu%g
18635s%@build_vendor@%$build_vendor%g
18636s%@build_os@%$build_os%g
18637s%@CC@%$CC%g
18638s%@CPP@%$CPP%g
18639s%@CXX@%$CXX%g
698dcdb6
VZ
18640s%@RANLIB@%$RANLIB%g
18641s%@AR@%$AR%g
18642s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
d6853540 18643s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6054113a 18644s%@INSTALL_DATA@%$INSTALL_DATA%g
698dcdb6
VZ
18645s%@STRIP@%$STRIP%g
18646s%@YACC@%$YACC%g
18647s%@LEX@%$LEX%g
18648s%@LEXLIB@%$LEXLIB%g
18649s%@LN_S@%$LN_S%g
18650s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
698dcdb6
VZ
18651s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18652s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 18653s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
18654s%@X_CFLAGS@%$X_CFLAGS%g
18655s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18656s%@X_LIBS@%$X_LIBS%g
18657s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3a922bb4 18658s%@RESCOMP@%$RESCOMP%g
698dcdb6 18659s%@DEREZ@%$DEREZ%g
3a922bb4 18660s%@CXXCPP@%$CXXCPP%g
698dcdb6
VZ
18661s%@LEX_STEM@%$LEX_STEM%g
18662s%@PATH_IFS@%$PATH_IFS%g
18663s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18664s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18665s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
698dcdb6
VZ
18666s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18667s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
77e13408 18668s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
698dcdb6
VZ
18669s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18670s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18671s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
698dcdb6 18672s%@PROGRAM_EXT@%$PROGRAM_EXT%g
698dcdb6
VZ
18673s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18674s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
698dcdb6
VZ
18675s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18676s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18677s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
698dcdb6
VZ
18678s%@WX_ALL@%$WX_ALL%g
18679s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18680s%@SHARED_LD@%$SHARED_LD%g
18681s%@PIC_FLAG@%$PIC_FLAG%g
698dcdb6
VZ
18682s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18683s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
3a922bb4
RL
18684s%@SONAME_FLAGS@%$SONAME_FLAGS%g
18685s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
698dcdb6
VZ
18686s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18687s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18688s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18689s%@USE_GUI@%$USE_GUI%g
18690s%@AFMINSTALL@%$AFMINSTALL%g
18691s%@TOOLKIT@%$TOOLKIT%g
698dcdb6 18692s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
1e6feb95 18693s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
3a922bb4
RL
18694s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
18695s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
00c81359 18696s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
3a922bb4
RL
18697s%@cross_compiling@%$cross_compiling%g
18698s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
18699s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
698dcdb6
VZ
18700s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18701s%@ALL_OBJECTS@%$ALL_OBJECTS%g
698dcdb6
VZ
18702s%@GUIDIST@%$GUIDIST%g
18703s%@PORT_FILES@%$PORT_FILES%g
18704s%@DISTDIR@%$DISTDIR%g
698dcdb6 18705s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
62d0491b 18706s%@LDFLAGS_GL@%$LDFLAGS_GL%g
698dcdb6 18707s%@OPENGL_LIBS@%$OPENGL_LIBS%g
3d63bc3a 18708s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
698dcdb6 18709s%@EXTRADEFS@%$EXTRADEFS%g
698dcdb6 18710s%@RESFLAGS@%$RESFLAGS%g
3a922bb4 18711s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
d08b457b 18712s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
e23081de 18713s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
698dcdb6
VZ
18714s%@LIBWXMACRES@%$LIBWXMACRES%g
18715s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
2baaf735 18716s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
698dcdb6
VZ
18717s%@DLLTOOL@%$DLLTOOL%g
18718s%@AS@%$AS%g
18719s%@NM@%$NM%g
18720s%@LD@%$LD%g
18721s%@MAKEINFO@%$MAKEINFO%g
18722s%@SET_MAKE@%$SET_MAKE%g
18723s%@subdirs@%$subdirs%g
1e487827 18724
1e487827 18725CEOF
1e487827
VS
18726EOF
18727
698dcdb6
VZ
18728cat >> $CONFIG_STATUS <<\EOF
18729
18730# Split the substitutions into bite-sized pieces for seds with
18731# small command number limits, like on Digital OSF/1 and HP-UX.
18732ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18733ac_file=1 # Number of current file.
18734ac_beg=1 # First line for current file.
18735ac_end=$ac_max_sed_cmds # Line after last line for current file.
18736ac_more_lines=:
18737ac_sed_cmds=""
18738while $ac_more_lines; do
18739 if test $ac_beg -gt 1; then
18740 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18741 else
18742 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18743 fi
18744 if test ! -s conftest.s$ac_file; then
18745 ac_more_lines=false
18746 rm -f conftest.s$ac_file
18747 else
18748 if test -z "$ac_sed_cmds"; then
18749 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 18750 else
698dcdb6 18751 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 18752 fi
698dcdb6
VZ
18753 ac_file=`expr $ac_file + 1`
18754 ac_beg=$ac_end
18755 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 18756 fi
698dcdb6
VZ
18757done
18758if test -z "$ac_sed_cmds"; then
18759 ac_sed_cmds=cat
18760fi
18761EOF
10f2d63a 18762
698dcdb6
VZ
18763cat >> $CONFIG_STATUS <<EOF
18764
18765CONFIG_FILES=\${CONFIG_FILES-"wx-config
18766 src/make.env
18767 src/makeprog.env
18768 src/makelib.env
18769 Makefile
18770 "}
10f2d63a 18771EOF
698dcdb6
VZ
18772cat >> $CONFIG_STATUS <<\EOF
18773for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 18774 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
18775 case "$ac_file" in
18776 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18777 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18778 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
18779 esac
18780
698dcdb6 18781 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 18782
698dcdb6
VZ
18783 # Remove last slash and all that follows it. Not all systems have dirname.
18784 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18785 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18786 # The file is in a subdirectory.
18787 test ! -d "$ac_dir" && mkdir "$ac_dir"
18788 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 18789 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 18790 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
18791 else
18792 ac_dir_suffix= ac_dots=
18793 fi
18794
698dcdb6
VZ
18795 case "$ac_given_srcdir" in
18796 .) srcdir=.
18797 if test -z "$ac_dots"; then top_srcdir=.
18798 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18799 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 18800 *) # Relative path.
698dcdb6
VZ
18801 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18802 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
18803 esac
18804
698dcdb6
VZ
18805 case "$ac_given_INSTALL" in
18806 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18807 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
18808 esac
18809
698dcdb6
VZ
18810 echo creating "$ac_file"
18811 rm -f "$ac_file"
18812 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18813 case "$ac_file" in
18814 *Makefile*) ac_comsub="1i\\
18815# $configure_input" ;;
18816 *) ac_comsub= ;;
18817 esac
10f2d63a 18818
698dcdb6
VZ
18819 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18820 sed -e "$ac_comsub
18821s%@configure_input@%$configure_input%g
18822s%@srcdir@%$srcdir%g
18823s%@top_srcdir@%$top_srcdir%g
18824s%@INSTALL@%$INSTALL%g
18825" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18826fi; done
18827rm -f conftest.s*
10f2d63a
VZ
18828
18829# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18830# NAME is the cpp macro being defined and VALUE is the value it is being given.
18831#
18832# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
18833ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18834ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18835ac_dC='\3'
18836ac_dD='%g'
18837# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18838ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18839ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 18840ac_uC=' '
698dcdb6
VZ
18841ac_uD='\4%g'
18842# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18843ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18844ac_eB='$%\1#\2define\3'
18845ac_eC=' '
18846ac_eD='%g'
10f2d63a 18847
698dcdb6
VZ
18848if test "${CONFIG_HEADERS+set}" != set; then
18849EOF
18850cat >> $CONFIG_STATUS <<EOF
18851 CONFIG_HEADERS="setup.h:setup.h.in"
18852EOF
18853cat >> $CONFIG_STATUS <<\EOF
18854fi
18855for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 18856 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
18857 case "$ac_file" in
18858 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18859 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18860 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
18861 esac
18862
698dcdb6
VZ
18863 echo creating $ac_file
18864
18865 rm -f conftest.frag conftest.in conftest.out
18866 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18867 cat $ac_file_inputs > conftest.in
18868
18869EOF
18870
18871# Transform confdefs.h into a sed script conftest.vals that substitutes
18872# the proper values into config.h.in to produce config.h. And first:
18873# Protect against being on the right side of a sed subst in config.status.
18874# Protect against being in an unquoted here document in config.status.
18875rm -f conftest.vals
18876cat > conftest.hdr <<\EOF
18877s/[\\&%]/\\&/g
18878s%[\\$`]%\\&%g
18879s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18880s%ac_d%ac_u%gp
18881s%ac_u%ac_e%gp
18882EOF
18883sed -n -f conftest.hdr confdefs.h > conftest.vals
18884rm -f conftest.hdr
10f2d63a
VZ
18885
18886# This sed command replaces #undef with comments. This is necessary, for
18887# example, in the case of _POSIX_SOURCE, which is predefined and required
18888# on some systems where configure will not decide to define it.
698dcdb6
VZ
18889cat >> conftest.vals <<\EOF
18890s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
18891EOF
18892
698dcdb6
VZ
18893# Break up conftest.vals because some shells have a limit on
18894# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
18895
18896rm -f conftest.tail
698dcdb6 18897while :
10f2d63a 18898do
698dcdb6
VZ
18899 ac_lines=`grep -c . conftest.vals`
18900 # grep -c gives empty output for an empty file on some AIX systems.
18901 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18902 # Write a limited-size here document to conftest.frag.
18903 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18904 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 18905 echo 'CEOF
698dcdb6
VZ
18906 sed -f conftest.frag conftest.in > conftest.out
18907 rm -f conftest.in
18908 mv conftest.out conftest.in
18909' >> $CONFIG_STATUS
18910 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18911 rm -f conftest.vals
18912 mv conftest.tail conftest.vals
10f2d63a 18913done
698dcdb6
VZ
18914rm -f conftest.vals
18915
18916cat >> $CONFIG_STATUS <<\EOF
18917 rm -f conftest.frag conftest.h
18918 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18919 cat conftest.in >> conftest.h
18920 rm -f conftest.in
18921 if cmp -s $ac_file conftest.h 2>/dev/null; then
18922 echo "$ac_file is unchanged"
18923 rm -f conftest.h
10f2d63a 18924 else
698dcdb6
VZ
18925 # Remove last slash and all that follows it. Not all systems have dirname.
18926 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 18927 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
18928 # The file is in a subdirectory.
18929 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 18930 fi
698dcdb6
VZ
18931 rm -f $ac_file
18932 mv conftest.h $ac_file
10f2d63a 18933 fi
698dcdb6
VZ
18934fi; done
18935
10f2d63a 18936EOF
698dcdb6 18937cat >> $CONFIG_STATUS <<EOF
10f2d63a 18938
3a922bb4 18939 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
698dcdb6
VZ
18940 LN_S="${LN_S}"
18941
18942
18943EOF
18944cat >> $CONFIG_STATUS <<\EOF
10f2d63a 18945
652d930d 18946 if test ! -h wx-config; then
991a5759 18947 chmod +x wx-config
3a922bb4
RL
18948 mv wx-config wx${TOOLCHAIN_NAME}-config
18949 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 18950 fi
665bbe97 18951
00cf1208
RR
18952 if test ! -d lib; then
18953 mkdir lib
18954 fi
18955 if test ! -d lib/wx; then
18956 mkdir lib/wx
18957 fi
18958 if test ! -d lib/wx/include; then
18959 mkdir lib/wx/include
18960 fi
3a922bb4
RL
18961 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
18962 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 18963 fi
3a922bb4
RL
18964 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
18965 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
18966 fi
18967 if test -f setup.h; then
3a922bb4 18968 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 18969 fi
698dcdb6
VZ
18970
18971exit 0
10f2d63a
VZ
18972EOF
18973chmod +x $CONFIG_STATUS
698dcdb6
VZ
18974rm -fr confdefs* $ac_clean_files
18975test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 18976
2224580a
VZ
18977if test "$no_recursion" != yes; then
18978
18979 # Remove --cache-file and --srcdir arguments so they do not pile up.
18980 ac_sub_configure_args=
18981 ac_prev=
18982 for ac_arg in $ac_configure_args; do
18983 if test -n "$ac_prev"; then
18984 ac_prev=
18985 continue
18986 fi
698dcdb6 18987 case "$ac_arg" in
2224580a
VZ
18988 -cache-file | --cache-file | --cache-fil | --cache-fi \
18989 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18990 ac_prev=cache_file ;;
18991 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 18992 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
18993 ;;
18994 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18995 ac_prev=srcdir ;;
18996 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18997 ;;
18998 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18999 esac
19000 done
19001
698dcdb6 19002 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
19003
19004 # Do not complain, so a configure script can configure whichever
19005 # parts of a large source tree are present.
698dcdb6
VZ
19006 if test ! -d $srcdir/$ac_config_dir; then
19007 continue
19008 fi
19009
19010 echo configuring in $ac_config_dir
2224580a 19011
698dcdb6 19012 case "$srcdir" in
2224580a
VZ
19013 .) ;;
19014 *)
698dcdb6
VZ
19015 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
19016 else
19017 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
19018 fi
19019 ;;
2224580a
VZ
19020 esac
19021
19022 ac_popdir=`pwd`
698dcdb6 19023 cd $ac_config_dir
2224580a 19024
698dcdb6
VZ
19025 # A "../" for each directory in /$ac_config_dir.
19026 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 19027
698dcdb6 19028 case "$srcdir" in
2224580a
VZ
19029 .) # No --srcdir option. We are building in place.
19030 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
19031 /*) # Absolute path.
19032 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 19033 *) # Relative path.
698dcdb6 19034 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
19035 esac
19036
19037 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
19038 if test -f $ac_sub_srcdir/configure; then
19039 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
19040 elif test -f $ac_sub_srcdir/configure.in; then
19041 ac_sub_configure=$ac_configure
19042 else
698dcdb6 19043 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
19044 ac_sub_configure=
19045 fi
19046
19047 # The recursion is here.
19048 if test -n "$ac_sub_configure"; then
698dcdb6 19049
2224580a 19050 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
19051 case "$cache_file" in
19052 /*) ac_sub_cache_file=$cache_file ;;
2224580a 19053 *) # Relative path.
698dcdb6 19054 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 19055 esac
698dcdb6
VZ
19056 case "$ac_given_INSTALL" in
19057 [/$]*) INSTALL="$ac_given_INSTALL" ;;
19058 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
19059 esac
2224580a 19060
698dcdb6 19061 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 19062 # The eval makes quoting arguments work.
698dcdb6
VZ
19063 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
19064 then :
19065 else
19066 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
19067 fi
2224580a
VZ
19068 fi
19069
19070 cd $ac_popdir
19071 done
19072fi
19073
698dcdb6 19074