]> git.saurik.com Git - wxWidgets.git/blame - configure
compilation fix for DJGPP
[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
38
39
40
41
698dcdb6
VZ
42
43
44# Guess values for system-dependent variables and create Makefiles.
45# Generated automatically using autoconf version 2.13
46# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
47#
48# This configure script is free software; the Free Software Foundation
49# gives unlimited permission to copy, distribute and modify it.
50
51# Defaults:
52ac_help=
53ac_default_prefix=/usr/local
54# Any additions from configure.in:
55ac_help="$ac_help
8168de4c 56 --enable-gui use GUI classes"
1e6feb95 57ac_help="$ac_help
8168de4c 58 --enable-universal use wxWindows GUI controls instead of native ones"
698dcdb6
VZ
59ac_help="$ac_help
60 --with-gtk use GTK+"
61ac_help="$ac_help
62 --with-motif use Motif/Lesstif"
63ac_help="$ac_help
64 --with-mac use Mac OS X"
65ac_help="$ac_help
66 --with-wine use WINE"
67ac_help="$ac_help
77e13408 68 --with-msw use MS-Windows"
698dcdb6
VZ
69ac_help="$ac_help
70 --with-pm use OS/2 Presentation Manager"
1e6feb95 71ac_help="$ac_help
b3e8d00a 72 --with-mgl use SciTech MGL"
1725144d
RR
73ac_help="$ac_help
74 --with-microwin use MicroWindows"
698dcdb6 75ac_help="$ac_help
8168de4c 76 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
698dcdb6 77ac_help="$ac_help
8168de4c 78 --with-libpng use libpng (PNG image format)"
698dcdb6 79ac_help="$ac_help
8168de4c 80 --with-libjpeg use libjpeg (JPEG file format)"
698dcdb6 81ac_help="$ac_help
8168de4c 82 --with-libtiff use libtiff (TIFF file format)"
698dcdb6 83ac_help="$ac_help
8168de4c 84 --with-freetype use freetype (font rasterizer)"
698dcdb6 85ac_help="$ac_help
8168de4c 86 --with-opengl use OpenGL (or Mesa)"
698dcdb6 87ac_help="$ac_help
d0e9b150 88 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
3e44f09d
VZ
89ac_help="$ac_help
90 --with-regex enable support for wxRegEx class"
698dcdb6 91ac_help="$ac_help
8168de4c 92 --with-zlib use zlib for LZW compression"
698dcdb6 93ac_help="$ac_help
8168de4c 94 --with-odbc use the IODBC and wxODBC classes"
698dcdb6 95ac_help="$ac_help
8168de4c 96 --enable-shared create shared library code"
698dcdb6 97ac_help="$ac_help
3a922bb4 98 --enable-soname set the DT_SONAME field in ELF shared libraries"
698dcdb6 99ac_help="$ac_help
8168de4c 100 --enable-optimise create optimised code"
698dcdb6 101ac_help="$ac_help
8168de4c 102 --enable-debug same as debug_flag and debug_info"
683dccda
GD
103ac_help="$ac_help
104 --enable-precomp enable use of precompiled headers (Mac OS X)"
698dcdb6 105ac_help="$ac_help
8168de4c 106 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
698dcdb6 107ac_help="$ac_help
8168de4c 108 --enable-debug_info create code with debugging information"
698dcdb6 109ac_help="$ac_help
8168de4c 110 --enable-debug_gdb create code with extra GDB debugging information"
698dcdb6 111ac_help="$ac_help
8168de4c 112 --enable-debug_cntxt use wxDebugContext"
698dcdb6 113ac_help="$ac_help
8168de4c 114 --enable-mem_tracing create code with memory tracing"
698dcdb6 115ac_help="$ac_help
8168de4c 116 --enable-profile create code with profiling information"
698dcdb6 117ac_help="$ac_help
8168de4c 118 --enable-no_rtti create code without RTTI information"
698dcdb6 119ac_help="$ac_help
b3e8d00a 120 --enable-no_exceptions create code without C++ exceptions handling"
698dcdb6 121ac_help="$ac_help
8168de4c 122 --enable-permissive compile code disregarding strict ANSI"
698dcdb6 123ac_help="$ac_help
8168de4c 124 --enable-no_deps create code without dependency information"
54276ccf 125ac_help="$ac_help
b3e8d00a 126 --enable-compat20 enable wxWindows 2.0 compatibility"
54276ccf 127ac_help="$ac_help
b3e8d00a 128 --enable-compat22 enable wxWindows 2.2 compatibility"
698dcdb6 129ac_help="$ac_help
8168de4c 130 --enable-intl use internationalization system"
698dcdb6 131ac_help="$ac_help
8168de4c 132 --enable-config use wxConfig (and derived) classes"
698dcdb6 133ac_help="$ac_help
8168de4c 134 --enable-sockets use socket/network classes"
698dcdb6 135ac_help="$ac_help
8168de4c 136 --enable-ipc use interprocess communication (wxSocket etc.)"
698dcdb6 137ac_help="$ac_help
8168de4c 138 --enable-cmdline use wxCmdLineParser class"
1e6feb95 139ac_help="$ac_help
8168de4c 140 --enable-datetime use wxDateTime class"
1e6feb95 141ac_help="$ac_help
8168de4c 142 --enable-timedate use obsolete wxDate/wxTime classes"
1e6feb95 143ac_help="$ac_help
8168de4c 144 --enable-stopwatch use wxStopWatch class"
1e6feb95 145ac_help="$ac_help
8168de4c 146 --enable-dialupman use dialup network classes"
698dcdb6 147ac_help="$ac_help
8168de4c 148 --enable-apple_ieee use the Apple IEEE codec"
698dcdb6 149ac_help="$ac_help
8168de4c 150 --enable-timer use wxTimer class"
698dcdb6 151ac_help="$ac_help
8168de4c 152 --enable-wave use wxWave class"
698dcdb6 153ac_help="$ac_help
8168de4c 154 --enable-fraction use wxFraction class"
698dcdb6 155ac_help="$ac_help
8168de4c 156 --enable-dynlib use wxLibrary class for DLL loading"
0b9ab0bd
RL
157ac_help="$ac_help
158 --enable-dynamicloader use (new) wxDynamicLibrary class"
698dcdb6 159ac_help="$ac_help
8168de4c 160 --enable-longlong use wxLongLong class"
698dcdb6 161ac_help="$ac_help
8168de4c 162 --enable-geometry use geometry class"
698dcdb6 163ac_help="$ac_help
8168de4c 164 --enable-log use logging system"
698dcdb6 165ac_help="$ac_help
8168de4c 166 --enable-streams use wxStream etc classes"
698dcdb6 167ac_help="$ac_help
8168de4c 168 --enable-file use wxFile classes"
698dcdb6 169ac_help="$ac_help
8168de4c 170 --enable-ffile use wxFFile classes"
1e6feb95 171ac_help="$ac_help
a3a584a7
VZ
172 --enable-textbuf use wxTextBuffer class"
173ac_help="$ac_help
174 --enable-textfile use wxTextFile class"
698dcdb6 175ac_help="$ac_help
8168de4c 176 --enable-fontmap use font encodings conversion classes"
1e6feb95 177ac_help="$ac_help
8168de4c 178 --enable-unicode compile wxString with Unicode support"
698dcdb6 179ac_help="$ac_help
8168de4c 180 --enable-wxprintfv use wxWindows implementation of vprintf()"
698dcdb6 181ac_help="$ac_help
8168de4c 182 --enable-std_iostreams use standard C++ stream classes"
698dcdb6 183ac_help="$ac_help
8168de4c 184 --enable-filesystem use virtual file systems classes"
698dcdb6 185ac_help="$ac_help
8168de4c 186 --enable-fs_inet use virtual HTTP/FTP filesystems"
698dcdb6 187ac_help="$ac_help
8168de4c 188 --enable-fs_zip use virtual ZIP filesystems"
698dcdb6 189ac_help="$ac_help
8168de4c 190 --enable-zipstream use wxZipInputStream"
698dcdb6 191ac_help="$ac_help
8168de4c 192 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
698dcdb6 193ac_help="$ac_help
8168de4c 194 --enable-snglinst use wxSingleInstanceChecker class"
698dcdb6 195ac_help="$ac_help
69d27ff7 196 --enable-mimetype use wxMimeTypesManager"
3e44f09d 197ac_help="$ac_help
b3e8d00a 198 --enable-sysoptions use wxSystemOptions"
1e6feb95 199ac_help="$ac_help
8168de4c 200 --enable-threads use threads"
698dcdb6 201ac_help="$ac_help
8168de4c 202 --enable-docview use document view architecture"
698dcdb6 203ac_help="$ac_help
3379ed37 204 --enable-help use help subsystem"
29fd3c0c
VS
205ac_help="$ac_help
206 --enable-mshtmlhelp use MS HTML Help (win32)"
3379ed37
VZ
207ac_help="$ac_help
208 --enable-html use wxHTML sub-library"
209ac_help="$ac_help
210 --enable-htmlhelp use wxHTML-based help"
698dcdb6 211ac_help="$ac_help
8168de4c 212 --enable-constraints use layout-constraints system"
698dcdb6 213ac_help="$ac_help
8168de4c 214 --enable-printarch use printing architecture"
698dcdb6 215ac_help="$ac_help
8168de4c 216 --enable-mdi use multiple document interface architecture"
698dcdb6 217ac_help="$ac_help
8168de4c 218 --enable-loggui use standard GUI logger"
1e6feb95 219ac_help="$ac_help
8168de4c 220 --enable-logwin use wxLogWindow"
69d27ff7
MB
221ac_help="$ac_help
222 --enable-logdialog use wxLogDialog"
1e6feb95 223ac_help="$ac_help
8168de4c 224 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 225ac_help="$ac_help
8168de4c 226 --enable-prologio use Prolog IO library"
698dcdb6 227ac_help="$ac_help
8168de4c 228 --enable-resources use wxWindows resources"
698dcdb6 229ac_help="$ac_help
8168de4c 230 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 231ac_help="$ac_help
8168de4c 232 --enable-clipboard use wxClipboard classes"
698dcdb6 233ac_help="$ac_help
8168de4c 234 --enable-dnd use Drag'n'Drop classes"
698dcdb6 235ac_help="$ac_help
8168de4c 236 --enable-metafile use win32 metafiles"
698dcdb6 237ac_help="$ac_help
24176f2c 238 --enable-treelayout use wxTreeLayout classes"
698dcdb6 239ac_help="$ac_help
8168de4c 240 --enable-controls use all usual controls"
698dcdb6 241ac_help="$ac_help
8168de4c 242 --enable-accel use accelerators"
698dcdb6 243ac_help="$ac_help
8168de4c 244 --enable-button use wxButton class"
698dcdb6 245ac_help="$ac_help
8168de4c 246 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 247ac_help="$ac_help
8168de4c 248 --enable-calendar use wxCalendarCtrl class"
1e6feb95 249ac_help="$ac_help
8168de4c 250 --enable-caret use wxCaret class"
1e6feb95 251ac_help="$ac_help
8168de4c 252 --enable-checkbox use wxCheckBox class"
698dcdb6 253ac_help="$ac_help
8168de4c 254 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 255ac_help="$ac_help
8168de4c 256 --enable-choice use wxChoice class"
698dcdb6 257ac_help="$ac_help
8168de4c 258 --enable-combobox use wxComboBox classes"
698dcdb6 259ac_help="$ac_help
8168de4c 260 --enable-gauge use wxGauge class"
698dcdb6 261ac_help="$ac_help
8168de4c 262 --enable-grid use wxGrid class"
698dcdb6 263ac_help="$ac_help
8168de4c 264 --enable-newgrid use new wxGrid class"
698dcdb6 265ac_help="$ac_help
8168de4c 266 --enable-imaglist use wxImageList class"
698dcdb6 267ac_help="$ac_help
8168de4c 268 --enable-listbox use wxListBox class"
698dcdb6 269ac_help="$ac_help
8168de4c 270 --enable-listctrl use wxListCtrl class"
698dcdb6 271ac_help="$ac_help
8168de4c 272 --enable-notebook use wxNotebook class"
24176f2c
GD
273ac_help="$ac_help
274 --enable-propsheet use wxPropertySheet class"
698dcdb6 275ac_help="$ac_help
8168de4c 276 --enable-radiobox use wxRadioBox class"
698dcdb6 277ac_help="$ac_help
8168de4c 278 --enable-radiobtn use wxRadioButton class"
698dcdb6 279ac_help="$ac_help
8168de4c 280 --enable-sash use wxSashWindow class"
698dcdb6 281ac_help="$ac_help
8168de4c 282 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 283ac_help="$ac_help
8168de4c 284 --enable-slider use wxSlider class"
698dcdb6 285ac_help="$ac_help
8168de4c 286 --enable-spinbtn use wxSpinButton class"
698dcdb6 287ac_help="$ac_help
8168de4c 288 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 289ac_help="$ac_help
8168de4c 290 --enable-splitter use wxSplitterWindow class"
698dcdb6 291ac_help="$ac_help
8168de4c 292 --enable-statbmp use wxStaticBitmap class"
698dcdb6 293ac_help="$ac_help
8168de4c 294 --enable-statbox use wxStaticBox class"
698dcdb6 295ac_help="$ac_help
8168de4c 296 --enable-statline use wxStaticLine class"
698dcdb6 297ac_help="$ac_help
8168de4c 298 --enable-stattext use wxStaticText class"
1e6feb95 299ac_help="$ac_help
8168de4c 300 --enable-statusbar use wxStatusBar class"
698dcdb6 301ac_help="$ac_help
8168de4c 302 --enable-tabdialog use wxTabControl class"
698dcdb6 303ac_help="$ac_help
8168de4c 304 --enable-textctrl use wxTextCtrl class"
1e6feb95 305ac_help="$ac_help
8168de4c 306 --enable-togglebtn use wxToggleButton class"
698dcdb6 307ac_help="$ac_help
8168de4c 308 --enable-toolbar use wxToolBar class"
698dcdb6 309ac_help="$ac_help
8168de4c 310 --enable-tbarnative use native wxToolBar class"
698dcdb6 311ac_help="$ac_help
8168de4c 312 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 313ac_help="$ac_help
8168de4c 314 --enable-treectrl use wxTreeCtrl class"
9926e4a4
VZ
315ac_help="$ac_help
316 --enable-tipwindow use wxTipWindow class"
9f41d601
RR
317ac_help="$ac_help
318 --enable-popupwin use wxPopUpWindow class"
698dcdb6 319ac_help="$ac_help
b3e8d00a 320 --enable-commondlg use all common dialogs"
698dcdb6 321ac_help="$ac_help
8168de4c 322 --enable-choicedlg use wxChoiceDialog"
1e6feb95 323ac_help="$ac_help
8168de4c 324 --enable-coldlg use wxColourDialog"
1e6feb95 325ac_help="$ac_help
8168de4c 326 --enable-filedlg use wxFileDialog"
8db37e06
VZ
327ac_help="$ac_help
328 --enable-finddlg use wxFindReplaceDialog"
1e6feb95 329ac_help="$ac_help
8168de4c 330 --enable-fontdlg use wxFontDialog"
1e6feb95 331ac_help="$ac_help
8168de4c 332 --enable-dirdlg use wxDirDialog"
698dcdb6 333ac_help="$ac_help
8168de4c 334 --enable-msgdlg use wxMessageDialog"
1e6feb95 335ac_help="$ac_help
8168de4c 336 --enable-numberdlg use wxNumberEntryDialog"
cbca9943
VZ
337ac_help="$ac_help
338 --enable-splash use wxSplashScreen"
1e6feb95 339ac_help="$ac_help
8168de4c 340 --enable-textdlg use wxTextDialog"
698dcdb6 341ac_help="$ac_help
8168de4c 342 --enable-tipdlg use startup tips"
698dcdb6 343ac_help="$ac_help
8168de4c 344 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
345ac_help="$ac_help
346 --enable-wizarddlg use wxWizard"
698dcdb6 347ac_help="$ac_help
8168de4c 348 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 349ac_help="$ac_help
8168de4c 350 --enable-miniframe use wxMiniFrame class"
698dcdb6 351ac_help="$ac_help
8168de4c 352 --enable-tooltips use wxToolTip class"
698dcdb6 353ac_help="$ac_help
8168de4c 354 --enable-splines use spline drawing code"
698dcdb6 355ac_help="$ac_help
8168de4c 356 --enable-validators use wxValidator and derived classes"
698dcdb6 357ac_help="$ac_help
8168de4c 358 --enable-busyinfo use wxBusyInfo"
698dcdb6 359ac_help="$ac_help
b3e8d00a 360 --enable-joystick use wxJoystick (Linux only)"
698dcdb6 361ac_help="$ac_help
8168de4c 362 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
363ac_help="$ac_help
364 --enable-dragimage use wxDragImage"
edae8572
VZ
365ac_help="$ac_help
366 --enable-palette use wxPalette class"
1e6feb95 367ac_help="$ac_help
8168de4c 368 --enable-image use wxImage class"
698dcdb6 369ac_help="$ac_help
8168de4c 370 --enable-gif use gif images (GIF file format)"
698dcdb6 371ac_help="$ac_help
8168de4c 372 --enable-pcx use pcx images (PCX file format)"
698dcdb6 373ac_help="$ac_help
8168de4c 374 --enable-pnm use pnm images (PNM file format)"
698dcdb6 375ac_help="$ac_help
8168de4c 376 --enable-xpm use xpm images (XPM file format)"
698dcdb6
VZ
377ac_help="$ac_help
378 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
379ac_help="$ac_help
380 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
381ac_help="$ac_help
382 --disable-gtktest Do not try to compile and run a test GTK program"
3f345b47
VZ
383ac_help="$ac_help
384 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
385ac_help="$ac_help
386 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
387ac_help="$ac_help
388 --disable-gtktest Do not try to compile and run a test GTK program"
389ac_help="$ac_help
390 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
391ac_help="$ac_help
392 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
393ac_help="$ac_help
394 --disable-gtktest Do not try to compile and run a test GTK program"
698dcdb6
VZ
395ac_help="$ac_help
396 --with-x use the X Window System"
10f2d63a
VZ
397
398# Initialize some variables set by options.
399# The variables have the same names as the options, with
400# dashes changed to underlines.
698dcdb6
VZ
401build=NONE
402cache_file=./config.cache
10f2d63a 403exec_prefix=NONE
698dcdb6 404host=NONE
10f2d63a 405no_create=
698dcdb6 406nonopt=NONE
10f2d63a
VZ
407no_recursion=
408prefix=NONE
409program_prefix=NONE
410program_suffix=NONE
411program_transform_name=s,x,x,
412silent=
413site=
414srcdir=
698dcdb6 415target=NONE
10f2d63a
VZ
416verbose=
417x_includes=NONE
418x_libraries=NONE
419bindir='${exec_prefix}/bin'
420sbindir='${exec_prefix}/sbin'
421libexecdir='${exec_prefix}/libexec'
422datadir='${prefix}/share'
423sysconfdir='${prefix}/etc'
424sharedstatedir='${prefix}/com'
425localstatedir='${prefix}/var'
426libdir='${exec_prefix}/lib'
427includedir='${prefix}/include'
428oldincludedir='/usr/include'
429infodir='${prefix}/info'
430mandir='${prefix}/man'
431
698dcdb6
VZ
432# Initialize some other variables.
433subdirs=
434MFLAGS= MAKEFLAGS=
435SHELL=${CONFIG_SHELL-/bin/sh}
436# Maximum number of lines to put in a shell here document.
437ac_max_here_lines=12
10f2d63a
VZ
438
439ac_prev=
440for ac_option
441do
698dcdb6 442
10f2d63a
VZ
443 # If the previous option needs an argument, assign it.
444 if test -n "$ac_prev"; then
445 eval "$ac_prev=\$ac_option"
446 ac_prev=
447 continue
448 fi
449
698dcdb6
VZ
450 case "$ac_option" in
451 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
452 *) ac_optarg= ;;
453 esac
10f2d63a
VZ
454
455 # Accept the important Cygnus configure options, so we can diagnose typos.
456
698dcdb6 457 case "$ac_option" in
10f2d63a
VZ
458
459 -bindir | --bindir | --bindi | --bind | --bin | --bi)
460 ac_prev=bindir ;;
461 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 462 bindir="$ac_optarg" ;;
10f2d63a
VZ
463
464 -build | --build | --buil | --bui | --bu)
698dcdb6 465 ac_prev=build ;;
10f2d63a 466 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 467 build="$ac_optarg" ;;
10f2d63a
VZ
468
469 -cache-file | --cache-file | --cache-fil | --cache-fi \
470 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
471 ac_prev=cache_file ;;
472 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
473 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 474 cache_file="$ac_optarg" ;;
10f2d63a
VZ
475
476 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
477 ac_prev=datadir ;;
478 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
479 | --da=*)
698dcdb6 480 datadir="$ac_optarg" ;;
10f2d63a
VZ
481
482 -disable-* | --disable-*)
698dcdb6 483 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 484 # Reject names that are not valid shell variable names.
698dcdb6
VZ
485 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
486 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
487 fi
488 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
489 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
490
491 -enable-* | --enable-*)
698dcdb6 492 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 493 # Reject names that are not valid shell variable names.
698dcdb6
VZ
494 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
495 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
496 fi
497 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
498 case "$ac_option" in
499 *=*) ;;
10f2d63a
VZ
500 *) ac_optarg=yes ;;
501 esac
698dcdb6 502 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
503
504 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
505 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
506 | --exec | --exe | --ex)
507 ac_prev=exec_prefix ;;
508 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
509 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
510 | --exec=* | --exe=* | --ex=*)
698dcdb6 511 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
512
513 -gas | --gas | --ga | --g)
514 # Obsolete; use --with-gas.
515 with_gas=yes ;;
516
698dcdb6
VZ
517 -help | --help | --hel | --he)
518 # Omit some internal or obsolete options to make the list less imposing.
519 # This message is too long to be a string in the A/UX 3.1 sh.
520 cat << EOF
521Usage: configure [options] [host]
522Options: [defaults in brackets after descriptions]
523Configuration:
524 --cache-file=FILE cache test results in FILE
525 --help print this message
526 --no-create do not create output files
527 --quiet, --silent do not print \`checking...' messages
528 --version print the version of autoconf that created configure
529Directory and file names:
530 --prefix=PREFIX install architecture-independent files in PREFIX
531 [$ac_default_prefix]
532 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
533 [same as prefix]
534 --bindir=DIR user executables in DIR [EPREFIX/bin]
535 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
536 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
537 --datadir=DIR read-only architecture-independent data in DIR
538 [PREFIX/share]
539 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
540 --sharedstatedir=DIR modifiable architecture-independent data in DIR
541 [PREFIX/com]
542 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
543 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
544 --includedir=DIR C header files in DIR [PREFIX/include]
545 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
546 --infodir=DIR info documentation in DIR [PREFIX/info]
547 --mandir=DIR man documentation in DIR [PREFIX/man]
548 --srcdir=DIR find the sources in DIR [configure dir or ..]
549 --program-prefix=PREFIX prepend PREFIX to installed program names
550 --program-suffix=SUFFIX append SUFFIX to installed program names
551 --program-transform-name=PROGRAM
552 run sed PROGRAM on installed program names
553EOF
554 cat << EOF
555Host type:
556 --build=BUILD configure for building on BUILD [BUILD=HOST]
557 --host=HOST configure for HOST [guessed]
558 --target=TARGET configure for TARGET [TARGET=HOST]
559Features and packages:
560 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
561 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
562 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
563 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
564 --x-includes=DIR X include files are in DIR
565 --x-libraries=DIR X library files are in DIR
566EOF
567 if test -n "$ac_help"; then
568 echo "--enable and --with options recognized:$ac_help"
569 fi
570 exit 0 ;;
10f2d63a
VZ
571
572 -host | --host | --hos | --ho)
698dcdb6 573 ac_prev=host ;;
10f2d63a 574 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 575 host="$ac_optarg" ;;
10f2d63a
VZ
576
577 -includedir | --includedir | --includedi | --included | --include \
578 | --includ | --inclu | --incl | --inc)
579 ac_prev=includedir ;;
580 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
581 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 582 includedir="$ac_optarg" ;;
10f2d63a
VZ
583
584 -infodir | --infodir | --infodi | --infod | --info | --inf)
585 ac_prev=infodir ;;
586 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 587 infodir="$ac_optarg" ;;
10f2d63a
VZ
588
589 -libdir | --libdir | --libdi | --libd)
590 ac_prev=libdir ;;
591 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 592 libdir="$ac_optarg" ;;
10f2d63a
VZ
593
594 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
595 | --libexe | --libex | --libe)
596 ac_prev=libexecdir ;;
597 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
598 | --libexe=* | --libex=* | --libe=*)
698dcdb6 599 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
600
601 -localstatedir | --localstatedir | --localstatedi | --localstated \
602 | --localstate | --localstat | --localsta | --localst \
603 | --locals | --local | --loca | --loc | --lo)
604 ac_prev=localstatedir ;;
605 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
606 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
607 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 608 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
609
610 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
611 ac_prev=mandir ;;
612 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 613 mandir="$ac_optarg" ;;
10f2d63a
VZ
614
615 -nfp | --nfp | --nf)
616 # Obsolete; use --without-fp.
617 with_fp=no ;;
618
619 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
620 | --no-cr | --no-c)
621 no_create=yes ;;
622
623 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
624 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
625 no_recursion=yes ;;
626
627 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
628 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
629 | --oldin | --oldi | --old | --ol | --o)
630 ac_prev=oldincludedir ;;
631 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
632 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
633 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 634 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
635
636 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
637 ac_prev=prefix ;;
638 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 639 prefix="$ac_optarg" ;;
10f2d63a
VZ
640
641 -program-prefix | --program-prefix | --program-prefi | --program-pref \
642 | --program-pre | --program-pr | --program-p)
643 ac_prev=program_prefix ;;
644 -program-prefix=* | --program-prefix=* | --program-prefi=* \
645 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 646 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
647
648 -program-suffix | --program-suffix | --program-suffi | --program-suff \
649 | --program-suf | --program-su | --program-s)
650 ac_prev=program_suffix ;;
651 -program-suffix=* | --program-suffix=* | --program-suffi=* \
652 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 653 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
654
655 -program-transform-name | --program-transform-name \
656 | --program-transform-nam | --program-transform-na \
657 | --program-transform-n | --program-transform- \
658 | --program-transform | --program-transfor \
659 | --program-transfo | --program-transf \
660 | --program-trans | --program-tran \
661 | --progr-tra | --program-tr | --program-t)
662 ac_prev=program_transform_name ;;
663 -program-transform-name=* | --program-transform-name=* \
664 | --program-transform-nam=* | --program-transform-na=* \
665 | --program-transform-n=* | --program-transform-=* \
666 | --program-transform=* | --program-transfor=* \
667 | --program-transfo=* | --program-transf=* \
668 | --program-trans=* | --program-tran=* \
669 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 670 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
671
672 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
673 | -silent | --silent | --silen | --sile | --sil)
674 silent=yes ;;
675
676 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
677 ac_prev=sbindir ;;
678 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
679 | --sbi=* | --sb=*)
698dcdb6 680 sbindir="$ac_optarg" ;;
10f2d63a
VZ
681
682 -sharedstatedir | --sharedstatedir | --sharedstatedi \
683 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
684 | --sharedst | --shareds | --shared | --share | --shar \
685 | --sha | --sh)
686 ac_prev=sharedstatedir ;;
687 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
688 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
689 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
690 | --sha=* | --sh=*)
698dcdb6 691 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
692
693 -site | --site | --sit)
694 ac_prev=site ;;
695 -site=* | --site=* | --sit=*)
698dcdb6 696 site="$ac_optarg" ;;
10f2d63a
VZ
697
698 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
699 ac_prev=srcdir ;;
700 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 701 srcdir="$ac_optarg" ;;
10f2d63a
VZ
702
703 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
704 | --syscon | --sysco | --sysc | --sys | --sy)
705 ac_prev=sysconfdir ;;
706 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
707 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 708 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
709
710 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 711 ac_prev=target ;;
10f2d63a 712 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 713 target="$ac_optarg" ;;
10f2d63a
VZ
714
715 -v | -verbose | --verbose | --verbos | --verbo | --verb)
716 verbose=yes ;;
717
698dcdb6
VZ
718 -version | --version | --versio | --versi | --vers)
719 echo "configure generated by autoconf version 2.13"
720 exit 0 ;;
10f2d63a
VZ
721
722 -with-* | --with-*)
698dcdb6 723 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 724 # Reject names that are not valid shell variable names.
698dcdb6
VZ
725 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
726 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
727 fi
10f2d63a 728 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
729 case "$ac_option" in
730 *=*) ;;
10f2d63a
VZ
731 *) ac_optarg=yes ;;
732 esac
698dcdb6 733 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
734
735 -without-* | --without-*)
698dcdb6 736 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 737 # Reject names that are not valid shell variable names.
698dcdb6
VZ
738 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
739 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
740 fi
741 ac_package=`echo $ac_package| sed 's/-/_/g'`
742 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
743
744 --x)
745 # Obsolete; use --with-x.
746 with_x=yes ;;
747
748 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
749 | --x-incl | --x-inc | --x-in | --x-i)
750 ac_prev=x_includes ;;
751 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
752 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 753 x_includes="$ac_optarg" ;;
10f2d63a
VZ
754
755 -x-libraries | --x-libraries | --x-librarie | --x-librari \
756 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
757 ac_prev=x_libraries ;;
758 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
759 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 760 x_libraries="$ac_optarg" ;;
10f2d63a 761
698dcdb6 762 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
763 ;;
764
765 *)
698dcdb6
VZ
766 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
767 echo "configure: warning: $ac_option: invalid host type" 1>&2
768 fi
769 if test "x$nonopt" != xNONE; then
770 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
771 fi
772 nonopt="$ac_option"
10f2d63a
VZ
773 ;;
774
775 esac
776done
777
778if test -n "$ac_prev"; then
698dcdb6
VZ
779 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
780fi
781
782trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
783
784# File descriptor usage:
785# 0 standard input
786# 1 file creation
787# 2 errors and warnings
788# 3 some systems may open it to /dev/tty
789# 4 used on the Kubota Titan
790# 6 checking for... messages and results
791# 5 compiler messages saved in config.log
792if test "$silent" = yes; then
793 exec 6>/dev/null
794else
795 exec 6>&1
10f2d63a 796fi
698dcdb6
VZ
797exec 5>./config.log
798
799echo "\
800This file contains any messages produced by compilers while
801running configure, to aid debugging if configure makes a mistake.
802" 1>&5
10f2d63a 803
698dcdb6
VZ
804# Strip out --no-create and --no-recursion so they do not pile up.
805# Also quote any args containing shell metacharacters.
806ac_configure_args=
807for ac_arg
10f2d63a 808do
698dcdb6
VZ
809 case "$ac_arg" in
810 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
811 | --no-cr | --no-c) ;;
812 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
813 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
814 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
815 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
816 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
817 esac
818done
819
698dcdb6
VZ
820# NLS nuisances.
821# Only set these to C if already set. These must not be set unconditionally
822# because not all systems understand e.g. LANG=C (notably SCO).
823# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
824# Non-C LC_CTYPE values break the ctype check.
825if test "${LANG+set}" = set; then LANG=C; export LANG; fi
826if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
827if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
828if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 829
698dcdb6
VZ
830# confdefs.h avoids OS command line length limits that DEFS can exceed.
831rm -rf conftest* confdefs.h
832# AIX cpp loses on an empty file, so make sure it contains at least a newline.
833echo > confdefs.h
10f2d63a 834
698dcdb6
VZ
835# A filename unique to this package, relative to the directory that
836# configure is in, which we can look for to find out if srcdir is correct.
837ac_unique_file=wx-config.in
10f2d63a
VZ
838
839# Find the source files, if location was not specified.
840if test -z "$srcdir"; then
841 ac_srcdir_defaulted=yes
842 # Try the directory containing this script, then its parent.
843 ac_prog=$0
698dcdb6 844 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
845 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
846 srcdir=$ac_confdir
847 if test ! -r $srcdir/$ac_unique_file; then
848 srcdir=..
849 fi
850else
851 ac_srcdir_defaulted=no
852fi
853if test ! -r $srcdir/$ac_unique_file; then
854 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 855 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 856 else
698dcdb6 857 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
858 fi
859fi
698dcdb6 860srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
861
862# Prefer explicitly selected file to automatically selected ones.
863if test -z "$CONFIG_SITE"; then
864 if test "x$prefix" != xNONE; then
865 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
866 else
867 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
868 fi
869fi
870for ac_site_file in $CONFIG_SITE; do
871 if test -r "$ac_site_file"; then
698dcdb6 872 echo "loading site script $ac_site_file"
10f2d63a
VZ
873 . "$ac_site_file"
874 fi
875done
876
877if test -r "$cache_file"; then
698dcdb6
VZ
878 echo "loading cache $cache_file"
879 . $cache_file
10f2d63a 880else
698dcdb6
VZ
881 echo "creating cache $cache_file"
882 > $cache_file
10f2d63a
VZ
883fi
884
885ac_ext=c
698dcdb6 886# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 887ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
888ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
889ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
890cross_compiling=$ac_cv_prog_cc_cross
891
892ac_exeext=
893ac_objext=o
894if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
895 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
896 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
897 ac_n= ac_c='
898' ac_t=' '
899 else
900 ac_n=-n ac_c= ac_t=
901 fi
10f2d63a 902else
698dcdb6 903 ac_n= ac_c='\c' ac_t=
10f2d63a 904fi
698dcdb6
VZ
905
906
10f2d63a 907
7c66a493
VZ
908ac_aux_dir=
909for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
910 if test -f $ac_dir/install-sh; then
911 ac_aux_dir=$ac_dir
912 ac_install_sh="$ac_aux_dir/install-sh -c"
913 break
914 elif test -f $ac_dir/install.sh; then
915 ac_aux_dir=$ac_dir
916 ac_install_sh="$ac_aux_dir/install.sh -c"
917 break
918 fi
919done
920if test -z "$ac_aux_dir"; then
698dcdb6 921 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 922fi
698dcdb6
VZ
923ac_config_guess=$ac_aux_dir/config.guess
924ac_config_sub=$ac_aux_dir/config.sub
925ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 926
698dcdb6
VZ
927
928# Do some error checking and defaulting for the host and target type.
929# The inputs are:
930# configure --host=HOST --target=TARGET --build=BUILD NONOPT
931#
932# The rules are:
933# 1. You are not allowed to specify --host, --target, and nonopt at the
934# same time.
935# 2. Host defaults to nonopt.
936# 3. If nonopt is not specified, then host defaults to the current host,
937# as determined by config.guess.
938# 4. Target and build default to nonopt.
939# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
940
941# The aliases save the names the user supplied, while $host etc.
942# will get canonicalized.
698dcdb6
VZ
943case $host---$target---$nonopt in
944NONE---*---* | *---NONE---* | *---*---NONE) ;;
945*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
946esac
947
948
949# Make sure we can run config.sub.
950if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
951else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
952fi
953
954echo $ac_n "checking host system type""... $ac_c" 1>&6
1725144d 955echo "configure:956: checking host system type" >&5
698dcdb6
VZ
956
957host_alias=$host
958case "$host_alias" in
959NONE)
960 case $nonopt in
961 NONE)
962 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
963 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
964 fi ;;
965 *) host_alias=$nonopt ;;
966 esac ;;
967esac
968
969host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
970host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
971host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
972host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
973echo "$ac_t""$host" 1>&6
974
975echo $ac_n "checking target system type""... $ac_c" 1>&6
1725144d 976echo "configure:977: checking target system type" >&5
698dcdb6
VZ
977
978target_alias=$target
979case "$target_alias" in
980NONE)
981 case $nonopt in
982 NONE) target_alias=$host_alias ;;
983 *) target_alias=$nonopt ;;
984 esac ;;
985esac
986
987target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
988target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
989target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
990target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
991echo "$ac_t""$target" 1>&6
992
993echo $ac_n "checking build system type""... $ac_c" 1>&6
1725144d 994echo "configure:995: checking build system type" >&5
698dcdb6
VZ
995
996build_alias=$build
997case "$build_alias" in
998NONE)
999 case $nonopt in
1000 NONE) build_alias=$host_alias ;;
1001 *) build_alias=$nonopt ;;
1002 esac ;;
1003esac
1004
1005build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1006build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1007build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1008build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1009echo "$ac_t""$build" 1>&6
1010
1011test "$host_alias" != "$target_alias" &&
7c66a493
VZ
1012 test "$program_prefix$program_suffix$program_transform_name" = \
1013 NONENONEs,x,x, &&
1014 program_prefix=${target_alias}-
1015
698dcdb6
VZ
1016
1017
10f2d63a 1018WX_MAJOR_VERSION_NUMBER=2
37d403aa 1019WX_MINOR_VERSION_NUMBER=3
a0d927d1 1020WX_RELEASE_NUMBER=3
10f2d63a 1021
10f2d63a 1022WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1023WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1024
978f1259
RL
1025WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1026
a0d927d1 1027WX_CURRENT=2
6426998c
RL
1028WX_REVISION=0
1029WX_AGE=0
1030
698dcdb6
VZ
1031
1032
10f2d63a
VZ
1033USE_UNIX=1
1034USE_WIN32=0
f9bc1684 1035USE_DOS=0
b12915c1 1036USE_BEOS=0
1216f52d 1037USE_MAC=0
b12915c1 1038
10f2d63a
VZ
1039USE_LINUX=
1040USE_SGI=
1041USE_HPUX=
1042USE_SYSV=
1043USE_SVR4=
1044USE_AIX=
1045USE_SUN=
1046USE_SOLARIS=
1047USE_SUNOS=
1048USE_ALPHA=
1049USE_OSF=
1050USE_BSD=
f11bdd03 1051USE_DARWIN=
10f2d63a 1052USE_FREEBSD=
95c8801c 1053USE_OPENBSD=
f6bcfd97 1054USE_NETBSD=
10f2d63a
VZ
1055USE_VMS=
1056USE_ULTRIX=
10f2d63a
VZ
1057USE_DATA_GENERAL=
1058
ab9b9eab
VZ
1059NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1060
3f345b47
VZ
1061CPP_MT_FLAG=-D_REENTRANT
1062
1725144d 1063ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE"
10f2d63a
VZ
1064
1065DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1066DEFAULT_wxUSE_MAC=0
1067DEFAULT_wxUSE_MGL=0
1725144d 1068DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1069DEFAULT_wxUSE_MOTIF=0
1070DEFAULT_wxUSE_MSW=0
e07802fc 1071DEFAULT_wxUSE_PM=0
1e6feb95 1072DEFAULT_wxUSE_WINE=0
10f2d63a
VZ
1073
1074DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1075DEFAULT_DEFAULT_wxUSE_MAC=0
1076DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1077DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1078DEFAULT_DEFAULT_wxUSE_MOTIF=0
1079DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1080DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1081DEFAULT_DEFAULT_wxUSE_WINE=0
10f2d63a 1082
d6a55c4b 1083PROGRAM_EXT=
3a922bb4 1084SO_SUFFIX=so
d6a55c4b 1085
10f2d63a
VZ
1086case "${host}" in
1087 *-hp-hpux* )
1088 USE_HPUX=1
1089 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1090 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1091 SO_SUFFIX=sl
698dcdb6 1092 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1093#define __HPUX__ 1
1094EOF
1095
1096 ;;
1097 *-*-linux* )
1098 USE_LINUX=1
698dcdb6 1099 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1100#define __LINUX__ 1
1101EOF
1102
1103 TMP=`uname -m`
1104 if test "x$TMP" = "xalpha"; then
1105 USE_ALPHA=1
698dcdb6 1106 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1107#define __ALPHA__ 1
1108EOF
1109
1110 fi
1111 DEFAULT_DEFAULT_wxUSE_GTK=1
1112 ;;
1113 *-*-irix5* | *-*-irix6* )
1114 USE_SGI=1
1115 USE_SVR4=1
698dcdb6 1116 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1117#define __SGI__ 1
1118EOF
1119
698dcdb6 1120 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1121#define __SVR4__ 1
1122EOF
1123
1124 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1125 ;;
1126 *-*-solaris2* )
1127 USE_SUN=1
1128 USE_SOLARIS=1
1129 USE_SVR4=1
698dcdb6 1130 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1131#define __SUN__ 1
1132EOF
1133
698dcdb6 1134 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1135#define __SOLARIS__ 1
1136EOF
1137
698dcdb6 1138 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1139#define __SVR4__ 1
1140EOF
1141
1142 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1143 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1144 ;;
1145 *-*-sunos4* )
1146 USE_SUN=1
1147 USE_SUNOS=1
1148 USE_BSD=1
698dcdb6 1149 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1150#define __SUN__ 1
1151EOF
1152
698dcdb6 1153 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1154#define __SUNOS__ 1
1155EOF
1156
698dcdb6 1157 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1158#define __BSD__ 1
1159EOF
1160
1161 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1162 ;;
f6bcfd97 1163 *-*-freebsd*)
10f2d63a
VZ
1164 USE_BSD=1
1165 USE_FREEBSD=1
3f345b47 1166 CPP_MT_FLAG=-D_THREAD_SAFE
698dcdb6 1167 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1168#define __FREEBSD__ 1
1169EOF
1170
698dcdb6 1171 cat >> confdefs.h <<\EOF
10f2d63a 1172#define __BSD__ 1
95c8801c
VS
1173EOF
1174
1175 DEFAULT_DEFAULT_wxUSE_GTK=1
1176 ;;
1177 *-*-openbsd*)
1178 USE_BSD=1
1179 USE_OPENBSD=1
698dcdb6 1180 cat >> confdefs.h <<\EOF
95c8801c
VS
1181#define __FREEBSD__ 1
1182EOF
1183
698dcdb6 1184 cat >> confdefs.h <<\EOF
95c8801c 1185#define __OPENBSD__ 1
f6bcfd97
BP
1186EOF
1187
1188 DEFAULT_DEFAULT_wxUSE_GTK=1
1189 ;;
1190 *-*-netbsd*)
1191 USE_BSD=1
1192 USE_NETBSD=1
698dcdb6 1193 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1194#define __FREEBSD__ 1
1195EOF
1196
698dcdb6 1197 cat >> confdefs.h <<\EOF
f6bcfd97 1198#define __NETBSD__ 1
10f2d63a
VZ
1199EOF
1200
1201 DEFAULT_DEFAULT_wxUSE_GTK=1
1202 ;;
1203 *-*-osf* )
1204 USE_ALPHA=1
1205 USE_OSF=1
698dcdb6 1206 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1207#define __ALPHA__ 1
1208EOF
1209
698dcdb6 1210 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1211#define __OSF__ 1
1212EOF
1213
1214 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1215 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1216 ;;
1217 *-*-dgux5* )
1218 USE_ALPHA=1
1219 USE_SVR4=1
698dcdb6 1220 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1221#define __ALPHA__ 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 *-*-sysv5* )
1231 USE_SYSV=1
1232 USE_SVR4=1
698dcdb6 1233 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1234#define __SYSV__ 1
1235EOF
1236
698dcdb6 1237 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1238#define __SVR4__ 1
1239EOF
1240
1241 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1242 ;;
1243 *-*-aix* )
1244 USE_AIX=1
1245 USE_SYSV=1
1246 USE_SVR4=1
698dcdb6 1247 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1248#define __AIX__ 1
1249EOF
1250
698dcdb6 1251 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1252#define __SYSV__ 1
1253EOF
1254
698dcdb6 1255 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1256#define __SVR4__ 1
1257EOF
1258
1259 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1260 ;;
1261
1c8183e2 1262 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1263 USE_UNIX=0
1264 USE_WIN32=1
3a922bb4 1265 SO_SUFFIX=dll
698dcdb6 1266 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1267#define __WIN32__ 1
1268EOF
1269
698dcdb6 1270 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1271#define __WIN95__ 1
1272EOF
1273
698dcdb6 1274 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1275#define __WINDOWS__ 1
1276EOF
1277
698dcdb6 1278 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1279#define __GNUWIN32__ 1
1280EOF
1281
698dcdb6 1282 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1283#define STRICT 1
1284EOF
1285
698dcdb6 1286 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1287#define WINVER 0x0400
1288EOF
1289
cf27ef00 1290 PROGRAM_EXT=".exe"
7b7a7637 1291 RESCOMP=windres
10f2d63a
VZ
1292 DEFAULT_DEFAULT_wxUSE_MSW=1
1293 ;;
1294
f9bc1684
VS
1295 *-pc-msdosdjgpp )
1296 USE_UNIX=0
1297 USE_DOS=1
1298 cat >> confdefs.h <<\EOF
1299#define __DOS__ 1
1300EOF
1301
1302 PROGRAM_EXT=".exe"
1303 DEFAULT_DEFAULT_wxUSE_MGL=1
1304 DEFAULT_DEFAULT_wxUSE_SHARED=0
1305 ;;
1306
6fa882bd 1307 *-pc-os2_emx | *-pc-os2-emx )
698dcdb6 1308 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1309#define __EMX__ 1
1310EOF
1311
cf27ef00 1312 PROGRAM_EXT=".exe"
e07802fc 1313 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1314 ;;
1315
d08b457b
GD
1316 powerpc-*-darwin* )
1317 USE_BSD=1
f11bdd03 1318 USE_DARWIN=1
3f345b47 1319 CPP_MT_FLAG=
3a922bb4 1320 SO_SUFFIX=dylib
698dcdb6 1321 cat >> confdefs.h <<\EOF
f11bdd03 1322#define __BSD__ 1
b4085ce6
GD
1323EOF
1324
698dcdb6 1325 cat >> confdefs.h <<\EOF
f11bdd03 1326#define __DARWIN__ 1
d08b457b
GD
1327EOF
1328
1329 cat >> confdefs.h <<\EOF
1330#define __POWERPC__ 1
b4085ce6
GD
1331EOF
1332
1333 DEFAULT_DEFAULT_wxUSE_MAC=1
1334 ;;
1335
b12915c1
VZ
1336 *-*-beos* )
1337 USE_BEOS=1
698dcdb6 1338 cat >> confdefs.h <<\EOF
b12915c1
VZ
1339#define __BEOS__ 1
1340EOF
1341
1342 ;;
1343
10f2d63a 1344 *)
698dcdb6 1345 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1346esac
1347
1348if test "$USE_UNIX" = 1 ; then
b12915c1 1349 wxUSE_UNIX=yes
698dcdb6 1350 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1351#define __UNIX__ 1
1352EOF
1353
10f2d63a
VZ
1354fi
1355
2389f33b
VZ
1356if test "$USE_LINUX" = 1; then
1357 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
1725144d 1358echo "configure:1359: checking for glibc 2.1 or later" >&5
2389f33b
VZ
1359if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1361else
1362 cat > conftest.$ac_ext <<EOF
1725144d 1363#line 1364 "configure"
2389f33b
VZ
1364#include "confdefs.h"
1365#include <features.h>
1366int main() {
1367
1368 #if !__GLIBC_PREREQ(2, 1)
1369 #error not glibc2.1
1370 #endif
1371
1372; return 0; }
1373EOF
1725144d 1374if { (eval echo configure:1375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2389f33b
VZ
1375 rm -rf conftest*
1376
1377 wx_lib_glibc21=yes
1378
1379else
1380 echo "configure: failed program was:" >&5
1381 cat conftest.$ac_ext >&5
1382 rm -rf conftest*
1383
1384 wx_lib_glibc21=no
1385
1386
1387fi
1388rm -f conftest*
1389
1390fi
1391
1392echo "$ac_t""$wx_lib_glibc21" 1>&6
2389f33b
VZ
1393 if test "$wx_lib_glibc21" = "yes"; then
1394 cat >> confdefs.h <<\EOF
1395#define wxHAVE_GLIBC2 1
1396EOF
1397
1398 fi
1399fi
10f2d63a 1400
1e487827 1401
1e487827 1402
6232543b 1403
10f2d63a
VZ
1404 wx_arg_cache_file="configarg.cache"
1405 echo "loading argument cache $wx_arg_cache_file"
1406 rm -f ${wx_arg_cache_file}.tmp
1407 touch ${wx_arg_cache_file}.tmp
1408 touch ${wx_arg_cache_file}
698dcdb6 1409
10f2d63a
VZ
1410
1411DEBUG_CONFIGURE=0
1412if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1413 DEFAULT_wxUSE_UNIVERSAL=no
1414
10f2d63a
VZ
1415 DEFAULT_wxUSE_THREADS=yes
1416
1417 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1418 DEFAULT_wxUSE_SONAME=no
1e6feb95 1419 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1420 DEFAULT_wxUSE_PROFILE=no
1421 DEFAULT_wxUSE_NO_DEPS=no
f676c7ff
MB
1422 DEFAULT_wxUSE_NO_RTTI=yes
1423 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
10f2d63a
VZ
1424 DEFAULT_wxUSE_PERMISSIVE=no
1425 DEFAULT_wxUSE_DEBUG_FLAG=yes
1426 DEFAULT_wxUSE_DEBUG_INFO=yes
1427 DEFAULT_wxUSE_DEBUG_GDB=yes
1428 DEFAULT_wxUSE_MEM_TRACING=no
1429 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1430 DEFAULT_wxUSE_DMALLOC=no
683dccda 1431 DEFAULT_wxUSE_PRECOMP=yes
10f2d63a
VZ
1432 DEFAULT_wxUSE_APPLE_IEEE=no
1433
1434 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1435 DEFAULT_wxUSE_LOGWINDOW=no
1436 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1437 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1438
1439 DEFAULT_wxUSE_GUI=yes
1e6feb95 1440 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1441
3e44f09d 1442 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1443 DEFAULT_wxUSE_ZLIB=no
1444 DEFAULT_wxUSE_LIBPNG=no
1445 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1446 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1447 DEFAULT_wxUSE_ODBC=no
3fed1840 1448 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1449 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1450
eb4efbdc 1451 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1452 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1453 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1454 DEFAULT_wxUSE_CMDLINE_PARSER=no
1455 DEFAULT_wxUSE_DATETIME=no
1456 DEFAULT_wxUSE_TIMEDATE=no
1457 DEFAULT_wxUSE_TIMER=no
1458 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1459 DEFAULT_wxUSE_FILE=no
1e6feb95 1460 DEFAULT_wxUSE_FFILE=no
a3a584a7 1461 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1462 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1463 DEFAULT_wxUSE_WAVE=no
1464 DEFAULT_wxUSE_INTL=no
1465 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1466 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1467 DEFAULT_wxUSE_STREAMS=no
1468 DEFAULT_wxUSE_SOCKETS=no
1469 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1470 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1471 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1472 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1473 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1474 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1475
1476 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1477 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1478 DEFAULT_wxUSE_POSTSCRIPT=no
1479
1480 DEFAULT_wxUSE_X_RESOURCES=no
1481 DEFAULT_wxUSE_CLIPBOARD=no
1482 DEFAULT_wxUSE_TOOLTIPS=no
1483 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1484 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1485 DEFAULT_wxUSE_SPLINES=no
1486
1487 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1488 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1489 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1490
1491 DEFAULT_wxUSE_PROLOGIO=no
1492 DEFAULT_wxUSE_RESOURCES=no
1493 DEFAULT_wxUSE_CONSTRAINTS=no
1494 DEFAULT_wxUSE_IPC=no
1495 DEFAULT_wxUSE_HELP=no
29fd3c0c 1496 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1497 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1498 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1499 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1500 DEFAULT_wxUSE_MIMETYPE=no
3e44f09d 1501 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1502
1503 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1504 DEFAULT_wxUSE_CHOICEDLG=no
1505 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1506 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1507 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1508 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1509 DEFAULT_wxUSE_FONTDLG=no
1510 DEFAULT_wxUSE_MSGDLG=no
1511 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1512 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1513 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1514 DEFAULT_wxUSE_STARTUP_TIPS=no
1515 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1516 DEFAULT_wxUSE_WIZARDDLG=no
1517
1e6feb95 1518 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1519 DEFAULT_wxUSE_MINIFRAME=no
1520 DEFAULT_wxUSE_HTML=no
24528b0c 1521 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1522 DEFAULT_wxUSE_FS_INET=no
1523 DEFAULT_wxUSE_FS_ZIP=no
1524 DEFAULT_wxUSE_BUSYINFO=no
1525 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1526 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1527
1528 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1529 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1530 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1531 DEFAULT_wxUSE_CALCTRL=no
1532 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1533 DEFAULT_wxUSE_CHECKBOX=no
1534 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1535 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1536 DEFAULT_wxUSE_COMBOBOX=no
1537 DEFAULT_wxUSE_GAUGE=no
1538 DEFAULT_wxUSE_GRID=no
1539 DEFAULT_wxUSE_NEW_GRID=no
1540 DEFAULT_wxUSE_IMAGLIST=no
1541 DEFAULT_wxUSE_LISTBOX=no
1542 DEFAULT_wxUSE_LISTCTRL=no
1543 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1544 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1545 DEFAULT_wxUSE_RADIOBOX=no
1546 DEFAULT_wxUSE_RADIOBTN=no
1547 DEFAULT_wxUSE_SASH=no
1548 DEFAULT_wxUSE_SCROLLBAR=no
1549 DEFAULT_wxUSE_SLIDER=no
1550 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1551 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1552 DEFAULT_wxUSE_SPLITTER=no
1553 DEFAULT_wxUSE_STATBMP=no
1554 DEFAULT_wxUSE_STATBOX=no
1555 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1556 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1557 DEFAULT_wxUSE_STATUSBAR=yes
1558 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1559 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1560 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1561 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1562 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1563 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1564 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1565 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1566 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1567
1568 DEFAULT_wxUSE_UNICODE=no
1569 DEFAULT_wxUSE_WCSRTOMBS=no
1570
edae8572 1571 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1572 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1573 DEFAULT_wxUSE_GIF=no
1574 DEFAULT_wxUSE_PCX=no
1575 DEFAULT_wxUSE_PNM=no
0046ff7c 1576 DEFAULT_wxUSE_XPM=no
10f2d63a 1577else
1e6feb95
VZ
1578 DEFAULT_wxUSE_UNIVERSAL=no
1579
10f2d63a
VZ
1580 DEFAULT_wxUSE_THREADS=yes
1581
1582 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1583 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1584 DEFAULT_wxUSE_OPTIMISE=yes
1585 DEFAULT_wxUSE_PROFILE=no
1586 DEFAULT_wxUSE_NO_DEPS=no
f676c7ff
MB
1587 DEFAULT_wxUSE_NO_RTTI=yes
1588 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
10f2d63a
VZ
1589 DEFAULT_wxUSE_PERMISSIVE=no
1590 DEFAULT_wxUSE_DEBUG_FLAG=no
1591 DEFAULT_wxUSE_DEBUG_INFO=no
1592 DEFAULT_wxUSE_DEBUG_GDB=no
1593 DEFAULT_wxUSE_MEM_TRACING=no
1594 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1595 DEFAULT_wxUSE_DMALLOC=no
683dccda 1596 DEFAULT_wxUSE_PRECOMP=yes
10f2d63a
VZ
1597 DEFAULT_wxUSE_APPLE_IEEE=yes
1598
1599 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1600 DEFAULT_wxUSE_LOGWINDOW=yes
1601 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1602 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1603
1604 DEFAULT_wxUSE_GUI=yes
1605
831b3152 1606 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1607 DEFAULT_wxUSE_ZLIB=yes
1608 DEFAULT_wxUSE_LIBPNG=yes
1609 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1610 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1611 DEFAULT_wxUSE_ODBC=no
3fed1840 1612 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1613 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1614
eb4efbdc 1615 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1616 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1617 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1618 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1619 DEFAULT_wxUSE_DATETIME=yes
1620 DEFAULT_wxUSE_TIMEDATE=no
1621 DEFAULT_wxUSE_TIMER=yes
1622 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1623 DEFAULT_wxUSE_FILE=yes
1e6feb95 1624 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1625 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1626 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1627 DEFAULT_wxUSE_WAVE=no
1628 DEFAULT_wxUSE_INTL=yes
1629 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1630 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1631 DEFAULT_wxUSE_STREAMS=yes
1632 DEFAULT_wxUSE_SOCKETS=yes
1633 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1634 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1635 DEFAULT_wxUSE_DYNLIB_CLASS=yes
466367be 1636 DEFAULT_wxUSE_DYNAMIC_LOADER=no
b685cd9b 1637 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1638 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1639
1640 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1641 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1642 DEFAULT_wxUSE_POSTSCRIPT=yes
1643
1644 DEFAULT_wxUSE_X_RESOURCES=no
1645 DEFAULT_wxUSE_CLIPBOARD=yes
1646 DEFAULT_wxUSE_TOOLTIPS=yes
1647 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1648 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1649 DEFAULT_wxUSE_SPLINES=yes
1650
1651 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1652 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1653 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1654
1655 DEFAULT_wxUSE_PROLOGIO=yes
1656 DEFAULT_wxUSE_RESOURCES=yes
1657 DEFAULT_wxUSE_CONSTRAINTS=yes
1658 DEFAULT_wxUSE_IPC=yes
1659 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1660 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1661 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1662 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1663 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1664 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1665 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1666
1667 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1668 DEFAULT_wxUSE_CHOICEDLG=yes
1669 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1670 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1671 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1672 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1673 DEFAULT_wxUSE_FONTDLG=yes
1674 DEFAULT_wxUSE_MSGDLG=yes
1675 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1676 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1677 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1678 DEFAULT_wxUSE_STARTUP_TIPS=yes
1679 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1680 DEFAULT_wxUSE_WIZARDDLG=yes
1681
1e6feb95 1682 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1683 DEFAULT_wxUSE_MINIFRAME=yes
1684 DEFAULT_wxUSE_HTML=yes
24528b0c 1685 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1686 DEFAULT_wxUSE_FS_INET=yes
1687 DEFAULT_wxUSE_FS_ZIP=yes
1688 DEFAULT_wxUSE_BUSYINFO=yes
1689 DEFAULT_wxUSE_ZIPSTREAM=yes
1690 DEFAULT_wxUSE_VALIDATORS=yes
1691
1692 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1693 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1694 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1695 DEFAULT_wxUSE_CALCTRL=yes
1696 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1697 DEFAULT_wxUSE_CHECKBOX=yes
1698 DEFAULT_wxUSE_CHECKLST=yes
1699 DEFAULT_wxUSE_CHOICE=yes
1700 DEFAULT_wxUSE_COMBOBOX=yes
1701 DEFAULT_wxUSE_GAUGE=yes
1702 DEFAULT_wxUSE_GRID=yes
cc977e5f 1703 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1704 DEFAULT_wxUSE_IMAGLIST=yes
1705 DEFAULT_wxUSE_LISTBOX=yes
1706 DEFAULT_wxUSE_LISTCTRL=yes
1707 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1708 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1709 DEFAULT_wxUSE_RADIOBOX=yes
1710 DEFAULT_wxUSE_RADIOBTN=yes
1711 DEFAULT_wxUSE_SASH=yes
1712 DEFAULT_wxUSE_SCROLLBAR=yes
1713 DEFAULT_wxUSE_SLIDER=yes
1714 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1715 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1716 DEFAULT_wxUSE_SPLITTER=yes
1717 DEFAULT_wxUSE_STATBMP=yes
1718 DEFAULT_wxUSE_STATBOX=yes
1719 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1720 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1721 DEFAULT_wxUSE_STATUSBAR=yes
1722 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1723 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1724 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1725 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1726 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1727 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1728 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1729 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1730 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1731
1732 DEFAULT_wxUSE_UNICODE=no
1733 DEFAULT_wxUSE_WCSRTOMBS=no
1734
edae8572 1735 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1736 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1737 DEFAULT_wxUSE_GIF=yes
1738 DEFAULT_wxUSE_PCX=yes
1739 DEFAULT_wxUSE_PNM=yes
0046ff7c 1740 DEFAULT_wxUSE_XPM=yes
10f2d63a
VZ
1741fi
1742
698dcdb6
VZ
1743
1744
10f2d63a
VZ
1745for toolkit in `echo $ALL_TOOLKITS`; do
1746 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1747 if test "x$LINE" != x ; then
1748 has_toolkit_in_cache=1
1749 eval "DEFAULT_$LINE"
1750 eval "CACHE_$toolkit=1"
1751 fi
1752done
1753
698dcdb6
VZ
1754
1755
1756 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1725144d 1757echo "configure:1758: checking for --enable-gui" >&5
10f2d63a
VZ
1758 no_cache=0
1759 # Check whether --enable-gui or --disable-gui was given.
1760if test "${enable_gui+set}" = set; then
1761 enableval="$enable_gui"
698dcdb6 1762
10f2d63a
VZ
1763 if test "$enableval" = yes; then
1764 ac_cv_use_gui='wxUSE_GUI=yes'
1765 else
1766 ac_cv_use_gui='wxUSE_GUI=no'
1767 fi
698dcdb6 1768
10f2d63a 1769else
698dcdb6 1770
10f2d63a
VZ
1771 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1772 if test "x$LINE" != x ; then
1773 eval "DEFAULT_$LINE"
1774 else
1775 no_cache=1
1776 fi
1777
1778 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1779
1780fi
10f2d63a
VZ
1781
1782
1783 eval "$ac_cv_use_gui"
1784 if test "$no_cache" != 1; then
1785 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1786 fi
1787
1788 if test "$wxUSE_GUI" = yes; then
698dcdb6 1789 echo "$ac_t""yes" 1>&6
10f2d63a 1790 else
698dcdb6 1791 echo "$ac_t""no" 1>&6
10f2d63a 1792 fi
698dcdb6 1793
10f2d63a 1794
b12915c1 1795if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1796
1e6feb95
VZ
1797
1798 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1725144d 1799echo "configure:1800: checking for --enable-universal" >&5
1e6feb95
VZ
1800 no_cache=0
1801 # Check whether --enable-universal or --disable-universal was given.
1802if test "${enable_universal+set}" = set; then
1803 enableval="$enable_universal"
1804
1805 if test "$enableval" = yes; then
1806 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1807 else
1808 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1809 fi
1810
1811else
1812
1813 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1814 if test "x$LINE" != x ; then
1815 eval "DEFAULT_$LINE"
1816 else
1817 no_cache=1
1818 fi
1819
1820 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1821
1822fi
1823
1824
1825 eval "$ac_cv_use_universal"
1826 if test "$no_cache" != 1; then
1827 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1828 fi
1829
1830 if test "$wxUSE_UNIVERSAL" = yes; then
1831 echo "$ac_t""yes" 1>&6
1832 else
1833 echo "$ac_t""no" 1>&6
1834 fi
1835
10f2d63a
VZ
1836# Check whether --with-gtk or --without-gtk was given.
1837if test "${with_gtk+set}" = set; then
1838 withval="$with_gtk"
1839 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1840fi
10f2d63a
VZ
1841
1842# Check whether --with-motif or --without-motif was given.
1843if test "${with_motif+set}" = set; then
1844 withval="$with_motif"
1845 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1846fi
10f2d63a 1847
b4085ce6
GD
1848# Check whether --with-mac or --without-mac was given.
1849if test "${with_mac+set}" = set; then
1850 withval="$with_mac"
1851 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1852fi
b4085ce6 1853
10f2d63a
VZ
1854# Check whether --with-wine or --without-wine was given.
1855if test "${with_wine+set}" = set; then
1856 withval="$with_wine"
1857 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1858fi
10f2d63a 1859
77e13408
RL
1860# Check whether --with-msw or --without-msw was given.
1861if test "${with_msw+set}" = set; then
1862 withval="$with_msw"
1863 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
698dcdb6 1864fi
10f2d63a 1865
e07802fc
VZ
1866# Check whether --with-pm or --without-pm was given.
1867if test "${with_pm+set}" = set; then
1868 withval="$with_pm"
1869 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1870fi
1871
1e6feb95
VZ
1872# Check whether --with-mgl or --without-mgl was given.
1873if test "${with_mgl+set}" = set; then
1874 withval="$with_mgl"
1875 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1876fi
1877
1725144d
RR
1878# Check whether --with-microwin or --without-microwin was given.
1879if test "${with_microwin+set}" = set; then
1880 withval="$with_microwin"
1881 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1882fi
1883
10f2d63a 1884
8168de4c
VZ
1885# Check whether --enable-gtk2 or --disable-gtk2 was given.
1886if test "${enable_gtk2+set}" = set; then
1887 enableval="$enable_gtk2"
1888 wxUSE_GTK2=1
10f2d63a 1889else
8168de4c 1890 wxUSE_GTK2=0
698dcdb6
VZ
1891fi
1892
703e0a69 1893
1e487827 1894
698dcdb6 1895 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1725144d 1896echo "configure:1897: checking for --with-libpng" >&5
698dcdb6
VZ
1897 no_cache=0
1898 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1899if test "${with_libpng+set}" = set; then
1900 withval="$with_libpng"
698dcdb6 1901
10f2d63a 1902 if test "$withval" = yes; then
b12915c1 1903 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1904 elif test "$withval" = no; then
b12915c1 1905 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1906 elif test "$withval" = sys; then
1907 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
1908 elif test "$withval" = builtin; then
1909 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 1910 else
4f14bcd8 1911 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1912 fi
698dcdb6 1913
10f2d63a 1914else
698dcdb6 1915
b12915c1 1916 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1917 if test "x$LINE" != x ; then
1918 eval "DEFAULT_$LINE"
1919 else
1920 no_cache=1
1921 fi
1922
b12915c1 1923 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1924
1925fi
10f2d63a
VZ
1926
1927
b12915c1 1928 eval "$ac_cv_use_libpng"
10f2d63a 1929 if test "$no_cache" != 1; then
b12915c1 1930 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1931 fi
1932
b12915c1 1933 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1934 echo "$ac_t""yes" 1>&6
422107f9 1935 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1936 echo "$ac_t""no" 1>&6
422107f9 1937 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1938 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
1939 elif test "$wxUSE_LIBPNG" = builtin; then
1940 echo "$ac_t""builtin version" 1>&6
422107f9 1941 else
4f14bcd8 1942 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1943 fi
698dcdb6 1944
10f2d63a 1945
698dcdb6 1946 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1725144d 1947echo "configure:1948: checking for --with-libjpeg" >&5
10f2d63a 1948 no_cache=0
698dcdb6 1949 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1950if test "${with_libjpeg+set}" = set; then
1951 withval="$with_libjpeg"
698dcdb6 1952
10f2d63a 1953 if test "$withval" = yes; then
b12915c1 1954 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1955 elif test "$withval" = no; then
b12915c1 1956 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1957 elif test "$withval" = sys; then
1958 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
1959 elif test "$withval" = builtin; then
1960 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 1961 else
4f14bcd8 1962 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1963 fi
698dcdb6 1964
10f2d63a 1965else
698dcdb6 1966
b12915c1 1967 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1968 if test "x$LINE" != x ; then
1969 eval "DEFAULT_$LINE"
1970 else
1971 no_cache=1
1972 fi
1973
b12915c1 1974 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
1975
1976fi
10f2d63a
VZ
1977
1978
b12915c1 1979 eval "$ac_cv_use_libjpeg"
10f2d63a 1980 if test "$no_cache" != 1; then
b12915c1 1981 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1982 fi
1983
b12915c1 1984 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 1985 echo "$ac_t""yes" 1>&6
422107f9 1986 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 1987 echo "$ac_t""no" 1>&6
422107f9 1988 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 1989 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
1990 elif test "$wxUSE_LIBJPEG" = builtin; then
1991 echo "$ac_t""builtin version" 1>&6
422107f9 1992 else
4f14bcd8 1993 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1994 fi
698dcdb6 1995
10f2d63a 1996
698dcdb6 1997 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
1725144d 1998echo "configure:1999: checking for --with-libtiff" >&5
10f2d63a 1999 no_cache=0
698dcdb6 2000 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2001if test "${with_libtiff+set}" = set; then
2002 withval="$with_libtiff"
698dcdb6 2003
10f2d63a 2004 if test "$withval" = yes; then
b12915c1 2005 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2006 elif test "$withval" = no; then
b12915c1 2007 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2008 elif test "$withval" = sys; then
2009 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2010 elif test "$withval" = builtin; then
2011 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2012 else
4f14bcd8 2013 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2014 fi
698dcdb6 2015
10f2d63a 2016else
698dcdb6 2017
b12915c1 2018 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2019 if test "x$LINE" != x ; then
2020 eval "DEFAULT_$LINE"
2021 else
2022 no_cache=1
2023 fi
2024
b12915c1 2025 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
2026
2027fi
10f2d63a
VZ
2028
2029
b12915c1 2030 eval "$ac_cv_use_libtiff"
10f2d63a 2031 if test "$no_cache" != 1; then
b12915c1 2032 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2033 fi
2034
b12915c1 2035 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 2036 echo "$ac_t""yes" 1>&6
0dcf9893 2037 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 2038 echo "$ac_t""no" 1>&6
0dcf9893 2039 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 2040 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2041 elif test "$wxUSE_LIBTIFF" = builtin; then
2042 echo "$ac_t""builtin version" 1>&6
0dcf9893 2043 else
4f14bcd8 2044 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2045 fi
698dcdb6 2046
10f2d63a 2047
698dcdb6 2048 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
1725144d 2049echo "configure:2050: checking for --with-freetype" >&5
3fed1840 2050 no_cache=0
698dcdb6 2051 # Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
2052if test "${with_freetype+set}" = set; then
2053 withval="$with_freetype"
698dcdb6 2054
3fed1840
RR
2055 if test "$withval" = yes; then
2056 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2057 elif test "$withval" = no; then
2058 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2059 elif test "$withval" = sys; then
2060 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
4f14bcd8
GD
2061 elif test "$withval" = builtin; then
2062 ac_cv_use_freetype='wxUSE_FREETYPE=builtin'
3fed1840 2063 else
4f14bcd8 2064 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3fed1840 2065 fi
698dcdb6 2066
3fed1840 2067else
698dcdb6 2068
3fed1840
RR
2069 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2070 if test "x$LINE" != x ; then
2071 eval "DEFAULT_$LINE"
2072 else
2073 no_cache=1
2074 fi
2075
2076 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
698dcdb6
VZ
2077
2078fi
3fed1840
RR
2079
2080
2081 eval "$ac_cv_use_freetype"
2082 if test "$no_cache" != 1; then
2083 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2084 fi
2085
2086 if test "$wxUSE_FREETYPE" = yes; then
698dcdb6 2087 echo "$ac_t""yes" 1>&6
3fed1840 2088 elif test "$wxUSE_FREETYPE" = no; then
698dcdb6 2089 echo "$ac_t""no" 1>&6
3fed1840 2090 elif test "$wxUSE_FREETYPE" = sys; then
698dcdb6 2091 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2092 elif test "$wxUSE_FREETYPE" = builtin; then
2093 echo "$ac_t""builtin version" 1>&6
3fed1840 2094 else
4f14bcd8 2095 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3fed1840 2096 fi
698dcdb6 2097
3fed1840 2098
698dcdb6 2099 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
1725144d 2100echo "configure:2101: checking for --with-opengl" >&5
10f2d63a 2101 no_cache=0
698dcdb6 2102 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2103if test "${with_opengl+set}" = set; then
2104 withval="$with_opengl"
698dcdb6 2105
10f2d63a 2106 if test "$withval" = yes; then
b12915c1 2107 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2108 else
b12915c1 2109 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2110 fi
698dcdb6 2111
10f2d63a 2112else
698dcdb6 2113
b12915c1 2114 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2115 if test "x$LINE" != x ; then
2116 eval "DEFAULT_$LINE"
2117 else
2118 no_cache=1
2119 fi
2120
b12915c1 2121 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2122
2123fi
10f2d63a
VZ
2124
2125
b12915c1 2126 eval "$ac_cv_use_opengl"
10f2d63a 2127 if test "$no_cache" != 1; then
b12915c1 2128 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2129 fi
2130
b12915c1 2131 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2132 echo "$ac_t""yes" 1>&6
10f2d63a 2133 else
698dcdb6 2134 echo "$ac_t""no" 1>&6
10f2d63a 2135 fi
698dcdb6 2136
10f2d63a 2137
b12915c1
VZ
2138fi
2139
1e487827 2140
698dcdb6 2141 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
1725144d 2142echo "configure:2143: checking for --with-dmalloc" >&5
698dcdb6
VZ
2143 no_cache=0
2144 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2145if test "${with_dmalloc+set}" = set; then
2146 withval="$with_dmalloc"
698dcdb6 2147
c7a2bf27 2148 if test "$withval" = yes; then
b12915c1 2149 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2150 else
b12915c1 2151 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2152 fi
698dcdb6 2153
c7a2bf27 2154else
698dcdb6 2155
b12915c1 2156 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2157 if test "x$LINE" != x ; then
2158 eval "DEFAULT_$LINE"
2159 else
2160 no_cache=1
2161 fi
2162
b12915c1 2163 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2164
2165fi
c7a2bf27
RR
2166
2167
b12915c1 2168 eval "$ac_cv_use_dmalloc"
c7a2bf27 2169 if test "$no_cache" != 1; then
b12915c1 2170 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2171 fi
2172
b12915c1 2173 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2174 echo "$ac_t""yes" 1>&6
c7a2bf27 2175 else
698dcdb6 2176 echo "$ac_t""no" 1>&6
c7a2bf27 2177 fi
698dcdb6 2178
c7a2bf27 2179
3e44f09d 2180 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
1725144d 2181echo "configure:2182: checking for --with-regex" >&5
3e44f09d
VZ
2182 no_cache=0
2183 # Check whether --with-regex or --without-regex was given.
2184if test "${with_regex+set}" = set; then
2185 withval="$with_regex"
2186
2187 if test "$withval" = yes; then
2188 ac_cv_use_regex='wxUSE_REGEX=yes'
2189 elif test "$withval" = no; then
2190 ac_cv_use_regex='wxUSE_REGEX=no'
2191 elif test "$withval" = sys; then
2192 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2193 elif test "$withval" = builtin; then
2194 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2195 else
4f14bcd8 2196 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2197 fi
2198
2199else
2200
2201 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2202 if test "x$LINE" != x ; then
2203 eval "DEFAULT_$LINE"
2204 else
2205 no_cache=1
2206 fi
2207
2208 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2209
2210fi
2211
2212
2213 eval "$ac_cv_use_regex"
2214 if test "$no_cache" != 1; then
2215 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2216 fi
2217
2218 if test "$wxUSE_REGEX" = yes; then
2219 echo "$ac_t""yes" 1>&6
2220 elif test "$wxUSE_REGEX" = no; then
2221 echo "$ac_t""no" 1>&6
2222 elif test "$wxUSE_REGEX" = sys; then
2223 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2224 elif test "$wxUSE_REGEX" = builtin; then
2225 echo "$ac_t""builtin version" 1>&6
3e44f09d 2226 else
4f14bcd8 2227 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2228 fi
2229
2230
698dcdb6 2231 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
1725144d 2232echo "configure:2233: checking for --with-zlib" >&5
10f2d63a 2233 no_cache=0
698dcdb6 2234 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2235if test "${with_zlib+set}" = set; then
2236 withval="$with_zlib"
698dcdb6 2237
10f2d63a 2238 if test "$withval" = yes; then
b12915c1 2239 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2240 elif test "$withval" = no; then
b12915c1 2241 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2242 elif test "$withval" = sys; then
2243 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2244 elif test "$withval" = builtin; then
2245 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2246 else
4f14bcd8 2247 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2248 fi
698dcdb6 2249
10f2d63a 2250else
698dcdb6 2251
b12915c1 2252 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2253 if test "x$LINE" != x ; then
2254 eval "DEFAULT_$LINE"
2255 else
2256 no_cache=1
2257 fi
2258
b12915c1 2259 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2260
2261fi
10f2d63a
VZ
2262
2263
b12915c1 2264 eval "$ac_cv_use_zlib"
10f2d63a 2265 if test "$no_cache" != 1; then
b12915c1 2266 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2267 fi
2268
b12915c1 2269 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2270 echo "$ac_t""yes" 1>&6
422107f9 2271 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2272 echo "$ac_t""no" 1>&6
422107f9 2273 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2274 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2275 elif test "$wxUSE_ZLIB" = builtin; then
2276 echo "$ac_t""builtin version" 1>&6
422107f9 2277 else
4f14bcd8 2278 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2279 fi
698dcdb6 2280
10f2d63a 2281
698dcdb6 2282 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
1725144d 2283echo "configure:2284: checking for --with-odbc" >&5
10f2d63a 2284 no_cache=0
698dcdb6 2285 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2286if test "${with_odbc+set}" = set; then
2287 withval="$with_odbc"
698dcdb6 2288
10f2d63a
VZ
2289 if test "$withval" = yes; then
2290 ac_cv_use_odbc='wxUSE_ODBC=yes'
2291 else
2292 ac_cv_use_odbc='wxUSE_ODBC=no'
2293 fi
698dcdb6 2294
10f2d63a 2295else
698dcdb6 2296
10f2d63a
VZ
2297 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2298 if test "x$LINE" != x ; then
2299 eval "DEFAULT_$LINE"
2300 else
2301 no_cache=1
2302 fi
2303
2304 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2305
2306fi
10f2d63a
VZ
2307
2308
2309 eval "$ac_cv_use_odbc"
2310 if test "$no_cache" != 1; then
2311 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2312 fi
2313
2314 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2315 echo "$ac_t""yes" 1>&6
10f2d63a 2316 else
698dcdb6 2317 echo "$ac_t""no" 1>&6
10f2d63a 2318 fi
698dcdb6
VZ
2319
2320
10f2d63a 2321
698dcdb6 2322
698dcdb6 2323 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
1725144d 2324echo "configure:2325: checking for --enable-shared" >&5
10f2d63a
VZ
2325 no_cache=0
2326 # Check whether --enable-shared or --disable-shared was given.
2327if test "${enable_shared+set}" = set; then
2328 enableval="$enable_shared"
698dcdb6 2329
10f2d63a
VZ
2330 if test "$enableval" = yes; then
2331 ac_cv_use_shared='wxUSE_SHARED=yes'
2332 else
2333 ac_cv_use_shared='wxUSE_SHARED=no'
2334 fi
698dcdb6 2335
10f2d63a 2336else
698dcdb6 2337
10f2d63a
VZ
2338 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2339 if test "x$LINE" != x ; then
2340 eval "DEFAULT_$LINE"
2341 else
2342 no_cache=1
2343 fi
2344
2345 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2346
2347fi
10f2d63a
VZ
2348
2349
2350 eval "$ac_cv_use_shared"
2351 if test "$no_cache" != 1; then
2352 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2353 fi
2354
2355 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2356 echo "$ac_t""yes" 1>&6
10f2d63a 2357 else
698dcdb6 2358 echo "$ac_t""no" 1>&6
10f2d63a 2359 fi
698dcdb6 2360
10f2d63a 2361
3a922bb4 2362 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
1725144d 2363echo "configure:2364: checking for --enable-soname" >&5
00cf1208 2364 no_cache=0
3a922bb4
RL
2365 # Check whether --enable-soname or --disable-soname was given.
2366if test "${enable_soname+set}" = set; then
2367 enableval="$enable_soname"
698dcdb6 2368
00cf1208 2369 if test "$enableval" = yes; then
3a922bb4 2370 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2371 else
3a922bb4 2372 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2373 fi
698dcdb6 2374
00cf1208 2375else
698dcdb6 2376
3a922bb4 2377 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2378 if test "x$LINE" != x ; then
2379 eval "DEFAULT_$LINE"
2380 else
2381 no_cache=1
2382 fi
2383
3a922bb4 2384 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
698dcdb6
VZ
2385
2386fi
00cf1208
RR
2387
2388
3a922bb4 2389 eval "$ac_cv_use_soname"
00cf1208 2390 if test "$no_cache" != 1; then
3a922bb4 2391 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2392 fi
2393
3a922bb4 2394 if test "$wxUSE_SONAME" = yes; then
698dcdb6 2395 echo "$ac_t""yes" 1>&6
00cf1208 2396 else
698dcdb6 2397 echo "$ac_t""no" 1>&6
00cf1208 2398 fi
698dcdb6 2399
00cf1208 2400
698dcdb6 2401 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
1725144d 2402echo "configure:2403: checking for --enable-optimise" >&5
10f2d63a
VZ
2403 no_cache=0
2404 # Check whether --enable-optimise or --disable-optimise was given.
2405if test "${enable_optimise+set}" = set; then
2406 enableval="$enable_optimise"
698dcdb6 2407
10f2d63a
VZ
2408 if test "$enableval" = yes; then
2409 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2410 else
2411 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2412 fi
698dcdb6 2413
10f2d63a 2414else
698dcdb6 2415
10f2d63a
VZ
2416 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2417 if test "x$LINE" != x ; then
2418 eval "DEFAULT_$LINE"
2419 else
2420 no_cache=1
2421 fi
2422
2423 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2424
2425fi
10f2d63a
VZ
2426
2427
2428 eval "$ac_cv_use_optimise"
2429 if test "$no_cache" != 1; then
2430 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2431 fi
2432
2433 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2434 echo "$ac_t""yes" 1>&6
10f2d63a 2435 else
698dcdb6 2436 echo "$ac_t""no" 1>&6
10f2d63a 2437 fi
698dcdb6 2438
10f2d63a 2439
698dcdb6 2440 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
1725144d 2441echo "configure:2442: checking for --enable-debug" >&5
10f2d63a
VZ
2442 no_cache=0
2443 # Check whether --enable-debug or --disable-debug was given.
2444if test "${enable_debug+set}" = set; then
2445 enableval="$enable_debug"
698dcdb6 2446
10f2d63a
VZ
2447 if test "$enableval" = yes; then
2448 ac_cv_use_debug='wxUSE_DEBUG=yes'
2449 else
2450 ac_cv_use_debug='wxUSE_DEBUG=no'
2451 fi
698dcdb6 2452
10f2d63a 2453else
698dcdb6 2454
10f2d63a
VZ
2455 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2456 if test "x$LINE" != x ; then
2457 eval "DEFAULT_$LINE"
2458 else
2459 no_cache=1
2460 fi
2461
2462 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2463
2464fi
10f2d63a
VZ
2465
2466
2467 eval "$ac_cv_use_debug"
2468 if test "$no_cache" != 1; then
2469 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2470 fi
2471
2472 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2473 echo "$ac_t""yes" 1>&6
10f2d63a 2474 else
698dcdb6 2475 echo "$ac_t""no" 1>&6
10f2d63a 2476 fi
698dcdb6 2477
10f2d63a 2478
683dccda
GD
2479
2480 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
1725144d 2481echo "configure:2482: checking for --enable-precomp" >&5
683dccda
GD
2482 no_cache=0
2483 # Check whether --enable-precomp or --disable-precomp was given.
2484if test "${enable_precomp+set}" = set; then
2485 enableval="$enable_precomp"
2486
2487 if test "$enableval" = yes; then
2488 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2489 else
2490 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2491 fi
2492
2493else
2494
2495 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2496 if test "x$LINE" != x ; then
2497 eval "DEFAULT_$LINE"
2498 else
2499 no_cache=1
2500 fi
2501
2502 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2503
2504fi
2505
2506
2507 eval "$ac_cv_use_precomp"
2508 if test "$no_cache" != 1; then
2509 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2510 fi
2511
2512 if test "$wxUSE_PRECOMP" = yes; then
2513 echo "$ac_t""yes" 1>&6
2514 else
2515 echo "$ac_t""no" 1>&6
2516 fi
2517
2518
10f2d63a
VZ
2519if test "$wxUSE_DEBUG" = "yes"; then
2520 DEFAULT_wxUSE_DEBUG_FLAG=yes
2521 DEFAULT_wxUSE_DEBUG_INFO=yes
2522elif test "$wxUSE_DEBUG" = "no"; then
2523 DEFAULT_wxUSE_DEBUG_FLAG=no
2524 DEFAULT_wxUSE_DEBUG_INFO=no
2525fi
2526
698dcdb6
VZ
2527
2528 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
1725144d 2529echo "configure:2530: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2530 no_cache=0
2531 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2532if test "${enable_debug_flag+set}" = set; then
2533 enableval="$enable_debug_flag"
698dcdb6 2534
10f2d63a
VZ
2535 if test "$enableval" = yes; then
2536 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2537 else
2538 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2539 fi
698dcdb6 2540
10f2d63a 2541else
698dcdb6 2542
10f2d63a
VZ
2543 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2544 if test "x$LINE" != x ; then
2545 eval "DEFAULT_$LINE"
2546 else
2547 no_cache=1
2548 fi
2549
2550 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2551
2552fi
10f2d63a
VZ
2553
2554
2555 eval "$ac_cv_use_debug_flag"
2556 if test "$no_cache" != 1; then
2557 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2558 fi
2559
2560 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2561 echo "$ac_t""yes" 1>&6
10f2d63a 2562 else
698dcdb6 2563 echo "$ac_t""no" 1>&6
10f2d63a 2564 fi
698dcdb6 2565
10f2d63a 2566
698dcdb6 2567 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
1725144d 2568echo "configure:2569: checking for --enable-debug_info" >&5
10f2d63a
VZ
2569 no_cache=0
2570 # Check whether --enable-debug_info or --disable-debug_info was given.
2571if test "${enable_debug_info+set}" = set; then
2572 enableval="$enable_debug_info"
698dcdb6 2573
10f2d63a
VZ
2574 if test "$enableval" = yes; then
2575 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2576 else
2577 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2578 fi
698dcdb6 2579
10f2d63a 2580else
698dcdb6 2581
10f2d63a
VZ
2582 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2583 if test "x$LINE" != x ; then
2584 eval "DEFAULT_$LINE"
2585 else
2586 no_cache=1
2587 fi
2588
2589 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2590
2591fi
10f2d63a
VZ
2592
2593
2594 eval "$ac_cv_use_debug_info"
2595 if test "$no_cache" != 1; then
2596 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2597 fi
2598
2599 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2600 echo "$ac_t""yes" 1>&6
10f2d63a 2601 else
698dcdb6 2602 echo "$ac_t""no" 1>&6
10f2d63a 2603 fi
698dcdb6 2604
10f2d63a 2605
698dcdb6 2606 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
1725144d 2607echo "configure:2608: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2608 no_cache=0
2609 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2610if test "${enable_debug_gdb+set}" = set; then
2611 enableval="$enable_debug_gdb"
698dcdb6 2612
10f2d63a
VZ
2613 if test "$enableval" = yes; then
2614 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2615 else
2616 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2617 fi
698dcdb6 2618
10f2d63a 2619else
698dcdb6 2620
10f2d63a
VZ
2621 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2622 if test "x$LINE" != x ; then
2623 eval "DEFAULT_$LINE"
2624 else
2625 no_cache=1
2626 fi
2627
2628 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2629
2630fi
10f2d63a
VZ
2631
2632
2633 eval "$ac_cv_use_debug_gdb"
2634 if test "$no_cache" != 1; then
2635 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2636 fi
2637
2638 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2639 echo "$ac_t""yes" 1>&6
10f2d63a 2640 else
698dcdb6 2641 echo "$ac_t""no" 1>&6
10f2d63a 2642 fi
698dcdb6 2643
10f2d63a 2644
698dcdb6 2645 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
1725144d 2646echo "configure:2647: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2647 no_cache=0
2648 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2649if test "${enable_debug_cntxt+set}" = set; then
2650 enableval="$enable_debug_cntxt"
698dcdb6 2651
10f2d63a
VZ
2652 if test "$enableval" = yes; then
2653 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2654 else
2655 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2656 fi
698dcdb6 2657
10f2d63a 2658else
698dcdb6 2659
10f2d63a
VZ
2660 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2661 if test "x$LINE" != x ; then
2662 eval "DEFAULT_$LINE"
2663 else
2664 no_cache=1
2665 fi
2666
2667 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2668
2669fi
10f2d63a
VZ
2670
2671
2672 eval "$ac_cv_use_debug_cntxt"
2673 if test "$no_cache" != 1; then
2674 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2675 fi
2676
2677 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2678 echo "$ac_t""yes" 1>&6
10f2d63a 2679 else
698dcdb6 2680 echo "$ac_t""no" 1>&6
10f2d63a 2681 fi
698dcdb6 2682
10f2d63a 2683
698dcdb6 2684 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
1725144d 2685echo "configure:2686: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2686 no_cache=0
2687 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2688if test "${enable_mem_tracing+set}" = set; then
2689 enableval="$enable_mem_tracing"
698dcdb6 2690
10f2d63a
VZ
2691 if test "$enableval" = yes; then
2692 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2693 else
2694 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2695 fi
698dcdb6 2696
10f2d63a 2697else
698dcdb6 2698
10f2d63a
VZ
2699 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2700 if test "x$LINE" != x ; then
2701 eval "DEFAULT_$LINE"
2702 else
2703 no_cache=1
2704 fi
2705
2706 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2707
2708fi
10f2d63a
VZ
2709
2710
2711 eval "$ac_cv_use_mem_tracing"
2712 if test "$no_cache" != 1; then
2713 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2714 fi
2715
2716 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2717 echo "$ac_t""yes" 1>&6
10f2d63a 2718 else
698dcdb6 2719 echo "$ac_t""no" 1>&6
10f2d63a 2720 fi
698dcdb6 2721
10f2d63a 2722
698dcdb6 2723 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
1725144d 2724echo "configure:2725: checking for --enable-profile" >&5
10f2d63a
VZ
2725 no_cache=0
2726 # Check whether --enable-profile or --disable-profile was given.
2727if test "${enable_profile+set}" = set; then
2728 enableval="$enable_profile"
698dcdb6 2729
10f2d63a
VZ
2730 if test "$enableval" = yes; then
2731 ac_cv_use_profile='wxUSE_PROFILE=yes'
2732 else
2733 ac_cv_use_profile='wxUSE_PROFILE=no'
2734 fi
698dcdb6 2735
10f2d63a 2736else
698dcdb6 2737
10f2d63a
VZ
2738 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2739 if test "x$LINE" != x ; then
2740 eval "DEFAULT_$LINE"
2741 else
2742 no_cache=1
2743 fi
2744
2745 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2746
2747fi
10f2d63a
VZ
2748
2749
2750 eval "$ac_cv_use_profile"
2751 if test "$no_cache" != 1; then
2752 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2753 fi
2754
2755 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2756 echo "$ac_t""yes" 1>&6
10f2d63a 2757 else
698dcdb6 2758 echo "$ac_t""no" 1>&6
10f2d63a 2759 fi
698dcdb6 2760
10f2d63a 2761
698dcdb6 2762 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
1725144d 2763echo "configure:2764: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2764 no_cache=0
2765 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2766if test "${enable_no_rtti+set}" = set; then
2767 enableval="$enable_no_rtti"
698dcdb6 2768
10f2d63a
VZ
2769 if test "$enableval" = yes; then
2770 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2771 else
2772 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2773 fi
698dcdb6 2774
10f2d63a 2775else
698dcdb6 2776
10f2d63a
VZ
2777 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2778 if test "x$LINE" != x ; then
2779 eval "DEFAULT_$LINE"
2780 else
2781 no_cache=1
2782 fi
2783
2784 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2785
2786fi
10f2d63a
VZ
2787
2788
2789 eval "$ac_cv_use_no_rtti"
2790 if test "$no_cache" != 1; then
2791 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2792 fi
2793
2794 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2795 echo "$ac_t""yes" 1>&6
10f2d63a 2796 else
698dcdb6 2797 echo "$ac_t""no" 1>&6
10f2d63a 2798 fi
698dcdb6 2799
10f2d63a 2800
698dcdb6 2801 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
1725144d 2802echo "configure:2803: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2803 no_cache=0
2804 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2805if test "${enable_no_exceptions+set}" = set; then
2806 enableval="$enable_no_exceptions"
698dcdb6 2807
10f2d63a
VZ
2808 if test "$enableval" = yes; then
2809 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2810 else
2811 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2812 fi
698dcdb6 2813
10f2d63a 2814else
698dcdb6 2815
10f2d63a
VZ
2816 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2817 if test "x$LINE" != x ; then
2818 eval "DEFAULT_$LINE"
2819 else
2820 no_cache=1
2821 fi
2822
2823 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2824
2825fi
10f2d63a
VZ
2826
2827
2828 eval "$ac_cv_use_no_exceptions"
2829 if test "$no_cache" != 1; then
2830 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2831 fi
2832
2833 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2834 echo "$ac_t""yes" 1>&6
10f2d63a 2835 else
698dcdb6 2836 echo "$ac_t""no" 1>&6
10f2d63a 2837 fi
698dcdb6 2838
10f2d63a 2839
698dcdb6 2840 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
1725144d 2841echo "configure:2842: checking for --enable-permissive" >&5
10f2d63a
VZ
2842 no_cache=0
2843 # Check whether --enable-permissive or --disable-permissive was given.
2844if test "${enable_permissive+set}" = set; then
2845 enableval="$enable_permissive"
698dcdb6 2846
10f2d63a
VZ
2847 if test "$enableval" = yes; then
2848 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2849 else
2850 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2851 fi
698dcdb6 2852
10f2d63a 2853else
698dcdb6 2854
10f2d63a
VZ
2855 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2856 if test "x$LINE" != x ; then
2857 eval "DEFAULT_$LINE"
2858 else
2859 no_cache=1
2860 fi
2861
2862 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2863
2864fi
10f2d63a
VZ
2865
2866
2867 eval "$ac_cv_use_permissive"
2868 if test "$no_cache" != 1; then
2869 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2870 fi
2871
2872 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2873 echo "$ac_t""yes" 1>&6
10f2d63a 2874 else
698dcdb6 2875 echo "$ac_t""no" 1>&6
10f2d63a 2876 fi
698dcdb6 2877
10f2d63a 2878
698dcdb6 2879 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
1725144d 2880echo "configure:2881: checking for --enable-no_deps" >&5
10f2d63a
VZ
2881 no_cache=0
2882 # Check whether --enable-no_deps or --disable-no_deps was given.
2883if test "${enable_no_deps+set}" = set; then
2884 enableval="$enable_no_deps"
698dcdb6 2885
10f2d63a
VZ
2886 if test "$enableval" = yes; then
2887 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2888 else
2889 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2890 fi
698dcdb6 2891
10f2d63a 2892else
698dcdb6 2893
10f2d63a
VZ
2894 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2895 if test "x$LINE" != x ; then
2896 eval "DEFAULT_$LINE"
2897 else
2898 no_cache=1
2899 fi
2900
2901 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2902
2903fi
10f2d63a
VZ
2904
2905
2906 eval "$ac_cv_use_no_deps"
2907 if test "$no_cache" != 1; then
2908 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2909 fi
2910
2911 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2912 echo "$ac_t""yes" 1>&6
10f2d63a 2913 else
698dcdb6 2914 echo "$ac_t""no" 1>&6
10f2d63a 2915 fi
698dcdb6
VZ
2916
2917
10f2d63a 2918
54276ccf 2919 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
1725144d 2920echo "configure:2921: checking for --enable-compat20" >&5
54276ccf
VZ
2921 no_cache=0
2922 # Check whether --enable-compat20 or --disable-compat20 was given.
2923if test "${enable_compat20+set}" = set; then
2924 enableval="$enable_compat20"
2925
2926 if test "$enableval" = yes; then
2927 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2928 else
2929 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2930 fi
2931
2932else
2933
2934 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2935 if test "x$LINE" != x ; then
2936 eval "DEFAULT_$LINE"
2937 else
2938 no_cache=1
2939 fi
2940
2941 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2942
2943fi
2944
2945
2946 eval "$ac_cv_use_compat20"
2947 if test "$no_cache" != 1; then
2948 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2949 fi
2950
2951 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2952 echo "$ac_t""yes" 1>&6
2953 else
2954 echo "$ac_t""no" 1>&6
2955 fi
2956
2957
2958 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
1725144d 2959echo "configure:2960: checking for --enable-compat22" >&5
54276ccf
VZ
2960 no_cache=0
2961 # Check whether --enable-compat22 or --disable-compat22 was given.
2962if test "${enable_compat22+set}" = set; then
2963 enableval="$enable_compat22"
2964
2965 if test "$enableval" = yes; then
2966 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2967 else
2968 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2969 fi
2970
2971else
2972
2973 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2974 if test "x$LINE" != x ; then
2975 eval "DEFAULT_$LINE"
2976 else
2977 no_cache=1
2978 fi
2979
2980 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2981
2982fi
2983
2984
2985 eval "$ac_cv_use_compat22"
2986 if test "$no_cache" != 1; then
2987 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2988 fi
2989
2990 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2991 echo "$ac_t""yes" 1>&6
2992 else
2993 echo "$ac_t""no" 1>&6
2994 fi
2995
2996
2997
698dcdb6
VZ
2998
2999 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
1725144d 3000echo "configure:3001: checking for --enable-intl" >&5
10f2d63a
VZ
3001 no_cache=0
3002 # Check whether --enable-intl or --disable-intl was given.
3003if test "${enable_intl+set}" = set; then
3004 enableval="$enable_intl"
698dcdb6 3005
10f2d63a
VZ
3006 if test "$enableval" = yes; then
3007 ac_cv_use_intl='wxUSE_INTL=yes'
3008 else
3009 ac_cv_use_intl='wxUSE_INTL=no'
3010 fi
698dcdb6 3011
10f2d63a 3012else
698dcdb6 3013
10f2d63a
VZ
3014 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3015 if test "x$LINE" != x ; then
3016 eval "DEFAULT_$LINE"
3017 else
3018 no_cache=1
3019 fi
3020
3021 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
3022
3023fi
10f2d63a
VZ
3024
3025
3026 eval "$ac_cv_use_intl"
3027 if test "$no_cache" != 1; then
3028 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3029 fi
3030
3031 if test "$wxUSE_INTL" = yes; then
698dcdb6 3032 echo "$ac_t""yes" 1>&6
10f2d63a 3033 else
698dcdb6 3034 echo "$ac_t""no" 1>&6
10f2d63a 3035 fi
698dcdb6 3036
10f2d63a 3037
698dcdb6 3038 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
1725144d 3039echo "configure:3040: checking for --enable-config" >&5
10f2d63a
VZ
3040 no_cache=0
3041 # Check whether --enable-config or --disable-config was given.
3042if test "${enable_config+set}" = set; then
3043 enableval="$enable_config"
698dcdb6 3044
10f2d63a
VZ
3045 if test "$enableval" = yes; then
3046 ac_cv_use_config='wxUSE_CONFIG=yes'
3047 else
3048 ac_cv_use_config='wxUSE_CONFIG=no'
3049 fi
698dcdb6 3050
10f2d63a 3051else
698dcdb6 3052
10f2d63a
VZ
3053 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3054 if test "x$LINE" != x ; then
3055 eval "DEFAULT_$LINE"
3056 else
3057 no_cache=1
3058 fi
3059
3060 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
3061
3062fi
10f2d63a
VZ
3063
3064
3065 eval "$ac_cv_use_config"
3066 if test "$no_cache" != 1; then
3067 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3068 fi
3069
3070 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 3071 echo "$ac_t""yes" 1>&6
10f2d63a 3072 else
698dcdb6 3073 echo "$ac_t""no" 1>&6
10f2d63a 3074 fi
698dcdb6
VZ
3075
3076
b12915c1 3077
698dcdb6 3078 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
1725144d 3079echo "configure:3080: checking for --enable-sockets" >&5
10f2d63a
VZ
3080 no_cache=0
3081 # Check whether --enable-sockets or --disable-sockets was given.
3082if test "${enable_sockets+set}" = set; then
3083 enableval="$enable_sockets"
698dcdb6 3084
10f2d63a
VZ
3085 if test "$enableval" = yes; then
3086 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3087 else
3088 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3089 fi
698dcdb6 3090
10f2d63a 3091else
698dcdb6 3092
10f2d63a
VZ
3093 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3094 if test "x$LINE" != x ; then
3095 eval "DEFAULT_$LINE"
3096 else
3097 no_cache=1
3098 fi
3099
3100 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
3101
3102fi
10f2d63a
VZ
3103
3104
3105 eval "$ac_cv_use_sockets"
3106 if test "$no_cache" != 1; then
3107 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3108 fi
3109
3110 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 3111 echo "$ac_t""yes" 1>&6
10f2d63a 3112 else
698dcdb6 3113 echo "$ac_t""no" 1>&6
10f2d63a 3114 fi
698dcdb6 3115
b12915c1 3116
698dcdb6
VZ
3117
3118 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
1725144d 3119echo "configure:3120: checking for --enable-ipc" >&5
10f2d63a 3120 no_cache=0
eb4efbdc
VZ
3121 # Check whether --enable-ipc or --disable-ipc was given.
3122if test "${enable_ipc+set}" = set; then
3123 enableval="$enable_ipc"
698dcdb6 3124
10f2d63a 3125 if test "$enableval" = yes; then
eb4efbdc 3126 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3127 else
eb4efbdc 3128 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3129 fi
698dcdb6 3130
10f2d63a 3131else
698dcdb6 3132
eb4efbdc 3133 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3134 if test "x$LINE" != x ; then
3135 eval "DEFAULT_$LINE"
3136 else
3137 no_cache=1
3138 fi
3139
eb4efbdc 3140 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3141
3142fi
10f2d63a
VZ
3143
3144
eb4efbdc 3145 eval "$ac_cv_use_ipc"
10f2d63a 3146 if test "$no_cache" != 1; then
eb4efbdc 3147 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3148 fi
3149
eb4efbdc 3150 if test "$wxUSE_IPC" = yes; then
698dcdb6 3151 echo "$ac_t""yes" 1>&6
10f2d63a 3152 else
698dcdb6 3153 echo "$ac_t""no" 1>&6
10f2d63a 3154 fi
698dcdb6
VZ
3155
3156
eb4efbdc 3157
1e6feb95 3158 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
1725144d 3159echo "configure:3160: checking for --enable-cmdline" >&5
1e6feb95
VZ
3160 no_cache=0
3161 # Check whether --enable-cmdline or --disable-cmdline was given.
3162if test "${enable_cmdline+set}" = set; then
3163 enableval="$enable_cmdline"
3164
3165 if test "$enableval" = yes; then
3166 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3167 else
3168 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3169 fi
3170
3171else
3172
3173 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3174 if test "x$LINE" != x ; then
3175 eval "DEFAULT_$LINE"
3176 else
3177 no_cache=1
3178 fi
3179
3180 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3181
3182fi
3183
3184
3185 eval "$ac_cv_use_cmdline"
3186 if test "$no_cache" != 1; then
3187 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3188 fi
3189
3190 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3191 echo "$ac_t""yes" 1>&6
3192 else
3193 echo "$ac_t""no" 1>&6
3194 fi
3195
3196
3197 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
1725144d 3198echo "configure:3199: checking for --enable-datetime" >&5
1e6feb95
VZ
3199 no_cache=0
3200 # Check whether --enable-datetime or --disable-datetime was given.
3201if test "${enable_datetime+set}" = set; then
3202 enableval="$enable_datetime"
3203
3204 if test "$enableval" = yes; then
3205 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3206 else
3207 ac_cv_use_datetime='wxUSE_DATETIME=no'
3208 fi
3209
3210else
3211
3212 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3213 if test "x$LINE" != x ; then
3214 eval "DEFAULT_$LINE"
3215 else
3216 no_cache=1
3217 fi
3218
3219 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3220
3221fi
3222
3223
3224 eval "$ac_cv_use_datetime"
3225 if test "$no_cache" != 1; then
3226 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3227 fi
3228
3229 if test "$wxUSE_DATETIME" = yes; then
3230 echo "$ac_t""yes" 1>&6
3231 else
3232 echo "$ac_t""no" 1>&6
3233 fi
3234
3235
3236 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
1725144d 3237echo "configure:3238: checking for --enable-timedate" >&5
1e6feb95
VZ
3238 no_cache=0
3239 # Check whether --enable-timedate or --disable-timedate was given.
3240if test "${enable_timedate+set}" = set; then
3241 enableval="$enable_timedate"
3242
3243 if test "$enableval" = yes; then
3244 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3245 else
3246 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3247 fi
3248
3249else
3250
3251 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3252 if test "x$LINE" != x ; then
3253 eval "DEFAULT_$LINE"
3254 else
3255 no_cache=1
3256 fi
3257
3258 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3259
3260fi
3261
3262
3263 eval "$ac_cv_use_timedate"
3264 if test "$no_cache" != 1; then
3265 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3266 fi
3267
3268 if test "$wxUSE_TIMEDATE" = yes; then
3269 echo "$ac_t""yes" 1>&6
3270 else
3271 echo "$ac_t""no" 1>&6
3272 fi
3273
3274
3275 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
1725144d 3276echo "configure:3277: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3277 no_cache=0
3278 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3279if test "${enable_stopwatch+set}" = set; then
3280 enableval="$enable_stopwatch"
3281
3282 if test "$enableval" = yes; then
3283 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3284 else
3285 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3286 fi
3287
3288else
3289
3290 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3291 if test "x$LINE" != x ; then
3292 eval "DEFAULT_$LINE"
3293 else
3294 no_cache=1
3295 fi
3296
3297 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3298
3299fi
3300
3301
3302 eval "$ac_cv_use_stopwatch"
3303 if test "$no_cache" != 1; then
3304 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3305 fi
3306
3307 if test "$wxUSE_STOPWATCH" = yes; then
3308 echo "$ac_t""yes" 1>&6
3309 else
3310 echo "$ac_t""no" 1>&6
3311 fi
3312
3313
698dcdb6 3314 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
1725144d 3315echo "configure:3316: checking for --enable-dialupman" >&5
10f2d63a 3316 no_cache=0
eb4efbdc
VZ
3317 # Check whether --enable-dialupman or --disable-dialupman was given.
3318if test "${enable_dialupman+set}" = set; then
3319 enableval="$enable_dialupman"
698dcdb6 3320
10f2d63a 3321 if test "$enableval" = yes; then
eb4efbdc 3322 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3323 else
eb4efbdc 3324 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3325 fi
698dcdb6 3326
10f2d63a 3327else
698dcdb6 3328
eb4efbdc 3329 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3330 if test "x$LINE" != x ; then
3331 eval "DEFAULT_$LINE"
3332 else
3333 no_cache=1
3334 fi
3335
eb4efbdc 3336 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3337
3338fi
10f2d63a
VZ
3339
3340
eb4efbdc 3341 eval "$ac_cv_use_dialupman"
10f2d63a 3342 if test "$no_cache" != 1; then
eb4efbdc 3343 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3344 fi
3345
eb4efbdc 3346 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3347 echo "$ac_t""yes" 1>&6
10f2d63a 3348 else
698dcdb6 3349 echo "$ac_t""no" 1>&6
10f2d63a 3350 fi
698dcdb6 3351
10f2d63a 3352
698dcdb6 3353 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
1725144d 3354echo "configure:3355: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3355 no_cache=0
3356 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3357if test "${enable_apple_ieee+set}" = set; then
3358 enableval="$enable_apple_ieee"
698dcdb6 3359
10f2d63a
VZ
3360 if test "$enableval" = yes; then
3361 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3362 else
3363 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3364 fi
698dcdb6 3365
10f2d63a 3366else
698dcdb6 3367
10f2d63a
VZ
3368 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3369 if test "x$LINE" != x ; then
3370 eval "DEFAULT_$LINE"
3371 else
3372 no_cache=1
3373 fi
3374
3375 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3376
3377fi
10f2d63a
VZ
3378
3379
3380 eval "$ac_cv_use_apple_ieee"
3381 if test "$no_cache" != 1; then
3382 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3383 fi
3384
3385 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3386 echo "$ac_t""yes" 1>&6
10f2d63a 3387 else
698dcdb6 3388 echo "$ac_t""no" 1>&6
10f2d63a 3389 fi
698dcdb6 3390
10f2d63a 3391
1e6feb95 3392 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
1725144d 3393echo "configure:3394: checking for --enable-timer" >&5
10f2d63a 3394 no_cache=0
1e6feb95
VZ
3395 # Check whether --enable-timer or --disable-timer was given.
3396if test "${enable_timer+set}" = set; then
3397 enableval="$enable_timer"
698dcdb6 3398
10f2d63a 3399 if test "$enableval" = yes; then
1e6feb95 3400 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3401 else
1e6feb95 3402 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3403 fi
698dcdb6 3404
10f2d63a 3405else
698dcdb6 3406
1e6feb95 3407 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3408 if test "x$LINE" != x ; then
3409 eval "DEFAULT_$LINE"
3410 else
3411 no_cache=1
3412 fi
3413
1e6feb95 3414 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3415
3416fi
10f2d63a
VZ
3417
3418
1e6feb95 3419 eval "$ac_cv_use_timer"
10f2d63a 3420 if test "$no_cache" != 1; then
1e6feb95 3421 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3422 fi
3423
1e6feb95 3424 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3425 echo "$ac_t""yes" 1>&6
10f2d63a 3426 else
698dcdb6 3427 echo "$ac_t""no" 1>&6
10f2d63a 3428 fi
698dcdb6 3429
10f2d63a 3430
698dcdb6 3431 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
1725144d 3432echo "configure:3433: checking for --enable-wave" >&5
10f2d63a
VZ
3433 no_cache=0
3434 # Check whether --enable-wave or --disable-wave was given.
3435if test "${enable_wave+set}" = set; then
3436 enableval="$enable_wave"
698dcdb6 3437
10f2d63a
VZ
3438 if test "$enableval" = yes; then
3439 ac_cv_use_wave='wxUSE_WAVE=yes'
3440 else
3441 ac_cv_use_wave='wxUSE_WAVE=no'
3442 fi
698dcdb6 3443
10f2d63a 3444else
698dcdb6 3445
10f2d63a
VZ
3446 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3447 if test "x$LINE" != x ; then
3448 eval "DEFAULT_$LINE"
3449 else
3450 no_cache=1
3451 fi
3452
3453 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3454
3455fi
10f2d63a
VZ
3456
3457
3458 eval "$ac_cv_use_wave"
3459 if test "$no_cache" != 1; then
3460 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3461 fi
3462
3463 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3464 echo "$ac_t""yes" 1>&6
10f2d63a 3465 else
698dcdb6 3466 echo "$ac_t""no" 1>&6
10f2d63a 3467 fi
698dcdb6 3468
10f2d63a 3469
698dcdb6 3470 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
1725144d 3471echo "configure:3472: checking for --enable-fraction" >&5
10f2d63a
VZ
3472 no_cache=0
3473 # Check whether --enable-fraction or --disable-fraction was given.
3474if test "${enable_fraction+set}" = set; then
3475 enableval="$enable_fraction"
698dcdb6 3476
10f2d63a
VZ
3477 if test "$enableval" = yes; then
3478 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3479 else
3480 ac_cv_use_fraction='wxUSE_FRACTION=no'
3481 fi
698dcdb6 3482
10f2d63a 3483else
698dcdb6 3484
10f2d63a
VZ
3485 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3486 if test "x$LINE" != x ; then
3487 eval "DEFAULT_$LINE"
3488 else
3489 no_cache=1
3490 fi
3491
3492 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3493
3494fi
10f2d63a
VZ
3495
3496
3497 eval "$ac_cv_use_fraction"
3498 if test "$no_cache" != 1; then
3499 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3500 fi
3501
3502 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3503 echo "$ac_t""yes" 1>&6
10f2d63a 3504 else
698dcdb6 3505 echo "$ac_t""no" 1>&6
10f2d63a 3506 fi
698dcdb6 3507
10f2d63a 3508
698dcdb6 3509 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
1725144d 3510echo "configure:3511: checking for --enable-dynlib" >&5
10f2d63a
VZ
3511 no_cache=0
3512 # Check whether --enable-dynlib or --disable-dynlib was given.
3513if test "${enable_dynlib+set}" = set; then
3514 enableval="$enable_dynlib"
698dcdb6 3515
10f2d63a
VZ
3516 if test "$enableval" = yes; then
3517 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3518 else
3519 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3520 fi
698dcdb6 3521
10f2d63a 3522else
698dcdb6 3523
10f2d63a
VZ
3524 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3525 if test "x$LINE" != x ; then
3526 eval "DEFAULT_$LINE"
3527 else
3528 no_cache=1
3529 fi
3530
3531 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3532
3533fi
10f2d63a
VZ
3534
3535
3536 eval "$ac_cv_use_dynlib"
3537 if test "$no_cache" != 1; then
3538 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3539 fi
3540
3541 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3542 echo "$ac_t""yes" 1>&6
10f2d63a 3543 else
698dcdb6 3544 echo "$ac_t""no" 1>&6
10f2d63a 3545 fi
698dcdb6 3546
10f2d63a 3547
0b9ab0bd 3548 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
1725144d 3549echo "configure:3550: checking for --enable-dynamicloader" >&5
0b9ab0bd
RL
3550 no_cache=0
3551 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3552if test "${enable_dynamicloader+set}" = set; then
3553 enableval="$enable_dynamicloader"
3554
3555 if test "$enableval" = yes; then
3556 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3557 else
3558 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3559 fi
3560
3561else
3562
3563 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3564 if test "x$LINE" != x ; then
3565 eval "DEFAULT_$LINE"
3566 else
3567 no_cache=1
3568 fi
3569
3570 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3571
3572fi
3573
3574
3575 eval "$ac_cv_use_dynamicloader"
3576 if test "$no_cache" != 1; then
3577 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3578 fi
3579
3580 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3581 echo "$ac_t""yes" 1>&6
3582 else
3583 echo "$ac_t""no" 1>&6
3584 fi
3585
3586
698dcdb6 3587 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
1725144d 3588echo "configure:3589: checking for --enable-longlong" >&5
10f2d63a
VZ
3589 no_cache=0
3590 # Check whether --enable-longlong or --disable-longlong was given.
3591if test "${enable_longlong+set}" = set; then
3592 enableval="$enable_longlong"
698dcdb6 3593
10f2d63a
VZ
3594 if test "$enableval" = yes; then
3595 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3596 else
3597 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3598 fi
698dcdb6 3599
10f2d63a 3600else
698dcdb6 3601
10f2d63a
VZ
3602 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3603 if test "x$LINE" != x ; then
3604 eval "DEFAULT_$LINE"
3605 else
3606 no_cache=1
3607 fi
3608
3609 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3610
3611fi
10f2d63a
VZ
3612
3613
3614 eval "$ac_cv_use_longlong"
3615 if test "$no_cache" != 1; then
3616 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3617 fi
3618
3619 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3620 echo "$ac_t""yes" 1>&6
10f2d63a 3621 else
698dcdb6 3622 echo "$ac_t""no" 1>&6
10f2d63a 3623 fi
698dcdb6 3624
10f2d63a 3625
698dcdb6 3626 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
1725144d 3627echo "configure:3628: checking for --enable-geometry" >&5
e8f65ba6
RR
3628 no_cache=0
3629 # Check whether --enable-geometry or --disable-geometry was given.
3630if test "${enable_geometry+set}" = set; then
3631 enableval="$enable_geometry"
698dcdb6 3632
e8f65ba6
RR
3633 if test "$enableval" = yes; then
3634 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3635 else
3636 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3637 fi
698dcdb6 3638
e8f65ba6 3639else
698dcdb6 3640
e8f65ba6
RR
3641 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3642 if test "x$LINE" != x ; then
3643 eval "DEFAULT_$LINE"
3644 else
3645 no_cache=1
3646 fi
3647
3648 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3649
3650fi
e8f65ba6
RR
3651
3652
3653 eval "$ac_cv_use_geometry"
3654 if test "$no_cache" != 1; then
3655 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3656 fi
3657
3658 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3659 echo "$ac_t""yes" 1>&6
e8f65ba6 3660 else
698dcdb6 3661 echo "$ac_t""no" 1>&6
e8f65ba6 3662 fi
698dcdb6 3663
e8f65ba6 3664
698dcdb6 3665 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
1725144d 3666echo "configure:3667: checking for --enable-log" >&5
10f2d63a
VZ
3667 no_cache=0
3668 # Check whether --enable-log or --disable-log was given.
3669if test "${enable_log+set}" = set; then
3670 enableval="$enable_log"
698dcdb6 3671
10f2d63a
VZ
3672 if test "$enableval" = yes; then
3673 ac_cv_use_log='wxUSE_LOG=yes'
3674 else
3675 ac_cv_use_log='wxUSE_LOG=no'
3676 fi
698dcdb6 3677
10f2d63a 3678else
698dcdb6 3679
10f2d63a
VZ
3680 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3681 if test "x$LINE" != x ; then
3682 eval "DEFAULT_$LINE"
3683 else
3684 no_cache=1
3685 fi
3686
3687 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3688
3689fi
10f2d63a
VZ
3690
3691
3692 eval "$ac_cv_use_log"
3693 if test "$no_cache" != 1; then
3694 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3695 fi
3696
3697 if test "$wxUSE_LOG" = yes; then
698dcdb6 3698 echo "$ac_t""yes" 1>&6
10f2d63a 3699 else
698dcdb6 3700 echo "$ac_t""no" 1>&6
10f2d63a 3701 fi
698dcdb6 3702
10f2d63a 3703
698dcdb6 3704 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
1725144d 3705echo "configure:3706: checking for --enable-streams" >&5
10f2d63a
VZ
3706 no_cache=0
3707 # Check whether --enable-streams or --disable-streams was given.
3708if test "${enable_streams+set}" = set; then
3709 enableval="$enable_streams"
698dcdb6 3710
10f2d63a
VZ
3711 if test "$enableval" = yes; then
3712 ac_cv_use_streams='wxUSE_STREAMS=yes'
3713 else
3714 ac_cv_use_streams='wxUSE_STREAMS=no'
3715 fi
698dcdb6 3716
10f2d63a 3717else
698dcdb6 3718
10f2d63a
VZ
3719 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3720 if test "x$LINE" != x ; then
3721 eval "DEFAULT_$LINE"
3722 else
3723 no_cache=1
3724 fi
3725
3726 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3727
3728fi
10f2d63a
VZ
3729
3730
3731 eval "$ac_cv_use_streams"
3732 if test "$no_cache" != 1; then
3733 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3734 fi
3735
3736 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3737 echo "$ac_t""yes" 1>&6
10f2d63a 3738 else
698dcdb6 3739 echo "$ac_t""no" 1>&6
10f2d63a 3740 fi
698dcdb6 3741
10f2d63a 3742
698dcdb6 3743 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
1725144d 3744echo "configure:3745: checking for --enable-file" >&5
10f2d63a
VZ
3745 no_cache=0
3746 # Check whether --enable-file or --disable-file was given.
3747if test "${enable_file+set}" = set; then
3748 enableval="$enable_file"
698dcdb6 3749
10f2d63a
VZ
3750 if test "$enableval" = yes; then
3751 ac_cv_use_file='wxUSE_FILE=yes'
3752 else
3753 ac_cv_use_file='wxUSE_FILE=no'
3754 fi
698dcdb6 3755
10f2d63a 3756else
698dcdb6 3757
10f2d63a
VZ
3758 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3759 if test "x$LINE" != x ; then
3760 eval "DEFAULT_$LINE"
3761 else
3762 no_cache=1
3763 fi
3764
3765 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3766
3767fi
10f2d63a
VZ
3768
3769
3770 eval "$ac_cv_use_file"
3771 if test "$no_cache" != 1; then
3772 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3773 fi
3774
3775 if test "$wxUSE_FILE" = yes; then
698dcdb6 3776 echo "$ac_t""yes" 1>&6
10f2d63a 3777 else
698dcdb6 3778 echo "$ac_t""no" 1>&6
10f2d63a 3779 fi
698dcdb6 3780
10f2d63a 3781
1e6feb95 3782 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
1725144d 3783echo "configure:3784: checking for --enable-ffile" >&5
10f2d63a 3784 no_cache=0
1e6feb95
VZ
3785 # Check whether --enable-ffile or --disable-ffile was given.
3786if test "${enable_ffile+set}" = set; then
3787 enableval="$enable_ffile"
698dcdb6 3788
10f2d63a 3789 if test "$enableval" = yes; then
1e6feb95 3790 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3791 else
1e6feb95 3792 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3793 fi
698dcdb6 3794
10f2d63a 3795else
698dcdb6 3796
1e6feb95 3797 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3798 if test "x$LINE" != x ; then
3799 eval "DEFAULT_$LINE"
3800 else
3801 no_cache=1
3802 fi
3803
1e6feb95 3804 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3805
3806fi
10f2d63a
VZ
3807
3808
1e6feb95 3809 eval "$ac_cv_use_ffile"
10f2d63a 3810 if test "$no_cache" != 1; then
1e6feb95 3811 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3812 fi
3813
1e6feb95 3814 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3815 echo "$ac_t""yes" 1>&6
10f2d63a 3816 else
698dcdb6 3817 echo "$ac_t""no" 1>&6
10f2d63a 3818 fi
698dcdb6 3819
10f2d63a 3820
a3a584a7 3821 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
1725144d 3822echo "configure:3823: checking for --enable-textbuf" >&5
a3a584a7
VZ
3823 no_cache=0
3824 # Check whether --enable-textbuf or --disable-textbuf was given.
3825if test "${enable_textbuf+set}" = set; then
3826 enableval="$enable_textbuf"
3827
3828 if test "$enableval" = yes; then
3829 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3830 else
3831 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
3832 fi
3833
3834else
3835
3836 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
3837 if test "x$LINE" != x ; then
3838 eval "DEFAULT_$LINE"
3839 else
3840 no_cache=1
3841 fi
3842
3843 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
3844
3845fi
3846
3847
3848 eval "$ac_cv_use_textbuf"
3849 if test "$no_cache" != 1; then
3850 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
3851 fi
3852
3853 if test "$wxUSE_TEXTBUFFER" = yes; then
3854 echo "$ac_t""yes" 1>&6
3855 else
3856 echo "$ac_t""no" 1>&6
3857 fi
3858
3859
1e6feb95 3860 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
1725144d 3861echo "configure:3862: checking for --enable-textfile" >&5
10f2d63a 3862 no_cache=0
1e6feb95
VZ
3863 # Check whether --enable-textfile or --disable-textfile was given.
3864if test "${enable_textfile+set}" = set; then
3865 enableval="$enable_textfile"
698dcdb6 3866
10f2d63a 3867 if test "$enableval" = yes; then
1e6feb95 3868 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 3869 else
1e6feb95 3870 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 3871 fi
698dcdb6 3872
10f2d63a 3873else
698dcdb6 3874
1e6feb95 3875 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3876 if test "x$LINE" != x ; then
3877 eval "DEFAULT_$LINE"
3878 else
3879 no_cache=1
3880 fi
3881
1e6feb95 3882 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
3883
3884fi
10f2d63a
VZ
3885
3886
1e6feb95 3887 eval "$ac_cv_use_textfile"
10f2d63a 3888 if test "$no_cache" != 1; then
1e6feb95 3889 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3890 fi
3891
1e6feb95 3892 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 3893 echo "$ac_t""yes" 1>&6
10f2d63a 3894 else
698dcdb6 3895 echo "$ac_t""no" 1>&6
10f2d63a 3896 fi
698dcdb6 3897
10f2d63a 3898
1e6feb95 3899 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
1725144d 3900echo "configure:3901: checking for --enable-fontmap" >&5
10f2d63a 3901 no_cache=0
1e6feb95
VZ
3902 # Check whether --enable-fontmap or --disable-fontmap was given.
3903if test "${enable_fontmap+set}" = set; then
3904 enableval="$enable_fontmap"
698dcdb6 3905
10f2d63a 3906 if test "$enableval" = yes; then
1e6feb95 3907 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 3908 else
1e6feb95 3909 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 3910 fi
698dcdb6 3911
10f2d63a 3912else
698dcdb6 3913
1e6feb95 3914 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
3915 if test "x$LINE" != x ; then
3916 eval "DEFAULT_$LINE"
3917 else
3918 no_cache=1
3919 fi
3920
1e6feb95 3921 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
3922
3923fi
10f2d63a
VZ
3924
3925
1e6feb95 3926 eval "$ac_cv_use_fontmap"
10f2d63a 3927 if test "$no_cache" != 1; then
1e6feb95 3928 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3929 fi
3930
1e6feb95 3931 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 3932 echo "$ac_t""yes" 1>&6
10f2d63a 3933 else
698dcdb6 3934 echo "$ac_t""no" 1>&6
10f2d63a 3935 fi
698dcdb6 3936
10f2d63a 3937
1e6feb95 3938 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
1725144d 3939echo "configure:3940: checking for --enable-unicode" >&5
10f2d63a 3940 no_cache=0
1e6feb95
VZ
3941 # Check whether --enable-unicode or --disable-unicode was given.
3942if test "${enable_unicode+set}" = set; then
3943 enableval="$enable_unicode"
3944
3945 if test "$enableval" = yes; then
3946 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3947 else
3948 ac_cv_use_unicode='wxUSE_UNICODE=no'
3949 fi
3950
3951else
3952
3953 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3954 if test "x$LINE" != x ; then
3955 eval "DEFAULT_$LINE"
3956 else
3957 no_cache=1
3958 fi
3959
3960 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3961
3962fi
3963
3964
3965 eval "$ac_cv_use_unicode"
3966 if test "$no_cache" != 1; then
3967 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3968 fi
3969
3970 if test "$wxUSE_UNICODE" = yes; then
3971 echo "$ac_t""yes" 1>&6
3972 else
3973 echo "$ac_t""no" 1>&6
3974 fi
3975
3976
1e6feb95 3977 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
1725144d 3978echo "configure:3979: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
3979 no_cache=0
3980 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3981if test "${enable_wxprintfv+set}" = set; then
3982 enableval="$enable_wxprintfv"
3983
3984 if test "$enableval" = yes; then
10f2d63a
VZ
3985 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3986 else
3987 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3988 fi
698dcdb6 3989
10f2d63a 3990else
698dcdb6 3991
10f2d63a
VZ
3992 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3993 if test "x$LINE" != x ; then
3994 eval "DEFAULT_$LINE"
3995 else
3996 no_cache=1
3997 fi
3998
3999 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
4000
4001fi
10f2d63a
VZ
4002
4003
4004 eval "$ac_cv_use_wxprintfv"
4005 if test "$no_cache" != 1; then
4006 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4007 fi
4008
4009 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 4010 echo "$ac_t""yes" 1>&6
10f2d63a 4011 else
698dcdb6 4012 echo "$ac_t""no" 1>&6
10f2d63a 4013 fi
698dcdb6 4014
10f2d63a 4015
698dcdb6 4016 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
1725144d 4017echo "configure:4018: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
4018 no_cache=0
4019 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4020if test "${enable_std_iostreams+set}" = set; then
4021 enableval="$enable_std_iostreams"
698dcdb6 4022
10f2d63a
VZ
4023 if test "$enableval" = yes; then
4024 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4025 else
4026 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4027 fi
698dcdb6 4028
10f2d63a 4029else
698dcdb6 4030
10f2d63a
VZ
4031 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4032 if test "x$LINE" != x ; then
4033 eval "DEFAULT_$LINE"
4034 else
4035 no_cache=1
4036 fi
4037
4038 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
4039
4040fi
10f2d63a
VZ
4041
4042
4043 eval "$ac_cv_use_std_iostreams"
4044 if test "$no_cache" != 1; then
4045 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4046 fi
4047
4048 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 4049 echo "$ac_t""yes" 1>&6
10f2d63a 4050 else
698dcdb6 4051 echo "$ac_t""no" 1>&6
10f2d63a 4052 fi
698dcdb6 4053
10f2d63a 4054
698dcdb6 4055 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
1725144d 4056echo "configure:4057: checking for --enable-filesystem" >&5
24528b0c
VS
4057 no_cache=0
4058 # Check whether --enable-filesystem or --disable-filesystem was given.
4059if test "${enable_filesystem+set}" = set; then
4060 enableval="$enable_filesystem"
698dcdb6 4061
24528b0c
VS
4062 if test "$enableval" = yes; then
4063 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4064 else
4065 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4066 fi
698dcdb6 4067
24528b0c 4068else
698dcdb6 4069
24528b0c
VS
4070 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4071 if test "x$LINE" != x ; then
4072 eval "DEFAULT_$LINE"
4073 else
4074 no_cache=1
4075 fi
4076
4077 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
4078
4079fi
24528b0c
VS
4080
4081
4082 eval "$ac_cv_use_filesystem"
4083 if test "$no_cache" != 1; then
4084 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4085 fi
4086
4087 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 4088 echo "$ac_t""yes" 1>&6
24528b0c 4089 else
698dcdb6 4090 echo "$ac_t""no" 1>&6
24528b0c 4091 fi
698dcdb6 4092
24528b0c 4093
698dcdb6 4094 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
1725144d 4095echo "configure:4096: checking for --enable-fs_inet" >&5
10f2d63a
VZ
4096 no_cache=0
4097 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4098if test "${enable_fs_inet+set}" = set; then
4099 enableval="$enable_fs_inet"
698dcdb6 4100
10f2d63a
VZ
4101 if test "$enableval" = yes; then
4102 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4103 else
4104 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4105 fi
698dcdb6 4106
10f2d63a 4107else
698dcdb6 4108
10f2d63a
VZ
4109 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4110 if test "x$LINE" != x ; then
4111 eval "DEFAULT_$LINE"
4112 else
4113 no_cache=1
4114 fi
4115
4116 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
4117
4118fi
10f2d63a
VZ
4119
4120
4121 eval "$ac_cv_use_fs_inet"
4122 if test "$no_cache" != 1; then
4123 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4124 fi
4125
4126 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 4127 echo "$ac_t""yes" 1>&6
10f2d63a 4128 else
698dcdb6 4129 echo "$ac_t""no" 1>&6
10f2d63a 4130 fi
698dcdb6 4131
10f2d63a 4132
698dcdb6 4133 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
1725144d 4134echo "configure:4135: checking for --enable-fs_zip" >&5
10f2d63a
VZ
4135 no_cache=0
4136 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4137if test "${enable_fs_zip+set}" = set; then
4138 enableval="$enable_fs_zip"
698dcdb6 4139
10f2d63a
VZ
4140 if test "$enableval" = yes; then
4141 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4142 else
4143 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4144 fi
698dcdb6 4145
10f2d63a 4146else
698dcdb6 4147
10f2d63a
VZ
4148 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4149 if test "x$LINE" != x ; then
4150 eval "DEFAULT_$LINE"
4151 else
4152 no_cache=1
4153 fi
4154
4155 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
4156
4157fi
10f2d63a
VZ
4158
4159
4160 eval "$ac_cv_use_fs_zip"
4161 if test "$no_cache" != 1; then
4162 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4163 fi
4164
4165 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 4166 echo "$ac_t""yes" 1>&6
10f2d63a 4167 else
698dcdb6 4168 echo "$ac_t""no" 1>&6
10f2d63a 4169 fi
698dcdb6 4170
10f2d63a 4171
698dcdb6 4172 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
1725144d 4173echo "configure:4174: checking for --enable-zipstream" >&5
10f2d63a
VZ
4174 no_cache=0
4175 # Check whether --enable-zipstream or --disable-zipstream was given.
4176if test "${enable_zipstream+set}" = set; then
4177 enableval="$enable_zipstream"
698dcdb6 4178
10f2d63a
VZ
4179 if test "$enableval" = yes; then
4180 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4181 else
4182 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4183 fi
698dcdb6 4184
10f2d63a 4185else
698dcdb6 4186
10f2d63a
VZ
4187 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4188 if test "x$LINE" != x ; then
4189 eval "DEFAULT_$LINE"
4190 else
4191 no_cache=1
4192 fi
4193
4194 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4195
4196fi
10f2d63a
VZ
4197
4198
4199 eval "$ac_cv_use_zipstream"
4200 if test "$no_cache" != 1; then
4201 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4202 fi
4203
4204 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4205 echo "$ac_t""yes" 1>&6
10f2d63a 4206 else
698dcdb6 4207 echo "$ac_t""no" 1>&6
10f2d63a 4208 fi
698dcdb6 4209
10f2d63a 4210
698dcdb6
VZ
4211
4212 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
1725144d 4213echo "configure:4214: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4214 no_cache=0
4215 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4216if test "${enable_catch_segvs+set}" = set; then
4217 enableval="$enable_catch_segvs"
698dcdb6 4218
eb4efbdc
VZ
4219 if test "$enableval" = yes; then
4220 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4221 else
4222 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4223 fi
698dcdb6 4224
eb4efbdc 4225else
698dcdb6 4226
eb4efbdc
VZ
4227 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4228 if test "x$LINE" != x ; then
4229 eval "DEFAULT_$LINE"
4230 else
4231 no_cache=1
4232 fi
4233
4234 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4235
4236fi
eb4efbdc
VZ
4237
4238
4239 eval "$ac_cv_use_catch_segvs"
4240 if test "$no_cache" != 1; then
4241 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4242 fi
4243
4244 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4245 echo "$ac_t""yes" 1>&6
eb4efbdc 4246 else
698dcdb6 4247 echo "$ac_t""no" 1>&6
eb4efbdc 4248 fi
698dcdb6 4249
eb4efbdc 4250
698dcdb6 4251 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
1725144d 4252echo "configure:4253: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4253 no_cache=0
4254 # Check whether --enable-snglinst or --disable-snglinst was given.
4255if test "${enable_snglinst+set}" = set; then
4256 enableval="$enable_snglinst"
698dcdb6 4257
4f3c5f06
VZ
4258 if test "$enableval" = yes; then
4259 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4260 else
4261 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4262 fi
698dcdb6 4263
4f3c5f06 4264else
698dcdb6 4265
4f3c5f06
VZ
4266 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4267 if test "x$LINE" != x ; then
4268 eval "DEFAULT_$LINE"
4269 else
4270 no_cache=1
4271 fi
4272
4273 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4274
4275fi
4f3c5f06
VZ
4276
4277
4278 eval "$ac_cv_use_snglinst"
4279 if test "$no_cache" != 1; then
4280 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4281 fi
4282
4283 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4284 echo "$ac_t""yes" 1>&6
4f3c5f06 4285 else
698dcdb6 4286 echo "$ac_t""no" 1>&6
4f3c5f06 4287 fi
698dcdb6
VZ
4288
4289
eb4efbdc 4290
1e6feb95 4291 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
1725144d 4292echo "configure:4293: checking for --enable-mimetype" >&5
1e6feb95
VZ
4293 no_cache=0
4294 # Check whether --enable-mimetype or --disable-mimetype was given.
4295if test "${enable_mimetype+set}" = set; then
4296 enableval="$enable_mimetype"
4297
4298 if test "$enableval" = yes; then
4299 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4300 else
4301 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4302 fi
4303
4304else
4305
4306 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4307 if test "x$LINE" != x ; then
4308 eval "DEFAULT_$LINE"
4309 else
4310 no_cache=1
4311 fi
4312
4313 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4314
4315fi
4316
4317
4318 eval "$ac_cv_use_mimetype"
4319 if test "$no_cache" != 1; then
4320 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4321 fi
4322
4323 if test "$wxUSE_MIMETYPE" = yes; then
4324 echo "$ac_t""yes" 1>&6
4325 else
4326 echo "$ac_t""no" 1>&6
4327 fi
4328
4329
3e44f09d 4330 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
1725144d 4331echo "configure:4332: checking for --enable-system_options" >&5
3e44f09d
VZ
4332 no_cache=0
4333 # Check whether --enable-system_options or --disable-system_options was given.
4334if test "${enable_system_options+set}" = set; then
4335 enableval="$enable_system_options"
4336
4337 if test "$enableval" = yes; then
4338 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4339 else
4340 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4341 fi
4342
4343else
4344
4345 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4346 if test "x$LINE" != x ; then
4347 eval "DEFAULT_$LINE"
4348 else
4349 no_cache=1
4350 fi
4351
4352 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4353
4354fi
4355
4356
4357 eval "$ac_cv_use_system_options"
4358 if test "$no_cache" != 1; then
4359 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4360 fi
4361
4362 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4363 echo "$ac_t""yes" 1>&6
4364 else
4365 echo "$ac_t""no" 1>&6
4366 fi
4367
4368
1e6feb95 4369
698dcdb6
VZ
4370
4371 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
1725144d 4372echo "configure:4373: checking for --enable-threads" >&5
10f2d63a
VZ
4373 no_cache=0
4374 # Check whether --enable-threads or --disable-threads was given.
4375if test "${enable_threads+set}" = set; then
4376 enableval="$enable_threads"
698dcdb6 4377
10f2d63a
VZ
4378 if test "$enableval" = yes; then
4379 ac_cv_use_threads='wxUSE_THREADS=yes'
4380 else
4381 ac_cv_use_threads='wxUSE_THREADS=no'
4382 fi
698dcdb6 4383
10f2d63a 4384else
698dcdb6 4385
10f2d63a
VZ
4386 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4387 if test "x$LINE" != x ; then
4388 eval "DEFAULT_$LINE"
4389 else
4390 no_cache=1
4391 fi
4392
4393 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4394
4395fi
10f2d63a
VZ
4396
4397
4398 eval "$ac_cv_use_threads"
4399 if test "$no_cache" != 1; then
4400 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4401 fi
4402
4403 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4404 echo "$ac_t""yes" 1>&6
10f2d63a 4405 else
698dcdb6 4406 echo "$ac_t""no" 1>&6
10f2d63a 4407 fi
698dcdb6 4408
10f2d63a 4409
b12915c1
VZ
4410if test "$wxUSE_GUI" = "yes"; then
4411
698dcdb6
VZ
4412
4413
4414 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
1725144d 4415echo "configure:4416: checking for --enable-docview" >&5
10f2d63a
VZ
4416 no_cache=0
4417 # Check whether --enable-docview or --disable-docview was given.
4418if test "${enable_docview+set}" = set; then
4419 enableval="$enable_docview"
698dcdb6 4420
10f2d63a
VZ
4421 if test "$enableval" = yes; then
4422 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4423 else
4424 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4425 fi
698dcdb6 4426
10f2d63a 4427else
698dcdb6 4428
10f2d63a
VZ
4429 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4430 if test "x$LINE" != x ; then
4431 eval "DEFAULT_$LINE"
4432 else
4433 no_cache=1
4434 fi
4435
4436 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4437
4438fi
10f2d63a
VZ
4439
4440
4441 eval "$ac_cv_use_docview"
4442 if test "$no_cache" != 1; then
4443 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4444 fi
4445
4446 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4447 echo "$ac_t""yes" 1>&6
10f2d63a 4448 else
698dcdb6 4449 echo "$ac_t""no" 1>&6
10f2d63a 4450 fi
698dcdb6 4451
10f2d63a 4452
698dcdb6 4453 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
1725144d 4454echo "configure:4455: checking for --enable-help" >&5
10f2d63a
VZ
4455 no_cache=0
4456 # Check whether --enable-help or --disable-help was given.
4457if test "${enable_help+set}" = set; then
4458 enableval="$enable_help"
698dcdb6 4459
10f2d63a
VZ
4460 if test "$enableval" = yes; then
4461 ac_cv_use_help='wxUSE_HELP=yes'
4462 else
4463 ac_cv_use_help='wxUSE_HELP=no'
4464 fi
698dcdb6 4465
10f2d63a 4466else
698dcdb6 4467
10f2d63a
VZ
4468 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4469 if test "x$LINE" != x ; then
4470 eval "DEFAULT_$LINE"
4471 else
4472 no_cache=1
4473 fi
4474
4475 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4476
4477fi
10f2d63a
VZ
4478
4479
4480 eval "$ac_cv_use_help"
4481 if test "$no_cache" != 1; then
4482 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4483 fi
4484
4485 if test "$wxUSE_HELP" = yes; then
698dcdb6 4486 echo "$ac_t""yes" 1>&6
10f2d63a 4487 else
698dcdb6 4488 echo "$ac_t""no" 1>&6
10f2d63a 4489 fi
698dcdb6 4490
10f2d63a 4491
29fd3c0c 4492 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
1725144d 4493echo "configure:4494: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4494 no_cache=0
4495 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4496if test "${enable_mshtmlhelp+set}" = set; then
4497 enableval="$enable_mshtmlhelp"
4498
4499 if test "$enableval" = yes; then
4500 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4501 else
4502 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4503 fi
4504
4505else
4506
4507 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4508 if test "x$LINE" != x ; then
4509 eval "DEFAULT_$LINE"
4510 else
4511 no_cache=1
4512 fi
4513
4514 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4515
4516fi
4517
4518
4519 eval "$ac_cv_use_mshtmlhelp"
4520 if test "$no_cache" != 1; then
4521 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4522 fi
4523
4524 if test "$wxUSE_MS_HTML_HELP" = yes; then
4525 echo "$ac_t""yes" 1>&6
4526 else
4527 echo "$ac_t""no" 1>&6
4528 fi
4529
4530
3379ed37 4531 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
1725144d 4532echo "configure:4533: checking for --enable-html" >&5
3379ed37
VZ
4533 no_cache=0
4534 # Check whether --enable-html or --disable-html was given.
4535if test "${enable_html+set}" = set; then
4536 enableval="$enable_html"
4537
4538 if test "$enableval" = yes; then
4539 ac_cv_use_html='wxUSE_HTML=yes'
4540 else
4541 ac_cv_use_html='wxUSE_HTML=no'
4542 fi
4543
4544else
4545
4546 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4547 if test "x$LINE" != x ; then
4548 eval "DEFAULT_$LINE"
4549 else
4550 no_cache=1
4551 fi
4552
4553 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4554
4555fi
4556
4557
4558 eval "$ac_cv_use_html"
4559 if test "$no_cache" != 1; then
4560 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4561 fi
4562
4563 if test "$wxUSE_HTML" = yes; then
4564 echo "$ac_t""yes" 1>&6
4565 else
4566 echo "$ac_t""no" 1>&6
4567 fi
4568
4569
4570 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
1725144d 4571echo "configure:4572: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4572 no_cache=0
4573 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4574if test "${enable_htmlhelp+set}" = set; then
4575 enableval="$enable_htmlhelp"
4576
4577 if test "$enableval" = yes; then
4578 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4579 else
4580 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4581 fi
4582
4583else
4584
4585 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4586 if test "x$LINE" != x ; then
4587 eval "DEFAULT_$LINE"
4588 else
4589 no_cache=1
4590 fi
4591
4592 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4593
4594fi
4595
4596
4597 eval "$ac_cv_use_htmlhelp"
4598 if test "$no_cache" != 1; then
4599 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4600 fi
4601
4602 if test "$wxUSE_WXHTML_HELP" = yes; then
4603 echo "$ac_t""yes" 1>&6
4604 else
4605 echo "$ac_t""no" 1>&6
4606 fi
4607
4608
698dcdb6 4609 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
1725144d 4610echo "configure:4611: checking for --enable-constraints" >&5
10f2d63a
VZ
4611 no_cache=0
4612 # Check whether --enable-constraints or --disable-constraints was given.
4613if test "${enable_constraints+set}" = set; then
4614 enableval="$enable_constraints"
698dcdb6 4615
10f2d63a
VZ
4616 if test "$enableval" = yes; then
4617 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4618 else
4619 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4620 fi
698dcdb6 4621
10f2d63a 4622else
698dcdb6 4623
10f2d63a
VZ
4624 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4625 if test "x$LINE" != x ; then
4626 eval "DEFAULT_$LINE"
4627 else
4628 no_cache=1
4629 fi
4630
4631 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
4632
4633fi
10f2d63a
VZ
4634
4635
4636 eval "$ac_cv_use_constraints"
4637 if test "$no_cache" != 1; then
4638 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4639 fi
4640
4641 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 4642 echo "$ac_t""yes" 1>&6
10f2d63a 4643 else
698dcdb6 4644 echo "$ac_t""no" 1>&6
10f2d63a 4645 fi
698dcdb6 4646
10f2d63a 4647
698dcdb6 4648 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
1725144d 4649echo "configure:4650: checking for --enable-printarch" >&5
10f2d63a
VZ
4650 no_cache=0
4651 # Check whether --enable-printarch or --disable-printarch was given.
4652if test "${enable_printarch+set}" = set; then
4653 enableval="$enable_printarch"
698dcdb6 4654
10f2d63a
VZ
4655 if test "$enableval" = yes; then
4656 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4657 else
4658 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4659 fi
698dcdb6 4660
10f2d63a 4661else
698dcdb6 4662
10f2d63a
VZ
4663 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4664 if test "x$LINE" != x ; then
4665 eval "DEFAULT_$LINE"
4666 else
4667 no_cache=1
4668 fi
4669
4670 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
4671
4672fi
10f2d63a
VZ
4673
4674
4675 eval "$ac_cv_use_printarch"
4676 if test "$no_cache" != 1; then
4677 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4678 fi
4679
4680 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 4681 echo "$ac_t""yes" 1>&6
10f2d63a 4682 else
698dcdb6 4683 echo "$ac_t""no" 1>&6
10f2d63a 4684 fi
698dcdb6 4685
10f2d63a 4686
698dcdb6 4687 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
1725144d 4688echo "configure:4689: checking for --enable-mdi" >&5
10f2d63a
VZ
4689 no_cache=0
4690 # Check whether --enable-mdi or --disable-mdi was given.
4691if test "${enable_mdi+set}" = set; then
4692 enableval="$enable_mdi"
698dcdb6 4693
10f2d63a
VZ
4694 if test "$enableval" = yes; then
4695 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4696 else
4697 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4698 fi
698dcdb6 4699
10f2d63a 4700else
698dcdb6 4701
10f2d63a
VZ
4702 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4703 if test "x$LINE" != x ; then
4704 eval "DEFAULT_$LINE"
4705 else
4706 no_cache=1
4707 fi
4708
4709 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
4710
4711fi
10f2d63a
VZ
4712
4713
4714 eval "$ac_cv_use_mdi"
4715 if test "$no_cache" != 1; then
4716 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4717 fi
4718
4719 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 4720 echo "$ac_t""yes" 1>&6
10f2d63a 4721 else
698dcdb6 4722 echo "$ac_t""no" 1>&6
10f2d63a 4723 fi
698dcdb6
VZ
4724
4725
1e6feb95 4726 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
1725144d 4727echo "configure:4728: checking for --enable-loggui" >&5
1e6feb95
VZ
4728 no_cache=0
4729 # Check whether --enable-loggui or --disable-loggui was given.
4730if test "${enable_loggui+set}" = set; then
4731 enableval="$enable_loggui"
4732
4733 if test "$enableval" = yes; then
4734 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4735 else
4736 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4737 fi
4738
4739else
4740
4741 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4742 if test "x$LINE" != x ; then
4743 eval "DEFAULT_$LINE"
4744 else
4745 no_cache=1
4746 fi
4747
4748 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4749
4750fi
4751
4752
4753 eval "$ac_cv_use_loggui"
4754 if test "$no_cache" != 1; then
4755 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4756 fi
4757
4758 if test "$wxUSE_LOGGUI" = yes; then
4759 echo "$ac_t""yes" 1>&6
4760 else
4761 echo "$ac_t""no" 1>&6
4762 fi
4763
4764
4765 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
1725144d 4766echo "configure:4767: checking for --enable-logwin" >&5
1e6feb95
VZ
4767 no_cache=0
4768 # Check whether --enable-logwin or --disable-logwin was given.
4769if test "${enable_logwin+set}" = set; then
4770 enableval="$enable_logwin"
4771
4772 if test "$enableval" = yes; then
4773 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4774 else
4775 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4776 fi
4777
4778else
4779
4780 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4781 if test "x$LINE" != x ; then
4782 eval "DEFAULT_$LINE"
4783 else
4784 no_cache=1
4785 fi
4786
4787 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4788
4789fi
4790
4791
4792 eval "$ac_cv_use_logwin"
4793 if test "$no_cache" != 1; then
4794 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4795 fi
4796
4797 if test "$wxUSE_LOGWINDOW" = yes; then
4798 echo "$ac_t""yes" 1>&6
4799 else
4800 echo "$ac_t""no" 1>&6
4801 fi
4802
4803
69d27ff7 4804 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
1725144d 4805echo "configure:4806: checking for --enable-logdialog" >&5
69d27ff7
MB
4806 no_cache=0
4807 # Check whether --enable-logdialog or --disable-logdialog was given.
4808if test "${enable_logdialog+set}" = set; then
4809 enableval="$enable_logdialog"
4810
4811 if test "$enableval" = yes; then
4812 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
4813 else
4814 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
4815 fi
4816
4817else
4818
4819 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
4820 if test "x$LINE" != x ; then
4821 eval "DEFAULT_$LINE"
4822 else
4823 no_cache=1
4824 fi
4825
4826 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
4827
4828fi
4829
4830
4831 eval "$ac_cv_use_logdialog"
4832 if test "$no_cache" != 1; then
4833 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
4834 fi
4835
4836 if test "$wxUSE_LOGDIALOG" = yes; then
4837 echo "$ac_t""yes" 1>&6
4838 else
4839 echo "$ac_t""no" 1>&6
4840 fi
4841
4842
10f2d63a 4843
698dcdb6 4844 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
1725144d 4845echo "configure:4846: checking for --enable-postscript" >&5
10f2d63a
VZ
4846 no_cache=0
4847 # Check whether --enable-postscript or --disable-postscript was given.
4848if test "${enable_postscript+set}" = set; then
4849 enableval="$enable_postscript"
698dcdb6 4850
10f2d63a
VZ
4851 if test "$enableval" = yes; then
4852 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4853 else
4854 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4855 fi
698dcdb6 4856
10f2d63a 4857else
698dcdb6 4858
10f2d63a
VZ
4859 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4860 if test "x$LINE" != x ; then
4861 eval "DEFAULT_$LINE"
4862 else
4863 no_cache=1
4864 fi
4865
4866 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
4867
4868fi
10f2d63a
VZ
4869
4870
4871 eval "$ac_cv_use_postscript"
4872 if test "$no_cache" != 1; then
4873 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4874 fi
4875
4876 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 4877 echo "$ac_t""yes" 1>&6
10f2d63a 4878 else
698dcdb6 4879 echo "$ac_t""no" 1>&6
10f2d63a 4880 fi
698dcdb6
VZ
4881
4882
4883
10f2d63a 4884
1e6feb95 4885
698dcdb6 4886 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
1725144d 4887echo "configure:4888: checking for --enable-prologio" >&5
10f2d63a
VZ
4888 no_cache=0
4889 # Check whether --enable-prologio or --disable-prologio was given.
4890if test "${enable_prologio+set}" = set; then
4891 enableval="$enable_prologio"
698dcdb6 4892
10f2d63a
VZ
4893 if test "$enableval" = yes; then
4894 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4895 else
4896 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4897 fi
698dcdb6 4898
10f2d63a 4899else
698dcdb6 4900
10f2d63a
VZ
4901 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4902 if test "x$LINE" != x ; then
4903 eval "DEFAULT_$LINE"
4904 else
4905 no_cache=1
4906 fi
4907
4908 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
4909
4910fi
10f2d63a
VZ
4911
4912
4913 eval "$ac_cv_use_prologio"
4914 if test "$no_cache" != 1; then
4915 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4916 fi
4917
4918 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 4919 echo "$ac_t""yes" 1>&6
10f2d63a 4920 else
698dcdb6 4921 echo "$ac_t""no" 1>&6
10f2d63a 4922 fi
698dcdb6 4923
10f2d63a 4924
698dcdb6 4925 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
1725144d 4926echo "configure:4927: checking for --enable-resources" >&5
10f2d63a
VZ
4927 no_cache=0
4928 # Check whether --enable-resources or --disable-resources was given.
4929if test "${enable_resources+set}" = set; then
4930 enableval="$enable_resources"
698dcdb6 4931
10f2d63a
VZ
4932 if test "$enableval" = yes; then
4933 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4934 else
4935 ac_cv_use_resources='wxUSE_RESOURCES=no'
4936 fi
698dcdb6 4937
10f2d63a 4938else
698dcdb6 4939
10f2d63a
VZ
4940 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4941 if test "x$LINE" != x ; then
4942 eval "DEFAULT_$LINE"
4943 else
4944 no_cache=1
4945 fi
4946
4947 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
4948
4949fi
10f2d63a
VZ
4950
4951
4952 eval "$ac_cv_use_resources"
4953 if test "$no_cache" != 1; then
4954 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4955 fi
4956
4957 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 4958 echo "$ac_t""yes" 1>&6
10f2d63a 4959 else
698dcdb6 4960 echo "$ac_t""no" 1>&6
10f2d63a 4961 fi
698dcdb6 4962
10f2d63a 4963
698dcdb6
VZ
4964
4965 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
1725144d 4966echo "configure:4967: checking for --enable-xresources" >&5
10f2d63a
VZ
4967 no_cache=0
4968 # Check whether --enable-xresources or --disable-xresources was given.
4969if test "${enable_xresources+set}" = set; then
4970 enableval="$enable_xresources"
698dcdb6 4971
10f2d63a
VZ
4972 if test "$enableval" = yes; then
4973 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4974 else
4975 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4976 fi
698dcdb6 4977
10f2d63a 4978else
698dcdb6 4979
10f2d63a
VZ
4980 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4981 if test "x$LINE" != x ; then
4982 eval "DEFAULT_$LINE"
4983 else
4984 no_cache=1
4985 fi
4986
4987 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
4988
4989fi
10f2d63a
VZ
4990
4991
4992 eval "$ac_cv_use_xresources"
4993 if test "$no_cache" != 1; then
4994 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4995 fi
4996
4997 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 4998 echo "$ac_t""yes" 1>&6
10f2d63a 4999 else
698dcdb6 5000 echo "$ac_t""no" 1>&6
10f2d63a 5001 fi
698dcdb6
VZ
5002
5003
10f2d63a 5004
698dcdb6
VZ
5005
5006 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
1725144d 5007echo "configure:5008: checking for --enable-clipboard" >&5
10f2d63a
VZ
5008 no_cache=0
5009 # Check whether --enable-clipboard or --disable-clipboard was given.
5010if test "${enable_clipboard+set}" = set; then
5011 enableval="$enable_clipboard"
698dcdb6 5012
10f2d63a
VZ
5013 if test "$enableval" = yes; then
5014 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5015 else
5016 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5017 fi
698dcdb6 5018
10f2d63a 5019else
698dcdb6 5020
10f2d63a
VZ
5021 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5022 if test "x$LINE" != x ; then
5023 eval "DEFAULT_$LINE"
5024 else
5025 no_cache=1
5026 fi
5027
5028 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
5029
5030fi
10f2d63a
VZ
5031
5032
5033 eval "$ac_cv_use_clipboard"
5034 if test "$no_cache" != 1; then
5035 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5036 fi
5037
5038 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 5039 echo "$ac_t""yes" 1>&6
10f2d63a 5040 else
698dcdb6 5041 echo "$ac_t""no" 1>&6
10f2d63a 5042 fi
698dcdb6 5043
10f2d63a 5044
698dcdb6 5045 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
1725144d 5046echo "configure:5047: checking for --enable-dnd" >&5
10f2d63a
VZ
5047 no_cache=0
5048 # Check whether --enable-dnd or --disable-dnd was given.
5049if test "${enable_dnd+set}" = set; then
5050 enableval="$enable_dnd"
698dcdb6 5051
10f2d63a
VZ
5052 if test "$enableval" = yes; then
5053 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5054 else
5055 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5056 fi
698dcdb6 5057
10f2d63a 5058else
698dcdb6 5059
10f2d63a
VZ
5060 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5061 if test "x$LINE" != x ; then
5062 eval "DEFAULT_$LINE"
5063 else
5064 no_cache=1
5065 fi
5066
5067 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
5068
5069fi
10f2d63a
VZ
5070
5071
5072 eval "$ac_cv_use_dnd"
5073 if test "$no_cache" != 1; then
5074 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5075 fi
5076
5077 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 5078 echo "$ac_t""yes" 1>&6
10f2d63a 5079 else
698dcdb6 5080 echo "$ac_t""no" 1>&6
10f2d63a 5081 fi
698dcdb6 5082
10f2d63a 5083
698dcdb6 5084 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
1725144d 5085echo "configure:5086: checking for --enable-metafile" >&5
b64f0a5f
RL
5086 no_cache=0
5087 # Check whether --enable-metafile or --disable-metafile was given.
5088if test "${enable_metafile+set}" = set; then
5089 enableval="$enable_metafile"
698dcdb6 5090
b64f0a5f
RL
5091 if test "$enableval" = yes; then
5092 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5093 else
5094 ac_cv_use_metafile='wxUSE_METAFILE=no'
5095 fi
698dcdb6 5096
b64f0a5f 5097else
698dcdb6 5098
b64f0a5f
RL
5099 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5100 if test "x$LINE" != x ; then
5101 eval "DEFAULT_$LINE"
5102 else
5103 no_cache=1
5104 fi
5105
5106 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
5107
5108fi
b64f0a5f
RL
5109
5110
5111 eval "$ac_cv_use_metafile"
5112 if test "$no_cache" != 1; then
5113 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5114 fi
5115
5116 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 5117 echo "$ac_t""yes" 1>&6
b64f0a5f 5118 else
698dcdb6 5119 echo "$ac_t""no" 1>&6
b64f0a5f 5120 fi
698dcdb6
VZ
5121
5122
10f2d63a 5123
24176f2c 5124 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
1725144d 5125echo "configure:5126: checking for --enable-treelayout" >&5
10f2d63a 5126 no_cache=0
24176f2c
GD
5127 # Check whether --enable-treelayout or --disable-treelayout was given.
5128if test "${enable_treelayout+set}" = set; then
5129 enableval="$enable_treelayout"
698dcdb6 5130
10f2d63a 5131 if test "$enableval" = yes; then
24176f2c 5132 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5133 else
24176f2c 5134 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5135 fi
698dcdb6 5136
10f2d63a 5137else
698dcdb6 5138
24176f2c 5139 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5140 if test "x$LINE" != x ; then
5141 eval "DEFAULT_$LINE"
5142 else
5143 no_cache=1
5144 fi
5145
24176f2c 5146 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
5147
5148fi
10f2d63a
VZ
5149
5150
24176f2c 5151 eval "$ac_cv_use_treelayout"
10f2d63a 5152 if test "$no_cache" != 1; then
24176f2c 5153 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5154 fi
5155
24176f2c 5156 if test "$wxUSE_TREELAYOUT" = yes; then
698dcdb6 5157 echo "$ac_t""yes" 1>&6
10f2d63a 5158 else
698dcdb6 5159 echo "$ac_t""no" 1>&6
10f2d63a 5160 fi
698dcdb6 5161
10f2d63a 5162
698dcdb6
VZ
5163
5164
5165 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
1725144d 5166echo "configure:5167: checking for --enable-controls" >&5
10f2d63a
VZ
5167 no_cache=0
5168 # Check whether --enable-controls or --disable-controls was given.
5169if test "${enable_controls+set}" = set; then
5170 enableval="$enable_controls"
698dcdb6 5171
10f2d63a
VZ
5172 if test "$enableval" = yes; then
5173 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5174 else
5175 ac_cv_use_controls='wxUSE_CONTROLS=no'
5176 fi
698dcdb6 5177
10f2d63a 5178else
698dcdb6 5179
10f2d63a
VZ
5180 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5181 if test "x$LINE" != x ; then
5182 eval "DEFAULT_$LINE"
5183 else
5184 no_cache=1
5185 fi
5186
5187 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5188
5189fi
10f2d63a
VZ
5190
5191
5192 eval "$ac_cv_use_controls"
5193 if test "$no_cache" != 1; then
5194 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5195 fi
5196
5197 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5198 echo "$ac_t""yes" 1>&6
10f2d63a 5199 else
698dcdb6 5200 echo "$ac_t""no" 1>&6
10f2d63a 5201 fi
698dcdb6 5202
10f2d63a
VZ
5203
5204if test "$wxUSE_CONTROLS" = "yes"; then
5205 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5206 DEFAULT_wxUSE_BMPBUTTON=yes
5207 DEFAULT_wxUSE_BUTTON=yes
5208 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5209 DEFAULT_wxUSE_CARET=yes
5210 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5211 DEFAULT_wxUSE_CHECKBOX=yes
5212 DEFAULT_wxUSE_CHECKLISTBOX=yes
5213 DEFAULT_wxUSE_CHOICE=yes
5214 DEFAULT_wxUSE_GAUGE=yes
5215 DEFAULT_wxUSE_GRID=yes
cc977e5f 5216 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5217 DEFAULT_wxUSE_IMAGLIST=yes
5218 DEFAULT_wxUSE_LISTBOX=yes
5219 DEFAULT_wxUSE_LISTCTRL=yes
5220 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5221 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5222 DEFAULT_wxUSE_RADIOBOX=yes
5223 DEFAULT_wxUSE_RADIOBTN=yes
5224 DEFAULT_wxUSE_SASH=yes
5225 DEFAULT_wxUSE_SCROLLBAR=yes
5226 DEFAULT_wxUSE_SLIDER=yes
5227 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5228 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5229 DEFAULT_wxUSE_SPLITTER=yes
5230 DEFAULT_wxUSE_STATBMP=yes
5231 DEFAULT_wxUSE_STATBOX=yes
5232 DEFAULT_wxUSE_STATLINE=yes
5233 DEFAULT_wxUSE_STATUSBAR=yes
5234 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5235 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5236 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5237 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5238 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5239 DEFAULT_wxUSE_TOOLTIPS=yes
5240 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5241 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5242 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5243elif test "$wxUSE_CONTROLS" = "no"; then
5244 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5245 DEFAULT_wxUSE_BMPBUTTON=no
5246 DEFAULT_wxUSE_BUTTON=no
5247 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5248 DEFAULT_wxUSE_CARET=no
5249 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5250 DEFAULT_wxUSE_CHECKBOX=no
5251 DEFAULT_wxUSE_CHECKLISTBOX=no
5252 DEFAULT_wxUSE_CHOICE=no
5253 DEFAULT_wxUSE_GAUGE=no
5254 DEFAULT_wxUSE_GRID=no
5255 DEFAULT_wxUSE_NEW_GRID=no
5256 DEFAULT_wxUSE_IMAGLIST=no
5257 DEFAULT_wxUSE_LISTBOX=no
5258 DEFAULT_wxUSE_LISTCTRL=no
5259 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5260 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5261 DEFAULT_wxUSE_RADIOBOX=no
5262 DEFAULT_wxUSE_RADIOBTN=no
5263 DEFAULT_wxUSE_SASH=no
5264 DEFAULT_wxUSE_SCROLLBAR=no
5265 DEFAULT_wxUSE_SLIDER=no
5266 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5267 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5268 DEFAULT_wxUSE_SPLITTER=no
5269 DEFAULT_wxUSE_STATBMP=no
5270 DEFAULT_wxUSE_STATBOX=no
5271 DEFAULT_wxUSE_STATLINE=no
5272 DEFAULT_wxUSE_STATUSBAR=no
5273 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5274 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5275 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5276 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5277 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5278 DEFAULT_wxUSE_TOOLTIPS=no
5279 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5280 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5281 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5282fi
5283
698dcdb6
VZ
5284
5285 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
1725144d 5286echo "configure:5287: checking for --enable-accel" >&5
10f2d63a
VZ
5287 no_cache=0
5288 # Check whether --enable-accel or --disable-accel was given.
5289if test "${enable_accel+set}" = set; then
5290 enableval="$enable_accel"
698dcdb6 5291
10f2d63a
VZ
5292 if test "$enableval" = yes; then
5293 ac_cv_use_accel='wxUSE_ACCEL=yes'
5294 else
5295 ac_cv_use_accel='wxUSE_ACCEL=no'
5296 fi
698dcdb6 5297
10f2d63a 5298else
698dcdb6 5299
10f2d63a
VZ
5300 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5301 if test "x$LINE" != x ; then
5302 eval "DEFAULT_$LINE"
5303 else
5304 no_cache=1
5305 fi
5306
5307 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5308
5309fi
10f2d63a
VZ
5310
5311
5312 eval "$ac_cv_use_accel"
5313 if test "$no_cache" != 1; then
5314 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5315 fi
5316
5317 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5318 echo "$ac_t""yes" 1>&6
10f2d63a 5319 else
698dcdb6 5320 echo "$ac_t""no" 1>&6
10f2d63a 5321 fi
698dcdb6 5322
10f2d63a 5323
1e6feb95 5324 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
1725144d 5325echo "configure:5326: checking for --enable-button" >&5
10f2d63a 5326 no_cache=0
1e6feb95
VZ
5327 # Check whether --enable-button or --disable-button was given.
5328if test "${enable_button+set}" = set; then
5329 enableval="$enable_button"
698dcdb6 5330
10f2d63a 5331 if test "$enableval" = yes; then
1e6feb95 5332 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5333 else
1e6feb95 5334 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5335 fi
698dcdb6 5336
10f2d63a 5337else
698dcdb6 5338
1e6feb95 5339 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5340 if test "x$LINE" != x ; then
5341 eval "DEFAULT_$LINE"
5342 else
5343 no_cache=1
5344 fi
5345
1e6feb95 5346 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5347
5348fi
10f2d63a
VZ
5349
5350
1e6feb95 5351 eval "$ac_cv_use_button"
10f2d63a 5352 if test "$no_cache" != 1; then
1e6feb95 5353 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5354 fi
5355
1e6feb95 5356 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5357 echo "$ac_t""yes" 1>&6
10f2d63a 5358 else
698dcdb6 5359 echo "$ac_t""no" 1>&6
10f2d63a 5360 fi
698dcdb6 5361
10f2d63a 5362
698dcdb6 5363 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
1725144d 5364echo "configure:5365: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5365 no_cache=0
5366 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5367if test "${enable_bmpbutton+set}" = set; then
5368 enableval="$enable_bmpbutton"
698dcdb6 5369
10f2d63a
VZ
5370 if test "$enableval" = yes; then
5371 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5372 else
5373 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5374 fi
698dcdb6 5375
10f2d63a 5376else
698dcdb6 5377
10f2d63a
VZ
5378 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5379 if test "x$LINE" != x ; then
5380 eval "DEFAULT_$LINE"
5381 else
5382 no_cache=1
5383 fi
5384
5385 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5386
5387fi
10f2d63a
VZ
5388
5389
5390 eval "$ac_cv_use_bmpbutton"
5391 if test "$no_cache" != 1; then
5392 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5393 fi
5394
5395 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5396 echo "$ac_t""yes" 1>&6
10f2d63a 5397 else
698dcdb6 5398 echo "$ac_t""no" 1>&6
10f2d63a 5399 fi
698dcdb6 5400
10f2d63a 5401
1e6feb95 5402 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
1725144d 5403echo "configure:5404: checking for --enable-calendar" >&5
1e6feb95
VZ
5404 no_cache=0
5405 # Check whether --enable-calendar or --disable-calendar was given.
5406if test "${enable_calendar+set}" = set; then
5407 enableval="$enable_calendar"
5408
5409 if test "$enableval" = yes; then
5410 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5411 else
5412 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5413 fi
5414
5415else
5416
5417 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5418 if test "x$LINE" != x ; then
5419 eval "DEFAULT_$LINE"
5420 else
5421 no_cache=1
5422 fi
5423
5424 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5425
5426fi
5427
5428
5429 eval "$ac_cv_use_calendar"
5430 if test "$no_cache" != 1; then
5431 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5432 fi
5433
5434 if test "$wxUSE_CALCTRL" = yes; then
5435 echo "$ac_t""yes" 1>&6
5436 else
5437 echo "$ac_t""no" 1>&6
5438 fi
5439
5440
5441 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
1725144d 5442echo "configure:5443: checking for --enable-caret" >&5
1e6feb95
VZ
5443 no_cache=0
5444 # Check whether --enable-caret or --disable-caret was given.
5445if test "${enable_caret+set}" = set; then
5446 enableval="$enable_caret"
5447
5448 if test "$enableval" = yes; then
5449 ac_cv_use_caret='wxUSE_CARET=yes'
5450 else
5451 ac_cv_use_caret='wxUSE_CARET=no'
5452 fi
5453
5454else
5455
5456 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5457 if test "x$LINE" != x ; then
5458 eval "DEFAULT_$LINE"
5459 else
5460 no_cache=1
5461 fi
5462
5463 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5464
5465fi
5466
5467
5468 eval "$ac_cv_use_caret"
5469 if test "$no_cache" != 1; then
5470 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5471 fi
5472
5473 if test "$wxUSE_CARET" = yes; then
5474 echo "$ac_t""yes" 1>&6
5475 else
5476 echo "$ac_t""no" 1>&6
5477 fi
5478
5479
698dcdb6 5480 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
1725144d 5481echo "configure:5482: checking for --enable-checkbox" >&5
10f2d63a
VZ
5482 no_cache=0
5483 # Check whether --enable-checkbox or --disable-checkbox was given.
5484if test "${enable_checkbox+set}" = set; then
5485 enableval="$enable_checkbox"
698dcdb6 5486
10f2d63a
VZ
5487 if test "$enableval" = yes; then
5488 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5489 else
5490 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5491 fi
698dcdb6 5492
10f2d63a 5493else
698dcdb6 5494
10f2d63a
VZ
5495 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5496 if test "x$LINE" != x ; then
5497 eval "DEFAULT_$LINE"
5498 else
5499 no_cache=1
5500 fi
5501
5502 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5503
5504fi
10f2d63a
VZ
5505
5506
5507 eval "$ac_cv_use_checkbox"
5508 if test "$no_cache" != 1; then
5509 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5510 fi
5511
5512 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5513 echo "$ac_t""yes" 1>&6
10f2d63a 5514 else
698dcdb6 5515 echo "$ac_t""no" 1>&6
10f2d63a 5516 fi
698dcdb6 5517
10f2d63a 5518
698dcdb6 5519 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
1725144d 5520echo "configure:5521: checking for --enable-checklst" >&5
10f2d63a
VZ
5521 no_cache=0
5522 # Check whether --enable-checklst or --disable-checklst was given.
5523if test "${enable_checklst+set}" = set; then
5524 enableval="$enable_checklst"
698dcdb6 5525
10f2d63a
VZ
5526 if test "$enableval" = yes; then
5527 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5528 else
5529 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5530 fi
698dcdb6 5531
10f2d63a 5532else
698dcdb6 5533
10f2d63a
VZ
5534 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5535 if test "x$LINE" != x ; then
5536 eval "DEFAULT_$LINE"
5537 else
5538 no_cache=1
5539 fi
5540
5541 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5542
5543fi
10f2d63a
VZ
5544
5545
5546 eval "$ac_cv_use_checklst"
5547 if test "$no_cache" != 1; then
5548 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5549 fi
5550
5551 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5552 echo "$ac_t""yes" 1>&6
10f2d63a 5553 else
698dcdb6 5554 echo "$ac_t""no" 1>&6
10f2d63a 5555 fi
698dcdb6 5556
10f2d63a 5557
698dcdb6 5558 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
1725144d 5559echo "configure:5560: checking for --enable-choice" >&5
10f2d63a
VZ
5560 no_cache=0
5561 # Check whether --enable-choice or --disable-choice was given.
5562if test "${enable_choice+set}" = set; then
5563 enableval="$enable_choice"
698dcdb6 5564
10f2d63a
VZ
5565 if test "$enableval" = yes; then
5566 ac_cv_use_choice='wxUSE_CHOICE=yes'
5567 else
5568 ac_cv_use_choice='wxUSE_CHOICE=no'
5569 fi
698dcdb6 5570
10f2d63a 5571else
698dcdb6 5572
10f2d63a
VZ
5573 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5574 if test "x$LINE" != x ; then
5575 eval "DEFAULT_$LINE"
5576 else
5577 no_cache=1
5578 fi
5579
5580 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5581
5582fi
10f2d63a
VZ
5583
5584
5585 eval "$ac_cv_use_choice"
5586 if test "$no_cache" != 1; then
5587 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5588 fi
5589
5590 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5591 echo "$ac_t""yes" 1>&6
10f2d63a 5592 else
698dcdb6 5593 echo "$ac_t""no" 1>&6
10f2d63a 5594 fi
698dcdb6 5595
10f2d63a 5596
698dcdb6 5597 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
1725144d 5598echo "configure:5599: checking for --enable-combobox" >&5
10f2d63a
VZ
5599 no_cache=0
5600 # Check whether --enable-combobox or --disable-combobox was given.
5601if test "${enable_combobox+set}" = set; then
5602 enableval="$enable_combobox"
698dcdb6 5603
10f2d63a
VZ
5604 if test "$enableval" = yes; then
5605 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5606 else
5607 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5608 fi
698dcdb6 5609
10f2d63a 5610else
698dcdb6 5611
10f2d63a
VZ
5612 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5613 if test "x$LINE" != x ; then
5614 eval "DEFAULT_$LINE"
5615 else
5616 no_cache=1
5617 fi
5618
5619 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
5620
5621fi
10f2d63a
VZ
5622
5623
5624 eval "$ac_cv_use_combobox"
5625 if test "$no_cache" != 1; then
5626 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5627 fi
5628
5629 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 5630 echo "$ac_t""yes" 1>&6
10f2d63a 5631 else
698dcdb6 5632 echo "$ac_t""no" 1>&6
10f2d63a 5633 fi
698dcdb6 5634
10f2d63a 5635
698dcdb6 5636 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
1725144d 5637echo "configure:5638: checking for --enable-gauge" >&5
10f2d63a
VZ
5638 no_cache=0
5639 # Check whether --enable-gauge or --disable-gauge was given.
5640if test "${enable_gauge+set}" = set; then
5641 enableval="$enable_gauge"
698dcdb6 5642
10f2d63a
VZ
5643 if test "$enableval" = yes; then
5644 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5645 else
5646 ac_cv_use_gauge='wxUSE_GAUGE=no'
5647 fi
698dcdb6 5648
10f2d63a 5649else
698dcdb6 5650
10f2d63a
VZ
5651 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5652 if test "x$LINE" != x ; then
5653 eval "DEFAULT_$LINE"
5654 else
5655 no_cache=1
5656 fi
5657
5658 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
5659
5660fi
10f2d63a
VZ
5661
5662
5663 eval "$ac_cv_use_gauge"
5664 if test "$no_cache" != 1; then
5665 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5666 fi
5667
5668 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 5669 echo "$ac_t""yes" 1>&6
10f2d63a 5670 else
698dcdb6 5671 echo "$ac_t""no" 1>&6
10f2d63a 5672 fi
698dcdb6 5673
10f2d63a 5674
698dcdb6 5675 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
1725144d 5676echo "configure:5677: checking for --enable-grid" >&5
10f2d63a
VZ
5677 no_cache=0
5678 # Check whether --enable-grid or --disable-grid was given.
5679if test "${enable_grid+set}" = set; then
5680 enableval="$enable_grid"
698dcdb6 5681
10f2d63a
VZ
5682 if test "$enableval" = yes; then
5683 ac_cv_use_grid='wxUSE_GRID=yes'
5684 else
5685 ac_cv_use_grid='wxUSE_GRID=no'
5686 fi
698dcdb6 5687
10f2d63a 5688else
698dcdb6 5689
10f2d63a
VZ
5690 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5691 if test "x$LINE" != x ; then
5692 eval "DEFAULT_$LINE"
5693 else
5694 no_cache=1
5695 fi
5696
5697 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
5698
5699fi
10f2d63a
VZ
5700
5701
5702 eval "$ac_cv_use_grid"
5703 if test "$no_cache" != 1; then
5704 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5705 fi
5706
5707 if test "$wxUSE_GRID" = yes; then
698dcdb6 5708 echo "$ac_t""yes" 1>&6
10f2d63a 5709 else
698dcdb6 5710 echo "$ac_t""no" 1>&6
10f2d63a 5711 fi
698dcdb6 5712
10f2d63a 5713
698dcdb6 5714 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
1725144d 5715echo "configure:5716: checking for --enable-newgrid" >&5
10f2d63a
VZ
5716 no_cache=0
5717 # Check whether --enable-newgrid or --disable-newgrid was given.
5718if test "${enable_newgrid+set}" = set; then
5719 enableval="$enable_newgrid"
698dcdb6 5720
10f2d63a
VZ
5721 if test "$enableval" = yes; then
5722 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5723 else
5724 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5725 fi
698dcdb6 5726
10f2d63a 5727else
698dcdb6 5728
10f2d63a
VZ
5729 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5730 if test "x$LINE" != x ; then
5731 eval "DEFAULT_$LINE"
5732 else
5733 no_cache=1
5734 fi
5735
5736 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
5737
5738fi
10f2d63a
VZ
5739
5740
5741 eval "$ac_cv_use_newgrid"
5742 if test "$no_cache" != 1; then
5743 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5744 fi
5745
5746 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 5747 echo "$ac_t""yes" 1>&6
10f2d63a 5748 else
698dcdb6 5749 echo "$ac_t""no" 1>&6
10f2d63a 5750 fi
698dcdb6 5751
10f2d63a 5752
698dcdb6 5753 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
1725144d 5754echo "configure:5755: checking for --enable-imaglist" >&5
10f2d63a
VZ
5755 no_cache=0
5756 # Check whether --enable-imaglist or --disable-imaglist was given.
5757if test "${enable_imaglist+set}" = set; then
5758 enableval="$enable_imaglist"
698dcdb6 5759
10f2d63a
VZ
5760 if test "$enableval" = yes; then
5761 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5762 else
5763 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5764 fi
698dcdb6 5765
10f2d63a 5766else
698dcdb6 5767
10f2d63a
VZ
5768 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5769 if test "x$LINE" != x ; then
5770 eval "DEFAULT_$LINE"
5771 else
5772 no_cache=1
5773 fi
5774
5775 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
5776
5777fi
10f2d63a
VZ
5778
5779
5780 eval "$ac_cv_use_imaglist"
5781 if test "$no_cache" != 1; then
5782 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5783 fi
5784
5785 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 5786 echo "$ac_t""yes" 1>&6
10f2d63a 5787 else
698dcdb6 5788 echo "$ac_t""no" 1>&6
10f2d63a 5789 fi
698dcdb6 5790
10f2d63a 5791
698dcdb6 5792 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
1725144d 5793echo "configure:5794: checking for --enable-listbox" >&5
10f2d63a
VZ
5794 no_cache=0
5795 # Check whether --enable-listbox or --disable-listbox was given.
5796if test "${enable_listbox+set}" = set; then
5797 enableval="$enable_listbox"
698dcdb6 5798
10f2d63a
VZ
5799 if test "$enableval" = yes; then
5800 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5801 else
5802 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5803 fi
698dcdb6 5804
10f2d63a 5805else
698dcdb6 5806
10f2d63a
VZ
5807 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5808 if test "x$LINE" != x ; then
5809 eval "DEFAULT_$LINE"
5810 else
5811 no_cache=1
5812 fi
5813
5814 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
5815
5816fi
10f2d63a
VZ
5817
5818
5819 eval "$ac_cv_use_listbox"
5820 if test "$no_cache" != 1; then
5821 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5822 fi
5823
5824 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 5825 echo "$ac_t""yes" 1>&6
10f2d63a 5826 else
698dcdb6 5827 echo "$ac_t""no" 1>&6
10f2d63a 5828 fi
698dcdb6 5829
10f2d63a 5830
698dcdb6 5831 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
1725144d 5832echo "configure:5833: checking for --enable-listctrl" >&5
10f2d63a
VZ
5833 no_cache=0
5834 # Check whether --enable-listctrl or --disable-listctrl was given.
5835if test "${enable_listctrl+set}" = set; then
5836 enableval="$enable_listctrl"
698dcdb6 5837
10f2d63a
VZ
5838 if test "$enableval" = yes; then
5839 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5840 else
5841 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5842 fi
698dcdb6 5843
10f2d63a 5844else
698dcdb6 5845
10f2d63a
VZ
5846 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5847 if test "x$LINE" != x ; then
5848 eval "DEFAULT_$LINE"
5849 else
5850 no_cache=1
5851 fi
5852
5853 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
5854
5855fi
10f2d63a
VZ
5856
5857
5858 eval "$ac_cv_use_listctrl"
5859 if test "$no_cache" != 1; then
5860 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5861 fi
5862
5863 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 5864 echo "$ac_t""yes" 1>&6
10f2d63a 5865 else
698dcdb6 5866 echo "$ac_t""no" 1>&6
10f2d63a 5867 fi
698dcdb6 5868
10f2d63a 5869
698dcdb6 5870 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
1725144d 5871echo "configure:5872: checking for --enable-notebook" >&5
10f2d63a
VZ
5872 no_cache=0
5873 # Check whether --enable-notebook or --disable-notebook was given.
5874if test "${enable_notebook+set}" = set; then
5875 enableval="$enable_notebook"
698dcdb6 5876
10f2d63a
VZ
5877 if test "$enableval" = yes; then
5878 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5879 else
5880 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5881 fi
698dcdb6 5882
10f2d63a 5883else
698dcdb6 5884
10f2d63a
VZ
5885 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5886 if test "x$LINE" != x ; then
5887 eval "DEFAULT_$LINE"
5888 else
5889 no_cache=1
5890 fi
5891
5892 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
5893
5894fi
10f2d63a
VZ
5895
5896
5897 eval "$ac_cv_use_notebook"
5898 if test "$no_cache" != 1; then
5899 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5900 fi
5901
5902 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 5903 echo "$ac_t""yes" 1>&6
10f2d63a 5904 else
698dcdb6 5905 echo "$ac_t""no" 1>&6
10f2d63a 5906 fi
698dcdb6 5907
10f2d63a 5908
24176f2c 5909 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
1725144d 5910echo "configure:5911: checking for --enable-propsheet" >&5
24176f2c
GD
5911 no_cache=0
5912 # Check whether --enable-propsheet or --disable-propsheet was given.
5913if test "${enable_propsheet+set}" = set; then
5914 enableval="$enable_propsheet"
5915
5916 if test "$enableval" = yes; then
5917 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5918 else
5919 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5920 fi
5921
5922else
5923
5924 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5925 if test "x$LINE" != x ; then
5926 eval "DEFAULT_$LINE"
5927 else
5928 no_cache=1
5929 fi
5930
5931 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5932
5933fi
5934
5935
5936 eval "$ac_cv_use_propsheet"
5937 if test "$no_cache" != 1; then
5938 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5939 fi
5940
5941 if test "$wxUSE_PROPSHEET" = yes; then
5942 echo "$ac_t""yes" 1>&6
5943 else
5944 echo "$ac_t""no" 1>&6
5945 fi
5946
5947
698dcdb6 5948 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
1725144d 5949echo "configure:5950: checking for --enable-radiobox" >&5
10f2d63a
VZ
5950 no_cache=0
5951 # Check whether --enable-radiobox or --disable-radiobox was given.
5952if test "${enable_radiobox+set}" = set; then
5953 enableval="$enable_radiobox"
698dcdb6 5954
10f2d63a
VZ
5955 if test "$enableval" = yes; then
5956 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5957 else
5958 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5959 fi
698dcdb6 5960
10f2d63a 5961else
698dcdb6 5962
10f2d63a
VZ
5963 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5964 if test "x$LINE" != x ; then
5965 eval "DEFAULT_$LINE"
5966 else
5967 no_cache=1
5968 fi
5969
5970 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
5971
5972fi
10f2d63a
VZ
5973
5974
5975 eval "$ac_cv_use_radiobox"
5976 if test "$no_cache" != 1; then
5977 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5978 fi
5979
5980 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 5981 echo "$ac_t""yes" 1>&6
10f2d63a 5982 else
698dcdb6 5983 echo "$ac_t""no" 1>&6
10f2d63a 5984 fi
698dcdb6 5985
10f2d63a 5986
698dcdb6 5987 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
1725144d 5988echo "configure:5989: checking for --enable-radiobtn" >&5
10f2d63a
VZ
5989 no_cache=0
5990 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5991if test "${enable_radiobtn+set}" = set; then
5992 enableval="$enable_radiobtn"
698dcdb6 5993
10f2d63a
VZ
5994 if test "$enableval" = yes; then
5995 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5996 else
5997 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5998 fi
698dcdb6 5999
10f2d63a 6000else
698dcdb6 6001
10f2d63a
VZ
6002 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6003 if test "x$LINE" != x ; then
6004 eval "DEFAULT_$LINE"
6005 else
6006 no_cache=1
6007 fi
6008
6009 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
6010
6011fi
10f2d63a
VZ
6012
6013
6014 eval "$ac_cv_use_radiobtn"
6015 if test "$no_cache" != 1; then
6016 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6017 fi
6018
6019 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 6020 echo "$ac_t""yes" 1>&6
10f2d63a 6021 else
698dcdb6 6022 echo "$ac_t""no" 1>&6
10f2d63a 6023 fi
698dcdb6 6024
10f2d63a 6025
698dcdb6 6026 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
1725144d 6027echo "configure:6028: checking for --enable-sash" >&5
10f2d63a
VZ
6028 no_cache=0
6029 # Check whether --enable-sash or --disable-sash was given.
6030if test "${enable_sash+set}" = set; then
6031 enableval="$enable_sash"
698dcdb6 6032
10f2d63a
VZ
6033 if test "$enableval" = yes; then
6034 ac_cv_use_sash='wxUSE_SASH=yes'
6035 else
6036 ac_cv_use_sash='wxUSE_SASH=no'
6037 fi
698dcdb6 6038
10f2d63a 6039else
698dcdb6 6040
10f2d63a
VZ
6041 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6042 if test "x$LINE" != x ; then
6043 eval "DEFAULT_$LINE"
6044 else
6045 no_cache=1
6046 fi
6047
6048 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
6049
6050fi
10f2d63a
VZ
6051
6052
6053 eval "$ac_cv_use_sash"
6054 if test "$no_cache" != 1; then
6055 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6056 fi
6057
6058 if test "$wxUSE_SASH" = yes; then
698dcdb6 6059 echo "$ac_t""yes" 1>&6
10f2d63a 6060 else
698dcdb6 6061 echo "$ac_t""no" 1>&6
10f2d63a 6062 fi
698dcdb6 6063
10f2d63a 6064
698dcdb6 6065 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
1725144d 6066echo "configure:6067: checking for --enable-scrollbar" >&5
10f2d63a
VZ
6067 no_cache=0
6068 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6069if test "${enable_scrollbar+set}" = set; then
6070 enableval="$enable_scrollbar"
698dcdb6 6071
10f2d63a
VZ
6072 if test "$enableval" = yes; then
6073 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6074 else
6075 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6076 fi
698dcdb6 6077
10f2d63a 6078else
698dcdb6 6079
10f2d63a
VZ
6080 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6081 if test "x$LINE" != x ; then
6082 eval "DEFAULT_$LINE"
6083 else
6084 no_cache=1
6085 fi
6086
6087 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
6088
6089fi
10f2d63a
VZ
6090
6091
6092 eval "$ac_cv_use_scrollbar"
6093 if test "$no_cache" != 1; then
6094 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6095 fi
6096
6097 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 6098 echo "$ac_t""yes" 1>&6
10f2d63a 6099 else
698dcdb6 6100 echo "$ac_t""no" 1>&6
10f2d63a 6101 fi
698dcdb6 6102
10f2d63a 6103
698dcdb6 6104 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
1725144d 6105echo "configure:6106: checking for --enable-slider" >&5
10f2d63a
VZ
6106 no_cache=0
6107 # Check whether --enable-slider or --disable-slider was given.
6108if test "${enable_slider+set}" = set; then
6109 enableval="$enable_slider"
698dcdb6 6110
10f2d63a
VZ
6111 if test "$enableval" = yes; then
6112 ac_cv_use_slider='wxUSE_SLIDER=yes'
6113 else
6114 ac_cv_use_slider='wxUSE_SLIDER=no'
6115 fi
698dcdb6 6116
10f2d63a 6117else
698dcdb6 6118
10f2d63a
VZ
6119 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6120 if test "x$LINE" != x ; then
6121 eval "DEFAULT_$LINE"
6122 else
6123 no_cache=1
6124 fi
6125
6126 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
6127
6128fi
10f2d63a
VZ
6129
6130
6131 eval "$ac_cv_use_slider"
6132 if test "$no_cache" != 1; then
6133 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6134 fi
6135
6136 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 6137 echo "$ac_t""yes" 1>&6
10f2d63a 6138 else
698dcdb6 6139 echo "$ac_t""no" 1>&6
10f2d63a 6140 fi
698dcdb6 6141
10f2d63a 6142
698dcdb6 6143 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
1725144d 6144echo "configure:6145: checking for --enable-spinbtn" >&5
10f2d63a
VZ
6145 no_cache=0
6146 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6147if test "${enable_spinbtn+set}" = set; then
6148 enableval="$enable_spinbtn"
698dcdb6 6149
10f2d63a
VZ
6150 if test "$enableval" = yes; then
6151 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6152 else
6153 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6154 fi
698dcdb6 6155
10f2d63a 6156else
698dcdb6 6157
10f2d63a
VZ
6158 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6159 if test "x$LINE" != x ; then
6160 eval "DEFAULT_$LINE"
6161 else
6162 no_cache=1
6163 fi
6164
6165 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
6166
6167fi
10f2d63a
VZ
6168
6169
6170 eval "$ac_cv_use_spinbtn"
6171 if test "$no_cache" != 1; then
6172 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6173 fi
6174
6175 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 6176 echo "$ac_t""yes" 1>&6
10f2d63a 6177 else
698dcdb6 6178 echo "$ac_t""no" 1>&6
10f2d63a 6179 fi
698dcdb6 6180
10f2d63a 6181
698dcdb6 6182 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
1725144d 6183echo "configure:6184: checking for --enable-spinctrl" >&5
56cfaa52
RR
6184 no_cache=0
6185 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6186if test "${enable_spinctrl+set}" = set; then
6187 enableval="$enable_spinctrl"
698dcdb6 6188
56cfaa52
RR
6189 if test "$enableval" = yes; then
6190 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6191 else
6192 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6193 fi
698dcdb6 6194
56cfaa52 6195else
698dcdb6 6196
56cfaa52
RR
6197 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6198 if test "x$LINE" != x ; then
6199 eval "DEFAULT_$LINE"
6200 else
6201 no_cache=1
6202 fi
6203
6204 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6205
6206fi
56cfaa52
RR
6207
6208
6209 eval "$ac_cv_use_spinctrl"
6210 if test "$no_cache" != 1; then
6211 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6212 fi
6213
6214 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6215 echo "$ac_t""yes" 1>&6
56cfaa52 6216 else
698dcdb6 6217 echo "$ac_t""no" 1>&6
56cfaa52 6218 fi
698dcdb6 6219
56cfaa52 6220
698dcdb6 6221 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
1725144d 6222echo "configure:6223: checking for --enable-splitter" >&5
10f2d63a
VZ
6223 no_cache=0
6224 # Check whether --enable-splitter or --disable-splitter was given.
6225if test "${enable_splitter+set}" = set; then
6226 enableval="$enable_splitter"
698dcdb6 6227
10f2d63a
VZ
6228 if test "$enableval" = yes; then
6229 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6230 else
6231 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6232 fi
698dcdb6 6233
10f2d63a 6234else
698dcdb6 6235
10f2d63a
VZ
6236 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6237 if test "x$LINE" != x ; then
6238 eval "DEFAULT_$LINE"
6239 else
6240 no_cache=1
6241 fi
6242
6243 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6244
6245fi
10f2d63a
VZ
6246
6247
6248 eval "$ac_cv_use_splitter"
6249 if test "$no_cache" != 1; then
6250 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6251 fi
6252
6253 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6254 echo "$ac_t""yes" 1>&6
10f2d63a 6255 else
698dcdb6 6256 echo "$ac_t""no" 1>&6
10f2d63a 6257 fi
698dcdb6 6258
10f2d63a 6259
698dcdb6 6260 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
1725144d 6261echo "configure:6262: checking for --enable-statbmp" >&5
10f2d63a
VZ
6262 no_cache=0
6263 # Check whether --enable-statbmp or --disable-statbmp was given.
6264if test "${enable_statbmp+set}" = set; then
6265 enableval="$enable_statbmp"
698dcdb6 6266
10f2d63a
VZ
6267 if test "$enableval" = yes; then
6268 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6269 else
6270 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6271 fi
698dcdb6 6272
10f2d63a 6273else
698dcdb6 6274
10f2d63a
VZ
6275 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6276 if test "x$LINE" != x ; then
6277 eval "DEFAULT_$LINE"
6278 else
6279 no_cache=1
6280 fi
6281
6282 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6283
6284fi
10f2d63a
VZ
6285
6286
6287 eval "$ac_cv_use_statbmp"
6288 if test "$no_cache" != 1; then
6289 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6290 fi
6291
6292 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6293 echo "$ac_t""yes" 1>&6
10f2d63a 6294 else
698dcdb6 6295 echo "$ac_t""no" 1>&6
10f2d63a 6296 fi
698dcdb6 6297
10f2d63a 6298
698dcdb6 6299 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
1725144d 6300echo "configure:6301: checking for --enable-statbox" >&5
10f2d63a
VZ
6301 no_cache=0
6302 # Check whether --enable-statbox or --disable-statbox was given.
6303if test "${enable_statbox+set}" = set; then
6304 enableval="$enable_statbox"
698dcdb6 6305
10f2d63a
VZ
6306 if test "$enableval" = yes; then
6307 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6308 else
6309 ac_cv_use_statbox='wxUSE_STATBOX=no'
6310 fi
698dcdb6 6311
10f2d63a 6312else
698dcdb6 6313
10f2d63a
VZ
6314 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6315 if test "x$LINE" != x ; then
6316 eval "DEFAULT_$LINE"
6317 else
6318 no_cache=1
6319 fi
6320
6321 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6322
6323fi
10f2d63a
VZ
6324
6325
6326 eval "$ac_cv_use_statbox"
6327 if test "$no_cache" != 1; then
6328 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6329 fi
6330
6331 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6332 echo "$ac_t""yes" 1>&6
10f2d63a 6333 else
698dcdb6 6334 echo "$ac_t""no" 1>&6
10f2d63a 6335 fi
698dcdb6 6336
10f2d63a 6337
698dcdb6 6338 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
1725144d 6339echo "configure:6340: checking for --enable-statline" >&5
10f2d63a
VZ
6340 no_cache=0
6341 # Check whether --enable-statline or --disable-statline was given.
6342if test "${enable_statline+set}" = set; then
6343 enableval="$enable_statline"
698dcdb6 6344
10f2d63a
VZ
6345 if test "$enableval" = yes; then
6346 ac_cv_use_statline='wxUSE_STATLINE=yes'
6347 else
6348 ac_cv_use_statline='wxUSE_STATLINE=no'
6349 fi
698dcdb6 6350
10f2d63a 6351else
698dcdb6 6352
10f2d63a
VZ
6353 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6354 if test "x$LINE" != x ; then
6355 eval "DEFAULT_$LINE"
6356 else
6357 no_cache=1
6358 fi
6359
6360 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6361
6362fi
10f2d63a
VZ
6363
6364
6365 eval "$ac_cv_use_statline"
6366 if test "$no_cache" != 1; then
6367 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6368 fi
6369
6370 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6371 echo "$ac_t""yes" 1>&6
10f2d63a 6372 else
698dcdb6 6373 echo "$ac_t""no" 1>&6
10f2d63a 6374 fi
698dcdb6 6375
10f2d63a 6376
1e6feb95 6377 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
1725144d 6378echo "configure:6379: checking for --enable-stattext" >&5
1e6feb95
VZ
6379 no_cache=0
6380 # Check whether --enable-stattext or --disable-stattext was given.
6381if test "${enable_stattext+set}" = set; then
6382 enableval="$enable_stattext"
6383
6384 if test "$enableval" = yes; then
6385 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6386 else
6387 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6388 fi
6389
6390else
6391
6392 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6393 if test "x$LINE" != x ; then
6394 eval "DEFAULT_$LINE"
6395 else
6396 no_cache=1
6397 fi
6398
6399 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6400
6401fi
6402
6403
6404 eval "$ac_cv_use_stattext"
6405 if test "$no_cache" != 1; then
6406 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6407 fi
6408
6409 if test "$wxUSE_STATTEXT" = yes; then
6410 echo "$ac_t""yes" 1>&6
6411 else
6412 echo "$ac_t""no" 1>&6
6413 fi
6414
6415
698dcdb6 6416 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
1725144d 6417echo "configure:6418: checking for --enable-statusbar" >&5
10f2d63a
VZ
6418 no_cache=0
6419 # Check whether --enable-statusbar or --disable-statusbar was given.
6420if test "${enable_statusbar+set}" = set; then
6421 enableval="$enable_statusbar"
698dcdb6 6422
10f2d63a
VZ
6423 if test "$enableval" = yes; then
6424 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6425 else
6426 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6427 fi
698dcdb6 6428
10f2d63a 6429else
698dcdb6 6430
10f2d63a
VZ
6431 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6432 if test "x$LINE" != x ; then
6433 eval "DEFAULT_$LINE"
6434 else
6435 no_cache=1
6436 fi
6437
6438 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6439
6440fi
10f2d63a
VZ
6441
6442
6443 eval "$ac_cv_use_statusbar"
6444 if test "$no_cache" != 1; then
6445 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6446 fi
6447
6448 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6449 echo "$ac_t""yes" 1>&6
10f2d63a 6450 else
698dcdb6 6451 echo "$ac_t""no" 1>&6
10f2d63a 6452 fi
698dcdb6 6453
10f2d63a 6454
698dcdb6 6455 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
1725144d 6456echo "configure:6457: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6457 no_cache=0
6458 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6459if test "${enable_tabdialog+set}" = set; then
6460 enableval="$enable_tabdialog"
698dcdb6 6461
10f2d63a
VZ
6462 if test "$enableval" = yes; then
6463 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6464 else
6465 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6466 fi
698dcdb6 6467
10f2d63a 6468else
698dcdb6 6469
10f2d63a
VZ
6470 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6471 if test "x$LINE" != x ; then
6472 eval "DEFAULT_$LINE"
6473 else
6474 no_cache=1
6475 fi
6476
6477 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6478
6479fi
10f2d63a
VZ
6480
6481
6482 eval "$ac_cv_use_tabdialog"
6483 if test "$no_cache" != 1; then
6484 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6485 fi
6486
6487 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6488 echo "$ac_t""yes" 1>&6
10f2d63a 6489 else
698dcdb6 6490 echo "$ac_t""no" 1>&6
10f2d63a 6491 fi
698dcdb6 6492
10f2d63a 6493
1e6feb95 6494 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
1725144d 6495echo "configure:6496: checking for --enable-textctrl" >&5
1e6feb95
VZ
6496 no_cache=0
6497 # Check whether --enable-textctrl or --disable-textctrl was given.
6498if test "${enable_textctrl+set}" = set; then
6499 enableval="$enable_textctrl"
6500
6501 if test "$enableval" = yes; then
6502 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6503 else
6504 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6505 fi
6506
6507else
6508
6509 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6510 if test "x$LINE" != x ; then
6511 eval "DEFAULT_$LINE"
6512 else
6513 no_cache=1
6514 fi
6515
6516 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6517
6518fi
6519
6520
6521 eval "$ac_cv_use_textctrl"
6522 if test "$no_cache" != 1; then
6523 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6524 fi
6525
6526 if test "$wxUSE_TEXTCTRL" = yes; then
6527 echo "$ac_t""yes" 1>&6
6528 else
6529 echo "$ac_t""no" 1>&6
6530 fi
6531
6532
698dcdb6 6533 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
1725144d 6534echo "configure:6535: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6535 no_cache=0
6536 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6537if test "${enable_togglebtn+set}" = set; then
6538 enableval="$enable_togglebtn"
698dcdb6 6539
1db8dc4a
VZ
6540 if test "$enableval" = yes; then
6541 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6542 else
6543 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6544 fi
698dcdb6 6545
1db8dc4a 6546else
698dcdb6 6547
1db8dc4a
VZ
6548 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6549 if test "x$LINE" != x ; then
6550 eval "DEFAULT_$LINE"
6551 else
6552 no_cache=1
6553 fi
6554
6555 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6556
6557fi
1db8dc4a
VZ
6558
6559
6560 eval "$ac_cv_use_togglebtn"
6561 if test "$no_cache" != 1; then
6562 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6563 fi
6564
6565 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6566 echo "$ac_t""yes" 1>&6
1db8dc4a 6567 else
698dcdb6 6568 echo "$ac_t""no" 1>&6
1db8dc4a 6569 fi
698dcdb6 6570
1db8dc4a 6571
698dcdb6 6572 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
1725144d 6573echo "configure:6574: checking for --enable-toolbar" >&5
10f2d63a
VZ
6574 no_cache=0
6575 # Check whether --enable-toolbar or --disable-toolbar was given.
6576if test "${enable_toolbar+set}" = set; then
6577 enableval="$enable_toolbar"
698dcdb6 6578
10f2d63a
VZ
6579 if test "$enableval" = yes; then
6580 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6581 else
6582 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6583 fi
698dcdb6 6584
10f2d63a 6585else
698dcdb6 6586
10f2d63a
VZ
6587 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6588 if test "x$LINE" != x ; then
6589 eval "DEFAULT_$LINE"
6590 else
6591 no_cache=1
6592 fi
6593
6594 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
6595
6596fi
10f2d63a
VZ
6597
6598
6599 eval "$ac_cv_use_toolbar"
6600 if test "$no_cache" != 1; then
6601 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6602 fi
6603
6604 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 6605 echo "$ac_t""yes" 1>&6
10f2d63a 6606 else
698dcdb6 6607 echo "$ac_t""no" 1>&6
10f2d63a 6608 fi
698dcdb6 6609
10f2d63a 6610
698dcdb6 6611 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
1725144d 6612echo "configure:6613: checking for --enable-tbarnative" >&5
360d6699
VZ
6613 no_cache=0
6614 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6615if test "${enable_tbarnative+set}" = set; then
6616 enableval="$enable_tbarnative"
698dcdb6 6617
360d6699
VZ
6618 if test "$enableval" = yes; then
6619 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6620 else
6621 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6622 fi
698dcdb6 6623
360d6699 6624else
698dcdb6 6625
360d6699
VZ
6626 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6627 if test "x$LINE" != x ; then
6628 eval "DEFAULT_$LINE"
6629 else
6630 no_cache=1
6631 fi
6632
6633 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
6634
6635fi
360d6699
VZ
6636
6637
6638 eval "$ac_cv_use_tbarnative"
6639 if test "$no_cache" != 1; then
6640 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6641 fi
6642
6643 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 6644 echo "$ac_t""yes" 1>&6
360d6699 6645 else
698dcdb6 6646 echo "$ac_t""no" 1>&6
360d6699 6647 fi
698dcdb6 6648
360d6699 6649
698dcdb6 6650 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
1725144d 6651echo "configure:6652: checking for --enable-tbarsmpl" >&5
360d6699
VZ
6652 no_cache=0
6653 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6654if test "${enable_tbarsmpl+set}" = set; then
6655 enableval="$enable_tbarsmpl"
698dcdb6 6656
360d6699
VZ
6657 if test "$enableval" = yes; then
6658 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6659 else
6660 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6661 fi
698dcdb6 6662
360d6699 6663else
698dcdb6 6664
360d6699
VZ
6665 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6666 if test "x$LINE" != x ; then
6667 eval "DEFAULT_$LINE"
6668 else
6669 no_cache=1
6670 fi
6671
6672 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
6673
6674fi
360d6699
VZ
6675
6676
6677 eval "$ac_cv_use_tbarsmpl"
6678 if test "$no_cache" != 1; then
6679 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6680 fi
6681
6682 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 6683 echo "$ac_t""yes" 1>&6
360d6699 6684 else
698dcdb6 6685 echo "$ac_t""no" 1>&6
360d6699 6686 fi
698dcdb6 6687
360d6699 6688
698dcdb6 6689 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
1725144d 6690echo "configure:6691: checking for --enable-treectrl" >&5
10f2d63a
VZ
6691 no_cache=0
6692 # Check whether --enable-treectrl or --disable-treectrl was given.
6693if test "${enable_treectrl+set}" = set; then
6694 enableval="$enable_treectrl"
698dcdb6 6695
10f2d63a
VZ
6696 if test "$enableval" = yes; then
6697 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6698 else
6699 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6700 fi
698dcdb6 6701
10f2d63a 6702else
698dcdb6 6703
10f2d63a
VZ
6704 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6705 if test "x$LINE" != x ; then
6706 eval "DEFAULT_$LINE"
6707 else
6708 no_cache=1
6709 fi
6710
6711 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
6712
6713fi
10f2d63a
VZ
6714
6715
1e6feb95
VZ
6716 eval "$ac_cv_use_treectrl"
6717 if test "$no_cache" != 1; then
6718 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6719 fi
6720
6721 if test "$wxUSE_TREECTRL" = yes; then
6722 echo "$ac_t""yes" 1>&6
6723 else
6724 echo "$ac_t""no" 1>&6
6725 fi
6726
6727
9926e4a4 6728 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
1725144d 6729echo "configure:6730: checking for --enable-tipwindow" >&5
9926e4a4
VZ
6730 no_cache=0
6731 # Check whether --enable-tipwindow or --disable-tipwindow was given.
6732if test "${enable_tipwindow+set}" = set; then
6733 enableval="$enable_tipwindow"
6734
6735 if test "$enableval" = yes; then
6736 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
6737 else
6738 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
6739 fi
6740
6741else
6742
6743 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
6744 if test "x$LINE" != x ; then
6745 eval "DEFAULT_$LINE"
6746 else
6747 no_cache=1
6748 fi
6749
6750 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
6751
6752fi
6753
6754
6755 eval "$ac_cv_use_tipwindow"
6756 if test "$no_cache" != 1; then
6757 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
6758 fi
6759
6760 if test "$wxUSE_TIPWINDOW" = yes; then
6761 echo "$ac_t""yes" 1>&6
6762 else
6763 echo "$ac_t""no" 1>&6
6764 fi
6765
6766
9f41d601 6767 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
1725144d 6768echo "configure:6769: checking for --enable-popupwin" >&5
9f41d601
RR
6769 no_cache=0
6770 # Check whether --enable-popupwin or --disable-popupwin was given.
6771if test "${enable_popupwin+set}" = set; then
6772 enableval="$enable_popupwin"
6773
6774 if test "$enableval" = yes; then
6775 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6776 else
6777 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6778 fi
6779
6780else
6781
6782 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6783 if test "x$LINE" != x ; then
6784 eval "DEFAULT_$LINE"
6785 else
6786 no_cache=1
6787 fi
6788
6789 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6790
6791fi
6792
6793
6794 eval "$ac_cv_use_popupwin"
6795 if test "$no_cache" != 1; then
6796 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6797 fi
6798
6799 if test "$wxUSE_POPUPWIN" = yes; then
6800 echo "$ac_t""yes" 1>&6
6801 else
6802 echo "$ac_t""no" 1>&6
6803 fi
6804
6805
1e6feb95
VZ
6806
6807
6808 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
1725144d 6809echo "configure:6810: checking for --enable-commondlg" >&5
1e6feb95
VZ
6810 no_cache=0
6811 # Check whether --enable-commondlg or --disable-commondlg was given.
6812if test "${enable_commondlg+set}" = set; then
6813 enableval="$enable_commondlg"
6814
6815 if test "$enableval" = yes; then
6816 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6817 else
6818 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6819 fi
6820
6821else
6822
6823 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6824 if test "x$LINE" != x ; then
6825 eval "DEFAULT_$LINE"
6826 else
6827 no_cache=1
6828 fi
6829
6830 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6831
6832fi
6833
6834
6835 eval "$ac_cv_use_commondlg"
6836 if test "$no_cache" != 1; then
6837 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6838 fi
6839
6840 if test "$wxUSE_COMMONDLGS" = yes; then
6841 echo "$ac_t""yes" 1>&6
6842 else
6843 echo "$ac_t""no" 1>&6
6844 fi
6845
6846
6847 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
1725144d 6848echo "configure:6849: checking for --enable-choicedlg" >&5
1e6feb95
VZ
6849 no_cache=0
6850 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6851if test "${enable_choicedlg+set}" = set; then
6852 enableval="$enable_choicedlg"
6853
6854 if test "$enableval" = yes; then
6855 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6856 else
6857 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6858 fi
6859
6860else
6861
6862 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6863 if test "x$LINE" != x ; then
6864 eval "DEFAULT_$LINE"
6865 else
6866 no_cache=1
6867 fi
6868
6869 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6870
6871fi
6872
6873
6874 eval "$ac_cv_use_choicedlg"
6875 if test "$no_cache" != 1; then
6876 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6877 fi
6878
6879 if test "$wxUSE_CHOICEDLG" = yes; then
6880 echo "$ac_t""yes" 1>&6
6881 else
6882 echo "$ac_t""no" 1>&6
6883 fi
6884
6885
6886 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
1725144d 6887echo "configure:6888: checking for --enable-coldlg" >&5
1e6feb95
VZ
6888 no_cache=0
6889 # Check whether --enable-coldlg or --disable-coldlg was given.
6890if test "${enable_coldlg+set}" = set; then
6891 enableval="$enable_coldlg"
6892
6893 if test "$enableval" = yes; then
6894 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6895 else
6896 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6897 fi
6898
6899else
6900
6901 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6902 if test "x$LINE" != x ; then
6903 eval "DEFAULT_$LINE"
6904 else
6905 no_cache=1
6906 fi
6907
6908 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6909
6910fi
6911
6912
6913 eval "$ac_cv_use_coldlg"
6914 if test "$no_cache" != 1; then
6915 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6916 fi
6917
6918 if test "$wxUSE_COLOURDLG" = yes; then
6919 echo "$ac_t""yes" 1>&6
6920 else
6921 echo "$ac_t""no" 1>&6
6922 fi
6923
6924
6925 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
1725144d 6926echo "configure:6927: checking for --enable-filedlg" >&5
1e6feb95
VZ
6927 no_cache=0
6928 # Check whether --enable-filedlg or --disable-filedlg was given.
6929if test "${enable_filedlg+set}" = set; then
6930 enableval="$enable_filedlg"
6931
6932 if test "$enableval" = yes; then
6933 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6934 else
6935 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6936 fi
6937
6938else
6939
6940 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6941 if test "x$LINE" != x ; then
6942 eval "DEFAULT_$LINE"
6943 else
6944 no_cache=1
6945 fi
6946
6947 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6948
6949fi
6950
6951
6952 eval "$ac_cv_use_filedlg"
6953 if test "$no_cache" != 1; then
6954 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6955 fi
6956
6957 if test "$wxUSE_FILEDLG" = yes; then
6958 echo "$ac_t""yes" 1>&6
6959 else
6960 echo "$ac_t""no" 1>&6
6961 fi
6962
6963
69d27ff7 6964 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
1725144d 6965echo "configure:6966: checking for --enable-finddlg" >&5
8db37e06 6966 no_cache=0
69d27ff7
MB
6967 # Check whether --enable-finddlg or --disable-finddlg was given.
6968if test "${enable_finddlg+set}" = set; then
6969 enableval="$enable_finddlg"
8db37e06
VZ
6970
6971 if test "$enableval" = yes; then
69d27ff7 6972 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 6973 else
69d27ff7 6974 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06
VZ
6975 fi
6976
6977else
6978
6979 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6980 if test "x$LINE" != x ; then
6981 eval "DEFAULT_$LINE"
6982 else
6983 no_cache=1
6984 fi
6985
69d27ff7 6986 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06
VZ
6987
6988fi
6989
6990
69d27ff7 6991 eval "$ac_cv_use_finddlg"
8db37e06 6992 if test "$no_cache" != 1; then
69d27ff7 6993 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
6994 fi
6995
6996 if test "$wxUSE_FINDREPLDLG" = yes; then
6997 echo "$ac_t""yes" 1>&6
6998 else
6999 echo "$ac_t""no" 1>&6
7000 fi
7001
7002
1e6feb95 7003 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
1725144d 7004echo "configure:7005: checking for --enable-fontdlg" >&5
1e6feb95
VZ
7005 no_cache=0
7006 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7007if test "${enable_fontdlg+set}" = set; then
7008 enableval="$enable_fontdlg"
7009
7010 if test "$enableval" = yes; then
7011 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7012 else
7013 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7014 fi
7015
7016else
7017
7018 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7019 if test "x$LINE" != x ; then
7020 eval "DEFAULT_$LINE"
7021 else
7022 no_cache=1
7023 fi
7024
7025 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7026
7027fi
7028
7029
7030 eval "$ac_cv_use_fontdlg"
7031 if test "$no_cache" != 1; then
7032 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7033 fi
7034
7035 if test "$wxUSE_FONTDLG" = yes; then
7036 echo "$ac_t""yes" 1>&6
7037 else
7038 echo "$ac_t""no" 1>&6
7039 fi
7040
7041
7042 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
1725144d 7043echo "configure:7044: checking for --enable-dirdlg" >&5
1e6feb95
VZ
7044 no_cache=0
7045 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7046if test "${enable_dirdlg+set}" = set; then
7047 enableval="$enable_dirdlg"
7048
7049 if test "$enableval" = yes; then
7050 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7051 else
7052 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7053 fi
7054
7055else
7056
7057 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7058 if test "x$LINE" != x ; then
7059 eval "DEFAULT_$LINE"
7060 else
7061 no_cache=1
7062 fi
7063
7064 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7065
7066fi
7067
7068
7069 eval "$ac_cv_use_dirdlg"
10f2d63a 7070 if test "$no_cache" != 1; then
1e6feb95 7071 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7072 fi
7073
1e6feb95 7074 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 7075 echo "$ac_t""yes" 1>&6
10f2d63a 7076 else
698dcdb6 7077 echo "$ac_t""no" 1>&6
10f2d63a 7078 fi
698dcdb6
VZ
7079
7080
1e6feb95 7081 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
1725144d 7082echo "configure:7083: checking for --enable-msgdlg" >&5
10f2d63a 7083 no_cache=0
1e6feb95
VZ
7084 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7085if test "${enable_msgdlg+set}" = set; then
7086 enableval="$enable_msgdlg"
698dcdb6 7087
10f2d63a 7088 if test "$enableval" = yes; then
1e6feb95 7089 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7090 else
1e6feb95 7091 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7092 fi
698dcdb6 7093
10f2d63a 7094else
698dcdb6 7095
1e6feb95 7096 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7097 if test "x$LINE" != x ; then
7098 eval "DEFAULT_$LINE"
7099 else
7100 no_cache=1
7101 fi
7102
1e6feb95 7103 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
7104
7105fi
10f2d63a
VZ
7106
7107
1e6feb95 7108 eval "$ac_cv_use_msgdlg"
10f2d63a 7109 if test "$no_cache" != 1; then
1e6feb95 7110 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7111 fi
7112
1e6feb95 7113 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 7114 echo "$ac_t""yes" 1>&6
10f2d63a 7115 else
698dcdb6 7116 echo "$ac_t""no" 1>&6
10f2d63a 7117 fi
698dcdb6 7118
10f2d63a 7119
1e6feb95 7120 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
1725144d 7121echo "configure:7122: checking for --enable-numberdlg" >&5
10f2d63a 7122 no_cache=0
1e6feb95
VZ
7123 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7124if test "${enable_numberdlg+set}" = set; then
7125 enableval="$enable_numberdlg"
698dcdb6 7126
10f2d63a 7127 if test "$enableval" = yes; then
1e6feb95 7128 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7129 else
1e6feb95 7130 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7131 fi
698dcdb6 7132
10f2d63a 7133else
698dcdb6 7134
1e6feb95 7135 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7136 if test "x$LINE" != x ; then
7137 eval "DEFAULT_$LINE"
7138 else
7139 no_cache=1
7140 fi
7141
1e6feb95 7142 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
7143
7144fi
10f2d63a
VZ
7145
7146
1e6feb95 7147 eval "$ac_cv_use_numberdlg"
10f2d63a 7148 if test "$no_cache" != 1; then
1e6feb95 7149 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7150 fi
7151
1e6feb95 7152 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 7153 echo "$ac_t""yes" 1>&6
10f2d63a 7154 else
698dcdb6 7155 echo "$ac_t""no" 1>&6
10f2d63a 7156 fi
698dcdb6 7157
10f2d63a 7158
cbca9943 7159 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
1725144d 7160echo "configure:7161: checking for --enable-splash" >&5
cbca9943
VZ
7161 no_cache=0
7162 # Check whether --enable-splash or --disable-splash was given.
7163if test "${enable_splash+set}" = set; then
7164 enableval="$enable_splash"
7165
7166 if test "$enableval" = yes; then
7167 ac_cv_use_splash='wxUSE_SPLASH=yes'
7168 else
7169 ac_cv_use_splash='wxUSE_SPLASH=no'
7170 fi
7171
7172else
7173
7174 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7175 if test "x$LINE" != x ; then
7176 eval "DEFAULT_$LINE"
7177 else
7178 no_cache=1
7179 fi
7180
7181 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7182
7183fi
7184
7185
7186 eval "$ac_cv_use_splash"
7187 if test "$no_cache" != 1; then
7188 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7189 fi
7190
7191 if test "$wxUSE_SPLASH" = yes; then
7192 echo "$ac_t""yes" 1>&6
7193 else
7194 echo "$ac_t""no" 1>&6
7195 fi
7196
7197
698dcdb6 7198 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
1725144d 7199echo "configure:7200: checking for --enable-textdlg" >&5
10f2d63a
VZ
7200 no_cache=0
7201 # Check whether --enable-textdlg or --disable-textdlg was given.
7202if test "${enable_textdlg+set}" = set; then
7203 enableval="$enable_textdlg"
698dcdb6 7204
10f2d63a
VZ
7205 if test "$enableval" = yes; then
7206 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7207 else
7208 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7209 fi
698dcdb6 7210
10f2d63a 7211else
698dcdb6 7212
10f2d63a
VZ
7213 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7214 if test "x$LINE" != x ; then
7215 eval "DEFAULT_$LINE"
7216 else
7217 no_cache=1
7218 fi
7219
7220 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
7221
7222fi
10f2d63a
VZ
7223
7224
7225 eval "$ac_cv_use_textdlg"
7226 if test "$no_cache" != 1; then
7227 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7228 fi
7229
7230 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 7231 echo "$ac_t""yes" 1>&6
10f2d63a 7232 else
698dcdb6 7233 echo "$ac_t""no" 1>&6
10f2d63a 7234 fi
698dcdb6 7235
10f2d63a 7236
698dcdb6 7237 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
1725144d 7238echo "configure:7239: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7239 no_cache=0
7240 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7241if test "${enable_tipdlg+set}" = set; then
7242 enableval="$enable_tipdlg"
698dcdb6 7243
10f2d63a
VZ
7244 if test "$enableval" = yes; then
7245 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7246 else
7247 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7248 fi
698dcdb6 7249
10f2d63a 7250else
698dcdb6 7251
10f2d63a
VZ
7252 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7253 if test "x$LINE" != x ; then
7254 eval "DEFAULT_$LINE"
7255 else
7256 no_cache=1
7257 fi
7258
7259 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
7260
7261fi
10f2d63a
VZ
7262
7263
7264 eval "$ac_cv_use_tipdlg"
7265 if test "$no_cache" != 1; then
7266 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7267 fi
7268
7269 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 7270 echo "$ac_t""yes" 1>&6
10f2d63a 7271 else
698dcdb6 7272 echo "$ac_t""no" 1>&6
10f2d63a 7273 fi
698dcdb6 7274
10f2d63a 7275
698dcdb6 7276 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
1725144d 7277echo "configure:7278: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7278 no_cache=0
7279 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7280if test "${enable_progressdlg+set}" = set; then
7281 enableval="$enable_progressdlg"
698dcdb6 7282
10f2d63a
VZ
7283 if test "$enableval" = yes; then
7284 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7285 else
7286 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7287 fi
698dcdb6 7288
10f2d63a 7289else
698dcdb6 7290
10f2d63a
VZ
7291 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7292 if test "x$LINE" != x ; then
7293 eval "DEFAULT_$LINE"
7294 else
7295 no_cache=1
7296 fi
7297
7298 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7299
7300fi
10f2d63a
VZ
7301
7302
7303 eval "$ac_cv_use_progressdlg"
7304 if test "$no_cache" != 1; then
7305 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7306 fi
7307
7308 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7309 echo "$ac_t""yes" 1>&6
10f2d63a 7310 else
698dcdb6 7311 echo "$ac_t""no" 1>&6
10f2d63a 7312 fi
698dcdb6 7313
10f2d63a 7314
b1f5d087 7315 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
1725144d 7316echo "configure:7317: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7317 no_cache=0
7318 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7319if test "${enable_wizarddlg+set}" = set; then
7320 enableval="$enable_wizarddlg"
7321
7322 if test "$enableval" = yes; then
7323 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7324 else
7325 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7326 fi
7327
7328else
7329
7330 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7331 if test "x$LINE" != x ; then
7332 eval "DEFAULT_$LINE"
7333 else
7334 no_cache=1
7335 fi
7336
7337 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7338
7339fi
7340
7341
7342 eval "$ac_cv_use_wizarddlg"
7343 if test "$no_cache" != 1; then
7344 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7345 fi
7346
7347 if test "$wxUSE_WIZARDDLG" = yes; then
7348 echo "$ac_t""yes" 1>&6
7349 else
7350 echo "$ac_t""no" 1>&6
7351 fi
7352
7353
7354
7355
1e6feb95 7356 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
1725144d 7357echo "configure:7358: checking for --enable-menus" >&5
1e6feb95
VZ
7358 no_cache=0
7359 # Check whether --enable-menus or --disable-menus was given.
7360if test "${enable_menus+set}" = set; then
7361 enableval="$enable_menus"
7362
7363 if test "$enableval" = yes; then
7364 ac_cv_use_menus='wxUSE_MENUS=yes'
7365 else
7366 ac_cv_use_menus='wxUSE_MENUS=no'
7367 fi
7368
7369else
7370
7371 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7372 if test "x$LINE" != x ; then
7373 eval "DEFAULT_$LINE"
7374 else
7375 no_cache=1
7376 fi
7377
7378 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7379
7380fi
7381
7382
7383 eval "$ac_cv_use_menus"
7384 if test "$no_cache" != 1; then
7385 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7386 fi
7387
7388 if test "$wxUSE_MENUS" = yes; then
7389 echo "$ac_t""yes" 1>&6
7390 else
7391 echo "$ac_t""no" 1>&6
7392 fi
7393
7394
698dcdb6 7395 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
1725144d 7396echo "configure:7397: checking for --enable-miniframe" >&5
10f2d63a
VZ
7397 no_cache=0
7398 # Check whether --enable-miniframe or --disable-miniframe was given.
7399if test "${enable_miniframe+set}" = set; then
7400 enableval="$enable_miniframe"
698dcdb6 7401
10f2d63a
VZ
7402 if test "$enableval" = yes; then
7403 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7404 else
7405 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7406 fi
698dcdb6 7407
10f2d63a 7408else
698dcdb6 7409
10f2d63a
VZ
7410 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7411 if test "x$LINE" != x ; then
7412 eval "DEFAULT_$LINE"
7413 else
7414 no_cache=1
7415 fi
7416
7417 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7418
7419fi
10f2d63a
VZ
7420
7421
7422 eval "$ac_cv_use_miniframe"
7423 if test "$no_cache" != 1; then
7424 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7425 fi
7426
7427 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7428 echo "$ac_t""yes" 1>&6
10f2d63a 7429 else
698dcdb6 7430 echo "$ac_t""no" 1>&6
10f2d63a 7431 fi
698dcdb6 7432
10f2d63a 7433
698dcdb6 7434 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
1725144d 7435echo "configure:7436: checking for --enable-tooltips" >&5
10f2d63a
VZ
7436 no_cache=0
7437 # Check whether --enable-tooltips or --disable-tooltips was given.
7438if test "${enable_tooltips+set}" = set; then
7439 enableval="$enable_tooltips"
698dcdb6 7440
10f2d63a
VZ
7441 if test "$enableval" = yes; then
7442 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7443 else
7444 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7445 fi
698dcdb6 7446
10f2d63a 7447else
698dcdb6 7448
10f2d63a
VZ
7449 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7450 if test "x$LINE" != x ; then
7451 eval "DEFAULT_$LINE"
7452 else
7453 no_cache=1
7454 fi
7455
7456 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7457
7458fi
10f2d63a
VZ
7459
7460
7461 eval "$ac_cv_use_tooltips"
7462 if test "$no_cache" != 1; then
7463 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7464 fi
7465
7466 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7467 echo "$ac_t""yes" 1>&6
10f2d63a 7468 else
698dcdb6 7469 echo "$ac_t""no" 1>&6
10f2d63a 7470 fi
698dcdb6 7471
10f2d63a 7472
698dcdb6 7473 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
1725144d 7474echo "configure:7475: checking for --enable-splines" >&5
10f2d63a
VZ
7475 no_cache=0
7476 # Check whether --enable-splines or --disable-splines was given.
7477if test "${enable_splines+set}" = set; then
7478 enableval="$enable_splines"
698dcdb6 7479
10f2d63a
VZ
7480 if test "$enableval" = yes; then
7481 ac_cv_use_splines='wxUSE_SPLINES=yes'
7482 else
7483 ac_cv_use_splines='wxUSE_SPLINES=no'
7484 fi
698dcdb6 7485
10f2d63a 7486else
698dcdb6 7487
10f2d63a
VZ
7488 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7489 if test "x$LINE" != x ; then
7490 eval "DEFAULT_$LINE"
7491 else
7492 no_cache=1
7493 fi
7494
7495 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7496
7497fi
10f2d63a
VZ
7498
7499
7500 eval "$ac_cv_use_splines"
7501 if test "$no_cache" != 1; then
7502 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7503 fi
7504
7505 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7506 echo "$ac_t""yes" 1>&6
10f2d63a 7507 else
698dcdb6 7508 echo "$ac_t""no" 1>&6
10f2d63a 7509 fi
698dcdb6 7510
10f2d63a 7511
698dcdb6 7512 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
1725144d 7513echo "configure:7514: checking for --enable-validators" >&5
10f2d63a
VZ
7514 no_cache=0
7515 # Check whether --enable-validators or --disable-validators was given.
7516if test "${enable_validators+set}" = set; then
7517 enableval="$enable_validators"
698dcdb6 7518
10f2d63a
VZ
7519 if test "$enableval" = yes; then
7520 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7521 else
7522 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7523 fi
698dcdb6 7524
10f2d63a 7525else
698dcdb6 7526
10f2d63a
VZ
7527 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7528 if test "x$LINE" != x ; then
7529 eval "DEFAULT_$LINE"
7530 else
7531 no_cache=1
7532 fi
7533
7534 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7535
7536fi
10f2d63a
VZ
7537
7538
7539 eval "$ac_cv_use_validators"
7540 if test "$no_cache" != 1; then
7541 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7542 fi
7543
7544 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7545 echo "$ac_t""yes" 1>&6
10f2d63a 7546 else
698dcdb6 7547 echo "$ac_t""no" 1>&6
10f2d63a 7548 fi
698dcdb6 7549
10f2d63a 7550
698dcdb6 7551 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
1725144d 7552echo "configure:7553: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7553 no_cache=0
7554 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7555if test "${enable_busyinfo+set}" = set; then
7556 enableval="$enable_busyinfo"
698dcdb6 7557
10f2d63a
VZ
7558 if test "$enableval" = yes; then
7559 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7560 else
7561 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7562 fi
698dcdb6 7563
10f2d63a 7564else
698dcdb6 7565
10f2d63a
VZ
7566 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7567 if test "x$LINE" != x ; then
7568 eval "DEFAULT_$LINE"
7569 else
7570 no_cache=1
7571 fi
7572
7573 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
7574
7575fi
10f2d63a
VZ
7576
7577
7578 eval "$ac_cv_use_busyinfo"
7579 if test "$no_cache" != 1; then
7580 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7581 fi
7582
7583 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 7584 echo "$ac_t""yes" 1>&6
10f2d63a 7585 else
698dcdb6 7586 echo "$ac_t""no" 1>&6
10f2d63a 7587 fi
698dcdb6 7588
10f2d63a 7589
698dcdb6 7590 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
1725144d 7591echo "configure:7592: checking for --enable-joystick" >&5
f6bcfd97
BP
7592 no_cache=0
7593 # Check whether --enable-joystick or --disable-joystick was given.
7594if test "${enable_joystick+set}" = set; then
7595 enableval="$enable_joystick"
698dcdb6 7596
f6bcfd97
BP
7597 if test "$enableval" = yes; then
7598 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7599 else
7600 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7601 fi
698dcdb6 7602
f6bcfd97 7603else
698dcdb6 7604
f6bcfd97
BP
7605 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7606 if test "x$LINE" != x ; then
7607 eval "DEFAULT_$LINE"
7608 else
7609 no_cache=1
7610 fi
7611
7612 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
7613
7614fi
f6bcfd97
BP
7615
7616
7617 eval "$ac_cv_use_joystick"
7618 if test "$no_cache" != 1; then
7619 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7620 fi
7621
7622 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 7623 echo "$ac_t""yes" 1>&6
f6bcfd97 7624 else
698dcdb6 7625 echo "$ac_t""no" 1>&6
f6bcfd97 7626 fi
698dcdb6
VZ
7627
7628
1e6feb95 7629 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
1725144d 7630echo "configure:7631: checking for --enable-metafile" >&5
1e6feb95
VZ
7631 no_cache=0
7632 # Check whether --enable-metafile or --disable-metafile was given.
7633if test "${enable_metafile+set}" = set; then
7634 enableval="$enable_metafile"
7635
7636 if test "$enableval" = yes; then
7637 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7638 else
7639 ac_cv_use_metafile='wxUSE_METAFILE=no'
7640 fi
7641
7642else
7643
7644 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7645 if test "x$LINE" != x ; then
7646 eval "DEFAULT_$LINE"
7647 else
7648 no_cache=1
7649 fi
7650
7651 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7652
7653fi
7654
7655
7656 eval "$ac_cv_use_metafile"
7657 if test "$no_cache" != 1; then
7658 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7659 fi
7660
7661 if test "$wxUSE_METAFILE" = yes; then
7662 echo "$ac_t""yes" 1>&6
7663 else
7664 echo "$ac_t""no" 1>&6
7665 fi
7666
7667
24fd6d87 7668 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
1725144d 7669echo "configure:7670: checking for --enable-dragimage" >&5
24fd6d87
VZ
7670 no_cache=0
7671 # Check whether --enable-dragimage or --disable-dragimage was given.
7672if test "${enable_dragimage+set}" = set; then
7673 enableval="$enable_dragimage"
7674
7675 if test "$enableval" = yes; then
7676 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7677 else
7678 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7679 fi
7680
7681else
7682
7683 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7684 if test "x$LINE" != x ; then
7685 eval "DEFAULT_$LINE"
7686 else
7687 no_cache=1
7688 fi
7689
7690 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7691
7692fi
7693
7694
7695 eval "$ac_cv_use_dragimage"
7696 if test "$no_cache" != 1; then
7697 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7698 fi
7699
7700 if test "$wxUSE_DRAGIMAGE" = yes; then
7701 echo "$ac_t""yes" 1>&6
7702 else
7703 echo "$ac_t""no" 1>&6
7704 fi
7705
7706
10f2d63a 7707
698dcdb6 7708
edae8572 7709 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
1725144d 7710echo "configure:7711: checking for --enable-palette" >&5
edae8572
VZ
7711 no_cache=0
7712 # Check whether --enable-palette or --disable-palette was given.
7713if test "${enable_palette+set}" = set; then
7714 enableval="$enable_palette"
7715
7716 if test "$enableval" = yes; then
7717 ac_cv_use_palette='wxUSE_PALETTE=yes'
7718 else
7719 ac_cv_use_palette='wxUSE_PALETTE=no'
7720 fi
7721
7722else
7723
7724 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
7725 if test "x$LINE" != x ; then
7726 eval "DEFAULT_$LINE"
7727 else
7728 no_cache=1
7729 fi
7730
7731 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
7732
7733fi
7734
7735
7736 eval "$ac_cv_use_palette"
7737 if test "$no_cache" != 1; then
7738 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
7739 fi
7740
7741 if test "$wxUSE_PALETTE" = yes; then
7742 echo "$ac_t""yes" 1>&6
7743 else
7744 echo "$ac_t""no" 1>&6
7745 fi
7746
7747
698dcdb6 7748 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
1725144d 7749echo "configure:7750: checking for --enable-image" >&5
0046ff7c
VS
7750 no_cache=0
7751 # Check whether --enable-image or --disable-image was given.
7752if test "${enable_image+set}" = set; then
7753 enableval="$enable_image"
698dcdb6 7754
0046ff7c
VS
7755 if test "$enableval" = yes; then
7756 ac_cv_use_image='wxUSE_IMAGE=yes'
7757 else
7758 ac_cv_use_image='wxUSE_IMAGE=no'
7759 fi
698dcdb6 7760
0046ff7c 7761else
698dcdb6 7762
0046ff7c
VS
7763 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7764 if test "x$LINE" != x ; then
7765 eval "DEFAULT_$LINE"
7766 else
7767 no_cache=1
7768 fi
7769
7770 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
7771
7772fi
0046ff7c
VS
7773
7774
7775 eval "$ac_cv_use_image"
7776 if test "$no_cache" != 1; then
7777 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7778 fi
7779
7780 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 7781 echo "$ac_t""yes" 1>&6
0046ff7c 7782 else
698dcdb6 7783 echo "$ac_t""no" 1>&6
0046ff7c 7784 fi
698dcdb6 7785
0046ff7c 7786
698dcdb6 7787 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
1725144d 7788echo "configure:7789: checking for --enable-gif" >&5
10f2d63a
VZ
7789 no_cache=0
7790 # Check whether --enable-gif or --disable-gif was given.
7791if test "${enable_gif+set}" = set; then
7792 enableval="$enable_gif"
698dcdb6 7793
10f2d63a
VZ
7794 if test "$enableval" = yes; then
7795 ac_cv_use_gif='wxUSE_GIF=yes'
7796 else
7797 ac_cv_use_gif='wxUSE_GIF=no'
7798 fi
698dcdb6 7799
10f2d63a 7800else
698dcdb6 7801
10f2d63a
VZ
7802 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7803 if test "x$LINE" != x ; then
7804 eval "DEFAULT_$LINE"
7805 else
7806 no_cache=1
7807 fi
7808
7809 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
7810
7811fi
10f2d63a
VZ
7812
7813
7814 eval "$ac_cv_use_gif"
7815 if test "$no_cache" != 1; then
7816 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7817 fi
7818
7819 if test "$wxUSE_GIF" = yes; then
698dcdb6 7820 echo "$ac_t""yes" 1>&6
10f2d63a 7821 else
698dcdb6 7822 echo "$ac_t""no" 1>&6
10f2d63a 7823 fi
698dcdb6 7824
10f2d63a 7825
698dcdb6 7826 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
1725144d 7827echo "configure:7828: checking for --enable-pcx" >&5
10f2d63a
VZ
7828 no_cache=0
7829 # Check whether --enable-pcx or --disable-pcx was given.
7830if test "${enable_pcx+set}" = set; then
7831 enableval="$enable_pcx"
698dcdb6 7832
10f2d63a
VZ
7833 if test "$enableval" = yes; then
7834 ac_cv_use_pcx='wxUSE_PCX=yes'
7835 else
7836 ac_cv_use_pcx='wxUSE_PCX=no'
7837 fi
698dcdb6 7838
10f2d63a 7839else
698dcdb6 7840
10f2d63a
VZ
7841 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7842 if test "x$LINE" != x ; then
7843 eval "DEFAULT_$LINE"
7844 else
7845 no_cache=1
7846 fi
7847
7848 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
7849
7850fi
10f2d63a
VZ
7851
7852
7853 eval "$ac_cv_use_pcx"
7854 if test "$no_cache" != 1; then
7855 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7856 fi
7857
7858 if test "$wxUSE_PCX" = yes; then
698dcdb6 7859 echo "$ac_t""yes" 1>&6
10f2d63a 7860 else
698dcdb6 7861 echo "$ac_t""no" 1>&6
10f2d63a 7862 fi
698dcdb6 7863
10f2d63a 7864
698dcdb6 7865 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
1725144d 7866echo "configure:7867: checking for --enable-pnm" >&5
10f2d63a
VZ
7867 no_cache=0
7868 # Check whether --enable-pnm or --disable-pnm was given.
7869if test "${enable_pnm+set}" = set; then
7870 enableval="$enable_pnm"
698dcdb6 7871
10f2d63a
VZ
7872 if test "$enableval" = yes; then
7873 ac_cv_use_pnm='wxUSE_PNM=yes'
7874 else
7875 ac_cv_use_pnm='wxUSE_PNM=no'
7876 fi
698dcdb6 7877
10f2d63a 7878else
698dcdb6 7879
10f2d63a
VZ
7880 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7881 if test "x$LINE" != x ; then
7882 eval "DEFAULT_$LINE"
7883 else
7884 no_cache=1
7885 fi
7886
7887 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
7888
7889fi
10f2d63a
VZ
7890
7891
7892 eval "$ac_cv_use_pnm"
7893 if test "$no_cache" != 1; then
7894 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7895 fi
7896
7897 if test "$wxUSE_PNM" = yes; then
698dcdb6 7898 echo "$ac_t""yes" 1>&6
10f2d63a 7899 else
698dcdb6 7900 echo "$ac_t""no" 1>&6
10f2d63a 7901 fi
698dcdb6 7902
10f2d63a 7903
69d27ff7 7904 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
1725144d 7905echo "configure:7906: checking for --enable-xpm" >&5
0046ff7c 7906 no_cache=0
69d27ff7
MB
7907 # Check whether --enable-xpm or --disable-xpm was given.
7908if test "${enable_xpm+set}" = set; then
7909 enableval="$enable_xpm"
698dcdb6 7910
0046ff7c 7911 if test "$enableval" = yes; then
69d27ff7 7912 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 7913 else
69d27ff7 7914 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 7915 fi
698dcdb6 7916
0046ff7c 7917else
698dcdb6 7918
0046ff7c
VS
7919 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7920 if test "x$LINE" != x ; then
7921 eval "DEFAULT_$LINE"
7922 else
7923 no_cache=1
7924 fi
7925
69d27ff7 7926 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
7927
7928fi
0046ff7c
VS
7929
7930
69d27ff7 7931 eval "$ac_cv_use_xpm"
0046ff7c 7932 if test "$no_cache" != 1; then
69d27ff7 7933 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
7934 fi
7935
7936 if test "$wxUSE_XPM" = yes; then
698dcdb6 7937 echo "$ac_t""yes" 1>&6
0046ff7c 7938 else
698dcdb6 7939 echo "$ac_t""no" 1>&6
0046ff7c 7940 fi
698dcdb6 7941
0046ff7c 7942
b12915c1
VZ
7943fi
7944
698dcdb6 7945
10f2d63a
VZ
7946 echo "saving argument cache $wx_arg_cache_file"
7947 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 7948
10f2d63a 7949
698dcdb6
VZ
7950
7951echo $ac_n "checking for toolkit""... $ac_c" 1>&6
1725144d 7952echo "configure:7953: checking for toolkit" >&5
10f2d63a
VZ
7953
7954if test "$wxUSE_GUI" = "yes"; then
7955
3a922bb4
RL
7956 if test "$USE_BEOS" = 1; then
7957 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7958 fi
b12915c1 7959
3a922bb4
RL
7960 if test "$TOOLKIT_GIVEN" = 1; then
7961 for toolkit in `echo $ALL_TOOLKITS`; do
7962 var=wxUSE_$toolkit
7963 eval "value=\$${var}"
7964 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7965 done
10f2d63a 7966 else
3a922bb4
RL
7967 for toolkit in `echo $ALL_TOOLKITS`; do
7968 if test "$has_toolkit_in_cache" != 1; then
7969 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7970 else
7971 var=DEFAULT_wxUSE_$toolkit
7972 fi
7973 eval "wxUSE_$toolkit=\$${var}"
7974 done
10f2d63a 7975 fi
10f2d63a 7976
3a922bb4 7977 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
1725144d 7978 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0}`
10f2d63a 7979
3a922bb4 7980 case "${host}" in
6fa882bd 7981 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4
RL
7982 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7983 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7984 LEX_STEM="lexyy"
7985 ;;
7986 *)
7987 PATH_IFS=':'
7988 LEX_STEM="lex.yy"
7989 ;;
7990 esac
10f2d63a 7991
3a922bb4
RL
7992 case "$NUM_TOOLKITS" in
7993 1)
7994 ;;
7995 0)
7996 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7997 ;;
7998 *)
7999 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8000 esac
10f2d63a 8001
3a922bb4
RL
8002 for toolkit in `echo $ALL_TOOLKITS`; do
8003 var=wxUSE_$toolkit
8004 eval "value=\$${var}"
8005 if test "x$value" != x; then
8006 cache_var=CACHE_$toolkit
8007 eval "cache=\$${cache_var}"
8008 if test "$cache" = 1; then
8009 echo "$var=$value" >> ${wx_arg_cache_file}
8010 fi
8011 if test "$value" = 1; then
8012 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8013 echo "$ac_t""$toolkit_echo" 1>&6
8014 fi
8015 fi
8016 done
10f2d63a 8017else
cf27ef00 8018 PATH_IFS=':'
3a922bb4 8019 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8020fi
8021
698dcdb6
VZ
8022
8023cat > confcache <<\EOF
10f2d63a
VZ
8024# This file is a shell script that caches the results of configure
8025# tests run on this system so they can be shared between configure
698dcdb6
VZ
8026# scripts and configure runs. It is not useful on other systems.
8027# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8028#
698dcdb6
VZ
8029# By default, configure uses ./config.cache as the cache file,
8030# creating it if it does not exist already. You can give configure
8031# the --cache-file=FILE option to use a different cache file; that is
8032# what configure does when it calls configure scripts in
8033# subdirectories, so they share the cache.
8034# Giving --cache-file=/dev/null disables caching, for debugging configure.
8035# config.status only pays attention to the cache file if you give it the
8036# --recheck option to rerun configure.
10f2d63a 8037#
698dcdb6 8038EOF
10f2d63a
VZ
8039# The following way of writing the cache mishandles newlines in values,
8040# but we know of no workaround that is simple, portable, and efficient.
8041# So, don't put newlines in cache variables' values.
8042# Ultrix sh set writes to stderr and can't be redirected directly,
8043# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8044(set) 2>&1 |
8045 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8046 *ac_space=\ *)
8047 # `set' does not quote correctly, so add quotes (double-quote substitution
8048 # turns \\\\ into \\, and sed turns \\ into \).
8049 sed -n \
8050 -e "s/'/'\\\\''/g" \
8051 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8052 ;;
8053 *)
8054 # `set' quotes correctly as required by POSIX, so do not add quotes.
8055 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8056 ;;
8057 esac >> confcache
8058if cmp -s $cache_file confcache; then
8059 :
8060else
10f2d63a 8061 if test -w $cache_file; then
698dcdb6
VZ
8062 echo "updating cache $cache_file"
8063 cat confcache > $cache_file
10f2d63a
VZ
8064 else
8065 echo "not updating unwritable cache $cache_file"
8066 fi
8067fi
8068rm -f confcache
8069
698dcdb6 8070
e59890c3 8071if test "$build" != "$host" ; then
f9bc1684 8072 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then
3a922bb4
RL
8073 CC=$host_alias-gcc
8074 CXX=$host_alias-c++
8075 AR=$host_alias-ar
8076 RANLIB=$host_alias-ranlib
8077 DLLTOOL=$host_alias-dlltool
8078 RESCOMP=$host_alias-windres
8079 LD=$host_alias-ld
8080 NM=$host_alias-nm
8081 STRIP=$host_alias-strip
8082 else
8083 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8084 fi
10f2d63a
VZ
8085fi
8086
698dcdb6 8087# Extract the first word of "gcc", so it can be a program name with args.
1e487827 8088set dummy gcc; ac_word=$2
698dcdb6 8089echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1725144d 8090echo "configure:8091: checking for $ac_word" >&5
698dcdb6
VZ
8091if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8092 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8093else
8094 if test -n "$CC"; then
8095 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8096else
698dcdb6
VZ
8097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8098 ac_dummy="$PATH"
8099 for ac_dir in $ac_dummy; do
8100 test -z "$ac_dir" && ac_dir=.
8101 if test -f $ac_dir/$ac_word; then
8102 ac_cv_prog_CC="gcc"
8103 break
8104 fi
8105 done
8106 IFS="$ac_save_ifs"
10f2d63a 8107fi
6232543b 8108fi
698dcdb6 8109CC="$ac_cv_prog_CC"
6232543b 8110if test -n "$CC"; then
698dcdb6 8111 echo "$ac_t""$CC" 1>&6
1e487827 8112else
698dcdb6 8113 echo "$ac_t""no" 1>&6
1e487827 8114fi
6232543b 8115
1e487827
VS
8116if test -z "$CC"; then
8117 # Extract the first word of "cc", so it can be a program name with args.
8118set dummy cc; ac_word=$2
698dcdb6 8119echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1725144d 8120echo "configure:8121: checking for $ac_word" >&5
698dcdb6
VZ
8121if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8122 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8123else
8124 if test -n "$CC"; then
8125 ac_cv_prog_CC="$CC" # Let the user override the test.
8126else
698dcdb6 8127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 8128 ac_prog_rejected=no
698dcdb6
VZ
8129 ac_dummy="$PATH"
8130 for ac_dir in $ac_dummy; do
8131 test -z "$ac_dir" && ac_dir=.
8132 if test -f $ac_dir/$ac_word; then
8133 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8134 ac_prog_rejected=yes
8135 continue
8136 fi
8137 ac_cv_prog_CC="cc"
8138 break
8139 fi
8140 done
8141 IFS="$ac_save_ifs"
1e487827
VS
8142if test $ac_prog_rejected = yes; then
8143 # We found a bogon in the path, so make sure we never use it.
8144 set dummy $ac_cv_prog_CC
8145 shift
698dcdb6 8146 if test $# -gt 0; then
1e487827
VS
8147 # We chose a different compiler from the bogus one.
8148 # However, it has the same basename, so the bogon will be chosen
8149 # first if we set CC to just the basename; use the full file name.
8150 shift
698dcdb6 8151 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
8152 shift
8153 ac_cv_prog_CC="$@"
703e0a69 8154 fi
1e487827
VS
8155fi
8156fi
8157fi
698dcdb6 8158CC="$ac_cv_prog_CC"
1e487827 8159if test -n "$CC"; then
698dcdb6 8160 echo "$ac_t""$CC" 1>&6
703e0a69 8161else
698dcdb6 8162 echo "$ac_t""no" 1>&6
703e0a69 8163fi
1e487827 8164
698dcdb6
VZ
8165 if test -z "$CC"; then
8166 case "`uname -s`" in
8167 *win32* | *WIN32*)
8168 # Extract the first word of "cl", so it can be a program name with args.
8169set dummy cl; ac_word=$2
8170echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1725144d 8171echo "configure:8172: checking for $ac_word" >&5
698dcdb6
VZ
8172if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8173 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8174else
8175 if test -n "$CC"; then
8176 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 8177else
698dcdb6
VZ
8178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8179 ac_dummy="$PATH"
8180 for ac_dir in $ac_dummy; do
8181 test -z "$ac_dir" && ac_dir=.
8182 if test -f $ac_dir/$ac_word; then
8183 ac_cv_prog_CC="cl"
8184 break
8185 fi
8186 done
8187 IFS="$ac_save_ifs"
703e0a69 8188fi
1e487827 8189fi
698dcdb6 8190CC="$ac_cv_prog_CC"
1e487827 8191if test -n "$CC"; then
698dcdb6 8192 echo "$ac_t""$CC" 1>&6
1e487827 8193else
698dcdb6 8194 echo "$ac_t""no" 1>&6
1e487827 8195fi
698dcdb6
VZ
8196 ;;
8197 esac
8198 fi
8199 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
8200fi
8201
698dcdb6 8202echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1725144d 8203echo "configure:8204: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 8204
698dcdb6
VZ
8205ac_ext=c
8206# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8207ac_cpp='$CPP $CPPFLAGS'
8208ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8209ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8210cross_compiling=$ac_cv_prog_cc_cross
6232543b 8211
698dcdb6 8212cat > conftest.$ac_ext << EOF
1e487827 8213
1725144d 8214#line 8215 "configure"
1e487827
VS
8215#include "confdefs.h"
8216
698dcdb6
VZ
8217main(){return(0);}
8218EOF
1725144d 8219if { (eval echo configure:8220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8220 ac_cv_prog_cc_works=yes
8221 # If we can't run a trivial program, we are probably using a cross compiler.
8222 if (./conftest; exit) 2>/dev/null; then
8223 ac_cv_prog_cc_cross=no
8224 else
8225 ac_cv_prog_cc_cross=yes
8226 fi
8227else
8228 echo "configure: failed program was:" >&5
8229 cat conftest.$ac_ext >&5
8230 ac_cv_prog_cc_works=no
8231fi
8232rm -fr conftest*
8233ac_ext=c
8234# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8235ac_cpp='$CPP $CPPFLAGS'
8236ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8237ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8238cross_compiling=$ac_cv_prog_cc_cross
8239
8240echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8241if test $ac_cv_prog_cc_works = no; then
8242 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8243fi
8244echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1725144d 8245echo "configure:8246: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8246echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8247cross_compiling=$ac_cv_prog_cc_cross
8248
8249echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1725144d 8250echo "configure:8251: checking whether we are using GNU C" >&5
698dcdb6
VZ
8251if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8252 echo $ac_n "(cached) $ac_c" 1>&6
8253else
8254 cat > conftest.c <<EOF
8255#ifdef __GNUC__
8256 yes;
1e487827 8257#endif
698dcdb6 8258EOF
1725144d 8259if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8260 ac_cv_prog_gcc=yes
8261else
8262 ac_cv_prog_gcc=no
8263fi
8264fi
1e487827 8265
698dcdb6 8266echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 8267
698dcdb6
VZ
8268if test $ac_cv_prog_gcc = yes; then
8269 GCC=yes
8270else
8271 GCC=
8272fi
1e487827 8273
698dcdb6
VZ
8274ac_test_CFLAGS="${CFLAGS+set}"
8275ac_save_CFLAGS="$CFLAGS"
8276CFLAGS=
8277echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1725144d 8278echo "configure:8279: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
8279if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8280 echo $ac_n "(cached) $ac_c" 1>&6
8281else
8282 echo 'void f(){}' > conftest.c
8283if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8284 ac_cv_prog_cc_g=yes
8285else
698dcdb6 8286 ac_cv_prog_cc_g=no
10f2d63a 8287fi
698dcdb6
VZ
8288rm -f conftest*
8289
10f2d63a 8290fi
698dcdb6
VZ
8291
8292echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 8293if test "$ac_test_CFLAGS" = set; then
698dcdb6 8294 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
8295elif test $ac_cv_prog_cc_g = yes; then
8296 if test "$GCC" = yes; then
8297 CFLAGS="-g -O2"
8298 else
8299 CFLAGS="-g"
8300 fi
8301else
8302 if test "$GCC" = yes; then
8303 CFLAGS="-O2"
8304 else
8305 CFLAGS=
8306 fi
8307fi
8308
8309
8310CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8311
698dcdb6 8312echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1725144d 8313echo "configure:8314: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8314# On Suns, sometimes $CPP names a directory.
8315if test -n "$CPP" && test -d "$CPP"; then
8316 CPP=
8317fi
8318if test -z "$CPP"; then
698dcdb6
VZ
8319if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8320 echo $ac_n "(cached) $ac_c" 1>&6
8321else
8322 # This must be in double quotes, not single quotes, because CPP may get
8323 # substituted into the Makefile and "${CC-cc}" will confuse make.
8324 CPP="${CC-cc} -E"
10f2d63a 8325 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8326 # not just through cpp.
8327 cat > conftest.$ac_ext <<EOF
1725144d 8328#line 8329 "configure"
10f2d63a
VZ
8329#include "confdefs.h"
8330#include <assert.h>
698dcdb6
VZ
8331Syntax Error
8332EOF
8333ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 8334{ (eval echo configure:8335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8335ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8336if test -z "$ac_err"; then
10f2d63a
VZ
8337 :
8338else
698dcdb6
VZ
8339 echo "$ac_err" >&5
8340 echo "configure: failed program was:" >&5
10f2d63a 8341 cat conftest.$ac_ext >&5
698dcdb6
VZ
8342 rm -rf conftest*
8343 CPP="${CC-cc} -E -traditional-cpp"
8344 cat > conftest.$ac_ext <<EOF
1725144d 8345#line 8346 "configure"
10f2d63a 8346#include "confdefs.h"
698dcdb6
VZ
8347#include <assert.h>
8348Syntax Error
8349EOF
8350ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 8351{ (eval echo configure:8352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8352ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8353if test -z "$ac_err"; then
8354 :
10f2d63a 8355else
698dcdb6
VZ
8356 echo "$ac_err" >&5
8357 echo "configure: failed program was:" >&5
10f2d63a 8358 cat conftest.$ac_ext >&5
698dcdb6
VZ
8359 rm -rf conftest*
8360 CPP="${CC-cc} -nologo -E"
8361 cat > conftest.$ac_ext <<EOF
1725144d 8362#line 8363 "configure"
10f2d63a
VZ
8363#include "confdefs.h"
8364#include <assert.h>
698dcdb6
VZ
8365Syntax Error
8366EOF
8367ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 8368{ (eval echo configure:8369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8369ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8370if test -z "$ac_err"; then
10f2d63a
VZ
8371 :
8372else
698dcdb6
VZ
8373 echo "$ac_err" >&5
8374 echo "configure: failed program was:" >&5
10f2d63a 8375 cat conftest.$ac_ext >&5
698dcdb6
VZ
8376 rm -rf conftest*
8377 CPP=/lib/cpp
10f2d63a 8378fi
698dcdb6 8379rm -f conftest*
10f2d63a 8380fi
698dcdb6 8381rm -f conftest*
703e0a69 8382fi
698dcdb6
VZ
8383rm -f conftest*
8384 ac_cv_prog_CPP="$CPP"
8385fi
8386 CPP="$ac_cv_prog_CPP"
10f2d63a 8387else
698dcdb6 8388 ac_cv_prog_CPP="$CPP"
10f2d63a 8389fi
698dcdb6 8390echo "$ac_t""$CPP" 1>&6
10f2d63a 8391
698dcdb6
VZ
8392if test $ac_cv_prog_gcc = yes; then
8393 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1725144d 8394echo "configure:8395: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8395if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8396 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8397else
8398 ac_pattern="Autoconf.*'x'"
698dcdb6 8399 cat > conftest.$ac_ext <<EOF
1725144d 8400#line 8401 "configure"
10f2d63a
VZ
8401#include "confdefs.h"
8402#include <sgtty.h>
8403Autoconf TIOCGETP
698dcdb6 8404EOF
10f2d63a
VZ
8405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8406 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8407 rm -rf conftest*
10f2d63a
VZ
8408 ac_cv_prog_gcc_traditional=yes
8409else
698dcdb6 8410 rm -rf conftest*
10f2d63a
VZ
8411 ac_cv_prog_gcc_traditional=no
8412fi
8413rm -f conftest*
8414
698dcdb6 8415
10f2d63a 8416 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8417 cat > conftest.$ac_ext <<EOF
1725144d 8418#line 8419 "configure"
10f2d63a
VZ
8419#include "confdefs.h"
8420#include <termio.h>
8421Autoconf TCGETA
698dcdb6 8422EOF
10f2d63a
VZ
8423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8424 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8425 rm -rf conftest*
10f2d63a
VZ
8426 ac_cv_prog_gcc_traditional=yes
8427fi
8428rm -f conftest*
8429
8430 fi
8431fi
698dcdb6
VZ
8432
8433echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8434 if test $ac_cv_prog_gcc_traditional = yes; then
8435 CC="$CC -traditional"
8436 fi
8437fi
8438
703e0a69 8439
698dcdb6
VZ
8440
8441ac_ext=C
8442# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8443ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8444ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8445ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8446cross_compiling=$ac_cv_prog_cxx_cross
8447
8448
8449for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8450do
8451# Extract the first word of "$ac_prog", so it can be a program name with args.
8452set dummy $ac_prog; ac_word=$2
8453echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1725144d 8454echo "configure:8455: checking for $ac_word" >&5
698dcdb6
VZ
8455if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8456 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8457else
8458 if test -n "$CXX"; then
8459 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8460else
698dcdb6
VZ
8461 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8462 ac_dummy="$PATH"
8463 for ac_dir in $ac_dummy; do
8464 test -z "$ac_dir" && ac_dir=.
8465 if test -f $ac_dir/$ac_word; then
8466 ac_cv_prog_CXX="$ac_prog"
8467 break
8468 fi
8469 done
8470 IFS="$ac_save_ifs"
10f2d63a
VZ
8471fi
8472fi
698dcdb6 8473CXX="$ac_cv_prog_CXX"
10f2d63a 8474if test -n "$CXX"; then
698dcdb6 8475 echo "$ac_t""$CXX" 1>&6
10f2d63a 8476else
698dcdb6 8477 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8478fi
8479
698dcdb6 8480test -n "$CXX" && break
10f2d63a 8481done
698dcdb6 8482test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
8483
8484
698dcdb6 8485echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1725144d 8486echo "configure:8487: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 8487
698dcdb6
VZ
8488ac_ext=C
8489# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8490ac_cpp='$CXXCPP $CPPFLAGS'
8491ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8492ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8493cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 8494
698dcdb6
VZ
8495cat > conftest.$ac_ext << EOF
8496
1725144d 8497#line 8498 "configure"
10f2d63a
VZ
8498#include "confdefs.h"
8499
698dcdb6
VZ
8500int main(){return(0);}
8501EOF
1725144d 8502if { (eval echo configure:8503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8503 ac_cv_prog_cxx_works=yes
8504 # If we can't run a trivial program, we are probably using a cross compiler.
8505 if (./conftest; exit) 2>/dev/null; then
8506 ac_cv_prog_cxx_cross=no
8507 else
8508 ac_cv_prog_cxx_cross=yes
8509 fi
8510else
8511 echo "configure: failed program was:" >&5
8512 cat conftest.$ac_ext >&5
8513 ac_cv_prog_cxx_works=no
8514fi
8515rm -fr conftest*
8516ac_ext=C
8517# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8518ac_cpp='$CXXCPP $CPPFLAGS'
8519ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8520ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8521cross_compiling=$ac_cv_prog_cxx_cross
8522
8523echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8524if test $ac_cv_prog_cxx_works = no; then
8525 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8526fi
8527echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1725144d 8528echo "configure:8529: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8529echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8530cross_compiling=$ac_cv_prog_cxx_cross
8531
8532echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1725144d 8533echo "configure:8534: checking whether we are using GNU C++" >&5
698dcdb6
VZ
8534if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8535 echo $ac_n "(cached) $ac_c" 1>&6
8536else
8537 cat > conftest.C <<EOF
8538#ifdef __GNUC__
8539 yes;
10f2d63a 8540#endif
698dcdb6 8541EOF
1725144d 8542if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8543 ac_cv_prog_gxx=yes
8544else
8545 ac_cv_prog_gxx=no
8546fi
8547fi
10f2d63a 8548
698dcdb6 8549echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 8550
698dcdb6
VZ
8551if test $ac_cv_prog_gxx = yes; then
8552 GXX=yes
8553else
8554 GXX=
8555fi
10f2d63a 8556
698dcdb6
VZ
8557ac_test_CXXFLAGS="${CXXFLAGS+set}"
8558ac_save_CXXFLAGS="$CXXFLAGS"
8559CXXFLAGS=
8560echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1725144d 8561echo "configure:8562: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
8562if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8563 echo $ac_n "(cached) $ac_c" 1>&6
8564else
8565 echo 'void f(){}' > conftest.cc
8566if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
8567 ac_cv_prog_cxx_g=yes
8568else
698dcdb6 8569 ac_cv_prog_cxx_g=no
10f2d63a 8570fi
698dcdb6
VZ
8571rm -f conftest*
8572
10f2d63a 8573fi
698dcdb6
VZ
8574
8575echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 8576if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 8577 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
8578elif test $ac_cv_prog_cxx_g = yes; then
8579 if test "$GXX" = yes; then
8580 CXXFLAGS="-g -O2"
8581 else
8582 CXXFLAGS="-g"
8583 fi
8584else
8585 if test "$GXX" = yes; then
8586 CXXFLAGS="-O2"
8587 else
8588 CXXFLAGS=
8589 fi
8590fi
8591
8592
10f2d63a
VZ
8593CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8594
8595ac_ext=c
698dcdb6 8596# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 8597ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
8598ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8599ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8600cross_compiling=$ac_cv_prog_cc_cross
8601
8602
8603# Extract the first word of "ranlib", so it can be a program name with args.
8604set dummy ranlib; ac_word=$2
8605echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1725144d 8606echo "configure:8607: checking for $ac_word" >&5
698dcdb6
VZ
8607if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8608 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8609else
8610 if test -n "$RANLIB"; then
8611 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8612else
698dcdb6
VZ
8613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8614 ac_dummy="$PATH"
8615 for ac_dir in $ac_dummy; do
8616 test -z "$ac_dir" && ac_dir=.
8617 if test -f $ac_dir/$ac_word; then
8618 ac_cv_prog_RANLIB="ranlib"
8619 break
8620 fi
8621 done
8622 IFS="$ac_save_ifs"
8623 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
8624fi
8625fi
698dcdb6 8626RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 8627if test -n "$RANLIB"; then
698dcdb6 8628 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 8629else
698dcdb6 8630 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8631fi
8632
8633
8634# Extract the first word of "ar", so it can be a program name with args.
8635set dummy ar; ac_word=$2
698dcdb6 8636echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1725144d 8637echo "configure:8638: checking for $ac_word" >&5
698dcdb6
VZ
8638if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8639 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8640else
8641 if test -n "$AR"; then
8642 ac_cv_prog_AR="$AR" # Let the user override the test.
8643else
698dcdb6
VZ
8644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8645 ac_dummy="$PATH"
8646 for ac_dir in $ac_dummy; do
8647 test -z "$ac_dir" && ac_dir=.
8648 if test -f $ac_dir/$ac_word; then
8649 ac_cv_prog_AR="ar"
8650 break
8651 fi
8652 done
8653 IFS="$ac_save_ifs"
10f2d63a
VZ
8654 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8655fi
8656fi
698dcdb6 8657AR="$ac_cv_prog_AR"
10f2d63a 8658if test -n "$AR"; then
698dcdb6 8659 echo "$ac_t""$AR" 1>&6
10f2d63a 8660else
698dcdb6 8661 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8662fi
8663
698dcdb6 8664
6054113a 8665# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
8666# so one script is as good as another. But avoid the broken or
8667# incompatible versions:
8668# SysV /etc/install, /usr/sbin/install
8669# SunOS /usr/etc/install
8670# IRIX /sbin/install
8671# AIX /bin/install
8672# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8673# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8674# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8675# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 8676echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1725144d 8677echo "configure:8678: checking for a BSD compatible install" >&5
10f2d63a 8678if test -z "$INSTALL"; then
698dcdb6
VZ
8679if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8680 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8681else
698dcdb6 8682 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
8683 for ac_dir in $PATH; do
8684 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
8685 case "$ac_dir/" in
8686 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
8687 *)
8688 # OSF1 and SCO ODT 3.0 have their own names for install.
8689 # Don't use installbsd from OSF since it installs stuff as root
8690 # by default.
8691 for ac_prog in ginstall scoinst install; do
698dcdb6 8692 if test -f $ac_dir/$ac_prog; then
10f2d63a 8693 if test $ac_prog = install &&
698dcdb6 8694 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
8695 # AIX install. It has an incompatible calling convention.
8696 :
8697 else
8698 ac_cv_path_install="$ac_dir/$ac_prog -c"
8699 break 2
8700 fi
8701 fi
8702 done
8703 ;;
8704 esac
8705 done
698dcdb6 8706 IFS="$ac_save_IFS"
10f2d63a
VZ
8707
8708fi
8709 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 8710 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
8711 else
8712 # As a last resort, use the slow shell script. We don't cache a
8713 # path for INSTALL within a source directory, because that will
8714 # break other packages using the cache if that directory is
8715 # removed, or if the path is relative.
698dcdb6 8716 INSTALL="$ac_install_sh"
10f2d63a
VZ
8717 fi
8718fi
698dcdb6 8719echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
8720
8721# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8722# It thinks the first close brace ends the variable substitution.
8723test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8724
698dcdb6 8725test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
8726
8727test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8728
6054113a
GD
8729case "${host}" in
8730
b5853384 8731 powerpc-*-darwin* )
eb99ae0b
GD
8732 INSTALL_PROGRAM="cp -fp"
8733 INSTALL_DATA="cp -fp"
6054113a
GD
8734 ;;
8735 *)
8736 ;;
d6853540 8737esac
698dcdb6 8738
10f2d63a
VZ
8739# Extract the first word of "strip", so it can be a program name with args.
8740set dummy strip; ac_word=$2
698dcdb6 8741echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1725144d 8742echo "configure:8743: checking for $ac_word" >&5
698dcdb6
VZ
8743if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8744 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8745else
8746 if test -n "$STRIP"; then
8747 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8748else
698dcdb6
VZ
8749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8750 ac_dummy="$PATH"
8751 for ac_dir in $ac_dummy; do
8752 test -z "$ac_dir" && ac_dir=.
8753 if test -f $ac_dir/$ac_word; then
8754 ac_cv_prog_STRIP="strip"
8755 break
8756 fi
8757 done
8758 IFS="$ac_save_ifs"
10f2d63a
VZ
8759 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8760fi
8761fi
698dcdb6 8762STRIP="$ac_cv_prog_STRIP"
10f2d63a 8763if test -n "$STRIP"; then
698dcdb6 8764 echo "$ac_t""$STRIP" 1>&6
10f2d63a 8765else
698dcdb6 8766 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8767fi
8768
698dcdb6
VZ
8769
8770echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
1725144d 8771echo "configure:8772: checking make for VPATH support" >&5
10f2d63a
VZ
8772cat - << EOF > confMake
8773check : file
8774 cp \$? \$@
8775 cp \$? final_file
8776EOF
8777
8778if test ! -d sub ; then
8779 mkdir sub
8780fi
8781echo dummy > sub/file
f6bcfd97 8782${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
8783RESULT=$?
8784rm -f sub/file check final_file confMake
8785rmdir sub
8786if test "$RESULT" = 0; then
698dcdb6 8787 echo "$ac_t""yes" 1>&6
10f2d63a 8788else
698dcdb6
VZ
8789 echo "$ac_t""no" 1>&6
8790 { echo "configure: error:
1e487827
VS
8791You need a make-utility that is able to use the variable
8792VPATH correctly.
8793If your version of make does not support VPATH correctly,
8794please install GNU-make (possibly as gmake), and start
8795configure with the following command:
8796export MAKE=gmake; ./configure for sh-type shells
8797setenv MAKE gmake; ./configure for csh-type shells
8798Also please do remember to use gmake in this case every time
8799you are trying to compile.
698dcdb6 8800" 1>&2; exit 1; }
10f2d63a
VZ
8801fi
8802
8803for ac_prog in 'bison -y' byacc
8804do
698dcdb6 8805# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 8806set dummy $ac_prog; ac_word=$2
698dcdb6 8807echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1725144d 8808echo "configure:8809: checking for $ac_word" >&5
698dcdb6
VZ
8809if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8810 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8811else
8812 if test -n "$YACC"; then
8813 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8814else
698dcdb6
VZ
8815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8816 ac_dummy="$PATH"
8817 for ac_dir in $ac_dummy; do
8818 test -z "$ac_dir" && ac_dir=.
8819 if test -f $ac_dir/$ac_word; then
8820 ac_cv_prog_YACC="$ac_prog"
8821 break
8822 fi
8823 done
8824 IFS="$ac_save_ifs"
10f2d63a
VZ
8825fi
8826fi
698dcdb6 8827YACC="$ac_cv_prog_YACC"
10f2d63a 8828if test -n "$YACC"; then
698dcdb6 8829 echo "$ac_t""$YACC" 1>&6
10f2d63a 8830else
698dcdb6 8831 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8832fi
8833
698dcdb6 8834test -n "$YACC" && break
10f2d63a
VZ
8835done
8836test -n "$YACC" || YACC="yacc"
8837
698dcdb6
VZ
8838
8839# Extract the first word of "flex", so it can be a program name with args.
8840set dummy flex; ac_word=$2
8841echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1725144d 8842echo "configure:8843: checking for $ac_word" >&5
698dcdb6
VZ
8843if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8844 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8845else
8846 if test -n "$LEX"; then
8847 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8848else
698dcdb6
VZ
8849 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8850 ac_dummy="$PATH"
8851 for ac_dir in $ac_dummy; do
8852 test -z "$ac_dir" && ac_dir=.
8853 if test -f $ac_dir/$ac_word; then
8854 ac_cv_prog_LEX="flex"
8855 break
8856 fi
8857 done
8858 IFS="$ac_save_ifs"
8859 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
8860fi
8861fi
698dcdb6 8862LEX="$ac_cv_prog_LEX"
10f2d63a 8863if test -n "$LEX"; then
698dcdb6 8864 echo "$ac_t""$LEX" 1>&6
10f2d63a 8865else
698dcdb6 8866 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8867fi
8868
8869if test -z "$LEXLIB"
8870then
698dcdb6
VZ
8871 case "$LEX" in
8872 flex*) ac_lib=fl ;;
8873 *) ac_lib=l ;;
8874 esac
8875 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1725144d 8876echo "configure:8877: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
8877ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8878if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8879 echo $ac_n "(cached) $ac_c" 1>&6
8880else
8881 ac_save_LIBS="$LIBS"
8882LIBS="-l$ac_lib $LIBS"
8883cat > conftest.$ac_ext <<EOF
1725144d 8884#line 8885 "configure"
10f2d63a
VZ
8885#include "confdefs.h"
8886/* Override any gcc2 internal prototype to avoid an error. */
8887/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
8888 builtin and then its argument prototype would still apply. */
8889char yywrap();
10f2d63a 8890
698dcdb6
VZ
8891int main() {
8892yywrap()
8893; return 0; }
8894EOF
1725144d 8895if { (eval echo configure:8896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8896 rm -rf conftest*
8897 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 8898else
698dcdb6
VZ
8899 echo "configure: failed program was:" >&5
8900 cat conftest.$ac_ext >&5
8901 rm -rf conftest*
8902 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 8903fi
698dcdb6
VZ
8904rm -f conftest*
8905LIBS="$ac_save_LIBS"
8906
10f2d63a 8907fi
698dcdb6
VZ
8908if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8909 echo "$ac_t""yes" 1>&6
8910 LEXLIB="-l$ac_lib"
8911else
8912 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8913fi
8914
8915fi
8916
8917
698dcdb6 8918echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1725144d 8919echo "configure:8920: checking whether ln -s works" >&5
698dcdb6
VZ
8920if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8921 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8922else
698dcdb6
VZ
8923 rm -f conftestdata
8924if ln -s X conftestdata 2>/dev/null
8925then
8926 rm -f conftestdata
8927 ac_cv_prog_LN_S="ln -s"
10f2d63a 8928else
698dcdb6 8929 ac_cv_prog_LN_S=ln
10f2d63a
VZ
8930fi
8931fi
698dcdb6
VZ
8932LN_S="$ac_cv_prog_LN_S"
8933if test "$ac_cv_prog_LN_S" = "ln -s"; then
8934 echo "$ac_t""yes" 1>&6
10f2d63a 8935else
698dcdb6 8936 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8937fi
8938
8939
8940
8941SEARCH_INCLUDE="\
8942 /usr/local/include \
8943 \
8944 /usr/Motif-1.2/include \
8945 /usr/Motif-2.1/include \
8946 \
8947 /usr/include/Motif1.2 \
8948 /opt/xpm/include/X11 \
8949 /opt/GBxpm/include/ \
8950 /opt/GBxpm/X11/include/ \
8951 \
8952 /usr/Motif1.2/include \
8953 /usr/dt/include \
afc31813
VZ
8954 /usr/openwin/include \
8955 \
10f2d63a
VZ
8956 /usr/include/Xm \
8957 \
8958 /usr/X11R6/include \
afc31813 8959 /usr/X11R6.4/include \
10f2d63a
VZ
8960 /usr/X11R5/include \
8961 /usr/X11R4/include \
8962 \
10f2d63a
VZ
8963 /usr/include/X11R6 \
8964 /usr/include/X11R5 \
8965 /usr/include/X11R4 \
8966 \
8967 /usr/local/X11R6/include \
8968 /usr/local/X11R5/include \
8969 /usr/local/X11R4/include \
8970 \
8971 /usr/local/include/X11R6 \
8972 /usr/local/include/X11R5 \
8973 /usr/local/include/X11R4 \
8974 \
8975 /usr/X11/include \
8976 /usr/include/X11 \
8977 /usr/local/X11/include \
8978 /usr/local/include/X11 \
8979 \
8980 /usr/X386/include \
8981 /usr/x386/include \
8982 /usr/XFree86/include/X11 \
8983 \
cf27ef00 8984 X:/XFree86/include \
ec14dd32
VZ
8985 X:/XFree86/include/X11 \
8986 \
10f2d63a
VZ
8987 /usr/include/gtk \
8988 /usr/local/include/gtk \
8989 /usr/include/glib \
8990 /usr/local/include/glib \
8991 \
8992 /usr/include/qt \
8993 /usr/local/include/qt \
8994 \
8995 /usr/include/windows \
8996 /usr/include/wine \
8997 /usr/local/include/wine \
8998 \
8999 /usr/unsupported/include \
9000 /usr/athena/include \
9001 /usr/local/x11r5/include \
9002 /usr/lpp/Xamples/include \
9003 \
10f2d63a 9004 /usr/openwin/share/include \
928b5c08
VZ
9005 \
9006 /usr/include"
10f2d63a
VZ
9007
9008SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
9009
698dcdb6
VZ
9010
9011cat > confcache <<\EOF
10f2d63a
VZ
9012# This file is a shell script that caches the results of configure
9013# tests run on this system so they can be shared between configure
698dcdb6
VZ
9014# scripts and configure runs. It is not useful on other systems.
9015# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 9016#
698dcdb6
VZ
9017# By default, configure uses ./config.cache as the cache file,
9018# creating it if it does not exist already. You can give configure
9019# the --cache-file=FILE option to use a different cache file; that is
9020# what configure does when it calls configure scripts in
9021# subdirectories, so they share the cache.
9022# Giving --cache-file=/dev/null disables caching, for debugging configure.
9023# config.status only pays attention to the cache file if you give it the
9024# --recheck option to rerun configure.
10f2d63a 9025#
698dcdb6 9026EOF
10f2d63a
VZ
9027# The following way of writing the cache mishandles newlines in values,
9028# but we know of no workaround that is simple, portable, and efficient.
9029# So, don't put newlines in cache variables' values.
9030# Ultrix sh set writes to stderr and can't be redirected directly,
9031# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
9032(set) 2>&1 |
9033 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9034 *ac_space=\ *)
9035 # `set' does not quote correctly, so add quotes (double-quote substitution
9036 # turns \\\\ into \\, and sed turns \\ into \).
9037 sed -n \
9038 -e "s/'/'\\\\''/g" \
9039 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9040 ;;
9041 *)
9042 # `set' quotes correctly as required by POSIX, so do not add quotes.
9043 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9044 ;;
9045 esac >> confcache
9046if cmp -s $cache_file confcache; then
9047 :
9048else
10f2d63a 9049 if test -w $cache_file; then
698dcdb6
VZ
9050 echo "updating cache $cache_file"
9051 cat confcache > $cache_file
10f2d63a
VZ
9052 else
9053 echo "not updating unwritable cache $cache_file"
9054 fi
9055fi
9056rm -f confcache
9057
698dcdb6
VZ
9058
9059
4f14bcd8 9060
18dbb1f6
VZ
9061REGEX_INCLUDE=
9062if test "$wxUSE_REGEX" != "no"; then
4f14bcd8
GD
9063 cat >> confdefs.h <<\EOF
9064#define wxUSE_REGEX 1
9065EOF
9066
9067
9068 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
9069 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
18dbb1f6 9070echo $ac_n "checking for regex.h""... $ac_c" 1>&6
1725144d 9071echo "configure:9072: checking for regex.h" >&5
18dbb1f6
VZ
9072if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9073 echo $ac_n "(cached) $ac_c" 1>&6
9074else
9075 cat > conftest.$ac_ext <<EOF
1725144d 9076#line 9077 "configure"
18dbb1f6
VZ
9077#include "confdefs.h"
9078#include <regex.h>
9079EOF
9080ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 9081{ (eval echo configure:9082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18dbb1f6
VZ
9082ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9083if test -z "$ac_err"; then
9084 rm -rf conftest*
9085 eval "ac_cv_header_$ac_safe=yes"
9086else
9087 echo "$ac_err" >&5
9088 echo "configure: failed program was:" >&5
9089 cat conftest.$ac_ext >&5
9090 rm -rf conftest*
9091 eval "ac_cv_header_$ac_safe=no"
9092fi
9093rm -f conftest*
9094fi
9095if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9096 echo "$ac_t""yes" 1>&6
9097 for ac_func in regcomp
9098do
9099echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1725144d 9100echo "configure:9101: checking for $ac_func" >&5
18dbb1f6
VZ
9101if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9102 echo $ac_n "(cached) $ac_c" 1>&6
9103else
9104 cat > conftest.$ac_ext <<EOF
1725144d 9105#line 9106 "configure"
18dbb1f6
VZ
9106#include "confdefs.h"
9107/* System header to define __stub macros and hopefully few prototypes,
9108 which can conflict with char $ac_func(); below. */
9109#include <assert.h>
9110/* Override any gcc2 internal prototype to avoid an error. */
9111/* We use char because int might match the return type of a gcc2
9112 builtin and then its argument prototype would still apply. */
9113char $ac_func();
9114
9115int main() {
9116
9117/* The GNU C library defines this for functions which it implements
9118 to always fail with ENOSYS. Some functions are actually named
9119 something starting with __ and the normal name is an alias. */
9120#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9121choke me
9122#else
9123$ac_func();
9124#endif
9125
9126; return 0; }
9127EOF
1725144d 9128if { (eval echo configure:9129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18dbb1f6
VZ
9129 rm -rf conftest*
9130 eval "ac_cv_func_$ac_func=yes"
9131else
9132 echo "configure: failed program was:" >&5
9133 cat conftest.$ac_ext >&5
9134 rm -rf conftest*
9135 eval "ac_cv_func_$ac_func=no"
9136fi
9137rm -f conftest*
9138fi
9139
9140if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9141 echo "$ac_t""yes" 1>&6
9142 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9143 cat >> confdefs.h <<EOF
9144#define $ac_tr_func 1
9145EOF
9146
9147else
9148 echo "$ac_t""no" 1>&6
9149fi
9150done
9151
9152else
9153 echo "$ac_t""no" 1>&6
9154fi
9155
9156
4f14bcd8
GD
9157 if test "x$ac_cv_func_regcomp" != "xyes"; then
9158 if test "$wxUSE_REGEX" = "sys" ; then
9159 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9160 else
a3df447d 9161 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9162 wxUSE_REGEX=builtin
9163 fi
9164 else
9165 wxUSE_REGEX=sys
18dbb1f6 9166 fi
18dbb1f6
VZ
9167 fi
9168
4f14bcd8
GD
9169 if test "$wxUSE_REGEX" = "builtin" ; then
9170 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9171 fi
18dbb1f6
VZ
9172fi
9173
9174
4f14bcd8
GD
9175ZLIB_INCLUDE=
9176ZLIB_LINK=
9177if test "$wxUSE_ZLIB" != "no" ; then
9178 cat >> confdefs.h <<\EOF
9179#define wxUSE_ZLIB 1
9180EOF
dad6c0ea 9181
10f2d63a 9182
4f14bcd8
GD
9183 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9184 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9185echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
1725144d 9186echo "configure:9187: checking for zlib.h" >&5
3a922bb4
RL
9187if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9188 echo $ac_n "(cached) $ac_c" 1>&6
9189else
9190 cat > conftest.$ac_ext <<EOF
1725144d 9191#line 9192 "configure"
3a922bb4 9192#include "confdefs.h"
4f14bcd8 9193#include <zlib.h>
3a922bb4
RL
9194EOF
9195ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 9196{ (eval echo configure:9197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
9197ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9198if test -z "$ac_err"; then
9199 rm -rf conftest*
9200 eval "ac_cv_header_$ac_safe=yes"
9201else
9202 echo "$ac_err" >&5
9203 echo "configure: failed program was:" >&5
9204 cat conftest.$ac_ext >&5
9205 rm -rf conftest*
9206 eval "ac_cv_header_$ac_safe=no"
9207fi
9208rm -f conftest*
9209fi
9210if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9211 echo "$ac_t""yes" 1>&6
4f14bcd8 9212 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
1725144d 9213echo "configure:9214: checking for deflate in -lz" >&5
4f14bcd8
GD
9214ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9215if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9216 echo $ac_n "(cached) $ac_c" 1>&6
9217else
9218 ac_save_LIBS="$LIBS"
9219LIBS="-lz $LIBS"
9220cat > conftest.$ac_ext <<EOF
1725144d 9221#line 9222 "configure"
4f14bcd8
GD
9222#include "confdefs.h"
9223/* Override any gcc2 internal prototype to avoid an error. */
9224/* We use char because int might match the return type of a gcc2
9225 builtin and then its argument prototype would still apply. */
9226char deflate();
9227
9228int main() {
9229deflate()
9230; return 0; }
3a922bb4 9231EOF
1725144d 9232if { (eval echo configure:9233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9233 rm -rf conftest*
9234 eval "ac_cv_lib_$ac_lib_var=yes"
9235else
9236 echo "configure: failed program was:" >&5
9237 cat conftest.$ac_ext >&5
9238 rm -rf conftest*
9239 eval "ac_cv_lib_$ac_lib_var=no"
9240fi
9241rm -f conftest*
9242LIBS="$ac_save_LIBS"
9243
9244fi
9245if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9246 echo "$ac_t""yes" 1>&6
3d63bc3a 9247 ZLIB_LINK=" -lz"
3a922bb4
RL
9248else
9249 echo "$ac_t""no" 1>&6
9250fi
10f2d63a 9251
4f14bcd8
GD
9252else
9253 echo "$ac_t""no" 1>&6
9254fi
9255
9256
9257 if test "x$ZLIB_LINK" = "x" ; then
9258 if test "$wxUSE_ZLIB" = "sys" ; then
9259 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9260 else
a3df447d 9261 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9262 wxUSE_ZLIB=builtin
9263 fi
9264 else
9265 wxUSE_ZLIB=sys
9266 fi
9267 fi
9268
9269 if test "$wxUSE_ZLIB" = "builtin" ; then
9270 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9271 fi
9272fi
9273
9274
9275PNG_INCLUDE=
9276PNG_LINK=
9277if test "$wxUSE_LIBPNG" != "no" ; then
9278 cat >> confdefs.h <<\EOF
9279#define wxUSE_LIBPNG 1
9280EOF
9281
9282
9283 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
a3df447d 9284 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
4f14bcd8
GD
9285 wxUSE_LIBPNG=builtin
9286 fi
9287
9288 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9289 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9290echo $ac_n "checking for png.h""... $ac_c" 1>&6
1725144d 9291echo "configure:9292: checking for png.h" >&5
d4158b5d
VS
9292if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9293 echo $ac_n "(cached) $ac_c" 1>&6
9294else
9295 cat > conftest.$ac_ext <<EOF
1725144d 9296#line 9297 "configure"
d4158b5d 9297#include "confdefs.h"
4f14bcd8 9298#include <png.h>
d4158b5d
VS
9299EOF
9300ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 9301{ (eval echo configure:9302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4158b5d
VS
9302ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9303if test -z "$ac_err"; then
9304 rm -rf conftest*
9305 eval "ac_cv_header_$ac_safe=yes"
9306else
9307 echo "$ac_err" >&5
9308 echo "configure: failed program was:" >&5
9309 cat conftest.$ac_ext >&5
9310 rm -rf conftest*
9311 eval "ac_cv_header_$ac_safe=no"
9312fi
9313rm -f conftest*
9314fi
9315if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9316 echo "$ac_t""yes" 1>&6
4f14bcd8 9317 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
1725144d 9318echo "configure:9319: checking for png_check_sig in -lpng" >&5
4f14bcd8
GD
9319ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9320if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3a922bb4
RL
9321 echo $ac_n "(cached) $ac_c" 1>&6
9322else
4f14bcd8
GD
9323 ac_save_LIBS="$LIBS"
9324LIBS="-lpng -lz -lm $LIBS"
9325cat > conftest.$ac_ext <<EOF
1725144d 9326#line 9327 "configure"
3a922bb4 9327#include "confdefs.h"
4f14bcd8
GD
9328/* Override any gcc2 internal prototype to avoid an error. */
9329/* We use char because int might match the return type of a gcc2
9330 builtin and then its argument prototype would still apply. */
9331char png_check_sig();
f6bcfd97 9332
4f14bcd8
GD
9333int main() {
9334png_check_sig()
3a922bb4
RL
9335; return 0; }
9336EOF
1725144d 9337if { (eval echo configure:9338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4 9338 rm -rf conftest*
4f14bcd8 9339 eval "ac_cv_lib_$ac_lib_var=yes"
3a922bb4
RL
9340else
9341 echo "configure: failed program was:" >&5
9342 cat conftest.$ac_ext >&5
9343 rm -rf conftest*
4f14bcd8 9344 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4
RL
9345fi
9346rm -f conftest*
4f14bcd8 9347LIBS="$ac_save_LIBS"
10f2d63a 9348
4f14bcd8
GD
9349fi
9350if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9351 echo "$ac_t""yes" 1>&6
3d63bc3a 9352 PNG_LINK=" -lpng"
4f14bcd8
GD
9353else
9354 echo "$ac_t""no" 1>&6
9355fi
32832908 9356
4f14bcd8
GD
9357
9358else
9359 echo "$ac_t""no" 1>&6
9360fi
3a922bb4 9361
7b7a7637 9362
4f14bcd8
GD
9363 if test "x$PNG_LINK" = "x" ; then
9364 if test "$wxUSE_LIBPNG" = "sys" ; then
9365 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9366 else
a3df447d 9367 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9368 wxUSE_LIBPNG=builtin
9369 fi
9370 else
9371 wxUSE_LIBPNG=yes
9372 fi
3a922bb4
RL
9373 fi
9374
4f14bcd8
GD
9375 if test "$wxUSE_LIBPNG" = "builtin" ; then
9376 PNG_INCLUDE="-I\${top_srcdir}/src/png"
3a922bb4
RL
9377 fi
9378
4f14bcd8 9379 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
3a922bb4
RL
9380fi
9381
32832908 9382
4f14bcd8
GD
9383JPEG_INCLUDE=
9384JPEG_LINK=
9385if test "$wxUSE_LIBJPEG" != "no" ; then
9386 cat >> confdefs.h <<\EOF
9387#define wxUSE_LIBJPEG 1
9388EOF
10f2d63a 9389
8168de4c 9390
4f14bcd8
GD
9391 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9392 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
1725144d 9393echo "configure:9394: checking for jpeglib.h" >&5
4f14bcd8 9394 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
8168de4c
VZ
9395 echo $ac_n "(cached) $ac_c" 1>&6
9396else
4f14bcd8 9397 cat > conftest.$ac_ext <<EOF
1725144d 9398#line 9399 "configure"
4f14bcd8 9399#include "confdefs.h"
8168de4c 9400
4f14bcd8
GD
9401 #undef HAVE_STDLIB_H
9402 #include <stdio.h>
9403 #include <jpeglib.h>
9404
9405int main() {
9406
9407
9408; return 0; }
9409EOF
1725144d 9410if { (eval echo configure:9411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
9411 rm -rf conftest*
9412 ac_cv_header_jpeglib_h=yes
6f72b082 9413else
4f14bcd8
GD
9414 echo "configure: failed program was:" >&5
9415 cat conftest.$ac_ext >&5
9416 rm -rf conftest*
9417 ac_cv_header_jpeglib_h=no
9418
9419fi
9420rm -f conftest*
9421
698dcdb6 9422fi
6f72b082 9423
4f14bcd8
GD
9424 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
9425
9426 if test "$ac_cv_header_jpeglib_h" = "yes"; then
9427 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
1725144d 9428echo "configure:9429: checking for jpeg_read_header in -ljpeg" >&5
4f14bcd8
GD
9429ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
9430if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9431 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 9432else
4f14bcd8
GD
9433 ac_save_LIBS="$LIBS"
9434LIBS="-ljpeg $LIBS"
9435cat > conftest.$ac_ext <<EOF
1725144d 9436#line 9437 "configure"
4f14bcd8
GD
9437#include "confdefs.h"
9438/* Override any gcc2 internal prototype to avoid an error. */
9439/* We use char because int might match the return type of a gcc2
9440 builtin and then its argument prototype would still apply. */
9441char jpeg_read_header();
698dcdb6 9442
4f14bcd8
GD
9443int main() {
9444jpeg_read_header()
9445; return 0; }
9446EOF
1725144d 9447if { (eval echo configure:9448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9448 rm -rf conftest*
9449 eval "ac_cv_lib_$ac_lib_var=yes"
6f72b082 9450else
4f14bcd8
GD
9451 echo "configure: failed program was:" >&5
9452 cat conftest.$ac_ext >&5
9453 rm -rf conftest*
9454 eval "ac_cv_lib_$ac_lib_var=no"
698dcdb6 9455fi
4f14bcd8
GD
9456rm -f conftest*
9457LIBS="$ac_save_LIBS"
698dcdb6 9458
4f14bcd8
GD
9459fi
9460if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9461 echo "$ac_t""yes" 1>&6
3d63bc3a 9462 JPEG_LINK=" -ljpeg"
4f14bcd8
GD
9463else
9464 echo "$ac_t""no" 1>&6
9465fi
9466
9467 fi
9468
9469 if test "x$JPEG_LINK" = "x" ; then
9470 if test "$wxUSE_LIBJPEG" = "sys" ; then
9471 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
9472 else
a3df447d 9473 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9474 wxUSE_LIBJPEG=builtin
9475 fi
9476 else
9477 wxUSE_LIBJPEG=sys
9478 fi
9479 fi
9480
9481 if test "$wxUSE_LIBJPEG" = "builtin" ; then
9482 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
9483 fi
9484fi
9485
9486
9487TIFF_INCLUDE=
9488TIFF_LINK=
9489if test "$wxUSE_LIBTIFF" != "no" ; then
9490 cat >> confdefs.h <<\EOF
9491#define wxUSE_LIBTIFF 1
9492EOF
9493
9494
9495 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
9496 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
9497echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
1725144d 9498echo "configure:9499: checking for tiffio.h" >&5
4f14bcd8
GD
9499if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9500 echo $ac_n "(cached) $ac_c" 1>&6
9501else
9502 cat > conftest.$ac_ext <<EOF
1725144d 9503#line 9504 "configure"
4f14bcd8
GD
9504#include "confdefs.h"
9505#include <tiffio.h>
9506EOF
9507ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 9508{ (eval echo configure:9509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
9509ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9510if test -z "$ac_err"; then
9511 rm -rf conftest*
9512 eval "ac_cv_header_$ac_safe=yes"
9513else
9514 echo "$ac_err" >&5
9515 echo "configure: failed program was:" >&5
9516 cat conftest.$ac_ext >&5
9517 rm -rf conftest*
9518 eval "ac_cv_header_$ac_safe=no"
9519fi
9520rm -f conftest*
9521fi
9522if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9523 echo "$ac_t""yes" 1>&6
9524 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
1725144d 9525echo "configure:9526: checking for TIFFError in -ltiff" >&5
4f14bcd8
GD
9526ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
9527if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9528 echo $ac_n "(cached) $ac_c" 1>&6
9529else
9530 ac_save_LIBS="$LIBS"
9531LIBS="-ltiff -lm $LIBS"
9532cat > conftest.$ac_ext <<EOF
1725144d 9533#line 9534 "configure"
4f14bcd8
GD
9534#include "confdefs.h"
9535/* Override any gcc2 internal prototype to avoid an error. */
9536/* We use char because int might match the return type of a gcc2
9537 builtin and then its argument prototype would still apply. */
9538char TIFFError();
9539
9540int main() {
9541TIFFError()
9542; return 0; }
9543EOF
1725144d 9544if { (eval echo configure:9545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9545 rm -rf conftest*
9546 eval "ac_cv_lib_$ac_lib_var=yes"
9547else
9548 echo "configure: failed program was:" >&5
9549 cat conftest.$ac_ext >&5
9550 rm -rf conftest*
9551 eval "ac_cv_lib_$ac_lib_var=no"
9552fi
9553rm -f conftest*
9554LIBS="$ac_save_LIBS"
9555
9556fi
9557if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9558 echo "$ac_t""yes" 1>&6
3d63bc3a 9559 TIFF_LINK=" -ltiff"
4f14bcd8
GD
9560else
9561 echo "$ac_t""no" 1>&6
9562fi
9563
9564
9565else
9566 echo "$ac_t""no" 1>&6
9567fi
9568
9569
9570 if test "x$TIFF_LINK" = "x" ; then
9571 if test "$wxUSE_LIBTIFF" = "sys" ; then
9572 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
9573 else
a3df447d 9574 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9575 wxUSE_LIBTIFF=builtin
9576 fi
9577 else
9578 wxUSE_LIBTIFF=sys
9579 fi
9580 fi
9581
9582 if test "$wxUSE_LIBTIFF" = "builtin" ; then
9583 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
9584 fi
9585fi
9586
9587
9588FREETYPE_INCLUDE=
9589FREETYPE_LINK=
9590if test "$wxUSE_FREETYPE" != "no" ; then
9591 cat >> confdefs.h <<\EOF
9592#define wxUSE_FREETYPE 1
9593EOF
9594
9595
9596 if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then
9597 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
9598echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
1725144d 9599echo "configure:9600: checking for freetype.h" >&5
4f14bcd8
GD
9600if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9601 echo $ac_n "(cached) $ac_c" 1>&6
9602else
9603 cat > conftest.$ac_ext <<EOF
1725144d 9604#line 9605 "configure"
4f14bcd8
GD
9605#include "confdefs.h"
9606#include <freetype.h>
9607EOF
9608ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 9609{ (eval echo configure:9610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
9610ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9611if test -z "$ac_err"; then
9612 rm -rf conftest*
9613 eval "ac_cv_header_$ac_safe=yes"
9614else
9615 echo "$ac_err" >&5
9616 echo "configure: failed program was:" >&5
9617 cat conftest.$ac_ext >&5
9618 rm -rf conftest*
9619 eval "ac_cv_header_$ac_safe=no"
9620fi
9621rm -f conftest*
9622fi
9623if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9624 echo "$ac_t""yes" 1>&6
9625 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
1725144d 9626echo "configure:9627: checking for FT_Render_Glyph in -lfreetype" >&5
4f14bcd8
GD
9627ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
9628if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9629 echo $ac_n "(cached) $ac_c" 1>&6
9630else
9631 ac_save_LIBS="$LIBS"
9632LIBS="-lfreetype -lm $LIBS"
9633cat > conftest.$ac_ext <<EOF
1725144d 9634#line 9635 "configure"
4f14bcd8
GD
9635#include "confdefs.h"
9636/* Override any gcc2 internal prototype to avoid an error. */
9637/* We use char because int might match the return type of a gcc2
9638 builtin and then its argument prototype would still apply. */
9639char FT_Render_Glyph();
9640
9641int main() {
9642FT_Render_Glyph()
9643; return 0; }
9644EOF
1725144d 9645if { (eval echo configure:9646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9646 rm -rf conftest*
9647 eval "ac_cv_lib_$ac_lib_var=yes"
9648else
9649 echo "configure: failed program was:" >&5
9650 cat conftest.$ac_ext >&5
9651 rm -rf conftest*
9652 eval "ac_cv_lib_$ac_lib_var=no"
9653fi
9654rm -f conftest*
9655LIBS="$ac_save_LIBS"
9656
9657fi
9658if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9659 echo "$ac_t""yes" 1>&6
3d63bc3a 9660 FREETYPE_LINK=" -lfreetype"
4f14bcd8
GD
9661else
9662 echo "$ac_t""no" 1>&6
9663fi
9664
9665
9666else
9667 echo "$ac_t""no" 1>&6
9668fi
9669
9670
9671 if test "x$FREETYPE_LINK" = "x" ; then
9672 if test "$wxUSE_FREETYPE" = "sys" ; then
9673 { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; }
9674 else
a3df447d 9675 echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9676 wxUSE_FREETYPE=builtin
9677 fi
9678 else
9679 wxUSE_FREETYPE=sys
9680 fi
9681 fi
9682
9683 if test "$wxUSE_FREETYPE" = "builtin" ; then
9684 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
9685 fi
9686fi
9687
9688
9689AFMINSTALL=
9690
9691TOOLKIT=
9692TOOLKIT_INCLUDE=
9693WIDGET_SET=
9694
9695if test "$USE_WIN32" = 1 ; then
9696 for ac_hdr in w32api.h
9697do
9698ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9699echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1725144d 9700echo "configure:9701: checking for $ac_hdr" >&5
4f14bcd8
GD
9701if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9702 echo $ac_n "(cached) $ac_c" 1>&6
9703else
9704 cat > conftest.$ac_ext <<EOF
1725144d 9705#line 9706 "configure"
4f14bcd8
GD
9706#include "confdefs.h"
9707#include <$ac_hdr>
9708EOF
9709ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 9710{ (eval echo configure:9711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
9711ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9712if test -z "$ac_err"; then
9713 rm -rf conftest*
9714 eval "ac_cv_header_$ac_safe=yes"
9715else
9716 echo "$ac_err" >&5
9717 echo "configure: failed program was:" >&5
9718 cat conftest.$ac_ext >&5
9719 rm -rf conftest*
9720 eval "ac_cv_header_$ac_safe=no"
9721fi
9722rm -f conftest*
9723fi
9724if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9725 echo "$ac_t""yes" 1>&6
9726 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9727 cat >> confdefs.h <<EOF
9728#define $ac_tr_hdr 1
9729EOF
9730
9731else
9732 echo "$ac_t""no" 1>&6
9733fi
9734done
9735
9736 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
9737echo $ac_n "checking for windows.h""... $ac_c" 1>&6
1725144d 9738echo "configure:9739: checking for windows.h" >&5
4f14bcd8
GD
9739if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9740 echo $ac_n "(cached) $ac_c" 1>&6
9741else
9742 cat > conftest.$ac_ext <<EOF
1725144d 9743#line 9744 "configure"
4f14bcd8
GD
9744#include "confdefs.h"
9745#include <windows.h>
9746EOF
9747ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 9748{ (eval echo configure:9749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
9749ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9750if test -z "$ac_err"; then
9751 rm -rf conftest*
9752 eval "ac_cv_header_$ac_safe=yes"
9753else
9754 echo "$ac_err" >&5
9755 echo "configure: failed program was:" >&5
9756 cat conftest.$ac_ext >&5
9757 rm -rf conftest*
9758 eval "ac_cv_header_$ac_safe=no"
9759fi
9760rm -f conftest*
9761fi
9762if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9763 echo "$ac_t""yes" 1>&6
9764 :
9765else
9766 echo "$ac_t""no" 1>&6
9767
9768 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9769
9770fi
9771
9772
9773 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
1725144d 9774echo "configure:9775: checking if w32api has good enough MSIE support" >&5
ea7682f0 9775if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
4f14bcd8
GD
9776 echo $ac_n "(cached) $ac_c" 1>&6
9777else
9778
9779 cat > conftest.$ac_ext <<EOF
1725144d 9780#line 9781 "configure"
4f14bcd8
GD
9781#include "confdefs.h"
9782#include <w32api.h>
9783int main() {
9784
9785 #define wxCHECK_W32API_VERSION( major, minor ) \
9786 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
9787 && ( ( __W32API_MAJOR_VERSION > (major) ) \
9788 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
9789
9790 #if !wxCHECK_W32API_VERSION(1,1)
9791 #error You need w32api 1.1 or newer
9792 #endif
9793
9794; return 0; }
9795EOF
1725144d 9796if { (eval echo configure:9797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
9797 rm -rf conftest*
9798
ea7682f0 9799 wx_cv_w32api_win32_ie=yes
4f14bcd8
GD
9800
9801else
9802 echo "configure: failed program was:" >&5
9803 cat conftest.$ac_ext >&5
9804 rm -rf conftest*
9805
ea7682f0 9806 wx_cv_w32api_win32_ie=no
4f14bcd8
GD
9807
9808fi
9809rm -f conftest*
9810
9811fi
9812
ea7682f0
VS
9813echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
9814 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
9815 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
9816 fi
4f14bcd8
GD
9817
9818 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
9819
77e13408
RL
9820 case "${host}" in
9821 *-*-cygwin* )
9822 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
9823 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
9824 esac
4f14bcd8
GD
9825
9826 if test "$wxUSE_ODBC" = "yes" ; then
3d63bc3a 9827 LIBS=" -lodbc32 -lole32 -loleaut32$LIBS"
4f14bcd8
GD
9828 fi
9829
4f14bcd8
GD
9830 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
9831 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
9832fi
9833
9834if test "$wxUSE_GUI" = "yes"; then
9835 USE_GUI=1
9836
9837 GUI_TK_LIBRARY=
9838
9839 WXGTK12=
9840 WXGTK127=
9841 WXGTK20=
9842
77e13408 9843 if test "$wxUSE_MSW" = 1 ; then
4f14bcd8
GD
9844 TOOLKIT=MSW
9845 GUIDIST=MSW_DIST
77e13408
RL
9846
9847 case "${host}" in
9848 *-*-mingw32* )
3d63bc3a 9849 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
77e13408 9850 esac
4f14bcd8
GD
9851 fi
9852
9853 if test "$wxUSE_GTK" = 1; then
9854 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
1725144d 9855echo "configure:9856: checking for GTK+ version" >&5
4f14bcd8
GD
9856
9857 gtk_version_cached=1
9858 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9859 echo $ac_n "(cached) $ac_c" 1>&6
9860else
9861
9862 gtk_version_cached=0
d48ad9bd 9863 echo "$ac_t""" 1>&6
4f14bcd8 9864
3f345b47
VZ
9865 GTK_MODULES=
9866 if test "$wxUSE_THREADS" = "yes"; then
9867 GTK_MODULES=gthread
9868 fi
9869
4f14bcd8
GD
9870 wx_cv_lib_gtk=
9871 if test "x$wxUSE_GTK2" = "xyes"; then
9872 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
9873if test "${with_gtk_prefix+set}" = set; then
9874 withval="$with_gtk_prefix"
9875 gtk_config_prefix="$withval"
9876else
9877 gtk_config_prefix=""
9878fi
9879
9880# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9881if test "${with_gtk_exec_prefix+set}" = set; then
9882 withval="$with_gtk_exec_prefix"
9883 gtk_config_exec_prefix="$withval"
9884else
9885 gtk_config_exec_prefix=""
9886fi
9887
9888# Check whether --enable-gtktest or --disable-gtktest was given.
9889if test "${enable_gtktest+set}" = set; then
9890 enableval="$enable_gtktest"
9891 :
9892else
9893 enable_gtktest=yes
9894fi
9895
9896
3f345b47 9897 for module in . $GTK_MODULES
4f14bcd8 9898 do
6f72b082 9899 case "$module" in
8168de4c 9900 gthread)
6f72b082
OK
9901 gtk_config_args="$gtk_config_args gthread"
9902 ;;
9903 esac
9904 done
9905
9906 if test x$gtk_config_exec_prefix != x ; then
9907 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9908 if test x${GTK_CONFIG_2_0+set} != xset ; then
9909 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9910 fi
9911 fi
9912 if test x$gtk_config_prefix != x ; then
9913 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9914 if test x${GTK_CONFIG_2_0+set} != xset ; then
9915 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9916 fi
9917 fi
9918
9919 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9920set dummy gtk-config-2.0; ac_word=$2
698dcdb6 9921echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1725144d 9922echo "configure:9923: checking for $ac_word" >&5
698dcdb6
VZ
9923if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9924 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 9925else
698dcdb6
VZ
9926 case "$GTK_CONFIG_2_0" in
9927 /*)
6f72b082
OK
9928 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9929 ;;
698dcdb6
VZ
9930 ?:/*)
9931 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9932 ;;
6f72b082 9933 *)
698dcdb6
VZ
9934 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9935 ac_dummy="$PATH"
9936 for ac_dir in $ac_dummy; do
9937 test -z "$ac_dir" && ac_dir=.
9938 if test -f $ac_dir/$ac_word; then
9939 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9940 break
9941 fi
9942 done
9943 IFS="$ac_save_ifs"
6f72b082
OK
9944 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9945 ;;
9946esac
9947fi
698dcdb6 9948GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 9949if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 9950 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 9951else
698dcdb6 9952 echo "$ac_t""no" 1>&6
6f72b082
OK
9953fi
9954
9955 min_gtk_version=1.3.1
698dcdb6 9956 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1725144d 9957echo "configure:9958: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
9958 no_gtk=""
9959 if test "$GTK_CONFIG_2_0" = "no" ; then
9960 no_gtk=yes
9961 else
9962 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9963 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9964 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9965 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9966 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9967 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9968 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9969 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9970 if test "x$enable_gtktest" = "xyes" ; then
9971 ac_save_CFLAGS="$CFLAGS"
9972 ac_save_LIBS="$LIBS"
9973 CFLAGS="$CFLAGS $GTK_CFLAGS"
9974 LIBS="$GTK_LIBS $LIBS"
9975 rm -f conf.gtktest
9976 if test "$cross_compiling" = yes; then
9977 echo $ac_n "cross compiling; assumed OK... $ac_c"
9978else
698dcdb6 9979 cat > conftest.$ac_ext <<EOF
1725144d 9980#line 9981 "configure"
6f72b082
OK
9981#include "confdefs.h"
9982
9983#include <gtk/gtk.h>
9984#include <stdio.h>
9985#include <stdlib.h>
9986
8168de4c 9987int
6f72b082
OK
9988main ()
9989{
9990 int major, minor, micro;
9991 char *tmp_version;
9992
9993 system ("touch conf.gtktest");
9994
9995 /* HP/UX 9 (%@#!) writes to sscanf strings */
9996 tmp_version = g_strdup("$min_gtk_version");
9997 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9998 printf("%s, bad version string\n", "$min_gtk_version");
9999 exit(1);
10000 }
10001
10002 if ((gtk_major_version != $gtk_config_major_version) ||
10003 (gtk_minor_version != $gtk_config_minor_version) ||
10004 (gtk_micro_version != $gtk_config_micro_version))
10005 {
8168de4c 10006 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
10007 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10008 gtk_major_version, gtk_minor_version, gtk_micro_version);
10009 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
10010 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10011 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10012 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10013 printf("*** required on your system.\n");
10014 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
10015 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
10016 printf("*** before re-running configure\n");
8168de4c 10017 }
6f72b082
OK
10018#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10019 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8168de4c 10020 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
10021 (gtk_micro_version != GTK_MICRO_VERSION))
10022 {
10023 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8168de4c 10024 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 10025 printf("*** library (version %d.%d.%d)\n",
8168de4c 10026 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082
OK
10027 }
10028#endif /* defined (GTK_MAJOR_VERSION) ... */
10029 else
10030 {
10031 if ((gtk_major_version > major) ||
10032 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10033 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10034 {
10035 return 0;
10036 }
10037 else
10038 {
10039 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10040 gtk_major_version, gtk_minor_version, gtk_micro_version);
10041 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8168de4c 10042 major, minor, micro);
6f72b082
OK
10043 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10044 printf("***\n");
10045 printf("*** If you have already installed a sufficiently new version, this error\n");
10046 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
10047 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10048 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
10049 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
10050 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10051 printf("*** so that the correct libraries are found at run-time))\n");
10052 }
10053 }
10054 return 1;
10055}
10056
698dcdb6 10057EOF
1725144d 10058if { (eval echo configure:10059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10059then
6f72b082
OK
10060 :
10061else
698dcdb6
VZ
10062 echo "configure: failed program was:" >&5
10063 cat conftest.$ac_ext >&5
10064 rm -fr conftest*
10065 no_gtk=yes
6f72b082 10066fi
698dcdb6 10067rm -fr conftest*
6f72b082 10068fi
698dcdb6 10069
6f72b082
OK
10070 CFLAGS="$ac_save_CFLAGS"
10071 LIBS="$ac_save_LIBS"
10072 fi
10073 fi
10074 if test "x$no_gtk" = x ; then
698dcdb6 10075 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8168de4c 10076 wx_cv_lib_gtk=2.0
6f72b082 10077 else
698dcdb6 10078 echo "$ac_t""no" 1>&6
6f72b082
OK
10079 if test "$GTK_CONFIG_2_0" = "no" ; then
10080 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
10081 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10082 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
10083 echo "*** full path to gtk-config-2.0."
10084 else
10085 if test -f conf.gtktest ; then
10086 :
10087 else
10088 echo "*** Could not run GTK test program, checking why..."
10089 CFLAGS="$CFLAGS $GTK_CFLAGS"
10090 LIBS="$LIBS $GTK_LIBS"
698dcdb6 10091 cat > conftest.$ac_ext <<EOF
1725144d 10092#line 10093 "configure"
6f72b082
OK
10093#include "confdefs.h"
10094
10095#include <gtk/gtk.h>
10096#include <stdio.h>
10097
698dcdb6
VZ
10098int main() {
10099 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10100; return 0; }
10101EOF
1725144d 10102if { (eval echo configure:10103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10103 rm -rf conftest*
6f72b082
OK
10104 echo "*** The test program compiled, but did not run. This usually means"
10105 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10106 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10107 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10108 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10109 echo "*** is required on your system"
8168de4c 10110 echo "***"
6f72b082
OK
10111 echo "*** If you have an old version installed, it is best to remove it, although"
10112 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10113 echo "***"
10114 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10115 echo "*** came with the system with the command"
10116 echo "***"
698dcdb6 10117 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 10118else
698dcdb6
VZ
10119 echo "configure: failed program was:" >&5
10120 cat conftest.$ac_ext >&5
10121 rm -rf conftest*
10122 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
10123 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10124 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
698dcdb6 10125 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 10126fi
698dcdb6 10127rm -f conftest*
6f72b082
OK
10128 CFLAGS="$ac_save_CFLAGS"
10129 LIBS="$ac_save_LIBS"
10130 fi
10131 fi
10132 GTK_CFLAGS=""
10133 GTK_LIBS=""
3f345b47 10134 :
8168de4c
VZ
10135 fi
10136
10137
10138 rm -f conf.gtktest
10139
10140 fi
10141
10142 if test -z "$wx_cv_lib_gtk"; then
3f345b47
VZ
10143 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10144if test "${with_gtk_prefix+set}" = set; then
10145 withval="$with_gtk_prefix"
10146 gtk_config_prefix="$withval"
10147else
10148 gtk_config_prefix=""
10149fi
10150
10151# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10152if test "${with_gtk_exec_prefix+set}" = set; then
10153 withval="$with_gtk_exec_prefix"
10154 gtk_config_exec_prefix="$withval"
10155else
10156 gtk_config_exec_prefix=""
10157fi
10158
10159# Check whether --enable-gtktest or --disable-gtktest was given.
10160if test "${enable_gtktest+set}" = set; then
10161 enableval="$enable_gtktest"
10162 :
10163else
10164 enable_gtktest=yes
10165fi
10166
10167
10168 for module in . $GTK_MODULES
10169 do
10170 case "$module" in
10171 gthread)
10172 gtk_config_args="$gtk_config_args gthread"
10173 ;;
10174 esac
10175 done
10176
10f2d63a
VZ
10177 if test x$gtk_config_exec_prefix != x ; then
10178 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10179 if test x${GTK_CONFIG+set} != xset ; then
10180 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10181 fi
10182 fi
10183 if test x$gtk_config_prefix != x ; then
10184 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10185 if test x${GTK_CONFIG+set} != xset ; then
10186 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10187 fi
10188 fi
10189
10190 # Extract the first word of "gtk-config", so it can be a program name with args.
10191set dummy gtk-config; ac_word=$2
698dcdb6 10192echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1725144d 10193echo "configure:10194: checking for $ac_word" >&5
698dcdb6
VZ
10194if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10195 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 10196else
698dcdb6
VZ
10197 case "$GTK_CONFIG" in
10198 /*)
f6bcfd97
BP
10199 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10200 ;;
698dcdb6
VZ
10201 ?:/*)
10202 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10203 ;;
f6bcfd97 10204 *)
698dcdb6
VZ
10205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10206 ac_dummy="$PATH"
10207 for ac_dir in $ac_dummy; do
10208 test -z "$ac_dir" && ac_dir=.
10209 if test -f $ac_dir/$ac_word; then
10210 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10211 break
10212 fi
10213 done
10214 IFS="$ac_save_ifs"
f6bcfd97
BP
10215 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10216 ;;
10217esac
10218fi
698dcdb6 10219GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 10220if test -n "$GTK_CONFIG"; then
698dcdb6 10221 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 10222else
698dcdb6 10223 echo "$ac_t""no" 1>&6
f6bcfd97
BP
10224fi
10225
10226 min_gtk_version=1.2.7
698dcdb6 10227 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1725144d 10228echo "configure:10229: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97 10229 no_gtk=""
3f345b47
VZ
10230 if test "$GTK_CONFIG" = "no" ; then
10231 no_gtk=yes
10232 else
10233 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10234 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10235 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10236 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10237 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10238 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10239 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10240 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10241 if test "x$enable_gtktest" = "xyes" ; then
10242 ac_save_CFLAGS="$CFLAGS"
10243 ac_save_LIBS="$LIBS"
10244 CFLAGS="$CFLAGS $GTK_CFLAGS"
10245 LIBS="$GTK_LIBS $LIBS"
10246 rm -f conf.gtktest
10247 if test "$cross_compiling" = yes; then
f6bcfd97
BP
10248 echo $ac_n "cross compiling; assumed OK... $ac_c"
10249else
698dcdb6 10250 cat > conftest.$ac_ext <<EOF
1725144d 10251#line 10252 "configure"
f6bcfd97
BP
10252#include "confdefs.h"
10253
10254#include <gtk/gtk.h>
f6bcfd97
BP
10255#include <stdio.h>
10256#include <stdlib.h>
10257
3f345b47 10258int
f6bcfd97
BP
10259main ()
10260{
10261 int major, minor, micro;
3f345b47 10262 char *tmp_version;
f6bcfd97 10263
3f345b47 10264 system ("touch conf.gtktest");
f6bcfd97 10265
3f345b47
VZ
10266 /* HP/UX 9 (%@#!) writes to sscanf strings */
10267 tmp_version = g_strdup("$min_gtk_version");
10268 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10269 printf("%s, bad version string\n", "$min_gtk_version");
f6bcfd97
BP
10270 exit(1);
10271 }
10272
3f345b47
VZ
10273 if ((gtk_major_version != $gtk_config_major_version) ||
10274 (gtk_minor_version != $gtk_config_minor_version) ||
10275 (gtk_micro_version != $gtk_config_micro_version))
10276 {
10277 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10278 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10279 gtk_major_version, gtk_minor_version, gtk_micro_version);
10280 printf ("*** was found! If gtk-config was correct, then it is best\n");
10281 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10282 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10283 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10284 printf("*** required on your system.\n");
10285 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10286 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10287 printf("*** before re-running configure\n");
10288 }
10289#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10290 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10291 (gtk_minor_version != GTK_MINOR_VERSION) ||
10292 (gtk_micro_version != GTK_MICRO_VERSION))
10293 {
10294 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10295 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10296 printf("*** library (version %d.%d.%d)\n",
10297 gtk_major_version, gtk_minor_version, gtk_micro_version);
10298 }
10299#endif /* defined (GTK_MAJOR_VERSION) ... */
10300 else
10301 {
10302 if ((gtk_major_version > major) ||
10303 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10304 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10305 {
10306 return 0;
10307 }
10308 else
10309 {
10310 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10311 gtk_major_version, gtk_minor_version, gtk_micro_version);
10312 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10313 major, minor, micro);
10314 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10315 printf("***\n");
10316 printf("*** If you have already installed a sufficiently new version, this error\n");
10317 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10318 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10319 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10320 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10321 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10322 printf("*** so that the correct libraries are found at run-time))\n");
10323 }
10324 }
10325 return 1;
f6bcfd97
BP
10326}
10327
698dcdb6 10328EOF
1725144d 10329if { (eval echo configure:10330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10330then
f6bcfd97
BP
10331 :
10332else
698dcdb6
VZ
10333 echo "configure: failed program was:" >&5
10334 cat conftest.$ac_ext >&5
10335 rm -fr conftest*
10336 no_gtk=yes
f6bcfd97 10337fi
698dcdb6 10338rm -fr conftest*
f6bcfd97 10339fi
698dcdb6 10340
3f345b47
VZ
10341 CFLAGS="$ac_save_CFLAGS"
10342 LIBS="$ac_save_LIBS"
10343 fi
f6bcfd97
BP
10344 fi
10345 if test "x$no_gtk" = x ; then
698dcdb6 10346 echo "$ac_t""yes" 1>&6
3f345b47 10347 wx_cv_lib_gtk=1.2.7
f6bcfd97 10348 else
698dcdb6 10349 echo "$ac_t""no" 1>&6
3f345b47
VZ
10350 if test "$GTK_CONFIG" = "no" ; then
10351 echo "*** The gtk-config script installed by GTK could not be found"
10352 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10353 echo "*** your path, or set the GTK_CONFIG environment variable to the"
10354 echo "*** full path to gtk-config."
10355 else
10356 if test -f conf.gtktest ; then
10357 :
10358 else
10359 echo "*** Could not run GTK test program, checking why..."
10360 CFLAGS="$CFLAGS $GTK_CFLAGS"
10361 LIBS="$LIBS $GTK_LIBS"
10362 cat > conftest.$ac_ext <<EOF
1725144d 10363#line 10364 "configure"
3f345b47
VZ
10364#include "confdefs.h"
10365
10366#include <gtk/gtk.h>
10367#include <stdio.h>
10368
10369int main() {
10370 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10371; return 0; }
10372EOF
1725144d 10373if { (eval echo configure:10374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3f345b47
VZ
10374 rm -rf conftest*
10375 echo "*** The test program compiled, but did not run. This usually means"
10376 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10377 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10378 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10379 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10380 echo "*** is required on your system"
10381 echo "***"
10382 echo "*** If you have an old version installed, it is best to remove it, although"
10383 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10384 echo "***"
10385 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10386 echo "*** came with the system with the command"
10387 echo "***"
10388 echo "*** rpm --erase --nodeps gtk gtk-devel"
10389else
10390 echo "configure: failed program was:" >&5
10391 cat conftest.$ac_ext >&5
10392 rm -rf conftest*
10393 echo "*** The test program failed to compile or link. See the file config.log for the"
10394 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10395 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10396 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
10397fi
10398rm -f conftest*
10399 CFLAGS="$ac_save_CFLAGS"
10400 LIBS="$ac_save_LIBS"
10401 fi
10402 fi
f6bcfd97
BP
10403 GTK_CFLAGS=""
10404 GTK_LIBS=""
10405 :
10406 fi
698dcdb6
VZ
10407
10408
3f345b47 10409 rm -f conf.gtktest
f6bcfd97 10410
8168de4c
VZ
10411 fi
10412
10413 if test -z "$wx_cv_lib_gtk"; then
3f345b47
VZ
10414 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10415if test "${with_gtk_prefix+set}" = set; then
10416 withval="$with_gtk_prefix"
10417 gtk_config_prefix="$withval"
10418else
10419 gtk_config_prefix=""
10420fi
10421
10422# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10423if test "${with_gtk_exec_prefix+set}" = set; then
10424 withval="$with_gtk_exec_prefix"
10425 gtk_config_exec_prefix="$withval"
10426else
10427 gtk_config_exec_prefix=""
10428fi
10429
10430# Check whether --enable-gtktest or --disable-gtktest was given.
10431if test "${enable_gtktest+set}" = set; then
10432 enableval="$enable_gtktest"
10433 :
10434else
10435 enable_gtktest=yes
10436fi
10437
10438
10439 for module in . $GTK_MODULES
10440 do
10441 case "$module" in
10442 gthread)
10443 gtk_config_args="$gtk_config_args gthread"
10444 ;;
10445 esac
10446 done
10447
f6bcfd97
BP
10448 if test x$gtk_config_exec_prefix != x ; then
10449 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10450 if test x${GTK_CONFIG+set} != xset ; then
10451 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10452 fi
10453 fi
10454 if test x$gtk_config_prefix != x ; then
10455 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10456 if test x${GTK_CONFIG+set} != xset ; then
10457 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10458 fi
10459 fi
10460
10461 # Extract the first word of "gtk-config", so it can be a program name with args.
10462set dummy gtk-config; ac_word=$2
698dcdb6 10463echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1725144d 10464echo "configure:10465: checking for $ac_word" >&5
698dcdb6
VZ
10465if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10466 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 10467else
698dcdb6
VZ
10468 case "$GTK_CONFIG" in
10469 /*)
10f2d63a
VZ
10470 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10471 ;;
698dcdb6
VZ
10472 ?:/*)
10473 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10474 ;;
10f2d63a 10475 *)
698dcdb6
VZ
10476 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10477 ac_dummy="$PATH"
10478 for ac_dir in $ac_dummy; do
10479 test -z "$ac_dir" && ac_dir=.
10480 if test -f $ac_dir/$ac_word; then
10481 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10482 break
10483 fi
10484 done
10485 IFS="$ac_save_ifs"
10f2d63a
VZ
10486 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10487 ;;
10488esac
10489fi
698dcdb6 10490GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 10491if test -n "$GTK_CONFIG"; then
698dcdb6 10492 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 10493else
698dcdb6 10494 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10495fi
10496
04165bec 10497 min_gtk_version=1.2.3
698dcdb6 10498 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1725144d 10499echo "configure:10500: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a 10500 no_gtk=""
3f345b47
VZ
10501 if test "$GTK_CONFIG" = "no" ; then
10502 no_gtk=yes
10503 else
10504 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10505 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10506 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10507 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10508 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10509 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10510 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10511 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10512 if test "x$enable_gtktest" = "xyes" ; then
10513 ac_save_CFLAGS="$CFLAGS"
10514 ac_save_LIBS="$LIBS"
10515 CFLAGS="$CFLAGS $GTK_CFLAGS"
10516 LIBS="$GTK_LIBS $LIBS"
10517 rm -f conf.gtktest
10518 if test "$cross_compiling" = yes; then
10f2d63a
VZ
10519 echo $ac_n "cross compiling; assumed OK... $ac_c"
10520else
698dcdb6 10521 cat > conftest.$ac_ext <<EOF
1725144d 10522#line 10523 "configure"
10f2d63a
VZ
10523#include "confdefs.h"
10524
10525#include <gtk/gtk.h>
10526#include <stdio.h>
32832908 10527#include <stdlib.h>
10f2d63a 10528
3f345b47 10529int
10f2d63a
VZ
10530main ()
10531{
10532 int major, minor, micro;
3f345b47 10533 char *tmp_version;
10f2d63a 10534
3f345b47 10535 system ("touch conf.gtktest");
10f2d63a 10536
3f345b47
VZ
10537 /* HP/UX 9 (%@#!) writes to sscanf strings */
10538 tmp_version = g_strdup("$min_gtk_version");
10539 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10540 printf("%s, bad version string\n", "$min_gtk_version");
f49f2b0c
RR
10541 exit(1);
10542 }
10543
3f345b47
VZ
10544 if ((gtk_major_version != $gtk_config_major_version) ||
10545 (gtk_minor_version != $gtk_config_minor_version) ||
10546 (gtk_micro_version != $gtk_config_micro_version))
10547 {
10548 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10549 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10550 gtk_major_version, gtk_minor_version, gtk_micro_version);
10551 printf ("*** was found! If gtk-config was correct, then it is best\n");
10552 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10553 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10554 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10555 printf("*** required on your system.\n");
10556 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10557 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10558 printf("*** before re-running configure\n");
10559 }
10560#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10561 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10562 (gtk_minor_version != GTK_MINOR_VERSION) ||
10563 (gtk_micro_version != GTK_MICRO_VERSION))
10564 {
10565 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10566 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10567 printf("*** library (version %d.%d.%d)\n",
10568 gtk_major_version, gtk_minor_version, gtk_micro_version);
10569 }
10570#endif /* defined (GTK_MAJOR_VERSION) ... */
10571 else
10572 {
10573 if ((gtk_major_version > major) ||
10574 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10575 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10576 {
10577 return 0;
10578 }
10579 else
10580 {
10581 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10582 gtk_major_version, gtk_minor_version, gtk_micro_version);
10583 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10584 major, minor, micro);
10585 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10586 printf("***\n");
10587 printf("*** If you have already installed a sufficiently new version, this error\n");
10588 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10589 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10590 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10591 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10592 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10593 printf("*** so that the correct libraries are found at run-time))\n");
10594 }
10595 }
10596 return 1;
10f2d63a
VZ
10597}
10598
698dcdb6 10599EOF
1725144d 10600if { (eval echo configure:10601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10601then
10f2d63a
VZ
10602 :
10603else
698dcdb6
VZ
10604 echo "configure: failed program was:" >&5
10605 cat conftest.$ac_ext >&5
10606 rm -fr conftest*
10607 no_gtk=yes
10f2d63a 10608fi
698dcdb6 10609rm -fr conftest*
10f2d63a 10610fi
698dcdb6 10611
3f345b47
VZ
10612 CFLAGS="$ac_save_CFLAGS"
10613 LIBS="$ac_save_LIBS"
10614 fi
10f2d63a
VZ
10615 fi
10616 if test "x$no_gtk" = x ; then
698dcdb6 10617 echo "$ac_t""yes" 1>&6
3f345b47 10618 wx_cv_lib_gtk=1.2.3
10f2d63a 10619 else
698dcdb6 10620 echo "$ac_t""no" 1>&6
3f345b47
VZ
10621 if test "$GTK_CONFIG" = "no" ; then
10622 echo "*** The gtk-config script installed by GTK could not be found"
10623 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10624 echo "*** your path, or set the GTK_CONFIG environment variable to the"
10625 echo "*** full path to gtk-config."
10626 else
10627 if test -f conf.gtktest ; then
10628 :
10629 else
10630 echo "*** Could not run GTK test program, checking why..."
10631 CFLAGS="$CFLAGS $GTK_CFLAGS"
10632 LIBS="$LIBS $GTK_LIBS"
10633 cat > conftest.$ac_ext <<EOF
1725144d 10634#line 10635 "configure"
3f345b47
VZ
10635#include "confdefs.h"
10636
10637#include <gtk/gtk.h>
10638#include <stdio.h>
10639
10640int main() {
10641 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10642; return 0; }
10643EOF
1725144d 10644if { (eval echo configure:10645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3f345b47
VZ
10645 rm -rf conftest*
10646 echo "*** The test program compiled, but did not run. This usually means"
10647 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10648 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10649 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10650 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10651 echo "*** is required on your system"
10652 echo "***"
10653 echo "*** If you have an old version installed, it is best to remove it, although"
10654 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10655 echo "***"
10656 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10657 echo "*** came with the system with the command"
10658 echo "***"
10659 echo "*** rpm --erase --nodeps gtk gtk-devel"
10660else
10661 echo "configure: failed program was:" >&5
10662 cat conftest.$ac_ext >&5
10663 rm -rf conftest*
10664 echo "*** The test program failed to compile or link. See the file config.log for the"
10665 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10666 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10667 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
10668fi
10669rm -f conftest*
10670 CFLAGS="$ac_save_CFLAGS"
10671 LIBS="$ac_save_LIBS"
10672 fi
10673 fi
10f2d63a
VZ
10674 GTK_CFLAGS=""
10675 GTK_LIBS=""
7e99ad86 10676 :
10f2d63a 10677 fi
698dcdb6
VZ
10678
10679
3f345b47 10680 rm -f conf.gtktest
10f2d63a 10681
8168de4c
VZ
10682 fi
10683
10684 if test -z "$wx_cv_lib_gtk"; then
10685 wx_cv_lib_gtk=none
138be253
VZ
10686 else
10687 wx_cv_cflags_gtk=$GTK_CFLAGS
10688 wx_cv_libs_gtk=$GTK_LIBS
8168de4c
VZ
10689 fi
10690
1e6feb95 10691
8168de4c 10692fi
703e0a69 10693
698dcdb6 10694
8168de4c
VZ
10695 if test "$gtk_version_cached" = 1; then
10696 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
1e6feb95 10697 fi
698dcdb6 10698
8168de4c
VZ
10699 case "$wx_cv_lib_gtk" in
10700 2.0) WXGTK20=1
10701 ;;
10702 1.2.7) WXGTK127=1
d1a8d972 10703 WXGTK12=1
8168de4c
VZ
10704 ;;
10705 1.2.3) WXGTK12=1
10706 ;;
10707 *) { echo "configure: error:
10708Please check that gtk-config is in path, the directory
10709where GTK+ libraries are installed (returned by
10710'gtk-config --libs' command) is in LD_LIBRARY_PATH or
10711equivalent variable and GTK+ is version 1.2.3 or above.
10712 " 1>&2; exit 1; }
10713 ;;
10714 esac
2224580a 10715
138be253 10716 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11dfaa5f 10717 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
698dcdb6 10718
1e6feb95
VZ
10719 AFMINSTALL=afminstall
10720 TOOLKIT=GTK
10721 GUIDIST=GTK_DIST
7ec2881a 10722
1e6feb95 10723 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
1725144d 10724echo "configure:10725: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
10725ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
10726if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10727 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 10728else
698dcdb6 10729 ac_save_LIBS="$LIBS"
7ec2881a 10730LIBS="-lgdk $LIBS"
698dcdb6 10731cat > conftest.$ac_ext <<EOF
1725144d 10732#line 10733 "configure"
7ec2881a
RR
10733#include "confdefs.h"
10734/* Override any gcc2 internal prototype to avoid an error. */
10735/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10736 builtin and then its argument prototype would still apply. */
10737char gdk_im_open();
10738
10739int main() {
10740gdk_im_open()
10741; return 0; }
10742EOF
1725144d 10743if { (eval echo configure:10744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10744 rm -rf conftest*
10745 eval "ac_cv_lib_$ac_lib_var=yes"
10746else
10747 echo "configure: failed program was:" >&5
10748 cat conftest.$ac_ext >&5
10749 rm -rf conftest*
10750 eval "ac_cv_lib_$ac_lib_var=no"
10751fi
10752rm -f conftest*
10753LIBS="$ac_save_LIBS"
10754
10755fi
10756if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10757 echo "$ac_t""yes" 1>&6
10758 cat >> confdefs.h <<\EOF
7ec2881a
RR
10759#define HAVE_XIM 1
10760EOF
10761
698dcdb6
VZ
10762else
10763 echo "$ac_t""no" 1>&6
7ec2881a
RR
10764fi
10765
1e6feb95 10766 fi
10f2d63a 10767
1e6feb95 10768 if test "$wxUSE_MGL" = 1; then
1e6feb95 10769 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
1725144d 10770echo "configure:10771: checking for SciTech MGL library" >&5
1e6feb95
VZ
10771 if test "x$MGL_ROOT" = x ; then
10772 echo "$ac_t""not found" 1>&6
10773 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
10774 else
10775 echo "$ac_t""$MGL_ROOT" 1>&6
10776 fi
10777
f9bc1684
VS
10778 case "${host}" in
10779 *-*-linux* )
10780 mgl_os=linux/gcc/glibc
10781 ;;
10782 *-pc-msdosdjgpp )
10783 mgl_os=dos32/dj2
10784 ;;
10785 *)
10786 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
10787 esac
10788
3a922bb4 10789 mgl_lib_type=""
1e6feb95
VZ
10790
10791 if test "$wxUSE_DEBUG_FLAG" = yes ; then
223e7fbf
VS
10792 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
10793 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
3a922bb4 10794 mgl_lib_type=debug
1e6feb95
VZ
10795 fi
10796 fi
3a922bb4 10797 if test "x$mgl_lib_type" = x ; then
223e7fbf
VS
10798 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
10799 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
3a922bb4 10800 mgl_lib_type=release
1e6feb95
VZ
10801 else
10802 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
10803 fi
10804 fi
10805
10806 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
3a922bb4 10807 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
1e6feb95
VZ
10808
10809 AFMINSTALL=afminstall
10810 TOOLKIT=MGL
10811 GUIDIST=MGL_DIST
10812 fi
10813
1725144d
RR
10814 if test "$wxUSE_MICROWIN" = 1; then
10815 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
10816echo "configure:10817: checking for MicroWindows" >&5
10817 if test "x$MICROWINDOWS" = x ; then
10818 echo "$ac_t""not found" 1>&6
10819 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
10820 else
10821 echo "$ac_t""$MICROWINDOWS" 1>&6
10822 fi
10823
10824 if test -f $MICROWINDOWS/lib/libmwin.a; then
10825 echo "$ac_t""MicroWindows' libraries found." 1>&6
10826 else
10827 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
10828 fi
10829
10830 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
10831 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
10832
10833 AFMINSTALL=afminstall
10834 TOOLKIT=MICROWIN
10835 GUIDIST=MICROWIN_DIST
10836
10837 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
10838 fi
10839
1e6feb95 10840 if test "$wxUSE_WINE" = 1; then
3a922bb4
RL
10841 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10842echo $ac_n "checking for windows.h""... $ac_c" 1>&6
1725144d 10843echo "configure:10844: checking for windows.h" >&5
3a922bb4
RL
10844if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10845 echo $ac_n "(cached) $ac_c" 1>&6
10846else
10847 cat > conftest.$ac_ext <<EOF
1725144d 10848#line 10849 "configure"
3a922bb4
RL
10849#include "confdefs.h"
10850#include <windows.h>
10851EOF
10852ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 10853{ (eval echo configure:10854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
10854ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10855if test -z "$ac_err"; then
10856 rm -rf conftest*
10857 eval "ac_cv_header_$ac_safe=yes"
10858else
10859 echo "$ac_err" >&5
10860 echo "configure: failed program was:" >&5
10861 cat conftest.$ac_ext >&5
10862 rm -rf conftest*
10863 eval "ac_cv_header_$ac_safe=no"
10864fi
10865rm -f conftest*
10866fi
10867if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10868 echo "$ac_t""yes" 1>&6
10869 :
10870else
10871 echo "$ac_t""no" 1>&6
10f2d63a 10872
1e6feb95 10873 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
3a922bb4
RL
10874
10875fi
10876
10f2d63a 10877
3d63bc3a 10878 xpm_link=
1e6feb95 10879 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
1725144d 10880echo "configure:10881: checking for Xpm library" >&5
1e6feb95 10881
10f2d63a
VZ
10882ac_find_libraries=
10883for ac_dir in $SEARCH_LIB;
10884 do
f11bdd03 10885 for ac_extension in a so sl dylib; do
10f2d63a
VZ
10886 if test -f "$ac_dir/libXpm.$ac_extension"; then
10887 ac_find_libraries=$ac_dir
10888 break 2
10889 fi
10890 done
10891 done
10892
1e6feb95
VZ
10893 if test "$ac_find_libraries" != "" ; then
10894 GUI_TK_LIBRARY="-L$ac_find_libraries"
3d63bc3a 10895 xpm_link=" -lXpm"
1e6feb95 10896 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10897#define wxHAVE_LIB_XPM 1
10898EOF
10899
1e6feb95
VZ
10900 echo "$ac_t""found at $ac_find_libraries" 1>&6
10901 else
10902 echo "$ac_t""no" 1>&6
10903 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10904 fi
10f2d63a 10905
3d63bc3a 10906 mesa_link=
1e6feb95 10907 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
1725144d 10908echo "configure:10909: checking for Mesa library" >&5
1e6feb95 10909
10f2d63a
VZ
10910ac_find_libraries=
10911for ac_dir in $SEARCH_LIB;
10912 do
f11bdd03 10913 for ac_extension in a so sl dylib; do
10f2d63a
VZ
10914 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
10915 ac_find_libraries=$ac_dir
10916 break 2
10917 fi
10918 done
10919 done
10920
1e6feb95
VZ
10921 if test "$ac_find_libraries" != "" ; then
10922 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
3d63bc3a 10923 mesa_link=" -lMesaGL"
1e6feb95
VZ
10924 echo "$ac_t""found at $ac_find_libraries" 1>&6
10925 else
10926 { echo "configure: error: no" 1>&2; exit 1; }
10927 fi
10f2d63a 10928
3d63bc3a 10929 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
1e6feb95
VZ
10930 TOOLKIT=MSW
10931 GUIDIST=MSW_DIST
3a922bb4 10932 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
1e6feb95 10933 fi
698dcdb6 10934
d714471b
VZ
10935 if test "$wxUSE_MOTIF" = 1; then
10936 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
10937# paths, otherwise set no_x=yes.
10938# Uses ac_ vars as temps to allow command line to override cache and checks.
10939# --without-x overrides everything else, but does not touch the cache.
10940echo $ac_n "checking for X""... $ac_c" 1>&6
1725144d 10941echo "configure:10942: checking for X" >&5
ab9b9eab
VZ
10942
10943# Check whether --with-x or --without-x was given.
10944if test "${with_x+set}" = set; then
10945 withval="$with_x"
698dcdb6
VZ
10946 :
10947fi
ba337fe7 10948
ab9b9eab
VZ
10949# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10950if test "x$with_x" = xno; then
10951 # The user explicitly disabled X.
10952 have_x=disabled
10953else
10954 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
10955 # Both variables are already set.
10956 have_x=yes
10957 else
698dcdb6
VZ
10958if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
10959 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
10960else
10961 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
10962ac_x_includes=NO ac_x_libraries=NO
10963rm -fr conftestdir
10964if mkdir conftestdir; then
10965 cd conftestdir
ab9b9eab 10966 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 10967 cat > Imakefile <<'EOF'
ab9b9eab
VZ
10968acfindx:
10969 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
10970EOF
10971 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10972 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10973 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10974 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 10975 for ac_extension in a so sl; do
ab9b9eab 10976 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 10977 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 10978 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
10979 fi
10980 done
ab9b9eab
VZ
10981 # Screen out bogus values from the imake configuration. They are
10982 # bogus both because they are the default anyway, and because
10983 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 10984 case "$ac_im_incroot" in
ab9b9eab 10985 /usr/include) ;;
698dcdb6 10986 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 10987 esac
698dcdb6 10988 case "$ac_im_usrlibdir" in
ab9b9eab 10989 /usr/lib | /lib) ;;
698dcdb6 10990 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 10991 esac
ba337fe7 10992 fi
ab9b9eab 10993 cd ..
698dcdb6 10994 rm -fr conftestdir
ab9b9eab 10995fi
10f2d63a 10996
698dcdb6
VZ
10997if test "$ac_x_includes" = NO; then
10998 # Guess where to find include files, by looking for this one X11 .h file.
10999 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
11000
ab9b9eab 11001 # First, try using that file with no special directory specified.
698dcdb6 11002cat > conftest.$ac_ext <<EOF
1725144d 11003#line 11004 "configure"
ab9b9eab 11004#include "confdefs.h"
698dcdb6
VZ
11005#include <$x_direct_test_include>
11006EOF
11007ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 11008{ (eval echo configure:11009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11009ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11010if test -z "$ac_err"; then
11011 rm -rf conftest*
ab9b9eab
VZ
11012 # We can compile using X headers with no special include directory.
11013ac_x_includes=
11014else
698dcdb6
VZ
11015 echo "$ac_err" >&5
11016 echo "configure: failed program was:" >&5
ab9b9eab 11017 cat conftest.$ac_ext >&5
698dcdb6
VZ
11018 rm -rf conftest*
11019 # Look for the header file in a standard set of common directories.
11020# Check X11 before X11Rn because it is often a symlink to the current release.
11021 for ac_dir in \
11022 /usr/X11/include \
11023 /usr/X11R6/include \
11024 /usr/X11R5/include \
11025 /usr/X11R4/include \
11026 \
11027 /usr/include/X11 \
11028 /usr/include/X11R6 \
11029 /usr/include/X11R5 \
11030 /usr/include/X11R4 \
11031 \
11032 /usr/local/X11/include \
11033 /usr/local/X11R6/include \
11034 /usr/local/X11R5/include \
11035 /usr/local/X11R4/include \
11036 \
11037 /usr/local/include/X11 \
11038 /usr/local/include/X11R6 \
11039 /usr/local/include/X11R5 \
11040 /usr/local/include/X11R4 \
11041 \
11042 /usr/X386/include \
11043 /usr/x386/include \
11044 /usr/XFree86/include/X11 \
11045 \
11046 /usr/include \
11047 /usr/local/include \
11048 /usr/unsupported/include \
11049 /usr/athena/include \
11050 /usr/local/x11r5/include \
11051 /usr/lpp/Xamples/include \
11052 \
11053 /usr/openwin/include \
11054 /usr/openwin/share/include \
11055 ; \
11056 do
11057 if test -r "$ac_dir/$x_direct_test_include"; then
11058 ac_x_includes=$ac_dir
11059 break
11060 fi
11061 done
ab9b9eab 11062fi
698dcdb6
VZ
11063rm -f conftest*
11064fi # $ac_x_includes = NO
10f2d63a 11065
698dcdb6 11066if test "$ac_x_libraries" = NO; then
ab9b9eab 11067 # Check for the libraries.
698dcdb6
VZ
11068
11069 test -z "$x_direct_test_library" && x_direct_test_library=Xt
11070 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
11071
ab9b9eab
VZ
11072 # See if we find them without any special options.
11073 # Don't add to $LIBS permanently.
698dcdb6
VZ
11074 ac_save_LIBS="$LIBS"
11075 LIBS="-l$x_direct_test_library $LIBS"
11076cat > conftest.$ac_ext <<EOF
1725144d 11077#line 11078 "configure"
ab9b9eab 11078#include "confdefs.h"
698dcdb6
VZ
11079
11080int main() {
11081${x_direct_test_function}()
11082; return 0; }
11083EOF
1725144d 11084if { (eval echo configure:11085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11085 rm -rf conftest*
11086 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
11087# We can link X programs with no special library path.
11088ac_x_libraries=
11089else
698dcdb6
VZ
11090 echo "configure: failed program was:" >&5
11091 cat conftest.$ac_ext >&5
11092 rm -rf conftest*
11093 LIBS="$ac_save_LIBS"
11094# First see if replacing the include by lib works.
11095# Check X11 before X11Rn because it is often a symlink to the current release.
11096for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
11097 /usr/X11/lib \
11098 /usr/X11R6/lib \
11099 /usr/X11R5/lib \
11100 /usr/X11R4/lib \
11101 \
11102 /usr/lib/X11 \
11103 /usr/lib/X11R6 \
11104 /usr/lib/X11R5 \
11105 /usr/lib/X11R4 \
11106 \
11107 /usr/local/X11/lib \
11108 /usr/local/X11R6/lib \
11109 /usr/local/X11R5/lib \
11110 /usr/local/X11R4/lib \
11111 \
11112 /usr/local/lib/X11 \
11113 /usr/local/lib/X11R6 \
11114 /usr/local/lib/X11R5 \
11115 /usr/local/lib/X11R4 \
11116 \
11117 /usr/X386/lib \
11118 /usr/x386/lib \
11119 /usr/XFree86/lib/X11 \
11120 \
11121 /usr/lib \
11122 /usr/local/lib \
11123 /usr/unsupported/lib \
11124 /usr/athena/lib \
11125 /usr/local/x11r5/lib \
11126 /usr/lpp/Xamples/lib \
11127 /lib/usr/lib/X11 \
11128 \
11129 /usr/openwin/lib \
11130 /usr/openwin/share/lib \
11131 ; \
ab9b9eab
VZ
11132do
11133 for ac_extension in a so sl; do
698dcdb6 11134 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
11135 ac_x_libraries=$ac_dir
11136 break 2
10f2d63a 11137 fi
10f2d63a 11138 done
ab9b9eab
VZ
11139done
11140fi
698dcdb6
VZ
11141rm -f conftest*
11142fi # $ac_x_libraries = NO
10f2d63a 11143
698dcdb6 11144if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
11145 # Didn't find X anywhere. Cache the known absence of X.
11146 ac_cv_have_x="have_x=no"
11147else
11148 # Record where we found X for the cache.
11149 ac_cv_have_x="have_x=yes \
11150 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11151fi
11152fi
10f2d63a 11153 fi
ab9b9eab
VZ
11154 eval "$ac_cv_have_x"
11155fi # $with_x != no
10f2d63a 11156
ab9b9eab 11157if test "$have_x" != yes; then
698dcdb6 11158 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
11159 no_x=yes
11160else
11161 # If each of the values was on the command line, it overrides each guess.
11162 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11163 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11164 # Update the cache value to reflect the command line values.
11165 ac_cv_have_x="have_x=yes \
11166 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 11167 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 11168fi
10f2d63a 11169
ab9b9eab
VZ
11170if test "$no_x" = yes; then
11171 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 11172 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
11173#define X_DISPLAY_MISSING 1
11174EOF
10f2d63a 11175
ab9b9eab
VZ
11176 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11177else
11178 if test -n "$x_includes"; then
11179 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
11180 fi
11181
ab9b9eab
VZ
11182 # It would also be nice to do this for all -L options, not just this one.
11183 if test -n "$x_libraries"; then
11184 X_LIBS="$X_LIBS -L$x_libraries"
11185 # For Solaris; some versions of Sun CC require a space after -R and
11186 # others require no space. Words are not sufficient . . . .
698dcdb6 11187 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 11188 "SunOS 5"*)
698dcdb6 11189 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1725144d 11190echo "configure:11191: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
11191 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
11192 cat > conftest.$ac_ext <<EOF
1725144d 11193#line 11194 "configure"
ab9b9eab 11194#include "confdefs.h"
10f2d63a 11195
698dcdb6 11196int main() {
788deba1 11197
698dcdb6
VZ
11198; return 0; }
11199EOF
1725144d 11200if { (eval echo configure:11201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 11201 rm -rf conftest*
ab9b9eab
VZ
11202 ac_R_nospace=yes
11203else
698dcdb6
VZ
11204 echo "configure: failed program was:" >&5
11205 cat conftest.$ac_ext >&5
11206 rm -rf conftest*
11207 ac_R_nospace=no
ab9b9eab 11208fi
698dcdb6 11209rm -f conftest*
ab9b9eab 11210 if test $ac_R_nospace = yes; then
698dcdb6 11211 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11212 X_LIBS="$X_LIBS -R$x_libraries"
11213 else
11214 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 11215 cat > conftest.$ac_ext <<EOF
1725144d 11216#line 11217 "configure"
ab9b9eab 11217#include "confdefs.h"
788deba1 11218
698dcdb6 11219int main() {
ab9b9eab 11220
698dcdb6
VZ
11221; return 0; }
11222EOF
1725144d 11223if { (eval echo configure:11224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 11224 rm -rf conftest*
ab9b9eab
VZ
11225 ac_R_space=yes
11226else
698dcdb6
VZ
11227 echo "configure: failed program was:" >&5
11228 cat conftest.$ac_ext >&5
11229 rm -rf conftest*
11230 ac_R_space=no
ab9b9eab 11231fi
698dcdb6 11232rm -f conftest*
ab9b9eab 11233 if test $ac_R_space = yes; then
698dcdb6 11234 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
11235 X_LIBS="$X_LIBS -R $x_libraries"
11236 else
698dcdb6 11237 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
11238 fi
11239 fi
698dcdb6 11240 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
11241 esac
11242 fi
11243
11244 # Check for system-dependent libraries X programs must link with.
11245 # Do this before checking for the system-independent R6 libraries
11246 # (-lICE), since we may need -lsocket or whatever for X linking.
11247
11248 if test "$ISC" = yes; then
11249 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11250 else
698dcdb6
VZ
11251 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
11252 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 11253 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 11254 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1725144d 11255echo "configure:11256: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
11256ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11257if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11258 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11259else
698dcdb6 11260 ac_save_LIBS="$LIBS"
ab9b9eab 11261LIBS="-ldnet $LIBS"
698dcdb6 11262cat > conftest.$ac_ext <<EOF
1725144d 11263#line 11264 "configure"
ab9b9eab
VZ
11264#include "confdefs.h"
11265/* Override any gcc2 internal prototype to avoid an error. */
11266/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11267 builtin and then its argument prototype would still apply. */
11268char dnet_ntoa();
11269
11270int main() {
11271dnet_ntoa()
11272; return 0; }
11273EOF
1725144d 11274if { (eval echo configure:11275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11275 rm -rf conftest*
11276 eval "ac_cv_lib_$ac_lib_var=yes"
11277else
11278 echo "configure: failed program was:" >&5
11279 cat conftest.$ac_ext >&5
11280 rm -rf conftest*
11281 eval "ac_cv_lib_$ac_lib_var=no"
11282fi
11283rm -f conftest*
11284LIBS="$ac_save_LIBS"
11285
11286fi
11287if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11288 echo "$ac_t""yes" 1>&6
ab9b9eab 11289 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
11290else
11291 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11292fi
11293
11294 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 11295 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1725144d 11296echo "configure:11297: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
11297ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11298if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11299 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11300else
698dcdb6 11301 ac_save_LIBS="$LIBS"
ab9b9eab 11302LIBS="-ldnet_stub $LIBS"
698dcdb6 11303cat > conftest.$ac_ext <<EOF
1725144d 11304#line 11305 "configure"
ab9b9eab
VZ
11305#include "confdefs.h"
11306/* Override any gcc2 internal prototype to avoid an error. */
11307/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11308 builtin and then its argument prototype would still apply. */
11309char dnet_ntoa();
11310
11311int main() {
11312dnet_ntoa()
11313; return 0; }
11314EOF
1725144d 11315if { (eval echo configure:11316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11316 rm -rf conftest*
11317 eval "ac_cv_lib_$ac_lib_var=yes"
11318else
11319 echo "configure: failed program was:" >&5
11320 cat conftest.$ac_ext >&5
11321 rm -rf conftest*
11322 eval "ac_cv_lib_$ac_lib_var=no"
11323fi
11324rm -f conftest*
11325LIBS="$ac_save_LIBS"
11326
11327fi
11328if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11329 echo "$ac_t""yes" 1>&6
ab9b9eab 11330 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
11331else
11332 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11333fi
11334
11335 fi
11336
11337 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11338 # to get the SysV transport functions.
698dcdb6 11339 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
11340 # needs -lnsl.
11341 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
11342 # on Irix 5.2, according to dickey@clark.net.
11343 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1725144d 11344echo "configure:11345: checking for gethostbyname" >&5
698dcdb6
VZ
11345if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
11346 echo $ac_n "(cached) $ac_c" 1>&6
11347else
11348 cat > conftest.$ac_ext <<EOF
1725144d 11349#line 11350 "configure"
ab9b9eab
VZ
11350#include "confdefs.h"
11351/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11352 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
11353#include <assert.h>
11354/* Override any gcc2 internal prototype to avoid an error. */
11355/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11356 builtin and then its argument prototype would still apply. */
11357char gethostbyname();
11358
11359int main() {
ab9b9eab
VZ
11360
11361/* The GNU C library defines this for functions which it implements
11362 to always fail with ENOSYS. Some functions are actually named
11363 something starting with __ and the normal name is an alias. */
11364#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11365choke me
11366#else
698dcdb6 11367gethostbyname();
ab9b9eab
VZ
11368#endif
11369
698dcdb6
VZ
11370; return 0; }
11371EOF
1725144d 11372if { (eval echo configure:11373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11373 rm -rf conftest*
11374 eval "ac_cv_func_gethostbyname=yes"
11375else
11376 echo "configure: failed program was:" >&5
11377 cat conftest.$ac_ext >&5
11378 rm -rf conftest*
11379 eval "ac_cv_func_gethostbyname=no"
11380fi
11381rm -f conftest*
11382fi
11383
11384if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
11385 echo "$ac_t""yes" 1>&6
11386 :
11387else
11388 echo "$ac_t""no" 1>&6
11389fi
ab9b9eab
VZ
11390
11391 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 11392 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1725144d 11393echo "configure:11394: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
11394ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
11395if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11396 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11397else
698dcdb6 11398 ac_save_LIBS="$LIBS"
ab9b9eab 11399LIBS="-lnsl $LIBS"
698dcdb6 11400cat > conftest.$ac_ext <<EOF
1725144d 11401#line 11402 "configure"
ab9b9eab
VZ
11402#include "confdefs.h"
11403/* Override any gcc2 internal prototype to avoid an error. */
11404/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11405 builtin and then its argument prototype would still apply. */
11406char gethostbyname();
6232543b 11407
698dcdb6
VZ
11408int main() {
11409gethostbyname()
11410; return 0; }
11411EOF
1725144d 11412if { (eval echo configure:11413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11413 rm -rf conftest*
11414 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 11415else
698dcdb6
VZ
11416 echo "configure: failed program was:" >&5
11417 cat conftest.$ac_ext >&5
11418 rm -rf conftest*
11419 eval "ac_cv_lib_$ac_lib_var=no"
11420fi
11421rm -f conftest*
11422LIBS="$ac_save_LIBS"
1e487827 11423
698dcdb6
VZ
11424fi
11425if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11426 echo "$ac_t""yes" 1>&6
11427 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11428else
11429 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11430fi
11431
11432 fi
11433
11434 # lieder@skyler.mavd.honeywell.com says without -lsocket,
11435 # socket/setsockopt and other routines are undefined under SCO ODT
11436 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
11437 # on later versions), says simon@lia.di.epfl.ch: it contains
11438 # gethostby* variants that don't use the nameserver (or something).
11439 # -lsocket must be given before -lnsl if both are needed.
11440 # We assume that if connect needs -lnsl, so does gethostbyname.
11441 echo $ac_n "checking for connect""... $ac_c" 1>&6
1725144d 11442echo "configure:11443: checking for connect" >&5
698dcdb6
VZ
11443if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
11444 echo $ac_n "(cached) $ac_c" 1>&6
11445else
11446 cat > conftest.$ac_ext <<EOF
1725144d 11447#line 11448 "configure"
ab9b9eab
VZ
11448#include "confdefs.h"
11449/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11450 which can conflict with char connect(); below. */
ab9b9eab
VZ
11451#include <assert.h>
11452/* Override any gcc2 internal prototype to avoid an error. */
11453/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11454 builtin and then its argument prototype would still apply. */
11455char connect();
11456
11457int main() {
ab9b9eab
VZ
11458
11459/* The GNU C library defines this for functions which it implements
11460 to always fail with ENOSYS. Some functions are actually named
11461 something starting with __ and the normal name is an alias. */
11462#if defined (__stub_connect) || defined (__stub___connect)
11463choke me
11464#else
698dcdb6 11465connect();
ab9b9eab
VZ
11466#endif
11467
698dcdb6
VZ
11468; return 0; }
11469EOF
1725144d 11470if { (eval echo configure:11471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11471 rm -rf conftest*
11472 eval "ac_cv_func_connect=yes"
11473else
11474 echo "configure: failed program was:" >&5
11475 cat conftest.$ac_ext >&5
11476 rm -rf conftest*
11477 eval "ac_cv_func_connect=no"
11478fi
11479rm -f conftest*
11480fi
11481
11482if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
11483 echo "$ac_t""yes" 1>&6
11484 :
11485else
11486 echo "$ac_t""no" 1>&6
11487fi
ab9b9eab
VZ
11488
11489 if test $ac_cv_func_connect = no; then
698dcdb6 11490 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1725144d 11491echo "configure:11492: checking for connect in -lsocket" >&5
698dcdb6
VZ
11492ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
11493if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11494 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11495else
698dcdb6 11496 ac_save_LIBS="$LIBS"
ab9b9eab 11497LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 11498cat > conftest.$ac_ext <<EOF
1725144d 11499#line 11500 "configure"
ab9b9eab
VZ
11500#include "confdefs.h"
11501/* Override any gcc2 internal prototype to avoid an error. */
11502/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11503 builtin and then its argument prototype would still apply. */
11504char connect();
11505
11506int main() {
11507connect()
11508; return 0; }
11509EOF
1725144d 11510if { (eval echo configure:11511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11511 rm -rf conftest*
11512 eval "ac_cv_lib_$ac_lib_var=yes"
11513else
11514 echo "configure: failed program was:" >&5
11515 cat conftest.$ac_ext >&5
11516 rm -rf conftest*
11517 eval "ac_cv_lib_$ac_lib_var=no"
11518fi
11519rm -f conftest*
11520LIBS="$ac_save_LIBS"
11521
11522fi
11523if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11524 echo "$ac_t""yes" 1>&6
ab9b9eab 11525 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
11526else
11527 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11528fi
11529
11530 fi
11531
698dcdb6
VZ
11532 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
11533 echo $ac_n "checking for remove""... $ac_c" 1>&6
1725144d 11534echo "configure:11535: checking for remove" >&5
698dcdb6
VZ
11535if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
11536 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11537else
698dcdb6 11538 cat > conftest.$ac_ext <<EOF
1725144d 11539#line 11540 "configure"
ab9b9eab
VZ
11540#include "confdefs.h"
11541/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11542 which can conflict with char remove(); below. */
ab9b9eab
VZ
11543#include <assert.h>
11544/* Override any gcc2 internal prototype to avoid an error. */
11545/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11546 builtin and then its argument prototype would still apply. */
11547char remove();
11548
11549int main() {
ab9b9eab
VZ
11550
11551/* The GNU C library defines this for functions which it implements
11552 to always fail with ENOSYS. Some functions are actually named
11553 something starting with __ and the normal name is an alias. */
11554#if defined (__stub_remove) || defined (__stub___remove)
11555choke me
11556#else
698dcdb6 11557remove();
ab9b9eab
VZ
11558#endif
11559
698dcdb6
VZ
11560; return 0; }
11561EOF
1725144d 11562if { (eval echo configure:11563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11563 rm -rf conftest*
11564 eval "ac_cv_func_remove=yes"
11565else
11566 echo "configure: failed program was:" >&5
11567 cat conftest.$ac_ext >&5
11568 rm -rf conftest*
11569 eval "ac_cv_func_remove=no"
11570fi
11571rm -f conftest*
11572fi
11573
11574if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
11575 echo "$ac_t""yes" 1>&6
11576 :
11577else
11578 echo "$ac_t""no" 1>&6
11579fi
ab9b9eab
VZ
11580
11581 if test $ac_cv_func_remove = no; then
698dcdb6 11582 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1725144d 11583echo "configure:11584: checking for remove in -lposix" >&5
698dcdb6
VZ
11584ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
11585if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11586 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11587else
698dcdb6 11588 ac_save_LIBS="$LIBS"
ab9b9eab 11589LIBS="-lposix $LIBS"
698dcdb6 11590cat > conftest.$ac_ext <<EOF
1725144d 11591#line 11592 "configure"
ab9b9eab
VZ
11592#include "confdefs.h"
11593/* Override any gcc2 internal prototype to avoid an error. */
11594/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11595 builtin and then its argument prototype would still apply. */
11596char remove();
11597
11598int main() {
11599remove()
11600; return 0; }
11601EOF
1725144d 11602if { (eval echo configure:11603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11603 rm -rf conftest*
11604 eval "ac_cv_lib_$ac_lib_var=yes"
11605else
11606 echo "configure: failed program was:" >&5
11607 cat conftest.$ac_ext >&5
11608 rm -rf conftest*
11609 eval "ac_cv_lib_$ac_lib_var=no"
11610fi
11611rm -f conftest*
11612LIBS="$ac_save_LIBS"
11613
11614fi
11615if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11616 echo "$ac_t""yes" 1>&6
ab9b9eab 11617 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
11618else
11619 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11620fi
11621
11622 fi
11623
11624 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 11625 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1725144d 11626echo "configure:11627: checking for shmat" >&5
698dcdb6
VZ
11627if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
11628 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11629else
698dcdb6 11630 cat > conftest.$ac_ext <<EOF
1725144d 11631#line 11632 "configure"
ab9b9eab
VZ
11632#include "confdefs.h"
11633/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11634 which can conflict with char shmat(); below. */
ab9b9eab
VZ
11635#include <assert.h>
11636/* Override any gcc2 internal prototype to avoid an error. */
11637/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11638 builtin and then its argument prototype would still apply. */
11639char shmat();
11640
11641int main() {
ab9b9eab
VZ
11642
11643/* The GNU C library defines this for functions which it implements
11644 to always fail with ENOSYS. Some functions are actually named
11645 something starting with __ and the normal name is an alias. */
11646#if defined (__stub_shmat) || defined (__stub___shmat)
11647choke me
11648#else
698dcdb6 11649shmat();
ab9b9eab
VZ
11650#endif
11651
698dcdb6
VZ
11652; return 0; }
11653EOF
1725144d 11654if { (eval echo configure:11655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11655 rm -rf conftest*
11656 eval "ac_cv_func_shmat=yes"
11657else
11658 echo "configure: failed program was:" >&5
11659 cat conftest.$ac_ext >&5
11660 rm -rf conftest*
11661 eval "ac_cv_func_shmat=no"
11662fi
11663rm -f conftest*
11664fi
11665
11666if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
11667 echo "$ac_t""yes" 1>&6
11668 :
11669else
11670 echo "$ac_t""no" 1>&6
11671fi
ab9b9eab
VZ
11672
11673 if test $ac_cv_func_shmat = no; then
698dcdb6 11674 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1725144d 11675echo "configure:11676: checking for shmat in -lipc" >&5
698dcdb6
VZ
11676ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
11677if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11678 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11679else
698dcdb6 11680 ac_save_LIBS="$LIBS"
ab9b9eab 11681LIBS="-lipc $LIBS"
698dcdb6 11682cat > conftest.$ac_ext <<EOF
1725144d 11683#line 11684 "configure"
ab9b9eab
VZ
11684#include "confdefs.h"
11685/* Override any gcc2 internal prototype to avoid an error. */
11686/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11687 builtin and then its argument prototype would still apply. */
11688char shmat();
11689
11690int main() {
11691shmat()
11692; return 0; }
11693EOF
1725144d 11694if { (eval echo configure:11695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11695 rm -rf conftest*
11696 eval "ac_cv_lib_$ac_lib_var=yes"
11697else
11698 echo "configure: failed program was:" >&5
11699 cat conftest.$ac_ext >&5
11700 rm -rf conftest*
11701 eval "ac_cv_lib_$ac_lib_var=no"
11702fi
11703rm -f conftest*
11704LIBS="$ac_save_LIBS"
11705
11706fi
11707if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11708 echo "$ac_t""yes" 1>&6
ab9b9eab 11709 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
11710else
11711 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11712fi
11713
11714 fi
11715 fi
11716
11717 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 11718 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
11719 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
11720 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
11721 # check for ICE first), but we must link in the order -lSM -lICE or
11722 # we get undefined symbols. So assume we have SM if we have ICE.
11723 # These have to be linked with before -lX11, unlike the other
11724 # libraries we check for below, so use a different variable.
698dcdb6
VZ
11725 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
11726 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1725144d 11727echo "configure:11728: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
11728ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
11729if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11730 echo $ac_n "(cached) $ac_c" 1>&6
11731else
11732 ac_save_LIBS="$LIBS"
ab9b9eab 11733LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 11734cat > conftest.$ac_ext <<EOF
1725144d 11735#line 11736 "configure"
ab9b9eab
VZ
11736#include "confdefs.h"
11737/* Override any gcc2 internal prototype to avoid an error. */
11738/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11739 builtin and then its argument prototype would still apply. */
11740char IceConnectionNumber();
11741
11742int main() {
11743IceConnectionNumber()
11744; return 0; }
11745EOF
1725144d 11746if { (eval echo configure:11747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11747 rm -rf conftest*
11748 eval "ac_cv_lib_$ac_lib_var=yes"
11749else
11750 echo "configure: failed program was:" >&5
11751 cat conftest.$ac_ext >&5
11752 rm -rf conftest*
11753 eval "ac_cv_lib_$ac_lib_var=no"
11754fi
11755rm -f conftest*
11756LIBS="$ac_save_LIBS"
11757
11758fi
11759if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11760 echo "$ac_t""yes" 1>&6
ab9b9eab 11761 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
11762else
11763 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11764fi
11765
698dcdb6 11766 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
11767
11768fi
11769
11770
1e6feb95
VZ
11771 if test "$no_x" = "yes"; then
11772 { echo "configure: error: X11 not found" 1>&2; exit 1; }
11773 fi
ab9b9eab 11774
1e6feb95
VZ
11775 GUI_TK_LIBRARY="$X_LIBS"
11776 TOOLKIT_INCLUDE="$X_CFLAGS"
1e6feb95 11777 AFMINSTALL=afminstall
1e6feb95 11778 COMPILED_X_PROGRAM=0
cd6d6d5b 11779
1e6feb95 11780 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
1725144d 11781echo "configure:11782: checking for Motif/Lesstif headers" >&5
1e6feb95 11782
ab9b9eab
VZ
11783ac_find_includes=
11784for ac_dir in $SEARCH_INCLUDE;
11785 do
11786 if test -f "$ac_dir/Xm/Xm.h"; then
11787 ac_find_includes=$ac_dir
11788 break
11789 fi
11790 done
11791
1e6feb95
VZ
11792 if test "$ac_find_includes" != "" ; then
11793 echo "$ac_t""found $ac_find_includes" 1>&6
11794 else
11795 cat > conftest.$ac_ext <<EOF
1725144d 11796#line 11797 "configure"
cd6d6d5b
VZ
11797#include "confdefs.h"
11798
1e6feb95
VZ
11799 #include <Xm/Xm.h>
11800
698dcdb6 11801int main() {
cd6d6d5b 11802
1e6feb95 11803 int version;
1e6feb95
VZ
11804 version = xmUseVersion;
11805
698dcdb6
VZ
11806; return 0; }
11807EOF
1725144d 11808if { (eval echo configure:11809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
11809 rm -rf conftest*
11810
1e6feb95
VZ
11811 echo "$ac_t""found in default search path" 1>&6
11812 COMPILED_X_PROGRAM=1
11813
cd6d6d5b 11814else
698dcdb6
VZ
11815 echo "configure: failed program was:" >&5
11816 cat conftest.$ac_ext >&5
11817 rm -rf conftest*
11818
1e6feb95
VZ
11819 echo "$ac_t""no" 1>&6
11820 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
11821
698dcdb6 11822
cd6d6d5b 11823fi
698dcdb6 11824rm -f conftest*
1e6feb95 11825 fi
ab9b9eab 11826
1e6feb95
VZ
11827 if test "$COMPILED_X_PROGRAM" = 0; then
11828 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
1725144d 11829echo "configure:11830: checking for Motif/Lesstif library" >&5
1e6feb95 11830
ab9b9eab
VZ
11831ac_find_libraries=
11832for ac_dir in $SEARCH_LIB;
11833 do
f11bdd03 11834 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
11835 if test -f "$ac_dir/libXm.$ac_extension"; then
11836 ac_find_libraries=$ac_dir
11837 break 2
11838 fi
11839 done
11840 done
11841
1e6feb95
VZ
11842 if test "$ac_find_libraries" != "" ; then
11843
ab9b9eab
VZ
11844 ac_path_to_include=$ac_find_includes
11845 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
11846 result=$?
11847 if test $result = 0; then
11848 ac_path_to_include=""
11849 else
62d0491b 11850 ac_path_to_include=" -I$ac_find_includes"
ab9b9eab
VZ
11851 fi
11852
1e6feb95 11853
ab9b9eab
VZ
11854 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
11855 result=$?
11856 if test $result = 0; then
11857 ac_path_to_link=""
11858 else
62d0491b 11859 ac_path_to_link=" -L$ac_find_libraries"
ab9b9eab
VZ
11860 fi
11861
698dcdb6 11862
62d0491b
RL
11863 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
11864 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
1e6feb95
VZ
11865 echo "$ac_t""found at $ac_find_libraries" 1>&6
11866 else
11867 cat > conftest.$ac_ext <<EOF
1725144d 11868#line 11869 "configure"
cd6d6d5b 11869#include "confdefs.h"
ab9b9eab 11870
1e6feb95
VZ
11871 #include <Xm/Xm.h>
11872
698dcdb6 11873int main() {
ab9b9eab 11874
1e6feb95 11875 int version;
1e6feb95
VZ
11876 version = xmUseVersion;
11877
698dcdb6
VZ
11878; return 0; }
11879EOF
1725144d 11880if { (eval echo configure:11881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
11881 rm -rf conftest*
11882
1e6feb95
VZ
11883 echo "$ac_t""found in default search path" 1>&6
11884 COMPILED_X_PROGRAM=1
11885
cd6d6d5b 11886else
698dcdb6
VZ
11887 echo "configure: failed program was:" >&5
11888 cat conftest.$ac_ext >&5
11889 rm -rf conftest*
11890
1e6feb95
VZ
11891 echo "$ac_t""no" 1>&6
11892 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
11893
698dcdb6 11894
cd6d6d5b 11895fi
698dcdb6 11896rm -f conftest*
1e6feb95 11897 fi
cd6d6d5b 11898 fi
ab9b9eab 11899
3d63bc3a 11900 xpm_link=
1e6feb95 11901 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
1725144d 11902echo "configure:11903: checking for Xpm library" >&5
1e6feb95 11903
ab9b9eab
VZ
11904ac_find_libraries=
11905for ac_dir in $SEARCH_LIB;
11906 do
f11bdd03 11907 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
11908 if test -f "$ac_dir/libXpm.$ac_extension"; then
11909 ac_find_libraries=$ac_dir
11910 break 2
11911 fi
11912 done
11913 done
11914
1e6feb95
VZ
11915 if test "$ac_find_libraries" != "" ; then
11916
ab9b9eab
VZ
11917 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
11918 result=$?
11919 if test $result = 0; then
11920 ac_path_to_link=""
11921 else
62d0491b 11922 ac_path_to_link=" -L$ac_find_libraries"
ab9b9eab
VZ
11923 fi
11924
62d0491b 11925 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
3d63bc3a 11926 xpm_link=" -lXpm"
1e6feb95 11927 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
11928#define wxHAVE_LIB_XPM 1
11929EOF
11930
1e6feb95
VZ
11931 echo "$ac_t""found at $ac_find_libraries" 1>&6
11932 else
11933 cat > conftest.$ac_ext <<EOF
1725144d 11934#line 11935 "configure"
cd6d6d5b
VZ
11935#include "confdefs.h"
11936
1e6feb95
VZ
11937 #include <X11/xpm.h>
11938
698dcdb6 11939int main() {
cd6d6d5b 11940
1e6feb95 11941 int version;
1e6feb95
VZ
11942 version = XpmLibraryVersion();
11943
698dcdb6
VZ
11944; return 0; }
11945EOF
1725144d 11946if { (eval echo configure:11947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
11947 rm -rf conftest*
11948
3d63bc3a 11949 xpm_link=" -lXpm"
3a922bb4 11950 cat >> confdefs.h <<\EOF
3ace2e6d
SN
11951#define wxHAVE_LIB_XPM 1
11952EOF
11953
1e6feb95
VZ
11954 echo "$ac_t""found in default search path" 1>&6
11955 COMPILED_X_PROGRAM=0
11956
cd6d6d5b 11957else
698dcdb6
VZ
11958 echo "configure: failed program was:" >&5
11959 cat conftest.$ac_ext >&5
11960 rm -rf conftest*
11961
1e6feb95
VZ
11962 echo "$ac_t""no" 1>&6
11963 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
11964
698dcdb6 11965
cd6d6d5b 11966fi
698dcdb6 11967rm -f conftest*
1e6feb95
VZ
11968 fi
11969
3d63bc3a 11970 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
334f0d2c 11971 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
1e6feb95
VZ
11972 TOOLKIT=MOTIF
11973 GUIDIST=MOTIF_DIST
ab9b9eab
VZ
11974 fi
11975
683dccda
GD
11976 if test "$wxUSE_MAC" = 1; then
11977 if test "$wxUSE_PRECOMP" = "yes"; then
3d63bc3a 11978 CPPFLAGS="$CPPFLAGS -cpp-precomp"
683dccda 11979 fi
3d63bc3a
RL
11980 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
11981 CFLAGS="$CFLAGS -fpascal-strings"
11982 CXXFLAGS="$CXXFLAGS -fpascal-strings"
11983 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -DTARGET_CARBON"
d08b457b 11984
13c0541d 11985 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
1e6feb95 11986 TOOLKIT=MAC
683dccda 11987 GUIDIST=MACX_DIST
1e6feb95 11988 fi
10f2d63a 11989
1e6feb95
VZ
11990 if test "$wxUSE_PM" = 1; then
11991 TOOLKIT=PM
11992 GUIDIST=GTK_DIST
11993 fi
b4085ce6 11994
3a922bb4 11995 if test "$TOOLKIT" = "PM" ; then
1e6feb95 11996 TOOLKIT_DIR="os2"
3a922bb4
RL
11997 else
11998 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
1e6feb95 11999 fi
e07802fc 12000
3a922bb4 12001 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
1e6feb95 12002
3a922bb4
RL
12003 if test "$wxUSE_UNIVERSAL" = "yes"; then
12004 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
12005 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
12006 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
12007 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
12008 WIDGET_SET=univ
f6bcfd97 12009 else
3a922bb4 12010 ALL_OBJECTS="\$(GUIOBJS)"
1e6feb95
VZ
12011 fi
12012
ba0e650c 12013 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
1e6feb95 12014
f9bc1684 12015 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
1e6feb95
VZ
12016 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
12017 fi
12018
12019 if test "$wxUSE_HTML" = "yes"; then
12020 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
12021 fi
3fcdd07b 12022
3a922bb4
RL
12023 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
12024 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
831b3152 12025 fi
4f14bcd8 12026 if test "$wxUSE_LIBJPEG" = "builtin" ; then
2224580a 12027 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d 12028 fi
4f14bcd8 12029 if test "$wxUSE_LIBTIFF" = "builtin" ; then
d9d8273d
RR
12030 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
12031 fi
4f14bcd8 12032 if test "$wxUSE_LIBPNG" = "builtin" ; then
d9d8273d
RR
12033 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
12034 fi
4f14bcd8 12035 if test "$wxUSE_FREETYPE" = "builtin" ; then
3fed1840
RR
12036 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
12037 fi
2224580a 12038
2224580a
VZ
12039 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
12040 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 12041else
dad6c0ea
VZ
12042 USE_GUI=0
12043
3a922bb4 12044 TOOLKIT_DIR="base"
f6bcfd97 12045
3a922bb4
RL
12046 if test "$USE_WIN32" = 1 ; then
12047 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
12048 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
0b2effe9 12049
3a922bb4 12050 TOOLKIT="MSW"
f6bcfd97 12051 else
3a922bb4
RL
12052 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
12053 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
f6bcfd97
BP
12054 fi
12055
831b3152 12056 PORT_FILES="\${top_srcdir}/src/files.lst"
2224580a
VZ
12057
12058 GUIDIST="BASE_DIST"
12059 DISTDIR="wxBase"
10f2d63a
VZ
12060fi
12061
4f14bcd8 12062if test "$wxUSE_REGEX" = "builtin" ; then
3a922bb4
RL
12063 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
12064fi
4f14bcd8 12065if test "$wxUSE_ZLIB" = "builtin" ; then
3a922bb4
RL
12066 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
12067fi
10f2d63a 12068
3a922bb4 12069if test "$wxUSE_OPENGL" = "yes"; then
62d0491b
RL
12070 if test "$wxUSE_MAC" = 1; then
12071 OPENGL_LIBS="-framework OpenGL -framework AGL"
12072 else
570cb8cb 12073
62d0491b 12074 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
3a922bb4 12075echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
1725144d 12076echo "configure:12077: checking for GL/gl.h" >&5
3a922bb4
RL
12077if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12078 echo $ac_n "(cached) $ac_c" 1>&6
12079else
12080 cat > conftest.$ac_ext <<EOF
1725144d 12081#line 12082 "configure"
3a922bb4
RL
12082#include "confdefs.h"
12083#include <GL/gl.h>
12084EOF
12085ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 12086{ (eval echo configure:12087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
12087ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12088if test -z "$ac_err"; then
12089 rm -rf conftest*
12090 eval "ac_cv_header_$ac_safe=yes"
12091else
12092 echo "$ac_err" >&5
12093 echo "configure: failed program was:" >&5
12094 cat conftest.$ac_ext >&5
12095 rm -rf conftest*
12096 eval "ac_cv_header_$ac_safe=no"
12097fi
12098rm -f conftest*
12099fi
12100if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12101 echo "$ac_t""yes" 1>&6
12102
1352efdf 12103 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
1725144d 12104echo "configure:12105: checking for -lGL" >&5
57964555 12105
62d0491b
RL
12106ac_find_libraries=
12107for ac_dir in $SEARCH_LIB;
12108 do
12109 for ac_extension in a so sl dylib; do
12110 if test -f "$ac_dir/libGL.$ac_extension"; then
12111 ac_find_libraries=$ac_dir
12112 break 2
12113 fi
12114 done
12115 done
3a922bb4 12116
62d0491b
RL
12117 if test "$ac_find_libraries" != "" ; then
12118
12119 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
12120 result=$?
12121 if test $result = 0; then
12122 ac_path_to_link=""
12123 else
12124 ac_path_to_link=" -L$ac_find_libraries"
12125 fi
3a922bb4 12126
62d0491b
RL
12127 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
12128 OPENGL_LIBS="-lGL -lGLU"
1352efdf 12129 echo "$ac_t""yes" 1>&6
62d0491b 12130 else
1352efdf
RL
12131 echo "$ac_t""no" 1>&6
12132 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
1725144d 12133echo "configure:12134: checking for -lMesaGL" >&5
62d0491b
RL
12134
12135ac_find_libraries=
12136for ac_dir in $SEARCH_LIB;
12137 do
12138 for ac_extension in a so sl dylib; do
12139 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
12140 ac_find_libraries=$ac_dir
12141 break 2
12142 fi
12143 done
12144 done
3a922bb4 12145
62d0491b 12146 if test "$ac_find_libraries" != "" ; then
57964555 12147
62d0491b
RL
12148 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
12149 result=$?
12150 if test $result = 0; then
12151 ac_path_to_link=""
12152 else
12153 ac_path_to_link=" -L$ac_find_libraries"
12154 fi
3a922bb4 12155
62d0491b
RL
12156 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
12157 OPENGL_LIBS="-lMesaGL -lMesaGLU"
1352efdf
RL
12158 echo "$ac_t""yes" 1>&6
12159 else
12160 echo "$ac_t""no" 1>&6
62d0491b
RL
12161 fi
12162 fi
12163
3a922bb4
RL
12164else
12165 echo "$ac_t""no" 1>&6
3a922bb4
RL
12166fi
12167
6f754473 12168
62d0491b
RL
12169
12170# AC_CHECK_HEADER(GL/gl.h,
12171# [
12172# AC_CHECK_LIB(GL, glFlush,
12173# [
12174# OPENGL_LIBS="-lGL -lGLU"
12175# ],
12176# [
12177# AC_CHECK_LIB(MesaGL, glFlush,
12178# [
12179# OPENGL_LIBS="-lMesaGL -lMesaGLU"
12180# ],
12181# [],
12182# [-lm])
12183# ],
12184# [-lm])
12185# ])
12186
12187 if test "x$OPENGL_LIBS" = "x"; then
12188 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
12189 fi
6f754473 12190 fi
6f754473 12191
62d0491b
RL
12192 if test "$wxUSE_OPENGL" = "yes"; then
12193 cat >> confdefs.h <<\EOF
6f754473
VZ
12194#define wxUSE_OPENGL 1
12195EOF
12196
62d0491b 12197 cat >> confdefs.h <<\EOF
6f754473
VZ
12198#define wxUSE_GLCANVAS 1
12199EOF
12200
62d0491b
RL
12201 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
12202 fi
3a922bb4
RL
12203fi
12204
12205if test -z "$TOOLKIT_VPATH" ; then
12206 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
12207fi
12208
12209if test -n "$TOOLKIT" ; then
12210 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
12211fi
12212
f676c7ff
MB
12213lib_unicode_suffix=
12214if test "$wxUSE_UNICODE" = "yes"; then
12215 lib_unicode_suffix=u
12216fi
12217
3a922bb4
RL
12218lib_debug_suffix=
12219if test "$wxUSE_DEBUG_FLAG" = "yes"; then
12220 lib_debug_suffix=d
3a922bb4
RL
12221fi
12222
f676c7ff
MB
12223TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
12224TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
3a922bb4
RL
12225
12226if test "$cross_compiling" = "yes"; then
12227 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
12228 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
12229fi
12230
12231WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
12232WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
12233
3a922bb4
RL
12234WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
12235WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
12236
12237WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
12238WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
12239WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
12240WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
12241
d08b457b 12242WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
e23081de 12243WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
3a922bb4 12244
978f1259
RL
12245case "${host}" in
12246 *-*-cygwin* | *-*-mingw32* )
12247
2da4f892 12248
978f1259
RL
12249
12250 if test "$cross_compiling" != "yes"; then
12251 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
12252 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
12253 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
12254 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
2da4f892
RL
12255 else
12256 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
12257 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
978f1259
RL
12258 fi
12259
12260esac
12261
12262WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
12263WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
12264
12265WXCONFIG_LIBS="-l${WX_LIBRARY}"
885d4bf5 12266WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
978f1259
RL
12267
12268if test "$wxUSE_OPENGL" = "yes"; then
885d4bf5
VS
12269 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
12270 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
978f1259
RL
12271fi
12272
12273
3a922bb4
RL
12274
12275if test "$wxUSE_SHARED" = "yes"; then
55e80573
VZ
12276
12277 if test "$wxUSE_OPENGL" = "yes"; then
12278 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
3a922bb4 12279 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
55e80573
VZ
12280 else
12281 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
3a922bb4 12282 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
55e80573
VZ
12283 fi
12284
dd4f7467 12285 if test "$GCC" = "yes"; then
55e80573 12286 PIC_FLAG="-fPIC"
dd4f7467 12287 fi
55e80573
VZ
12288
12289 SHARED_LD="${CXX} -shared -o"
698dcdb6 12290
10f2d63a
VZ
12291 case "${host}" in
12292 *-hp-hpux* )
55e80573 12293 if test "$GCC" != "yes"; then
3d63bc3a 12294 LDFLAGS="$LDFLAGS -L/usr/lib"
f6bcfd97 12295
10f2d63a
VZ
12296 SHARED_LD="${CXX} -b -o"
12297 PIC_FLAG="+Z"
12298 fi
55e80573 12299
7b7a7637
RL
12300 if test "$wxUSE_OPENGL" = "yes"; then
12301 WX_ALL_INSTALLED="preinstall_gl"
12302 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
12303 else
12304 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
12305 fi
10f2d63a 12306 ;;
b12915c1 12307
55e80573
VZ
12308 *-*-linux* )
12309 if test "$GCC" != "yes"; then
12310 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
1725144d 12311echo "configure:12312: checking for Intel compiler" >&5
55e80573
VZ
12312if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
12313 echo $ac_n "(cached) $ac_c" 1>&6
12314else
12315
12316 cat > conftest.$ac_ext <<EOF
1725144d 12317#line 12318 "configure"
55e80573
VZ
12318#include "confdefs.h"
12319
12320int main() {
12321
12322 #ifndef __INTEL_COMPILER
dd4f7467 12323 #error Not icc
55e80573
VZ
12324 #endif
12325
12326; return 0; }
12327EOF
1725144d 12328if { (eval echo configure:12329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
55e80573
VZ
12329 rm -rf conftest*
12330 wx_cv_prog_icc=yes
12331else
12332 echo "configure: failed program was:" >&5
12333 cat conftest.$ac_ext >&5
12334 rm -rf conftest*
12335 wx_cv_prog_icc=no
12336
12337fi
12338rm -f conftest*
12339
12340fi
12341
12342echo "$ac_t""$wx_cv_prog_icc" 1>&6
55e80573
VZ
12343 if test "$wx_cv_prog_icc" = "yes"; then
12344 PIC_FLAG="-KPIC"
12345 fi
12346 fi
12347
3a922bb4
RL
12348 if test "$wxUSE_SONAME" = "yes" ; then
12349 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
12350 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 12351 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 12352 fi
10f2d63a 12353 ;;
55e80573 12354
10f2d63a
VZ
12355 *-*-solaris2* )
12356 if test "$GCC" = yes ; then
f6bcfd97 12357 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
12358 else
12359 SHARED_LD="${CXX} -G -o"
12360 PIC_FLAG="-KPIC"
7b7a7637
RL
12361 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
12362 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}"
10f2d63a 12363 fi
10f2d63a 12364 ;;
55e80573 12365
b4085ce6 12366 *-*-darwin* )
156b2523
GD
12367 CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT"
12368 CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT"
12369 SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o"
ea5999b9 12370 PIC_FLAG="-dynamic -fPIC"
10f2d63a 12371 ;;
55e80573 12372
10f2d63a
VZ
12373 *-*-aix* )
12374 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10f2d63a 12375 ;;
55e80573 12376
7b7a7637 12377 *-*-cygwin* | *-*-mingw32* )
77e13408 12378
2da4f892 12379 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
77e13408 12380
77e13408 12381 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
00c81359 12382 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
25d0687a
RL
12383
12384 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
7b7a7637
RL
12385
12386 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 12387 WX_ALL_INSTALLED="preinstall_gl"
978f1259 12388 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
f6bcfd97 12389 else
978f1259 12390 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
f6bcfd97 12391 fi
10f2d63a 12392 ;;
55e80573 12393
6fa882bd 12394 *-pc-os2_emx | *-pc-os2-emx )
7b7a7637 12395 wxUSE_SHARED=no
10f2d63a 12396 ;;
55e80573 12397
b12915c1 12398 *-*-beos* )
e2b8b066 12399 SHARED_LD="${LD} -shared -o"
b12915c1 12400 ;;
55e80573
VZ
12401
12402 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
12403 *-*-sunos4* | \
12404 *-*-irix5* | *-*-irix6* | \
12405 *-*-osf* | \
12406 *-*-dgux5* | \
12407 *-*-sysv5* )
12408 ;;
12409
10f2d63a 12410 *)
7b7a7637 12411 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
10f2d63a
VZ
12412 esac
12413
12414 if test "x$WX_TARGET_LIBRARY" = "x"; then
12415 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 12416 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 12417 fi
55e80573 12418
3711412e 12419 WX_TARGET_LIBRARY_TYPE="so"
885d4bf5 12420 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
3a922bb4 12421fi
f6bcfd97 12422
3a922bb4 12423if test "$wxUSE_SHARED" = "no"; then
f6bcfd97 12424
3a922bb4 12425 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
f6bcfd97
BP
12426 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12427 fi
12428
6fa882bd
RR
12429 if test "$wxUSE_MAC" = 1; then
12430 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12431 fi
12432
3a922bb4
RL
12433 if test "$wxUSE_OPENGL" = "yes"; then
12434 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
12435 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
12436 else
12437 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
12438 fi
698dcdb6 12439
3a922bb4
RL
12440 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
12441 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
12442
12443 WX_TARGET_LIBRARY_TYPE="a"
885d4bf5 12444 INSTALL_LIBRARY='$(INSTALL_DATA)'
10f2d63a 12445fi
10f2d63a 12446
d08b457b
GD
12447if test "$wxUSE_MAC" = 1; then
12448 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
e23081de 12449 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
d08b457b
GD
12450 # Extract the first word of "Rez", so it can be a program name with args.
12451set dummy Rez; ac_word=$2
12452echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1725144d 12453echo "configure:12454: checking for $ac_word" >&5
d08b457b
GD
12454if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
12455 echo $ac_n "(cached) $ac_c" 1>&6
12456else
12457 if test -n "$RESCOMP"; then
12458 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
12459else
12460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12461 ac_dummy="$PATH"
12462 for ac_dir in $ac_dummy; do
12463 test -z "$ac_dir" && ac_dir=.
12464 if test -f $ac_dir/$ac_word; then
12465 ac_cv_prog_RESCOMP="Rez"
12466 break
12467 fi
12468 done
12469 IFS="$ac_save_ifs"
12470 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
12471fi
12472fi
12473RESCOMP="$ac_cv_prog_RESCOMP"
12474if test -n "$RESCOMP"; then
12475 echo "$ac_t""$RESCOMP" 1>&6
12476else
12477 echo "$ac_t""no" 1>&6
12478fi
12479
9f8148b1
GD
12480 # Extract the first word of "DeRez", so it can be a program name with args.
12481set dummy DeRez; ac_word=$2
d08b457b 12482echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1725144d 12483echo "configure:12484: checking for $ac_word" >&5
d08b457b
GD
12484if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
12485 echo $ac_n "(cached) $ac_c" 1>&6
12486else
12487 if test -n "$DEREZ"; then
12488 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
12489else
12490 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12491 ac_dummy="$PATH"
12492 for ac_dir in $ac_dummy; do
12493 test -z "$ac_dir" && ac_dir=.
12494 if test -f $ac_dir/$ac_word; then
9f8148b1 12495 ac_cv_prog_DEREZ="DeRez"
d08b457b
GD
12496 break
12497 fi
12498 done
12499 IFS="$ac_save_ifs"
9f8148b1 12500 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
d08b457b
GD
12501fi
12502fi
12503DEREZ="$ac_cv_prog_DEREZ"
12504if test -n "$DEREZ"; then
12505 echo "$ac_t""$DEREZ" 1>&6
12506else
12507 echo "$ac_t""no" 1>&6
12508fi
12509
12510 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
12511 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
e23081de 12512 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
d08b457b
GD
12513fi
12514
3a922bb4 12515
13c0541d
GD
12516if test "$wxUSE_MAC" != 1; then
12517 for ac_hdr in strings.h
9cfadba2 12518do
698dcdb6
VZ
12519ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12520echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1725144d 12521echo "configure:12522: checking for $ac_hdr" >&5
698dcdb6
VZ
12522if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12523 echo $ac_n "(cached) $ac_c" 1>&6
12524else
12525 cat > conftest.$ac_ext <<EOF
1725144d 12526#line 12527 "configure"
9cfadba2 12527#include "confdefs.h"
698dcdb6
VZ
12528#include <$ac_hdr>
12529EOF
12530ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 12531{ (eval echo configure:12532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12532ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12533if test -z "$ac_err"; then
12534 rm -rf conftest*
12535 eval "ac_cv_header_$ac_safe=yes"
6232543b 12536else
698dcdb6
VZ
12537 echo "$ac_err" >&5
12538 echo "configure: failed program was:" >&5
9cfadba2 12539 cat conftest.$ac_ext >&5
698dcdb6
VZ
12540 rm -rf conftest*
12541 eval "ac_cv_header_$ac_safe=no"
9cfadba2 12542fi
698dcdb6 12543rm -f conftest*
9cfadba2 12544fi
698dcdb6
VZ
12545if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12546 echo "$ac_t""yes" 1>&6
12547 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12548 cat >> confdefs.h <<EOF
12549#define $ac_tr_hdr 1
9cfadba2 12550EOF
698dcdb6
VZ
12551
12552else
12553 echo "$ac_t""no" 1>&6
9cfadba2
VZ
12554fi
12555done
10f2d63a 12556
13c0541d
GD
12557fi
12558
3a922bb4 12559for ac_hdr in stdlib.h
10f2d63a 12560do
698dcdb6
VZ
12561ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12562echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1725144d 12563echo "configure:12564: checking for $ac_hdr" >&5
698dcdb6
VZ
12564if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12565 echo $ac_n "(cached) $ac_c" 1>&6
12566else
12567 cat > conftest.$ac_ext <<EOF
1725144d 12568#line 12569 "configure"
10f2d63a 12569#include "confdefs.h"
698dcdb6
VZ
12570#include <$ac_hdr>
12571EOF
12572ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 12573{ (eval echo configure:12574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12574ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12575if test -z "$ac_err"; then
12576 rm -rf conftest*
12577 eval "ac_cv_header_$ac_safe=yes"
6232543b 12578else
698dcdb6
VZ
12579 echo "$ac_err" >&5
12580 echo "configure: failed program was:" >&5
10f2d63a 12581 cat conftest.$ac_ext >&5
698dcdb6
VZ
12582 rm -rf conftest*
12583 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12584fi
698dcdb6 12585rm -f conftest*
10f2d63a 12586fi
698dcdb6
VZ
12587if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12588 echo "$ac_t""yes" 1>&6
12589 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12590 cat >> confdefs.h <<EOF
12591#define $ac_tr_hdr 1
10f2d63a 12592EOF
698dcdb6
VZ
12593
12594else
12595 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12596fi
12597done
12598
9f8148b1 12599for ac_hdr in malloc.h
10f2d63a 12600do
698dcdb6
VZ
12601ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12602echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1725144d 12603echo "configure:12604: checking for $ac_hdr" >&5
698dcdb6
VZ
12604if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12605 echo $ac_n "(cached) $ac_c" 1>&6
12606else
12607 cat > conftest.$ac_ext <<EOF
1725144d 12608#line 12609 "configure"
10f2d63a 12609#include "confdefs.h"
698dcdb6
VZ
12610#include <$ac_hdr>
12611EOF
12612ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 12613{ (eval echo configure:12614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12614ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12615if test -z "$ac_err"; then
12616 rm -rf conftest*
12617 eval "ac_cv_header_$ac_safe=yes"
6f72b082 12618else
698dcdb6
VZ
12619 echo "$ac_err" >&5
12620 echo "configure: failed program was:" >&5
6f72b082 12621 cat conftest.$ac_ext >&5
698dcdb6
VZ
12622 rm -rf conftest*
12623 eval "ac_cv_header_$ac_safe=no"
6f72b082 12624fi
698dcdb6 12625rm -f conftest*
6f72b082 12626fi
698dcdb6
VZ
12627if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12628 echo "$ac_t""yes" 1>&6
12629 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12630 cat >> confdefs.h <<EOF
12631#define $ac_tr_hdr 1
6f72b082 12632EOF
698dcdb6
VZ
12633
12634else
12635 echo "$ac_t""no" 1>&6
6f72b082
OK
12636fi
12637done
12638
9f8148b1 12639for ac_hdr in unistd.h
6f72b082 12640do
698dcdb6
VZ
12641ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12642echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1725144d 12643echo "configure:12644: checking for $ac_hdr" >&5
698dcdb6
VZ
12644if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12645 echo $ac_n "(cached) $ac_c" 1>&6
12646else
12647 cat > conftest.$ac_ext <<EOF
1725144d 12648#line 12649 "configure"
6f72b082 12649#include "confdefs.h"
698dcdb6
VZ
12650#include <$ac_hdr>
12651EOF
12652ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 12653{ (eval echo configure:12654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12654ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12655if test -z "$ac_err"; then
12656 rm -rf conftest*
12657 eval "ac_cv_header_$ac_safe=yes"
6f72b082 12658else
698dcdb6
VZ
12659 echo "$ac_err" >&5
12660 echo "configure: failed program was:" >&5
6f72b082 12661 cat conftest.$ac_ext >&5
698dcdb6
VZ
12662 rm -rf conftest*
12663 eval "ac_cv_header_$ac_safe=no"
6f72b082 12664fi
698dcdb6 12665rm -f conftest*
6f72b082 12666fi
698dcdb6
VZ
12667if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12668 echo "$ac_t""yes" 1>&6
12669 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12670 cat >> confdefs.h <<EOF
12671#define $ac_tr_hdr 1
6f72b082 12672EOF
698dcdb6
VZ
12673
12674else
12675 echo "$ac_t""no" 1>&6
6f72b082
OK
12676fi
12677done
12678
9f8148b1 12679for ac_hdr in wchar.h
6f72b082 12680do
698dcdb6
VZ
12681ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12682echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1725144d 12683echo "configure:12684: checking for $ac_hdr" >&5
698dcdb6
VZ
12684if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12685 echo $ac_n "(cached) $ac_c" 1>&6
12686else
12687 cat > conftest.$ac_ext <<EOF
1725144d 12688#line 12689 "configure"
6f72b082 12689#include "confdefs.h"
698dcdb6
VZ
12690#include <$ac_hdr>
12691EOF
12692ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 12693{ (eval echo configure:12694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12694ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12695if test -z "$ac_err"; then
12696 rm -rf conftest*
12697 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12698else
698dcdb6
VZ
12699 echo "$ac_err" >&5
12700 echo "configure: failed program was:" >&5
10f2d63a 12701 cat conftest.$ac_ext >&5
698dcdb6
VZ
12702 rm -rf conftest*
12703 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12704fi
698dcdb6 12705rm -f conftest*
10f2d63a 12706fi
698dcdb6
VZ
12707if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12708 echo "$ac_t""yes" 1>&6
12709 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12710 cat >> confdefs.h <<EOF
12711#define $ac_tr_hdr 1
10f2d63a 12712EOF
698dcdb6
VZ
12713
12714else
12715 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12716fi
12717done
12718
9f8148b1 12719for ac_hdr in wcstr.h
0fb0dd83 12720do
698dcdb6
VZ
12721ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12722echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1725144d 12723echo "configure:12724: checking for $ac_hdr" >&5
698dcdb6
VZ
12724if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12725 echo $ac_n "(cached) $ac_c" 1>&6
12726else
12727 cat > conftest.$ac_ext <<EOF
1725144d 12728#line 12729 "configure"
0fb0dd83 12729#include "confdefs.h"
698dcdb6
VZ
12730#include <$ac_hdr>
12731EOF
12732ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 12733{ (eval echo configure:12734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12734ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12735if test -z "$ac_err"; then
12736 rm -rf conftest*
12737 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 12738else
698dcdb6
VZ
12739 echo "$ac_err" >&5
12740 echo "configure: failed program was:" >&5
0fb0dd83 12741 cat conftest.$ac_ext >&5
698dcdb6
VZ
12742 rm -rf conftest*
12743 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 12744fi
698dcdb6 12745rm -f conftest*
0fb0dd83 12746fi
698dcdb6
VZ
12747if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12748 echo "$ac_t""yes" 1>&6
12749 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12750 cat >> confdefs.h <<EOF
12751#define $ac_tr_hdr 1
0fb0dd83 12752EOF
698dcdb6
VZ
12753
12754else
12755 echo "$ac_t""no" 1>&6
0fb0dd83
RR
12756fi
12757done
12758
9f8148b1 12759for ac_hdr in wctype.h
1f8ae82f 12760do
698dcdb6
VZ
12761ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12762echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1725144d 12763echo "configure:12764: checking for $ac_hdr" >&5
698dcdb6
VZ
12764if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12765 echo $ac_n "(cached) $ac_c" 1>&6
12766else
12767 cat > conftest.$ac_ext <<EOF
1725144d 12768#line 12769 "configure"
1f8ae82f 12769#include "confdefs.h"
698dcdb6
VZ
12770#include <$ac_hdr>
12771EOF
12772ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 12773{ (eval echo configure:12774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12774ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12775if test -z "$ac_err"; then
12776 rm -rf conftest*
12777 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 12778else
698dcdb6
VZ
12779 echo "$ac_err" >&5
12780 echo "configure: failed program was:" >&5
1f8ae82f 12781 cat conftest.$ac_ext >&5
698dcdb6
VZ
12782 rm -rf conftest*
12783 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 12784fi
698dcdb6 12785rm -f conftest*
1f8ae82f 12786fi
698dcdb6
VZ
12787if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12788 echo "$ac_t""yes" 1>&6
12789 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12790 cat >> confdefs.h <<EOF
12791#define $ac_tr_hdr 1
1f8ae82f 12792EOF
698dcdb6
VZ
12793
12794else
12795 echo "$ac_t""no" 1>&6
1f8ae82f
GD
12796fi
12797done
12798
9f8148b1 12799for ac_hdr in fnmatch.h
10f2d63a 12800do
698dcdb6
VZ
12801ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12802echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1725144d 12803echo "configure:12804: checking for $ac_hdr" >&5
698dcdb6
VZ
12804if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12805 echo $ac_n "(cached) $ac_c" 1>&6
12806else
12807 cat > conftest.$ac_ext <<EOF
1725144d 12808#line 12809 "configure"
10f2d63a 12809#include "confdefs.h"
698dcdb6
VZ
12810#include <$ac_hdr>
12811EOF
12812ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 12813{ (eval echo configure:12814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12814ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12815if test -z "$ac_err"; then
12816 rm -rf conftest*
12817 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12818else
698dcdb6
VZ
12819 echo "$ac_err" >&5
12820 echo "configure: failed program was:" >&5
10f2d63a 12821 cat conftest.$ac_ext >&5
698dcdb6
VZ
12822 rm -rf conftest*
12823 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12824fi
698dcdb6 12825rm -f conftest*
10f2d63a 12826fi
698dcdb6
VZ
12827if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12828 echo "$ac_t""yes" 1>&6
12829 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12830 cat >> confdefs.h <<EOF
12831#define $ac_tr_hdr 1
10f2d63a 12832EOF
698dcdb6
VZ
12833
12834else
12835 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12836fi
12837done
12838
9f8148b1 12839for ac_hdr in iconv.h
0fbb762e
MB
12840do
12841ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12842echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1725144d 12843echo "configure:12844: checking for $ac_hdr" >&5
0fbb762e
MB
12844if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12845 echo $ac_n "(cached) $ac_c" 1>&6
12846else
12847 cat > conftest.$ac_ext <<EOF
1725144d 12848#line 12849 "configure"
0fbb762e
MB
12849#include "confdefs.h"
12850#include <$ac_hdr>
12851EOF
12852ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 12853{ (eval echo configure:12854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0fbb762e
MB
12854ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12855if test -z "$ac_err"; then
12856 rm -rf conftest*
12857 eval "ac_cv_header_$ac_safe=yes"
12858else
12859 echo "$ac_err" >&5
12860 echo "configure: failed program was:" >&5
12861 cat conftest.$ac_ext >&5
12862 rm -rf conftest*
12863 eval "ac_cv_header_$ac_safe=no"
12864fi
12865rm -f conftest*
12866fi
12867if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12868 echo "$ac_t""yes" 1>&6
12869 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12870 cat >> confdefs.h <<EOF
12871#define $ac_tr_hdr 1
12872EOF
12873
12874else
12875 echo "$ac_t""no" 1>&6
12876fi
12877done
12878
9f8148b1
GD
12879for ac_hdr in langinfo.h
12880do
12881ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12882echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1725144d 12883echo "configure:12884: checking for $ac_hdr" >&5
9f8148b1
GD
12884if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12885 echo $ac_n "(cached) $ac_c" 1>&6
12886else
12887 cat > conftest.$ac_ext <<EOF
1725144d 12888#line 12889 "configure"
9f8148b1
GD
12889#include "confdefs.h"
12890#include <$ac_hdr>
12891EOF
12892ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 12893{ (eval echo configure:12894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9f8148b1
GD
12894ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12895if test -z "$ac_err"; then
12896 rm -rf conftest*
12897 eval "ac_cv_header_$ac_safe=yes"
12898else
12899 echo "$ac_err" >&5
12900 echo "configure: failed program was:" >&5
12901 cat conftest.$ac_ext >&5
12902 rm -rf conftest*
12903 eval "ac_cv_header_$ac_safe=no"
12904fi
12905rm -f conftest*
12906fi
12907if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12908 echo "$ac_t""yes" 1>&6
12909 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12910 cat >> confdefs.h <<EOF
12911#define $ac_tr_hdr 1
12912EOF
12913
12914else
12915 echo "$ac_t""no" 1>&6
12916fi
12917done
12918
10f2d63a 12919
3a922bb4
RL
12920if test "$wxUSE_GUI" = "yes"; then
12921 if test "$wxUSE_UNIX" = "yes"; then
12922 for ac_hdr in X11/XKBlib.h
29fd3c0c
VS
12923do
12924ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12925echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1725144d 12926echo "configure:12927: checking for $ac_hdr" >&5
29fd3c0c
VS
12927if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12928 echo $ac_n "(cached) $ac_c" 1>&6
12929else
12930 cat > conftest.$ac_ext <<EOF
1725144d 12931#line 12932 "configure"
29fd3c0c
VS
12932#include "confdefs.h"
12933#include <$ac_hdr>
12934EOF
12935ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 12936{ (eval echo configure:12937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
12937ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12938if test -z "$ac_err"; then
12939 rm -rf conftest*
12940 eval "ac_cv_header_$ac_safe=yes"
12941else
12942 echo "$ac_err" >&5
12943 echo "configure: failed program was:" >&5
12944 cat conftest.$ac_ext >&5
12945 rm -rf conftest*
12946 eval "ac_cv_header_$ac_safe=no"
12947fi
12948rm -f conftest*
12949fi
12950if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12951 echo "$ac_t""yes" 1>&6
12952 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12953 cat >> confdefs.h <<EOF
12954#define $ac_tr_hdr 1
12955EOF
12956
12957else
12958 echo "$ac_t""no" 1>&6
12959fi
12960done
12961
3a922bb4 12962 fi
29fd3c0c
VS
12963fi
12964
698dcdb6
VZ
12965
12966echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1725144d 12967echo "configure:12968: checking for ANSI C header files" >&5
698dcdb6
VZ
12968if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
12969 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12970else
698dcdb6 12971 cat > conftest.$ac_ext <<EOF
1725144d 12972#line 12973 "configure"
10f2d63a
VZ
12973#include "confdefs.h"
12974#include <stdlib.h>
12975#include <stdarg.h>
12976#include <string.h>
12977#include <float.h>
698dcdb6
VZ
12978EOF
12979ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 12980{ (eval echo configure:12981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12981ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12982if test -z "$ac_err"; then
12983 rm -rf conftest*
10f2d63a
VZ
12984 ac_cv_header_stdc=yes
12985else
698dcdb6
VZ
12986 echo "$ac_err" >&5
12987 echo "configure: failed program was:" >&5
10f2d63a 12988 cat conftest.$ac_ext >&5
698dcdb6 12989 rm -rf conftest*
10f2d63a
VZ
12990 ac_cv_header_stdc=no
12991fi
698dcdb6 12992rm -f conftest*
10f2d63a
VZ
12993
12994if test $ac_cv_header_stdc = yes; then
12995 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 12996cat > conftest.$ac_ext <<EOF
1725144d 12997#line 12998 "configure"
10f2d63a
VZ
12998#include "confdefs.h"
12999#include <string.h>
698dcdb6 13000EOF
10f2d63a
VZ
13001if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13002 egrep "memchr" >/dev/null 2>&1; then
13003 :
13004else
698dcdb6 13005 rm -rf conftest*
10f2d63a
VZ
13006 ac_cv_header_stdc=no
13007fi
13008rm -f conftest*
13009
13010fi
13011
13012if test $ac_cv_header_stdc = yes; then
13013 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 13014cat > conftest.$ac_ext <<EOF
1725144d 13015#line 13016 "configure"
10f2d63a
VZ
13016#include "confdefs.h"
13017#include <stdlib.h>
698dcdb6 13018EOF
10f2d63a
VZ
13019if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13020 egrep "free" >/dev/null 2>&1; then
13021 :
13022else
698dcdb6 13023 rm -rf conftest*
10f2d63a
VZ
13024 ac_cv_header_stdc=no
13025fi
13026rm -f conftest*
13027
13028fi
13029
13030if test $ac_cv_header_stdc = yes; then
13031 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 13032if test "$cross_compiling" = yes; then
10f2d63a
VZ
13033 :
13034else
698dcdb6 13035 cat > conftest.$ac_ext <<EOF
1725144d 13036#line 13037 "configure"
10f2d63a
VZ
13037#include "confdefs.h"
13038#include <ctype.h>
698dcdb6
VZ
13039#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13040#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 13041#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
13042int main () { int i; for (i = 0; i < 256; i++)
13043if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13044exit (0); }
13045
13046EOF
1725144d 13047if { (eval echo configure:13048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 13048then
10f2d63a
VZ
13049 :
13050else
698dcdb6
VZ
13051 echo "configure: failed program was:" >&5
13052 cat conftest.$ac_ext >&5
13053 rm -fr conftest*
13054 ac_cv_header_stdc=no
10f2d63a 13055fi
698dcdb6 13056rm -fr conftest*
10f2d63a 13057fi
698dcdb6 13058
10f2d63a
VZ
13059fi
13060fi
1e487827 13061
698dcdb6
VZ
13062echo "$ac_t""$ac_cv_header_stdc" 1>&6
13063if test $ac_cv_header_stdc = yes; then
13064 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13065#define STDC_HEADERS 1
13066EOF
13067
13068fi
13069
698dcdb6 13070echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1725144d 13071echo "configure:13072: checking for mode_t" >&5
698dcdb6
VZ
13072if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
13073 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 13074else
698dcdb6 13075 cat > conftest.$ac_ext <<EOF
1725144d 13076#line 13077 "configure"
1e487827 13077#include "confdefs.h"
698dcdb6
VZ
13078#include <sys/types.h>
13079#if STDC_HEADERS
13080#include <stdlib.h>
13081#include <stddef.h>
13082#endif
13083EOF
13084if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13085 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13086 rm -rf conftest*
10f2d63a
VZ
13087 ac_cv_type_mode_t=yes
13088else
698dcdb6
VZ
13089 rm -rf conftest*
13090 ac_cv_type_mode_t=no
703e0a69 13091fi
698dcdb6 13092rm -f conftest*
1e487827 13093
698dcdb6
VZ
13094fi
13095echo "$ac_t""$ac_cv_type_mode_t" 1>&6
13096if test $ac_cv_type_mode_t = no; then
13097 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13098#define mode_t int
13099EOF
13100
13101fi
13102
698dcdb6 13103echo $ac_n "checking for off_t""... $ac_c" 1>&6
1725144d 13104echo "configure:13105: checking for off_t" >&5
698dcdb6
VZ
13105if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
13106 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13107else
698dcdb6 13108 cat > conftest.$ac_ext <<EOF
1725144d 13109#line 13110 "configure"
10f2d63a 13110#include "confdefs.h"
698dcdb6
VZ
13111#include <sys/types.h>
13112#if STDC_HEADERS
13113#include <stdlib.h>
13114#include <stddef.h>
13115#endif
13116EOF
13117if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13118 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13119 rm -rf conftest*
10f2d63a
VZ
13120 ac_cv_type_off_t=yes
13121else
698dcdb6
VZ
13122 rm -rf conftest*
13123 ac_cv_type_off_t=no
703e0a69 13124fi
698dcdb6 13125rm -f conftest*
1e487827 13126
698dcdb6
VZ
13127fi
13128echo "$ac_t""$ac_cv_type_off_t" 1>&6
13129if test $ac_cv_type_off_t = no; then
13130 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13131#define off_t long
13132EOF
13133
13134fi
13135
698dcdb6 13136echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1725144d 13137echo "configure:13138: checking for pid_t" >&5
698dcdb6
VZ
13138if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
13139 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13140else
698dcdb6 13141 cat > conftest.$ac_ext <<EOF
1725144d 13142#line 13143 "configure"
10f2d63a 13143#include "confdefs.h"
698dcdb6
VZ
13144#include <sys/types.h>
13145#if STDC_HEADERS
13146#include <stdlib.h>
13147#include <stddef.h>
13148#endif
13149EOF
13150if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13151 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13152 rm -rf conftest*
10f2d63a
VZ
13153 ac_cv_type_pid_t=yes
13154else
698dcdb6
VZ
13155 rm -rf conftest*
13156 ac_cv_type_pid_t=no
703e0a69 13157fi
698dcdb6 13158rm -f conftest*
1e487827 13159
698dcdb6
VZ
13160fi
13161echo "$ac_t""$ac_cv_type_pid_t" 1>&6
13162if test $ac_cv_type_pid_t = no; then
13163 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13164#define pid_t int
13165EOF
13166
13167fi
13168
698dcdb6 13169echo $ac_n "checking for size_t""... $ac_c" 1>&6
1725144d 13170echo "configure:13171: checking for size_t" >&5
698dcdb6
VZ
13171if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
13172 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13173else
698dcdb6 13174 cat > conftest.$ac_ext <<EOF
1725144d 13175#line 13176 "configure"
10f2d63a 13176#include "confdefs.h"
698dcdb6
VZ
13177#include <sys/types.h>
13178#if STDC_HEADERS
13179#include <stdlib.h>
13180#include <stddef.h>
13181#endif
13182EOF
13183if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13184 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13185 rm -rf conftest*
10f2d63a
VZ
13186 ac_cv_type_size_t=yes
13187else
698dcdb6
VZ
13188 rm -rf conftest*
13189 ac_cv_type_size_t=no
703e0a69 13190fi
698dcdb6 13191rm -f conftest*
1e487827 13192
698dcdb6
VZ
13193fi
13194echo "$ac_t""$ac_cv_type_size_t" 1>&6
13195if test $ac_cv_type_size_t = no; then
13196 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13197#define size_t unsigned
13198EOF
13199
13200fi
13201
698dcdb6 13202echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1725144d 13203echo "configure:13204: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
13204if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
13205 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13206else
698dcdb6 13207 cat > conftest.$ac_ext <<EOF
1725144d 13208#line 13209 "configure"
10f2d63a
VZ
13209#include "confdefs.h"
13210#include <sys/types.h>
698dcdb6 13211EOF
10f2d63a
VZ
13212if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13213 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 13214 rm -rf conftest*
10f2d63a
VZ
13215 ac_cv_type_uid_t=yes
13216else
698dcdb6 13217 rm -rf conftest*
10f2d63a
VZ
13218 ac_cv_type_uid_t=no
13219fi
13220rm -f conftest*
13221
13222fi
1e487827 13223
698dcdb6
VZ
13224echo "$ac_t""$ac_cv_type_uid_t" 1>&6
13225if test $ac_cv_type_uid_t = no; then
13226 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13227#define uid_t int
13228EOF
13229
698dcdb6 13230 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13231#define gid_t int
13232EOF
13233
13234fi
13235
1e487827 13236
698dcdb6 13237echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
1725144d 13238echo "configure:13239: checking for wchar_t" >&5
698dcdb6
VZ
13239if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
13240 echo $ac_n "(cached) $ac_c" 1>&6
13241else
13242
13243 cat > conftest.$ac_ext <<EOF
1725144d 13244#line 13245 "configure"
0046ff7c 13245#include "confdefs.h"
4b42290e
GD
13246
13247 #ifdef HAVE_WCHAR_H
0fbb762e
MB
13248 # ifdef __CYGWIN__
13249 # include <stddef.h>
13250 # endif
4b42290e
GD
13251 # include <wchar.h>
13252 #endif
13253 #ifdef HAVE_STDLIB_H
13254 # include <stdlib.h>
13255 #endif
13256
698dcdb6 13257int main() {
0046ff7c 13258
d836ee96
VZ
13259 wchar_t wc, *ws;
13260 wc = L'a';
13261 ws = L"Hello, world!";
698dcdb6
VZ
13262
13263; return 0; }
13264EOF
1725144d 13265if { (eval echo configure:13266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 13266 rm -rf conftest*
1f8ae82f 13267 wx_cv_type_wchar_t=yes
0046ff7c 13268else
698dcdb6
VZ
13269 echo "configure: failed program was:" >&5
13270 cat conftest.$ac_ext >&5
13271 rm -rf conftest*
13272 wx_cv_type_wchar_t=no
d836ee96 13273
6232543b 13274fi
698dcdb6 13275rm -f conftest*
703e0a69 13276
1e487827 13277fi
698dcdb6
VZ
13278
13279echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
13280
13281if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 13282 cat >> confdefs.h <<\EOF
0046ff7c
VS
13283#define wxUSE_WCHAR_T 1
13284EOF
13285
13286fi
13287
19af3b06
VZ
13288
13289ac_ext=C
13290# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13291ac_cpp='$CXXCPP $CPPFLAGS'
13292ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13293ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13294cross_compiling=$ac_cv_prog_cxx_cross
13295
d836ee96 13296echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
1725144d 13297echo "configure:13298: checking if size_t is unsigned int" >&5
d836ee96
VZ
13298if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
13299 echo $ac_n "(cached) $ac_c" 1>&6
13300else
dd2c8b7c 13301 cat > conftest.$ac_ext <<EOF
1725144d 13302#line 13303 "configure"
d836ee96
VZ
13303#include "confdefs.h"
13304#include <stddef.h>
13305int main() {
13306
dd2c8b7c
VZ
13307 return 0; }
13308
d836ee96 13309 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
13310
13311 int bar() {
d836ee96
VZ
13312
13313; return 0; }
13314EOF
1725144d 13315if { (eval echo configure:13316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
13316 rm -rf conftest*
13317 wx_cv_size_t_is_uint=no
13318else
13319 echo "configure: failed program was:" >&5
13320 cat conftest.$ac_ext >&5
13321 rm -rf conftest*
13322 wx_cv_size_t_is_uint=yes
13323
13324fi
13325rm -f conftest*
13326
13327fi
13328
13329echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
13330
13331if test "$wx_cv_size_t_is_uint" = "yes"; then
13332 cat >> confdefs.h <<\EOF
13333#define wxSIZE_T_IS_UINT 1
13334EOF
13335
13336else
13337 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
1725144d 13338echo "configure:13339: checking if size_t is unsigned long" >&5
d836ee96
VZ
13339if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
13340 echo $ac_n "(cached) $ac_c" 1>&6
13341else
13342 cat > conftest.$ac_ext <<EOF
1725144d 13343#line 13344 "configure"
d836ee96
VZ
13344#include "confdefs.h"
13345#include <stddef.h>
13346int main() {
13347
dd2c8b7c
VZ
13348 return 0; }
13349
d836ee96 13350 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
13351
13352 int bar() {
d836ee96
VZ
13353
13354; return 0; }
13355EOF
1725144d 13356if { (eval echo configure:13357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
13357 rm -rf conftest*
13358 wx_cv_size_t_is_ulong=no
13359else
13360 echo "configure: failed program was:" >&5
13361 cat conftest.$ac_ext >&5
13362 rm -rf conftest*
13363 wx_cv_size_t_is_ulong=yes
13364
13365fi
13366rm -f conftest*
13367
13368fi
13369
13370echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
13371
13372 if test "$wx_cv_size_t_is_ulong" = "yes"; then
13373 cat >> confdefs.h <<\EOF
13374#define wxSIZE_T_IS_ULONG 1
13375EOF
13376
13377 fi
13378fi
13379
19af3b06
VZ
13380ac_ext=c
13381# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13382ac_cpp='$CPP $CPPFLAGS'
13383ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13384ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13385cross_compiling=$ac_cv_prog_cc_cross
13386
13387
1e487827 13388
698dcdb6 13389echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
1725144d 13390echo "configure:13391: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
13391if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
13392 echo $ac_n "(cached) $ac_c" 1>&6
13393else
13394
13395 cat > conftest.$ac_ext <<EOF
1725144d 13396#line 13397 "configure"
b12915c1
VZ
13397#include "confdefs.h"
13398#include <pwd.h>
698dcdb6 13399int main() {
b12915c1
VZ
13400
13401 char *p;
13402 struct passwd *pw;
13403 p = pw->pw_gecos;
698dcdb6
VZ
13404
13405; return 0; }
13406EOF
1725144d 13407if { (eval echo configure:13408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13408 rm -rf conftest*
13409
b12915c1 13410 wx_cv_struct_pw_gecos=yes
698dcdb6 13411
b12915c1 13412else
698dcdb6
VZ
13413 echo "configure: failed program was:" >&5
13414 cat conftest.$ac_ext >&5
13415 rm -rf conftest*
13416
b12915c1 13417 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
13418
13419
6232543b 13420fi
698dcdb6
VZ
13421rm -f conftest*
13422
703e0a69 13423
1e487827 13424fi
698dcdb6
VZ
13425
13426echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 13427
bd3277fe 13428if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 13429 cat >> confdefs.h <<\EOF
bd3277fe
VZ
13430#define HAVE_PW_GECOS 1
13431EOF
13432
13433fi
13434
698dcdb6
VZ
13435
13436echo $ac_n "checking for working const""... $ac_c" 1>&6
1725144d 13437echo "configure:13438: checking for working const" >&5
698dcdb6
VZ
13438if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
13439 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13440else
698dcdb6 13441 cat > conftest.$ac_ext <<EOF
1725144d 13442#line 13443 "configure"
10f2d63a 13443#include "confdefs.h"
698dcdb6
VZ
13444
13445int main() {
13446
13447/* Ultrix mips cc rejects this. */
9f8148b1 13448typedef int charset[2]; const charset x;
698dcdb6
VZ
13449/* SunOS 4.1.1 cc rejects this. */
13450char const *const *ccp;
13451char **p;
13452/* NEC SVR4.0.2 mips cc rejects this. */
13453struct point {int x, y;};
13454static struct point const zero = {0,0};
13455/* AIX XL C 1.02.0.0 rejects this.
13456 It does not let you subtract one const X* pointer from another in an arm
13457 of an if-expression whose if-part is not a constant expression */
13458const char *g = "string";
13459ccp = &g + (g ? g-g : 0);
13460/* HPUX 7.0 cc rejects these. */
13461++ccp;
13462p = (char**) ccp;
13463ccp = (char const *const *) p;
13464{ /* SCO 3.2v4 cc rejects this. */
13465 char *t;
13466 char const *s = 0 ? (char *) 0 : (char const *) 0;
13467
13468 *t++ = 0;
10f2d63a 13469}
698dcdb6
VZ
13470{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13471 int x[] = {25, 17};
13472 const int *foo = &x[0];
13473 ++foo;
703e0a69 13474}
698dcdb6
VZ
13475{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13476 typedef const int *iptr;
13477 iptr p = 0;
13478 ++p;
6232543b 13479}
698dcdb6
VZ
13480{ /* AIX XL C 1.02.0.0 rejects this saying
13481 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13482 struct s { int j; const int *ap[3]; };
13483 struct s *b; b->j = 5;
1e487827 13484}
698dcdb6
VZ
13485{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13486 const int foo = 10;
13487}
4f14bcd8
GD
13488
13489; return 0; }
698dcdb6 13490EOF
1725144d 13491if { (eval echo configure:13492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
13492 rm -rf conftest*
13493 ac_cv_c_const=yes
698dcdb6
VZ
13494else
13495 echo "configure: failed program was:" >&5
13496 cat conftest.$ac_ext >&5
4f14bcd8
GD
13497 rm -rf conftest*
13498 ac_cv_c_const=no
703e0a69 13499fi
4f14bcd8 13500rm -f conftest*
698dcdb6
VZ
13501fi
13502
4f14bcd8
GD
13503echo "$ac_t""$ac_cv_c_const" 1>&6
13504if test $ac_cv_c_const = no; then
13505 cat >> confdefs.h <<\EOF
13506#define const
698dcdb6
VZ
13507EOF
13508
4f14bcd8 13509fi
698dcdb6 13510
4f14bcd8 13511echo $ac_n "checking for inline""... $ac_c" 1>&6
1725144d 13512echo "configure:13513: checking for inline" >&5
4f14bcd8 13513if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
698dcdb6 13514 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13515else
4f14bcd8
GD
13516 ac_cv_c_inline=no
13517for ac_kw in inline __inline__ __inline; do
698dcdb6 13518 cat > conftest.$ac_ext <<EOF
1725144d 13519#line 13520 "configure"
10f2d63a 13520#include "confdefs.h"
4f14bcd8
GD
13521
13522int main() {
9f8148b1 13523} $ac_kw foo() {
4f14bcd8 13524; return 0; }
698dcdb6 13525EOF
1725144d 13526if { (eval echo configure:13527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
13527 rm -rf conftest*
13528 ac_cv_c_inline=$ac_kw; break
10f2d63a 13529else
698dcdb6
VZ
13530 echo "configure: failed program was:" >&5
13531 cat conftest.$ac_ext >&5
10f2d63a 13532fi
4f14bcd8
GD
13533rm -f conftest*
13534done
698dcdb6 13535
10f2d63a 13536fi
4f14bcd8
GD
13537
13538echo "$ac_t""$ac_cv_c_inline" 1>&6
13539case "$ac_cv_c_inline" in
13540 inline | yes) ;;
13541 no) cat >> confdefs.h <<\EOF
13542#define inline
13543EOF
13544 ;;
13545 *) cat >> confdefs.h <<EOF
13546#define inline $ac_cv_c_inline
698dcdb6 13547EOF
4f14bcd8
GD
13548 ;;
13549esac
698dcdb6
VZ
13550
13551
4f14bcd8 13552echo $ac_n "checking size of char""... $ac_c" 1>&6
1725144d 13553echo "configure:13554: checking size of char" >&5
4f14bcd8 13554if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
698dcdb6
VZ
13555 echo $ac_n "(cached) $ac_c" 1>&6
13556else
13557 if test "$cross_compiling" = yes; then
4f14bcd8 13558 ac_cv_sizeof_char=1
698dcdb6
VZ
13559else
13560 cat > conftest.$ac_ext <<EOF
1725144d 13561#line 13562 "configure"
698dcdb6
VZ
13562#include "confdefs.h"
13563#include <stdio.h>
13564main()
13565{
13566 FILE *f=fopen("conftestval", "w");
13567 if (!f) exit(1);
4f14bcd8 13568 fprintf(f, "%d\n", sizeof(char));
698dcdb6
VZ
13569 exit(0);
13570}
13571EOF
1725144d 13572if { (eval echo configure:13573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 13573then
4f14bcd8 13574 ac_cv_sizeof_char=`cat conftestval`
6232543b 13575else
698dcdb6
VZ
13576 echo "configure: failed program was:" >&5
13577 cat conftest.$ac_ext >&5
13578 rm -fr conftest*
4f14bcd8 13579 ac_cv_sizeof_char=0
6232543b 13580fi
698dcdb6
VZ
13581rm -fr conftest*
13582fi
13583
703e0a69 13584fi
4f14bcd8 13585echo "$ac_t""$ac_cv_sizeof_char" 1>&6
698dcdb6 13586cat >> confdefs.h <<EOF
4f14bcd8 13587#define SIZEOF_CHAR $ac_cv_sizeof_char
10f2d63a
VZ
13588EOF
13589
1e487827 13590
4f14bcd8 13591echo $ac_n "checking size of short""... $ac_c" 1>&6
1725144d 13592echo "configure:13593: checking size of short" >&5
4f14bcd8 13593if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
698dcdb6
VZ
13594 echo $ac_n "(cached) $ac_c" 1>&6
13595else
4f14bcd8
GD
13596 if test "$cross_compiling" = yes; then
13597 ac_cv_sizeof_short=2
b93d0d08 13598else
698dcdb6 13599 cat > conftest.$ac_ext <<EOF
1725144d 13600#line 13601 "configure"
b93d0d08 13601#include "confdefs.h"
4f14bcd8
GD
13602#include <stdio.h>
13603main()
13604{
13605 FILE *f=fopen("conftestval", "w");
13606 if (!f) exit(1);
13607 fprintf(f, "%d\n", sizeof(short));
13608 exit(0);
13609}
698dcdb6 13610EOF
1725144d 13611if { (eval echo configure:13612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 13612then
4f14bcd8 13613 ac_cv_sizeof_short=`cat conftestval`
b93d0d08 13614else
698dcdb6
VZ
13615 echo "configure: failed program was:" >&5
13616 cat conftest.$ac_ext >&5
13617 rm -fr conftest*
4f14bcd8 13618 ac_cv_sizeof_short=0
b93d0d08 13619fi
698dcdb6 13620rm -fr conftest*
b93d0d08
VS
13621fi
13622
b93d0d08 13623fi
4f14bcd8 13624echo "$ac_t""$ac_cv_sizeof_short" 1>&6
698dcdb6 13625cat >> confdefs.h <<EOF
4f14bcd8 13626#define SIZEOF_SHORT $ac_cv_sizeof_short
b93d0d08
VS
13627EOF
13628
698dcdb6 13629
4f14bcd8 13630echo $ac_n "checking size of int *""... $ac_c" 1>&6
1725144d 13631echo "configure:13632: checking size of int *" >&5
4f14bcd8 13632if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
698dcdb6 13633 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13634else
4f14bcd8
GD
13635 if test "$cross_compiling" = yes; then
13636 ac_cv_sizeof_int_p=4
3a922bb4 13637else
3a922bb4 13638 cat > conftest.$ac_ext <<EOF
1725144d 13639#line 13640 "configure"
3a922bb4 13640#include "confdefs.h"
4f14bcd8
GD
13641#include <stdio.h>
13642main()
13643{
13644 FILE *f=fopen("conftestval", "w");
13645 if (!f) exit(1);
13646 fprintf(f, "%d\n", sizeof(int *));
13647 exit(0);
13648}
13649EOF
1725144d 13650if { (eval echo configure:13651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13651then
13652 ac_cv_sizeof_int_p=`cat conftestval`
13653else
13654 echo "configure: failed program was:" >&5
13655 cat conftest.$ac_ext >&5
13656 rm -fr conftest*
13657 ac_cv_sizeof_int_p=0
3a922bb4 13658fi
4f14bcd8 13659rm -fr conftest*
3a922bb4 13660fi
698dcdb6 13661
4f14bcd8
GD
13662fi
13663echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
13664cat >> confdefs.h <<EOF
13665#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
13666EOF
13667
703e0a69 13668
4f14bcd8 13669echo $ac_n "checking size of int""... $ac_c" 1>&6
1725144d 13670echo "configure:13671: checking size of int" >&5
4f14bcd8 13671if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
698dcdb6 13672 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8
GD
13673else
13674 if test "$cross_compiling" = yes; then
13675 ac_cv_sizeof_int=4
698dcdb6
VZ
13676else
13677 cat > conftest.$ac_ext <<EOF
1725144d 13678#line 13679 "configure"
10f2d63a 13679#include "confdefs.h"
4f14bcd8
GD
13680#include <stdio.h>
13681main()
13682{
13683 FILE *f=fopen("conftestval", "w");
13684 if (!f) exit(1);
13685 fprintf(f, "%d\n", sizeof(int));
13686 exit(0);
13687}
698dcdb6 13688EOF
1725144d 13689if { (eval echo configure:13690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13690then
13691 ac_cv_sizeof_int=`cat conftestval`
10f2d63a 13692else
698dcdb6 13693 echo "configure: failed program was:" >&5
10f2d63a 13694 cat conftest.$ac_ext >&5
4f14bcd8
GD
13695 rm -fr conftest*
13696 ac_cv_sizeof_int=0
10f2d63a 13697fi
4f14bcd8 13698rm -fr conftest*
10f2d63a 13699fi
10f2d63a 13700
4f14bcd8
GD
13701fi
13702echo "$ac_t""$ac_cv_sizeof_int" 1>&6
13703cat >> confdefs.h <<EOF
13704#define SIZEOF_INT $ac_cv_sizeof_int
10f2d63a
VZ
13705EOF
13706
698dcdb6 13707
4f14bcd8 13708echo $ac_n "checking size of long""... $ac_c" 1>&6
1725144d 13709echo "configure:13710: checking size of long" >&5
4f14bcd8 13710if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
698dcdb6
VZ
13711 echo $ac_n "(cached) $ac_c" 1>&6
13712else
4f14bcd8
GD
13713 if test "$cross_compiling" = yes; then
13714 ac_cv_sizeof_long=4
13715else
13716 cat > conftest.$ac_ext <<EOF
1725144d 13717#line 13718 "configure"
10f2d63a 13718#include "confdefs.h"
4f14bcd8
GD
13719#include <stdio.h>
13720main()
13721{
13722 FILE *f=fopen("conftestval", "w");
13723 if (!f) exit(1);
13724 fprintf(f, "%d\n", sizeof(long));
13725 exit(0);
13726}
698dcdb6 13727EOF
1725144d 13728if { (eval echo configure:13729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13729then
13730 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 13731else
698dcdb6
VZ
13732 echo "configure: failed program was:" >&5
13733 cat conftest.$ac_ext >&5
4f14bcd8
GD
13734 rm -fr conftest*
13735 ac_cv_sizeof_long=0
10f2d63a 13736fi
4f14bcd8 13737rm -fr conftest*
10f2d63a 13738fi
698dcdb6 13739
4f14bcd8
GD
13740fi
13741echo "$ac_t""$ac_cv_sizeof_long" 1>&6
13742cat >> confdefs.h <<EOF
13743#define SIZEOF_LONG $ac_cv_sizeof_long
10f2d63a
VZ
13744EOF
13745
698dcdb6 13746
4f14bcd8 13747echo $ac_n "checking size of long long""... $ac_c" 1>&6
1725144d 13748echo "configure:13749: checking size of long long" >&5
4f14bcd8 13749if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
698dcdb6 13750 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13751else
4f14bcd8
GD
13752 if test "$cross_compiling" = yes; then
13753 ac_cv_sizeof_long_long=0
13754else
13755 cat > conftest.$ac_ext <<EOF
1725144d 13756#line 13757 "configure"
10f2d63a 13757#include "confdefs.h"
4f14bcd8
GD
13758#include <stdio.h>
13759main()
13760{
13761 FILE *f=fopen("conftestval", "w");
13762 if (!f) exit(1);
13763 fprintf(f, "%d\n", sizeof(long long));
13764 exit(0);
13765}
698dcdb6 13766EOF
1725144d 13767if { (eval echo configure:13768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13768then
13769 ac_cv_sizeof_long_long=`cat conftestval`
698dcdb6
VZ
13770else
13771 echo "configure: failed program was:" >&5
13772 cat conftest.$ac_ext >&5
4f14bcd8
GD
13773 rm -fr conftest*
13774 ac_cv_sizeof_long_long=0
13775fi
13776rm -fr conftest*
698dcdb6 13777fi
698dcdb6
VZ
13778
13779fi
4f14bcd8
GD
13780echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
13781cat >> confdefs.h <<EOF
13782#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10f2d63a
VZ
13783EOF
13784
10f2d63a 13785
4f14bcd8
GD
13786
13787echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
1725144d 13788echo "configure:13789: checking size of wchar_t" >&5
4f14bcd8 13789if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
698dcdb6 13790 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13791else
4f14bcd8
GD
13792
13793 if test "$cross_compiling" = yes; then
13794 wx_cv_sizeof_wchar_t=4
13795
13796else
13797 cat > conftest.$ac_ext <<EOF
1725144d 13798#line 13799 "configure"
10f2d63a 13799#include "confdefs.h"
698dcdb6 13800
4f14bcd8 13801 #ifdef HAVE_WCHAR_H
0fbb762e
MB
13802 # ifdef __CYGWIN__
13803 # include <stddef.h>
13804 # endif
4f14bcd8
GD
13805 # include <wchar.h>
13806 #endif
13807 #ifdef HAVE_STDLIB_H
13808 # include <stdlib.h>
13809 #endif
13810 #include <stdio.h>
13811 int main()
13812 {
13813 FILE *f=fopen("conftestval", "w");
13814 if (!f) exit(1);
13815 fprintf(f, "%i", sizeof(wchar_t));
13816 exit(0);
13817 }
13818
698dcdb6 13819EOF
1725144d 13820if { (eval echo configure:13821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13821then
13822 wx_cv_sizeof_wchar_t=`cat conftestval`
698dcdb6
VZ
13823else
13824 echo "configure: failed program was:" >&5
13825 cat conftest.$ac_ext >&5
4f14bcd8
GD
13826 rm -fr conftest*
13827 wx_cv_sizeof_wchar_t=0
698dcdb6 13828fi
4f14bcd8
GD
13829rm -fr conftest*
13830fi
13831
698dcdb6
VZ
13832
13833fi
4f14bcd8
GD
13834
13835echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
13836
13837cat >> confdefs.h <<EOF
13838#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10f2d63a
VZ
13839EOF
13840
18dbb1f6 13841
4f14bcd8 13842echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1725144d 13843echo "configure:13844: checking whether byte ordering is bigendian" >&5
4f14bcd8 13844if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
18dbb1f6
VZ
13845 echo $ac_n "(cached) $ac_c" 1>&6
13846else
4f14bcd8
GD
13847 ac_cv_c_bigendian=unknown
13848# See if sys/param.h defines the BYTE_ORDER macro.
18dbb1f6 13849cat > conftest.$ac_ext <<EOF
1725144d 13850#line 13851 "configure"
18dbb1f6 13851#include "confdefs.h"
4f14bcd8
GD
13852#include <sys/types.h>
13853#include <sys/param.h>
13854int main() {
18dbb1f6 13855
4f14bcd8
GD
13856#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13857 bogus endian macros
13858#endif
13859; return 0; }
13860EOF
1725144d 13861if { (eval echo configure:13862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
13862 rm -rf conftest*
13863 # It does; now see whether it defined to BIG_ENDIAN or not.
13864cat > conftest.$ac_ext <<EOF
1725144d 13865#line 13866 "configure"
4f14bcd8
GD
13866#include "confdefs.h"
13867#include <sys/types.h>
13868#include <sys/param.h>
18dbb1f6 13869int main() {
4f14bcd8
GD
13870
13871#if BYTE_ORDER != BIG_ENDIAN
13872 not big endian
13873#endif
18dbb1f6
VZ
13874; return 0; }
13875EOF
1725144d 13876if { (eval echo configure:13877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18dbb1f6 13877 rm -rf conftest*
4f14bcd8 13878 ac_cv_c_bigendian=yes
18dbb1f6
VZ
13879else
13880 echo "configure: failed program was:" >&5
13881 cat conftest.$ac_ext >&5
13882 rm -rf conftest*
4f14bcd8 13883 ac_cv_c_bigendian=no
18dbb1f6
VZ
13884fi
13885rm -f conftest*
698dcdb6 13886else
4f14bcd8
GD
13887 echo "configure: failed program was:" >&5
13888 cat conftest.$ac_ext >&5
1e487827 13889fi
4f14bcd8
GD
13890rm -f conftest*
13891if test $ac_cv_c_bigendian = unknown; then
13892if test "$cross_compiling" = yes; then
13893 ac_cv_c_bigendian=unknown
b3e8d00a
VZ
13894else
13895 cat > conftest.$ac_ext <<EOF
1725144d 13896#line 13897 "configure"
b3e8d00a 13897#include "confdefs.h"
4f14bcd8
GD
13898main () {
13899 /* Are we little or big endian? From Harbison&Steele. */
13900 union
13901 {
13902 long l;
13903 char c[sizeof (long)];
13904 } u;
13905 u.l = 1;
13906 exit (u.c[sizeof (long) - 1] == 1);
13907}
b3e8d00a 13908EOF
1725144d 13909if { (eval echo configure:13910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13910then
13911 ac_cv_c_bigendian=no
b3e8d00a
VZ
13912else
13913 echo "configure: failed program was:" >&5
13914 cat conftest.$ac_ext >&5
4f14bcd8
GD
13915 rm -fr conftest*
13916 ac_cv_c_bigendian=yes
b3e8d00a 13917fi
4f14bcd8 13918rm -fr conftest*
b3e8d00a
VZ
13919fi
13920
4f14bcd8
GD
13921fi
13922fi
13923
13924echo "$ac_t""$ac_cv_c_bigendian" 1>&6
13925if test $ac_cv_c_bigendian = unknown; then
13926 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
13927fi
13928if test $ac_cv_c_bigendian = yes; then
13929 cat >> confdefs.h <<\EOF
13930#define WORDS_BIGENDIAN 1
b3e8d00a 13931EOF
4f14bcd8 13932
b3e8d00a 13933fi
b3e8d00a
VZ
13934
13935
4f14bcd8 13936echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1725144d 13937echo "configure:13938: checking how to run the C++ preprocessor" >&5
4f14bcd8
GD
13938if test -z "$CXXCPP"; then
13939if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
698dcdb6
VZ
13940 echo $ac_n "(cached) $ac_c" 1>&6
13941else
4f14bcd8
GD
13942 ac_ext=C
13943# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13944ac_cpp='$CXXCPP $CPPFLAGS'
13945ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13946ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13947cross_compiling=$ac_cv_prog_cxx_cross
13948 CXXCPP="${CXX-g++} -E"
698dcdb6 13949 cat > conftest.$ac_ext <<EOF
1725144d 13950#line 13951 "configure"
10f2d63a 13951#include "confdefs.h"
4f14bcd8 13952#include <stdlib.h>
698dcdb6 13953EOF
4f14bcd8 13954ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 13955{ (eval echo configure:13956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
13956ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13957if test -z "$ac_err"; then
13958 :
698dcdb6 13959else
4f14bcd8 13960 echo "$ac_err" >&5
698dcdb6
VZ
13961 echo "configure: failed program was:" >&5
13962 cat conftest.$ac_ext >&5
13963 rm -rf conftest*
4f14bcd8 13964 CXXCPP=/lib/cpp
698dcdb6
VZ
13965fi
13966rm -f conftest*
4f14bcd8
GD
13967 ac_cv_prog_CXXCPP="$CXXCPP"
13968ac_ext=C
13969# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13970ac_cpp='$CXXCPP $CPPFLAGS'
13971ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13972ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13973cross_compiling=$ac_cv_prog_cxx_cross
13974fi
698dcdb6 13975fi
4f14bcd8
GD
13976CXXCPP="$ac_cv_prog_CXXCPP"
13977echo "$ac_t""$CXXCPP" 1>&6
698dcdb6 13978
4f14bcd8
GD
13979
13980 if test "$cross_compiling" = "yes"; then
13981 cat >> confdefs.h <<\EOF
13982#define wxUSE_IOSTREAMH 1
698dcdb6
VZ
13983EOF
13984
4f14bcd8
GD
13985 else
13986
13987 ac_ext=C
13988# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13989ac_cpp='$CXXCPP $CPPFLAGS'
13990ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13991ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13992cross_compiling=$ac_cv_prog_cxx_cross
698dcdb6 13993
4f14bcd8
GD
13994
13995 for ac_hdr in iostream
13996do
13997ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13998echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1725144d 13999echo "configure:14000: checking for $ac_hdr" >&5
4f14bcd8 14000if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6
VZ
14001 echo $ac_n "(cached) $ac_c" 1>&6
14002else
14003 cat > conftest.$ac_ext <<EOF
1725144d 14004#line 14005 "configure"
10f2d63a 14005#include "confdefs.h"
4f14bcd8 14006#include <$ac_hdr>
698dcdb6 14007EOF
4f14bcd8 14008ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 14009{ (eval echo configure:14010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
14010ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14011if test -z "$ac_err"; then
698dcdb6 14012 rm -rf conftest*
4f14bcd8 14013 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 14014else
4f14bcd8 14015 echo "$ac_err" >&5
698dcdb6
VZ
14016 echo "configure: failed program was:" >&5
14017 cat conftest.$ac_ext >&5
14018 rm -rf conftest*
4f14bcd8 14019 eval "ac_cv_header_$ac_safe=no"
698dcdb6
VZ
14020fi
14021rm -f conftest*
14022fi
4f14bcd8 14023if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
698dcdb6 14024 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
14025 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14026 cat >> confdefs.h <<EOF
14027#define $ac_tr_hdr 1
10f2d63a 14028EOF
4f14bcd8 14029
698dcdb6
VZ
14030else
14031 echo "$ac_t""no" 1>&6
10f2d63a 14032fi
4f14bcd8 14033done
10f2d63a 14034
10f2d63a 14035
4f14bcd8
GD
14036 if test "$ac_cv_header_iostream" = "yes" ; then
14037 :
14038 else
14039 cat >> confdefs.h <<\EOF
14040#define wxUSE_IOSTREAMH 1
14041EOF
14042
14043 fi
1e487827 14044
4f14bcd8
GD
14045 ac_ext=c
14046# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14047ac_cpp='$CPP $CPPFLAGS'
14048ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14049ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14050cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 14051
4f14bcd8 14052 fi
698dcdb6
VZ
14053
14054
14055
4f14bcd8 14056 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
1725144d 14057echo "configure:14058: checking if C++ compiler supports bool" >&5
4f14bcd8 14058if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
698dcdb6
VZ
14059 echo $ac_n "(cached) $ac_c" 1>&6
14060else
14061
4f14bcd8
GD
14062
14063 ac_ext=C
14064# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14065ac_cpp='$CXXCPP $CPPFLAGS'
14066ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14067ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14068cross_compiling=$ac_cv_prog_cxx_cross
f6bcfd97 14069
10f2d63a 14070
4f14bcd8 14071 cat > conftest.$ac_ext <<EOF
1725144d 14072#line 14073 "configure"
4f14bcd8 14073#include "confdefs.h"
10f2d63a 14074
4f14bcd8
GD
14075
14076int main() {
f6bcfd97 14077
4f14bcd8 14078 bool b = true;
f6bcfd97 14079
4f14bcd8
GD
14080 return 0;
14081
698dcdb6
VZ
14082; return 0; }
14083EOF
1725144d 14084if { (eval echo configure:14085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14085 rm -rf conftest*
14086
4f14bcd8
GD
14087 wx_cv_cpp_bool=yes
14088
10f2d63a 14089else
698dcdb6
VZ
14090 echo "configure: failed program was:" >&5
14091 cat conftest.$ac_ext >&5
14092 rm -rf conftest*
14093
4f14bcd8
GD
14094 wx_cv_cpp_bool=no
14095
14096
14097fi
14098rm -f conftest*
c521c494 14099
4f14bcd8
GD
14100 ac_ext=c
14101# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14102ac_cpp='$CPP $CPPFLAGS'
14103ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14104ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14105cross_compiling=$ac_cv_prog_cc_cross
c521c494 14106
4f14bcd8
GD
14107
14108fi
c521c494 14109
4f14bcd8 14110echo "$ac_t""$wx_cv_cpp_bool" 1>&6
c521c494 14111
4f14bcd8
GD
14112 if test "$wx_cv_cpp_bool" = "yes"; then
14113 cat >> confdefs.h <<\EOF
14114#define HAVE_BOOL 1
14115EOF
c521c494 14116
4f14bcd8
GD
14117 fi
14118
14119
14120
14121echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
1725144d 14122echo "configure:14123: checking for wcslen in -lc" >&5
4f14bcd8
GD
14123ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
14124if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14125 echo $ac_n "(cached) $ac_c" 1>&6
14126else
14127 ac_save_LIBS="$LIBS"
14128LIBS="-lc $LIBS"
14129cat > conftest.$ac_ext <<EOF
1725144d 14130#line 14131 "configure"
4f14bcd8
GD
14131#include "confdefs.h"
14132/* Override any gcc2 internal prototype to avoid an error. */
14133/* We use char because int might match the return type of a gcc2
14134 builtin and then its argument prototype would still apply. */
14135char wcslen();
14136
14137int main() {
14138wcslen()
698dcdb6
VZ
14139; return 0; }
14140EOF
1725144d 14141if { (eval echo configure:14142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14142 rm -rf conftest*
4f14bcd8 14143 eval "ac_cv_lib_$ac_lib_var=yes"
c521c494 14144else
698dcdb6
VZ
14145 echo "configure: failed program was:" >&5
14146 cat conftest.$ac_ext >&5
14147 rm -rf conftest*
4f14bcd8 14148 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 14149fi
698dcdb6 14150rm -f conftest*
4f14bcd8 14151LIBS="$ac_save_LIBS"
703e0a69 14152
1e487827 14153fi
4f14bcd8
GD
14154if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14155 echo "$ac_t""yes" 1>&6
14156
14157 cat >> confdefs.h <<\EOF
14158#define HAVE_WCSLEN 1
9d8deca0
VZ
14159EOF
14160
3d63bc3a 14161 WCHAR_LINK=
4f14bcd8 14162
9d8deca0 14163else
4f14bcd8 14164 echo "$ac_t""no" 1>&6
9d8deca0 14165
4f14bcd8 14166 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
1725144d 14167echo "configure:14168: checking for wcslen in -lw" >&5
4f14bcd8
GD
14168ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
14169if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6 14170 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14171else
4f14bcd8
GD
14172 ac_save_LIBS="$LIBS"
14173LIBS="-lw $LIBS"
14174cat > conftest.$ac_ext <<EOF
1725144d 14175#line 14176 "configure"
10f2d63a 14176#include "confdefs.h"
4f14bcd8
GD
14177/* Override any gcc2 internal prototype to avoid an error. */
14178/* We use char because int might match the return type of a gcc2
14179 builtin and then its argument prototype would still apply. */
14180char wcslen();
10f2d63a 14181
698dcdb6 14182int main() {
4f14bcd8 14183wcslen()
698dcdb6
VZ
14184; return 0; }
14185EOF
1725144d 14186if { (eval echo configure:14187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14187 rm -rf conftest*
4f14bcd8 14188 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 14189else
698dcdb6
VZ
14190 echo "configure: failed program was:" >&5
14191 cat conftest.$ac_ext >&5
14192 rm -rf conftest*
4f14bcd8 14193 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 14194fi
698dcdb6 14195rm -f conftest*
4f14bcd8 14196LIBS="$ac_save_LIBS"
703e0a69 14197
1e487827 14198fi
4f14bcd8
GD
14199if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14200 echo "$ac_t""yes" 1>&6
14201
14202 cat >> confdefs.h <<\EOF
14203#define HAVE_WCSLEN 1
9d8deca0
VZ
14204EOF
14205
3d63bc3a 14206 WCHAR_LINK=" -lw"
4f14bcd8
GD
14207
14208else
14209 echo "$ac_t""no" 1>&6
698dcdb6 14210
4f14bcd8 14211 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
1725144d 14212echo "configure:14213: checking for wcslen in -lmsvcrt" >&5
4f14bcd8
GD
14213ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
14214if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
14215 echo $ac_n "(cached) $ac_c" 1>&6
14216else
4f14bcd8
GD
14217 ac_save_LIBS="$LIBS"
14218LIBS="-lmsvcrt $LIBS"
14219cat > conftest.$ac_ext <<EOF
1725144d 14220#line 14221 "configure"
95c8801c 14221#include "confdefs.h"
4f14bcd8
GD
14222/* Override any gcc2 internal prototype to avoid an error. */
14223/* We use char because int might match the return type of a gcc2
14224 builtin and then its argument prototype would still apply. */
14225char wcslen();
95c8801c 14226
4f14bcd8
GD
14227int main() {
14228wcslen()
698dcdb6
VZ
14229; return 0; }
14230EOF
1725144d 14231if { (eval echo configure:14232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14232 rm -rf conftest*
4f14bcd8 14233 eval "ac_cv_lib_$ac_lib_var=yes"
95c8801c 14234else
698dcdb6
VZ
14235 echo "configure: failed program was:" >&5
14236 cat conftest.$ac_ext >&5
14237 rm -rf conftest*
4f14bcd8 14238 eval "ac_cv_lib_$ac_lib_var=no"
95c8801c 14239fi
698dcdb6 14240rm -f conftest*
4f14bcd8 14241LIBS="$ac_save_LIBS"
95c8801c
VS
14242
14243fi
4f14bcd8
GD
14244if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14245 echo "$ac_t""yes" 1>&6
14246
14247 cat >> confdefs.h <<\EOF
14248#define HAVE_WCSLEN 1
14249EOF
698dcdb6 14250
3d63bc3a 14251 WCHAR_LINK=
4f14bcd8
GD
14252
14253else
14254 echo "$ac_t""no" 1>&6
14255fi
10f2d63a 14256
4f14bcd8
GD
14257
14258fi
95c8801c 14259
4f14bcd8 14260
95c8801c 14261fi
10f2d63a 14262
1e487827 14263
4f14bcd8 14264for ac_func in wcsrtombs
eb4efbdc 14265do
698dcdb6 14266echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1725144d 14267echo "configure:14268: checking for $ac_func" >&5
698dcdb6
VZ
14268if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14269 echo $ac_n "(cached) $ac_c" 1>&6
14270else
14271 cat > conftest.$ac_ext <<EOF
1725144d 14272#line 14273 "configure"
eb4efbdc
VZ
14273#include "confdefs.h"
14274/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14275 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
14276#include <assert.h>
14277/* Override any gcc2 internal prototype to avoid an error. */
14278/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14279 builtin and then its argument prototype would still apply. */
14280char $ac_func();
14281
14282int main() {
eb4efbdc
VZ
14283
14284/* The GNU C library defines this for functions which it implements
14285 to always fail with ENOSYS. Some functions are actually named
14286 something starting with __ and the normal name is an alias. */
14287#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14288choke me
14289#else
698dcdb6 14290$ac_func();
eb4efbdc
VZ
14291#endif
14292
698dcdb6 14293; return 0; }
eb4efbdc 14294EOF
1725144d 14295if { (eval echo configure:14296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14296 rm -rf conftest*
14297 eval "ac_cv_func_$ac_func=yes"
14298else
14299 echo "configure: failed program was:" >&5
14300 cat conftest.$ac_ext >&5
14301 rm -rf conftest*
14302 eval "ac_cv_func_$ac_func=no"
14303fi
14304rm -f conftest*
14305fi
eb4efbdc 14306
698dcdb6
VZ
14307if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14308 echo "$ac_t""yes" 1>&6
14309 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14310 cat >> confdefs.h <<EOF
14311#define $ac_tr_func 1
14312EOF
14313
14314else
14315 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
14316fi
14317done
14318
698dcdb6 14319
4f14bcd8 14320echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1725144d 14321echo "configure:14322: checking for vprintf" >&5
4f14bcd8 14322if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
698dcdb6
VZ
14323 echo $ac_n "(cached) $ac_c" 1>&6
14324else
4f14bcd8 14325 cat > conftest.$ac_ext <<EOF
1725144d 14326#line 14327 "configure"
f6bcfd97 14327#include "confdefs.h"
4f14bcd8
GD
14328/* System header to define __stub macros and hopefully few prototypes,
14329 which can conflict with char vprintf(); below. */
14330#include <assert.h>
14331/* Override any gcc2 internal prototype to avoid an error. */
14332/* We use char because int might match the return type of a gcc2
14333 builtin and then its argument prototype would still apply. */
14334char vprintf();
14335
698dcdb6 14336int main() {
f6bcfd97 14337
4f14bcd8
GD
14338/* The GNU C library defines this for functions which it implements
14339 to always fail with ENOSYS. Some functions are actually named
14340 something starting with __ and the normal name is an alias. */
14341#if defined (__stub_vprintf) || defined (__stub___vprintf)
14342choke me
14343#else
14344vprintf();
14345#endif
f6bcfd97 14346
698dcdb6
VZ
14347; return 0; }
14348EOF
1725144d 14349if { (eval echo configure:14350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14350 rm -rf conftest*
4f14bcd8 14351 eval "ac_cv_func_vprintf=yes"
f6bcfd97 14352else
698dcdb6
VZ
14353 echo "configure: failed program was:" >&5
14354 cat conftest.$ac_ext >&5
14355 rm -rf conftest*
4f14bcd8 14356 eval "ac_cv_func_vprintf=no"
6232543b 14357fi
698dcdb6 14358rm -f conftest*
1e487827 14359fi
698dcdb6 14360
4f14bcd8
GD
14361if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
14362 echo "$ac_t""yes" 1>&6
14363 cat >> confdefs.h <<\EOF
14364#define HAVE_VPRINTF 1
f6bcfd97
BP
14365EOF
14366
4f14bcd8
GD
14367else
14368 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
14369fi
14370
4f14bcd8
GD
14371if test "$ac_cv_func_vprintf" != yes; then
14372echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1725144d 14373echo "configure:14374: checking for _doprnt" >&5
4f14bcd8 14374if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
698dcdb6
VZ
14375 echo $ac_n "(cached) $ac_c" 1>&6
14376else
14377 cat > conftest.$ac_ext <<EOF
1725144d 14378#line 14379 "configure"
10f2d63a
VZ
14379#include "confdefs.h"
14380/* System header to define __stub macros and hopefully few prototypes,
4f14bcd8 14381 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
14382#include <assert.h>
14383/* Override any gcc2 internal prototype to avoid an error. */
14384/* We use char because int might match the return type of a gcc2
698dcdb6 14385 builtin and then its argument prototype would still apply. */
4f14bcd8 14386char _doprnt();
698dcdb6
VZ
14387
14388int main() {
10f2d63a
VZ
14389
14390/* The GNU C library defines this for functions which it implements
14391 to always fail with ENOSYS. Some functions are actually named
14392 something starting with __ and the normal name is an alias. */
4f14bcd8 14393#if defined (__stub__doprnt) || defined (__stub____doprnt)
10f2d63a
VZ
14394choke me
14395#else
4f14bcd8 14396_doprnt();
10f2d63a
VZ
14397#endif
14398
698dcdb6 14399; return 0; }
10f2d63a 14400EOF
1725144d 14401if { (eval echo configure:14402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14402 rm -rf conftest*
4f14bcd8 14403 eval "ac_cv_func__doprnt=yes"
698dcdb6
VZ
14404else
14405 echo "configure: failed program was:" >&5
14406 cat conftest.$ac_ext >&5
14407 rm -rf conftest*
4f14bcd8 14408 eval "ac_cv_func__doprnt=no"
698dcdb6
VZ
14409fi
14410rm -f conftest*
14411fi
270a909e 14412
4f14bcd8 14413if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
698dcdb6 14414 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
14415 cat >> confdefs.h <<\EOF
14416#define HAVE_DOPRNT 1
698dcdb6 14417EOF
4f14bcd8 14418
698dcdb6
VZ
14419else
14420 echo "$ac_t""no" 1>&6
270a909e 14421fi
270a909e 14422
4f14bcd8 14423fi
1e487827 14424
52e8b690 14425
52e8b690 14426
52e8b690 14427
52e8b690 14428
52e8b690 14429
4f14bcd8 14430echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
1725144d 14431echo "configure:14432: checking for vsnprintf" >&5
4f14bcd8 14432if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
698dcdb6 14433 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 14434else
4f14bcd8 14435
af15babd 14436 cat > conftest.$ac_ext <<EOF
1725144d 14437#line 14438 "configure"
c63c7106 14438#include "confdefs.h"
698dcdb6 14439
4f14bcd8
GD
14440 #include <stdio.h>
14441 #include <stdarg.h>
14442
af15babd
VZ
14443int main() {
14444
4f14bcd8
GD
14445 int wx_test_vsnprintf(const char *, ...);
14446
14447 wx_test_vsnprintf("%s");
14448 return 0;
14449 }
14450
14451 int wx_test_vsnprintf(const char *fmt, ...)
14452 {
14453 char *s;
14454
14455 va_list argp;
14456 va_start(argp, fmt);
14457 vsnprintf(s, 42, fmt, argp);
14458 va_end(argp);
14459
af15babd
VZ
14460; return 0; }
14461EOF
1725144d 14462if { (eval echo configure:14463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
14463 rm -rf conftest*
14464
4f14bcd8
GD
14465 wx_cv_func_vsnprintf=yes
14466
af15babd
VZ
14467else
14468 echo "configure: failed program was:" >&5
14469 cat conftest.$ac_ext >&5
14470 rm -rf conftest*
14471
4f14bcd8 14472 cat > conftest.$ac_ext <<EOF
1725144d 14473#line 14474 "configure"
af15babd 14474#include "confdefs.h"
af15babd 14475
4f14bcd8
GD
14476 #include <stdio.h>
14477 #include <stdarg.h>
14478
af15babd
VZ
14479int main() {
14480
4f14bcd8
GD
14481 int wx_test_vsnprintf(const char *, ...);
14482
14483 wx_test_vsnprintf("%s");
14484 return 0;
14485 }
14486
14487 int wx_test_vsnprintf(const char *fmt, ...)
14488 {
14489 char *s;
af15babd 14490
4f14bcd8
GD
14491 va_list argp;
14492 va_start(argp, fmt);
14493 _vsnprintf(s, 42, fmt, argp);
14494 va_end(argp);
14495
af15babd
VZ
14496; return 0; }
14497EOF
1725144d 14498if { (eval echo configure:14499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 14499 rm -rf conftest*
4f14bcd8
GD
14500
14501 wx_cv_func_vsnprintf=yes
14502
af15babd
VZ
14503else
14504 echo "configure: failed program was:" >&5
14505 cat conftest.$ac_ext >&5
14506 rm -rf conftest*
4f14bcd8
GD
14507
14508 wx_cv_func_vsnprintf=no
14509
af15babd
VZ
14510fi
14511rm -f conftest*
4f14bcd8 14512
af15babd 14513fi
4f14bcd8 14514rm -f conftest*
af15babd 14515
af15babd 14516fi
af15babd 14517
4f14bcd8 14518echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
af15babd 14519
4f14bcd8
GD
14520if test "$wx_cv_func_vsnprintf" = yes; then
14521 cat >> confdefs.h <<\EOF
14522#define HAVE_VSNPRINTF 1
14523EOF
14524
14525else
f9bc1684 14526 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
af15babd
VZ
14527fi
14528
4f14bcd8 14529echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
1725144d 14530echo "configure:14531: checking for vsscanf" >&5
4f14bcd8 14531if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
af15babd
VZ
14532 echo $ac_n "(cached) $ac_c" 1>&6
14533else
4f14bcd8 14534
af15babd 14535 cat > conftest.$ac_ext <<EOF
1725144d 14536#line 14537 "configure"
af15babd 14537#include "confdefs.h"
af15babd 14538
4f14bcd8
GD
14539 #include <stdio.h>
14540 #include <stdarg.h>
14541
af15babd
VZ
14542int main() {
14543
4f14bcd8
GD
14544 int wx_test_vsscanf(const char *, ...);
14545
14546 wx_test_vsscanf("%d");
14547 return 0;
14548 }
af15babd 14549
4f14bcd8
GD
14550 int wx_test_vsscanf(const char *fmt, ...)
14551 {
14552 va_list argp;
14553 va_start(argp, fmt);
14554 vsscanf("42", fmt, argp);
14555 va_end(argp);
14556
af15babd
VZ
14557; return 0; }
14558EOF
1725144d 14559if { (eval echo configure:14560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 14560 rm -rf conftest*
4f14bcd8
GD
14561
14562 wx_cv_func_vsscanf=yes
14563
af15babd
VZ
14564else
14565 echo "configure: failed program was:" >&5
14566 cat conftest.$ac_ext >&5
14567 rm -rf conftest*
4f14bcd8
GD
14568
14569 wx_cv_func_vsscanf=no
14570
af15babd
VZ
14571fi
14572rm -f conftest*
4f14bcd8 14573
af15babd
VZ
14574fi
14575
4f14bcd8
GD
14576echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
14577
14578if test "$wx_cv_func_vsscanf" = yes; then
14579 cat >> confdefs.h <<\EOF
14580#define HAVE_VSSCANF 1
af15babd 14581EOF
4f14bcd8 14582
af15babd 14583fi
af15babd 14584
4f14bcd8 14585if test "$TOOLKIT" != "MSW"; then
af15babd 14586
4f14bcd8
GD
14587
14588
14589ac_ext=C
14590# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14591ac_cpp='$CXXCPP $CPPFLAGS'
14592ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14593ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14594cross_compiling=$ac_cv_prog_cxx_cross
14595
14596echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
1725144d 14597echo "configure:14598: checking if iconv() takes char**" >&5
4f14bcd8 14598if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
af15babd
VZ
14599 echo $ac_n "(cached) $ac_c" 1>&6
14600else
4f14bcd8
GD
14601
14602 cat > conftest.$ac_ext <<EOF
1725144d 14603#line 14604 "configure"
af15babd 14604#include "confdefs.h"
4f14bcd8 14605#include <iconv.h>
af15babd
VZ
14606int main() {
14607
4f14bcd8
GD
14608 char **inbuf, **outbuf;
14609 iconv_t cd;
14610 size_t insz, outsz;
14611 iconv(cd, inbuf, &insz, outbuf, &outsz);
14612
af15babd
VZ
14613; return 0; }
14614EOF
1725144d 14615if { (eval echo configure:14616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 14616 rm -rf conftest*
4f14bcd8 14617 wx_cv_iconv_takes_char=yes
af15babd
VZ
14618else
14619 echo "configure: failed program was:" >&5
14620 cat conftest.$ac_ext >&5
14621 rm -rf conftest*
4f14bcd8 14622 wx_cv_iconv_takes_char=no
af15babd
VZ
14623fi
14624rm -f conftest*
af15babd 14625
af15babd 14626fi
af15babd 14627
4f14bcd8
GD
14628echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
14629ac_ext=c
14630# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14631ac_cpp='$CPP $CPPFLAGS'
14632ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14633ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14634cross_compiling=$ac_cv_prog_cc_cross
af15babd 14635
4f14bcd8
GD
14636if test "$wx_cv_iconv_takes_char" = yes ; then
14637 cat >> confdefs.h <<\EOF
14638#define WX_ICONV_TAKES_CHAR 1
af15babd
VZ
14639EOF
14640
af15babd
VZ
14641fi
14642
af15babd 14643
4f14bcd8
GD
14644if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
14645 for ac_func in sigaction
af15babd
VZ
14646do
14647echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1725144d 14648echo "configure:14649: checking for $ac_func" >&5
af15babd
VZ
14649if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14650 echo $ac_n "(cached) $ac_c" 1>&6
14651else
14652 cat > conftest.$ac_ext <<EOF
1725144d 14653#line 14654 "configure"
af15babd
VZ
14654#include "confdefs.h"
14655/* System header to define __stub macros and hopefully few prototypes,
14656 which can conflict with char $ac_func(); below. */
14657#include <assert.h>
14658/* Override any gcc2 internal prototype to avoid an error. */
14659/* We use char because int might match the return type of a gcc2
14660 builtin and then its argument prototype would still apply. */
14661char $ac_func();
14662
14663int main() {
14664
14665/* The GNU C library defines this for functions which it implements
14666 to always fail with ENOSYS. Some functions are actually named
14667 something starting with __ and the normal name is an alias. */
14668#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14669choke me
14670#else
14671$ac_func();
14672#endif
14673
14674; return 0; }
14675EOF
1725144d 14676if { (eval echo configure:14677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
14677 rm -rf conftest*
14678 eval "ac_cv_func_$ac_func=yes"
14679else
14680 echo "configure: failed program was:" >&5
14681 cat conftest.$ac_ext >&5
14682 rm -rf conftest*
14683 eval "ac_cv_func_$ac_func=no"
14684fi
14685rm -f conftest*
14686fi
14687
14688if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14689 echo "$ac_t""yes" 1>&6
14690 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14691 cat >> confdefs.h <<EOF
14692#define $ac_tr_func 1
14693EOF
4f14bcd8 14694
af15babd
VZ
14695else
14696 echo "$ac_t""no" 1>&6
4f14bcd8
GD
14697fi
14698done
14699
14700
14701 if test "$ac_cv_func_sigaction" = "no"; then
14702 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
14703 wxUSE_ON_FATAL_EXCEPTION=no
14704 fi
14705
14706 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
14707
14708 ac_ext=C
14709# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14710ac_cpp='$CXXCPP $CPPFLAGS'
14711ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14712ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14713cross_compiling=$ac_cv_prog_cxx_cross
14714
14715
14716 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
1725144d 14717echo "configure:14718: checking for sa_handler type" >&5
4f14bcd8 14718if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
af15babd
VZ
14719 echo $ac_n "(cached) $ac_c" 1>&6
14720else
4f14bcd8
GD
14721
14722 cat > conftest.$ac_ext <<EOF
1725144d 14723#line 14724 "configure"
af15babd 14724#include "confdefs.h"
4f14bcd8 14725#include <signal.h>
af15babd 14726int main() {
4f14bcd8
GD
14727
14728 extern void testSigHandler(int);
14729
14730 struct sigaction sa;
14731 sa.sa_handler = testSigHandler;
14732
af15babd
VZ
14733; return 0; }
14734EOF
1725144d 14735if { (eval echo configure:14736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 14736 rm -rf conftest*
4f14bcd8
GD
14737
14738 wx_cv_type_sa_handler=int
14739
af15babd
VZ
14740else
14741 echo "configure: failed program was:" >&5
14742 cat conftest.$ac_ext >&5
14743 rm -rf conftest*
4f14bcd8
GD
14744
14745 wx_cv_type_sa_handler=void
14746
af15babd
VZ
14747fi
14748rm -f conftest*
4f14bcd8
GD
14749
14750fi
14751
14752echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
14753
14754 ac_ext=c
14755# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14756ac_cpp='$CPP $CPPFLAGS'
14757ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14758ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14759cross_compiling=$ac_cv_prog_cc_cross
af15babd 14760
4f14bcd8
GD
14761
14762 cat >> confdefs.h <<EOF
14763#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
af15babd
VZ
14764EOF
14765
4f14bcd8
GD
14766 fi
14767fi
af15babd 14768
4f14bcd8 14769for ac_func in vfork
af15babd
VZ
14770do
14771echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1725144d 14772echo "configure:14773: checking for $ac_func" >&5
af15babd
VZ
14773if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14774 echo $ac_n "(cached) $ac_c" 1>&6
14775else
14776 cat > conftest.$ac_ext <<EOF
1725144d 14777#line 14778 "configure"
af15babd
VZ
14778#include "confdefs.h"
14779/* System header to define __stub macros and hopefully few prototypes,
14780 which can conflict with char $ac_func(); below. */
14781#include <assert.h>
14782/* Override any gcc2 internal prototype to avoid an error. */
14783/* We use char because int might match the return type of a gcc2
14784 builtin and then its argument prototype would still apply. */
14785char $ac_func();
14786
14787int main() {
14788
14789/* The GNU C library defines this for functions which it implements
14790 to always fail with ENOSYS. Some functions are actually named
14791 something starting with __ and the normal name is an alias. */
14792#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14793choke me
14794#else
14795$ac_func();
14796#endif
14797
14798; return 0; }
14799EOF
1725144d 14800if { (eval echo configure:14801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
14801 rm -rf conftest*
14802 eval "ac_cv_func_$ac_func=yes"
14803else
14804 echo "configure: failed program was:" >&5
14805 cat conftest.$ac_ext >&5
14806 rm -rf conftest*
14807 eval "ac_cv_func_$ac_func=no"
14808fi
14809rm -f conftest*
14810fi
14811
14812if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14813 echo "$ac_t""yes" 1>&6
14814 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14815 cat >> confdefs.h <<EOF
14816#define $ac_tr_func 1
14817EOF
4f14bcd8 14818
af15babd
VZ
14819else
14820 echo "$ac_t""no" 1>&6
af15babd
VZ
14821fi
14822done
14823
af15babd 14824
ade35f11
VZ
14825for ac_func in mkstemp mktemp
14826do
14827echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1725144d 14828echo "configure:14829: checking for $ac_func" >&5
ade35f11
VZ
14829if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14830 echo $ac_n "(cached) $ac_c" 1>&6
14831else
14832 cat > conftest.$ac_ext <<EOF
1725144d 14833#line 14834 "configure"
ade35f11
VZ
14834#include "confdefs.h"
14835/* System header to define __stub macros and hopefully few prototypes,
14836 which can conflict with char $ac_func(); below. */
14837#include <assert.h>
14838/* Override any gcc2 internal prototype to avoid an error. */
14839/* We use char because int might match the return type of a gcc2
14840 builtin and then its argument prototype would still apply. */
14841char $ac_func();
14842
14843int main() {
14844
14845/* The GNU C library defines this for functions which it implements
14846 to always fail with ENOSYS. Some functions are actually named
14847 something starting with __ and the normal name is an alias. */
14848#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14849choke me
14850#else
14851$ac_func();
14852#endif
14853
14854; return 0; }
14855EOF
1725144d 14856if { (eval echo configure:14857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ade35f11
VZ
14857 rm -rf conftest*
14858 eval "ac_cv_func_$ac_func=yes"
14859else
14860 echo "configure: failed program was:" >&5
14861 cat conftest.$ac_ext >&5
14862 rm -rf conftest*
14863 eval "ac_cv_func_$ac_func=no"
14864fi
14865rm -f conftest*
14866fi
14867
14868if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14869 echo "$ac_t""yes" 1>&6
14870 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14871 cat >> confdefs.h <<EOF
14872#define $ac_tr_func 1
14873EOF
14874 break
14875else
14876 echo "$ac_t""no" 1>&6
14877fi
14878done
14879
14880
4f14bcd8 14881echo $ac_n "checking for statfs""... $ac_c" 1>&6
1725144d 14882echo "configure:14883: checking for statfs" >&5
4f14bcd8
GD
14883if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
14884 echo $ac_n "(cached) $ac_c" 1>&6
14885else
14886 cat > conftest.$ac_ext <<EOF
1725144d 14887#line 14888 "configure"
4f14bcd8
GD
14888#include "confdefs.h"
14889
14890 #if defined(__BSD__)
14891 #include <sys/param.h>
14892 #include <sys/mount.h>
14893 #else
14894 #include <sys/vfs.h>
14895 #endif
14896
14897int main() {
14898
14899 long l;
14900 struct statfs fs;
14901 statfs("/", &fs);
14902 l = fs.f_bsize;
14903 l += fs.f_blocks;
14904 l += fs.f_bavail;
14905
14906; return 0; }
14907EOF
1725144d 14908if { (eval echo configure:14909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
14909 rm -rf conftest*
14910
14911 wx_cv_func_statfs=yes
14912
14913else
14914 echo "configure: failed program was:" >&5
14915 cat conftest.$ac_ext >&5
14916 rm -rf conftest*
14917
14918 wx_cv_func_statfs=no
af15babd
VZ
14919
14920
14921fi
4f14bcd8 14922rm -f conftest*
af15babd
VZ
14923
14924fi
14925
4f14bcd8
GD
14926echo "$ac_t""$wx_cv_func_statfs" 1>&6
14927
14928if test "$wx_cv_func_statfs" = "yes"; then
14929 cat >> confdefs.h <<\EOF
14930#define HAVE_STATFS 1
14931EOF
14932
14933else
14934 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
1725144d 14935echo "configure:14936: checking for statvfs" >&5
4f14bcd8 14936if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
af15babd
VZ
14937 echo $ac_n "(cached) $ac_c" 1>&6
14938else
14939 cat > conftest.$ac_ext <<EOF
1725144d 14940#line 14941 "configure"
af15babd 14941#include "confdefs.h"
af15babd 14942
4f14bcd8
GD
14943 #include <sys/statvfs.h>
14944
af15babd
VZ
14945int main() {
14946
4f14bcd8
GD
14947 long l;
14948 struct statvfs fs;
14949 statvfs("/", &fs);
14950 l = fs.f_bsize;
14951 l += fs.f_blocks;
14952 l += fs.f_bavail;
14953
af15babd
VZ
14954; return 0; }
14955EOF
1725144d 14956if { (eval echo configure:14957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 14957 rm -rf conftest*
4f14bcd8
GD
14958
14959 wx_cv_func_statvfs=yes
14960
af15babd
VZ
14961else
14962 echo "configure: failed program was:" >&5
14963 cat conftest.$ac_ext >&5
14964 rm -rf conftest*
4f14bcd8
GD
14965
14966 wx_cv_func_statvfs=no
14967
14968
af15babd
VZ
14969fi
14970rm -f conftest*
4f14bcd8 14971
af15babd
VZ
14972fi
14973
4f14bcd8 14974echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 14975
4f14bcd8
GD
14976 if test "$wx_cv_func_statvfs" = "yes"; then
14977 cat >> confdefs.h <<\EOF
14978#define HAVE_STATVFS 1
14979EOF
af15babd 14980
4f14bcd8
GD
14981 else
14982 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
14983 fi
14984fi
af15babd 14985
4f14bcd8
GD
14986if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
14987 for ac_func in fcntl flock
af15babd
VZ
14988do
14989echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1725144d 14990echo "configure:14991: checking for $ac_func" >&5
af15babd
VZ
14991if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14992 echo $ac_n "(cached) $ac_c" 1>&6
14993else
14994 cat > conftest.$ac_ext <<EOF
1725144d 14995#line 14996 "configure"
af15babd
VZ
14996#include "confdefs.h"
14997/* System header to define __stub macros and hopefully few prototypes,
14998 which can conflict with char $ac_func(); below. */
14999#include <assert.h>
15000/* Override any gcc2 internal prototype to avoid an error. */
af15babd
VZ
15001/* We use char because int might match the return type of a gcc2
15002 builtin and then its argument prototype would still apply. */
15003char $ac_func();
15004
15005int main() {
15006
15007/* The GNU C library defines this for functions which it implements
15008 to always fail with ENOSYS. Some functions are actually named
15009 something starting with __ and the normal name is an alias. */
15010#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15011choke me
15012#else
15013$ac_func();
15014#endif
15015
15016; return 0; }
15017EOF
1725144d 15018if { (eval echo configure:15019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15019 rm -rf conftest*
15020 eval "ac_cv_func_$ac_func=yes"
15021else
15022 echo "configure: failed program was:" >&5
15023 cat conftest.$ac_ext >&5
15024 rm -rf conftest*
15025 eval "ac_cv_func_$ac_func=no"
15026fi
15027rm -f conftest*
15028fi
15029
15030if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15031 echo "$ac_t""yes" 1>&6
15032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15033 cat >> confdefs.h <<EOF
15034#define $ac_tr_func 1
15035EOF
4f14bcd8 15036 break
af15babd
VZ
15037else
15038 echo "$ac_t""no" 1>&6
15039fi
15040done
15041
15042
4f14bcd8
GD
15043 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
15044 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
15045 wxUSE_SNGLINST_CHECKER=no
15046 fi
15047fi
af15babd 15048
4f14bcd8 15049for ac_func in timegm
af15babd
VZ
15050do
15051echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1725144d 15052echo "configure:15053: checking for $ac_func" >&5
af15babd
VZ
15053if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15054 echo $ac_n "(cached) $ac_c" 1>&6
15055else
15056 cat > conftest.$ac_ext <<EOF
1725144d 15057#line 15058 "configure"
af15babd
VZ
15058#include "confdefs.h"
15059/* System header to define __stub macros and hopefully few prototypes,
15060 which can conflict with char $ac_func(); below. */
15061#include <assert.h>
15062/* Override any gcc2 internal prototype to avoid an error. */
15063/* We use char because int might match the return type of a gcc2
15064 builtin and then its argument prototype would still apply. */
15065char $ac_func();
15066
698dcdb6 15067int main() {
698dcdb6 15068
af15babd
VZ
15069/* The GNU C library defines this for functions which it implements
15070 to always fail with ENOSYS. Some functions are actually named
15071 something starting with __ and the normal name is an alias. */
15072#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15073choke me
15074#else
15075$ac_func();
15076#endif
15077
698dcdb6
VZ
15078; return 0; }
15079EOF
1725144d 15080if { (eval echo configure:15081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15081 rm -rf conftest*
af15babd 15082 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
15083else
15084 echo "configure: failed program was:" >&5
15085 cat conftest.$ac_ext >&5
15086 rm -rf conftest*
af15babd 15087 eval "ac_cv_func_$ac_func=no"
1e487827 15088fi
9952adac 15089rm -f conftest*
af15babd 15090fi
703e0a69 15091
af15babd
VZ
15092if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15093 echo "$ac_t""yes" 1>&6
15094 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4f14bcd8
GD
15095 cat >> confdefs.h <<EOF
15096#define $ac_tr_func 1
15097EOF
15098
15099else
15100 echo "$ac_t""no" 1>&6
af15babd
VZ
15101fi
15102done
15103
15104
4f14bcd8 15105for ac_func in putenv setenv
10f2d63a 15106do
698dcdb6 15107echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1725144d 15108echo "configure:15109: checking for $ac_func" >&5
698dcdb6
VZ
15109if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15110 echo $ac_n "(cached) $ac_c" 1>&6
15111else
15112 cat > conftest.$ac_ext <<EOF
1725144d 15113#line 15114 "configure"
af15babd
VZ
15114#include "confdefs.h"
15115/* System header to define __stub macros and hopefully few prototypes,
15116 which can conflict with char $ac_func(); below. */
15117#include <assert.h>
15118/* Override any gcc2 internal prototype to avoid an error. */
15119/* We use char because int might match the return type of a gcc2
15120 builtin and then its argument prototype would still apply. */
15121char $ac_func();
15122
15123int main() {
15124
15125/* The GNU C library defines this for functions which it implements
15126 to always fail with ENOSYS. Some functions are actually named
15127 something starting with __ and the normal name is an alias. */
15128#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15129choke me
15130#else
15131$ac_func();
15132#endif
15133
15134; return 0; }
15135EOF
1725144d 15136if { (eval echo configure:15137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15137 rm -rf conftest*
15138 eval "ac_cv_func_$ac_func=yes"
15139else
15140 echo "configure: failed program was:" >&5
15141 cat conftest.$ac_ext >&5
15142 rm -rf conftest*
15143 eval "ac_cv_func_$ac_func=no"
15144fi
15145rm -f conftest*
15146fi
15147
15148if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15149 echo "$ac_t""yes" 1>&6
15150 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15151 cat >> confdefs.h <<EOF
15152#define $ac_tr_func 1
15153EOF
4f14bcd8 15154 break
af15babd
VZ
15155else
15156 echo "$ac_t""no" 1>&6
15157fi
af15babd
VZ
15158done
15159
15160
4f14bcd8
GD
15161HAVE_SOME_SLEEP_FUNC=0
15162if test "$USE_BEOS" = 1; then
15163 cat >> confdefs.h <<\EOF
15164#define HAVE_SLEEP 1
af15babd
VZ
15165EOF
15166
4f14bcd8 15167 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
15168fi
15169
4f14bcd8
GD
15170if test "$USE_DARWIN" = 1; then
15171 cat >> confdefs.h <<\EOF
15172#define HAVE_USLEEP 1
af15babd 15173EOF
10f2d63a 15174
4f14bcd8 15175 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
15176fi
15177
4f14bcd8
GD
15178if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
15179 POSIX4_LINK=
15180 for ac_func in nanosleep
15181do
15182echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1725144d 15183echo "configure:15184: checking for $ac_func" >&5
4f14bcd8 15184if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 15185 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15186else
4f14bcd8 15187 cat > conftest.$ac_ext <<EOF
1725144d 15188#line 15189 "configure"
10f2d63a 15189#include "confdefs.h"
4f14bcd8
GD
15190/* System header to define __stub macros and hopefully few prototypes,
15191 which can conflict with char $ac_func(); below. */
15192#include <assert.h>
10f2d63a
VZ
15193/* Override any gcc2 internal prototype to avoid an error. */
15194/* We use char because int might match the return type of a gcc2
698dcdb6 15195 builtin and then its argument prototype would still apply. */
4f14bcd8 15196char $ac_func();
698dcdb6
VZ
15197
15198int main() {
4f14bcd8
GD
15199
15200/* The GNU C library defines this for functions which it implements
15201 to always fail with ENOSYS. Some functions are actually named
15202 something starting with __ and the normal name is an alias. */
15203#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15204choke me
15205#else
15206$ac_func();
15207#endif
15208
698dcdb6
VZ
15209; return 0; }
15210EOF
1725144d 15211if { (eval echo configure:15212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15212 rm -rf conftest*
4f14bcd8 15213 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
15214else
15215 echo "configure: failed program was:" >&5
15216 cat conftest.$ac_ext >&5
15217 rm -rf conftest*
4f14bcd8 15218 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
15219fi
15220rm -f conftest*
698dcdb6 15221fi
4f14bcd8
GD
15222
15223if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15224 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15225 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15226 cat >> confdefs.h <<EOF
15227#define $ac_tr_func 1
15228EOF
15229 cat >> confdefs.h <<\EOF
15230#define HAVE_NANOSLEEP 1
15231EOF
15232
10f2d63a 15233else
698dcdb6 15234 echo "$ac_t""no" 1>&6
4f14bcd8 15235echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1725144d 15236echo "configure:15237: checking for nanosleep in -lposix4" >&5
4f14bcd8 15237ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15238if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15239 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15240else
698dcdb6 15241 ac_save_LIBS="$LIBS"
4f14bcd8 15242LIBS="-lposix4 $LIBS"
698dcdb6 15243cat > conftest.$ac_ext <<EOF
1725144d 15244#line 15245 "configure"
10f2d63a
VZ
15245#include "confdefs.h"
15246/* Override any gcc2 internal prototype to avoid an error. */
15247/* We use char because int might match the return type of a gcc2
698dcdb6 15248 builtin and then its argument prototype would still apply. */
4f14bcd8 15249char nanosleep();
698dcdb6
VZ
15250
15251int main() {
4f14bcd8 15252nanosleep()
698dcdb6
VZ
15253; return 0; }
15254EOF
1725144d 15255if { (eval echo configure:15256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15256 rm -rf conftest*
15257 eval "ac_cv_lib_$ac_lib_var=yes"
15258else
15259 echo "configure: failed program was:" >&5
15260 cat conftest.$ac_ext >&5
15261 rm -rf conftest*
15262 eval "ac_cv_lib_$ac_lib_var=no"
15263fi
15264rm -f conftest*
15265LIBS="$ac_save_LIBS"
10f2d63a 15266
698dcdb6
VZ
15267fi
15268if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15269 echo "$ac_t""yes" 1>&6
15270
4f14bcd8
GD
15271 cat >> confdefs.h <<\EOF
15272#define HAVE_NANOSLEEP 1
15273EOF
15274
3d63bc3a 15275 POSIX4_LINK=" -lposix4"
4f14bcd8 15276
10f2d63a 15277else
698dcdb6 15278 echo "$ac_t""no" 1>&6
10f2d63a 15279
4f14bcd8
GD
15280 for ac_func in usleep
15281do
15282echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1725144d 15283echo "configure:15284: checking for $ac_func" >&5
4f14bcd8 15284if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 15285 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15286else
698dcdb6 15287 cat > conftest.$ac_ext <<EOF
1725144d 15288#line 15289 "configure"
10f2d63a 15289#include "confdefs.h"
4f14bcd8
GD
15290/* System header to define __stub macros and hopefully few prototypes,
15291 which can conflict with char $ac_func(); below. */
15292#include <assert.h>
15293/* Override any gcc2 internal prototype to avoid an error. */
15294/* We use char because int might match the return type of a gcc2
15295 builtin and then its argument prototype would still apply. */
15296char $ac_func();
15297
15298int main() {
15299
15300/* The GNU C library defines this for functions which it implements
15301 to always fail with ENOSYS. Some functions are actually named
15302 something starting with __ and the normal name is an alias. */
15303#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15304choke me
15305#else
15306$ac_func();
15307#endif
15308
15309; return 0; }
698dcdb6 15310EOF
1725144d 15311if { (eval echo configure:15312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15312 rm -rf conftest*
4f14bcd8 15313 eval "ac_cv_func_$ac_func=yes"
1e487827 15314else
698dcdb6 15315 echo "configure: failed program was:" >&5
10f2d63a 15316 cat conftest.$ac_ext >&5
698dcdb6 15317 rm -rf conftest*
4f14bcd8 15318 eval "ac_cv_func_$ac_func=no"
10f2d63a 15319fi
698dcdb6 15320rm -f conftest*
10f2d63a 15321fi
4f14bcd8
GD
15322
15323if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15324 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15325 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15326 cat >> confdefs.h <<EOF
15327#define $ac_tr_func 1
15328EOF
15329 cat >> confdefs.h <<\EOF
15330#define HAVE_USLEEP 1
15331EOF
15332
698dcdb6
VZ
15333else
15334 echo "$ac_t""no" 1>&6
4f14bcd8
GD
15335echo "configure: warning: wxSleep() function will not work" 1>&2
15336
10f2d63a 15337fi
4f14bcd8 15338done
10f2d63a 15339
4f14bcd8 15340
698dcdb6 15341
6232543b 15342fi
10f2d63a 15343
698dcdb6 15344
4f14bcd8 15345
1e487827 15346fi
4f14bcd8 15347done
703e0a69 15348
10f2d63a
VZ
15349fi
15350
4f14bcd8 15351for ac_func in uname gethostname
70846f0a 15352do
698dcdb6 15353echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1725144d 15354echo "configure:15355: checking for $ac_func" >&5
698dcdb6
VZ
15355if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15356 echo $ac_n "(cached) $ac_c" 1>&6
15357else
15358 cat > conftest.$ac_ext <<EOF
1725144d 15359#line 15360 "configure"
70846f0a
VZ
15360#include "confdefs.h"
15361/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15362 which can conflict with char $ac_func(); below. */
70846f0a
VZ
15363#include <assert.h>
15364/* Override any gcc2 internal prototype to avoid an error. */
15365/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15366 builtin and then its argument prototype would still apply. */
15367char $ac_func();
15368
15369int main() {
70846f0a
VZ
15370
15371/* The GNU C library defines this for functions which it implements
15372 to always fail with ENOSYS. Some functions are actually named
15373 something starting with __ and the normal name is an alias. */
15374#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15375choke me
15376#else
698dcdb6 15377$ac_func();
70846f0a
VZ
15378#endif
15379
698dcdb6 15380; return 0; }
70846f0a 15381EOF
1725144d 15382if { (eval echo configure:15383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15383 rm -rf conftest*
15384 eval "ac_cv_func_$ac_func=yes"
15385else
15386 echo "configure: failed program was:" >&5
15387 cat conftest.$ac_ext >&5
15388 rm -rf conftest*
15389 eval "ac_cv_func_$ac_func=no"
15390fi
15391rm -f conftest*
15392fi
70846f0a 15393
698dcdb6
VZ
15394if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15395 echo "$ac_t""yes" 1>&6
15396 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15397 cat >> confdefs.h <<EOF
15398#define $ac_tr_func 1
15399EOF
4f14bcd8 15400 break
698dcdb6
VZ
15401else
15402 echo "$ac_t""no" 1>&6
70846f0a
VZ
15403fi
15404done
15405
698dcdb6 15406
4f14bcd8
GD
15407
15408ac_ext=C
15409# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15410ac_cpp='$CXXCPP $CPPFLAGS'
15411ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15412ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15413cross_compiling=$ac_cv_prog_cxx_cross
15414
15415
15416for ac_func in strtok_r
10f2d63a 15417do
4f14bcd8 15418echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1725144d 15419echo "configure:15420: checking for $ac_func" >&5
4f14bcd8 15420if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
15421 echo $ac_n "(cached) $ac_c" 1>&6
15422else
15423 cat > conftest.$ac_ext <<EOF
1725144d 15424#line 15425 "configure"
10f2d63a 15425#include "confdefs.h"
4f14bcd8
GD
15426/* System header to define __stub macros and hopefully few prototypes,
15427 which can conflict with char $ac_func(); below. */
15428#include <assert.h>
15429/* Override any gcc2 internal prototype to avoid an error. */
15430#ifdef __cplusplus
15431extern "C"
15432#endif
15433/* We use char because int might match the return type of a gcc2
15434 builtin and then its argument prototype would still apply. */
15435char $ac_func();
15436
15437int main() {
15438
15439/* The GNU C library defines this for functions which it implements
15440 to always fail with ENOSYS. Some functions are actually named
15441 something starting with __ and the normal name is an alias. */
15442#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15443choke me
15444#else
15445$ac_func();
15446#endif
15447
15448; return 0; }
698dcdb6 15449EOF
1725144d 15450if { (eval echo configure:15451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15451 rm -rf conftest*
4f14bcd8 15452 eval "ac_cv_func_$ac_func=yes"
1e487827 15453else
698dcdb6 15454 echo "configure: failed program was:" >&5
10f2d63a 15455 cat conftest.$ac_ext >&5
698dcdb6 15456 rm -rf conftest*
4f14bcd8 15457 eval "ac_cv_func_$ac_func=no"
10f2d63a 15458fi
698dcdb6 15459rm -f conftest*
10f2d63a 15460fi
4f14bcd8
GD
15461
15462if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15463 echo "$ac_t""yes" 1>&6
4f14bcd8 15464 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
698dcdb6 15465 cat >> confdefs.h <<EOF
4f14bcd8 15466#define $ac_tr_func 1
10f2d63a 15467EOF
698dcdb6
VZ
15468
15469else
15470 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15471fi
15472done
15473
698dcdb6 15474
4f14bcd8
GD
15475ac_ext=c
15476# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15477ac_cpp='$CPP $CPPFLAGS'
15478ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15479ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15480cross_compiling=$ac_cv_prog_cc_cross
15481
15482
15483INET_LINK=
15484for ac_func in inet_addr
15485do
15486echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1725144d 15487echo "configure:15488: checking for $ac_func" >&5
4f14bcd8 15488if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 15489 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15490else
4f14bcd8 15491 cat > conftest.$ac_ext <<EOF
1725144d 15492#line 15493 "configure"
10f2d63a 15493#include "confdefs.h"
4f14bcd8
GD
15494/* System header to define __stub macros and hopefully few prototypes,
15495 which can conflict with char $ac_func(); below. */
15496#include <assert.h>
10f2d63a
VZ
15497/* Override any gcc2 internal prototype to avoid an error. */
15498/* We use char because int might match the return type of a gcc2
698dcdb6 15499 builtin and then its argument prototype would still apply. */
4f14bcd8 15500char $ac_func();
698dcdb6
VZ
15501
15502int main() {
4f14bcd8
GD
15503
15504/* The GNU C library defines this for functions which it implements
15505 to always fail with ENOSYS. Some functions are actually named
15506 something starting with __ and the normal name is an alias. */
15507#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15508choke me
15509#else
15510$ac_func();
15511#endif
15512
698dcdb6
VZ
15513; return 0; }
15514EOF
1725144d 15515if { (eval echo configure:15516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15516 rm -rf conftest*
4f14bcd8 15517 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
15518else
15519 echo "configure: failed program was:" >&5
15520 cat conftest.$ac_ext >&5
15521 rm -rf conftest*
4f14bcd8 15522 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
15523fi
15524rm -f conftest*
698dcdb6 15525fi
4f14bcd8
GD
15526
15527if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15528 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15529 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15530 cat >> confdefs.h <<EOF
15531#define $ac_tr_func 1
15532EOF
15533 cat >> confdefs.h <<\EOF
15534#define HAVE_INET_ADDR 1
10f2d63a
VZ
15535EOF
15536
15537else
698dcdb6 15538 echo "$ac_t""no" 1>&6
4f14bcd8 15539echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
1725144d 15540echo "configure:15541: checking for inet_addr in -lnsl" >&5
4f14bcd8 15541ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15542if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15543 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15544else
698dcdb6 15545 ac_save_LIBS="$LIBS"
4f14bcd8 15546LIBS="-lnsl $LIBS"
698dcdb6 15547cat > conftest.$ac_ext <<EOF
1725144d 15548#line 15549 "configure"
10f2d63a
VZ
15549#include "confdefs.h"
15550/* Override any gcc2 internal prototype to avoid an error. */
15551/* We use char because int might match the return type of a gcc2
698dcdb6 15552 builtin and then its argument prototype would still apply. */
4f14bcd8 15553char inet_addr();
698dcdb6
VZ
15554
15555int main() {
4f14bcd8 15556inet_addr()
698dcdb6
VZ
15557; return 0; }
15558EOF
1725144d 15559if { (eval echo configure:15560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15560 rm -rf conftest*
15561 eval "ac_cv_lib_$ac_lib_var=yes"
15562else
15563 echo "configure: failed program was:" >&5
15564 cat conftest.$ac_ext >&5
15565 rm -rf conftest*
15566 eval "ac_cv_lib_$ac_lib_var=no"
15567fi
15568rm -f conftest*
15569LIBS="$ac_save_LIBS"
15570
15571fi
15572if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15573 echo "$ac_t""yes" 1>&6
4f14bcd8 15574 INET_LINK="nsl"
10f2d63a 15575else
698dcdb6 15576 echo "$ac_t""no" 1>&6
4f14bcd8 15577echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
1725144d 15578echo "configure:15579: checking for inet_addr in -lresolv" >&5
4f14bcd8 15579ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15580if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15581 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15582else
698dcdb6 15583 ac_save_LIBS="$LIBS"
4f14bcd8 15584LIBS="-lresolv $LIBS"
698dcdb6 15585cat > conftest.$ac_ext <<EOF
1725144d 15586#line 15587 "configure"
10f2d63a
VZ
15587#include "confdefs.h"
15588/* Override any gcc2 internal prototype to avoid an error. */
15589/* We use char because int might match the return type of a gcc2
698dcdb6 15590 builtin and then its argument prototype would still apply. */
4f14bcd8 15591char inet_addr();
698dcdb6
VZ
15592
15593int main() {
4f14bcd8 15594inet_addr()
698dcdb6
VZ
15595; return 0; }
15596EOF
1725144d 15597if { (eval echo configure:15598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15598 rm -rf conftest*
15599 eval "ac_cv_lib_$ac_lib_var=yes"
15600else
15601 echo "configure: failed program was:" >&5
15602 cat conftest.$ac_ext >&5
15603 rm -rf conftest*
15604 eval "ac_cv_lib_$ac_lib_var=no"
15605fi
15606rm -f conftest*
15607LIBS="$ac_save_LIBS"
15608
15609fi
15610if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15611 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15612 INET_LINK="resolv"
15613
698dcdb6 15614else
4f14bcd8
GD
15615 echo "$ac_t""no" 1>&6
15616fi
698dcdb6 15617
4f14bcd8 15618
698dcdb6 15619fi
4f14bcd8
GD
15620
15621
698dcdb6
VZ
15622
15623fi
4f14bcd8
GD
15624done
15625
15626
15627for ac_func in inet_aton
15628do
15629echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1725144d 15630echo "configure:15631: checking for $ac_func" >&5
4f14bcd8 15631if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
15632 echo $ac_n "(cached) $ac_c" 1>&6
15633else
4f14bcd8 15634 cat > conftest.$ac_ext <<EOF
1725144d 15635#line 15636 "configure"
f6bcfd97 15636#include "confdefs.h"
4f14bcd8
GD
15637/* System header to define __stub macros and hopefully few prototypes,
15638 which can conflict with char $ac_func(); below. */
15639#include <assert.h>
f6bcfd97
BP
15640/* Override any gcc2 internal prototype to avoid an error. */
15641/* We use char because int might match the return type of a gcc2
698dcdb6 15642 builtin and then its argument prototype would still apply. */
4f14bcd8 15643char $ac_func();
698dcdb6
VZ
15644
15645int main() {
4f14bcd8
GD
15646
15647/* The GNU C library defines this for functions which it implements
15648 to always fail with ENOSYS. Some functions are actually named
15649 something starting with __ and the normal name is an alias. */
15650#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15651choke me
15652#else
15653$ac_func();
15654#endif
15655
698dcdb6
VZ
15656; return 0; }
15657EOF
1725144d 15658if { (eval echo configure:15659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15659 rm -rf conftest*
4f14bcd8 15660 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
15661else
15662 echo "configure: failed program was:" >&5
15663 cat conftest.$ac_ext >&5
15664 rm -rf conftest*
4f14bcd8 15665 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
15666fi
15667rm -f conftest*
698dcdb6 15668fi
4f14bcd8
GD
15669
15670if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15671 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15672 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15673 cat >> confdefs.h <<EOF
15674#define $ac_tr_func 1
15675EOF
15676 cat >> confdefs.h <<\EOF
15677#define HAVE_INET_ATON 1
15678EOF
15679
10f2d63a 15680else
698dcdb6 15681 echo "$ac_t""no" 1>&6
4f14bcd8 15682 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
1725144d 15683echo "configure:15684: checking for inet_aton in -l$INET_LINK" >&5
4f14bcd8 15684ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15685if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15686 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 15687else
698dcdb6 15688 ac_save_LIBS="$LIBS"
4f14bcd8 15689LIBS="-l$INET_LINK $LIBS"
698dcdb6 15690cat > conftest.$ac_ext <<EOF
1725144d 15691#line 15692 "configure"
10f2d63a 15692#include "confdefs.h"
6232543b 15693/* Override any gcc2 internal prototype to avoid an error. */
6232543b 15694/* We use char because int might match the return type of a gcc2
698dcdb6 15695 builtin and then its argument prototype would still apply. */
4f14bcd8 15696char inet_aton();
698dcdb6
VZ
15697
15698int main() {
4f14bcd8 15699inet_aton()
698dcdb6
VZ
15700; return 0; }
15701EOF
1725144d 15702if { (eval echo configure:15703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15703 rm -rf conftest*
15704 eval "ac_cv_lib_$ac_lib_var=yes"
15705else
15706 echo "configure: failed program was:" >&5
15707 cat conftest.$ac_ext >&5
15708 rm -rf conftest*
15709 eval "ac_cv_lib_$ac_lib_var=no"
15710fi
15711rm -f conftest*
15712LIBS="$ac_save_LIBS"
10f2d63a 15713
698dcdb6
VZ
15714fi
15715if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15716 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15717 cat >> confdefs.h <<\EOF
15718#define HAVE_INET_ATON 1
15719EOF
15720
698dcdb6
VZ
15721else
15722 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15723fi
15724
4f14bcd8 15725
10f2d63a 15726fi
4f14bcd8 15727done
10f2d63a 15728
4f14bcd8
GD
15729
15730if test "x$INET_LINK" != "x"; then
15731 cat >> confdefs.h <<\EOF
15732#define HAVE_INET_ADDR 1
15733EOF
15734
3d63bc3a 15735 INET_LINK=" -l$INET_LINK"
6232543b 15736fi
10f2d63a 15737
1e487827 15738fi
703e0a69 15739
698dcdb6 15740
4f14bcd8
GD
15741cat > confcache <<\EOF
15742# This file is a shell script that caches the results of configure
15743# tests run on this system so they can be shared between configure
15744# scripts and configure runs. It is not useful on other systems.
15745# If it contains results you don't want to keep, you may remove or edit it.
15746#
15747# By default, configure uses ./config.cache as the cache file,
15748# creating it if it does not exist already. You can give configure
15749# the --cache-file=FILE option to use a different cache file; that is
15750# what configure does when it calls configure scripts in
15751# subdirectories, so they share the cache.
15752# Giving --cache-file=/dev/null disables caching, for debugging configure.
15753# config.status only pays attention to the cache file if you give it the
15754# --recheck option to rerun configure.
15755#
f6bcfd97 15756EOF
4f14bcd8
GD
15757# The following way of writing the cache mishandles newlines in values,
15758# but we know of no workaround that is simple, portable, and efficient.
15759# So, don't put newlines in cache variables' values.
15760# Ultrix sh set writes to stderr and can't be redirected directly,
15761# and sets the high bit in the cache file unless we assign to the vars.
15762(set) 2>&1 |
15763 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15764 *ac_space=\ *)
15765 # `set' does not quote correctly, so add quotes (double-quote substitution
15766 # turns \\\\ into \\, and sed turns \\ into \).
15767 sed -n \
15768 -e "s/'/'\\\\''/g" \
15769 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15770 ;;
15771 *)
15772 # `set' quotes correctly as required by POSIX, so do not add quotes.
15773 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15774 ;;
15775 esac >> confcache
15776if cmp -s $cache_file confcache; then
15777 :
15778else
15779 if test -w $cache_file; then
15780 echo "updating cache $cache_file"
15781 cat confcache > $cache_file
f6bcfd97 15782 else
4f14bcd8 15783 echo "not updating unwritable cache $cache_file"
f6bcfd97 15784 fi
4f14bcd8
GD
15785fi
15786rm -f confcache
f6bcfd97 15787
4f14bcd8
GD
15788
15789
15790if test "$TOOLKIT" != "MSW"; then
15791
7274f1c7
RL
15792
15793 THREADS_LINK=
15794 THREADS_OBJ=
15795 CODE_GEN_FLAGS=
15796 CODE_GEN_FLAGS_CXX=
15797
15798 if test "$wxUSE_THREADS" = "yes" ; then
15799 if test "$wxUSE_WINE" = 1 ; then
156b2523 15800 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
7274f1c7
RL
15801 wxUSE_THREADS="no"
15802 elif test "$USE_BEOS" = 1; then
156b2523 15803 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
15804 wxUSE_THREADS="no"
15805 fi
4f14bcd8 15806 fi
4f14bcd8 15807
7274f1c7
RL
15808 if test "$wxUSE_THREADS" = "yes" ; then
15809
15810 if test "$USE_AIX" = 1; then
15811 THREADS_LIB=pthreads
15812 else
15813 THREADS_LIB=pthread
15814 fi
4f14bcd8 15815
7274f1c7 15816 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
1725144d 15817echo "configure:15818: checking for pthread_create in -l$THREADS_LIB" >&5
4f14bcd8 15818ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15819if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15820 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15821else
698dcdb6 15822 ac_save_LIBS="$LIBS"
4f14bcd8 15823LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 15824cat > conftest.$ac_ext <<EOF
1725144d 15825#line 15826 "configure"
10f2d63a
VZ
15826#include "confdefs.h"
15827/* Override any gcc2 internal prototype to avoid an error. */
15828/* We use char because int might match the return type of a gcc2
698dcdb6 15829 builtin and then its argument prototype would still apply. */
4f14bcd8 15830char pthread_create();
698dcdb6
VZ
15831
15832int main() {
4f14bcd8 15833pthread_create()
698dcdb6
VZ
15834; return 0; }
15835EOF
1725144d 15836if { (eval echo configure:15837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15837 rm -rf conftest*
15838 eval "ac_cv_lib_$ac_lib_var=yes"
15839else
15840 echo "configure: failed program was:" >&5
15841 cat conftest.$ac_ext >&5
15842 rm -rf conftest*
15843 eval "ac_cv_lib_$ac_lib_var=no"
15844fi
15845rm -f conftest*
15846LIBS="$ac_save_LIBS"
15847
15848fi
15849if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15850 echo "$ac_t""yes" 1>&6
4f14bcd8 15851
7274f1c7
RL
15852 THREADS_OBJ="threadpsx.lo"
15853 THREADS_LINK=$THREADS_LIB
15854
10f2d63a 15855else
698dcdb6 15856 echo "$ac_t""no" 1>&6
10f2d63a 15857
7274f1c7 15858 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
1725144d 15859echo "configure:15860: checking for pthread_create in -lc_r" >&5
4f14bcd8
GD
15860ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
15861if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
15862 echo $ac_n "(cached) $ac_c" 1>&6
15863else
4f14bcd8
GD
15864 ac_save_LIBS="$LIBS"
15865LIBS="-lc_r $LIBS"
15866cat > conftest.$ac_ext <<EOF
1725144d 15867#line 15868 "configure"
10f2d63a 15868#include "confdefs.h"
4f14bcd8
GD
15869/* Override any gcc2 internal prototype to avoid an error. */
15870/* We use char because int might match the return type of a gcc2
15871 builtin and then its argument prototype would still apply. */
15872char pthread_create();
10f2d63a 15873
4f14bcd8
GD
15874int main() {
15875pthread_create()
698dcdb6
VZ
15876; return 0; }
15877EOF
1725144d 15878if { (eval echo configure:15879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15879 rm -rf conftest*
4f14bcd8 15880 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 15881else
698dcdb6
VZ
15882 echo "configure: failed program was:" >&5
15883 cat conftest.$ac_ext >&5
15884 rm -rf conftest*
4f14bcd8 15885 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 15886fi
698dcdb6 15887rm -f conftest*
4f14bcd8 15888LIBS="$ac_save_LIBS"
d9b9876f 15889
4f14bcd8
GD
15890fi
15891if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15892 echo "$ac_t""yes" 1>&6
15893
7274f1c7
RL
15894 THREADS_OBJ="threadpsx.lo"
15895 THREADS_LINK="c_r"
15896
4f14bcd8
GD
15897else
15898 echo "$ac_t""no" 1>&6
ab252f7b 15899
7274f1c7 15900 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
4f14bcd8 15901echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
1725144d 15902echo "configure:15903: checking for sys/prctl.h" >&5
4f14bcd8 15903if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 15904 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 15905else
4f14bcd8 15906 cat > conftest.$ac_ext <<EOF
1725144d 15907#line 15908 "configure"
d9b9876f 15908#include "confdefs.h"
4f14bcd8 15909#include <sys/prctl.h>
698dcdb6 15910EOF
4f14bcd8 15911ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 15912{ (eval echo configure:15913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
15913ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15914if test -z "$ac_err"; then
698dcdb6 15915 rm -rf conftest*
4f14bcd8 15916 eval "ac_cv_header_$ac_safe=yes"
d9b9876f 15917else
4f14bcd8 15918 echo "$ac_err" >&5
698dcdb6
VZ
15919 echo "configure: failed program was:" >&5
15920 cat conftest.$ac_ext >&5
15921 rm -rf conftest*
4f14bcd8 15922 eval "ac_cv_header_$ac_safe=no"
6232543b 15923fi
698dcdb6 15924rm -f conftest*
4f14bcd8
GD
15925fi
15926if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15927 echo "$ac_t""yes" 1>&6
698dcdb6 15928
7274f1c7
RL
15929 THREADS_OBJ="threadsgi.lo"
15930
4f14bcd8
GD
15931else
15932 echo "$ac_t""no" 1>&6
1e487827 15933fi
698dcdb6 15934
7274f1c7 15935
4f14bcd8 15936fi
d9b9876f 15937
7274f1c7 15938
4f14bcd8 15939fi
d9b9876f 15940
4f14bcd8 15941
7274f1c7
RL
15942 if test -z "$THREADS_OBJ" ; then
15943 wxUSE_THREADS=no
156b2523 15944 echo "configure: warning: No thread support on this system... disabled" 1>&2
7274f1c7 15945 fi
4f14bcd8 15946 fi
4f14bcd8 15947
7274f1c7
RL
15948 if test "$wxUSE_THREADS" = "yes" ; then
15949 for ac_func in thr_setconcurrency
4f14bcd8
GD
15950do
15951echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1725144d 15952echo "configure:15953: checking for $ac_func" >&5
4f14bcd8 15953if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
15954 echo $ac_n "(cached) $ac_c" 1>&6
15955else
4f14bcd8 15956 cat > conftest.$ac_ext <<EOF
1725144d 15957#line 15958 "configure"
d9b9876f 15958#include "confdefs.h"
4f14bcd8
GD
15959/* System header to define __stub macros and hopefully few prototypes,
15960 which can conflict with char $ac_func(); below. */
15961#include <assert.h>
15962/* Override any gcc2 internal prototype to avoid an error. */
15963/* We use char because int might match the return type of a gcc2
15964 builtin and then its argument prototype would still apply. */
15965char $ac_func();
15966
698dcdb6 15967int main() {
d9b9876f 15968
4f14bcd8
GD
15969/* The GNU C library defines this for functions which it implements
15970 to always fail with ENOSYS. Some functions are actually named
15971 something starting with __ and the normal name is an alias. */
15972#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15973choke me
15974#else
15975$ac_func();
15976#endif
15977
698dcdb6
VZ
15978; return 0; }
15979EOF
1725144d 15980if { (eval echo configure:15981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15981 rm -rf conftest*
4f14bcd8 15982 eval "ac_cv_func_$ac_func=yes"
d9b9876f 15983else
698dcdb6
VZ
15984 echo "configure: failed program was:" >&5
15985 cat conftest.$ac_ext >&5
15986 rm -rf conftest*
4f14bcd8 15987 eval "ac_cv_func_$ac_func=no"
6232543b 15988fi
698dcdb6 15989rm -f conftest*
1e487827 15990fi
698dcdb6 15991
4f14bcd8
GD
15992if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15993 echo "$ac_t""yes" 1>&6
15994 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15995 cat >> confdefs.h <<EOF
15996#define $ac_tr_func 1
d9b9876f 15997EOF
4f14bcd8
GD
15998
15999else
16000 echo "$ac_t""no" 1>&6
10f2d63a 16001fi
4f14bcd8 16002done
10f2d63a 16003
10f2d63a 16004
7274f1c7
RL
16005
16006 for ac_hdr in sched.h
4f14bcd8
GD
16007do
16008ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16009echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1725144d 16010echo "configure:16011: checking for $ac_hdr" >&5
4f14bcd8
GD
16011if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16012 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16013else
4f14bcd8 16014 cat > conftest.$ac_ext <<EOF
1725144d 16015#line 16016 "configure"
4f14bcd8
GD
16016#include "confdefs.h"
16017#include <$ac_hdr>
13111b2a 16018EOF
4f14bcd8 16019ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 16020{ (eval echo configure:16021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
16021ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16022if test -z "$ac_err"; then
16023 rm -rf conftest*
16024 eval "ac_cv_header_$ac_safe=yes"
16025else
16026 echo "$ac_err" >&5
16027 echo "configure: failed program was:" >&5
16028 cat conftest.$ac_ext >&5
16029 rm -rf conftest*
16030 eval "ac_cv_header_$ac_safe=no"
13111b2a 16031fi
4f14bcd8 16032rm -f conftest*
10f2d63a 16033fi
4f14bcd8
GD
16034if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16035 echo "$ac_t""yes" 1>&6
16036 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
698dcdb6 16037 cat >> confdefs.h <<EOF
4f14bcd8 16038#define $ac_tr_hdr 1
f6bcfd97 16039EOF
4f14bcd8
GD
16040
16041else
16042 echo "$ac_t""no" 1>&6
f6bcfd97 16043fi
4f14bcd8 16044done
f6bcfd97 16045
10f2d63a 16046
7274f1c7 16047 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
1725144d 16048echo "configure:16049: checking for sched_yield in -l$THREADS_LINK" >&5
4f14bcd8
GD
16049ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
16050if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16051 echo $ac_n "(cached) $ac_c" 1>&6
16052else
16053 ac_save_LIBS="$LIBS"
16054LIBS="-l$THREADS_LINK $LIBS"
16055cat > conftest.$ac_ext <<EOF
1725144d 16056#line 16057 "configure"
4f14bcd8
GD
16057#include "confdefs.h"
16058/* Override any gcc2 internal prototype to avoid an error. */
16059/* We use char because int might match the return type of a gcc2
16060 builtin and then its argument prototype would still apply. */
16061char sched_yield();
10f2d63a 16062
4f14bcd8
GD
16063int main() {
16064sched_yield()
16065; return 0; }
10f2d63a 16066EOF
1725144d 16067if { (eval echo configure:16068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
16068 rm -rf conftest*
16069 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 16070else
4f14bcd8
GD
16071 echo "configure: failed program was:" >&5
16072 cat conftest.$ac_ext >&5
16073 rm -rf conftest*
16074 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 16075fi
4f14bcd8
GD
16076rm -f conftest*
16077LIBS="$ac_save_LIBS"
10f2d63a 16078
4f14bcd8
GD
16079fi
16080if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16081 echo "$ac_t""yes" 1>&6
16082 cat >> confdefs.h <<\EOF
16083#define HAVE_SCHED_YIELD 1
10f2d63a
VZ
16084EOF
16085
4f14bcd8
GD
16086else
16087 echo "$ac_t""no" 1>&6
16088echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
1725144d 16089echo "configure:16090: checking for sched_yield in -lposix4" >&5
4f14bcd8
GD
16090ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
16091if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16092 echo $ac_n "(cached) $ac_c" 1>&6
16093else
16094 ac_save_LIBS="$LIBS"
16095LIBS="-lposix4 $LIBS"
16096cat > conftest.$ac_ext <<EOF
1725144d 16097#line 16098 "configure"
4f14bcd8
GD
16098#include "confdefs.h"
16099/* Override any gcc2 internal prototype to avoid an error. */
16100/* We use char because int might match the return type of a gcc2
16101 builtin and then its argument prototype would still apply. */
16102char sched_yield();
47c13eb7 16103
4f14bcd8
GD
16104int main() {
16105sched_yield()
16106; return 0; }
10f2d63a 16107EOF
1725144d 16108if { (eval echo configure:16109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
16109 rm -rf conftest*
16110 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 16111else
4f14bcd8
GD
16112 echo "configure: failed program was:" >&5
16113 cat conftest.$ac_ext >&5
16114 rm -rf conftest*
16115 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 16116fi
4f14bcd8
GD
16117rm -f conftest*
16118LIBS="$ac_save_LIBS"
10f2d63a 16119
54276ccf 16120fi
4f14bcd8
GD
16121if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16122 echo "$ac_t""yes" 1>&6
16123 cat >> confdefs.h <<\EOF
16124#define HAVE_SCHED_YIELD 1
54276ccf 16125EOF
3d63bc3a 16126 POSIX4_LINK=" -lposix4"
4f14bcd8
GD
16127else
16128 echo "$ac_t""no" 1>&6
16129echo "configure: warning: wxThread::Yield will not work properly" 1>&2
7274f1c7 16130
54276ccf
VZ
16131fi
16132
7274f1c7 16133
4f14bcd8 16134fi
698dcdb6 16135
10f2d63a 16136
7274f1c7
RL
16137 HAVE_PRIOR_FUNCS=0
16138 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
1725144d 16139echo "configure:16140: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
4f14bcd8
GD
16140ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
16141if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
16142 echo $ac_n "(cached) $ac_c" 1>&6
16143else
4f14bcd8
GD
16144 ac_save_LIBS="$LIBS"
16145LIBS="-l$THREADS_LINK $LIBS"
16146cat > conftest.$ac_ext <<EOF
1725144d 16147#line 16148 "configure"
422107f9 16148#include "confdefs.h"
4f14bcd8
GD
16149/* Override any gcc2 internal prototype to avoid an error. */
16150/* We use char because int might match the return type of a gcc2
16151 builtin and then its argument prototype would still apply. */
16152char pthread_attr_getschedpolicy();
16153
16154int main() {
16155pthread_attr_getschedpolicy()
16156; return 0; }
698dcdb6 16157EOF
1725144d 16158if { (eval echo configure:16159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16159 rm -rf conftest*
4f14bcd8 16160 eval "ac_cv_lib_$ac_lib_var=yes"
422107f9 16161else
698dcdb6 16162 echo "configure: failed program was:" >&5
422107f9 16163 cat conftest.$ac_ext >&5
698dcdb6 16164 rm -rf conftest*
4f14bcd8 16165 eval "ac_cv_lib_$ac_lib_var=no"
422107f9 16166fi
698dcdb6 16167rm -f conftest*
4f14bcd8
GD
16168LIBS="$ac_save_LIBS"
16169
422107f9 16170fi
4f14bcd8 16171if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 16172 echo "$ac_t""yes" 1>&6
4f14bcd8 16173 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
1725144d 16174echo "configure:16175: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
4f14bcd8 16175ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16176if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16177 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 16178else
698dcdb6 16179 ac_save_LIBS="$LIBS"
4f14bcd8 16180LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 16181cat > conftest.$ac_ext <<EOF
1725144d 16182#line 16183 "configure"
422107f9
VZ
16183#include "confdefs.h"
16184/* Override any gcc2 internal prototype to avoid an error. */
16185/* We use char because int might match the return type of a gcc2
698dcdb6 16186 builtin and then its argument prototype would still apply. */
4f14bcd8 16187char pthread_attr_setschedparam();
698dcdb6
VZ
16188
16189int main() {
4f14bcd8 16190pthread_attr_setschedparam()
698dcdb6
VZ
16191; return 0; }
16192EOF
1725144d 16193if { (eval echo configure:16194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16194 rm -rf conftest*
16195 eval "ac_cv_lib_$ac_lib_var=yes"
16196else
16197 echo "configure: failed program was:" >&5
16198 cat conftest.$ac_ext >&5
16199 rm -rf conftest*
16200 eval "ac_cv_lib_$ac_lib_var=no"
16201fi
16202rm -f conftest*
16203LIBS="$ac_save_LIBS"
16204
16205fi
16206if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16207 echo "$ac_t""yes" 1>&6
4f14bcd8 16208 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
1725144d 16209echo "configure:16210: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
4f14bcd8
GD
16210ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
16211if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
16212 echo $ac_n "(cached) $ac_c" 1>&6
16213else
4f14bcd8
GD
16214 ac_save_LIBS="$LIBS"
16215LIBS="-l$THREADS_LINK $LIBS"
16216cat > conftest.$ac_ext <<EOF
1725144d 16217#line 16218 "configure"
422107f9 16218#include "confdefs.h"
4f14bcd8
GD
16219/* Override any gcc2 internal prototype to avoid an error. */
16220/* We use char because int might match the return type of a gcc2
16221 builtin and then its argument prototype would still apply. */
16222char sched_get_priority_max();
16223
16224int main() {
16225sched_get_priority_max()
16226; return 0; }
698dcdb6 16227EOF
1725144d 16228if { (eval echo configure:16229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16229 rm -rf conftest*
4f14bcd8 16230 eval "ac_cv_lib_$ac_lib_var=yes"
422107f9 16231else
698dcdb6 16232 echo "configure: failed program was:" >&5
422107f9 16233 cat conftest.$ac_ext >&5
698dcdb6 16234 rm -rf conftest*
4f14bcd8 16235 eval "ac_cv_lib_$ac_lib_var=no"
422107f9 16236fi
698dcdb6 16237rm -f conftest*
4f14bcd8
GD
16238LIBS="$ac_save_LIBS"
16239
422107f9 16240fi
4f14bcd8 16241if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 16242 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16243 HAVE_PRIOR_FUNCS=1
16244else
16245 echo "$ac_t""no" 1>&6
16246echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
1725144d 16247echo "configure:16248: checking for sched_get_priority_max in -lposix4" >&5
4f14bcd8 16248ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16249if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16250 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 16251else
698dcdb6 16252 ac_save_LIBS="$LIBS"
4f14bcd8 16253LIBS="-lposix4 $LIBS"
698dcdb6 16254cat > conftest.$ac_ext <<EOF
1725144d 16255#line 16256 "configure"
422107f9
VZ
16256#include "confdefs.h"
16257/* Override any gcc2 internal prototype to avoid an error. */
16258/* We use char because int might match the return type of a gcc2
698dcdb6 16259 builtin and then its argument prototype would still apply. */
4f14bcd8 16260char sched_get_priority_max();
698dcdb6
VZ
16261
16262int main() {
4f14bcd8 16263sched_get_priority_max()
698dcdb6
VZ
16264; return 0; }
16265EOF
1725144d 16266if { (eval echo configure:16267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16267 rm -rf conftest*
16268 eval "ac_cv_lib_$ac_lib_var=yes"
16269else
16270 echo "configure: failed program was:" >&5
16271 cat conftest.$ac_ext >&5
16272 rm -rf conftest*
16273 eval "ac_cv_lib_$ac_lib_var=no"
16274fi
16275rm -f conftest*
16276LIBS="$ac_save_LIBS"
16277
16278fi
16279if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16280 echo "$ac_t""yes" 1>&6
4f14bcd8 16281
7274f1c7
RL
16282 HAVE_PRIOR_FUNCS=1
16283 POSIX4_LINK=" -lposix4"
16284
698dcdb6
VZ
16285else
16286 echo "$ac_t""no" 1>&6
422107f9
VZ
16287fi
16288
7274f1c7 16289
422107f9
VZ
16290fi
16291
7274f1c7 16292
4f14bcd8
GD
16293else
16294 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16295fi
16296
7274f1c7 16297
698dcdb6 16298else
4f14bcd8
GD
16299 echo "$ac_t""no" 1>&6
16300fi
463abc64 16301
463abc64 16302
7274f1c7
RL
16303 if test "$HAVE_PRIOR_FUNCS" = 1; then
16304 cat >> confdefs.h <<\EOF
4f14bcd8 16305#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
698dcdb6 16306EOF
463abc64 16307
7274f1c7
RL
16308 else
16309 echo "configure: warning: Setting thread priority will not work" 1>&2
16310 fi
463abc64 16311
7274f1c7 16312 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
1725144d 16313echo "configure:16314: checking for pthread_cancel in -l$THREADS_LINK" >&5
4f14bcd8 16314ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16315if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16316 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 16317else
698dcdb6 16318 ac_save_LIBS="$LIBS"
4f14bcd8 16319LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 16320cat > conftest.$ac_ext <<EOF
1725144d 16321#line 16322 "configure"
422107f9
VZ
16322#include "confdefs.h"
16323/* Override any gcc2 internal prototype to avoid an error. */
16324/* We use char because int might match the return type of a gcc2
698dcdb6 16325 builtin and then its argument prototype would still apply. */
4f14bcd8 16326char pthread_cancel();
698dcdb6
VZ
16327
16328int main() {
4f14bcd8 16329pthread_cancel()
698dcdb6
VZ
16330; return 0; }
16331EOF
1725144d 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_lib_$ac_lib_var=yes"
16335else
16336 echo "configure: failed program was:" >&5
16337 cat conftest.$ac_ext >&5
16338 rm -rf conftest*
16339 eval "ac_cv_lib_$ac_lib_var=no"
16340fi
16341rm -f conftest*
16342LIBS="$ac_save_LIBS"
16343
16344fi
16345if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16346 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16347 cat >> confdefs.h <<\EOF
16348#define HAVE_PTHREAD_CANCEL 1
16349EOF
16350
698dcdb6
VZ
16351else
16352 echo "$ac_t""no" 1>&6
4f14bcd8 16353echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
16354fi
16355
422107f9 16356
7274f1c7 16357 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
1725144d 16358echo "configure:16359: checking for pthread_cleanup_push/pop" >&5
4f14bcd8
GD
16359if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
16360 echo $ac_n "(cached) $ac_c" 1>&6
16361else
16362
7274f1c7 16363 cat > conftest.$ac_ext <<EOF
1725144d 16364#line 16365 "configure"
4f14bcd8
GD
16365#include "confdefs.h"
16366#include <pthread.h>
16367int main() {
16368
7274f1c7
RL
16369 pthread_cleanup_push(NULL, NULL);
16370 pthread_cleanup_pop(0);
16371
4f14bcd8
GD
16372; return 0; }
16373EOF
1725144d 16374if { (eval echo configure:16375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
16375 rm -rf conftest*
16376
7274f1c7
RL
16377 wx_cv_func_pthread_cleanup_push=yes
16378
4f14bcd8
GD
16379else
16380 echo "configure: failed program was:" >&5
16381 cat conftest.$ac_ext >&5
16382 rm -rf conftest*
16383
7274f1c7
RL
16384 wx_cv_func_pthread_cleanup_push=no
16385
4f14bcd8
GD
16386fi
16387rm -f conftest*
7274f1c7 16388
10f2d63a
VZ
16389fi
16390
4f14bcd8
GD
16391echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
16392
7274f1c7
RL
16393 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
16394 cat >> confdefs.h <<\EOF
4f14bcd8 16395#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
c7a2bf27
RR
16396EOF
16397
7274f1c7 16398 fi
4f14bcd8 16399
7274f1c7
RL
16400
16401 if test "x$wx_lib_glibc21" = "xyes"; then
16402 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
16403 fi
4f14bcd8 16404
7274f1c7 16405 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
1725144d 16406echo "configure:16407: checking for pthread_mutexattr_t" >&5
4f14bcd8 16407if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
698dcdb6
VZ
16408 echo $ac_n "(cached) $ac_c" 1>&6
16409else
4f14bcd8 16410
7274f1c7 16411 cat > conftest.$ac_ext <<EOF
1725144d 16412#line 16413 "configure"
0dcf9893 16413#include "confdefs.h"
4f14bcd8
GD
16414#include <pthread.h>
16415int main() {
16416
7274f1c7
RL
16417 pthread_mutexattr_t attr;
16418 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
16419
4f14bcd8 16420; return 0; }
698dcdb6 16421EOF
1725144d 16422if { (eval echo configure:16423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16423 rm -rf conftest*
4f14bcd8 16424
7274f1c7
RL
16425 wx_cv_type_pthread_mutexattr_t=yes
16426
3fed1840 16427else
698dcdb6 16428 echo "configure: failed program was:" >&5
3fed1840 16429 cat conftest.$ac_ext >&5
698dcdb6 16430 rm -rf conftest*
4f14bcd8 16431
7274f1c7
RL
16432 wx_cv_type_pthread_mutexattr_t=no
16433
4f14bcd8 16434
3fed1840 16435fi
698dcdb6 16436rm -f conftest*
7274f1c7 16437
3fed1840 16438fi
4f14bcd8
GD
16439
16440echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
16441
7274f1c7
RL
16442 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
16443 cat >> confdefs.h <<\EOF
4f14bcd8
GD
16444#define HAVE_PTHREAD_MUTEXATTR_T 1
16445EOF
16446
7274f1c7
RL
16447 else
16448 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
1725144d 16449echo "configure:16450: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
4f14bcd8 16450if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
698dcdb6 16451 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 16452else
4f14bcd8 16453
7274f1c7 16454 cat > conftest.$ac_ext <<EOF
1725144d 16455#line 16456 "configure"
3fed1840 16456#include "confdefs.h"
4f14bcd8 16457#include <pthread.h>
698dcdb6 16458int main() {
4f14bcd8 16459
7274f1c7
RL
16460 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
16461
698dcdb6
VZ
16462; return 0; }
16463EOF
1725144d 16464if { (eval echo configure:16465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16465 rm -rf conftest*
4f14bcd8 16466
7274f1c7
RL
16467 wx_cv_type_pthread_rec_mutex_init=yes
16468
698dcdb6
VZ
16469else
16470 echo "configure: failed program was:" >&5
16471 cat conftest.$ac_ext >&5
16472 rm -rf conftest*
4f14bcd8 16473
7274f1c7
RL
16474 wx_cv_type_pthread_rec_mutex_init=no
16475
4f14bcd8 16476
698dcdb6
VZ
16477fi
16478rm -f conftest*
7274f1c7 16479
3fed1840
RR
16480fi
16481
4f14bcd8 16482echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7
RL
16483 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
16484 cat >> confdefs.h <<\EOF
4f14bcd8
GD
16485#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
16486EOF
3fed1840 16487
7274f1c7
RL
16488 else
16489 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
16490 fi
16491 fi
4f14bcd8 16492
7274f1c7 16493 THREADS_LINK=" -l$THREADS_LINK"
4f14bcd8 16494
7274f1c7
RL
16495 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
16496 CPPFLAGS="$CFLAGS -mt"
16497 CXXFLAGS="$CXXFLAGS -mt"
16498 LDFLAGS="$LDFLAGS -mt"
16499 fi
16500 fi
3fed1840 16501
4f14bcd8
GD
16502fi
16503
16504if test "$wxUSE_THREADS" = "yes"; then
3a922bb4 16505 cat >> confdefs.h <<\EOF
4f14bcd8 16506#define wxUSE_THREADS 1
7b6058cd
GD
16507EOF
16508
4f14bcd8 16509
3f345b47 16510 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG"
4f14bcd8
GD
16511
16512 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 16513else
4f14bcd8
GD
16514 if test "$ac_cv_func_strtok_r" = "yes"; then
16515 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
1725144d 16516echo "configure:16517: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
16517 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
16518 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
16519 echo "$ac_t""yes" 1>&6
16520 else
16521 echo "$ac_t""no" 1>&6
16522 fi
16523 fi
16524fi
16525
16526if test "$WXGTK20" = 1 ; then
16527 cat >> confdefs.h <<EOF
16528#define __WXGTK20__ $WXGTK20
698dcdb6 16529EOF
4f14bcd8
GD
16530
16531 WXGTK12=1
10f2d63a 16532fi
4f14bcd8
GD
16533
16534if test "$WXGTK12" = 1 ; then
16535 cat >> confdefs.h <<EOF
16536#define __WXGTK12__ $WXGTK12
16537EOF
16538
10f2d63a 16539fi
698dcdb6 16540
4f14bcd8
GD
16541if test "$WXGTK127" = 1 ; then
16542 cat >> confdefs.h <<EOF
16543#define __WXGTK127__ $WXGTK127
698dcdb6 16544EOF
4f14bcd8 16545
698dcdb6 16546fi
10f2d63a 16547
4f14bcd8
GD
16548WXDEBUG=
16549
16550if test "$wxUSE_DEBUG_INFO" = "yes" ; then
16551 WXDEBUG="-g"
16552 wxUSE_OPTIMISE=no
698dcdb6 16553fi
4f14bcd8
GD
16554
16555if test "$wxUSE_DEBUG_GDB" = "yes" ; then
16556 wxUSE_DEBUG_INFO=yes
16557 WXDEBUG="-ggdb"
10f2d63a
VZ
16558fi
16559
4f14bcd8
GD
16560if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
16561 cat >> confdefs.h <<\EOF
16562#define WXDEBUG 1
16563EOF
16564
16565 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 16566else
4f14bcd8
GD
16567 if test "$wxUSE_GTK" = 1 ; then
16568 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
16569 fi
16570fi
16571
16572if test "$wxUSE_MEM_TRACING" = "yes" ; then
16573 cat >> confdefs.h <<\EOF
16574#define wxUSE_MEMORY_TRACING 1
16575EOF
16576
16577 cat >> confdefs.h <<\EOF
16578#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
16579EOF
16580
16581 cat >> confdefs.h <<\EOF
16582#define wxUSE_DEBUG_NEW_ALWAYS 1
16583EOF
16584
16585 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
16586fi
16587
16588if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 16589 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
16590fi
16591
16592PROFILE=
16593if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 16594 PROFILE=" -pg"
10f2d63a
VZ
16595fi
16596
88e30f2b 16597if test "$GCC" = "yes" ; then
4f14bcd8
GD
16598 if test "$wxUSE_NO_RTTI" = "yes" ; then
16599 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 16600 fi
4f14bcd8
GD
16601 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
16602 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
16603 fi
16604 if test "$wxUSE_PERMISSIVE" = "yes" ; then
16605 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
16606 fi
4f14bcd8
GD
16607 if test "$USE_WIN32" = 1 ; then
16608 # I'm not even really sure what this was ever added to solve,
16609 # but someone added it for mingw native builds, so I guess
16610 # they had a reason, right??
16611 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
16612 fi
16613fi
16614
16615
16616CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
16617CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
16618if test "$wxUSE_OPTIMISE" = "no" ; then
16619 OPTIMISE=
16620else
16621 if test "$GCC" = yes ; then
16622 OPTIMISE="-O2"
16623 case "${host}" in
16624 i586-*-*|i686-*-* )
16625 OPTIMISE="${OPTIMISE} "
16626 ;;
16627 esac
16628 else
16629 OPTIMISE="-O"
16630 fi
16631fi
16632
16633if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
16634 cat >> confdefs.h <<\EOF
16635#define WXWIN_COMPATIBILITY_2 1
16636EOF
16637
16638
16639 WXWIN_COMPATIBILITY_2_2="yes"
16640fi
16641
16642if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
16643 cat >> confdefs.h <<\EOF
16644#define WXWIN_COMPATIBILITY_2_2 1
16645EOF
16646
10f2d63a
VZ
16647fi
16648
698dcdb6 16649
10f2d63a 16650if test "$wxUSE_GUI" = "yes"; then
698dcdb6 16651 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16652#define wxUSE_GUI 1
16653EOF
16654
698dcdb6 16655
10f2d63a 16656 else
698dcdb6 16657 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16658#define wxUSE_NOGUI 1
16659EOF
16660
16661fi
16662
698dcdb6 16663
10f2d63a 16664if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 16665 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16666#define wxUSE_UNIX 1
16667EOF
16668
16669fi
16670
698dcdb6 16671
10f2d63a 16672if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 16673 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16674#define wxUSE_APPLE_IEEE 1
16675EOF
16676
16677fi
16678
1e6feb95
VZ
16679if test "$wxUSE_TIMER" = "yes"; then
16680 cat >> confdefs.h <<\EOF
16681#define wxUSE_TIMER 1
16682EOF
16683
16684fi
16685
10f2d63a 16686if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 16687 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16688#define wxUSE_WAVE 1
16689EOF
16690
16691fi
16692
1e6feb95
VZ
16693if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
16694 cat >> confdefs.h <<\EOF
16695#define wxUSE_CMDLINE_PARSER 1
16696EOF
16697
16698fi
16699
16700if test "$wxUSE_STOPWATCH" = "yes"; then
16701 cat >> confdefs.h <<\EOF
16702#define wxUSE_STOPWATCH 1
16703EOF
16704
16705fi
16706
16707if test "$wxUSE_DATETIME" = "yes"; then
16708 cat >> confdefs.h <<\EOF
16709#define wxUSE_DATETIME 1
16710EOF
16711
16712fi
16713
16714if test "$wxUSE_TIMEDATE" = "yes"; then
16715 cat >> confdefs.h <<\EOF
16716#define wxUSE_TIMEDATE 1
16717EOF
16718
16719fi
16720
10f2d63a 16721if test "$wxUSE_FILE" = "yes"; then
698dcdb6 16722 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16723#define wxUSE_FILE 1
16724EOF
16725
16726fi
16727
1e6feb95
VZ
16728if test "$wxUSE_FFILE" = "yes"; then
16729 cat >> confdefs.h <<\EOF
16730#define wxUSE_FFILE 1
16731EOF
16732
16733fi
16734
24528b0c 16735if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 16736 cat >> confdefs.h <<\EOF
24528b0c
VS
16737#define wxUSE_FILESYSTEM 1
16738EOF
16739
16740fi
16741
10f2d63a 16742if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 16743 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16744#define wxUSE_FS_INET 1
16745EOF
16746
16747fi
16748
16749if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 16750 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16751#define wxUSE_FS_ZIP 1
16752EOF
16753
16754fi
16755
16756if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 16757 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16758#define wxUSE_ZIPSTREAM 1
16759EOF
16760
16761fi
16762
eb4efbdc 16763if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 16764 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
16765#define wxUSE_ON_FATAL_EXCEPTION 1
16766EOF
16767
16768fi
16769
4f3c5f06 16770if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 16771 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
16772#define wxUSE_SNGLINST_CHECKER 1
16773EOF
16774
16775fi
16776
10f2d63a 16777if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 16778 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16779#define wxUSE_BUSYINFO 1
16780EOF
16781
16782fi
16783
16784if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 16785 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16786#define wxUSE_STD_IOSTREAM 1
16787EOF
16788
16789fi
16790
a3a584a7
VZ
16791if test "$wxUSE_TEXTBUFFER" = "yes"; then
16792 cat >> confdefs.h <<\EOF
16793#define wxUSE_TEXTBUFFER 1
16794EOF
16795
16796fi
16797
10f2d63a 16798if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 16799 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
156b2523 16800 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 16801 else
698dcdb6 16802 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16803#define wxUSE_TEXTFILE 1
16804EOF
16805
16806 fi
16807fi
16808
16809if test "$wxUSE_CONFIG" = "yes" ; then
16810 if test "$wxUSE_TEXTFILE" != "yes"; then
156b2523 16811 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 16812 else
698dcdb6 16813 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16814#define wxUSE_CONFIG 1
16815EOF
16816
16817 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
16818 fi
16819fi
16820
16821if test "$wxUSE_INTL" = "yes" ; then
16822 if test "$wxUSE_FILE" != "yes"; then
156b2523 16823 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 16824 else
698dcdb6 16825 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16826#define wxUSE_INTL 1
16827EOF
16828
16829 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 16830 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
16831 fi
16832fi
16833
16834if test "$wxUSE_LOG" = "yes"; then
698dcdb6 16835 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16836#define wxUSE_LOG 1
16837EOF
16838
d73be714
VZ
16839
16840 if test "$wxUSE_LOGGUI" = "yes"; then
16841 cat >> confdefs.h <<\EOF
16842#define wxUSE_LOGGUI 1
16843EOF
16844
16845 fi
16846
16847 if test "$wxUSE_LOGWINDOW" = "yes"; then
16848 cat >> confdefs.h <<\EOF
16849#define wxUSE_LOGWINDOW 1
69d27ff7
MB
16850EOF
16851
16852 fi
16853
16854 if test "$wxUSE_LOGDIALOG" = "yes"; then
16855 cat >> confdefs.h <<\EOF
16856#define wxUSE_LOG_DIALOG 1
d73be714
VZ
16857EOF
16858
16859 fi
10f2d63a
VZ
16860fi
16861
16862if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 16863 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16864#define wxUSE_LONGLONG 1
16865EOF
16866
16867fi
16868
e8f65ba6 16869if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 16870 cat >> confdefs.h <<\EOF
e8f65ba6
RR
16871#define wxUSE_GEOMETRY 1
16872EOF
16873
16874fi
16875
10f2d63a 16876if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 16877 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16878#define wxUSE_DIALUP_MANAGER 1
16879EOF
16880
70f7a477 16881 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
16882fi
16883
16884if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 16885 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16886#define wxUSE_STREAMS 1
16887EOF
16888
16889fi
16890
1e487827 16891
1e6feb95 16892if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 16893 for ac_func in strptime
83307f33 16894do
698dcdb6 16895echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1725144d 16896echo "configure:16897: checking for $ac_func" >&5
698dcdb6
VZ
16897if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16898 echo $ac_n "(cached) $ac_c" 1>&6
16899else
16900 cat > conftest.$ac_ext <<EOF
1725144d 16901#line 16902 "configure"
83307f33
VZ
16902#include "confdefs.h"
16903/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16904 which can conflict with char $ac_func(); below. */
83307f33
VZ
16905#include <assert.h>
16906/* Override any gcc2 internal prototype to avoid an error. */
16907/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16908 builtin and then its argument prototype would still apply. */
16909char $ac_func();
16910
16911int main() {
83307f33
VZ
16912
16913/* The GNU C library defines this for functions which it implements
16914 to always fail with ENOSYS. Some functions are actually named
16915 something starting with __ and the normal name is an alias. */
16916#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16917choke me
16918#else
698dcdb6 16919$ac_func();
83307f33
VZ
16920#endif
16921
698dcdb6 16922; return 0; }
83307f33 16923EOF
1725144d 16924if { (eval echo configure:16925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16925 rm -rf conftest*
16926 eval "ac_cv_func_$ac_func=yes"
16927else
16928 echo "configure: failed program was:" >&5
16929 cat conftest.$ac_ext >&5
16930 rm -rf conftest*
16931 eval "ac_cv_func_$ac_func=no"
16932fi
16933rm -f conftest*
16934fi
83307f33 16935
698dcdb6
VZ
16936if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16937 echo "$ac_t""yes" 1>&6
16938 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16939 cat >> confdefs.h <<EOF
16940#define $ac_tr_func 1
16941EOF
16942
16943else
16944 echo "$ac_t""no" 1>&6
83307f33
VZ
16945fi
16946done
16947
1e487827 16948
698dcdb6 16949 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
1725144d 16950echo "configure:16951: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
16951if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
16952 echo $ac_n "(cached) $ac_c" 1>&6
16953else
16954
16955 cat > conftest.$ac_ext <<EOF
1725144d 16956#line 16957 "configure"
360d6699
VZ
16957#include "confdefs.h"
16958
b4085ce6 16959 #include <time.h>
698dcdb6
VZ
16960
16961int main() {
360d6699
VZ
16962
16963 int tz;
4f11a343 16964 tz = timezone;
698dcdb6
VZ
16965
16966; return 0; }
16967EOF
1725144d 16968if { (eval echo configure:16969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16969 rm -rf conftest*
16970
4f11a343 16971 wx_cv_var_timezone=timezone
698dcdb6 16972
360d6699 16973else
698dcdb6
VZ
16974 echo "configure: failed program was:" >&5
16975 cat conftest.$ac_ext >&5
16976 rm -rf conftest*
16977
16978 cat > conftest.$ac_ext <<EOF
1725144d 16979#line 16980 "configure"
360d6699
VZ
16980#include "confdefs.h"
16981
b4085ce6 16982 #include <time.h>
698dcdb6
VZ
16983
16984int main() {
360d6699
VZ
16985
16986 int tz;
16987 tz = _timezone;
698dcdb6
VZ
16988
16989; return 0; }
16990EOF
1725144d 16991if { (eval echo configure:16992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16992 rm -rf conftest*
16993
360d6699 16994 wx_cv_var_timezone=_timezone
698dcdb6 16995
5357c8e8 16996else
698dcdb6
VZ
16997 echo "configure: failed program was:" >&5
16998 cat conftest.$ac_ext >&5
16999 rm -rf conftest*
17000
17001 cat > conftest.$ac_ext <<EOF
1725144d 17002#line 17003 "configure"
5357c8e8
VZ
17003#include "confdefs.h"
17004
b4085ce6 17005 #include <time.h>
698dcdb6
VZ
17006
17007int main() {
5357c8e8
VZ
17008
17009 int tz;
4f11a343 17010 tz = __timezone;
698dcdb6
VZ
17011
17012; return 0; }
17013EOF
1725144d 17014if { (eval echo configure:17015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
17015 rm -rf conftest*
17016
4f11a343 17017 wx_cv_var_timezone=__timezone
698dcdb6 17018
360d6699 17019else
698dcdb6
VZ
17020 echo "configure: failed program was:" >&5
17021 cat conftest.$ac_ext >&5
17022 rm -rf conftest*
f9bc1684
VS
17023
17024 if test "$USE_DOS" = 0 ; then
17025 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
17026 fi
17027
698dcdb6 17028
360d6699 17029fi
698dcdb6
VZ
17030rm -f conftest*
17031
17032
360d6699 17033fi
698dcdb6
VZ
17034rm -f conftest*
17035
17036
6232543b 17037fi
698dcdb6
VZ
17038rm -f conftest*
17039
17040
1e487827 17041fi
703e0a69 17042
698dcdb6
VZ
17043echo "$ac_t""$wx_cv_var_timezone" 1>&6
17044
f9bc1684 17045 if test "x$wx_cv_var_timezone" != x ; then
698dcdb6 17046 cat >> confdefs.h <<EOF
360d6699
VZ
17047#define WX_TIMEZONE $wx_cv_var_timezone
17048EOF
17049
f9bc1684 17050 fi
698dcdb6
VZ
17051
17052 for ac_func in localtime
afc31813 17053do
698dcdb6 17054echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1725144d 17055echo "configure:17056: checking for $ac_func" >&5
698dcdb6
VZ
17056if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17057 echo $ac_n "(cached) $ac_c" 1>&6
17058else
17059 cat > conftest.$ac_ext <<EOF
1725144d 17060#line 17061 "configure"
10f2d63a 17061#include "confdefs.h"
afc31813 17062/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17063 which can conflict with char $ac_func(); below. */
afc31813
VZ
17064#include <assert.h>
17065/* Override any gcc2 internal prototype to avoid an error. */
17066/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17067 builtin and then its argument prototype would still apply. */
17068char $ac_func();
17069
17070int main() {
afc31813
VZ
17071
17072/* The GNU C library defines this for functions which it implements
17073 to always fail with ENOSYS. Some functions are actually named
17074 something starting with __ and the normal name is an alias. */
17075#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17076choke me
17077#else
698dcdb6 17078$ac_func();
afc31813
VZ
17079#endif
17080
698dcdb6 17081; return 0; }
10f2d63a 17082EOF
1725144d 17083if { (eval echo configure:17084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17084 rm -rf conftest*
17085 eval "ac_cv_func_$ac_func=yes"
17086else
17087 echo "configure: failed program was:" >&5
17088 cat conftest.$ac_ext >&5
17089 rm -rf conftest*
17090 eval "ac_cv_func_$ac_func=no"
17091fi
17092rm -f conftest*
17093fi
afc31813 17094
698dcdb6
VZ
17095if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17096 echo "$ac_t""yes" 1>&6
17097 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17098 cat >> confdefs.h <<EOF
17099#define $ac_tr_func 1
17100EOF
17101
17102else
17103 echo "$ac_t""no" 1>&6
afc31813
VZ
17104fi
17105done
17106
1e487827 17107
698dcdb6
VZ
17108 if test "$ac_cv_func_localtime" = "yes"; then
17109 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
1725144d 17110echo "configure:17111: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
17111if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
17112 echo $ac_n "(cached) $ac_c" 1>&6
17113else
17114
17115 cat > conftest.$ac_ext <<EOF
1725144d 17116#line 17117 "configure"
0470b1e6
VZ
17117#include "confdefs.h"
17118
b4085ce6 17119 #include <time.h>
698dcdb6
VZ
17120
17121int main() {
0470b1e6
VZ
17122
17123 struct tm tm;
17124 tm.tm_gmtoff++;
698dcdb6
VZ
17125
17126; return 0; }
17127EOF
1725144d 17128if { (eval echo configure:17129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
17129 rm -rf conftest*
17130
f03a98d8 17131 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 17132
0470b1e6 17133else
698dcdb6
VZ
17134 echo "configure: failed program was:" >&5
17135 cat conftest.$ac_ext >&5
17136 rm -rf conftest*
17137 wx_cv_struct_tm_has_gmtoff=no
17138
0470b1e6 17139fi
698dcdb6
VZ
17140rm -f conftest*
17141
1e487827 17142fi
698dcdb6
VZ
17143
17144echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
17145 fi
17146
17147 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 17148 cat >> confdefs.h <<\EOF
6232543b
VS
17149#define WX_GMTOFF_IN_TM 1
17150EOF
0470b1e6 17151
3fcdd07b
VZ
17152 fi
17153
698dcdb6 17154 for ac_func in gettimeofday ftime
3fcdd07b 17155do
698dcdb6 17156echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1725144d 17157echo "configure:17158: checking for $ac_func" >&5
698dcdb6
VZ
17158if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17159 echo $ac_n "(cached) $ac_c" 1>&6
17160else
17161 cat > conftest.$ac_ext <<EOF
1725144d 17162#line 17163 "configure"
3fcdd07b
VZ
17163#include "confdefs.h"
17164/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17165 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
17166#include <assert.h>
17167/* Override any gcc2 internal prototype to avoid an error. */
17168/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17169 builtin and then its argument prototype would still apply. */
17170char $ac_func();
17171
17172int main() {
3fcdd07b
VZ
17173
17174/* The GNU C library defines this for functions which it implements
17175 to always fail with ENOSYS. Some functions are actually named
17176 something starting with __ and the normal name is an alias. */
17177#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17178choke me
17179#else
698dcdb6 17180$ac_func();
3fcdd07b
VZ
17181#endif
17182
698dcdb6
VZ
17183; return 0; }
17184EOF
1725144d 17185if { (eval echo configure:17186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17186 rm -rf conftest*
17187 eval "ac_cv_func_$ac_func=yes"
17188else
17189 echo "configure: failed program was:" >&5
17190 cat conftest.$ac_ext >&5
17191 rm -rf conftest*
17192 eval "ac_cv_func_$ac_func=no"
17193fi
17194rm -f conftest*
17195fi
17196
17197if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17198 echo "$ac_t""yes" 1>&6
17199 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17200 cat >> confdefs.h <<EOF
17201#define $ac_tr_func 1
3fcdd07b
VZ
17202EOF
17203 break
698dcdb6
VZ
17204else
17205 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
17206fi
17207done
17208
afc31813 17209
698dcdb6
VZ
17210 if test "$ac_cv_func_gettimeofday" = "yes"; then
17211 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
1725144d 17212echo "configure:17213: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
17213if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
17214 echo $ac_n "(cached) $ac_c" 1>&6
17215else
17216
17217
17218 ac_ext=C
17219# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 17220ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
17221ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17222ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17223cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 17224
698dcdb6
VZ
17225
17226 cat > conftest.$ac_ext <<EOF
1725144d 17227#line 17228 "configure"
10f2d63a 17228#include "confdefs.h"
afc31813
VZ
17229
17230 #include <sys/time.h>
17231 #include <unistd.h>
698dcdb6
VZ
17232
17233int main() {
afc31813
VZ
17234
17235 struct timeval tv;
776862b4 17236 gettimeofday(&tv, NULL);
698dcdb6
VZ
17237
17238; return 0; }
17239EOF
1725144d 17240if { (eval echo configure:17241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17241 rm -rf conftest*
afc31813 17242 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 17243else
698dcdb6
VZ
17244 echo "configure: failed program was:" >&5
17245 cat conftest.$ac_ext >&5
17246 rm -rf conftest*
17247 cat > conftest.$ac_ext <<EOF
1725144d 17248#line 17249 "configure"
10f2d63a 17249#include "confdefs.h"
afc31813
VZ
17250
17251 #include <sys/time.h>
17252 #include <unistd.h>
698dcdb6
VZ
17253
17254int main() {
afc31813
VZ
17255
17256 struct timeval tv;
17257 gettimeofday(&tv);
698dcdb6
VZ
17258
17259; return 0; }
17260EOF
1725144d 17261if { (eval echo configure:17262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17262 rm -rf conftest*
afc31813 17263 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 17264else
698dcdb6
VZ
17265 echo "configure: failed program was:" >&5
17266 cat conftest.$ac_ext >&5
17267 rm -rf conftest*
776862b4
VZ
17268
17269 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
17270 wx_cv_func_gettimeofday_has_2_args=unknown
17271
698dcdb6 17272
10f2d63a 17273fi
698dcdb6
VZ
17274rm -f conftest*
17275
10f2d63a 17276fi
698dcdb6 17277rm -f conftest*
afc31813 17278 ac_ext=c
698dcdb6 17279# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 17280ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
17281ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17282ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17283cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 17284
698dcdb6 17285
afc31813 17286fi
698dcdb6
VZ
17287
17288echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 17289
afc31813 17290 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 17291 cat >> confdefs.h <<\EOF
afc31813
VZ
17292#define WX_GETTIMEOFDAY_NO_TZ 1
17293EOF
17294
17295 fi
17296 fi
17297
698dcdb6 17298 cat >> confdefs.h <<\EOF
afc31813
VZ
17299#define wxUSE_TIMEDATE 1
17300EOF
17301
17302 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
17303fi
17304
698dcdb6 17305
b089607b
VZ
17306if test "$TOOLKIT" != "MSW"; then
17307
3a922bb4
RL
17308 if test "$wxUSE_SOCKETS" = "yes"; then
17309 echo $ac_n "checking for socket""... $ac_c" 1>&6
1725144d 17310echo "configure:17311: checking for socket" >&5
698dcdb6
VZ
17311if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
17312 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 17313else
698dcdb6 17314 cat > conftest.$ac_ext <<EOF
1725144d 17315#line 17316 "configure"
c63c7106
VZ
17316#include "confdefs.h"
17317/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17318 which can conflict with char socket(); below. */
c63c7106
VZ
17319#include <assert.h>
17320/* Override any gcc2 internal prototype to avoid an error. */
17321/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17322 builtin and then its argument prototype would still apply. */
17323char socket();
17324
17325int main() {
c63c7106
VZ
17326
17327/* The GNU C library defines this for functions which it implements
17328 to always fail with ENOSYS. Some functions are actually named
17329 something starting with __ and the normal name is an alias. */
17330#if defined (__stub_socket) || defined (__stub___socket)
17331choke me
17332#else
698dcdb6 17333socket();
c63c7106
VZ
17334#endif
17335
698dcdb6
VZ
17336; return 0; }
17337EOF
1725144d 17338if { (eval echo configure:17339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17339 rm -rf conftest*
17340 eval "ac_cv_func_socket=yes"
17341else
17342 echo "configure: failed program was:" >&5
17343 cat conftest.$ac_ext >&5
17344 rm -rf conftest*
17345 eval "ac_cv_func_socket=no"
17346fi
17347rm -f conftest*
17348fi
17349
17350if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
17351 echo "$ac_t""yes" 1>&6
c63c7106
VZ
17352 :
17353else
698dcdb6
VZ
17354 echo "$ac_t""no" 1>&6
17355echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1725144d 17356echo "configure:17357: checking for socket in -lsocket" >&5
698dcdb6
VZ
17357ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
17358if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17359 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 17360else
698dcdb6 17361 ac_save_LIBS="$LIBS"
c63c7106 17362LIBS="-lsocket $LIBS"
698dcdb6 17363cat > conftest.$ac_ext <<EOF
1725144d 17364#line 17365 "configure"
c63c7106
VZ
17365#include "confdefs.h"
17366/* Override any gcc2 internal prototype to avoid an error. */
17367/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17368 builtin and then its argument prototype would still apply. */
17369char socket();
17370
17371int main() {
17372socket()
17373; return 0; }
17374EOF
1725144d 17375if { (eval echo configure:17376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17376 rm -rf conftest*
17377 eval "ac_cv_lib_$ac_lib_var=yes"
17378else
17379 echo "configure: failed program was:" >&5
17380 cat conftest.$ac_ext >&5
17381 rm -rf conftest*
17382 eval "ac_cv_lib_$ac_lib_var=no"
17383fi
17384rm -f conftest*
17385LIBS="$ac_save_LIBS"
17386
17387fi
17388if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17389 echo "$ac_t""yes" 1>&6
c63c7106 17390 INET_LINK="$INET_LINK -lsocket"
c63c7106 17391else
698dcdb6 17392 echo "$ac_t""no" 1>&6
afc31813 17393
3a922bb4
RL
17394 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
17395 wxUSE_SOCKETS=no
17396
698dcdb6 17397
6232543b 17398fi
b089607b 17399
3a922bb4 17400
1e487827 17401fi
afc31813 17402
3a922bb4 17403 fi
51a9faba 17404
3a922bb4
RL
17405
17406 if test "$wxUSE_SOCKETS" = "yes" ; then
17407 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
1725144d 17408echo "configure:17409: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
17409if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
17410 echo $ac_n "(cached) $ac_c" 1>&6
17411else
17412
3a922bb4
RL
17413
17414 ac_ext=C
698dcdb6 17415# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 17416ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
17417ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17418ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17419cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 17420
698dcdb6 17421
3a922bb4 17422 cat > conftest.$ac_ext <<EOF
1725144d 17423#line 17424 "configure"
afc31813 17424#include "confdefs.h"
51a9faba 17425
3a922bb4
RL
17426 #include <sys/types.h>
17427 #include <sys/socket.h>
17428
698dcdb6 17429int main() {
51a9faba 17430
3a922bb4
RL
17431 socklen_t len;
17432 getsockname(0, 0, &len);
17433
698dcdb6
VZ
17434; return 0; }
17435EOF
1725144d 17436if { (eval echo configure:17437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17437 rm -rf conftest*
51a9faba 17438 wx_cv_type_getsockname3=socklen_t
afc31813 17439else
698dcdb6
VZ
17440 echo "configure: failed program was:" >&5
17441 cat conftest.$ac_ext >&5
17442 rm -rf conftest*
17443 cat > conftest.$ac_ext <<EOF
1725144d 17444#line 17445 "configure"
afc31813 17445#include "confdefs.h"
51a9faba 17446
3a922bb4
RL
17447 #include <sys/types.h>
17448 #include <sys/socket.h>
17449
698dcdb6 17450int main() {
51a9faba 17451
3a922bb4
RL
17452 size_t len;
17453 getsockname(0, 0, &len);
17454
698dcdb6
VZ
17455; return 0; }
17456EOF
1725144d 17457if { (eval echo configure:17458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17458 rm -rf conftest*
51a9faba 17459 wx_cv_type_getsockname3=size_t
afc31813 17460else
698dcdb6
VZ
17461 echo "configure: failed program was:" >&5
17462 cat conftest.$ac_ext >&5
17463 rm -rf conftest*
17464 cat > conftest.$ac_ext <<EOF
1725144d 17465#line 17466 "configure"
afc31813 17466#include "confdefs.h"
51a9faba 17467
3a922bb4
RL
17468 #include <sys/types.h>
17469 #include <sys/socket.h>
17470
698dcdb6 17471int main() {
51a9faba 17472
3a922bb4
RL
17473 int len;
17474 getsockname(0, 0, &len);
17475
698dcdb6
VZ
17476; return 0; }
17477EOF
1725144d 17478if { (eval echo configure:17479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17479 rm -rf conftest*
51a9faba 17480 wx_cv_type_getsockname3=int
afc31813 17481else
698dcdb6
VZ
17482 echo "configure: failed program was:" >&5
17483 cat conftest.$ac_ext >&5
17484 rm -rf conftest*
17485 wx_cv_type_getsockname3=unknown
3a922bb4 17486
afc31813 17487fi
698dcdb6 17488rm -f conftest*
3a922bb4 17489
afc31813 17490fi
698dcdb6 17491rm -f conftest*
3a922bb4 17492
afc31813 17493fi
698dcdb6 17494rm -f conftest*
51a9faba 17495
3a922bb4 17496 ac_ext=c
698dcdb6 17497# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 17498ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
17499ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17500ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17501cross_compiling=$ac_cv_prog_cc_cross
afc31813 17502
3a922bb4 17503
51a9faba 17504fi
698dcdb6
VZ
17505
17506echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 17507
3a922bb4
RL
17508 if test "$wx_cv_type_getsockname3" = "unknown"; then
17509 wxUSE_SOCKETS=no
17510 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
17511 else
17512 cat >> confdefs.h <<EOF
51a9faba
VZ
17513#define SOCKLEN_T $wx_cv_type_getsockname3
17514EOF
17515
3a922bb4 17516 fi
51a9faba
VZ
17517 fi
17518fi
afc31813 17519
51a9faba 17520if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 17521 cat >> confdefs.h <<\EOF
afc31813
VZ
17522#define wxUSE_SOCKETS 1
17523EOF
17524
70f7a477 17525 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
17526fi
17527
698dcdb6 17528
dc3d889d
VZ
17529if test "$wxUSE_GUI" = "yes"; then
17530
156b2523
GD
17531 if test "$TOOLKIT" = "MAC"; then
17532 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
17533 wxUSE_JOYSTICK=no
17534 fi
17535 if test "$TOOLKIT" = "MOTIF"; then
17536 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
17537 wxUSE_JOYSTICK=no
17538 fi
17539
3a922bb4
RL
17540 if test "$TOOLKIT" != "MSW"; then
17541 if test "$wxUSE_JOYSTICK" = "yes"; then
17542 for ac_hdr in linux/joystick.h
10f2d63a 17543do
698dcdb6
VZ
17544ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17545echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1725144d 17546echo "configure:17547: checking for $ac_hdr" >&5
698dcdb6
VZ
17547if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17548 echo $ac_n "(cached) $ac_c" 1>&6
17549else
17550 cat > conftest.$ac_ext <<EOF
1725144d 17551#line 17552 "configure"
10f2d63a 17552#include "confdefs.h"
698dcdb6
VZ
17553#include <$ac_hdr>
17554EOF
17555ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 17556{ (eval echo configure:17557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
17557ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17558if test -z "$ac_err"; then
17559 rm -rf conftest*
17560 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 17561else
698dcdb6
VZ
17562 echo "$ac_err" >&5
17563 echo "configure: failed program was:" >&5
10f2d63a 17564 cat conftest.$ac_ext >&5
698dcdb6
VZ
17565 rm -rf conftest*
17566 eval "ac_cv_header_$ac_safe=no"
10f2d63a 17567fi
698dcdb6 17568rm -f conftest*
10f2d63a 17569fi
698dcdb6
VZ
17570if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17571 echo "$ac_t""yes" 1>&6
17572 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17573 cat >> confdefs.h <<EOF
17574#define $ac_tr_hdr 1
10f2d63a 17575EOF
698dcdb6
VZ
17576
17577else
17578 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17579fi
17580done
17581
3a922bb4
RL
17582 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
17583 wxUSE_JOYSTICK=no
156b2523 17584 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
17585 fi
17586 fi
17587 fi
b089607b 17588
3a922bb4
RL
17589 if test "$wxUSE_JOYSTICK" = "yes"; then
17590 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17591#define wxUSE_JOYSTICK 1
17592EOF
17593
3a922bb4
RL
17594 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
17595 fi
dc3d889d
VZ
17596fi
17597
698dcdb6 17598
b089607b
VZ
17599if test "$TOOLKIT" != "MSW"; then
17600
3a922bb4
RL
17601 HAVE_DL_FUNCS=0
17602 HAVE_SHL_FUNCS=0
0b9ab0bd 17603 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
17604 if test "$USE_DARWIN" = 1; then
17605 HAVE_DL_FUNCS=1
17606 else
17607 for ac_func in dlopen
10f2d63a 17608do
698dcdb6 17609echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1725144d 17610echo "configure:17611: checking for $ac_func" >&5
698dcdb6
VZ
17611if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17612 echo $ac_n "(cached) $ac_c" 1>&6
17613else
17614 cat > conftest.$ac_ext <<EOF
1725144d 17615#line 17616 "configure"
10f2d63a
VZ
17616#include "confdefs.h"
17617/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17618 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
17619#include <assert.h>
17620/* Override any gcc2 internal prototype to avoid an error. */
17621/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17622 builtin and then its argument prototype would still apply. */
17623char $ac_func();
17624
17625int main() {
10f2d63a
VZ
17626
17627/* The GNU C library defines this for functions which it implements
17628 to always fail with ENOSYS. Some functions are actually named
17629 something starting with __ and the normal name is an alias. */
17630#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17631choke me
17632#else
698dcdb6 17633$ac_func();
10f2d63a
VZ
17634#endif
17635
698dcdb6
VZ
17636; return 0; }
17637EOF
1725144d 17638if { (eval echo configure:17639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17639 rm -rf conftest*
17640 eval "ac_cv_func_$ac_func=yes"
17641else
17642 echo "configure: failed program was:" >&5
17643 cat conftest.$ac_ext >&5
17644 rm -rf conftest*
17645 eval "ac_cv_func_$ac_func=no"
17646fi
17647rm -f conftest*
17648fi
17649
17650if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17651 echo "$ac_t""yes" 1>&6
17652 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17653 cat >> confdefs.h <<EOF
17654#define $ac_tr_func 1
17655EOF
17656
3a922bb4 17657 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17658#define HAVE_DLOPEN 1
17659EOF
17660
3a922bb4
RL
17661 HAVE_DL_FUNCS=1
17662
10f2d63a 17663else
698dcdb6
VZ
17664 echo "$ac_t""no" 1>&6
17665echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1725144d 17666echo "configure:17667: checking for dlopen in -ldl" >&5
698dcdb6
VZ
17667ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
17668if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17669 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17670else
698dcdb6 17671 ac_save_LIBS="$LIBS"
10f2d63a 17672LIBS="-ldl $LIBS"
698dcdb6 17673cat > conftest.$ac_ext <<EOF
1725144d 17674#line 17675 "configure"
10f2d63a
VZ
17675#include "confdefs.h"
17676/* Override any gcc2 internal prototype to avoid an error. */
17677/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17678 builtin and then its argument prototype would still apply. */
17679char dlopen();
17680
17681int main() {
17682dlopen()
17683; return 0; }
17684EOF
1725144d 17685if { (eval echo configure:17686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17686 rm -rf conftest*
17687 eval "ac_cv_lib_$ac_lib_var=yes"
17688else
17689 echo "configure: failed program was:" >&5
17690 cat conftest.$ac_ext >&5
17691 rm -rf conftest*
17692 eval "ac_cv_lib_$ac_lib_var=no"
17693fi
17694rm -f conftest*
17695LIBS="$ac_save_LIBS"
17696
17697fi
17698if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17699 echo "$ac_t""yes" 1>&6
17700
3a922bb4 17701 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17702#define HAVE_DLOPEN 1
17703EOF
17704
3a922bb4 17705 HAVE_DL_FUNCS=1
3d63bc3a 17706 DL_LINK=" -ldl$DL_LINK"
3a922bb4 17707
10f2d63a 17708else
698dcdb6 17709 echo "$ac_t""no" 1>&6
10f2d63a 17710
3a922bb4 17711 for ac_func in shl_load
10f2d63a 17712do
698dcdb6 17713echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1725144d 17714echo "configure:17715: checking for $ac_func" >&5
698dcdb6
VZ
17715if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17716 echo $ac_n "(cached) $ac_c" 1>&6
17717else
17718 cat > conftest.$ac_ext <<EOF
1725144d 17719#line 17720 "configure"
10f2d63a
VZ
17720#include "confdefs.h"
17721/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17722 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
17723#include <assert.h>
17724/* Override any gcc2 internal prototype to avoid an error. */
17725/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17726 builtin and then its argument prototype would still apply. */
17727char $ac_func();
17728
17729int main() {
10f2d63a
VZ
17730
17731/* The GNU C library defines this for functions which it implements
17732 to always fail with ENOSYS. Some functions are actually named
17733 something starting with __ and the normal name is an alias. */
17734#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17735choke me
17736#else
698dcdb6 17737$ac_func();
10f2d63a
VZ
17738#endif
17739
698dcdb6
VZ
17740; return 0; }
17741EOF
1725144d 17742if { (eval echo configure:17743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17743 rm -rf conftest*
17744 eval "ac_cv_func_$ac_func=yes"
17745else
17746 echo "configure: failed program was:" >&5
17747 cat conftest.$ac_ext >&5
17748 rm -rf conftest*
17749 eval "ac_cv_func_$ac_func=no"
17750fi
17751rm -f conftest*
17752fi
17753
17754if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17755 echo "$ac_t""yes" 1>&6
17756 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17757 cat >> confdefs.h <<EOF
17758#define $ac_tr_func 1
17759EOF
17760
3a922bb4 17761 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17762#define HAVE_SHL_LOAD 1
17763EOF
17764
3a922bb4
RL
17765 HAVE_SHL_FUNCS=1
17766
10f2d63a 17767else
698dcdb6
VZ
17768 echo "$ac_t""no" 1>&6
17769echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
1725144d 17770echo "configure:17771: checking for dld in -lshl_load" >&5
698dcdb6
VZ
17771ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
17772if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17773 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 17774else
698dcdb6 17775 ac_save_LIBS="$LIBS"
f6bcfd97 17776LIBS="-lshl_load $LIBS"
698dcdb6 17777cat > conftest.$ac_ext <<EOF
1725144d 17778#line 17779 "configure"
f6bcfd97
BP
17779#include "confdefs.h"
17780/* Override any gcc2 internal prototype to avoid an error. */
17781/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17782 builtin and then its argument prototype would still apply. */
17783char dld();
17784
17785int main() {
17786dld()
17787; return 0; }
17788EOF
1725144d 17789if { (eval echo configure:17790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17790 rm -rf conftest*
17791 eval "ac_cv_lib_$ac_lib_var=yes"
17792else
17793 echo "configure: failed program was:" >&5
17794 cat conftest.$ac_ext >&5
17795 rm -rf conftest*
17796 eval "ac_cv_lib_$ac_lib_var=no"
17797fi
17798rm -f conftest*
17799LIBS="$ac_save_LIBS"
f6bcfd97 17800
698dcdb6
VZ
17801fi
17802if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17803 echo "$ac_t""yes" 1>&6
17804
3a922bb4 17805 HAVE_SHL_FUNCS=1
3d63bc3a 17806 DL_LINK=" -ldld$DL_LINK"
3a922bb4 17807
698dcdb6
VZ
17808else
17809 echo "$ac_t""no" 1>&6
f6bcfd97
BP
17810fi
17811
3a922bb4 17812
10f2d63a
VZ
17813fi
17814done
17815
3a922bb4 17816
10f2d63a
VZ
17817fi
17818
3a922bb4 17819
10f2d63a
VZ
17820fi
17821done
17822
1e487827 17823
3a922bb4
RL
17824 if test "$HAVE_DL_FUNCS" = 1; then
17825 for ac_func in dlerror
f6bcfd97 17826do
698dcdb6 17827echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1725144d 17828echo "configure:17829: checking for $ac_func" >&5
698dcdb6
VZ
17829if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17830 echo $ac_n "(cached) $ac_c" 1>&6
17831else
17832 cat > conftest.$ac_ext <<EOF
1725144d 17833#line 17834 "configure"
f6bcfd97
BP
17834#include "confdefs.h"
17835/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17836 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
17837#include <assert.h>
17838/* Override any gcc2 internal prototype to avoid an error. */
17839/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17840 builtin and then its argument prototype would still apply. */
17841char $ac_func();
17842
17843int main() {
f6bcfd97
BP
17844
17845/* The GNU C library defines this for functions which it implements
17846 to always fail with ENOSYS. Some functions are actually named
17847 something starting with __ and the normal name is an alias. */
17848#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17849choke me
17850#else
698dcdb6 17851$ac_func();
f6bcfd97
BP
17852#endif
17853
698dcdb6
VZ
17854; return 0; }
17855EOF
1725144d 17856if { (eval echo configure:17857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17857 rm -rf conftest*
17858 eval "ac_cv_func_$ac_func=yes"
17859else
17860 echo "configure: failed program was:" >&5
17861 cat conftest.$ac_ext >&5
17862 rm -rf conftest*
17863 eval "ac_cv_func_$ac_func=no"
17864fi
17865rm -f conftest*
17866fi
17867
17868if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17869 echo "$ac_t""yes" 1>&6
17870 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17871 cat >> confdefs.h <<EOF
17872#define $ac_tr_func 1
17873EOF
17874 cat >> confdefs.h <<\EOF
f6bcfd97
BP
17875#define HAVE_DLERROR 1
17876EOF
17877
17878else
698dcdb6
VZ
17879 echo "$ac_t""no" 1>&6
17880echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
1725144d 17881echo "configure:17882: checking for dlerror in -ldl" >&5
698dcdb6
VZ
17882ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
17883if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17884 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 17885else
698dcdb6 17886 ac_save_LIBS="$LIBS"
f6bcfd97 17887LIBS="-ldl $LIBS"
698dcdb6 17888cat > conftest.$ac_ext <<EOF
1725144d 17889#line 17890 "configure"
f6bcfd97
BP
17890#include "confdefs.h"
17891/* Override any gcc2 internal prototype to avoid an error. */
17892/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17893 builtin and then its argument prototype would still apply. */
17894char dlerror();
17895
17896int main() {
17897dlerror()
17898; return 0; }
17899EOF
1725144d 17900if { (eval echo configure:17901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17901 rm -rf conftest*
17902 eval "ac_cv_lib_$ac_lib_var=yes"
17903else
17904 echo "configure: failed program was:" >&5
17905 cat conftest.$ac_ext >&5
17906 rm -rf conftest*
17907 eval "ac_cv_lib_$ac_lib_var=no"
17908fi
17909rm -f conftest*
17910LIBS="$ac_save_LIBS"
17911
17912fi
17913if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17914 echo "$ac_t""yes" 1>&6
17915 cat >> confdefs.h <<\EOF
f6bcfd97
BP
17916#define HAVE_DLERROR 1
17917EOF
17918
698dcdb6
VZ
17919else
17920 echo "$ac_t""no" 1>&6
f6bcfd97
BP
17921fi
17922
17923fi
17924done
17925
3a922bb4
RL
17926 fi
17927 fi
f6bcfd97 17928
3a922bb4
RL
17929 if test "$HAVE_DL_FUNCS" = 0; then
17930 if test "$HAVE_SHL_FUNCS" = 0; then
17931 if test "$USE_UNIX" = 1; then
17932 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 17933 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
17934 wxUSE_DYNLIB_CLASS=no
17935 else
17936 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
17937 fi
17938 fi
10f2d63a
VZ
17939 fi
17940 fi
17941fi
17942
0b9ab0bd
RL
17943if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
17944 cat >> confdefs.h <<\EOF
17945#define wxUSE_DYNAMIC_LOADER 1
17946EOF
17947
17948elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 17949 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17950#define wxUSE_DYNLIB_CLASS 1
17951EOF
17952
17953fi
17954
698dcdb6 17955
1e6feb95
VZ
17956if test "$wxUSE_FONTMAP" = "yes" ; then
17957 cat >> confdefs.h <<\EOF
17958#define wxUSE_FONTMAP 1
17959EOF
17960
17961fi
17962
10f2d63a 17963if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 17964 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17965#define wxUSE_UNICODE 1
17966EOF
17967
17968fi
17969
10f2d63a 17970if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 17971 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17972#define wxUSE_EXPERIMENTAL_PRINTF 1
17973EOF
17974
17975fi
17976
698dcdb6 17977
698dcdb6 17978
10f2d63a
VZ
17979IODBC_C_SRC=""
17980if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 17981 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17982#define wxUSE_ODBC 1
17983EOF
17984
17985 WXODBCFLAG="-D_IODBC_"
17986 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
17987fi
17988
698dcdb6 17989
10f2d63a 17990if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 17991 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17992#define wxUSE_POSTSCRIPT 1
17993EOF
17994
17995fi
17996
698dcdb6 17997cat >> confdefs.h <<\EOF
10f2d63a
VZ
17998#define wxUSE_AFM_FOR_POSTSCRIPT 1
17999EOF
18000
698dcdb6
VZ
18001
18002cat >> confdefs.h <<\EOF
10f2d63a
VZ
18003#define wxUSE_NORMALIZED_PS_FONTS 1
18004EOF
18005
698dcdb6
VZ
18006
18007
10f2d63a 18008if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 18009 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18010#define wxUSE_CONSTRAINTS 1
18011EOF
18012
18013 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
18014fi
18015
18016if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 18017 if test "$wxUSE_UNIVERSAL" = "yes"; then
156b2523 18018 echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2
fc26f4ab
RL
18019 wxUSE_MDI_ARCHITECTURE=no
18020 fi
18021
18022 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18023 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18024#define wxUSE_MDI_ARCHITECTURE 1
18025EOF
18026
fc26f4ab
RL
18027 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
18028 fi
10f2d63a
VZ
18029fi
18030
18031if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 18032 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18033#define wxUSE_DOC_VIEW_ARCHITECTURE 1
18034EOF
18035
18036 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
18037 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18038 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
18039 fi
18040fi
18041
18042if test "$wxUSE_HELP" = "yes"; then
698dcdb6 18043 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18044#define wxUSE_HELP 1
18045EOF
18046
18047 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 18048
77e13408 18049 if test "$wxUSE_MSW" = 1; then
031d8228 18050 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
29fd3c0c
VS
18051 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
18052echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
1725144d 18053echo "configure:18054: checking for htmlhelp.h" >&5
29fd3c0c
VS
18054if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18055 echo $ac_n "(cached) $ac_c" 1>&6
18056else
18057 cat > conftest.$ac_ext <<EOF
1725144d 18058#line 18059 "configure"
29fd3c0c
VS
18059#include "confdefs.h"
18060#include <htmlhelp.h>
18061EOF
18062ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 18063{ (eval echo configure:18064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
18064ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18065if test -z "$ac_err"; then
18066 rm -rf conftest*
18067 eval "ac_cv_header_$ac_safe=yes"
18068else
18069 echo "$ac_err" >&5
18070 echo "configure: failed program was:" >&5
18071 cat conftest.$ac_ext >&5
18072 rm -rf conftest*
18073 eval "ac_cv_header_$ac_safe=no"
18074fi
18075rm -f conftest*
18076fi
18077if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18078 echo "$ac_t""yes" 1>&6
18079
18080 cat >> confdefs.h <<\EOF
18081#define wxUSE_MS_HTML_HELP 1
18082EOF
18083
18084
18085else
18086 echo "$ac_t""no" 1>&6
18087
fc26f4ab 18088 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
29fd3c0c
VS
18089 wxUSE_MS_HTML_HELP=no
18090
18091fi
18092
3e44f09d 18093 fi
3379ed37 18094 fi
031d8228
VS
18095
18096 if test "$wxUSE_WXHTML_HELP" = "yes"; then
18097 if test "$wxUSE_HTML" = "yes"; then
18098 cat >> confdefs.h <<\EOF
18099#define wxUSE_WXHTML_HELP 1
18100EOF
18101
18102 else
18103 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
18104 wxUSE_WXHTML_HELP=no
18105 fi
18106 fi
10f2d63a
VZ
18107fi
18108
18109if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
18110 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 18111 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 18112 else
698dcdb6 18113 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18114#define wxUSE_PRINTING_ARCHITECTURE 1
18115EOF
18116
18117 fi
18118 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
18119fi
18120
18121if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 18122 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18123#define wxUSE_PROLOGIO 1
18124EOF
18125
18126fi
18127
18128if test "$wxUSE_RESOURCES" = "yes" ; then
3379ed37 18129 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18130#define wxUSE_RESOURCES 1
18131EOF
18132
3379ed37 18133 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
10f2d63a
VZ
18134fi
18135
18136if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 18137 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18138#define wxUSE_X_RESOURCES 1
18139EOF
18140
18141fi
18142
698dcdb6 18143
77e13408
RL
18144if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
18145 -o "$wxUSE_CLIPBOARD" = "yes" \
18146 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
2b9bdf71 18147 for ac_hdr in ole2.h
10f2d63a 18148do
698dcdb6
VZ
18149ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18150echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1725144d 18151echo "configure:18152: checking for $ac_hdr" >&5
698dcdb6
VZ
18152if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18153 echo $ac_n "(cached) $ac_c" 1>&6
18154else
18155 cat > conftest.$ac_ext <<EOF
1725144d 18156#line 18157 "configure"
10f2d63a 18157#include "confdefs.h"
698dcdb6
VZ
18158#include <$ac_hdr>
18159EOF
18160ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725144d 18161{ (eval echo configure:18162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
18162ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18163if test -z "$ac_err"; then
18164 rm -rf conftest*
18165 eval "ac_cv_header_$ac_safe=yes"
1e487827 18166else
698dcdb6
VZ
18167 echo "$ac_err" >&5
18168 echo "configure: failed program was:" >&5
10f2d63a 18169 cat conftest.$ac_ext >&5
698dcdb6
VZ
18170 rm -rf conftest*
18171 eval "ac_cv_header_$ac_safe=no"
10f2d63a 18172fi
698dcdb6 18173rm -f conftest*
10f2d63a 18174fi
698dcdb6
VZ
18175if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18176 echo "$ac_t""yes" 1>&6
18177 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18178 cat >> confdefs.h <<EOF
18179#define $ac_tr_hdr 1
10f2d63a 18180EOF
698dcdb6
VZ
18181
18182else
18183 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18184fi
18185done
18186
698dcdb6 18187
2b9bdf71
VZ
18188 if test "$ac_cv_header_ole2_h" = "yes" ; then
18189 if test "$GCC" = yes ; then
18190 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
2b9bdf71 18191 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
3d63bc3a 18192 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
2b9bdf71 18193 cat >> confdefs.h <<\EOF
4f11a343
VS
18194#define wxUSE_OLE 1
18195EOF
18196
b64f0a5f 18197
2b9bdf71
VZ
18198 fi
18199
18200 cat >> confdefs.h <<\EOF
18201#define wxUSE_DATAOBJ 1
18202EOF
18203
18204 else
18205 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
18206
18207 wxUSE_CLIPBOARD=no
18208 wxUSE_DRAG_AND_DROP=no
18209 wxUSE_DATAOBJ=no
18210 fi
18211
77e13408 18212 if test "$wxUSE_METAFILE" = "yes"; then
2b9bdf71 18213 cat >> confdefs.h <<\EOF
b64f0a5f
RL
18214#define wxUSE_METAFILE 1
18215EOF
18216
2b9bdf71
VZ
18217
18218 cat >> confdefs.h <<\EOF
b64f0a5f
RL
18219#define wxUSE_ENH_METAFILE 1
18220EOF
18221
2b9bdf71
VZ
18222 fi
18223fi
18224
18225if test "$wxUSE_IPC" = "yes"; then
18226 if test "$wxUSE_SOCKETS" != "yes"; then
156b2523 18227 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
18228 fi
18229
18230 cat >> confdefs.h <<\EOF
18231#define wxUSE_IPC 1
18232EOF
18233
18234fi
18235
18236if test "$wxUSE_CLIPBOARD" = "yes"; then
18237 cat >> confdefs.h <<\EOF
18238#define wxUSE_CLIPBOARD 1
18239EOF
18240
673f4220 18241
e33ef661 18242 cat >> confdefs.h <<\EOF
673f4220
VZ
18243#define wxUSE_DATAOBJ 1
18244EOF
18245
2b9bdf71
VZ
18246fi
18247
18248if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
18249 if test "$wxUSE_GTK" = 1; then
18250 if test "$WXGTK12" != 1; then
156b2523 18251 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
18252 wxUSE_DRAG_AND_DROP=no
18253 fi
18254 fi
18255
2b9bdf71 18256 if test "$wxUSE_MOTIF" = 1; then
156b2523 18257 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
18258 wxUSE_DRAG_AND_DROP=no
18259 fi
18260
18261 if test "$wxUSE_MAC" = 1; then
156b2523 18262 echo "configure: warning: Drag and drop not yet supported under Mac OS X... disabled" 1>&2
2b9bdf71
VZ
18263 wxUSE_DRAG_AND_DROP=no
18264 fi
18265
10f2d63a 18266 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 18267 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18268#define wxUSE_DRAG_AND_DROP 1
18269EOF
18270
18271 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
18272 fi
18273
18274fi
18275
18276if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 18277 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18278#define wxUSE_SPLINES 1
18279EOF
18280
18281fi
18282
698dcdb6 18283
1e6feb95
VZ
18284USES_CONTROLS=0
18285if test "$wxUSE_CONTROLS" = "yes"; then
18286 USES_CONTROLS=1
18287fi
18288
10f2d63a 18289if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 18290 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18291#define wxUSE_ACCEL 1
18292EOF
18293
1e6feb95
VZ
18294 USES_CONTROLS=1
18295fi
18296
18297if test "$wxUSE_BUTTON" = "yes"; then
18298 cat >> confdefs.h <<\EOF
18299#define wxUSE_BUTTON 1
18300EOF
18301
18302 USES_CONTROLS=1
18303fi
18304
18305if test "$wxUSE_BMPBUTTON" = "yes"; then
18306 cat >> confdefs.h <<\EOF
18307#define wxUSE_BMPBUTTON 1
18308EOF
18309
18310 USES_CONTROLS=1
18311fi
18312
18313if test "$wxUSE_CALCTRL" = "yes"; then
18314 cat >> confdefs.h <<\EOF
18315#define wxUSE_CALENDARCTRL 1
18316EOF
18317
18318 USES_CONTROLS=1
18319 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
18320fi
18321
18322if test "$wxUSE_CARET" = "yes"; then
698dcdb6 18323 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18324#define wxUSE_CARET 1
18325EOF
18326
1e6feb95 18327 USES_CONTROLS=1
10f2d63a
VZ
18328 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
18329fi
18330
18331if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 18332 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18333#define wxUSE_COMBOBOX 1
18334EOF
18335
1e6feb95 18336 USES_CONTROLS=1
10f2d63a
VZ
18337fi
18338
18339if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 18340 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18341#define wxUSE_CHOICE 1
18342EOF
18343
1e6feb95 18344 USES_CONTROLS=1
10f2d63a
VZ
18345fi
18346
18347if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 18348 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18349#define wxUSE_CHECKBOX 1
18350EOF
18351
1e6feb95 18352 USES_CONTROLS=1
10f2d63a
VZ
18353fi
18354
18355if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 18356 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18357#define wxUSE_CHECKLISTBOX 1
18358EOF
18359
1e6feb95 18360 USES_CONTROLS=1
10f2d63a
VZ
18361 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
18362fi
18363
18364if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 18365 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18366#define wxUSE_GAUGE 1
18367EOF
18368
1e6feb95 18369 USES_CONTROLS=1
10f2d63a
VZ
18370fi
18371
d6a55c4b
VZ
18372if test "$wxUSE_NEW_GRID" = "yes"; then
18373 wxUSE_GRID="yes"
698dcdb6 18374 cat >> confdefs.h <<\EOF
d6a55c4b 18375#define wxUSE_NEW_GRID 1
10f2d63a
VZ
18376EOF
18377
1e6feb95 18378 USES_CONTROLS=1
d6a55c4b 18379 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
18380fi
18381
d6a55c4b 18382if test "$wxUSE_GRID" = "yes"; then
698dcdb6 18383 cat >> confdefs.h <<\EOF
d6a55c4b 18384#define wxUSE_GRID 1
10f2d63a
VZ
18385EOF
18386
1e6feb95 18387 USES_CONTROLS=1
d6a55c4b 18388 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
18389fi
18390
18391if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 18392 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18393#define wxUSE_IMAGLIST 1
18394EOF
18395
18396fi
18397
18398if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 18399 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18400#define wxUSE_LISTBOX 1
18401EOF
18402
1e6feb95 18403 USES_CONTROLS=1
10f2d63a
VZ
18404fi
18405
18406if test "$wxUSE_LISTCTRL" = "yes"; then
18407 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 18408 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18409#define wxUSE_LISTCTRL 1
18410EOF
18411
1e6feb95 18412 USES_CONTROLS=1
10f2d63a
VZ
18413 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
18414 else
698dcdb6 18415 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
18416 fi
18417fi
18418
18419if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 18420 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18421#define wxUSE_NOTEBOOK 1
18422EOF
18423
1e6feb95 18424 USES_CONTROLS=1
10f2d63a
VZ
18425 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
18426fi
18427
24176f2c
GD
18428if test "$wxUSE_PROPSHEET" = "yes"; then
18429 cat >> confdefs.h <<\EOF
18430#define wxUSE_PROPSHEET 1
18431EOF
18432
18433 USES_CONTROLS=1
18434 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
18435fi
18436
10f2d63a 18437if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 18438 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18439#define wxUSE_RADIOBOX 1
18440EOF
18441
1e6feb95 18442 USES_CONTROLS=1
10f2d63a
VZ
18443fi
18444
18445if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 18446 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18447#define wxUSE_RADIOBTN 1
18448EOF
18449
1e6feb95 18450 USES_CONTROLS=1
10f2d63a
VZ
18451fi
18452
18453if test "$wxUSE_SASH" = "yes"; then
698dcdb6 18454 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18455#define wxUSE_SASH 1
18456EOF
18457
18458 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
18459fi
18460
18461if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 18462 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18463#define wxUSE_SCROLLBAR 1
18464EOF
18465
1e6feb95 18466 USES_CONTROLS=1
741a9306 18467 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
18468fi
18469
18470if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 18471 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18472#define wxUSE_SLIDER 1
18473EOF
18474
1e6feb95 18475 USES_CONTROLS=1
10f2d63a
VZ
18476fi
18477
18478if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 18479 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18480#define wxUSE_SPINBTN 1
18481EOF
18482
1e6feb95 18483 USES_CONTROLS=1
10f2d63a
VZ
18484fi
18485
56cfaa52 18486if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 18487 cat >> confdefs.h <<\EOF
56cfaa52
RR
18488#define wxUSE_SPINCTRL 1
18489EOF
18490
1e6feb95 18491 USES_CONTROLS=1
56cfaa52
RR
18492fi
18493
10f2d63a 18494if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 18495 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18496#define wxUSE_SPLITTER 1
18497EOF
18498
18499 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
18500fi
18501
18502if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 18503 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18504#define wxUSE_STATBMP 1
18505EOF
18506
1e6feb95 18507 USES_CONTROLS=1
10f2d63a
VZ
18508fi
18509
18510if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 18511 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18512#define wxUSE_STATBOX 1
18513EOF
18514
1e6feb95
VZ
18515 USES_CONTROLS=1
18516fi
18517
18518if test "$wxUSE_STATTEXT" = "yes"; then
18519 cat >> confdefs.h <<\EOF
18520#define wxUSE_STATTEXT 1
18521EOF
18522
18523 USES_CONTROLS=1
10f2d63a
VZ
18524fi
18525
18526if test "$wxUSE_STATLINE" = "yes"; then
18527 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 18528 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 18529 else
698dcdb6 18530 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18531#define wxUSE_STATLINE 1
18532EOF
18533
1e6feb95 18534 USES_CONTROLS=1
10f2d63a
VZ
18535 fi
18536fi
18537
18538if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 18539 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18540#define wxUSE_STATUSBAR 1
18541EOF
18542
1e6feb95 18543 USES_CONTROLS=1
698dcdb6 18544
2286341c 18545 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
18546fi
18547
18548if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 18549 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18550#define wxUSE_TAB_DIALOG 1
18551EOF
18552
18553 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
18554fi
18555
1e6feb95
VZ
18556if test "$wxUSE_TEXTCTRL" = "yes"; then
18557 cat >> confdefs.h <<\EOF
18558#define wxUSE_TEXTCTRL 1
18559EOF
18560
18561 USES_CONTROLS=1
18562 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
18563fi
18564
1db8dc4a 18565if test "$wxUSE_TOGGLEBTN" = "yes"; then
156b2523
GD
18566 if test "$wxUSE_MAC" = 1; then
18567 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
18568 wxUSE_TOGGLEBTN=no
18569 fi
18570 if test "$wxUSE_UNIVERSAL" = "yes"; then
18571 echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2
a45d7ab7
GD
18572 wxUSE_TOGGLEBTN=no
18573 fi
18574
18575 if test "$wxUSE_TOGGLEBTN" = "yes"; then
18576 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
18577#define wxUSE_TOGGLEBTN 1
18578EOF
18579
1e6feb95 18580 USES_CONTROLS=1
a45d7ab7 18581 fi
1db8dc4a
VZ
18582fi
18583
360d6699 18584if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 18585 cat >> confdefs.h <<\EOF
360d6699
VZ
18586#define wxUSE_TOOLBAR_SIMPLE 1
18587EOF
18588
18589 wxUSE_TOOLBAR="yes"
1e6feb95 18590 USES_CONTROLS=1
360d6699
VZ
18591fi
18592
10f2d63a 18593if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 18594 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18595#define wxUSE_TOOLBAR 1
18596EOF
18597
1e6feb95 18598 USES_CONTROLS=1
698dcdb6 18599
360d6699
VZ
18600 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
18601 wxUSE_TOOLBAR_NATIVE="yes"
18602 fi
18603
1e6feb95
VZ
18604 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
18605 cat >> confdefs.h <<\EOF
360d6699
VZ
18606#define wxUSE_TOOLBAR_NATIVE 1
18607EOF
18608
1e6feb95
VZ
18609 USES_CONTROLS=1
18610 fi
18611
18612 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
18613fi
18614
10f2d63a
VZ
18615if test "$wxUSE_TOOLTIPS" = "yes"; then
18616 if test "$wxUSE_MOTIF" = 1; then
156b2523 18617 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a
VZ
18618 else
18619 if test "$wxUSE_WINE" = 1; then
156b2523 18620 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
10f2d63a 18621 else
69d27ff7 18622 if test "$wxUSE_UNIVERSAL" = "yes"; then
156b2523 18623 echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2
69d27ff7
MB
18624 else
18625 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18626#define wxUSE_TOOLTIPS 1
18627EOF
18628
69d27ff7 18629 fi
10f2d63a
VZ
18630 fi
18631 fi
18632fi
18633
18634if test "$wxUSE_TREECTRL" = "yes"; then
18635 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 18636 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18637#define wxUSE_TREECTRL 1
18638EOF
18639
1e6feb95 18640 USES_CONTROLS=1
10f2d63a
VZ
18641 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
18642 else
698dcdb6 18643 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
18644 fi
18645fi
18646
9f41d601 18647if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65 18648 if test "$wxUSE_MAC" = 1; then
156b2523 18649 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 18650 else
485cf710
VZ
18651 if test "$wxUSE_MOTIF" = 1; then
18652 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
18653 else
18654 cat >> confdefs.h <<\EOF
9f41d601
RR
18655#define wxUSE_POPUPWIN 1
18656EOF
18657
9926e4a4 18658
485cf710
VZ
18659 USES_CONTROLS=1
18660 fi
6abe4b65 18661 fi
9f41d601
RR
18662fi
18663
dd964dcc
VZ
18664if test "$wxUSE_TIPWINDOW" = "yes"; then
18665 cat >> confdefs.h <<\EOF
18666#define wxUSE_TIPWINDOW 1
18667EOF
18668
18669fi
18670
1e6feb95
VZ
18671if test "$USES_CONTROLS" = 1; then
18672 cat >> confdefs.h <<\EOF
18673#define wxUSE_CONTROLS 1
10f2d63a
VZ
18674EOF
18675
10f2d63a
VZ
18676fi
18677
1e6feb95 18678
24176f2c
GD
18679if test "$wxUSE_TREELAYOUT" = "yes"; then
18680 cat >> confdefs.h <<\EOF
18681#define wxUSE_TREELAYOUT 1
18682EOF
18683
18684 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
18685fi
1e6feb95 18686
24fd6d87
VZ
18687if test "$wxUSE_DRAGIMAGE" = "yes"; then
18688 cat >> confdefs.h <<\EOF
18689#define wxUSE_DRAGIMAGE 1
18690EOF
18691
18692 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
18693fi
18694
1e6feb95 18695if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 18696 cat >> confdefs.h <<\EOF
1e6feb95 18697#define wxUSE_MENUS 1
10f2d63a
VZ
18698EOF
18699
1e6feb95 18700 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
18701fi
18702
1e6feb95
VZ
18703if test "$wxUSE_METAFILE" = "yes"; then
18704 cat >> confdefs.h <<\EOF
18705#define wxUSE_METAFILE 1
10f2d63a
VZ
18706EOF
18707
10f2d63a
VZ
18708fi
18709
1e6feb95
VZ
18710if test "$wxUSE_MIMETYPE" = "yes"; then
18711 cat >> confdefs.h <<\EOF
18712#define wxUSE_MIMETYPE 1
10f2d63a
VZ
18713EOF
18714
10f2d63a
VZ
18715fi
18716
3e44f09d
VZ
18717if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
18718 cat >> confdefs.h <<\EOF
18719#define wxUSE_SYSTEM_OPTIONS 1
18720EOF
18721
18722fi
18723
10f2d63a 18724if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 18725 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18726#define wxUSE_MINIFRAME 1
18727EOF
18728
18729 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
18730fi
18731
18732if test "$wxUSE_HTML" = "yes"; then
698dcdb6 18733 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18734#define wxUSE_HTML 1
18735EOF
18736
18737 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
18738fi
18739
18740if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 18741 cat >> confdefs.h <<\EOF
1e487827
VS
18742#define wxUSE_VALIDATORS 1
18743EOF
703e0a69 18744
698dcdb6
VZ
18745 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
18746fi
18747
edae8572
VZ
18748if test "$wxUSE_PALETTE" = "yes" ; then
18749 cat >> confdefs.h <<\EOF
18750#define wxUSE_PALETTE 1
18751EOF
18752
18753fi
18754
698dcdb6
VZ
18755if test "$wxUSE_IMAGE" = "yes" ; then
18756 cat >> confdefs.h <<\EOF
18757#define wxUSE_IMAGE 1
18758EOF
18759
18760fi
18761
18762if test "$wxUSE_GIF" = "yes" ; then
18763 cat >> confdefs.h <<\EOF
18764#define wxUSE_GIF 1
18765EOF
18766
18767fi
18768
18769if test "$wxUSE_PCX" = "yes" ; then
18770 cat >> confdefs.h <<\EOF
18771#define wxUSE_PCX 1
18772EOF
18773
18774fi
18775
18776if test "$wxUSE_PNM" = "yes" ; then
18777 cat >> confdefs.h <<\EOF
18778#define wxUSE_PNM 1
18779EOF
18780
18781fi
18782
18783if test "$wxUSE_XPM" = "yes" ; then
18784 cat >> confdefs.h <<\EOF
18785#define wxUSE_XPM 1
18786EOF
18787
18788fi
18789
18790
1e6feb95
VZ
18791if test "$wxUSE_CHOICEDLG" = "yes"; then
18792 cat >> confdefs.h <<\EOF
18793#define wxUSE_CHOICEDLG 1
18794EOF
18795
18796fi
18797
18798if test "$wxUSE_COLOURDLG" = "yes"; then
18799 cat >> confdefs.h <<\EOF
18800#define wxUSE_COLOURDLG 1
18801EOF
18802
18803fi
18804
18805if test "$wxUSE_FILEDLG" = "yes"; then
18806 cat >> confdefs.h <<\EOF
18807#define wxUSE_FILEDLG 1
18808EOF
18809
18810fi
18811
8db37e06
VZ
18812if test "$wxUSE_FINDREPLDLG" = "yes"; then
18813 cat >> confdefs.h <<\EOF
18814#define wxUSE_FINDREPLDLG 1
18815EOF
18816
18817fi
18818
1e6feb95
VZ
18819if test "$wxUSE_FONTDLG" = "yes"; then
18820 cat >> confdefs.h <<\EOF
18821#define wxUSE_FONTDLG 1
18822EOF
18823
18824fi
18825
18826if test "$wxUSE_DIRDLG" = "yes"; then
18827 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18828 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
18829 else
18830 if test "$wxUSE_TREECTRL" != "yes"; then
18831 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
18832 else
18833 cat >> confdefs.h <<\EOF
18834#define wxUSE_DIRDLG 1
18835EOF
18836
18837 fi
18838 fi
18839fi
18840
18841if test "$wxUSE_MSGDLG" = "yes"; then
18842 cat >> confdefs.h <<\EOF
18843#define wxUSE_MSGDLG 1
18844EOF
18845
18846fi
18847
18848if test "$wxUSE_NUMBERDLG" = "yes"; then
18849 cat >> confdefs.h <<\EOF
18850#define wxUSE_NUMBERDLG 1
18851EOF
18852
18853fi
18854
18855if test "$wxUSE_PROGRESSDLG" = "yes"; then
18856 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18857 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
18858 else
18859 cat >> confdefs.h <<\EOF
18860#define wxUSE_PROGRESSDLG 1
18861EOF
18862
18863 fi
18864fi
18865
cbca9943
VZ
18866if test "$wxUSE_SPLASH" = "yes"; then
18867 cat >> confdefs.h <<\EOF
18868#define wxUSE_SPLASH 1
18869EOF
18870
18871fi
18872
1e6feb95
VZ
18873if test "$wxUSE_STARTUP_TIPS" = "yes"; then
18874 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18875 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
18876 else
18877 cat >> confdefs.h <<\EOF
18878#define wxUSE_STARTUP_TIPS 1
18879EOF
18880
18881 fi
18882fi
18883
18884if test "$wxUSE_TEXTDLG" = "yes"; then
18885 cat >> confdefs.h <<\EOF
18886#define wxUSE_TEXTDLG 1
18887EOF
18888
18889fi
18890
b1f5d087
VZ
18891if test "$wxUSE_WIZARDDLG" = "yes"; then
18892 cat >> confdefs.h <<\EOF
18893#define wxUSE_WIZARDDLG 1
18894EOF
18895
18896 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
18897fi
18898
1e6feb95 18899
698dcdb6
VZ
18900if test "$cross_compiling" = "yes"; then
18901 OSINFO="\"$host\""
18902else
18903 OSINFO=`uname -s -r -m`
18904 OSINFO="\"$OSINFO\""
18905fi
18906
18907cat >> confdefs.h <<EOF
18908#define WXWIN_OS_DESCRIPTION $OSINFO
18909EOF
18910
18911
18912
06dda230
VZ
18913if test "x$prefix" != "xNONE"; then
18914 wxPREFIX=$prefix
18915else
18916 wxPREFIX=$ac_default_prefix
18917fi
18918
7e67ed0d 18919cat >> confdefs.h <<EOF
06dda230 18920#define wxINSTALL_PREFIX "$wxPREFIX"
7e67ed0d
VZ
18921EOF
18922
18923
18924
698dcdb6 18925
3a922bb4 18926
f11bdd03 18927if test "$wxUSE_MAC" = 1 ; then
3d63bc3a 18928 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
698dcdb6 18929fi
3a922bb4 18930
3d63bc3a
RL
18931
18932LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS"
18933
698dcdb6 18934if test "$wxUSE_GUI" = "yes"; then
3d63bc3a
RL
18935
18936 LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS"
3a922bb4
RL
18937
18938
18939 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
18940 drawing dynamic erase event exec font image \
18941 minimal richedit rotate widgets"
18942
3a922bb4
RL
18943 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
18944else
18945 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
18946fi
18947
698dcdb6 18948
d714471b 18949INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
3e44f09d
VZ
18950$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
18951$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
698dcdb6 18952
63e7762e 18953if test "$wxUSE_GTK" = 1; then
3d63bc3a 18954 WXCONFIG_INCLUDE=
698dcdb6
VZ
18955else
18956 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
18957fi
18958
18959if test "$GXX" = yes ; then
18960 CXXWARNINGS="-Wall"
88e30f2b
RL
18961
18962 if test "$wxUSE_NO_DEPS" = "no" ; then
18963 CFLAGS="-MMD $CFLAGS"
18964 CXXFLAGS="-MMD $CXXFLAGS"
18965 fi
18966fi
18967
1725144d 18968EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
698dcdb6
VZ
18969
18970CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
18971CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
18972
3d63bc3a 18973LDFLAGS="$LDFLAGS$PROFILE"
698dcdb6 18974
698dcdb6
VZ
18975SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
32832908 19043
2f51a9ec
GD
19044
19045
19046
19047
f6bcfd97 19048
dad6c0ea 19049
caa2c79b 19050
3711412e 19051
1e6feb95
VZ
19052
19053
885d4bf5
VS
19054
19055
19056
19057
62d0491b 19058
10f2d63a
VZ
19059
19060
698dcdb6 19061echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1725144d 19062echo "configure:19063: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
19063set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
19064if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
19065 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 19066else
698dcdb6 19067 cat > conftestmake <<\EOF
10f2d63a
VZ
19068all:
19069 @echo 'ac_maketemp="${MAKE}"'
19070EOF
19071# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 19072eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
19073if test -n "$ac_maketemp"; then
19074 eval ac_cv_prog_make_${ac_make}_set=yes
19075else
19076 eval ac_cv_prog_make_${ac_make}_set=no
19077fi
698dcdb6 19078rm -f conftestmake
10f2d63a
VZ
19079fi
19080if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 19081 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
19082 SET_MAKE=
19083else
698dcdb6 19084 echo "$ac_t""no" 1>&6
10f2d63a
VZ
19085 SET_MAKE="MAKE=${MAKE-make}"
19086fi
19087
698dcdb6 19088
3a922bb4
RL
19089if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
19090 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 19091fi
665bbe97 19092
698dcdb6 19093
10f2d63a 19094
2224580a 19095if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 19096 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
19097 wx_cv_path_ifs=$PATH_IFS
19098 wx_cv_program_ext=$PROGRAM_EXT
19099 wx_cv_target_library=$WX_TARGET_LIBRARY
7b6058cd 19100 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
3711412e 19101 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
93a20a27 19102 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
7b6058cd 19103 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
698dcdb6 19104 subdirs="demos samples utils contrib"
2224580a
VZ
19105
19106fi
10f2d63a 19107
698dcdb6
VZ
19108trap '' 1 2 15
19109cat > confcache <<\EOF
10f2d63a
VZ
19110# This file is a shell script that caches the results of configure
19111# tests run on this system so they can be shared between configure
698dcdb6
VZ
19112# scripts and configure runs. It is not useful on other systems.
19113# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 19114#
698dcdb6
VZ
19115# By default, configure uses ./config.cache as the cache file,
19116# creating it if it does not exist already. You can give configure
19117# the --cache-file=FILE option to use a different cache file; that is
19118# what configure does when it calls configure scripts in
19119# subdirectories, so they share the cache.
19120# Giving --cache-file=/dev/null disables caching, for debugging configure.
19121# config.status only pays attention to the cache file if you give it the
19122# --recheck option to rerun configure.
10f2d63a 19123#
698dcdb6 19124EOF
10f2d63a
VZ
19125# The following way of writing the cache mishandles newlines in values,
19126# but we know of no workaround that is simple, portable, and efficient.
19127# So, don't put newlines in cache variables' values.
19128# Ultrix sh set writes to stderr and can't be redirected directly,
19129# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
19130(set) 2>&1 |
19131 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19132 *ac_space=\ *)
19133 # `set' does not quote correctly, so add quotes (double-quote substitution
19134 # turns \\\\ into \\, and sed turns \\ into \).
19135 sed -n \
19136 -e "s/'/'\\\\''/g" \
19137 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
19138 ;;
19139 *)
19140 # `set' quotes correctly as required by POSIX, so do not add quotes.
19141 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
19142 ;;
19143 esac >> confcache
19144if cmp -s $cache_file confcache; then
19145 :
19146else
10f2d63a 19147 if test -w $cache_file; then
698dcdb6
VZ
19148 echo "updating cache $cache_file"
19149 cat confcache > $cache_file
10f2d63a
VZ
19150 else
19151 echo "not updating unwritable cache $cache_file"
19152 fi
19153fi
19154rm -f confcache
19155
698dcdb6
VZ
19156trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
19157
10f2d63a
VZ
19158test "x$prefix" = xNONE && prefix=$ac_default_prefix
19159# Let make expand exec_prefix.
19160test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19161
698dcdb6
VZ
19162# Any assignment to VPATH causes Sun make to only execute
19163# the first set of double-colon rules, so remove it if not needed.
19164# If there is a colon in the path, we need to keep it.
10f2d63a 19165if test "x$srcdir" = x.; then
698dcdb6 19166 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
19167fi
19168
698dcdb6
VZ
19169trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
19170
10f2d63a
VZ
19171DEFS=-DHAVE_CONFIG_H
19172
698dcdb6 19173# Without the "./", some shells look in PATH for config.status.
10f2d63a 19174: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
19175
19176echo creating $CONFIG_STATUS
19177rm -f $CONFIG_STATUS
19178cat > $CONFIG_STATUS <<EOF
19179#! /bin/sh
10f2d63a
VZ
19180# Generated automatically by configure.
19181# Run this file to recreate the current configuration.
698dcdb6
VZ
19182# This directory was configured as follows,
19183# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19184#
19185# $0 $ac_configure_args
19186#
10f2d63a 19187# Compiler output produced by configure, useful for debugging
698dcdb6 19188# configure, is in ./config.log if it exists.
1e487827 19189
698dcdb6
VZ
19190ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
19191for ac_option
10f2d63a 19192do
698dcdb6 19193 case "\$ac_option" in
10f2d63a 19194 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
19195 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
19196 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
19197 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
19198 echo "$CONFIG_STATUS generated by autoconf version 2.13"
19199 exit 0 ;;
19200 -help | --help | --hel | --he | --h)
19201 echo "\$ac_cs_usage"; exit 0 ;;
19202 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
19203 esac
19204done
19205
698dcdb6
VZ
19206ac_given_srcdir=$srcdir
19207ac_given_INSTALL="$INSTALL"
703e0a69 19208
698dcdb6
VZ
19209trap 'rm -fr `echo "
19210 wx-config
19211 src/make.env
19212 src/makeprog.env
19213 src/makelib.env
19214 Makefile
19215 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 19216EOF
698dcdb6 19217cat >> $CONFIG_STATUS <<EOF
1e487827 19218
698dcdb6
VZ
19219# Protect against being on the right side of a sed subst in config.status.
19220sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
19221 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
19222$ac_vpsub
19223$extrasub
19224s%@SHELL@%$SHELL%g
19225s%@CFLAGS@%$CFLAGS%g
19226s%@CPPFLAGS@%$CPPFLAGS%g
19227s%@CXXFLAGS@%$CXXFLAGS%g
19228s%@FFLAGS@%$FFLAGS%g
19229s%@DEFS@%$DEFS%g
19230s%@LDFLAGS@%$LDFLAGS%g
19231s%@LIBS@%$LIBS%g
19232s%@exec_prefix@%$exec_prefix%g
19233s%@prefix@%$prefix%g
19234s%@program_transform_name@%$program_transform_name%g
19235s%@bindir@%$bindir%g
19236s%@sbindir@%$sbindir%g
19237s%@libexecdir@%$libexecdir%g
19238s%@datadir@%$datadir%g
19239s%@sysconfdir@%$sysconfdir%g
19240s%@sharedstatedir@%$sharedstatedir%g
19241s%@localstatedir@%$localstatedir%g
19242s%@libdir@%$libdir%g
19243s%@includedir@%$includedir%g
19244s%@oldincludedir@%$oldincludedir%g
19245s%@infodir@%$infodir%g
19246s%@mandir@%$mandir%g
19247s%@host@%$host%g
19248s%@host_alias@%$host_alias%g
19249s%@host_cpu@%$host_cpu%g
19250s%@host_vendor@%$host_vendor%g
19251s%@host_os@%$host_os%g
19252s%@target@%$target%g
19253s%@target_alias@%$target_alias%g
19254s%@target_cpu@%$target_cpu%g
19255s%@target_vendor@%$target_vendor%g
19256s%@target_os@%$target_os%g
19257s%@build@%$build%g
19258s%@build_alias@%$build_alias%g
19259s%@build_cpu@%$build_cpu%g
19260s%@build_vendor@%$build_vendor%g
19261s%@build_os@%$build_os%g
19262s%@CC@%$CC%g
19263s%@CPP@%$CPP%g
19264s%@CXX@%$CXX%g
698dcdb6
VZ
19265s%@RANLIB@%$RANLIB%g
19266s%@AR@%$AR%g
19267s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
d6853540 19268s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6054113a 19269s%@INSTALL_DATA@%$INSTALL_DATA%g
698dcdb6
VZ
19270s%@STRIP@%$STRIP%g
19271s%@YACC@%$YACC%g
19272s%@LEX@%$LEX%g
19273s%@LEXLIB@%$LEXLIB%g
19274s%@LN_S@%$LN_S%g
19275s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
698dcdb6
VZ
19276s%@GTK_CFLAGS@%$GTK_CFLAGS%g
19277s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 19278s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
19279s%@X_CFLAGS@%$X_CFLAGS%g
19280s%@X_PRE_LIBS@%$X_PRE_LIBS%g
19281s%@X_LIBS@%$X_LIBS%g
19282s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3a922bb4 19283s%@RESCOMP@%$RESCOMP%g
698dcdb6 19284s%@DEREZ@%$DEREZ%g
3a922bb4 19285s%@CXXCPP@%$CXXCPP%g
698dcdb6
VZ
19286s%@LEX_STEM@%$LEX_STEM%g
19287s%@PATH_IFS@%$PATH_IFS%g
19288s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
19289s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
19290s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
698dcdb6
VZ
19291s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
19292s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
77e13408 19293s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
698dcdb6
VZ
19294s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
19295s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
19296s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
698dcdb6 19297s%@PROGRAM_EXT@%$PROGRAM_EXT%g
698dcdb6
VZ
19298s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
19299s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
698dcdb6
VZ
19300s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
19301s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
19302s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
698dcdb6
VZ
19303s%@WX_ALL@%$WX_ALL%g
19304s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
19305s%@SHARED_LD@%$SHARED_LD%g
19306s%@PIC_FLAG@%$PIC_FLAG%g
698dcdb6
VZ
19307s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
19308s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
3a922bb4
RL
19309s%@SONAME_FLAGS@%$SONAME_FLAGS%g
19310s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
698dcdb6
VZ
19311s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
19312s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
19313s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
19314s%@USE_GUI@%$USE_GUI%g
19315s%@AFMINSTALL@%$AFMINSTALL%g
19316s%@TOOLKIT@%$TOOLKIT%g
698dcdb6 19317s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
1e6feb95 19318s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
3a922bb4
RL
19319s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
19320s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
00c81359 19321s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
3a922bb4
RL
19322s%@cross_compiling@%$cross_compiling%g
19323s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
19324s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
885d4bf5
VS
19325s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
19326s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
698dcdb6
VZ
19327s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
19328s%@ALL_OBJECTS@%$ALL_OBJECTS%g
698dcdb6
VZ
19329s%@GUIDIST@%$GUIDIST%g
19330s%@PORT_FILES@%$PORT_FILES%g
19331s%@DISTDIR@%$DISTDIR%g
698dcdb6 19332s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
62d0491b 19333s%@LDFLAGS_GL@%$LDFLAGS_GL%g
698dcdb6 19334s%@OPENGL_LIBS@%$OPENGL_LIBS%g
3d63bc3a 19335s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
698dcdb6 19336s%@EXTRADEFS@%$EXTRADEFS%g
698dcdb6 19337s%@RESFLAGS@%$RESFLAGS%g
3a922bb4 19338s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
d08b457b 19339s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
e23081de 19340s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
698dcdb6
VZ
19341s%@LIBWXMACRES@%$LIBWXMACRES%g
19342s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
2baaf735 19343s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
698dcdb6
VZ
19344s%@DLLTOOL@%$DLLTOOL%g
19345s%@AS@%$AS%g
19346s%@NM@%$NM%g
19347s%@LD@%$LD%g
19348s%@MAKEINFO@%$MAKEINFO%g
885d4bf5 19349s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
698dcdb6
VZ
19350s%@SET_MAKE@%$SET_MAKE%g
19351s%@subdirs@%$subdirs%g
1e487827 19352
1e487827 19353CEOF
1e487827
VS
19354EOF
19355
698dcdb6
VZ
19356cat >> $CONFIG_STATUS <<\EOF
19357
19358# Split the substitutions into bite-sized pieces for seds with
19359# small command number limits, like on Digital OSF/1 and HP-UX.
19360ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
19361ac_file=1 # Number of current file.
19362ac_beg=1 # First line for current file.
19363ac_end=$ac_max_sed_cmds # Line after last line for current file.
19364ac_more_lines=:
19365ac_sed_cmds=""
19366while $ac_more_lines; do
19367 if test $ac_beg -gt 1; then
19368 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
19369 else
19370 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
19371 fi
19372 if test ! -s conftest.s$ac_file; then
19373 ac_more_lines=false
19374 rm -f conftest.s$ac_file
19375 else
19376 if test -z "$ac_sed_cmds"; then
19377 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 19378 else
698dcdb6 19379 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 19380 fi
698dcdb6
VZ
19381 ac_file=`expr $ac_file + 1`
19382 ac_beg=$ac_end
19383 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 19384 fi
698dcdb6
VZ
19385done
19386if test -z "$ac_sed_cmds"; then
19387 ac_sed_cmds=cat
19388fi
19389EOF
10f2d63a 19390
698dcdb6
VZ
19391cat >> $CONFIG_STATUS <<EOF
19392
19393CONFIG_FILES=\${CONFIG_FILES-"wx-config
19394 src/make.env
19395 src/makeprog.env
19396 src/makelib.env
19397 Makefile
19398 "}
10f2d63a 19399EOF
698dcdb6
VZ
19400cat >> $CONFIG_STATUS <<\EOF
19401for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 19402 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
19403 case "$ac_file" in
19404 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19405 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19406 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
19407 esac
19408
698dcdb6 19409 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 19410
698dcdb6
VZ
19411 # Remove last slash and all that follows it. Not all systems have dirname.
19412 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
19413 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19414 # The file is in a subdirectory.
19415 test ! -d "$ac_dir" && mkdir "$ac_dir"
19416 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 19417 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 19418 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
19419 else
19420 ac_dir_suffix= ac_dots=
19421 fi
19422
698dcdb6
VZ
19423 case "$ac_given_srcdir" in
19424 .) srcdir=.
19425 if test -z "$ac_dots"; then top_srcdir=.
19426 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
19427 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 19428 *) # Relative path.
698dcdb6
VZ
19429 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
19430 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
19431 esac
19432
698dcdb6
VZ
19433 case "$ac_given_INSTALL" in
19434 [/$]*) INSTALL="$ac_given_INSTALL" ;;
19435 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
19436 esac
19437
698dcdb6
VZ
19438 echo creating "$ac_file"
19439 rm -f "$ac_file"
19440 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
19441 case "$ac_file" in
19442 *Makefile*) ac_comsub="1i\\
19443# $configure_input" ;;
19444 *) ac_comsub= ;;
19445 esac
10f2d63a 19446
698dcdb6
VZ
19447 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19448 sed -e "$ac_comsub
19449s%@configure_input@%$configure_input%g
19450s%@srcdir@%$srcdir%g
19451s%@top_srcdir@%$top_srcdir%g
19452s%@INSTALL@%$INSTALL%g
19453" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
19454fi; done
19455rm -f conftest.s*
10f2d63a
VZ
19456
19457# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19458# NAME is the cpp macro being defined and VALUE is the value it is being given.
19459#
19460# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
19461ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19462ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
19463ac_dC='\3'
19464ac_dD='%g'
19465# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
19466ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19467ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 19468ac_uC=' '
698dcdb6
VZ
19469ac_uD='\4%g'
19470# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19471ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19472ac_eB='$%\1#\2define\3'
19473ac_eC=' '
19474ac_eD='%g'
10f2d63a 19475
698dcdb6
VZ
19476if test "${CONFIG_HEADERS+set}" != set; then
19477EOF
19478cat >> $CONFIG_STATUS <<EOF
19479 CONFIG_HEADERS="setup.h:setup.h.in"
19480EOF
19481cat >> $CONFIG_STATUS <<\EOF
19482fi
19483for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 19484 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
19485 case "$ac_file" in
19486 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19487 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19488 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
19489 esac
19490
698dcdb6
VZ
19491 echo creating $ac_file
19492
19493 rm -f conftest.frag conftest.in conftest.out
19494 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19495 cat $ac_file_inputs > conftest.in
19496
19497EOF
19498
19499# Transform confdefs.h into a sed script conftest.vals that substitutes
19500# the proper values into config.h.in to produce config.h. And first:
19501# Protect against being on the right side of a sed subst in config.status.
19502# Protect against being in an unquoted here document in config.status.
19503rm -f conftest.vals
19504cat > conftest.hdr <<\EOF
19505s/[\\&%]/\\&/g
19506s%[\\$`]%\\&%g
19507s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
19508s%ac_d%ac_u%gp
19509s%ac_u%ac_e%gp
19510EOF
19511sed -n -f conftest.hdr confdefs.h > conftest.vals
19512rm -f conftest.hdr
10f2d63a
VZ
19513
19514# This sed command replaces #undef with comments. This is necessary, for
19515# example, in the case of _POSIX_SOURCE, which is predefined and required
19516# on some systems where configure will not decide to define it.
698dcdb6
VZ
19517cat >> conftest.vals <<\EOF
19518s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
19519EOF
19520
698dcdb6
VZ
19521# Break up conftest.vals because some shells have a limit on
19522# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
19523
19524rm -f conftest.tail
698dcdb6 19525while :
10f2d63a 19526do
698dcdb6
VZ
19527 ac_lines=`grep -c . conftest.vals`
19528 # grep -c gives empty output for an empty file on some AIX systems.
19529 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
19530 # Write a limited-size here document to conftest.frag.
19531 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
19532 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 19533 echo 'CEOF
698dcdb6
VZ
19534 sed -f conftest.frag conftest.in > conftest.out
19535 rm -f conftest.in
19536 mv conftest.out conftest.in
19537' >> $CONFIG_STATUS
19538 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
19539 rm -f conftest.vals
19540 mv conftest.tail conftest.vals
10f2d63a 19541done
698dcdb6
VZ
19542rm -f conftest.vals
19543
19544cat >> $CONFIG_STATUS <<\EOF
19545 rm -f conftest.frag conftest.h
19546 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
19547 cat conftest.in >> conftest.h
19548 rm -f conftest.in
19549 if cmp -s $ac_file conftest.h 2>/dev/null; then
19550 echo "$ac_file is unchanged"
19551 rm -f conftest.h
10f2d63a 19552 else
698dcdb6
VZ
19553 # Remove last slash and all that follows it. Not all systems have dirname.
19554 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 19555 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
19556 # The file is in a subdirectory.
19557 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 19558 fi
698dcdb6
VZ
19559 rm -f $ac_file
19560 mv conftest.h $ac_file
10f2d63a 19561 fi
698dcdb6
VZ
19562fi; done
19563
10f2d63a 19564EOF
698dcdb6 19565cat >> $CONFIG_STATUS <<EOF
10f2d63a 19566
3a922bb4 19567 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
698dcdb6
VZ
19568 LN_S="${LN_S}"
19569
19570
19571EOF
19572cat >> $CONFIG_STATUS <<\EOF
10f2d63a 19573
652d930d 19574 if test ! -h wx-config; then
991a5759 19575 chmod +x wx-config
3a922bb4
RL
19576 mv wx-config wx${TOOLCHAIN_NAME}-config
19577 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 19578 fi
665bbe97 19579
00cf1208
RR
19580 if test ! -d lib; then
19581 mkdir lib
19582 fi
19583 if test ! -d lib/wx; then
19584 mkdir lib/wx
19585 fi
19586 if test ! -d lib/wx/include; then
19587 mkdir lib/wx/include
19588 fi
3a922bb4
RL
19589 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
19590 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 19591 fi
3a922bb4
RL
19592 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
19593 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
19594 fi
19595 if test -f setup.h; then
3a922bb4 19596 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 19597 fi
698dcdb6
VZ
19598
19599exit 0
10f2d63a
VZ
19600EOF
19601chmod +x $CONFIG_STATUS
698dcdb6
VZ
19602rm -fr confdefs* $ac_clean_files
19603test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 19604
2224580a
VZ
19605if test "$no_recursion" != yes; then
19606
19607 # Remove --cache-file and --srcdir arguments so they do not pile up.
19608 ac_sub_configure_args=
19609 ac_prev=
19610 for ac_arg in $ac_configure_args; do
19611 if test -n "$ac_prev"; then
19612 ac_prev=
19613 continue
19614 fi
698dcdb6 19615 case "$ac_arg" in
2224580a
VZ
19616 -cache-file | --cache-file | --cache-fil | --cache-fi \
19617 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19618 ac_prev=cache_file ;;
19619 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 19620 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
19621 ;;
19622 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19623 ac_prev=srcdir ;;
19624 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19625 ;;
19626 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
19627 esac
19628 done
19629
698dcdb6 19630 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
19631
19632 # Do not complain, so a configure script can configure whichever
19633 # parts of a large source tree are present.
698dcdb6
VZ
19634 if test ! -d $srcdir/$ac_config_dir; then
19635 continue
19636 fi
19637
19638 echo configuring in $ac_config_dir
2224580a 19639
698dcdb6 19640 case "$srcdir" in
2224580a
VZ
19641 .) ;;
19642 *)
698dcdb6
VZ
19643 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
19644 else
19645 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
19646 fi
19647 ;;
2224580a
VZ
19648 esac
19649
19650 ac_popdir=`pwd`
698dcdb6 19651 cd $ac_config_dir
2224580a 19652
698dcdb6
VZ
19653 # A "../" for each directory in /$ac_config_dir.
19654 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 19655
698dcdb6 19656 case "$srcdir" in
2224580a
VZ
19657 .) # No --srcdir option. We are building in place.
19658 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
19659 /*) # Absolute path.
19660 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 19661 *) # Relative path.
698dcdb6 19662 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
19663 esac
19664
19665 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
19666 if test -f $ac_sub_srcdir/configure; then
19667 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
19668 elif test -f $ac_sub_srcdir/configure.in; then
19669 ac_sub_configure=$ac_configure
19670 else
698dcdb6 19671 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
19672 ac_sub_configure=
19673 fi
19674
19675 # The recursion is here.
19676 if test -n "$ac_sub_configure"; then
698dcdb6 19677
2224580a 19678 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
19679 case "$cache_file" in
19680 /*) ac_sub_cache_file=$cache_file ;;
2224580a 19681 *) # Relative path.
698dcdb6 19682 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 19683 esac
698dcdb6
VZ
19684 case "$ac_given_INSTALL" in
19685 [/$]*) INSTALL="$ac_given_INSTALL" ;;
19686 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
19687 esac
2224580a 19688
698dcdb6 19689 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 19690 # The eval makes quoting arguments work.
698dcdb6
VZ
19691 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
19692 then :
19693 else
19694 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
19695 fi
2224580a
VZ
19696 fi
19697
19698 cd $ac_popdir
19699 done
19700fi
19701
698dcdb6 19702