]> git.saurik.com Git - wxWidgets.git/blame - configure
client<->screen coords conversion fixes
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
698dcdb6 3# From configure.in Id: configure.in
703e0a69
VZ
4
5
6
7
8
703e0a69
VZ
9
10
1e487827 11
1e487827 12
698dcdb6
VZ
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
8168de4c
VZ
38
39# Configure paths for GTK+
40# Owen Taylor 97-11-3
698dcdb6
VZ
41
42
43
44
698dcdb6
VZ
45
46
47# Guess values for system-dependent variables and create Makefiles.
48# Generated automatically using autoconf version 2.13
49# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
50#
51# This configure script is free software; the Free Software Foundation
52# gives unlimited permission to copy, distribute and modify it.
53
54# Defaults:
55ac_help=
56ac_default_prefix=/usr/local
57# Any additions from configure.in:
58ac_help="$ac_help
8168de4c 59 --enable-gui use GUI classes"
1e6feb95 60ac_help="$ac_help
8168de4c 61 --enable-universal use wxWindows GUI controls instead of native ones"
698dcdb6
VZ
62ac_help="$ac_help
63 --with-gtk use GTK+"
64ac_help="$ac_help
65 --with-motif use Motif/Lesstif"
66ac_help="$ac_help
67 --with-mac use Mac OS X"
68ac_help="$ac_help
69 --with-wine use WINE"
70ac_help="$ac_help
71 --with-cygwin use Cygwin for MS-Windows"
72ac_help="$ac_help
73 --with-mingw use GCC Minimal MS-Windows"
74ac_help="$ac_help
75 --with-pm use OS/2 Presentation Manager"
1e6feb95 76ac_help="$ac_help
b3e8d00a 77 --with-mgl use SciTech MGL"
698dcdb6 78ac_help="$ac_help
8168de4c 79 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
698dcdb6 80ac_help="$ac_help
8168de4c 81 --with-libpng use libpng (PNG image format)"
698dcdb6 82ac_help="$ac_help
8168de4c 83 --with-libjpeg use libjpeg (JPEG file format)"
698dcdb6 84ac_help="$ac_help
8168de4c 85 --with-libtiff use libtiff (TIFF file format)"
698dcdb6 86ac_help="$ac_help
8168de4c 87 --with-freetype use freetype (font rasterizer)"
698dcdb6 88ac_help="$ac_help
8168de4c 89 --with-opengl use OpenGL (or Mesa)"
698dcdb6 90ac_help="$ac_help
8168de4c 91 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
3e44f09d
VZ
92ac_help="$ac_help
93 --with-regex enable support for wxRegEx class"
698dcdb6 94ac_help="$ac_help
8168de4c 95 --with-zlib use zlib for LZW compression"
698dcdb6 96ac_help="$ac_help
8168de4c 97 --with-odbc use the IODBC and wxODBC classes"
698dcdb6 98ac_help="$ac_help
8168de4c 99 --enable-shared create shared library code"
698dcdb6 100ac_help="$ac_help
3a922bb4 101 --enable-soname set the DT_SONAME field in ELF shared libraries"
698dcdb6 102ac_help="$ac_help
8168de4c 103 --enable-optimise create optimised code"
698dcdb6 104ac_help="$ac_help
8168de4c 105 --enable-debug same as debug_flag and debug_info"
698dcdb6 106ac_help="$ac_help
8168de4c 107 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
698dcdb6 108ac_help="$ac_help
8168de4c 109 --enable-debug_info create code with debugging information"
698dcdb6 110ac_help="$ac_help
8168de4c 111 --enable-debug_gdb create code with extra GDB debugging information"
698dcdb6 112ac_help="$ac_help
8168de4c 113 --enable-debug_cntxt use wxDebugContext"
698dcdb6 114ac_help="$ac_help
8168de4c 115 --enable-mem_tracing create code with memory tracing"
698dcdb6 116ac_help="$ac_help
8168de4c 117 --enable-profile create code with profiling information"
698dcdb6 118ac_help="$ac_help
8168de4c 119 --enable-no_rtti create code without RTTI information"
698dcdb6 120ac_help="$ac_help
b3e8d00a 121 --enable-no_exceptions create code without C++ exceptions handling"
698dcdb6 122ac_help="$ac_help
8168de4c 123 --enable-permissive compile code disregarding strict ANSI"
698dcdb6 124ac_help="$ac_help
8168de4c 125 --enable-no_deps create code without dependency information"
54276ccf 126ac_help="$ac_help
b3e8d00a 127 --enable-compat20 enable wxWindows 2.0 compatibility"
54276ccf 128ac_help="$ac_help
b3e8d00a 129 --enable-compat22 enable wxWindows 2.2 compatibility"
698dcdb6 130ac_help="$ac_help
8168de4c 131 --enable-intl use internationalization system"
698dcdb6 132ac_help="$ac_help
8168de4c 133 --enable-config use wxConfig (and derived) classes"
698dcdb6 134ac_help="$ac_help
8168de4c 135 --enable-sockets use socket/network classes"
698dcdb6 136ac_help="$ac_help
8168de4c 137 --enable-ipc use interprocess communication (wxSocket etc.)"
698dcdb6 138ac_help="$ac_help
8168de4c 139 --enable-cmdline use wxCmdLineParser class"
1e6feb95 140ac_help="$ac_help
8168de4c 141 --enable-datetime use wxDateTime class"
1e6feb95 142ac_help="$ac_help
8168de4c 143 --enable-timedate use obsolete wxDate/wxTime classes"
1e6feb95 144ac_help="$ac_help
8168de4c 145 --enable-stopwatch use wxStopWatch class"
1e6feb95 146ac_help="$ac_help
8168de4c 147 --enable-dialupman use dialup network classes"
698dcdb6 148ac_help="$ac_help
8168de4c 149 --enable-apple_ieee use the Apple IEEE codec"
698dcdb6 150ac_help="$ac_help
8168de4c 151 --enable-timer use wxTimer class"
698dcdb6 152ac_help="$ac_help
8168de4c 153 --enable-wave use wxWave class"
698dcdb6 154ac_help="$ac_help
8168de4c 155 --enable-fraction use wxFraction class"
698dcdb6 156ac_help="$ac_help
8168de4c 157 --enable-dynlib use wxLibrary class for DLL loading"
698dcdb6 158ac_help="$ac_help
8168de4c 159 --enable-longlong use wxLongLong class"
698dcdb6 160ac_help="$ac_help
8168de4c 161 --enable-geometry use geometry class"
698dcdb6 162ac_help="$ac_help
8168de4c 163 --enable-log use logging system"
698dcdb6 164ac_help="$ac_help
8168de4c 165 --enable-streams use wxStream etc classes"
698dcdb6 166ac_help="$ac_help
8168de4c 167 --enable-file use wxFile classes"
698dcdb6 168ac_help="$ac_help
8168de4c 169 --enable-ffile use wxFFile classes"
1e6feb95 170ac_help="$ac_help
8168de4c 171 --enable-textfile use wxTextFile classes"
698dcdb6 172ac_help="$ac_help
8168de4c 173 --enable-fontmap use font encodings conversion classes"
1e6feb95 174ac_help="$ac_help
8168de4c 175 --enable-unicode compile wxString with Unicode support"
698dcdb6 176ac_help="$ac_help
8168de4c 177 --enable-wxprintfv use wxWindows implementation of vprintf()"
698dcdb6 178ac_help="$ac_help
8168de4c 179 --enable-std_iostreams use standard C++ stream classes"
698dcdb6 180ac_help="$ac_help
8168de4c 181 --enable-filesystem use virtual file systems classes"
698dcdb6 182ac_help="$ac_help
8168de4c 183 --enable-fs_inet use virtual HTTP/FTP filesystems"
698dcdb6 184ac_help="$ac_help
8168de4c 185 --enable-fs_zip use virtual ZIP filesystems"
698dcdb6 186ac_help="$ac_help
8168de4c 187 --enable-zipstream use wxZipInputStream"
698dcdb6 188ac_help="$ac_help
8168de4c 189 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
698dcdb6 190ac_help="$ac_help
8168de4c 191 --enable-snglinst use wxSingleInstanceChecker class"
698dcdb6 192ac_help="$ac_help
8168de4c 193 --enable-mimetypes use wxMimeTypesManager"
3e44f09d 194ac_help="$ac_help
b3e8d00a 195 --enable-sysoptions use wxSystemOptions"
1e6feb95 196ac_help="$ac_help
8168de4c 197 --enable-threads use threads"
698dcdb6 198ac_help="$ac_help
8168de4c 199 --enable-serial use class serialization"
698dcdb6 200ac_help="$ac_help
8168de4c 201 --enable-docview use document view architecture"
698dcdb6 202ac_help="$ac_help
3379ed37 203 --enable-help use help subsystem"
29fd3c0c
VS
204ac_help="$ac_help
205 --enable-mshtmlhelp use MS HTML Help (win32)"
3379ed37
VZ
206ac_help="$ac_help
207 --enable-html use wxHTML sub-library"
208ac_help="$ac_help
209 --enable-htmlhelp use wxHTML-based help"
698dcdb6 210ac_help="$ac_help
8168de4c 211 --enable-constraints use layout-constraints system"
698dcdb6 212ac_help="$ac_help
8168de4c 213 --enable-printarch use printing architecture"
698dcdb6 214ac_help="$ac_help
8168de4c 215 --enable-mdi use multiple document interface architecture"
698dcdb6 216ac_help="$ac_help
8168de4c 217 --enable-loggui use standard GUI logger"
1e6feb95 218ac_help="$ac_help
8168de4c 219 --enable-logwin use wxLogWindow"
1e6feb95 220ac_help="$ac_help
8168de4c 221 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 222ac_help="$ac_help
8168de4c 223 --enable-prologio use Prolog IO library"
698dcdb6 224ac_help="$ac_help
8168de4c 225 --enable-resources use wxWindows resources"
698dcdb6 226ac_help="$ac_help
8168de4c 227 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 228ac_help="$ac_help
8168de4c 229 --enable-clipboard use wxClipboard classes"
698dcdb6 230ac_help="$ac_help
8168de4c 231 --enable-dnd use Drag'n'Drop classes"
698dcdb6 232ac_help="$ac_help
8168de4c 233 --enable-metafile use win32 metafiles"
698dcdb6 234ac_help="$ac_help
24176f2c 235 --enable-treelayout use wxTreeLayout classes"
698dcdb6 236ac_help="$ac_help
8168de4c 237 --enable-controls use all usual controls"
698dcdb6 238ac_help="$ac_help
8168de4c 239 --enable-accel use accelerators"
698dcdb6 240ac_help="$ac_help
8168de4c 241 --enable-button use wxButton class"
698dcdb6 242ac_help="$ac_help
8168de4c 243 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 244ac_help="$ac_help
8168de4c 245 --enable-calendar use wxCalendarCtrl class"
1e6feb95 246ac_help="$ac_help
8168de4c 247 --enable-caret use wxCaret class"
1e6feb95 248ac_help="$ac_help
8168de4c 249 --enable-checkbox use wxCheckBox class"
698dcdb6 250ac_help="$ac_help
8168de4c 251 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 252ac_help="$ac_help
8168de4c 253 --enable-choice use wxChoice class"
698dcdb6 254ac_help="$ac_help
8168de4c 255 --enable-combobox use wxComboBox classes"
698dcdb6 256ac_help="$ac_help
8168de4c 257 --enable-gauge use wxGauge class"
698dcdb6 258ac_help="$ac_help
8168de4c 259 --enable-grid use wxGrid class"
698dcdb6 260ac_help="$ac_help
8168de4c 261 --enable-newgrid use new wxGrid class"
698dcdb6 262ac_help="$ac_help
8168de4c 263 --enable-imaglist use wxImageList class"
698dcdb6 264ac_help="$ac_help
8168de4c 265 --enable-listbox use wxListBox class"
698dcdb6 266ac_help="$ac_help
8168de4c 267 --enable-listctrl use wxListCtrl class"
698dcdb6 268ac_help="$ac_help
8168de4c 269 --enable-notebook use wxNotebook class"
24176f2c
GD
270ac_help="$ac_help
271 --enable-propsheet use wxPropertySheet class"
698dcdb6 272ac_help="$ac_help
8168de4c 273 --enable-radiobox use wxRadioBox class"
698dcdb6 274ac_help="$ac_help
8168de4c 275 --enable-radiobtn use wxRadioButton class"
698dcdb6 276ac_help="$ac_help
8168de4c 277 --enable-sash use wxSashWindow class"
698dcdb6 278ac_help="$ac_help
8168de4c 279 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 280ac_help="$ac_help
8168de4c 281 --enable-slider use wxSlider class"
698dcdb6 282ac_help="$ac_help
8168de4c 283 --enable-spinbtn use wxSpinButton class"
698dcdb6 284ac_help="$ac_help
8168de4c 285 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 286ac_help="$ac_help
8168de4c 287 --enable-splitter use wxSplitterWindow class"
698dcdb6 288ac_help="$ac_help
8168de4c 289 --enable-statbmp use wxStaticBitmap class"
698dcdb6 290ac_help="$ac_help
8168de4c 291 --enable-statbox use wxStaticBox class"
698dcdb6 292ac_help="$ac_help
8168de4c 293 --enable-statline use wxStaticLine class"
698dcdb6 294ac_help="$ac_help
8168de4c 295 --enable-stattext use wxStaticText class"
1e6feb95 296ac_help="$ac_help
8168de4c 297 --enable-statusbar use wxStatusBar class"
698dcdb6 298ac_help="$ac_help
8168de4c 299 --enable-tabdialog use wxTabControl class"
698dcdb6 300ac_help="$ac_help
8168de4c 301 --enable-textctrl use wxTextCtrl class"
1e6feb95 302ac_help="$ac_help
8168de4c 303 --enable-togglebtn use wxToggleButton class"
698dcdb6 304ac_help="$ac_help
8168de4c 305 --enable-toolbar use wxToolBar class"
698dcdb6 306ac_help="$ac_help
8168de4c 307 --enable-tbarnative use native wxToolBar class"
698dcdb6 308ac_help="$ac_help
8168de4c 309 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 310ac_help="$ac_help
8168de4c 311 --enable-treectrl use wxTreeCtrl class"
9f41d601
RR
312ac_help="$ac_help
313 --enable-popupwin use wxPopUpWindow class"
698dcdb6 314ac_help="$ac_help
b3e8d00a 315 --enable-commondlg use all common dialogs"
698dcdb6 316ac_help="$ac_help
8168de4c 317 --enable-choicedlg use wxChoiceDialog"
1e6feb95 318ac_help="$ac_help
8168de4c 319 --enable-coldlg use wxColourDialog"
1e6feb95 320ac_help="$ac_help
8168de4c 321 --enable-filedlg use wxFileDialog"
8db37e06
VZ
322ac_help="$ac_help
323 --enable-finddlg use wxFindReplaceDialog"
1e6feb95 324ac_help="$ac_help
8168de4c 325 --enable-fontdlg use wxFontDialog"
1e6feb95 326ac_help="$ac_help
8168de4c 327 --enable-dirdlg use wxDirDialog"
698dcdb6 328ac_help="$ac_help
8168de4c 329 --enable-msgdlg use wxMessageDialog"
1e6feb95 330ac_help="$ac_help
8168de4c 331 --enable-numberdlg use wxNumberEntryDialog"
cbca9943
VZ
332ac_help="$ac_help
333 --enable-splash use wxSplashScreen"
1e6feb95 334ac_help="$ac_help
8168de4c 335 --enable-textdlg use wxTextDialog"
698dcdb6 336ac_help="$ac_help
8168de4c 337 --enable-tipdlg use startup tips"
698dcdb6 338ac_help="$ac_help
8168de4c 339 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
340ac_help="$ac_help
341 --enable-wizarddlg use wxWizard"
698dcdb6 342ac_help="$ac_help
8168de4c 343 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 344ac_help="$ac_help
8168de4c 345 --enable-miniframe use wxMiniFrame class"
698dcdb6 346ac_help="$ac_help
8168de4c 347 --enable-tooltips use wxToolTip class"
698dcdb6 348ac_help="$ac_help
8168de4c 349 --enable-splines use spline drawing code"
698dcdb6 350ac_help="$ac_help
8168de4c 351 --enable-validators use wxValidator and derived classes"
698dcdb6 352ac_help="$ac_help
8168de4c 353 --enable-busyinfo use wxBusyInfo"
698dcdb6 354ac_help="$ac_help
b3e8d00a 355 --enable-joystick use wxJoystick (Linux only)"
698dcdb6 356ac_help="$ac_help
8168de4c 357 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
358ac_help="$ac_help
359 --enable-dragimage use wxDragImage"
edae8572
VZ
360ac_help="$ac_help
361 --enable-palette use wxPalette class"
1e6feb95 362ac_help="$ac_help
8168de4c 363 --enable-image use wxImage class"
698dcdb6 364ac_help="$ac_help
8168de4c 365 --enable-gif use gif images (GIF file format)"
698dcdb6 366ac_help="$ac_help
8168de4c 367 --enable-pcx use pcx images (PCX file format)"
698dcdb6 368ac_help="$ac_help
8168de4c 369 --enable-pnm use pnm images (PNM file format)"
698dcdb6 370ac_help="$ac_help
8168de4c 371 --enable-xpm use xpm images (XPM file format)"
698dcdb6
VZ
372ac_help="$ac_help
373 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
374ac_help="$ac_help
375 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
376ac_help="$ac_help
377 --disable-gtktest Do not try to compile and run a test GTK program"
378ac_help="$ac_help
379 --with-x use the X Window System"
10f2d63a
VZ
380
381# Initialize some variables set by options.
382# The variables have the same names as the options, with
383# dashes changed to underlines.
698dcdb6
VZ
384build=NONE
385cache_file=./config.cache
10f2d63a 386exec_prefix=NONE
698dcdb6 387host=NONE
10f2d63a 388no_create=
698dcdb6 389nonopt=NONE
10f2d63a
VZ
390no_recursion=
391prefix=NONE
392program_prefix=NONE
393program_suffix=NONE
394program_transform_name=s,x,x,
395silent=
396site=
397srcdir=
698dcdb6 398target=NONE
10f2d63a
VZ
399verbose=
400x_includes=NONE
401x_libraries=NONE
402bindir='${exec_prefix}/bin'
403sbindir='${exec_prefix}/sbin'
404libexecdir='${exec_prefix}/libexec'
405datadir='${prefix}/share'
406sysconfdir='${prefix}/etc'
407sharedstatedir='${prefix}/com'
408localstatedir='${prefix}/var'
409libdir='${exec_prefix}/lib'
410includedir='${prefix}/include'
411oldincludedir='/usr/include'
412infodir='${prefix}/info'
413mandir='${prefix}/man'
414
698dcdb6
VZ
415# Initialize some other variables.
416subdirs=
417MFLAGS= MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419# Maximum number of lines to put in a shell here document.
420ac_max_here_lines=12
10f2d63a
VZ
421
422ac_prev=
423for ac_option
424do
698dcdb6 425
10f2d63a
VZ
426 # If the previous option needs an argument, assign it.
427 if test -n "$ac_prev"; then
428 eval "$ac_prev=\$ac_option"
429 ac_prev=
430 continue
431 fi
432
698dcdb6
VZ
433 case "$ac_option" in
434 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
435 *) ac_optarg= ;;
436 esac
10f2d63a
VZ
437
438 # Accept the important Cygnus configure options, so we can diagnose typos.
439
698dcdb6 440 case "$ac_option" in
10f2d63a
VZ
441
442 -bindir | --bindir | --bindi | --bind | --bin | --bi)
443 ac_prev=bindir ;;
444 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 445 bindir="$ac_optarg" ;;
10f2d63a
VZ
446
447 -build | --build | --buil | --bui | --bu)
698dcdb6 448 ac_prev=build ;;
10f2d63a 449 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 450 build="$ac_optarg" ;;
10f2d63a
VZ
451
452 -cache-file | --cache-file | --cache-fil | --cache-fi \
453 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
454 ac_prev=cache_file ;;
455 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
456 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 457 cache_file="$ac_optarg" ;;
10f2d63a
VZ
458
459 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
460 ac_prev=datadir ;;
461 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
462 | --da=*)
698dcdb6 463 datadir="$ac_optarg" ;;
10f2d63a
VZ
464
465 -disable-* | --disable-*)
698dcdb6 466 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 467 # Reject names that are not valid shell variable names.
698dcdb6
VZ
468 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
469 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
470 fi
471 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
472 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
473
474 -enable-* | --enable-*)
698dcdb6 475 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 476 # Reject names that are not valid shell variable names.
698dcdb6
VZ
477 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
478 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
479 fi
480 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
481 case "$ac_option" in
482 *=*) ;;
10f2d63a
VZ
483 *) ac_optarg=yes ;;
484 esac
698dcdb6 485 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
486
487 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
488 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
489 | --exec | --exe | --ex)
490 ac_prev=exec_prefix ;;
491 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
492 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
493 | --exec=* | --exe=* | --ex=*)
698dcdb6 494 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
495
496 -gas | --gas | --ga | --g)
497 # Obsolete; use --with-gas.
498 with_gas=yes ;;
499
698dcdb6
VZ
500 -help | --help | --hel | --he)
501 # Omit some internal or obsolete options to make the list less imposing.
502 # This message is too long to be a string in the A/UX 3.1 sh.
503 cat << EOF
504Usage: configure [options] [host]
505Options: [defaults in brackets after descriptions]
506Configuration:
507 --cache-file=FILE cache test results in FILE
508 --help print this message
509 --no-create do not create output files
510 --quiet, --silent do not print \`checking...' messages
511 --version print the version of autoconf that created configure
512Directory and file names:
513 --prefix=PREFIX install architecture-independent files in PREFIX
514 [$ac_default_prefix]
515 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
516 [same as prefix]
517 --bindir=DIR user executables in DIR [EPREFIX/bin]
518 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
519 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
520 --datadir=DIR read-only architecture-independent data in DIR
521 [PREFIX/share]
522 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
523 --sharedstatedir=DIR modifiable architecture-independent data in DIR
524 [PREFIX/com]
525 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
526 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
527 --includedir=DIR C header files in DIR [PREFIX/include]
528 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
529 --infodir=DIR info documentation in DIR [PREFIX/info]
530 --mandir=DIR man documentation in DIR [PREFIX/man]
531 --srcdir=DIR find the sources in DIR [configure dir or ..]
532 --program-prefix=PREFIX prepend PREFIX to installed program names
533 --program-suffix=SUFFIX append SUFFIX to installed program names
534 --program-transform-name=PROGRAM
535 run sed PROGRAM on installed program names
536EOF
537 cat << EOF
538Host type:
539 --build=BUILD configure for building on BUILD [BUILD=HOST]
540 --host=HOST configure for HOST [guessed]
541 --target=TARGET configure for TARGET [TARGET=HOST]
542Features and packages:
543 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
544 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
545 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
546 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
547 --x-includes=DIR X include files are in DIR
548 --x-libraries=DIR X library files are in DIR
549EOF
550 if test -n "$ac_help"; then
551 echo "--enable and --with options recognized:$ac_help"
552 fi
553 exit 0 ;;
10f2d63a
VZ
554
555 -host | --host | --hos | --ho)
698dcdb6 556 ac_prev=host ;;
10f2d63a 557 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 558 host="$ac_optarg" ;;
10f2d63a
VZ
559
560 -includedir | --includedir | --includedi | --included | --include \
561 | --includ | --inclu | --incl | --inc)
562 ac_prev=includedir ;;
563 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
564 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 565 includedir="$ac_optarg" ;;
10f2d63a
VZ
566
567 -infodir | --infodir | --infodi | --infod | --info | --inf)
568 ac_prev=infodir ;;
569 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 570 infodir="$ac_optarg" ;;
10f2d63a
VZ
571
572 -libdir | --libdir | --libdi | --libd)
573 ac_prev=libdir ;;
574 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 575 libdir="$ac_optarg" ;;
10f2d63a
VZ
576
577 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
578 | --libexe | --libex | --libe)
579 ac_prev=libexecdir ;;
580 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
581 | --libexe=* | --libex=* | --libe=*)
698dcdb6 582 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
583
584 -localstatedir | --localstatedir | --localstatedi | --localstated \
585 | --localstate | --localstat | --localsta | --localst \
586 | --locals | --local | --loca | --loc | --lo)
587 ac_prev=localstatedir ;;
588 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
589 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
590 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 591 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
592
593 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
594 ac_prev=mandir ;;
595 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 596 mandir="$ac_optarg" ;;
10f2d63a
VZ
597
598 -nfp | --nfp | --nf)
599 # Obsolete; use --without-fp.
600 with_fp=no ;;
601
602 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
603 | --no-cr | --no-c)
604 no_create=yes ;;
605
606 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
607 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
608 no_recursion=yes ;;
609
610 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
611 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
612 | --oldin | --oldi | --old | --ol | --o)
613 ac_prev=oldincludedir ;;
614 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
615 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
616 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 617 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
618
619 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
620 ac_prev=prefix ;;
621 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 622 prefix="$ac_optarg" ;;
10f2d63a
VZ
623
624 -program-prefix | --program-prefix | --program-prefi | --program-pref \
625 | --program-pre | --program-pr | --program-p)
626 ac_prev=program_prefix ;;
627 -program-prefix=* | --program-prefix=* | --program-prefi=* \
628 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 629 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
630
631 -program-suffix | --program-suffix | --program-suffi | --program-suff \
632 | --program-suf | --program-su | --program-s)
633 ac_prev=program_suffix ;;
634 -program-suffix=* | --program-suffix=* | --program-suffi=* \
635 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 636 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
637
638 -program-transform-name | --program-transform-name \
639 | --program-transform-nam | --program-transform-na \
640 | --program-transform-n | --program-transform- \
641 | --program-transform | --program-transfor \
642 | --program-transfo | --program-transf \
643 | --program-trans | --program-tran \
644 | --progr-tra | --program-tr | --program-t)
645 ac_prev=program_transform_name ;;
646 -program-transform-name=* | --program-transform-name=* \
647 | --program-transform-nam=* | --program-transform-na=* \
648 | --program-transform-n=* | --program-transform-=* \
649 | --program-transform=* | --program-transfor=* \
650 | --program-transfo=* | --program-transf=* \
651 | --program-trans=* | --program-tran=* \
652 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 653 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
654
655 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
656 | -silent | --silent | --silen | --sile | --sil)
657 silent=yes ;;
658
659 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
660 ac_prev=sbindir ;;
661 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
662 | --sbi=* | --sb=*)
698dcdb6 663 sbindir="$ac_optarg" ;;
10f2d63a
VZ
664
665 -sharedstatedir | --sharedstatedir | --sharedstatedi \
666 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
667 | --sharedst | --shareds | --shared | --share | --shar \
668 | --sha | --sh)
669 ac_prev=sharedstatedir ;;
670 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
671 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
672 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
673 | --sha=* | --sh=*)
698dcdb6 674 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
675
676 -site | --site | --sit)
677 ac_prev=site ;;
678 -site=* | --site=* | --sit=*)
698dcdb6 679 site="$ac_optarg" ;;
10f2d63a
VZ
680
681 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
682 ac_prev=srcdir ;;
683 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 684 srcdir="$ac_optarg" ;;
10f2d63a
VZ
685
686 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
687 | --syscon | --sysco | --sysc | --sys | --sy)
688 ac_prev=sysconfdir ;;
689 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
690 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 691 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
692
693 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 694 ac_prev=target ;;
10f2d63a 695 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 696 target="$ac_optarg" ;;
10f2d63a
VZ
697
698 -v | -verbose | --verbose | --verbos | --verbo | --verb)
699 verbose=yes ;;
700
698dcdb6
VZ
701 -version | --version | --versio | --versi | --vers)
702 echo "configure generated by autoconf version 2.13"
703 exit 0 ;;
10f2d63a
VZ
704
705 -with-* | --with-*)
698dcdb6 706 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 707 # Reject names that are not valid shell variable names.
698dcdb6
VZ
708 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
709 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
710 fi
10f2d63a 711 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
712 case "$ac_option" in
713 *=*) ;;
10f2d63a
VZ
714 *) ac_optarg=yes ;;
715 esac
698dcdb6 716 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
717
718 -without-* | --without-*)
698dcdb6 719 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 720 # Reject names that are not valid shell variable names.
698dcdb6
VZ
721 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
722 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
723 fi
724 ac_package=`echo $ac_package| sed 's/-/_/g'`
725 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
726
727 --x)
728 # Obsolete; use --with-x.
729 with_x=yes ;;
730
731 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
732 | --x-incl | --x-inc | --x-in | --x-i)
733 ac_prev=x_includes ;;
734 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
735 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 736 x_includes="$ac_optarg" ;;
10f2d63a
VZ
737
738 -x-libraries | --x-libraries | --x-librarie | --x-librari \
739 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
740 ac_prev=x_libraries ;;
741 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
742 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 743 x_libraries="$ac_optarg" ;;
10f2d63a 744
698dcdb6 745 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
746 ;;
747
748 *)
698dcdb6
VZ
749 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
750 echo "configure: warning: $ac_option: invalid host type" 1>&2
751 fi
752 if test "x$nonopt" != xNONE; then
753 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
754 fi
755 nonopt="$ac_option"
10f2d63a
VZ
756 ;;
757
758 esac
759done
760
761if test -n "$ac_prev"; then
698dcdb6
VZ
762 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
763fi
764
765trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
766
767# File descriptor usage:
768# 0 standard input
769# 1 file creation
770# 2 errors and warnings
771# 3 some systems may open it to /dev/tty
772# 4 used on the Kubota Titan
773# 6 checking for... messages and results
774# 5 compiler messages saved in config.log
775if test "$silent" = yes; then
776 exec 6>/dev/null
777else
778 exec 6>&1
10f2d63a 779fi
698dcdb6
VZ
780exec 5>./config.log
781
782echo "\
783This file contains any messages produced by compilers while
784running configure, to aid debugging if configure makes a mistake.
785" 1>&5
10f2d63a 786
698dcdb6
VZ
787# Strip out --no-create and --no-recursion so they do not pile up.
788# Also quote any args containing shell metacharacters.
789ac_configure_args=
790for ac_arg
10f2d63a 791do
698dcdb6
VZ
792 case "$ac_arg" in
793 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
794 | --no-cr | --no-c) ;;
795 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
796 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
797 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
798 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
799 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
800 esac
801done
802
698dcdb6
VZ
803# NLS nuisances.
804# Only set these to C if already set. These must not be set unconditionally
805# because not all systems understand e.g. LANG=C (notably SCO).
806# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
807# Non-C LC_CTYPE values break the ctype check.
808if test "${LANG+set}" = set; then LANG=C; export LANG; fi
809if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
810if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
811if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 812
698dcdb6
VZ
813# confdefs.h avoids OS command line length limits that DEFS can exceed.
814rm -rf conftest* confdefs.h
815# AIX cpp loses on an empty file, so make sure it contains at least a newline.
816echo > confdefs.h
10f2d63a 817
698dcdb6
VZ
818# A filename unique to this package, relative to the directory that
819# configure is in, which we can look for to find out if srcdir is correct.
820ac_unique_file=wx-config.in
10f2d63a
VZ
821
822# Find the source files, if location was not specified.
823if test -z "$srcdir"; then
824 ac_srcdir_defaulted=yes
825 # Try the directory containing this script, then its parent.
826 ac_prog=$0
698dcdb6 827 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
828 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
829 srcdir=$ac_confdir
830 if test ! -r $srcdir/$ac_unique_file; then
831 srcdir=..
832 fi
833else
834 ac_srcdir_defaulted=no
835fi
836if test ! -r $srcdir/$ac_unique_file; then
837 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 838 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 839 else
698dcdb6 840 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
841 fi
842fi
698dcdb6 843srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
844
845# Prefer explicitly selected file to automatically selected ones.
846if test -z "$CONFIG_SITE"; then
847 if test "x$prefix" != xNONE; then
848 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
849 else
850 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
851 fi
852fi
853for ac_site_file in $CONFIG_SITE; do
854 if test -r "$ac_site_file"; then
698dcdb6 855 echo "loading site script $ac_site_file"
10f2d63a
VZ
856 . "$ac_site_file"
857 fi
858done
859
860if test -r "$cache_file"; then
698dcdb6
VZ
861 echo "loading cache $cache_file"
862 . $cache_file
10f2d63a 863else
698dcdb6
VZ
864 echo "creating cache $cache_file"
865 > $cache_file
10f2d63a
VZ
866fi
867
868ac_ext=c
698dcdb6 869# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 870ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
871ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
872ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
873cross_compiling=$ac_cv_prog_cc_cross
874
875ac_exeext=
876ac_objext=o
877if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
878 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
879 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
880 ac_n= ac_c='
881' ac_t=' '
882 else
883 ac_n=-n ac_c= ac_t=
884 fi
10f2d63a 885else
698dcdb6 886 ac_n= ac_c='\c' ac_t=
10f2d63a 887fi
698dcdb6
VZ
888
889
10f2d63a 890
7c66a493
VZ
891ac_aux_dir=
892for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
893 if test -f $ac_dir/install-sh; then
894 ac_aux_dir=$ac_dir
895 ac_install_sh="$ac_aux_dir/install-sh -c"
896 break
897 elif test -f $ac_dir/install.sh; then
898 ac_aux_dir=$ac_dir
899 ac_install_sh="$ac_aux_dir/install.sh -c"
900 break
901 fi
902done
903if test -z "$ac_aux_dir"; then
698dcdb6 904 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 905fi
698dcdb6
VZ
906ac_config_guess=$ac_aux_dir/config.guess
907ac_config_sub=$ac_aux_dir/config.sub
908ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 909
698dcdb6
VZ
910
911# Do some error checking and defaulting for the host and target type.
912# The inputs are:
913# configure --host=HOST --target=TARGET --build=BUILD NONOPT
914#
915# The rules are:
916# 1. You are not allowed to specify --host, --target, and nonopt at the
917# same time.
918# 2. Host defaults to nonopt.
919# 3. If nonopt is not specified, then host defaults to the current host,
920# as determined by config.guess.
921# 4. Target and build default to nonopt.
922# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
923
924# The aliases save the names the user supplied, while $host etc.
925# will get canonicalized.
698dcdb6
VZ
926case $host---$target---$nonopt in
927NONE---*---* | *---NONE---* | *---*---NONE) ;;
928*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
929esac
930
931
932# Make sure we can run config.sub.
933if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
934else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
935fi
936
937echo $ac_n "checking host system type""... $ac_c" 1>&6
edae8572 938echo "configure:939: checking host system type" >&5
698dcdb6
VZ
939
940host_alias=$host
941case "$host_alias" in
942NONE)
943 case $nonopt in
944 NONE)
945 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
946 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
947 fi ;;
948 *) host_alias=$nonopt ;;
949 esac ;;
950esac
951
952host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
953host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
954host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
955host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
956echo "$ac_t""$host" 1>&6
957
958echo $ac_n "checking target system type""... $ac_c" 1>&6
edae8572 959echo "configure:960: checking target system type" >&5
698dcdb6
VZ
960
961target_alias=$target
962case "$target_alias" in
963NONE)
964 case $nonopt in
965 NONE) target_alias=$host_alias ;;
966 *) target_alias=$nonopt ;;
967 esac ;;
968esac
969
970target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
971target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
972target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
973target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
974echo "$ac_t""$target" 1>&6
975
976echo $ac_n "checking build system type""... $ac_c" 1>&6
edae8572 977echo "configure:978: checking build system type" >&5
698dcdb6
VZ
978
979build_alias=$build
980case "$build_alias" in
981NONE)
982 case $nonopt in
983 NONE) build_alias=$host_alias ;;
984 *) build_alias=$nonopt ;;
985 esac ;;
986esac
987
988build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
989build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
990build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
991build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
992echo "$ac_t""$build" 1>&6
993
994test "$host_alias" != "$target_alias" &&
7c66a493
VZ
995 test "$program_prefix$program_suffix$program_transform_name" = \
996 NONENONEs,x,x, &&
997 program_prefix=${target_alias}-
998
698dcdb6
VZ
999
1000
10f2d63a 1001WX_MAJOR_VERSION_NUMBER=2
37d403aa 1002WX_MINOR_VERSION_NUMBER=3
6c01ec02 1003WX_RELEASE_NUMBER=2
10f2d63a 1004
10f2d63a 1005WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1006WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1007
6c01ec02 1008WX_CURRENT=1
6426998c
RL
1009WX_REVISION=0
1010WX_AGE=0
1011
698dcdb6
VZ
1012
1013
10f2d63a
VZ
1014USE_UNIX=1
1015USE_WIN32=0
b12915c1 1016USE_BEOS=0
1216f52d 1017USE_MAC=0
b12915c1 1018
10f2d63a
VZ
1019USE_LINUX=
1020USE_SGI=
1021USE_HPUX=
1022USE_SYSV=
1023USE_SVR4=
1024USE_AIX=
1025USE_SUN=
1026USE_SOLARIS=
1027USE_SUNOS=
1028USE_ALPHA=
1029USE_OSF=
1030USE_BSD=
f11bdd03 1031USE_DARWIN=
10f2d63a 1032USE_FREEBSD=
95c8801c 1033USE_OPENBSD=
f6bcfd97 1034USE_NETBSD=
10f2d63a
VZ
1035USE_VMS=
1036USE_ULTRIX=
1037USE_CYGWIN=
1038USE_MINGW=
1039USE_DATA_GENERAL=
1040
ab9b9eab
VZ
1041NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1042
1e6feb95 1043ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
10f2d63a
VZ
1044
1045DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1046DEFAULT_wxUSE_MAC=0
1047DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1048DEFAULT_wxUSE_MOTIF=0
1049DEFAULT_wxUSE_MSW=0
e07802fc 1050DEFAULT_wxUSE_PM=0
1e6feb95 1051DEFAULT_wxUSE_WINE=0
10f2d63a
VZ
1052
1053DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1054DEFAULT_DEFAULT_wxUSE_MAC=0
1055DEFAULT_DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1056DEFAULT_DEFAULT_wxUSE_MOTIF=0
1057DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1058DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1059DEFAULT_DEFAULT_wxUSE_WINE=0
10f2d63a 1060
d6a55c4b 1061PROGRAM_EXT=
3a922bb4 1062SO_SUFFIX=so
d6a55c4b 1063
10f2d63a
VZ
1064case "${host}" in
1065 *-hp-hpux* )
1066 USE_HPUX=1
1067 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1068 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1069 SO_SUFFIX=sl
698dcdb6 1070 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1071#define __HPUX__ 1
1072EOF
1073
1074 ;;
1075 *-*-linux* )
1076 USE_LINUX=1
698dcdb6 1077 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1078#define __LINUX__ 1
1079EOF
1080
1081 TMP=`uname -m`
1082 if test "x$TMP" = "xalpha"; then
1083 USE_ALPHA=1
698dcdb6 1084 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1085#define __ALPHA__ 1
1086EOF
1087
1088 fi
1089 DEFAULT_DEFAULT_wxUSE_GTK=1
1090 ;;
1091 *-*-irix5* | *-*-irix6* )
1092 USE_SGI=1
1093 USE_SVR4=1
698dcdb6 1094 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1095#define __SGI__ 1
1096EOF
1097
698dcdb6 1098 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1099#define __SVR4__ 1
1100EOF
1101
1102 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1103 ;;
1104 *-*-solaris2* )
1105 USE_SUN=1
1106 USE_SOLARIS=1
1107 USE_SVR4=1
698dcdb6 1108 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1109#define __SUN__ 1
1110EOF
1111
698dcdb6 1112 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1113#define __SOLARIS__ 1
1114EOF
1115
698dcdb6 1116 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1117#define __SVR4__ 1
1118EOF
1119
1120 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1121 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1122 ;;
1123 *-*-sunos4* )
1124 USE_SUN=1
1125 USE_SUNOS=1
1126 USE_BSD=1
698dcdb6 1127 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1128#define __SUN__ 1
1129EOF
1130
698dcdb6 1131 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1132#define __SUNOS__ 1
1133EOF
1134
698dcdb6 1135 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1136#define __BSD__ 1
1137EOF
1138
1139 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1140 ;;
f6bcfd97 1141 *-*-freebsd*)
10f2d63a
VZ
1142 USE_BSD=1
1143 USE_FREEBSD=1
698dcdb6 1144 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1145#define __FREEBSD__ 1
1146EOF
1147
698dcdb6 1148 cat >> confdefs.h <<\EOF
10f2d63a 1149#define __BSD__ 1
95c8801c
VS
1150EOF
1151
1152 DEFAULT_DEFAULT_wxUSE_GTK=1
1153 ;;
1154 *-*-openbsd*)
1155 USE_BSD=1
1156 USE_OPENBSD=1
698dcdb6 1157 cat >> confdefs.h <<\EOF
95c8801c
VS
1158#define __FREEBSD__ 1
1159EOF
1160
698dcdb6 1161 cat >> confdefs.h <<\EOF
95c8801c 1162#define __OPENBSD__ 1
f6bcfd97
BP
1163EOF
1164
1165 DEFAULT_DEFAULT_wxUSE_GTK=1
1166 ;;
1167 *-*-netbsd*)
1168 USE_BSD=1
1169 USE_NETBSD=1
698dcdb6 1170 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1171#define __FREEBSD__ 1
1172EOF
1173
698dcdb6 1174 cat >> confdefs.h <<\EOF
f6bcfd97 1175#define __NETBSD__ 1
10f2d63a
VZ
1176EOF
1177
1178 DEFAULT_DEFAULT_wxUSE_GTK=1
1179 ;;
1180 *-*-osf* )
1181 USE_ALPHA=1
1182 USE_OSF=1
698dcdb6 1183 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1184#define __ALPHA__ 1
1185EOF
1186
698dcdb6 1187 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1188#define __OSF__ 1
1189EOF
1190
1191 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1192 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1193 ;;
1194 *-*-dgux5* )
1195 USE_ALPHA=1
1196 USE_SVR4=1
698dcdb6 1197 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1198#define __ALPHA__ 1
1199EOF
1200
698dcdb6 1201 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1202#define __SVR4__ 1
1203EOF
1204
1205 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1206 ;;
1207 *-*-sysv5* )
1208 USE_SYSV=1
1209 USE_SVR4=1
698dcdb6 1210 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1211#define __SYSV__ 1
1212EOF
1213
698dcdb6 1214 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1215#define __SVR4__ 1
1216EOF
1217
1218 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1219 ;;
1220 *-*-aix* )
1221 USE_AIX=1
1222 USE_SYSV=1
1223 USE_SVR4=1
698dcdb6 1224 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1225#define __AIX__ 1
1226EOF
1227
698dcdb6 1228 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1229#define __SYSV__ 1
1230EOF
1231
698dcdb6 1232 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1233#define __SVR4__ 1
1234EOF
1235
1236 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1237 ;;
1238
1c8183e2 1239 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1240 USE_UNIX=0
1241 USE_WIN32=1
3a922bb4 1242 SO_SUFFIX=dll
698dcdb6 1243 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1244#define __WIN32__ 1
1245EOF
1246
698dcdb6 1247 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1248#define __WIN95__ 1
1249EOF
1250
698dcdb6 1251 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1252#define __WINDOWS__ 1
1253EOF
1254
698dcdb6 1255 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1256#define __GNUWIN32__ 1
1257EOF
1258
698dcdb6 1259 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1260#define STRICT 1
1261EOF
1262
698dcdb6 1263 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1264#define WINVER 0x0400
1265EOF
1266
cf27ef00 1267 PROGRAM_EXT=".exe"
7b7a7637 1268 RESCOMP=windres
10f2d63a
VZ
1269 DEFAULT_DEFAULT_wxUSE_MSW=1
1270 ;;
1271
1272 *-pc-os2_emx )
698dcdb6 1273 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1274#define __EMX__ 1
1275EOF
1276
cf27ef00 1277 PROGRAM_EXT=".exe"
e07802fc 1278 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1279 ;;
1280
d08b457b
GD
1281 powerpc-*-darwin* )
1282 USE_BSD=1
f11bdd03 1283 USE_DARWIN=1
3a922bb4 1284 SO_SUFFIX=dylib
698dcdb6 1285 cat >> confdefs.h <<\EOF
f11bdd03 1286#define __BSD__ 1
b4085ce6
GD
1287EOF
1288
698dcdb6 1289 cat >> confdefs.h <<\EOF
f11bdd03 1290#define __DARWIN__ 1
d08b457b
GD
1291EOF
1292
1293 cat >> confdefs.h <<\EOF
1294#define __POWERPC__ 1
b4085ce6
GD
1295EOF
1296
1297 DEFAULT_DEFAULT_wxUSE_MAC=1
1298 ;;
1299
b12915c1
VZ
1300 *-*-beos* )
1301 USE_BEOS=1
698dcdb6 1302 cat >> confdefs.h <<\EOF
b12915c1
VZ
1303#define __BEOS__ 1
1304EOF
1305
1306 ;;
1307
10f2d63a 1308 *)
698dcdb6 1309 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1310esac
1311
1312if test "$USE_UNIX" = 1 ; then
b12915c1 1313 wxUSE_UNIX=yes
698dcdb6 1314 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1315#define __UNIX__ 1
1316EOF
1317
10f2d63a
VZ
1318fi
1319
2389f33b
VZ
1320if test "$USE_LINUX" = 1; then
1321 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
7b7a7637 1322echo "configure:1323: checking for glibc 2.1 or later" >&5
2389f33b
VZ
1323if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1325else
1326 cat > conftest.$ac_ext <<EOF
7b7a7637 1327#line 1328 "configure"
2389f33b
VZ
1328#include "confdefs.h"
1329#include <features.h>
1330int main() {
1331
1332 #if !__GLIBC_PREREQ(2, 1)
1333 #error not glibc2.1
1334 #endif
1335
1336; return 0; }
1337EOF
7b7a7637 1338if { (eval echo configure:1339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2389f33b
VZ
1339 rm -rf conftest*
1340
1341 wx_lib_glibc21=yes
1342
1343else
1344 echo "configure: failed program was:" >&5
1345 cat conftest.$ac_ext >&5
1346 rm -rf conftest*
1347
1348 wx_lib_glibc21=no
1349
1350
1351fi
1352rm -f conftest*
1353
1354fi
1355
1356echo "$ac_t""$wx_lib_glibc21" 1>&6
2389f33b
VZ
1357 if test "$wx_lib_glibc21" = "yes"; then
1358 cat >> confdefs.h <<\EOF
1359#define wxHAVE_GLIBC2 1
1360EOF
1361
1362 fi
1363fi
10f2d63a 1364
1e487827 1365
1e487827 1366
6232543b 1367
10f2d63a
VZ
1368 wx_arg_cache_file="configarg.cache"
1369 echo "loading argument cache $wx_arg_cache_file"
1370 rm -f ${wx_arg_cache_file}.tmp
1371 touch ${wx_arg_cache_file}.tmp
1372 touch ${wx_arg_cache_file}
698dcdb6 1373
10f2d63a
VZ
1374
1375DEBUG_CONFIGURE=0
1376if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1377 DEFAULT_wxUSE_UNIVERSAL=no
1378
10f2d63a
VZ
1379 DEFAULT_wxUSE_THREADS=yes
1380
1381 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1382 DEFAULT_wxUSE_SONAME=no
1e6feb95 1383 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1384 DEFAULT_wxUSE_PROFILE=no
1385 DEFAULT_wxUSE_NO_DEPS=no
1386 DEFAULT_wxUSE_NO_RTTI=no
1387 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1388 DEFAULT_wxUSE_PERMISSIVE=no
1389 DEFAULT_wxUSE_DEBUG_FLAG=yes
1390 DEFAULT_wxUSE_DEBUG_INFO=yes
1391 DEFAULT_wxUSE_DEBUG_GDB=yes
1392 DEFAULT_wxUSE_MEM_TRACING=no
1393 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1394 DEFAULT_wxUSE_DMALLOC=no
1395 DEFAULT_wxUSE_APPLE_IEEE=no
1396
1397 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1398 DEFAULT_wxUSE_LOGWINDOW=no
1399 DEFAULT_wxUSE_LOGGUI=no
10f2d63a
VZ
1400
1401 DEFAULT_wxUSE_GUI=yes
1e6feb95 1402 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1403
3e44f09d 1404 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1405 DEFAULT_wxUSE_ZLIB=no
1406 DEFAULT_wxUSE_LIBPNG=no
1407 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1408 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1409 DEFAULT_wxUSE_ODBC=no
3fed1840 1410 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1411 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1412
eb4efbdc 1413 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1414 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1415 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1416 DEFAULT_wxUSE_CMDLINE_PARSER=no
1417 DEFAULT_wxUSE_DATETIME=no
1418 DEFAULT_wxUSE_TIMEDATE=no
1419 DEFAULT_wxUSE_TIMER=no
1420 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1421 DEFAULT_wxUSE_FILE=no
1e6feb95 1422 DEFAULT_wxUSE_FFILE=no
10f2d63a 1423 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1424 DEFAULT_wxUSE_WAVE=no
1425 DEFAULT_wxUSE_INTL=no
1426 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1427 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1428 DEFAULT_wxUSE_STREAMS=no
1429 DEFAULT_wxUSE_SOCKETS=no
1430 DEFAULT_wxUSE_DIALUP_MANAGER=no
1431 DEFAULT_wxUSE_SERIAL=no
1432 DEFAULT_wxUSE_JOYSTICK=no
1433 DEFAULT_wxUSE_DYNLIB_CLASS=no
1434 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1435 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1436
1437 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1438 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1439 DEFAULT_wxUSE_POSTSCRIPT=no
1440
1441 DEFAULT_wxUSE_X_RESOURCES=no
1442 DEFAULT_wxUSE_CLIPBOARD=no
1443 DEFAULT_wxUSE_TOOLTIPS=no
1444 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1445 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1446 DEFAULT_wxUSE_SPLINES=no
1447
1448 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1449 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1450 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1451
1452 DEFAULT_wxUSE_PROLOGIO=no
1453 DEFAULT_wxUSE_RESOURCES=no
1454 DEFAULT_wxUSE_CONSTRAINTS=no
1455 DEFAULT_wxUSE_IPC=no
1456 DEFAULT_wxUSE_HELP=no
29fd3c0c 1457 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1458 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1459 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1460 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1461 DEFAULT_wxUSE_MIMETYPE=no
3e44f09d 1462 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1463
1464 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1465 DEFAULT_wxUSE_CHOICEDLG=no
1466 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1467 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1468 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1469 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1470 DEFAULT_wxUSE_FONTDLG=no
1471 DEFAULT_wxUSE_MSGDLG=no
1472 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1473 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1474 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1475 DEFAULT_wxUSE_STARTUP_TIPS=no
1476 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1477 DEFAULT_wxUSE_WIZARDDLG=no
1478
1e6feb95 1479 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1480 DEFAULT_wxUSE_MINIFRAME=no
1481 DEFAULT_wxUSE_HTML=no
24528b0c 1482 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1483 DEFAULT_wxUSE_FS_INET=no
1484 DEFAULT_wxUSE_FS_ZIP=no
1485 DEFAULT_wxUSE_BUSYINFO=no
1486 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1487 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1488
1489 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1490 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1491 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1492 DEFAULT_wxUSE_CALCTRL=no
1493 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1494 DEFAULT_wxUSE_CHECKBOX=no
1495 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1496 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1497 DEFAULT_wxUSE_COMBOBOX=no
1498 DEFAULT_wxUSE_GAUGE=no
1499 DEFAULT_wxUSE_GRID=no
1500 DEFAULT_wxUSE_NEW_GRID=no
1501 DEFAULT_wxUSE_IMAGLIST=no
1502 DEFAULT_wxUSE_LISTBOX=no
1503 DEFAULT_wxUSE_LISTCTRL=no
1504 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1505 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1506 DEFAULT_wxUSE_RADIOBOX=no
1507 DEFAULT_wxUSE_RADIOBTN=no
1508 DEFAULT_wxUSE_SASH=no
1509 DEFAULT_wxUSE_SCROLLBAR=no
1510 DEFAULT_wxUSE_SLIDER=no
1511 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1512 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1513 DEFAULT_wxUSE_SPLITTER=no
1514 DEFAULT_wxUSE_STATBMP=no
1515 DEFAULT_wxUSE_STATBOX=no
1516 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1517 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1518 DEFAULT_wxUSE_STATUSBAR=yes
1519 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1520 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1521 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1522 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1523 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1524 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1525 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1526 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
1527
1528 DEFAULT_wxUSE_UNICODE=no
1529 DEFAULT_wxUSE_WCSRTOMBS=no
1530
edae8572 1531 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1532 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1533 DEFAULT_wxUSE_GIF=no
1534 DEFAULT_wxUSE_PCX=no
1535 DEFAULT_wxUSE_PNM=no
0046ff7c 1536 DEFAULT_wxUSE_XPM=no
10f2d63a 1537else
1e6feb95
VZ
1538 DEFAULT_wxUSE_UNIVERSAL=no
1539
10f2d63a
VZ
1540 DEFAULT_wxUSE_THREADS=yes
1541
1542 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1543 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1544 DEFAULT_wxUSE_OPTIMISE=yes
1545 DEFAULT_wxUSE_PROFILE=no
1546 DEFAULT_wxUSE_NO_DEPS=no
1547 DEFAULT_wxUSE_NO_RTTI=no
1548 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1549 DEFAULT_wxUSE_PERMISSIVE=no
1550 DEFAULT_wxUSE_DEBUG_FLAG=no
1551 DEFAULT_wxUSE_DEBUG_INFO=no
1552 DEFAULT_wxUSE_DEBUG_GDB=no
1553 DEFAULT_wxUSE_MEM_TRACING=no
1554 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1555 DEFAULT_wxUSE_DMALLOC=no
1556 DEFAULT_wxUSE_APPLE_IEEE=yes
1557
1558 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1559 DEFAULT_wxUSE_LOGWINDOW=yes
1560 DEFAULT_wxUSE_LOGGUI=yes
10f2d63a
VZ
1561
1562 DEFAULT_wxUSE_GUI=yes
1563
831b3152 1564 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1565 DEFAULT_wxUSE_ZLIB=yes
1566 DEFAULT_wxUSE_LIBPNG=yes
1567 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1568 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1569 DEFAULT_wxUSE_ODBC=no
3fed1840 1570 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1571 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1572
eb4efbdc 1573 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1574 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1575 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1576 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1577 DEFAULT_wxUSE_DATETIME=yes
1578 DEFAULT_wxUSE_TIMEDATE=no
1579 DEFAULT_wxUSE_TIMER=yes
1580 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1581 DEFAULT_wxUSE_FILE=yes
1e6feb95 1582 DEFAULT_wxUSE_FFILE=yes
10f2d63a 1583 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1584 DEFAULT_wxUSE_WAVE=no
1585 DEFAULT_wxUSE_INTL=yes
1586 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1587 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1588 DEFAULT_wxUSE_STREAMS=yes
1589 DEFAULT_wxUSE_SOCKETS=yes
1590 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1591 DEFAULT_wxUSE_SERIAL=yes
1592 DEFAULT_wxUSE_JOYSTICK=yes
1593 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1594 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1595 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1596
1597 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1598 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1599 DEFAULT_wxUSE_POSTSCRIPT=yes
1600
1601 DEFAULT_wxUSE_X_RESOURCES=no
1602 DEFAULT_wxUSE_CLIPBOARD=yes
1603 DEFAULT_wxUSE_TOOLTIPS=yes
1604 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1605 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1606 DEFAULT_wxUSE_SPLINES=yes
1607
1608 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1609 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1610 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1611
1612 DEFAULT_wxUSE_PROLOGIO=yes
1613 DEFAULT_wxUSE_RESOURCES=yes
1614 DEFAULT_wxUSE_CONSTRAINTS=yes
1615 DEFAULT_wxUSE_IPC=yes
1616 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1617 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1618 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1619 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1620 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1621 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1622 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1623
1624 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1625 DEFAULT_wxUSE_CHOICEDLG=yes
1626 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1627 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1628 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1629 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1630 DEFAULT_wxUSE_FONTDLG=yes
1631 DEFAULT_wxUSE_MSGDLG=yes
1632 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1633 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1634 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1635 DEFAULT_wxUSE_STARTUP_TIPS=yes
1636 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1637 DEFAULT_wxUSE_WIZARDDLG=yes
1638
1e6feb95 1639 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1640 DEFAULT_wxUSE_MINIFRAME=yes
1641 DEFAULT_wxUSE_HTML=yes
24528b0c 1642 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1643 DEFAULT_wxUSE_FS_INET=yes
1644 DEFAULT_wxUSE_FS_ZIP=yes
1645 DEFAULT_wxUSE_BUSYINFO=yes
1646 DEFAULT_wxUSE_ZIPSTREAM=yes
1647 DEFAULT_wxUSE_VALIDATORS=yes
1648
1649 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1650 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1651 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1652 DEFAULT_wxUSE_CALCTRL=yes
1653 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1654 DEFAULT_wxUSE_CHECKBOX=yes
1655 DEFAULT_wxUSE_CHECKLST=yes
1656 DEFAULT_wxUSE_CHOICE=yes
1657 DEFAULT_wxUSE_COMBOBOX=yes
1658 DEFAULT_wxUSE_GAUGE=yes
1659 DEFAULT_wxUSE_GRID=yes
cc977e5f 1660 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1661 DEFAULT_wxUSE_IMAGLIST=yes
1662 DEFAULT_wxUSE_LISTBOX=yes
1663 DEFAULT_wxUSE_LISTCTRL=yes
1664 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1665 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1666 DEFAULT_wxUSE_RADIOBOX=yes
1667 DEFAULT_wxUSE_RADIOBTN=yes
1668 DEFAULT_wxUSE_SASH=yes
1669 DEFAULT_wxUSE_SCROLLBAR=yes
1670 DEFAULT_wxUSE_SLIDER=yes
1671 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1672 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1673 DEFAULT_wxUSE_SPLITTER=yes
1674 DEFAULT_wxUSE_STATBMP=yes
1675 DEFAULT_wxUSE_STATBOX=yes
1676 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1677 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1678 DEFAULT_wxUSE_STATUSBAR=yes
1679 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1680 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1681 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1682 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1683 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1684 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1685 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1686 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
1687
1688 DEFAULT_wxUSE_UNICODE=no
1689 DEFAULT_wxUSE_WCSRTOMBS=no
1690
edae8572 1691 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1692 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1693 DEFAULT_wxUSE_GIF=yes
1694 DEFAULT_wxUSE_PCX=yes
1695 DEFAULT_wxUSE_PNM=yes
0046ff7c 1696 DEFAULT_wxUSE_XPM=yes
10f2d63a
VZ
1697fi
1698
698dcdb6
VZ
1699
1700
10f2d63a
VZ
1701for toolkit in `echo $ALL_TOOLKITS`; do
1702 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1703 if test "x$LINE" != x ; then
1704 has_toolkit_in_cache=1
1705 eval "DEFAULT_$LINE"
1706 eval "CACHE_$toolkit=1"
1707 fi
1708done
1709
698dcdb6
VZ
1710
1711
1712 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
7b7a7637 1713echo "configure:1714: checking for --enable-gui" >&5
10f2d63a
VZ
1714 no_cache=0
1715 # Check whether --enable-gui or --disable-gui was given.
1716if test "${enable_gui+set}" = set; then
1717 enableval="$enable_gui"
698dcdb6 1718
10f2d63a
VZ
1719 if test "$enableval" = yes; then
1720 ac_cv_use_gui='wxUSE_GUI=yes'
1721 else
1722 ac_cv_use_gui='wxUSE_GUI=no'
1723 fi
698dcdb6 1724
10f2d63a 1725else
698dcdb6 1726
10f2d63a
VZ
1727 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1728 if test "x$LINE" != x ; then
1729 eval "DEFAULT_$LINE"
1730 else
1731 no_cache=1
1732 fi
1733
1734 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1735
1736fi
10f2d63a
VZ
1737
1738
1739 eval "$ac_cv_use_gui"
1740 if test "$no_cache" != 1; then
1741 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1742 fi
1743
1744 if test "$wxUSE_GUI" = yes; then
698dcdb6 1745 echo "$ac_t""yes" 1>&6
10f2d63a 1746 else
698dcdb6 1747 echo "$ac_t""no" 1>&6
10f2d63a 1748 fi
698dcdb6 1749
10f2d63a 1750
b12915c1 1751if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1752
1e6feb95
VZ
1753
1754 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
7b7a7637 1755echo "configure:1756: checking for --enable-universal" >&5
1e6feb95
VZ
1756 no_cache=0
1757 # Check whether --enable-universal or --disable-universal was given.
1758if test "${enable_universal+set}" = set; then
1759 enableval="$enable_universal"
1760
1761 if test "$enableval" = yes; then
1762 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1763 else
1764 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1765 fi
1766
1767else
1768
1769 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1770 if test "x$LINE" != x ; then
1771 eval "DEFAULT_$LINE"
1772 else
1773 no_cache=1
1774 fi
1775
1776 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1777
1778fi
1779
1780
1781 eval "$ac_cv_use_universal"
1782 if test "$no_cache" != 1; then
1783 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1784 fi
1785
1786 if test "$wxUSE_UNIVERSAL" = yes; then
1787 echo "$ac_t""yes" 1>&6
1788 else
1789 echo "$ac_t""no" 1>&6
1790 fi
1791
10f2d63a
VZ
1792# Check whether --with-gtk or --without-gtk was given.
1793if test "${with_gtk+set}" = set; then
1794 withval="$with_gtk"
1795 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1796fi
10f2d63a
VZ
1797
1798# Check whether --with-motif or --without-motif was given.
1799if test "${with_motif+set}" = set; then
1800 withval="$with_motif"
1801 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1802fi
10f2d63a 1803
b4085ce6
GD
1804# Check whether --with-mac or --without-mac was given.
1805if test "${with_mac+set}" = set; then
1806 withval="$with_mac"
1807 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1808fi
b4085ce6 1809
10f2d63a
VZ
1810# Check whether --with-wine or --without-wine was given.
1811if test "${with_wine+set}" = set; then
1812 withval="$with_wine"
1813 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1814fi
10f2d63a
VZ
1815
1816# Check whether --with-cygwin or --without-cygwin was given.
1817if test "${with_cygwin+set}" = set; then
1818 withval="$with_cygwin"
1819 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
698dcdb6 1820fi
10f2d63a
VZ
1821
1822# Check whether --with-mingw or --without-mingw was given.
1823if test "${with_mingw+set}" = set; then
1824 withval="$with_mingw"
1825 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
698dcdb6 1826fi
10f2d63a 1827
e07802fc
VZ
1828# Check whether --with-pm or --without-pm was given.
1829if test "${with_pm+set}" = set; then
1830 withval="$with_pm"
1831 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1832fi
1833
1e6feb95
VZ
1834# Check whether --with-mgl or --without-mgl was given.
1835if test "${with_mgl+set}" = set; then
1836 withval="$with_mgl"
1837 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1838fi
1839
10f2d63a 1840
8168de4c
VZ
1841# Check whether --enable-gtk2 or --disable-gtk2 was given.
1842if test "${enable_gtk2+set}" = set; then
1843 enableval="$enable_gtk2"
1844 wxUSE_GTK2=1
10f2d63a 1845else
8168de4c 1846 wxUSE_GTK2=0
698dcdb6
VZ
1847fi
1848
703e0a69 1849
1e487827 1850
698dcdb6 1851 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
7b7a7637 1852echo "configure:1853: checking for --with-libpng" >&5
698dcdb6
VZ
1853 no_cache=0
1854 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1855if test "${with_libpng+set}" = set; then
1856 withval="$with_libpng"
698dcdb6 1857
10f2d63a 1858 if test "$withval" = yes; then
b12915c1 1859 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1860 elif test "$withval" = no; then
b12915c1 1861 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1862 elif test "$withval" = sys; then
1863 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1864 else
698dcdb6 1865 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1866 fi
698dcdb6 1867
10f2d63a 1868else
698dcdb6 1869
b12915c1 1870 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1871 if test "x$LINE" != x ; then
1872 eval "DEFAULT_$LINE"
1873 else
1874 no_cache=1
1875 fi
1876
b12915c1 1877 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1878
1879fi
10f2d63a
VZ
1880
1881
b12915c1 1882 eval "$ac_cv_use_libpng"
10f2d63a 1883 if test "$no_cache" != 1; then
b12915c1 1884 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1885 fi
1886
b12915c1 1887 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1888 echo "$ac_t""yes" 1>&6
422107f9 1889 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1890 echo "$ac_t""no" 1>&6
422107f9 1891 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1892 echo "$ac_t""system version" 1>&6
422107f9 1893 else
698dcdb6 1894 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1895 fi
698dcdb6 1896
10f2d63a 1897
698dcdb6 1898 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
7b7a7637 1899echo "configure:1900: checking for --with-libjpeg" >&5
10f2d63a 1900 no_cache=0
698dcdb6 1901 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1902if test "${with_libjpeg+set}" = set; then
1903 withval="$with_libjpeg"
698dcdb6 1904
10f2d63a 1905 if test "$withval" = yes; then
b12915c1 1906 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1907 elif test "$withval" = no; then
b12915c1 1908 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1909 elif test "$withval" = sys; then
1910 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1911 else
698dcdb6 1912 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1913 fi
698dcdb6 1914
10f2d63a 1915else
698dcdb6 1916
b12915c1 1917 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1918 if test "x$LINE" != x ; then
1919 eval "DEFAULT_$LINE"
1920 else
1921 no_cache=1
1922 fi
1923
b12915c1 1924 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
1925
1926fi
10f2d63a
VZ
1927
1928
b12915c1 1929 eval "$ac_cv_use_libjpeg"
10f2d63a 1930 if test "$no_cache" != 1; then
b12915c1 1931 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1932 fi
1933
b12915c1 1934 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 1935 echo "$ac_t""yes" 1>&6
422107f9 1936 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 1937 echo "$ac_t""no" 1>&6
422107f9 1938 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 1939 echo "$ac_t""system version" 1>&6
422107f9 1940 else
698dcdb6 1941 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1942 fi
698dcdb6 1943
10f2d63a 1944
698dcdb6 1945 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
7b7a7637 1946echo "configure:1947: checking for --with-libtiff" >&5
10f2d63a 1947 no_cache=0
698dcdb6 1948 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
1949if test "${with_libtiff+set}" = set; then
1950 withval="$with_libtiff"
698dcdb6 1951
10f2d63a 1952 if test "$withval" = yes; then
b12915c1 1953 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1954 elif test "$withval" = no; then
b12915c1 1955 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1956 elif test "$withval" = sys; then
1957 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1958 else
698dcdb6 1959 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1960 fi
698dcdb6 1961
10f2d63a 1962else
698dcdb6 1963
b12915c1 1964 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1965 if test "x$LINE" != x ; then
1966 eval "DEFAULT_$LINE"
1967 else
1968 no_cache=1
1969 fi
1970
b12915c1 1971 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
1972
1973fi
10f2d63a
VZ
1974
1975
b12915c1 1976 eval "$ac_cv_use_libtiff"
10f2d63a 1977 if test "$no_cache" != 1; then
b12915c1 1978 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1979 fi
1980
b12915c1 1981 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 1982 echo "$ac_t""yes" 1>&6
0dcf9893 1983 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 1984 echo "$ac_t""no" 1>&6
0dcf9893 1985 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 1986 echo "$ac_t""system version" 1>&6
0dcf9893 1987 else
698dcdb6 1988 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1989 fi
698dcdb6 1990
10f2d63a 1991
698dcdb6 1992 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
7b7a7637 1993echo "configure:1994: checking for --with-freetype" >&5
3fed1840 1994 no_cache=0
698dcdb6 1995 # Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
1996if test "${with_freetype+set}" = set; then
1997 withval="$with_freetype"
698dcdb6 1998
3fed1840
RR
1999 if test "$withval" = yes; then
2000 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2001 elif test "$withval" = no; then
2002 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2003 elif test "$withval" = sys; then
2004 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
2005 else
698dcdb6 2006 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 2007 fi
698dcdb6 2008
3fed1840 2009else
698dcdb6 2010
3fed1840
RR
2011 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2012 if test "x$LINE" != x ; then
2013 eval "DEFAULT_$LINE"
2014 else
2015 no_cache=1
2016 fi
2017
2018 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
698dcdb6
VZ
2019
2020fi
3fed1840
RR
2021
2022
2023 eval "$ac_cv_use_freetype"
2024 if test "$no_cache" != 1; then
2025 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2026 fi
2027
2028 if test "$wxUSE_FREETYPE" = yes; then
698dcdb6 2029 echo "$ac_t""yes" 1>&6
3fed1840 2030 elif test "$wxUSE_FREETYPE" = no; then
698dcdb6 2031 echo "$ac_t""no" 1>&6
3fed1840 2032 elif test "$wxUSE_FREETYPE" = sys; then
698dcdb6 2033 echo "$ac_t""system version" 1>&6
3fed1840 2034 else
698dcdb6 2035 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 2036 fi
698dcdb6 2037
3fed1840 2038
698dcdb6 2039 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
7b7a7637 2040echo "configure:2041: checking for --with-opengl" >&5
10f2d63a 2041 no_cache=0
698dcdb6 2042 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2043if test "${with_opengl+set}" = set; then
2044 withval="$with_opengl"
698dcdb6 2045
10f2d63a 2046 if test "$withval" = yes; then
b12915c1 2047 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2048 else
b12915c1 2049 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2050 fi
698dcdb6 2051
10f2d63a 2052else
698dcdb6 2053
b12915c1 2054 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2055 if test "x$LINE" != x ; then
2056 eval "DEFAULT_$LINE"
2057 else
2058 no_cache=1
2059 fi
2060
b12915c1 2061 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2062
2063fi
10f2d63a
VZ
2064
2065
b12915c1 2066 eval "$ac_cv_use_opengl"
10f2d63a 2067 if test "$no_cache" != 1; then
b12915c1 2068 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2069 fi
2070
b12915c1 2071 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2072 echo "$ac_t""yes" 1>&6
10f2d63a 2073 else
698dcdb6 2074 echo "$ac_t""no" 1>&6
10f2d63a 2075 fi
698dcdb6 2076
10f2d63a 2077
b12915c1
VZ
2078fi
2079
1e487827 2080
698dcdb6 2081 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
7b7a7637 2082echo "configure:2083: checking for --with-dmalloc" >&5
698dcdb6
VZ
2083 no_cache=0
2084 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2085if test "${with_dmalloc+set}" = set; then
2086 withval="$with_dmalloc"
698dcdb6 2087
c7a2bf27 2088 if test "$withval" = yes; then
b12915c1 2089 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2090 else
b12915c1 2091 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2092 fi
698dcdb6 2093
c7a2bf27 2094else
698dcdb6 2095
b12915c1 2096 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2097 if test "x$LINE" != x ; then
2098 eval "DEFAULT_$LINE"
2099 else
2100 no_cache=1
2101 fi
2102
b12915c1 2103 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2104
2105fi
c7a2bf27
RR
2106
2107
b12915c1 2108 eval "$ac_cv_use_dmalloc"
c7a2bf27 2109 if test "$no_cache" != 1; then
b12915c1 2110 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2111 fi
2112
b12915c1 2113 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2114 echo "$ac_t""yes" 1>&6
c7a2bf27 2115 else
698dcdb6 2116 echo "$ac_t""no" 1>&6
c7a2bf27 2117 fi
698dcdb6 2118
c7a2bf27 2119
3e44f09d 2120 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
7b7a7637 2121echo "configure:2122: checking for --with-regex" >&5
3e44f09d
VZ
2122 no_cache=0
2123 # Check whether --with-regex or --without-regex was given.
2124if test "${with_regex+set}" = set; then
2125 withval="$with_regex"
2126
2127 if test "$withval" = yes; then
2128 ac_cv_use_regex='wxUSE_REGEX=yes'
2129 elif test "$withval" = no; then
2130 ac_cv_use_regex='wxUSE_REGEX=no'
2131 elif test "$withval" = sys; then
2132 ac_cv_use_regex='wxUSE_REGEX=sys'
2133 else
2134 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2135 fi
2136
2137else
2138
2139 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2140 if test "x$LINE" != x ; then
2141 eval "DEFAULT_$LINE"
2142 else
2143 no_cache=1
2144 fi
2145
2146 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2147
2148fi
2149
2150
2151 eval "$ac_cv_use_regex"
2152 if test "$no_cache" != 1; then
2153 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2154 fi
2155
2156 if test "$wxUSE_REGEX" = yes; then
2157 echo "$ac_t""yes" 1>&6
2158 elif test "$wxUSE_REGEX" = no; then
2159 echo "$ac_t""no" 1>&6
2160 elif test "$wxUSE_REGEX" = sys; then
2161 echo "$ac_t""system version" 1>&6
2162 else
2163 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2164 fi
2165
2166
698dcdb6 2167 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
7b7a7637 2168echo "configure:2169: checking for --with-zlib" >&5
10f2d63a 2169 no_cache=0
698dcdb6 2170 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2171if test "${with_zlib+set}" = set; then
2172 withval="$with_zlib"
698dcdb6 2173
10f2d63a 2174 if test "$withval" = yes; then
b12915c1 2175 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2176 elif test "$withval" = no; then
b12915c1 2177 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2178 elif test "$withval" = sys; then
2179 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2180 else
698dcdb6 2181 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2182 fi
698dcdb6 2183
10f2d63a 2184else
698dcdb6 2185
b12915c1 2186 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2187 if test "x$LINE" != x ; then
2188 eval "DEFAULT_$LINE"
2189 else
2190 no_cache=1
2191 fi
2192
b12915c1 2193 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2194
2195fi
10f2d63a
VZ
2196
2197
b12915c1 2198 eval "$ac_cv_use_zlib"
10f2d63a 2199 if test "$no_cache" != 1; then
b12915c1 2200 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2201 fi
2202
b12915c1 2203 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2204 echo "$ac_t""yes" 1>&6
422107f9 2205 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2206 echo "$ac_t""no" 1>&6
422107f9 2207 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2208 echo "$ac_t""system version" 1>&6
422107f9 2209 else
698dcdb6 2210 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2211 fi
698dcdb6 2212
10f2d63a 2213
698dcdb6 2214 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
7b7a7637 2215echo "configure:2216: checking for --with-odbc" >&5
10f2d63a 2216 no_cache=0
698dcdb6 2217 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2218if test "${with_odbc+set}" = set; then
2219 withval="$with_odbc"
698dcdb6 2220
10f2d63a
VZ
2221 if test "$withval" = yes; then
2222 ac_cv_use_odbc='wxUSE_ODBC=yes'
2223 else
2224 ac_cv_use_odbc='wxUSE_ODBC=no'
2225 fi
698dcdb6 2226
10f2d63a 2227else
698dcdb6 2228
10f2d63a
VZ
2229 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2230 if test "x$LINE" != x ; then
2231 eval "DEFAULT_$LINE"
2232 else
2233 no_cache=1
2234 fi
2235
2236 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2237
2238fi
10f2d63a
VZ
2239
2240
2241 eval "$ac_cv_use_odbc"
2242 if test "$no_cache" != 1; then
2243 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2244 fi
2245
2246 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2247 echo "$ac_t""yes" 1>&6
10f2d63a 2248 else
698dcdb6 2249 echo "$ac_t""no" 1>&6
10f2d63a 2250 fi
698dcdb6
VZ
2251
2252
10f2d63a 2253
698dcdb6
VZ
2254
2255
2256 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
7b7a7637 2257echo "configure:2258: checking for --enable-shared" >&5
10f2d63a
VZ
2258 no_cache=0
2259 # Check whether --enable-shared or --disable-shared was given.
2260if test "${enable_shared+set}" = set; then
2261 enableval="$enable_shared"
698dcdb6 2262
10f2d63a
VZ
2263 if test "$enableval" = yes; then
2264 ac_cv_use_shared='wxUSE_SHARED=yes'
2265 else
2266 ac_cv_use_shared='wxUSE_SHARED=no'
2267 fi
698dcdb6 2268
10f2d63a 2269else
698dcdb6 2270
10f2d63a
VZ
2271 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2272 if test "x$LINE" != x ; then
2273 eval "DEFAULT_$LINE"
2274 else
2275 no_cache=1
2276 fi
2277
2278 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2279
2280fi
10f2d63a
VZ
2281
2282
2283 eval "$ac_cv_use_shared"
2284 if test "$no_cache" != 1; then
2285 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2286 fi
2287
2288 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2289 echo "$ac_t""yes" 1>&6
10f2d63a 2290 else
698dcdb6 2291 echo "$ac_t""no" 1>&6
10f2d63a 2292 fi
698dcdb6 2293
10f2d63a 2294
3a922bb4 2295 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
7b7a7637 2296echo "configure:2297: checking for --enable-soname" >&5
00cf1208 2297 no_cache=0
3a922bb4
RL
2298 # Check whether --enable-soname or --disable-soname was given.
2299if test "${enable_soname+set}" = set; then
2300 enableval="$enable_soname"
698dcdb6 2301
00cf1208 2302 if test "$enableval" = yes; then
3a922bb4 2303 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2304 else
3a922bb4 2305 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2306 fi
698dcdb6 2307
00cf1208 2308else
698dcdb6 2309
3a922bb4 2310 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2311 if test "x$LINE" != x ; then
2312 eval "DEFAULT_$LINE"
2313 else
2314 no_cache=1
2315 fi
2316
3a922bb4 2317 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
698dcdb6
VZ
2318
2319fi
00cf1208
RR
2320
2321
3a922bb4 2322 eval "$ac_cv_use_soname"
00cf1208 2323 if test "$no_cache" != 1; then
3a922bb4 2324 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2325 fi
2326
3a922bb4 2327 if test "$wxUSE_SONAME" = yes; then
698dcdb6 2328 echo "$ac_t""yes" 1>&6
00cf1208 2329 else
698dcdb6 2330 echo "$ac_t""no" 1>&6
00cf1208 2331 fi
698dcdb6 2332
00cf1208 2333
698dcdb6 2334 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
7b7a7637 2335echo "configure:2336: checking for --enable-optimise" >&5
10f2d63a
VZ
2336 no_cache=0
2337 # Check whether --enable-optimise or --disable-optimise was given.
2338if test "${enable_optimise+set}" = set; then
2339 enableval="$enable_optimise"
698dcdb6 2340
10f2d63a
VZ
2341 if test "$enableval" = yes; then
2342 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2343 else
2344 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2345 fi
698dcdb6 2346
10f2d63a 2347else
698dcdb6 2348
10f2d63a
VZ
2349 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2350 if test "x$LINE" != x ; then
2351 eval "DEFAULT_$LINE"
2352 else
2353 no_cache=1
2354 fi
2355
2356 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2357
2358fi
10f2d63a
VZ
2359
2360
2361 eval "$ac_cv_use_optimise"
2362 if test "$no_cache" != 1; then
2363 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2364 fi
2365
2366 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2367 echo "$ac_t""yes" 1>&6
10f2d63a 2368 else
698dcdb6 2369 echo "$ac_t""no" 1>&6
10f2d63a 2370 fi
698dcdb6 2371
10f2d63a 2372
698dcdb6 2373 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
7b7a7637 2374echo "configure:2375: checking for --enable-debug" >&5
10f2d63a
VZ
2375 no_cache=0
2376 # Check whether --enable-debug or --disable-debug was given.
2377if test "${enable_debug+set}" = set; then
2378 enableval="$enable_debug"
698dcdb6 2379
10f2d63a
VZ
2380 if test "$enableval" = yes; then
2381 ac_cv_use_debug='wxUSE_DEBUG=yes'
2382 else
2383 ac_cv_use_debug='wxUSE_DEBUG=no'
2384 fi
698dcdb6 2385
10f2d63a 2386else
698dcdb6 2387
10f2d63a
VZ
2388 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2389 if test "x$LINE" != x ; then
2390 eval "DEFAULT_$LINE"
2391 else
2392 no_cache=1
2393 fi
2394
2395 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2396
2397fi
10f2d63a
VZ
2398
2399
2400 eval "$ac_cv_use_debug"
2401 if test "$no_cache" != 1; then
2402 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2403 fi
2404
2405 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2406 echo "$ac_t""yes" 1>&6
10f2d63a 2407 else
698dcdb6 2408 echo "$ac_t""no" 1>&6
10f2d63a 2409 fi
698dcdb6 2410
10f2d63a
VZ
2411
2412if test "$wxUSE_DEBUG" = "yes"; then
2413 DEFAULT_wxUSE_DEBUG_FLAG=yes
2414 DEFAULT_wxUSE_DEBUG_INFO=yes
2415elif test "$wxUSE_DEBUG" = "no"; then
2416 DEFAULT_wxUSE_DEBUG_FLAG=no
2417 DEFAULT_wxUSE_DEBUG_INFO=no
2418fi
2419
698dcdb6
VZ
2420
2421 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
7b7a7637 2422echo "configure:2423: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2423 no_cache=0
2424 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2425if test "${enable_debug_flag+set}" = set; then
2426 enableval="$enable_debug_flag"
698dcdb6 2427
10f2d63a
VZ
2428 if test "$enableval" = yes; then
2429 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2430 else
2431 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2432 fi
698dcdb6 2433
10f2d63a 2434else
698dcdb6 2435
10f2d63a
VZ
2436 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2437 if test "x$LINE" != x ; then
2438 eval "DEFAULT_$LINE"
2439 else
2440 no_cache=1
2441 fi
2442
2443 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2444
2445fi
10f2d63a
VZ
2446
2447
2448 eval "$ac_cv_use_debug_flag"
2449 if test "$no_cache" != 1; then
2450 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2451 fi
2452
2453 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2454 echo "$ac_t""yes" 1>&6
10f2d63a 2455 else
698dcdb6 2456 echo "$ac_t""no" 1>&6
10f2d63a 2457 fi
698dcdb6 2458
10f2d63a 2459
698dcdb6 2460 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
7b7a7637 2461echo "configure:2462: checking for --enable-debug_info" >&5
10f2d63a
VZ
2462 no_cache=0
2463 # Check whether --enable-debug_info or --disable-debug_info was given.
2464if test "${enable_debug_info+set}" = set; then
2465 enableval="$enable_debug_info"
698dcdb6 2466
10f2d63a
VZ
2467 if test "$enableval" = yes; then
2468 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2469 else
2470 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2471 fi
698dcdb6 2472
10f2d63a 2473else
698dcdb6 2474
10f2d63a
VZ
2475 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2476 if test "x$LINE" != x ; then
2477 eval "DEFAULT_$LINE"
2478 else
2479 no_cache=1
2480 fi
2481
2482 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2483
2484fi
10f2d63a
VZ
2485
2486
2487 eval "$ac_cv_use_debug_info"
2488 if test "$no_cache" != 1; then
2489 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2490 fi
2491
2492 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2493 echo "$ac_t""yes" 1>&6
10f2d63a 2494 else
698dcdb6 2495 echo "$ac_t""no" 1>&6
10f2d63a 2496 fi
698dcdb6 2497
10f2d63a 2498
698dcdb6 2499 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
7b7a7637 2500echo "configure:2501: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2501 no_cache=0
2502 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2503if test "${enable_debug_gdb+set}" = set; then
2504 enableval="$enable_debug_gdb"
698dcdb6 2505
10f2d63a
VZ
2506 if test "$enableval" = yes; then
2507 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2508 else
2509 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2510 fi
698dcdb6 2511
10f2d63a 2512else
698dcdb6 2513
10f2d63a
VZ
2514 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2515 if test "x$LINE" != x ; then
2516 eval "DEFAULT_$LINE"
2517 else
2518 no_cache=1
2519 fi
2520
2521 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2522
2523fi
10f2d63a
VZ
2524
2525
2526 eval "$ac_cv_use_debug_gdb"
2527 if test "$no_cache" != 1; then
2528 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2529 fi
2530
2531 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2532 echo "$ac_t""yes" 1>&6
10f2d63a 2533 else
698dcdb6 2534 echo "$ac_t""no" 1>&6
10f2d63a 2535 fi
698dcdb6 2536
10f2d63a 2537
698dcdb6 2538 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
7b7a7637 2539echo "configure:2540: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2540 no_cache=0
2541 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2542if test "${enable_debug_cntxt+set}" = set; then
2543 enableval="$enable_debug_cntxt"
698dcdb6 2544
10f2d63a
VZ
2545 if test "$enableval" = yes; then
2546 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2547 else
2548 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2549 fi
698dcdb6 2550
10f2d63a 2551else
698dcdb6 2552
10f2d63a
VZ
2553 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2554 if test "x$LINE" != x ; then
2555 eval "DEFAULT_$LINE"
2556 else
2557 no_cache=1
2558 fi
2559
2560 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2561
2562fi
10f2d63a
VZ
2563
2564
2565 eval "$ac_cv_use_debug_cntxt"
2566 if test "$no_cache" != 1; then
2567 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2568 fi
2569
2570 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2571 echo "$ac_t""yes" 1>&6
10f2d63a 2572 else
698dcdb6 2573 echo "$ac_t""no" 1>&6
10f2d63a 2574 fi
698dcdb6 2575
10f2d63a 2576
698dcdb6 2577 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
7b7a7637 2578echo "configure:2579: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2579 no_cache=0
2580 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2581if test "${enable_mem_tracing+set}" = set; then
2582 enableval="$enable_mem_tracing"
698dcdb6 2583
10f2d63a
VZ
2584 if test "$enableval" = yes; then
2585 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2586 else
2587 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2588 fi
698dcdb6 2589
10f2d63a 2590else
698dcdb6 2591
10f2d63a
VZ
2592 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2593 if test "x$LINE" != x ; then
2594 eval "DEFAULT_$LINE"
2595 else
2596 no_cache=1
2597 fi
2598
2599 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2600
2601fi
10f2d63a
VZ
2602
2603
2604 eval "$ac_cv_use_mem_tracing"
2605 if test "$no_cache" != 1; then
2606 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2607 fi
2608
2609 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2610 echo "$ac_t""yes" 1>&6
10f2d63a 2611 else
698dcdb6 2612 echo "$ac_t""no" 1>&6
10f2d63a 2613 fi
698dcdb6 2614
10f2d63a 2615
698dcdb6 2616 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
7b7a7637 2617echo "configure:2618: checking for --enable-profile" >&5
10f2d63a
VZ
2618 no_cache=0
2619 # Check whether --enable-profile or --disable-profile was given.
2620if test "${enable_profile+set}" = set; then
2621 enableval="$enable_profile"
698dcdb6 2622
10f2d63a
VZ
2623 if test "$enableval" = yes; then
2624 ac_cv_use_profile='wxUSE_PROFILE=yes'
2625 else
2626 ac_cv_use_profile='wxUSE_PROFILE=no'
2627 fi
698dcdb6 2628
10f2d63a 2629else
698dcdb6 2630
10f2d63a
VZ
2631 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2632 if test "x$LINE" != x ; then
2633 eval "DEFAULT_$LINE"
2634 else
2635 no_cache=1
2636 fi
2637
2638 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2639
2640fi
10f2d63a
VZ
2641
2642
2643 eval "$ac_cv_use_profile"
2644 if test "$no_cache" != 1; then
2645 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2646 fi
2647
2648 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2649 echo "$ac_t""yes" 1>&6
10f2d63a 2650 else
698dcdb6 2651 echo "$ac_t""no" 1>&6
10f2d63a 2652 fi
698dcdb6 2653
10f2d63a 2654
698dcdb6 2655 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
7b7a7637 2656echo "configure:2657: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2657 no_cache=0
2658 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2659if test "${enable_no_rtti+set}" = set; then
2660 enableval="$enable_no_rtti"
698dcdb6 2661
10f2d63a
VZ
2662 if test "$enableval" = yes; then
2663 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2664 else
2665 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2666 fi
698dcdb6 2667
10f2d63a 2668else
698dcdb6 2669
10f2d63a
VZ
2670 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2671 if test "x$LINE" != x ; then
2672 eval "DEFAULT_$LINE"
2673 else
2674 no_cache=1
2675 fi
2676
2677 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2678
2679fi
10f2d63a
VZ
2680
2681
2682 eval "$ac_cv_use_no_rtti"
2683 if test "$no_cache" != 1; then
2684 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2685 fi
2686
2687 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2688 echo "$ac_t""yes" 1>&6
10f2d63a 2689 else
698dcdb6 2690 echo "$ac_t""no" 1>&6
10f2d63a 2691 fi
698dcdb6 2692
10f2d63a 2693
698dcdb6 2694 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
7b7a7637 2695echo "configure:2696: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2696 no_cache=0
2697 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2698if test "${enable_no_exceptions+set}" = set; then
2699 enableval="$enable_no_exceptions"
698dcdb6 2700
10f2d63a
VZ
2701 if test "$enableval" = yes; then
2702 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2703 else
2704 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2705 fi
698dcdb6 2706
10f2d63a 2707else
698dcdb6 2708
10f2d63a
VZ
2709 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2710 if test "x$LINE" != x ; then
2711 eval "DEFAULT_$LINE"
2712 else
2713 no_cache=1
2714 fi
2715
2716 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2717
2718fi
10f2d63a
VZ
2719
2720
2721 eval "$ac_cv_use_no_exceptions"
2722 if test "$no_cache" != 1; then
2723 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2724 fi
2725
2726 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2727 echo "$ac_t""yes" 1>&6
10f2d63a 2728 else
698dcdb6 2729 echo "$ac_t""no" 1>&6
10f2d63a 2730 fi
698dcdb6 2731
10f2d63a 2732
698dcdb6 2733 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
7b7a7637 2734echo "configure:2735: checking for --enable-permissive" >&5
10f2d63a
VZ
2735 no_cache=0
2736 # Check whether --enable-permissive or --disable-permissive was given.
2737if test "${enable_permissive+set}" = set; then
2738 enableval="$enable_permissive"
698dcdb6 2739
10f2d63a
VZ
2740 if test "$enableval" = yes; then
2741 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2742 else
2743 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2744 fi
698dcdb6 2745
10f2d63a 2746else
698dcdb6 2747
10f2d63a
VZ
2748 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2749 if test "x$LINE" != x ; then
2750 eval "DEFAULT_$LINE"
2751 else
2752 no_cache=1
2753 fi
2754
2755 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2756
2757fi
10f2d63a
VZ
2758
2759
2760 eval "$ac_cv_use_permissive"
2761 if test "$no_cache" != 1; then
2762 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2763 fi
2764
2765 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2766 echo "$ac_t""yes" 1>&6
10f2d63a 2767 else
698dcdb6 2768 echo "$ac_t""no" 1>&6
10f2d63a 2769 fi
698dcdb6 2770
10f2d63a 2771
698dcdb6 2772 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
7b7a7637 2773echo "configure:2774: checking for --enable-no_deps" >&5
10f2d63a
VZ
2774 no_cache=0
2775 # Check whether --enable-no_deps or --disable-no_deps was given.
2776if test "${enable_no_deps+set}" = set; then
2777 enableval="$enable_no_deps"
698dcdb6 2778
10f2d63a
VZ
2779 if test "$enableval" = yes; then
2780 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2781 else
2782 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2783 fi
698dcdb6 2784
10f2d63a 2785else
698dcdb6 2786
10f2d63a
VZ
2787 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2788 if test "x$LINE" != x ; then
2789 eval "DEFAULT_$LINE"
2790 else
2791 no_cache=1
2792 fi
2793
2794 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2795
2796fi
10f2d63a
VZ
2797
2798
2799 eval "$ac_cv_use_no_deps"
2800 if test "$no_cache" != 1; then
2801 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2802 fi
2803
2804 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2805 echo "$ac_t""yes" 1>&6
10f2d63a 2806 else
698dcdb6 2807 echo "$ac_t""no" 1>&6
10f2d63a 2808 fi
698dcdb6
VZ
2809
2810
10f2d63a 2811
54276ccf 2812 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
7b7a7637 2813echo "configure:2814: checking for --enable-compat20" >&5
54276ccf
VZ
2814 no_cache=0
2815 # Check whether --enable-compat20 or --disable-compat20 was given.
2816if test "${enable_compat20+set}" = set; then
2817 enableval="$enable_compat20"
2818
2819 if test "$enableval" = yes; then
2820 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2821 else
2822 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2823 fi
2824
2825else
2826
2827 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2828 if test "x$LINE" != x ; then
2829 eval "DEFAULT_$LINE"
2830 else
2831 no_cache=1
2832 fi
2833
2834 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2835
2836fi
2837
2838
2839 eval "$ac_cv_use_compat20"
2840 if test "$no_cache" != 1; then
2841 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2842 fi
2843
2844 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2845 echo "$ac_t""yes" 1>&6
2846 else
2847 echo "$ac_t""no" 1>&6
2848 fi
2849
2850
2851 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
7b7a7637 2852echo "configure:2853: checking for --enable-compat22" >&5
54276ccf
VZ
2853 no_cache=0
2854 # Check whether --enable-compat22 or --disable-compat22 was given.
2855if test "${enable_compat22+set}" = set; then
2856 enableval="$enable_compat22"
2857
2858 if test "$enableval" = yes; then
2859 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2860 else
2861 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2862 fi
2863
2864else
2865
2866 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2867 if test "x$LINE" != x ; then
2868 eval "DEFAULT_$LINE"
2869 else
2870 no_cache=1
2871 fi
2872
2873 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2874
2875fi
2876
2877
2878 eval "$ac_cv_use_compat22"
2879 if test "$no_cache" != 1; then
2880 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2881 fi
2882
2883 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2884 echo "$ac_t""yes" 1>&6
2885 else
2886 echo "$ac_t""no" 1>&6
2887 fi
2888
2889
2890
698dcdb6
VZ
2891
2892 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
7b7a7637 2893echo "configure:2894: checking for --enable-intl" >&5
10f2d63a
VZ
2894 no_cache=0
2895 # Check whether --enable-intl or --disable-intl was given.
2896if test "${enable_intl+set}" = set; then
2897 enableval="$enable_intl"
698dcdb6 2898
10f2d63a
VZ
2899 if test "$enableval" = yes; then
2900 ac_cv_use_intl='wxUSE_INTL=yes'
2901 else
2902 ac_cv_use_intl='wxUSE_INTL=no'
2903 fi
698dcdb6 2904
10f2d63a 2905else
698dcdb6 2906
10f2d63a
VZ
2907 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2908 if test "x$LINE" != x ; then
2909 eval "DEFAULT_$LINE"
2910 else
2911 no_cache=1
2912 fi
2913
2914 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
2915
2916fi
10f2d63a
VZ
2917
2918
2919 eval "$ac_cv_use_intl"
2920 if test "$no_cache" != 1; then
2921 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2922 fi
2923
2924 if test "$wxUSE_INTL" = yes; then
698dcdb6 2925 echo "$ac_t""yes" 1>&6
10f2d63a 2926 else
698dcdb6 2927 echo "$ac_t""no" 1>&6
10f2d63a 2928 fi
698dcdb6 2929
10f2d63a 2930
698dcdb6 2931 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
7b7a7637 2932echo "configure:2933: checking for --enable-config" >&5
10f2d63a
VZ
2933 no_cache=0
2934 # Check whether --enable-config or --disable-config was given.
2935if test "${enable_config+set}" = set; then
2936 enableval="$enable_config"
698dcdb6 2937
10f2d63a
VZ
2938 if test "$enableval" = yes; then
2939 ac_cv_use_config='wxUSE_CONFIG=yes'
2940 else
2941 ac_cv_use_config='wxUSE_CONFIG=no'
2942 fi
698dcdb6 2943
10f2d63a 2944else
698dcdb6 2945
10f2d63a
VZ
2946 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2947 if test "x$LINE" != x ; then
2948 eval "DEFAULT_$LINE"
2949 else
2950 no_cache=1
2951 fi
2952
2953 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
2954
2955fi
10f2d63a
VZ
2956
2957
2958 eval "$ac_cv_use_config"
2959 if test "$no_cache" != 1; then
2960 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2961 fi
2962
2963 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 2964 echo "$ac_t""yes" 1>&6
10f2d63a 2965 else
698dcdb6 2966 echo "$ac_t""no" 1>&6
10f2d63a 2967 fi
698dcdb6
VZ
2968
2969
b12915c1 2970
698dcdb6 2971 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
7b7a7637 2972echo "configure:2973: checking for --enable-sockets" >&5
10f2d63a
VZ
2973 no_cache=0
2974 # Check whether --enable-sockets or --disable-sockets was given.
2975if test "${enable_sockets+set}" = set; then
2976 enableval="$enable_sockets"
698dcdb6 2977
10f2d63a
VZ
2978 if test "$enableval" = yes; then
2979 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2980 else
2981 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2982 fi
698dcdb6 2983
10f2d63a 2984else
698dcdb6 2985
10f2d63a
VZ
2986 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2987 if test "x$LINE" != x ; then
2988 eval "DEFAULT_$LINE"
2989 else
2990 no_cache=1
2991 fi
2992
2993 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
2994
2995fi
10f2d63a
VZ
2996
2997
2998 eval "$ac_cv_use_sockets"
2999 if test "$no_cache" != 1; then
3000 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3001 fi
3002
3003 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 3004 echo "$ac_t""yes" 1>&6
10f2d63a 3005 else
698dcdb6 3006 echo "$ac_t""no" 1>&6
10f2d63a 3007 fi
698dcdb6 3008
b12915c1 3009
698dcdb6
VZ
3010
3011 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
7b7a7637 3012echo "configure:3013: checking for --enable-ipc" >&5
10f2d63a 3013 no_cache=0
eb4efbdc
VZ
3014 # Check whether --enable-ipc or --disable-ipc was given.
3015if test "${enable_ipc+set}" = set; then
3016 enableval="$enable_ipc"
698dcdb6 3017
10f2d63a 3018 if test "$enableval" = yes; then
eb4efbdc 3019 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3020 else
eb4efbdc 3021 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3022 fi
698dcdb6 3023
10f2d63a 3024else
698dcdb6 3025
eb4efbdc 3026 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3027 if test "x$LINE" != x ; then
3028 eval "DEFAULT_$LINE"
3029 else
3030 no_cache=1
3031 fi
3032
eb4efbdc 3033 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3034
3035fi
10f2d63a
VZ
3036
3037
eb4efbdc 3038 eval "$ac_cv_use_ipc"
10f2d63a 3039 if test "$no_cache" != 1; then
eb4efbdc 3040 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3041 fi
3042
eb4efbdc 3043 if test "$wxUSE_IPC" = yes; then
698dcdb6 3044 echo "$ac_t""yes" 1>&6
10f2d63a 3045 else
698dcdb6 3046 echo "$ac_t""no" 1>&6
10f2d63a 3047 fi
698dcdb6
VZ
3048
3049
eb4efbdc 3050
1e6feb95 3051 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
7b7a7637 3052echo "configure:3053: checking for --enable-cmdline" >&5
1e6feb95
VZ
3053 no_cache=0
3054 # Check whether --enable-cmdline or --disable-cmdline was given.
3055if test "${enable_cmdline+set}" = set; then
3056 enableval="$enable_cmdline"
3057
3058 if test "$enableval" = yes; then
3059 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3060 else
3061 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3062 fi
3063
3064else
3065
3066 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3067 if test "x$LINE" != x ; then
3068 eval "DEFAULT_$LINE"
3069 else
3070 no_cache=1
3071 fi
3072
3073 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3074
3075fi
3076
3077
3078 eval "$ac_cv_use_cmdline"
3079 if test "$no_cache" != 1; then
3080 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3081 fi
3082
3083 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3084 echo "$ac_t""yes" 1>&6
3085 else
3086 echo "$ac_t""no" 1>&6
3087 fi
3088
3089
3090 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
7b7a7637 3091echo "configure:3092: checking for --enable-datetime" >&5
1e6feb95
VZ
3092 no_cache=0
3093 # Check whether --enable-datetime or --disable-datetime was given.
3094if test "${enable_datetime+set}" = set; then
3095 enableval="$enable_datetime"
3096
3097 if test "$enableval" = yes; then
3098 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3099 else
3100 ac_cv_use_datetime='wxUSE_DATETIME=no'
3101 fi
3102
3103else
3104
3105 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3106 if test "x$LINE" != x ; then
3107 eval "DEFAULT_$LINE"
3108 else
3109 no_cache=1
3110 fi
3111
3112 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3113
3114fi
3115
3116
3117 eval "$ac_cv_use_datetime"
3118 if test "$no_cache" != 1; then
3119 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3120 fi
3121
3122 if test "$wxUSE_DATETIME" = yes; then
3123 echo "$ac_t""yes" 1>&6
3124 else
3125 echo "$ac_t""no" 1>&6
3126 fi
3127
3128
3129 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
7b7a7637 3130echo "configure:3131: checking for --enable-timedate" >&5
1e6feb95
VZ
3131 no_cache=0
3132 # Check whether --enable-timedate or --disable-timedate was given.
3133if test "${enable_timedate+set}" = set; then
3134 enableval="$enable_timedate"
3135
3136 if test "$enableval" = yes; then
3137 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3138 else
3139 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3140 fi
3141
3142else
3143
3144 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3145 if test "x$LINE" != x ; then
3146 eval "DEFAULT_$LINE"
3147 else
3148 no_cache=1
3149 fi
3150
3151 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3152
3153fi
3154
3155
3156 eval "$ac_cv_use_timedate"
3157 if test "$no_cache" != 1; then
3158 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3159 fi
3160
3161 if test "$wxUSE_TIMEDATE" = yes; then
3162 echo "$ac_t""yes" 1>&6
3163 else
3164 echo "$ac_t""no" 1>&6
3165 fi
3166
3167
3168 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
7b7a7637 3169echo "configure:3170: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3170 no_cache=0
3171 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3172if test "${enable_stopwatch+set}" = set; then
3173 enableval="$enable_stopwatch"
3174
3175 if test "$enableval" = yes; then
3176 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3177 else
3178 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3179 fi
3180
3181else
3182
3183 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3184 if test "x$LINE" != x ; then
3185 eval "DEFAULT_$LINE"
3186 else
3187 no_cache=1
3188 fi
3189
3190 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3191
3192fi
3193
3194
3195 eval "$ac_cv_use_stopwatch"
3196 if test "$no_cache" != 1; then
3197 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3198 fi
3199
3200 if test "$wxUSE_STOPWATCH" = yes; then
3201 echo "$ac_t""yes" 1>&6
3202 else
3203 echo "$ac_t""no" 1>&6
3204 fi
3205
3206
698dcdb6 3207 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
7b7a7637 3208echo "configure:3209: checking for --enable-dialupman" >&5
10f2d63a 3209 no_cache=0
eb4efbdc
VZ
3210 # Check whether --enable-dialupman or --disable-dialupman was given.
3211if test "${enable_dialupman+set}" = set; then
3212 enableval="$enable_dialupman"
698dcdb6 3213
10f2d63a 3214 if test "$enableval" = yes; then
eb4efbdc 3215 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3216 else
eb4efbdc 3217 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3218 fi
698dcdb6 3219
10f2d63a 3220else
698dcdb6 3221
eb4efbdc 3222 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3223 if test "x$LINE" != x ; then
3224 eval "DEFAULT_$LINE"
3225 else
3226 no_cache=1
3227 fi
3228
eb4efbdc 3229 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3230
3231fi
10f2d63a
VZ
3232
3233
eb4efbdc 3234 eval "$ac_cv_use_dialupman"
10f2d63a 3235 if test "$no_cache" != 1; then
eb4efbdc 3236 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3237 fi
3238
eb4efbdc 3239 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3240 echo "$ac_t""yes" 1>&6
10f2d63a 3241 else
698dcdb6 3242 echo "$ac_t""no" 1>&6
10f2d63a 3243 fi
698dcdb6 3244
10f2d63a 3245
698dcdb6 3246 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
7b7a7637 3247echo "configure:3248: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3248 no_cache=0
3249 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3250if test "${enable_apple_ieee+set}" = set; then
3251 enableval="$enable_apple_ieee"
698dcdb6 3252
10f2d63a
VZ
3253 if test "$enableval" = yes; then
3254 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3255 else
3256 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3257 fi
698dcdb6 3258
10f2d63a 3259else
698dcdb6 3260
10f2d63a
VZ
3261 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3262 if test "x$LINE" != x ; then
3263 eval "DEFAULT_$LINE"
3264 else
3265 no_cache=1
3266 fi
3267
3268 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3269
3270fi
10f2d63a
VZ
3271
3272
3273 eval "$ac_cv_use_apple_ieee"
3274 if test "$no_cache" != 1; then
3275 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3276 fi
3277
3278 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3279 echo "$ac_t""yes" 1>&6
10f2d63a 3280 else
698dcdb6 3281 echo "$ac_t""no" 1>&6
10f2d63a 3282 fi
698dcdb6 3283
10f2d63a 3284
1e6feb95 3285 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
7b7a7637 3286echo "configure:3287: checking for --enable-timer" >&5
10f2d63a 3287 no_cache=0
1e6feb95
VZ
3288 # Check whether --enable-timer or --disable-timer was given.
3289if test "${enable_timer+set}" = set; then
3290 enableval="$enable_timer"
698dcdb6 3291
10f2d63a 3292 if test "$enableval" = yes; then
1e6feb95 3293 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3294 else
1e6feb95 3295 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3296 fi
698dcdb6 3297
10f2d63a 3298else
698dcdb6 3299
1e6feb95 3300 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3301 if test "x$LINE" != x ; then
3302 eval "DEFAULT_$LINE"
3303 else
3304 no_cache=1
3305 fi
3306
1e6feb95 3307 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3308
3309fi
10f2d63a
VZ
3310
3311
1e6feb95 3312 eval "$ac_cv_use_timer"
10f2d63a 3313 if test "$no_cache" != 1; then
1e6feb95 3314 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3315 fi
3316
1e6feb95 3317 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3318 echo "$ac_t""yes" 1>&6
10f2d63a 3319 else
698dcdb6 3320 echo "$ac_t""no" 1>&6
10f2d63a 3321 fi
698dcdb6 3322
10f2d63a 3323
698dcdb6 3324 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
7b7a7637 3325echo "configure:3326: checking for --enable-wave" >&5
10f2d63a
VZ
3326 no_cache=0
3327 # Check whether --enable-wave or --disable-wave was given.
3328if test "${enable_wave+set}" = set; then
3329 enableval="$enable_wave"
698dcdb6 3330
10f2d63a
VZ
3331 if test "$enableval" = yes; then
3332 ac_cv_use_wave='wxUSE_WAVE=yes'
3333 else
3334 ac_cv_use_wave='wxUSE_WAVE=no'
3335 fi
698dcdb6 3336
10f2d63a 3337else
698dcdb6 3338
10f2d63a
VZ
3339 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3340 if test "x$LINE" != x ; then
3341 eval "DEFAULT_$LINE"
3342 else
3343 no_cache=1
3344 fi
3345
3346 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3347
3348fi
10f2d63a
VZ
3349
3350
3351 eval "$ac_cv_use_wave"
3352 if test "$no_cache" != 1; then
3353 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3354 fi
3355
3356 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3357 echo "$ac_t""yes" 1>&6
10f2d63a 3358 else
698dcdb6 3359 echo "$ac_t""no" 1>&6
10f2d63a 3360 fi
698dcdb6 3361
10f2d63a 3362
698dcdb6 3363 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
7b7a7637 3364echo "configure:3365: checking for --enable-fraction" >&5
10f2d63a
VZ
3365 no_cache=0
3366 # Check whether --enable-fraction or --disable-fraction was given.
3367if test "${enable_fraction+set}" = set; then
3368 enableval="$enable_fraction"
698dcdb6 3369
10f2d63a
VZ
3370 if test "$enableval" = yes; then
3371 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3372 else
3373 ac_cv_use_fraction='wxUSE_FRACTION=no'
3374 fi
698dcdb6 3375
10f2d63a 3376else
698dcdb6 3377
10f2d63a
VZ
3378 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3379 if test "x$LINE" != x ; then
3380 eval "DEFAULT_$LINE"
3381 else
3382 no_cache=1
3383 fi
3384
3385 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3386
3387fi
10f2d63a
VZ
3388
3389
3390 eval "$ac_cv_use_fraction"
3391 if test "$no_cache" != 1; then
3392 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3393 fi
3394
3395 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3396 echo "$ac_t""yes" 1>&6
10f2d63a 3397 else
698dcdb6 3398 echo "$ac_t""no" 1>&6
10f2d63a 3399 fi
698dcdb6 3400
10f2d63a 3401
698dcdb6 3402 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
7b7a7637 3403echo "configure:3404: checking for --enable-dynlib" >&5
10f2d63a
VZ
3404 no_cache=0
3405 # Check whether --enable-dynlib or --disable-dynlib was given.
3406if test "${enable_dynlib+set}" = set; then
3407 enableval="$enable_dynlib"
698dcdb6 3408
10f2d63a
VZ
3409 if test "$enableval" = yes; then
3410 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3411 else
3412 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3413 fi
698dcdb6 3414
10f2d63a 3415else
698dcdb6 3416
10f2d63a
VZ
3417 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3418 if test "x$LINE" != x ; then
3419 eval "DEFAULT_$LINE"
3420 else
3421 no_cache=1
3422 fi
3423
3424 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3425
3426fi
10f2d63a
VZ
3427
3428
3429 eval "$ac_cv_use_dynlib"
3430 if test "$no_cache" != 1; then
3431 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3432 fi
3433
3434 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3435 echo "$ac_t""yes" 1>&6
10f2d63a 3436 else
698dcdb6 3437 echo "$ac_t""no" 1>&6
10f2d63a 3438 fi
698dcdb6 3439
10f2d63a 3440
698dcdb6 3441 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
7b7a7637 3442echo "configure:3443: checking for --enable-longlong" >&5
10f2d63a
VZ
3443 no_cache=0
3444 # Check whether --enable-longlong or --disable-longlong was given.
3445if test "${enable_longlong+set}" = set; then
3446 enableval="$enable_longlong"
698dcdb6 3447
10f2d63a
VZ
3448 if test "$enableval" = yes; then
3449 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3450 else
3451 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3452 fi
698dcdb6 3453
10f2d63a 3454else
698dcdb6 3455
10f2d63a
VZ
3456 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3457 if test "x$LINE" != x ; then
3458 eval "DEFAULT_$LINE"
3459 else
3460 no_cache=1
3461 fi
3462
3463 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3464
3465fi
10f2d63a
VZ
3466
3467
3468 eval "$ac_cv_use_longlong"
3469 if test "$no_cache" != 1; then
3470 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3471 fi
3472
3473 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3474 echo "$ac_t""yes" 1>&6
10f2d63a 3475 else
698dcdb6 3476 echo "$ac_t""no" 1>&6
10f2d63a 3477 fi
698dcdb6 3478
10f2d63a 3479
698dcdb6 3480 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
7b7a7637 3481echo "configure:3482: checking for --enable-geometry" >&5
e8f65ba6
RR
3482 no_cache=0
3483 # Check whether --enable-geometry or --disable-geometry was given.
3484if test "${enable_geometry+set}" = set; then
3485 enableval="$enable_geometry"
698dcdb6 3486
e8f65ba6
RR
3487 if test "$enableval" = yes; then
3488 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3489 else
3490 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3491 fi
698dcdb6 3492
e8f65ba6 3493else
698dcdb6 3494
e8f65ba6
RR
3495 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3496 if test "x$LINE" != x ; then
3497 eval "DEFAULT_$LINE"
3498 else
3499 no_cache=1
3500 fi
3501
3502 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3503
3504fi
e8f65ba6
RR
3505
3506
3507 eval "$ac_cv_use_geometry"
3508 if test "$no_cache" != 1; then
3509 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3510 fi
3511
3512 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3513 echo "$ac_t""yes" 1>&6
e8f65ba6 3514 else
698dcdb6 3515 echo "$ac_t""no" 1>&6
e8f65ba6 3516 fi
698dcdb6 3517
e8f65ba6 3518
698dcdb6 3519 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
7b7a7637 3520echo "configure:3521: checking for --enable-log" >&5
10f2d63a
VZ
3521 no_cache=0
3522 # Check whether --enable-log or --disable-log was given.
3523if test "${enable_log+set}" = set; then
3524 enableval="$enable_log"
698dcdb6 3525
10f2d63a
VZ
3526 if test "$enableval" = yes; then
3527 ac_cv_use_log='wxUSE_LOG=yes'
3528 else
3529 ac_cv_use_log='wxUSE_LOG=no'
3530 fi
698dcdb6 3531
10f2d63a 3532else
698dcdb6 3533
10f2d63a
VZ
3534 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3535 if test "x$LINE" != x ; then
3536 eval "DEFAULT_$LINE"
3537 else
3538 no_cache=1
3539 fi
3540
3541 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3542
3543fi
10f2d63a
VZ
3544
3545
3546 eval "$ac_cv_use_log"
3547 if test "$no_cache" != 1; then
3548 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3549 fi
3550
3551 if test "$wxUSE_LOG" = yes; then
698dcdb6 3552 echo "$ac_t""yes" 1>&6
10f2d63a 3553 else
698dcdb6 3554 echo "$ac_t""no" 1>&6
10f2d63a 3555 fi
698dcdb6 3556
10f2d63a 3557
698dcdb6 3558 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
7b7a7637 3559echo "configure:3560: checking for --enable-streams" >&5
10f2d63a
VZ
3560 no_cache=0
3561 # Check whether --enable-streams or --disable-streams was given.
3562if test "${enable_streams+set}" = set; then
3563 enableval="$enable_streams"
698dcdb6 3564
10f2d63a
VZ
3565 if test "$enableval" = yes; then
3566 ac_cv_use_streams='wxUSE_STREAMS=yes'
3567 else
3568 ac_cv_use_streams='wxUSE_STREAMS=no'
3569 fi
698dcdb6 3570
10f2d63a 3571else
698dcdb6 3572
10f2d63a
VZ
3573 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3574 if test "x$LINE" != x ; then
3575 eval "DEFAULT_$LINE"
3576 else
3577 no_cache=1
3578 fi
3579
3580 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3581
3582fi
10f2d63a
VZ
3583
3584
3585 eval "$ac_cv_use_streams"
3586 if test "$no_cache" != 1; then
3587 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3588 fi
3589
3590 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3591 echo "$ac_t""yes" 1>&6
10f2d63a 3592 else
698dcdb6 3593 echo "$ac_t""no" 1>&6
10f2d63a 3594 fi
698dcdb6 3595
10f2d63a 3596
698dcdb6 3597 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
7b7a7637 3598echo "configure:3599: checking for --enable-file" >&5
10f2d63a
VZ
3599 no_cache=0
3600 # Check whether --enable-file or --disable-file was given.
3601if test "${enable_file+set}" = set; then
3602 enableval="$enable_file"
698dcdb6 3603
10f2d63a
VZ
3604 if test "$enableval" = yes; then
3605 ac_cv_use_file='wxUSE_FILE=yes'
3606 else
3607 ac_cv_use_file='wxUSE_FILE=no'
3608 fi
698dcdb6 3609
10f2d63a 3610else
698dcdb6 3611
10f2d63a
VZ
3612 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3613 if test "x$LINE" != x ; then
3614 eval "DEFAULT_$LINE"
3615 else
3616 no_cache=1
3617 fi
3618
3619 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3620
3621fi
10f2d63a
VZ
3622
3623
3624 eval "$ac_cv_use_file"
3625 if test "$no_cache" != 1; then
3626 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3627 fi
3628
3629 if test "$wxUSE_FILE" = yes; then
698dcdb6 3630 echo "$ac_t""yes" 1>&6
10f2d63a 3631 else
698dcdb6 3632 echo "$ac_t""no" 1>&6
10f2d63a 3633 fi
698dcdb6 3634
10f2d63a 3635
1e6feb95 3636 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
7b7a7637 3637echo "configure:3638: checking for --enable-ffile" >&5
10f2d63a 3638 no_cache=0
1e6feb95
VZ
3639 # Check whether --enable-ffile or --disable-ffile was given.
3640if test "${enable_ffile+set}" = set; then
3641 enableval="$enable_ffile"
698dcdb6 3642
10f2d63a 3643 if test "$enableval" = yes; then
1e6feb95 3644 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3645 else
1e6feb95 3646 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3647 fi
698dcdb6 3648
10f2d63a 3649else
698dcdb6 3650
1e6feb95 3651 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3652 if test "x$LINE" != x ; then
3653 eval "DEFAULT_$LINE"
3654 else
3655 no_cache=1
3656 fi
3657
1e6feb95 3658 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3659
3660fi
10f2d63a
VZ
3661
3662
1e6feb95 3663 eval "$ac_cv_use_ffile"
10f2d63a 3664 if test "$no_cache" != 1; then
1e6feb95 3665 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3666 fi
3667
1e6feb95 3668 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3669 echo "$ac_t""yes" 1>&6
10f2d63a 3670 else
698dcdb6 3671 echo "$ac_t""no" 1>&6
10f2d63a 3672 fi
698dcdb6 3673
10f2d63a 3674
1e6feb95 3675 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
7b7a7637 3676echo "configure:3677: checking for --enable-textfile" >&5
10f2d63a 3677 no_cache=0
1e6feb95
VZ
3678 # Check whether --enable-textfile or --disable-textfile was given.
3679if test "${enable_textfile+set}" = set; then
3680 enableval="$enable_textfile"
698dcdb6 3681
10f2d63a 3682 if test "$enableval" = yes; then
1e6feb95 3683 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 3684 else
1e6feb95 3685 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 3686 fi
698dcdb6 3687
10f2d63a 3688else
698dcdb6 3689
1e6feb95 3690 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3691 if test "x$LINE" != x ; then
3692 eval "DEFAULT_$LINE"
3693 else
3694 no_cache=1
3695 fi
3696
1e6feb95 3697 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
3698
3699fi
10f2d63a
VZ
3700
3701
1e6feb95 3702 eval "$ac_cv_use_textfile"
10f2d63a 3703 if test "$no_cache" != 1; then
1e6feb95 3704 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3705 fi
3706
1e6feb95 3707 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 3708 echo "$ac_t""yes" 1>&6
10f2d63a 3709 else
698dcdb6 3710 echo "$ac_t""no" 1>&6
10f2d63a 3711 fi
698dcdb6 3712
10f2d63a 3713
1e6feb95 3714 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
7b7a7637 3715echo "configure:3716: checking for --enable-fontmap" >&5
10f2d63a 3716 no_cache=0
1e6feb95
VZ
3717 # Check whether --enable-fontmap or --disable-fontmap was given.
3718if test "${enable_fontmap+set}" = set; then
3719 enableval="$enable_fontmap"
698dcdb6 3720
10f2d63a 3721 if test "$enableval" = yes; then
1e6feb95 3722 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 3723 else
1e6feb95 3724 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 3725 fi
698dcdb6 3726
10f2d63a 3727else
698dcdb6 3728
1e6feb95 3729 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
3730 if test "x$LINE" != x ; then
3731 eval "DEFAULT_$LINE"
3732 else
3733 no_cache=1
3734 fi
3735
1e6feb95 3736 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
3737
3738fi
10f2d63a
VZ
3739
3740
1e6feb95 3741 eval "$ac_cv_use_fontmap"
10f2d63a 3742 if test "$no_cache" != 1; then
1e6feb95 3743 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3744 fi
3745
1e6feb95 3746 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 3747 echo "$ac_t""yes" 1>&6
10f2d63a 3748 else
698dcdb6 3749 echo "$ac_t""no" 1>&6
10f2d63a 3750 fi
698dcdb6 3751
10f2d63a 3752
1e6feb95 3753 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
7b7a7637 3754echo "configure:3755: checking for --enable-unicode" >&5
10f2d63a 3755 no_cache=0
1e6feb95
VZ
3756 # Check whether --enable-unicode or --disable-unicode was given.
3757if test "${enable_unicode+set}" = set; then
3758 enableval="$enable_unicode"
3759
3760 if test "$enableval" = yes; then
3761 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3762 else
3763 ac_cv_use_unicode='wxUSE_UNICODE=no'
3764 fi
3765
3766else
3767
3768 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3769 if test "x$LINE" != x ; then
3770 eval "DEFAULT_$LINE"
3771 else
3772 no_cache=1
3773 fi
3774
3775 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3776
3777fi
3778
3779
3780 eval "$ac_cv_use_unicode"
3781 if test "$no_cache" != 1; then
3782 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3783 fi
3784
3785 if test "$wxUSE_UNICODE" = yes; then
3786 echo "$ac_t""yes" 1>&6
3787 else
3788 echo "$ac_t""no" 1>&6
3789 fi
3790
3791
1e6feb95 3792 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
7b7a7637 3793echo "configure:3794: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
3794 no_cache=0
3795 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3796if test "${enable_wxprintfv+set}" = set; then
3797 enableval="$enable_wxprintfv"
3798
3799 if test "$enableval" = yes; then
10f2d63a
VZ
3800 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3801 else
3802 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3803 fi
698dcdb6 3804
10f2d63a 3805else
698dcdb6 3806
10f2d63a
VZ
3807 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3808 if test "x$LINE" != x ; then
3809 eval "DEFAULT_$LINE"
3810 else
3811 no_cache=1
3812 fi
3813
3814 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
3815
3816fi
10f2d63a
VZ
3817
3818
3819 eval "$ac_cv_use_wxprintfv"
3820 if test "$no_cache" != 1; then
3821 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3822 fi
3823
3824 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 3825 echo "$ac_t""yes" 1>&6
10f2d63a 3826 else
698dcdb6 3827 echo "$ac_t""no" 1>&6
10f2d63a 3828 fi
698dcdb6 3829
10f2d63a 3830
698dcdb6 3831 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
7b7a7637 3832echo "configure:3833: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
3833 no_cache=0
3834 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3835if test "${enable_std_iostreams+set}" = set; then
3836 enableval="$enable_std_iostreams"
698dcdb6 3837
10f2d63a
VZ
3838 if test "$enableval" = yes; then
3839 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3840 else
3841 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3842 fi
698dcdb6 3843
10f2d63a 3844else
698dcdb6 3845
10f2d63a
VZ
3846 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3847 if test "x$LINE" != x ; then
3848 eval "DEFAULT_$LINE"
3849 else
3850 no_cache=1
3851 fi
3852
3853 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
3854
3855fi
10f2d63a
VZ
3856
3857
3858 eval "$ac_cv_use_std_iostreams"
3859 if test "$no_cache" != 1; then
3860 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3861 fi
3862
3863 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 3864 echo "$ac_t""yes" 1>&6
10f2d63a 3865 else
698dcdb6 3866 echo "$ac_t""no" 1>&6
10f2d63a 3867 fi
698dcdb6 3868
10f2d63a 3869
698dcdb6 3870 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
7b7a7637 3871echo "configure:3872: checking for --enable-filesystem" >&5
24528b0c
VS
3872 no_cache=0
3873 # Check whether --enable-filesystem or --disable-filesystem was given.
3874if test "${enable_filesystem+set}" = set; then
3875 enableval="$enable_filesystem"
698dcdb6 3876
24528b0c
VS
3877 if test "$enableval" = yes; then
3878 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3879 else
3880 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3881 fi
698dcdb6 3882
24528b0c 3883else
698dcdb6 3884
24528b0c
VS
3885 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3886 if test "x$LINE" != x ; then
3887 eval "DEFAULT_$LINE"
3888 else
3889 no_cache=1
3890 fi
3891
3892 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
3893
3894fi
24528b0c
VS
3895
3896
3897 eval "$ac_cv_use_filesystem"
3898 if test "$no_cache" != 1; then
3899 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3900 fi
3901
3902 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 3903 echo "$ac_t""yes" 1>&6
24528b0c 3904 else
698dcdb6 3905 echo "$ac_t""no" 1>&6
24528b0c 3906 fi
698dcdb6 3907
24528b0c 3908
698dcdb6 3909 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
7b7a7637 3910echo "configure:3911: checking for --enable-fs_inet" >&5
10f2d63a
VZ
3911 no_cache=0
3912 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3913if test "${enable_fs_inet+set}" = set; then
3914 enableval="$enable_fs_inet"
698dcdb6 3915
10f2d63a
VZ
3916 if test "$enableval" = yes; then
3917 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3918 else
3919 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3920 fi
698dcdb6 3921
10f2d63a 3922else
698dcdb6 3923
10f2d63a
VZ
3924 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3925 if test "x$LINE" != x ; then
3926 eval "DEFAULT_$LINE"
3927 else
3928 no_cache=1
3929 fi
3930
3931 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
3932
3933fi
10f2d63a
VZ
3934
3935
3936 eval "$ac_cv_use_fs_inet"
3937 if test "$no_cache" != 1; then
3938 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3939 fi
3940
3941 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 3942 echo "$ac_t""yes" 1>&6
10f2d63a 3943 else
698dcdb6 3944 echo "$ac_t""no" 1>&6
10f2d63a 3945 fi
698dcdb6 3946
10f2d63a 3947
698dcdb6 3948 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
7b7a7637 3949echo "configure:3950: checking for --enable-fs_zip" >&5
10f2d63a
VZ
3950 no_cache=0
3951 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3952if test "${enable_fs_zip+set}" = set; then
3953 enableval="$enable_fs_zip"
698dcdb6 3954
10f2d63a
VZ
3955 if test "$enableval" = yes; then
3956 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3957 else
3958 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3959 fi
698dcdb6 3960
10f2d63a 3961else
698dcdb6 3962
10f2d63a
VZ
3963 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3964 if test "x$LINE" != x ; then
3965 eval "DEFAULT_$LINE"
3966 else
3967 no_cache=1
3968 fi
3969
3970 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
3971
3972fi
10f2d63a
VZ
3973
3974
3975 eval "$ac_cv_use_fs_zip"
3976 if test "$no_cache" != 1; then
3977 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3978 fi
3979
3980 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 3981 echo "$ac_t""yes" 1>&6
10f2d63a 3982 else
698dcdb6 3983 echo "$ac_t""no" 1>&6
10f2d63a 3984 fi
698dcdb6 3985
10f2d63a 3986
698dcdb6 3987 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
7b7a7637 3988echo "configure:3989: checking for --enable-zipstream" >&5
10f2d63a
VZ
3989 no_cache=0
3990 # Check whether --enable-zipstream or --disable-zipstream was given.
3991if test "${enable_zipstream+set}" = set; then
3992 enableval="$enable_zipstream"
698dcdb6 3993
10f2d63a
VZ
3994 if test "$enableval" = yes; then
3995 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3996 else
3997 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3998 fi
698dcdb6 3999
10f2d63a 4000else
698dcdb6 4001
10f2d63a
VZ
4002 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4003 if test "x$LINE" != x ; then
4004 eval "DEFAULT_$LINE"
4005 else
4006 no_cache=1
4007 fi
4008
4009 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4010
4011fi
10f2d63a
VZ
4012
4013
4014 eval "$ac_cv_use_zipstream"
4015 if test "$no_cache" != 1; then
4016 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4017 fi
4018
4019 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4020 echo "$ac_t""yes" 1>&6
10f2d63a 4021 else
698dcdb6 4022 echo "$ac_t""no" 1>&6
10f2d63a 4023 fi
698dcdb6 4024
10f2d63a 4025
698dcdb6
VZ
4026
4027 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
7b7a7637 4028echo "configure:4029: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4029 no_cache=0
4030 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4031if test "${enable_catch_segvs+set}" = set; then
4032 enableval="$enable_catch_segvs"
698dcdb6 4033
eb4efbdc
VZ
4034 if test "$enableval" = yes; then
4035 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4036 else
4037 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4038 fi
698dcdb6 4039
eb4efbdc 4040else
698dcdb6 4041
eb4efbdc
VZ
4042 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4043 if test "x$LINE" != x ; then
4044 eval "DEFAULT_$LINE"
4045 else
4046 no_cache=1
4047 fi
4048
4049 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4050
4051fi
eb4efbdc
VZ
4052
4053
4054 eval "$ac_cv_use_catch_segvs"
4055 if test "$no_cache" != 1; then
4056 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4057 fi
4058
4059 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4060 echo "$ac_t""yes" 1>&6
eb4efbdc 4061 else
698dcdb6 4062 echo "$ac_t""no" 1>&6
eb4efbdc 4063 fi
698dcdb6 4064
eb4efbdc 4065
698dcdb6 4066 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
7b7a7637 4067echo "configure:4068: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4068 no_cache=0
4069 # Check whether --enable-snglinst or --disable-snglinst was given.
4070if test "${enable_snglinst+set}" = set; then
4071 enableval="$enable_snglinst"
698dcdb6 4072
4f3c5f06
VZ
4073 if test "$enableval" = yes; then
4074 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4075 else
4076 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4077 fi
698dcdb6 4078
4f3c5f06 4079else
698dcdb6 4080
4f3c5f06
VZ
4081 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4082 if test "x$LINE" != x ; then
4083 eval "DEFAULT_$LINE"
4084 else
4085 no_cache=1
4086 fi
4087
4088 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4089
4090fi
4f3c5f06
VZ
4091
4092
4093 eval "$ac_cv_use_snglinst"
4094 if test "$no_cache" != 1; then
4095 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4096 fi
4097
4098 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4099 echo "$ac_t""yes" 1>&6
4f3c5f06 4100 else
698dcdb6 4101 echo "$ac_t""no" 1>&6
4f3c5f06 4102 fi
698dcdb6
VZ
4103
4104
eb4efbdc 4105
1e6feb95 4106 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
7b7a7637 4107echo "configure:4108: checking for --enable-mimetype" >&5
1e6feb95
VZ
4108 no_cache=0
4109 # Check whether --enable-mimetype or --disable-mimetype was given.
4110if test "${enable_mimetype+set}" = set; then
4111 enableval="$enable_mimetype"
4112
4113 if test "$enableval" = yes; then
4114 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4115 else
4116 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4117 fi
4118
4119else
4120
4121 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4122 if test "x$LINE" != x ; then
4123 eval "DEFAULT_$LINE"
4124 else
4125 no_cache=1
4126 fi
4127
4128 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4129
4130fi
4131
4132
4133 eval "$ac_cv_use_mimetype"
4134 if test "$no_cache" != 1; then
4135 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4136 fi
4137
4138 if test "$wxUSE_MIMETYPE" = yes; then
4139 echo "$ac_t""yes" 1>&6
4140 else
4141 echo "$ac_t""no" 1>&6
4142 fi
4143
4144
3e44f09d 4145 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
7b7a7637 4146echo "configure:4147: checking for --enable-system_options" >&5
3e44f09d
VZ
4147 no_cache=0
4148 # Check whether --enable-system_options or --disable-system_options was given.
4149if test "${enable_system_options+set}" = set; then
4150 enableval="$enable_system_options"
4151
4152 if test "$enableval" = yes; then
4153 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4154 else
4155 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4156 fi
4157
4158else
4159
4160 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4161 if test "x$LINE" != x ; then
4162 eval "DEFAULT_$LINE"
4163 else
4164 no_cache=1
4165 fi
4166
4167 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4168
4169fi
4170
4171
4172 eval "$ac_cv_use_system_options"
4173 if test "$no_cache" != 1; then
4174 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4175 fi
4176
4177 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4178 echo "$ac_t""yes" 1>&6
4179 else
4180 echo "$ac_t""no" 1>&6
4181 fi
4182
4183
1e6feb95 4184
698dcdb6
VZ
4185
4186 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
7b7a7637 4187echo "configure:4188: checking for --enable-threads" >&5
10f2d63a
VZ
4188 no_cache=0
4189 # Check whether --enable-threads or --disable-threads was given.
4190if test "${enable_threads+set}" = set; then
4191 enableval="$enable_threads"
698dcdb6 4192
10f2d63a
VZ
4193 if test "$enableval" = yes; then
4194 ac_cv_use_threads='wxUSE_THREADS=yes'
4195 else
4196 ac_cv_use_threads='wxUSE_THREADS=no'
4197 fi
698dcdb6 4198
10f2d63a 4199else
698dcdb6 4200
10f2d63a
VZ
4201 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4202 if test "x$LINE" != x ; then
4203 eval "DEFAULT_$LINE"
4204 else
4205 no_cache=1
4206 fi
4207
4208 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4209
4210fi
10f2d63a
VZ
4211
4212
4213 eval "$ac_cv_use_threads"
4214 if test "$no_cache" != 1; then
4215 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4216 fi
4217
4218 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4219 echo "$ac_t""yes" 1>&6
10f2d63a 4220 else
698dcdb6 4221 echo "$ac_t""no" 1>&6
10f2d63a 4222 fi
698dcdb6 4223
10f2d63a 4224
698dcdb6 4225 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
7b7a7637 4226echo "configure:4227: checking for --enable-serial" >&5
10f2d63a
VZ
4227 no_cache=0
4228 # Check whether --enable-serial or --disable-serial was given.
4229if test "${enable_serial+set}" = set; then
4230 enableval="$enable_serial"
698dcdb6 4231
10f2d63a
VZ
4232 if test "$enableval" = yes; then
4233 ac_cv_use_serial='wxUSE_SERIAL=yes'
4234 else
4235 ac_cv_use_serial='wxUSE_SERIAL=no'
4236 fi
698dcdb6 4237
10f2d63a 4238else
698dcdb6 4239
10f2d63a
VZ
4240 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4241 if test "x$LINE" != x ; then
4242 eval "DEFAULT_$LINE"
4243 else
4244 no_cache=1
4245 fi
4246
4247 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
698dcdb6
VZ
4248
4249fi
10f2d63a
VZ
4250
4251
4252 eval "$ac_cv_use_serial"
4253 if test "$no_cache" != 1; then
4254 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4255 fi
4256
4257 if test "$wxUSE_SERIAL" = yes; then
698dcdb6 4258 echo "$ac_t""yes" 1>&6
10f2d63a 4259 else
698dcdb6 4260 echo "$ac_t""no" 1>&6
10f2d63a 4261 fi
698dcdb6 4262
10f2d63a 4263
b12915c1
VZ
4264if test "$wxUSE_GUI" = "yes"; then
4265
698dcdb6
VZ
4266
4267
4268 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
7b7a7637 4269echo "configure:4270: checking for --enable-docview" >&5
10f2d63a
VZ
4270 no_cache=0
4271 # Check whether --enable-docview or --disable-docview was given.
4272if test "${enable_docview+set}" = set; then
4273 enableval="$enable_docview"
698dcdb6 4274
10f2d63a
VZ
4275 if test "$enableval" = yes; then
4276 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4277 else
4278 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4279 fi
698dcdb6 4280
10f2d63a 4281else
698dcdb6 4282
10f2d63a
VZ
4283 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4284 if test "x$LINE" != x ; then
4285 eval "DEFAULT_$LINE"
4286 else
4287 no_cache=1
4288 fi
4289
4290 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4291
4292fi
10f2d63a
VZ
4293
4294
4295 eval "$ac_cv_use_docview"
4296 if test "$no_cache" != 1; then
4297 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4298 fi
4299
4300 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4301 echo "$ac_t""yes" 1>&6
10f2d63a 4302 else
698dcdb6 4303 echo "$ac_t""no" 1>&6
10f2d63a 4304 fi
698dcdb6 4305
10f2d63a 4306
698dcdb6 4307 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
7b7a7637 4308echo "configure:4309: checking for --enable-help" >&5
10f2d63a
VZ
4309 no_cache=0
4310 # Check whether --enable-help or --disable-help was given.
4311if test "${enable_help+set}" = set; then
4312 enableval="$enable_help"
698dcdb6 4313
10f2d63a
VZ
4314 if test "$enableval" = yes; then
4315 ac_cv_use_help='wxUSE_HELP=yes'
4316 else
4317 ac_cv_use_help='wxUSE_HELP=no'
4318 fi
698dcdb6 4319
10f2d63a 4320else
698dcdb6 4321
10f2d63a
VZ
4322 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4323 if test "x$LINE" != x ; then
4324 eval "DEFAULT_$LINE"
4325 else
4326 no_cache=1
4327 fi
4328
4329 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4330
4331fi
10f2d63a
VZ
4332
4333
4334 eval "$ac_cv_use_help"
4335 if test "$no_cache" != 1; then
4336 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4337 fi
4338
4339 if test "$wxUSE_HELP" = yes; then
698dcdb6 4340 echo "$ac_t""yes" 1>&6
10f2d63a 4341 else
698dcdb6 4342 echo "$ac_t""no" 1>&6
10f2d63a 4343 fi
698dcdb6 4344
10f2d63a 4345
29fd3c0c 4346 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
7b7a7637 4347echo "configure:4348: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4348 no_cache=0
4349 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4350if test "${enable_mshtmlhelp+set}" = set; then
4351 enableval="$enable_mshtmlhelp"
4352
4353 if test "$enableval" = yes; then
4354 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4355 else
4356 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4357 fi
4358
4359else
4360
4361 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4362 if test "x$LINE" != x ; then
4363 eval "DEFAULT_$LINE"
4364 else
4365 no_cache=1
4366 fi
4367
4368 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4369
4370fi
4371
4372
4373 eval "$ac_cv_use_mshtmlhelp"
4374 if test "$no_cache" != 1; then
4375 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4376 fi
4377
4378 if test "$wxUSE_MS_HTML_HELP" = yes; then
4379 echo "$ac_t""yes" 1>&6
4380 else
4381 echo "$ac_t""no" 1>&6
4382 fi
4383
4384
3379ed37 4385 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
7b7a7637 4386echo "configure:4387: checking for --enable-html" >&5
3379ed37
VZ
4387 no_cache=0
4388 # Check whether --enable-html or --disable-html was given.
4389if test "${enable_html+set}" = set; then
4390 enableval="$enable_html"
4391
4392 if test "$enableval" = yes; then
4393 ac_cv_use_html='wxUSE_HTML=yes'
4394 else
4395 ac_cv_use_html='wxUSE_HTML=no'
4396 fi
4397
4398else
4399
4400 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4401 if test "x$LINE" != x ; then
4402 eval "DEFAULT_$LINE"
4403 else
4404 no_cache=1
4405 fi
4406
4407 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4408
4409fi
4410
4411
4412 eval "$ac_cv_use_html"
4413 if test "$no_cache" != 1; then
4414 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4415 fi
4416
4417 if test "$wxUSE_HTML" = yes; then
4418 echo "$ac_t""yes" 1>&6
4419 else
4420 echo "$ac_t""no" 1>&6
4421 fi
4422
4423
4424 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
7b7a7637 4425echo "configure:4426: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4426 no_cache=0
4427 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4428if test "${enable_htmlhelp+set}" = set; then
4429 enableval="$enable_htmlhelp"
4430
4431 if test "$enableval" = yes; then
4432 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4433 else
4434 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4435 fi
4436
4437else
4438
4439 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4440 if test "x$LINE" != x ; then
4441 eval "DEFAULT_$LINE"
4442 else
4443 no_cache=1
4444 fi
4445
4446 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4447
4448fi
4449
4450
4451 eval "$ac_cv_use_htmlhelp"
4452 if test "$no_cache" != 1; then
4453 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4454 fi
4455
4456 if test "$wxUSE_WXHTML_HELP" = yes; then
4457 echo "$ac_t""yes" 1>&6
4458 else
4459 echo "$ac_t""no" 1>&6
4460 fi
4461
4462
698dcdb6 4463 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
7b7a7637 4464echo "configure:4465: checking for --enable-constraints" >&5
10f2d63a
VZ
4465 no_cache=0
4466 # Check whether --enable-constraints or --disable-constraints was given.
4467if test "${enable_constraints+set}" = set; then
4468 enableval="$enable_constraints"
698dcdb6 4469
10f2d63a
VZ
4470 if test "$enableval" = yes; then
4471 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4472 else
4473 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4474 fi
698dcdb6 4475
10f2d63a 4476else
698dcdb6 4477
10f2d63a
VZ
4478 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4479 if test "x$LINE" != x ; then
4480 eval "DEFAULT_$LINE"
4481 else
4482 no_cache=1
4483 fi
4484
4485 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
4486
4487fi
10f2d63a
VZ
4488
4489
4490 eval "$ac_cv_use_constraints"
4491 if test "$no_cache" != 1; then
4492 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4493 fi
4494
4495 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 4496 echo "$ac_t""yes" 1>&6
10f2d63a 4497 else
698dcdb6 4498 echo "$ac_t""no" 1>&6
10f2d63a 4499 fi
698dcdb6 4500
10f2d63a 4501
698dcdb6 4502 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
7b7a7637 4503echo "configure:4504: checking for --enable-printarch" >&5
10f2d63a
VZ
4504 no_cache=0
4505 # Check whether --enable-printarch or --disable-printarch was given.
4506if test "${enable_printarch+set}" = set; then
4507 enableval="$enable_printarch"
698dcdb6 4508
10f2d63a
VZ
4509 if test "$enableval" = yes; then
4510 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4511 else
4512 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4513 fi
698dcdb6 4514
10f2d63a 4515else
698dcdb6 4516
10f2d63a
VZ
4517 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4518 if test "x$LINE" != x ; then
4519 eval "DEFAULT_$LINE"
4520 else
4521 no_cache=1
4522 fi
4523
4524 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
4525
4526fi
10f2d63a
VZ
4527
4528
4529 eval "$ac_cv_use_printarch"
4530 if test "$no_cache" != 1; then
4531 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4532 fi
4533
4534 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 4535 echo "$ac_t""yes" 1>&6
10f2d63a 4536 else
698dcdb6 4537 echo "$ac_t""no" 1>&6
10f2d63a 4538 fi
698dcdb6 4539
10f2d63a 4540
698dcdb6 4541 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
7b7a7637 4542echo "configure:4543: checking for --enable-mdi" >&5
10f2d63a
VZ
4543 no_cache=0
4544 # Check whether --enable-mdi or --disable-mdi was given.
4545if test "${enable_mdi+set}" = set; then
4546 enableval="$enable_mdi"
698dcdb6 4547
10f2d63a
VZ
4548 if test "$enableval" = yes; then
4549 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4550 else
4551 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4552 fi
698dcdb6 4553
10f2d63a 4554else
698dcdb6 4555
10f2d63a
VZ
4556 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4557 if test "x$LINE" != x ; then
4558 eval "DEFAULT_$LINE"
4559 else
4560 no_cache=1
4561 fi
4562
4563 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
4564
4565fi
10f2d63a
VZ
4566
4567
4568 eval "$ac_cv_use_mdi"
4569 if test "$no_cache" != 1; then
4570 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4571 fi
4572
4573 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 4574 echo "$ac_t""yes" 1>&6
10f2d63a 4575 else
698dcdb6 4576 echo "$ac_t""no" 1>&6
10f2d63a 4577 fi
698dcdb6
VZ
4578
4579
1e6feb95 4580 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
7b7a7637 4581echo "configure:4582: checking for --enable-loggui" >&5
1e6feb95
VZ
4582 no_cache=0
4583 # Check whether --enable-loggui or --disable-loggui was given.
4584if test "${enable_loggui+set}" = set; then
4585 enableval="$enable_loggui"
4586
4587 if test "$enableval" = yes; then
4588 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4589 else
4590 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4591 fi
4592
4593else
4594
4595 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4596 if test "x$LINE" != x ; then
4597 eval "DEFAULT_$LINE"
4598 else
4599 no_cache=1
4600 fi
4601
4602 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4603
4604fi
4605
4606
4607 eval "$ac_cv_use_loggui"
4608 if test "$no_cache" != 1; then
4609 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4610 fi
4611
4612 if test "$wxUSE_LOGGUI" = yes; then
4613 echo "$ac_t""yes" 1>&6
4614 else
4615 echo "$ac_t""no" 1>&6
4616 fi
4617
4618
4619 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
7b7a7637 4620echo "configure:4621: checking for --enable-logwin" >&5
1e6feb95
VZ
4621 no_cache=0
4622 # Check whether --enable-logwin or --disable-logwin was given.
4623if test "${enable_logwin+set}" = set; then
4624 enableval="$enable_logwin"
4625
4626 if test "$enableval" = yes; then
4627 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4628 else
4629 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4630 fi
4631
4632else
4633
4634 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4635 if test "x$LINE" != x ; then
4636 eval "DEFAULT_$LINE"
4637 else
4638 no_cache=1
4639 fi
4640
4641 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4642
4643fi
4644
4645
4646 eval "$ac_cv_use_logwin"
4647 if test "$no_cache" != 1; then
4648 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4649 fi
4650
4651 if test "$wxUSE_LOGWINDOW" = yes; then
4652 echo "$ac_t""yes" 1>&6
4653 else
4654 echo "$ac_t""no" 1>&6
4655 fi
4656
4657
10f2d63a 4658
698dcdb6 4659 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
7b7a7637 4660echo "configure:4661: checking for --enable-postscript" >&5
10f2d63a
VZ
4661 no_cache=0
4662 # Check whether --enable-postscript or --disable-postscript was given.
4663if test "${enable_postscript+set}" = set; then
4664 enableval="$enable_postscript"
698dcdb6 4665
10f2d63a
VZ
4666 if test "$enableval" = yes; then
4667 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4668 else
4669 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4670 fi
698dcdb6 4671
10f2d63a 4672else
698dcdb6 4673
10f2d63a
VZ
4674 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4675 if test "x$LINE" != x ; then
4676 eval "DEFAULT_$LINE"
4677 else
4678 no_cache=1
4679 fi
4680
4681 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
4682
4683fi
10f2d63a
VZ
4684
4685
4686 eval "$ac_cv_use_postscript"
4687 if test "$no_cache" != 1; then
4688 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4689 fi
4690
4691 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 4692 echo "$ac_t""yes" 1>&6
10f2d63a 4693 else
698dcdb6 4694 echo "$ac_t""no" 1>&6
10f2d63a 4695 fi
698dcdb6
VZ
4696
4697
4698
10f2d63a 4699
1e6feb95 4700
698dcdb6 4701 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
7b7a7637 4702echo "configure:4703: checking for --enable-prologio" >&5
10f2d63a
VZ
4703 no_cache=0
4704 # Check whether --enable-prologio or --disable-prologio was given.
4705if test "${enable_prologio+set}" = set; then
4706 enableval="$enable_prologio"
698dcdb6 4707
10f2d63a
VZ
4708 if test "$enableval" = yes; then
4709 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4710 else
4711 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4712 fi
698dcdb6 4713
10f2d63a 4714else
698dcdb6 4715
10f2d63a
VZ
4716 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4717 if test "x$LINE" != x ; then
4718 eval "DEFAULT_$LINE"
4719 else
4720 no_cache=1
4721 fi
4722
4723 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
4724
4725fi
10f2d63a
VZ
4726
4727
4728 eval "$ac_cv_use_prologio"
4729 if test "$no_cache" != 1; then
4730 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4731 fi
4732
4733 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 4734 echo "$ac_t""yes" 1>&6
10f2d63a 4735 else
698dcdb6 4736 echo "$ac_t""no" 1>&6
10f2d63a 4737 fi
698dcdb6 4738
10f2d63a 4739
698dcdb6 4740 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
7b7a7637 4741echo "configure:4742: checking for --enable-resources" >&5
10f2d63a
VZ
4742 no_cache=0
4743 # Check whether --enable-resources or --disable-resources was given.
4744if test "${enable_resources+set}" = set; then
4745 enableval="$enable_resources"
698dcdb6 4746
10f2d63a
VZ
4747 if test "$enableval" = yes; then
4748 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4749 else
4750 ac_cv_use_resources='wxUSE_RESOURCES=no'
4751 fi
698dcdb6 4752
10f2d63a 4753else
698dcdb6 4754
10f2d63a
VZ
4755 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4756 if test "x$LINE" != x ; then
4757 eval "DEFAULT_$LINE"
4758 else
4759 no_cache=1
4760 fi
4761
4762 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
4763
4764fi
10f2d63a
VZ
4765
4766
4767 eval "$ac_cv_use_resources"
4768 if test "$no_cache" != 1; then
4769 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4770 fi
4771
4772 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 4773 echo "$ac_t""yes" 1>&6
10f2d63a 4774 else
698dcdb6 4775 echo "$ac_t""no" 1>&6
10f2d63a 4776 fi
698dcdb6 4777
10f2d63a 4778
698dcdb6
VZ
4779
4780 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
7b7a7637 4781echo "configure:4782: checking for --enable-xresources" >&5
10f2d63a
VZ
4782 no_cache=0
4783 # Check whether --enable-xresources or --disable-xresources was given.
4784if test "${enable_xresources+set}" = set; then
4785 enableval="$enable_xresources"
698dcdb6 4786
10f2d63a
VZ
4787 if test "$enableval" = yes; then
4788 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4789 else
4790 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4791 fi
698dcdb6 4792
10f2d63a 4793else
698dcdb6 4794
10f2d63a
VZ
4795 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4796 if test "x$LINE" != x ; then
4797 eval "DEFAULT_$LINE"
4798 else
4799 no_cache=1
4800 fi
4801
4802 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
4803
4804fi
10f2d63a
VZ
4805
4806
4807 eval "$ac_cv_use_xresources"
4808 if test "$no_cache" != 1; then
4809 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4810 fi
4811
4812 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 4813 echo "$ac_t""yes" 1>&6
10f2d63a 4814 else
698dcdb6 4815 echo "$ac_t""no" 1>&6
10f2d63a 4816 fi
698dcdb6
VZ
4817
4818
10f2d63a 4819
698dcdb6
VZ
4820
4821 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
7b7a7637 4822echo "configure:4823: checking for --enable-clipboard" >&5
10f2d63a
VZ
4823 no_cache=0
4824 # Check whether --enable-clipboard or --disable-clipboard was given.
4825if test "${enable_clipboard+set}" = set; then
4826 enableval="$enable_clipboard"
698dcdb6 4827
10f2d63a
VZ
4828 if test "$enableval" = yes; then
4829 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4830 else
4831 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4832 fi
698dcdb6 4833
10f2d63a 4834else
698dcdb6 4835
10f2d63a
VZ
4836 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4837 if test "x$LINE" != x ; then
4838 eval "DEFAULT_$LINE"
4839 else
4840 no_cache=1
4841 fi
4842
4843 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
4844
4845fi
10f2d63a
VZ
4846
4847
4848 eval "$ac_cv_use_clipboard"
4849 if test "$no_cache" != 1; then
4850 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4851 fi
4852
4853 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 4854 echo "$ac_t""yes" 1>&6
10f2d63a 4855 else
698dcdb6 4856 echo "$ac_t""no" 1>&6
10f2d63a 4857 fi
698dcdb6 4858
10f2d63a 4859
698dcdb6 4860 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
7b7a7637 4861echo "configure:4862: checking for --enable-dnd" >&5
10f2d63a
VZ
4862 no_cache=0
4863 # Check whether --enable-dnd or --disable-dnd was given.
4864if test "${enable_dnd+set}" = set; then
4865 enableval="$enable_dnd"
698dcdb6 4866
10f2d63a
VZ
4867 if test "$enableval" = yes; then
4868 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4869 else
4870 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4871 fi
698dcdb6 4872
10f2d63a 4873else
698dcdb6 4874
10f2d63a
VZ
4875 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4876 if test "x$LINE" != x ; then
4877 eval "DEFAULT_$LINE"
4878 else
4879 no_cache=1
4880 fi
4881
4882 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
4883
4884fi
10f2d63a
VZ
4885
4886
4887 eval "$ac_cv_use_dnd"
4888 if test "$no_cache" != 1; then
4889 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4890 fi
4891
4892 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 4893 echo "$ac_t""yes" 1>&6
10f2d63a 4894 else
698dcdb6 4895 echo "$ac_t""no" 1>&6
10f2d63a 4896 fi
698dcdb6 4897
10f2d63a 4898
698dcdb6 4899 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
7b7a7637 4900echo "configure:4901: checking for --enable-metafile" >&5
b64f0a5f
RL
4901 no_cache=0
4902 # Check whether --enable-metafile or --disable-metafile was given.
4903if test "${enable_metafile+set}" = set; then
4904 enableval="$enable_metafile"
698dcdb6 4905
b64f0a5f
RL
4906 if test "$enableval" = yes; then
4907 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4908 else
4909 ac_cv_use_metafile='wxUSE_METAFILE=no'
4910 fi
698dcdb6 4911
b64f0a5f 4912else
698dcdb6 4913
b64f0a5f
RL
4914 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4915 if test "x$LINE" != x ; then
4916 eval "DEFAULT_$LINE"
4917 else
4918 no_cache=1
4919 fi
4920
4921 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
4922
4923fi
b64f0a5f
RL
4924
4925
4926 eval "$ac_cv_use_metafile"
4927 if test "$no_cache" != 1; then
4928 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4929 fi
4930
4931 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 4932 echo "$ac_t""yes" 1>&6
b64f0a5f 4933 else
698dcdb6 4934 echo "$ac_t""no" 1>&6
b64f0a5f 4935 fi
698dcdb6
VZ
4936
4937
10f2d63a 4938
24176f2c 4939 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
7b7a7637 4940echo "configure:4941: checking for --enable-treelayout" >&5
10f2d63a 4941 no_cache=0
24176f2c
GD
4942 # Check whether --enable-treelayout or --disable-treelayout was given.
4943if test "${enable_treelayout+set}" = set; then
4944 enableval="$enable_treelayout"
698dcdb6 4945
10f2d63a 4946 if test "$enableval" = yes; then
24176f2c 4947 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 4948 else
24176f2c 4949 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 4950 fi
698dcdb6 4951
10f2d63a 4952else
698dcdb6 4953
24176f2c 4954 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
4955 if test "x$LINE" != x ; then
4956 eval "DEFAULT_$LINE"
4957 else
4958 no_cache=1
4959 fi
4960
24176f2c 4961 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
4962
4963fi
10f2d63a
VZ
4964
4965
24176f2c 4966 eval "$ac_cv_use_treelayout"
10f2d63a 4967 if test "$no_cache" != 1; then
24176f2c 4968 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4969 fi
4970
24176f2c 4971 if test "$wxUSE_TREELAYOUT" = yes; then
698dcdb6 4972 echo "$ac_t""yes" 1>&6
10f2d63a 4973 else
698dcdb6 4974 echo "$ac_t""no" 1>&6
10f2d63a 4975 fi
698dcdb6 4976
10f2d63a 4977
698dcdb6
VZ
4978
4979
4980 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
7b7a7637 4981echo "configure:4982: checking for --enable-controls" >&5
10f2d63a
VZ
4982 no_cache=0
4983 # Check whether --enable-controls or --disable-controls was given.
4984if test "${enable_controls+set}" = set; then
4985 enableval="$enable_controls"
698dcdb6 4986
10f2d63a
VZ
4987 if test "$enableval" = yes; then
4988 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4989 else
4990 ac_cv_use_controls='wxUSE_CONTROLS=no'
4991 fi
698dcdb6 4992
10f2d63a 4993else
698dcdb6 4994
10f2d63a
VZ
4995 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4996 if test "x$LINE" != x ; then
4997 eval "DEFAULT_$LINE"
4998 else
4999 no_cache=1
5000 fi
5001
5002 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5003
5004fi
10f2d63a
VZ
5005
5006
5007 eval "$ac_cv_use_controls"
5008 if test "$no_cache" != 1; then
5009 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5010 fi
5011
5012 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5013 echo "$ac_t""yes" 1>&6
10f2d63a 5014 else
698dcdb6 5015 echo "$ac_t""no" 1>&6
10f2d63a 5016 fi
698dcdb6 5017
10f2d63a
VZ
5018
5019if test "$wxUSE_CONTROLS" = "yes"; then
5020 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5021 DEFAULT_wxUSE_BMPBUTTON=yes
5022 DEFAULT_wxUSE_BUTTON=yes
5023 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5024 DEFAULT_wxUSE_CARET=yes
5025 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5026 DEFAULT_wxUSE_CHECKBOX=yes
5027 DEFAULT_wxUSE_CHECKLISTBOX=yes
5028 DEFAULT_wxUSE_CHOICE=yes
5029 DEFAULT_wxUSE_GAUGE=yes
5030 DEFAULT_wxUSE_GRID=yes
cc977e5f 5031 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5032 DEFAULT_wxUSE_IMAGLIST=yes
5033 DEFAULT_wxUSE_LISTBOX=yes
5034 DEFAULT_wxUSE_LISTCTRL=yes
5035 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5036 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5037 DEFAULT_wxUSE_RADIOBOX=yes
5038 DEFAULT_wxUSE_RADIOBTN=yes
5039 DEFAULT_wxUSE_SASH=yes
5040 DEFAULT_wxUSE_SCROLLBAR=yes
5041 DEFAULT_wxUSE_SLIDER=yes
5042 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5043 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5044 DEFAULT_wxUSE_SPLITTER=yes
5045 DEFAULT_wxUSE_STATBMP=yes
5046 DEFAULT_wxUSE_STATBOX=yes
5047 DEFAULT_wxUSE_STATLINE=yes
5048 DEFAULT_wxUSE_STATUSBAR=yes
5049 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5050 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5051 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5052 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5053 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5054 DEFAULT_wxUSE_TOOLTIPS=yes
5055 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5056 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
5057elif test "$wxUSE_CONTROLS" = "no"; then
5058 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5059 DEFAULT_wxUSE_BMPBUTTON=no
5060 DEFAULT_wxUSE_BUTTON=no
5061 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5062 DEFAULT_wxUSE_CARET=no
5063 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5064 DEFAULT_wxUSE_CHECKBOX=no
5065 DEFAULT_wxUSE_CHECKLISTBOX=no
5066 DEFAULT_wxUSE_CHOICE=no
5067 DEFAULT_wxUSE_GAUGE=no
5068 DEFAULT_wxUSE_GRID=no
5069 DEFAULT_wxUSE_NEW_GRID=no
5070 DEFAULT_wxUSE_IMAGLIST=no
5071 DEFAULT_wxUSE_LISTBOX=no
5072 DEFAULT_wxUSE_LISTCTRL=no
5073 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5074 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5075 DEFAULT_wxUSE_RADIOBOX=no
5076 DEFAULT_wxUSE_RADIOBTN=no
5077 DEFAULT_wxUSE_SASH=no
5078 DEFAULT_wxUSE_SCROLLBAR=no
5079 DEFAULT_wxUSE_SLIDER=no
5080 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5081 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5082 DEFAULT_wxUSE_SPLITTER=no
5083 DEFAULT_wxUSE_STATBMP=no
5084 DEFAULT_wxUSE_STATBOX=no
5085 DEFAULT_wxUSE_STATLINE=no
5086 DEFAULT_wxUSE_STATUSBAR=no
5087 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5088 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5089 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5090 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5091 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5092 DEFAULT_wxUSE_TOOLTIPS=no
5093 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5094 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
5095fi
5096
698dcdb6
VZ
5097
5098 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
7b7a7637 5099echo "configure:5100: checking for --enable-accel" >&5
10f2d63a
VZ
5100 no_cache=0
5101 # Check whether --enable-accel or --disable-accel was given.
5102if test "${enable_accel+set}" = set; then
5103 enableval="$enable_accel"
698dcdb6 5104
10f2d63a
VZ
5105 if test "$enableval" = yes; then
5106 ac_cv_use_accel='wxUSE_ACCEL=yes'
5107 else
5108 ac_cv_use_accel='wxUSE_ACCEL=no'
5109 fi
698dcdb6 5110
10f2d63a 5111else
698dcdb6 5112
10f2d63a
VZ
5113 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5114 if test "x$LINE" != x ; then
5115 eval "DEFAULT_$LINE"
5116 else
5117 no_cache=1
5118 fi
5119
5120 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5121
5122fi
10f2d63a
VZ
5123
5124
5125 eval "$ac_cv_use_accel"
5126 if test "$no_cache" != 1; then
5127 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5128 fi
5129
5130 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5131 echo "$ac_t""yes" 1>&6
10f2d63a 5132 else
698dcdb6 5133 echo "$ac_t""no" 1>&6
10f2d63a 5134 fi
698dcdb6 5135
10f2d63a 5136
1e6feb95 5137 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
7b7a7637 5138echo "configure:5139: checking for --enable-button" >&5
10f2d63a 5139 no_cache=0
1e6feb95
VZ
5140 # Check whether --enable-button or --disable-button was given.
5141if test "${enable_button+set}" = set; then
5142 enableval="$enable_button"
698dcdb6 5143
10f2d63a 5144 if test "$enableval" = yes; then
1e6feb95 5145 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5146 else
1e6feb95 5147 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5148 fi
698dcdb6 5149
10f2d63a 5150else
698dcdb6 5151
1e6feb95 5152 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5153 if test "x$LINE" != x ; then
5154 eval "DEFAULT_$LINE"
5155 else
5156 no_cache=1
5157 fi
5158
1e6feb95 5159 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5160
5161fi
10f2d63a
VZ
5162
5163
1e6feb95 5164 eval "$ac_cv_use_button"
10f2d63a 5165 if test "$no_cache" != 1; then
1e6feb95 5166 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5167 fi
5168
1e6feb95 5169 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5170 echo "$ac_t""yes" 1>&6
10f2d63a 5171 else
698dcdb6 5172 echo "$ac_t""no" 1>&6
10f2d63a 5173 fi
698dcdb6 5174
10f2d63a 5175
698dcdb6 5176 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
7b7a7637 5177echo "configure:5178: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5178 no_cache=0
5179 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5180if test "${enable_bmpbutton+set}" = set; then
5181 enableval="$enable_bmpbutton"
698dcdb6 5182
10f2d63a
VZ
5183 if test "$enableval" = yes; then
5184 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5185 else
5186 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5187 fi
698dcdb6 5188
10f2d63a 5189else
698dcdb6 5190
10f2d63a
VZ
5191 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5192 if test "x$LINE" != x ; then
5193 eval "DEFAULT_$LINE"
5194 else
5195 no_cache=1
5196 fi
5197
5198 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5199
5200fi
10f2d63a
VZ
5201
5202
5203 eval "$ac_cv_use_bmpbutton"
5204 if test "$no_cache" != 1; then
5205 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5206 fi
5207
5208 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5209 echo "$ac_t""yes" 1>&6
10f2d63a 5210 else
698dcdb6 5211 echo "$ac_t""no" 1>&6
10f2d63a 5212 fi
698dcdb6 5213
10f2d63a 5214
1e6feb95 5215 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
7b7a7637 5216echo "configure:5217: checking for --enable-calendar" >&5
1e6feb95
VZ
5217 no_cache=0
5218 # Check whether --enable-calendar or --disable-calendar was given.
5219if test "${enable_calendar+set}" = set; then
5220 enableval="$enable_calendar"
5221
5222 if test "$enableval" = yes; then
5223 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5224 else
5225 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5226 fi
5227
5228else
5229
5230 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5231 if test "x$LINE" != x ; then
5232 eval "DEFAULT_$LINE"
5233 else
5234 no_cache=1
5235 fi
5236
5237 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5238
5239fi
5240
5241
5242 eval "$ac_cv_use_calendar"
5243 if test "$no_cache" != 1; then
5244 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5245 fi
5246
5247 if test "$wxUSE_CALCTRL" = yes; then
5248 echo "$ac_t""yes" 1>&6
5249 else
5250 echo "$ac_t""no" 1>&6
5251 fi
5252
5253
5254 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
7b7a7637 5255echo "configure:5256: checking for --enable-caret" >&5
1e6feb95
VZ
5256 no_cache=0
5257 # Check whether --enable-caret or --disable-caret was given.
5258if test "${enable_caret+set}" = set; then
5259 enableval="$enable_caret"
5260
5261 if test "$enableval" = yes; then
5262 ac_cv_use_caret='wxUSE_CARET=yes'
5263 else
5264 ac_cv_use_caret='wxUSE_CARET=no'
5265 fi
5266
5267else
5268
5269 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5270 if test "x$LINE" != x ; then
5271 eval "DEFAULT_$LINE"
5272 else
5273 no_cache=1
5274 fi
5275
5276 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5277
5278fi
5279
5280
5281 eval "$ac_cv_use_caret"
5282 if test "$no_cache" != 1; then
5283 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5284 fi
5285
5286 if test "$wxUSE_CARET" = yes; then
5287 echo "$ac_t""yes" 1>&6
5288 else
5289 echo "$ac_t""no" 1>&6
5290 fi
5291
5292
698dcdb6 5293 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
7b7a7637 5294echo "configure:5295: checking for --enable-checkbox" >&5
10f2d63a
VZ
5295 no_cache=0
5296 # Check whether --enable-checkbox or --disable-checkbox was given.
5297if test "${enable_checkbox+set}" = set; then
5298 enableval="$enable_checkbox"
698dcdb6 5299
10f2d63a
VZ
5300 if test "$enableval" = yes; then
5301 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5302 else
5303 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5304 fi
698dcdb6 5305
10f2d63a 5306else
698dcdb6 5307
10f2d63a
VZ
5308 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5309 if test "x$LINE" != x ; then
5310 eval "DEFAULT_$LINE"
5311 else
5312 no_cache=1
5313 fi
5314
5315 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5316
5317fi
10f2d63a
VZ
5318
5319
5320 eval "$ac_cv_use_checkbox"
5321 if test "$no_cache" != 1; then
5322 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5323 fi
5324
5325 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5326 echo "$ac_t""yes" 1>&6
10f2d63a 5327 else
698dcdb6 5328 echo "$ac_t""no" 1>&6
10f2d63a 5329 fi
698dcdb6 5330
10f2d63a 5331
698dcdb6 5332 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
7b7a7637 5333echo "configure:5334: checking for --enable-checklst" >&5
10f2d63a
VZ
5334 no_cache=0
5335 # Check whether --enable-checklst or --disable-checklst was given.
5336if test "${enable_checklst+set}" = set; then
5337 enableval="$enable_checklst"
698dcdb6 5338
10f2d63a
VZ
5339 if test "$enableval" = yes; then
5340 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5341 else
5342 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5343 fi
698dcdb6 5344
10f2d63a 5345else
698dcdb6 5346
10f2d63a
VZ
5347 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5348 if test "x$LINE" != x ; then
5349 eval "DEFAULT_$LINE"
5350 else
5351 no_cache=1
5352 fi
5353
5354 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5355
5356fi
10f2d63a
VZ
5357
5358
5359 eval "$ac_cv_use_checklst"
5360 if test "$no_cache" != 1; then
5361 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5362 fi
5363
5364 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5365 echo "$ac_t""yes" 1>&6
10f2d63a 5366 else
698dcdb6 5367 echo "$ac_t""no" 1>&6
10f2d63a 5368 fi
698dcdb6 5369
10f2d63a 5370
698dcdb6 5371 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
7b7a7637 5372echo "configure:5373: checking for --enable-choice" >&5
10f2d63a
VZ
5373 no_cache=0
5374 # Check whether --enable-choice or --disable-choice was given.
5375if test "${enable_choice+set}" = set; then
5376 enableval="$enable_choice"
698dcdb6 5377
10f2d63a
VZ
5378 if test "$enableval" = yes; then
5379 ac_cv_use_choice='wxUSE_CHOICE=yes'
5380 else
5381 ac_cv_use_choice='wxUSE_CHOICE=no'
5382 fi
698dcdb6 5383
10f2d63a 5384else
698dcdb6 5385
10f2d63a
VZ
5386 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5387 if test "x$LINE" != x ; then
5388 eval "DEFAULT_$LINE"
5389 else
5390 no_cache=1
5391 fi
5392
5393 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5394
5395fi
10f2d63a
VZ
5396
5397
5398 eval "$ac_cv_use_choice"
5399 if test "$no_cache" != 1; then
5400 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5401 fi
5402
5403 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5404 echo "$ac_t""yes" 1>&6
10f2d63a 5405 else
698dcdb6 5406 echo "$ac_t""no" 1>&6
10f2d63a 5407 fi
698dcdb6 5408
10f2d63a 5409
698dcdb6 5410 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
7b7a7637 5411echo "configure:5412: checking for --enable-combobox" >&5
10f2d63a
VZ
5412 no_cache=0
5413 # Check whether --enable-combobox or --disable-combobox was given.
5414if test "${enable_combobox+set}" = set; then
5415 enableval="$enable_combobox"
698dcdb6 5416
10f2d63a
VZ
5417 if test "$enableval" = yes; then
5418 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5419 else
5420 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5421 fi
698dcdb6 5422
10f2d63a 5423else
698dcdb6 5424
10f2d63a
VZ
5425 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5426 if test "x$LINE" != x ; then
5427 eval "DEFAULT_$LINE"
5428 else
5429 no_cache=1
5430 fi
5431
5432 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
5433
5434fi
10f2d63a
VZ
5435
5436
5437 eval "$ac_cv_use_combobox"
5438 if test "$no_cache" != 1; then
5439 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5440 fi
5441
5442 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 5443 echo "$ac_t""yes" 1>&6
10f2d63a 5444 else
698dcdb6 5445 echo "$ac_t""no" 1>&6
10f2d63a 5446 fi
698dcdb6 5447
10f2d63a 5448
698dcdb6 5449 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
7b7a7637 5450echo "configure:5451: checking for --enable-gauge" >&5
10f2d63a
VZ
5451 no_cache=0
5452 # Check whether --enable-gauge or --disable-gauge was given.
5453if test "${enable_gauge+set}" = set; then
5454 enableval="$enable_gauge"
698dcdb6 5455
10f2d63a
VZ
5456 if test "$enableval" = yes; then
5457 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5458 else
5459 ac_cv_use_gauge='wxUSE_GAUGE=no'
5460 fi
698dcdb6 5461
10f2d63a 5462else
698dcdb6 5463
10f2d63a
VZ
5464 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5465 if test "x$LINE" != x ; then
5466 eval "DEFAULT_$LINE"
5467 else
5468 no_cache=1
5469 fi
5470
5471 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
5472
5473fi
10f2d63a
VZ
5474
5475
5476 eval "$ac_cv_use_gauge"
5477 if test "$no_cache" != 1; then
5478 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5479 fi
5480
5481 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 5482 echo "$ac_t""yes" 1>&6
10f2d63a 5483 else
698dcdb6 5484 echo "$ac_t""no" 1>&6
10f2d63a 5485 fi
698dcdb6 5486
10f2d63a 5487
698dcdb6 5488 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
7b7a7637 5489echo "configure:5490: checking for --enable-grid" >&5
10f2d63a
VZ
5490 no_cache=0
5491 # Check whether --enable-grid or --disable-grid was given.
5492if test "${enable_grid+set}" = set; then
5493 enableval="$enable_grid"
698dcdb6 5494
10f2d63a
VZ
5495 if test "$enableval" = yes; then
5496 ac_cv_use_grid='wxUSE_GRID=yes'
5497 else
5498 ac_cv_use_grid='wxUSE_GRID=no'
5499 fi
698dcdb6 5500
10f2d63a 5501else
698dcdb6 5502
10f2d63a
VZ
5503 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5504 if test "x$LINE" != x ; then
5505 eval "DEFAULT_$LINE"
5506 else
5507 no_cache=1
5508 fi
5509
5510 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
5511
5512fi
10f2d63a
VZ
5513
5514
5515 eval "$ac_cv_use_grid"
5516 if test "$no_cache" != 1; then
5517 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5518 fi
5519
5520 if test "$wxUSE_GRID" = yes; then
698dcdb6 5521 echo "$ac_t""yes" 1>&6
10f2d63a 5522 else
698dcdb6 5523 echo "$ac_t""no" 1>&6
10f2d63a 5524 fi
698dcdb6 5525
10f2d63a 5526
698dcdb6 5527 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
7b7a7637 5528echo "configure:5529: checking for --enable-newgrid" >&5
10f2d63a
VZ
5529 no_cache=0
5530 # Check whether --enable-newgrid or --disable-newgrid was given.
5531if test "${enable_newgrid+set}" = set; then
5532 enableval="$enable_newgrid"
698dcdb6 5533
10f2d63a
VZ
5534 if test "$enableval" = yes; then
5535 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5536 else
5537 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5538 fi
698dcdb6 5539
10f2d63a 5540else
698dcdb6 5541
10f2d63a
VZ
5542 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5543 if test "x$LINE" != x ; then
5544 eval "DEFAULT_$LINE"
5545 else
5546 no_cache=1
5547 fi
5548
5549 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
5550
5551fi
10f2d63a
VZ
5552
5553
5554 eval "$ac_cv_use_newgrid"
5555 if test "$no_cache" != 1; then
5556 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5557 fi
5558
5559 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 5560 echo "$ac_t""yes" 1>&6
10f2d63a 5561 else
698dcdb6 5562 echo "$ac_t""no" 1>&6
10f2d63a 5563 fi
698dcdb6 5564
10f2d63a 5565
698dcdb6 5566 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
7b7a7637 5567echo "configure:5568: checking for --enable-imaglist" >&5
10f2d63a
VZ
5568 no_cache=0
5569 # Check whether --enable-imaglist or --disable-imaglist was given.
5570if test "${enable_imaglist+set}" = set; then
5571 enableval="$enable_imaglist"
698dcdb6 5572
10f2d63a
VZ
5573 if test "$enableval" = yes; then
5574 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5575 else
5576 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5577 fi
698dcdb6 5578
10f2d63a 5579else
698dcdb6 5580
10f2d63a
VZ
5581 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5582 if test "x$LINE" != x ; then
5583 eval "DEFAULT_$LINE"
5584 else
5585 no_cache=1
5586 fi
5587
5588 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
5589
5590fi
10f2d63a
VZ
5591
5592
5593 eval "$ac_cv_use_imaglist"
5594 if test "$no_cache" != 1; then
5595 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5596 fi
5597
5598 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 5599 echo "$ac_t""yes" 1>&6
10f2d63a 5600 else
698dcdb6 5601 echo "$ac_t""no" 1>&6
10f2d63a 5602 fi
698dcdb6 5603
10f2d63a 5604
698dcdb6 5605 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
7b7a7637 5606echo "configure:5607: checking for --enable-listbox" >&5
10f2d63a
VZ
5607 no_cache=0
5608 # Check whether --enable-listbox or --disable-listbox was given.
5609if test "${enable_listbox+set}" = set; then
5610 enableval="$enable_listbox"
698dcdb6 5611
10f2d63a
VZ
5612 if test "$enableval" = yes; then
5613 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5614 else
5615 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5616 fi
698dcdb6 5617
10f2d63a 5618else
698dcdb6 5619
10f2d63a
VZ
5620 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5621 if test "x$LINE" != x ; then
5622 eval "DEFAULT_$LINE"
5623 else
5624 no_cache=1
5625 fi
5626
5627 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
5628
5629fi
10f2d63a
VZ
5630
5631
5632 eval "$ac_cv_use_listbox"
5633 if test "$no_cache" != 1; then
5634 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5635 fi
5636
5637 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 5638 echo "$ac_t""yes" 1>&6
10f2d63a 5639 else
698dcdb6 5640 echo "$ac_t""no" 1>&6
10f2d63a 5641 fi
698dcdb6 5642
10f2d63a 5643
698dcdb6 5644 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
7b7a7637 5645echo "configure:5646: checking for --enable-listctrl" >&5
10f2d63a
VZ
5646 no_cache=0
5647 # Check whether --enable-listctrl or --disable-listctrl was given.
5648if test "${enable_listctrl+set}" = set; then
5649 enableval="$enable_listctrl"
698dcdb6 5650
10f2d63a
VZ
5651 if test "$enableval" = yes; then
5652 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5653 else
5654 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5655 fi
698dcdb6 5656
10f2d63a 5657else
698dcdb6 5658
10f2d63a
VZ
5659 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5660 if test "x$LINE" != x ; then
5661 eval "DEFAULT_$LINE"
5662 else
5663 no_cache=1
5664 fi
5665
5666 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
5667
5668fi
10f2d63a
VZ
5669
5670
5671 eval "$ac_cv_use_listctrl"
5672 if test "$no_cache" != 1; then
5673 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5674 fi
5675
5676 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 5677 echo "$ac_t""yes" 1>&6
10f2d63a 5678 else
698dcdb6 5679 echo "$ac_t""no" 1>&6
10f2d63a 5680 fi
698dcdb6 5681
10f2d63a 5682
698dcdb6 5683 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
7b7a7637 5684echo "configure:5685: checking for --enable-notebook" >&5
10f2d63a
VZ
5685 no_cache=0
5686 # Check whether --enable-notebook or --disable-notebook was given.
5687if test "${enable_notebook+set}" = set; then
5688 enableval="$enable_notebook"
698dcdb6 5689
10f2d63a
VZ
5690 if test "$enableval" = yes; then
5691 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5692 else
5693 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5694 fi
698dcdb6 5695
10f2d63a 5696else
698dcdb6 5697
10f2d63a
VZ
5698 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5699 if test "x$LINE" != x ; then
5700 eval "DEFAULT_$LINE"
5701 else
5702 no_cache=1
5703 fi
5704
5705 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
5706
5707fi
10f2d63a
VZ
5708
5709
5710 eval "$ac_cv_use_notebook"
5711 if test "$no_cache" != 1; then
5712 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5713 fi
5714
5715 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 5716 echo "$ac_t""yes" 1>&6
10f2d63a 5717 else
698dcdb6 5718 echo "$ac_t""no" 1>&6
10f2d63a 5719 fi
698dcdb6 5720
10f2d63a 5721
24176f2c 5722 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
7b7a7637 5723echo "configure:5724: checking for --enable-propsheet" >&5
24176f2c
GD
5724 no_cache=0
5725 # Check whether --enable-propsheet or --disable-propsheet was given.
5726if test "${enable_propsheet+set}" = set; then
5727 enableval="$enable_propsheet"
5728
5729 if test "$enableval" = yes; then
5730 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5731 else
5732 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5733 fi
5734
5735else
5736
5737 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5738 if test "x$LINE" != x ; then
5739 eval "DEFAULT_$LINE"
5740 else
5741 no_cache=1
5742 fi
5743
5744 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5745
5746fi
5747
5748
5749 eval "$ac_cv_use_propsheet"
5750 if test "$no_cache" != 1; then
5751 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5752 fi
5753
5754 if test "$wxUSE_PROPSHEET" = yes; then
5755 echo "$ac_t""yes" 1>&6
5756 else
5757 echo "$ac_t""no" 1>&6
5758 fi
5759
5760
698dcdb6 5761 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
7b7a7637 5762echo "configure:5763: checking for --enable-radiobox" >&5
10f2d63a
VZ
5763 no_cache=0
5764 # Check whether --enable-radiobox or --disable-radiobox was given.
5765if test "${enable_radiobox+set}" = set; then
5766 enableval="$enable_radiobox"
698dcdb6 5767
10f2d63a
VZ
5768 if test "$enableval" = yes; then
5769 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5770 else
5771 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5772 fi
698dcdb6 5773
10f2d63a 5774else
698dcdb6 5775
10f2d63a
VZ
5776 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5777 if test "x$LINE" != x ; then
5778 eval "DEFAULT_$LINE"
5779 else
5780 no_cache=1
5781 fi
5782
5783 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
5784
5785fi
10f2d63a
VZ
5786
5787
5788 eval "$ac_cv_use_radiobox"
5789 if test "$no_cache" != 1; then
5790 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5791 fi
5792
5793 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 5794 echo "$ac_t""yes" 1>&6
10f2d63a 5795 else
698dcdb6 5796 echo "$ac_t""no" 1>&6
10f2d63a 5797 fi
698dcdb6 5798
10f2d63a 5799
698dcdb6 5800 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
7b7a7637 5801echo "configure:5802: checking for --enable-radiobtn" >&5
10f2d63a
VZ
5802 no_cache=0
5803 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5804if test "${enable_radiobtn+set}" = set; then
5805 enableval="$enable_radiobtn"
698dcdb6 5806
10f2d63a
VZ
5807 if test "$enableval" = yes; then
5808 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5809 else
5810 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5811 fi
698dcdb6 5812
10f2d63a 5813else
698dcdb6 5814
10f2d63a
VZ
5815 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5816 if test "x$LINE" != x ; then
5817 eval "DEFAULT_$LINE"
5818 else
5819 no_cache=1
5820 fi
5821
5822 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
5823
5824fi
10f2d63a
VZ
5825
5826
5827 eval "$ac_cv_use_radiobtn"
5828 if test "$no_cache" != 1; then
5829 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5830 fi
5831
5832 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 5833 echo "$ac_t""yes" 1>&6
10f2d63a 5834 else
698dcdb6 5835 echo "$ac_t""no" 1>&6
10f2d63a 5836 fi
698dcdb6 5837
10f2d63a 5838
698dcdb6 5839 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
7b7a7637 5840echo "configure:5841: checking for --enable-sash" >&5
10f2d63a
VZ
5841 no_cache=0
5842 # Check whether --enable-sash or --disable-sash was given.
5843if test "${enable_sash+set}" = set; then
5844 enableval="$enable_sash"
698dcdb6 5845
10f2d63a
VZ
5846 if test "$enableval" = yes; then
5847 ac_cv_use_sash='wxUSE_SASH=yes'
5848 else
5849 ac_cv_use_sash='wxUSE_SASH=no'
5850 fi
698dcdb6 5851
10f2d63a 5852else
698dcdb6 5853
10f2d63a
VZ
5854 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5855 if test "x$LINE" != x ; then
5856 eval "DEFAULT_$LINE"
5857 else
5858 no_cache=1
5859 fi
5860
5861 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
5862
5863fi
10f2d63a
VZ
5864
5865
5866 eval "$ac_cv_use_sash"
5867 if test "$no_cache" != 1; then
5868 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5869 fi
5870
5871 if test "$wxUSE_SASH" = yes; then
698dcdb6 5872 echo "$ac_t""yes" 1>&6
10f2d63a 5873 else
698dcdb6 5874 echo "$ac_t""no" 1>&6
10f2d63a 5875 fi
698dcdb6 5876
10f2d63a 5877
698dcdb6 5878 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
7b7a7637 5879echo "configure:5880: checking for --enable-scrollbar" >&5
10f2d63a
VZ
5880 no_cache=0
5881 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5882if test "${enable_scrollbar+set}" = set; then
5883 enableval="$enable_scrollbar"
698dcdb6 5884
10f2d63a
VZ
5885 if test "$enableval" = yes; then
5886 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5887 else
5888 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5889 fi
698dcdb6 5890
10f2d63a 5891else
698dcdb6 5892
10f2d63a
VZ
5893 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5894 if test "x$LINE" != x ; then
5895 eval "DEFAULT_$LINE"
5896 else
5897 no_cache=1
5898 fi
5899
5900 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
5901
5902fi
10f2d63a
VZ
5903
5904
5905 eval "$ac_cv_use_scrollbar"
5906 if test "$no_cache" != 1; then
5907 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5908 fi
5909
5910 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 5911 echo "$ac_t""yes" 1>&6
10f2d63a 5912 else
698dcdb6 5913 echo "$ac_t""no" 1>&6
10f2d63a 5914 fi
698dcdb6 5915
10f2d63a 5916
698dcdb6 5917 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
7b7a7637 5918echo "configure:5919: checking for --enable-slider" >&5
10f2d63a
VZ
5919 no_cache=0
5920 # Check whether --enable-slider or --disable-slider was given.
5921if test "${enable_slider+set}" = set; then
5922 enableval="$enable_slider"
698dcdb6 5923
10f2d63a
VZ
5924 if test "$enableval" = yes; then
5925 ac_cv_use_slider='wxUSE_SLIDER=yes'
5926 else
5927 ac_cv_use_slider='wxUSE_SLIDER=no'
5928 fi
698dcdb6 5929
10f2d63a 5930else
698dcdb6 5931
10f2d63a
VZ
5932 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5933 if test "x$LINE" != x ; then
5934 eval "DEFAULT_$LINE"
5935 else
5936 no_cache=1
5937 fi
5938
5939 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
5940
5941fi
10f2d63a
VZ
5942
5943
5944 eval "$ac_cv_use_slider"
5945 if test "$no_cache" != 1; then
5946 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5947 fi
5948
5949 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 5950 echo "$ac_t""yes" 1>&6
10f2d63a 5951 else
698dcdb6 5952 echo "$ac_t""no" 1>&6
10f2d63a 5953 fi
698dcdb6 5954
10f2d63a 5955
698dcdb6 5956 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
7b7a7637 5957echo "configure:5958: checking for --enable-spinbtn" >&5
10f2d63a
VZ
5958 no_cache=0
5959 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5960if test "${enable_spinbtn+set}" = set; then
5961 enableval="$enable_spinbtn"
698dcdb6 5962
10f2d63a
VZ
5963 if test "$enableval" = yes; then
5964 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5965 else
5966 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5967 fi
698dcdb6 5968
10f2d63a 5969else
698dcdb6 5970
10f2d63a
VZ
5971 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5972 if test "x$LINE" != x ; then
5973 eval "DEFAULT_$LINE"
5974 else
5975 no_cache=1
5976 fi
5977
5978 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
5979
5980fi
10f2d63a
VZ
5981
5982
5983 eval "$ac_cv_use_spinbtn"
5984 if test "$no_cache" != 1; then
5985 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5986 fi
5987
5988 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 5989 echo "$ac_t""yes" 1>&6
10f2d63a 5990 else
698dcdb6 5991 echo "$ac_t""no" 1>&6
10f2d63a 5992 fi
698dcdb6 5993
10f2d63a 5994
698dcdb6 5995 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
7b7a7637 5996echo "configure:5997: checking for --enable-spinctrl" >&5
56cfaa52
RR
5997 no_cache=0
5998 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5999if test "${enable_spinctrl+set}" = set; then
6000 enableval="$enable_spinctrl"
698dcdb6 6001
56cfaa52
RR
6002 if test "$enableval" = yes; then
6003 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6004 else
6005 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6006 fi
698dcdb6 6007
56cfaa52 6008else
698dcdb6 6009
56cfaa52
RR
6010 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6011 if test "x$LINE" != x ; then
6012 eval "DEFAULT_$LINE"
6013 else
6014 no_cache=1
6015 fi
6016
6017 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6018
6019fi
56cfaa52
RR
6020
6021
6022 eval "$ac_cv_use_spinctrl"
6023 if test "$no_cache" != 1; then
6024 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6025 fi
6026
6027 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6028 echo "$ac_t""yes" 1>&6
56cfaa52 6029 else
698dcdb6 6030 echo "$ac_t""no" 1>&6
56cfaa52 6031 fi
698dcdb6 6032
56cfaa52 6033
698dcdb6 6034 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
7b7a7637 6035echo "configure:6036: checking for --enable-splitter" >&5
10f2d63a
VZ
6036 no_cache=0
6037 # Check whether --enable-splitter or --disable-splitter was given.
6038if test "${enable_splitter+set}" = set; then
6039 enableval="$enable_splitter"
698dcdb6 6040
10f2d63a
VZ
6041 if test "$enableval" = yes; then
6042 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6043 else
6044 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6045 fi
698dcdb6 6046
10f2d63a 6047else
698dcdb6 6048
10f2d63a
VZ
6049 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6050 if test "x$LINE" != x ; then
6051 eval "DEFAULT_$LINE"
6052 else
6053 no_cache=1
6054 fi
6055
6056 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6057
6058fi
10f2d63a
VZ
6059
6060
6061 eval "$ac_cv_use_splitter"
6062 if test "$no_cache" != 1; then
6063 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6064 fi
6065
6066 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6067 echo "$ac_t""yes" 1>&6
10f2d63a 6068 else
698dcdb6 6069 echo "$ac_t""no" 1>&6
10f2d63a 6070 fi
698dcdb6 6071
10f2d63a 6072
698dcdb6 6073 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
7b7a7637 6074echo "configure:6075: checking for --enable-statbmp" >&5
10f2d63a
VZ
6075 no_cache=0
6076 # Check whether --enable-statbmp or --disable-statbmp was given.
6077if test "${enable_statbmp+set}" = set; then
6078 enableval="$enable_statbmp"
698dcdb6 6079
10f2d63a
VZ
6080 if test "$enableval" = yes; then
6081 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6082 else
6083 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6084 fi
698dcdb6 6085
10f2d63a 6086else
698dcdb6 6087
10f2d63a
VZ
6088 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6089 if test "x$LINE" != x ; then
6090 eval "DEFAULT_$LINE"
6091 else
6092 no_cache=1
6093 fi
6094
6095 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6096
6097fi
10f2d63a
VZ
6098
6099
6100 eval "$ac_cv_use_statbmp"
6101 if test "$no_cache" != 1; then
6102 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6103 fi
6104
6105 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6106 echo "$ac_t""yes" 1>&6
10f2d63a 6107 else
698dcdb6 6108 echo "$ac_t""no" 1>&6
10f2d63a 6109 fi
698dcdb6 6110
10f2d63a 6111
698dcdb6 6112 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
7b7a7637 6113echo "configure:6114: checking for --enable-statbox" >&5
10f2d63a
VZ
6114 no_cache=0
6115 # Check whether --enable-statbox or --disable-statbox was given.
6116if test "${enable_statbox+set}" = set; then
6117 enableval="$enable_statbox"
698dcdb6 6118
10f2d63a
VZ
6119 if test "$enableval" = yes; then
6120 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6121 else
6122 ac_cv_use_statbox='wxUSE_STATBOX=no'
6123 fi
698dcdb6 6124
10f2d63a 6125else
698dcdb6 6126
10f2d63a
VZ
6127 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6128 if test "x$LINE" != x ; then
6129 eval "DEFAULT_$LINE"
6130 else
6131 no_cache=1
6132 fi
6133
6134 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6135
6136fi
10f2d63a
VZ
6137
6138
6139 eval "$ac_cv_use_statbox"
6140 if test "$no_cache" != 1; then
6141 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6142 fi
6143
6144 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6145 echo "$ac_t""yes" 1>&6
10f2d63a 6146 else
698dcdb6 6147 echo "$ac_t""no" 1>&6
10f2d63a 6148 fi
698dcdb6 6149
10f2d63a 6150
698dcdb6 6151 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
7b7a7637 6152echo "configure:6153: checking for --enable-statline" >&5
10f2d63a
VZ
6153 no_cache=0
6154 # Check whether --enable-statline or --disable-statline was given.
6155if test "${enable_statline+set}" = set; then
6156 enableval="$enable_statline"
698dcdb6 6157
10f2d63a
VZ
6158 if test "$enableval" = yes; then
6159 ac_cv_use_statline='wxUSE_STATLINE=yes'
6160 else
6161 ac_cv_use_statline='wxUSE_STATLINE=no'
6162 fi
698dcdb6 6163
10f2d63a 6164else
698dcdb6 6165
10f2d63a
VZ
6166 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6167 if test "x$LINE" != x ; then
6168 eval "DEFAULT_$LINE"
6169 else
6170 no_cache=1
6171 fi
6172
6173 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6174
6175fi
10f2d63a
VZ
6176
6177
6178 eval "$ac_cv_use_statline"
6179 if test "$no_cache" != 1; then
6180 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6181 fi
6182
6183 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6184 echo "$ac_t""yes" 1>&6
10f2d63a 6185 else
698dcdb6 6186 echo "$ac_t""no" 1>&6
10f2d63a 6187 fi
698dcdb6 6188
10f2d63a 6189
1e6feb95 6190 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
7b7a7637 6191echo "configure:6192: checking for --enable-stattext" >&5
1e6feb95
VZ
6192 no_cache=0
6193 # Check whether --enable-stattext or --disable-stattext was given.
6194if test "${enable_stattext+set}" = set; then
6195 enableval="$enable_stattext"
6196
6197 if test "$enableval" = yes; then
6198 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6199 else
6200 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6201 fi
6202
6203else
6204
6205 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6206 if test "x$LINE" != x ; then
6207 eval "DEFAULT_$LINE"
6208 else
6209 no_cache=1
6210 fi
6211
6212 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6213
6214fi
6215
6216
6217 eval "$ac_cv_use_stattext"
6218 if test "$no_cache" != 1; then
6219 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6220 fi
6221
6222 if test "$wxUSE_STATTEXT" = yes; then
6223 echo "$ac_t""yes" 1>&6
6224 else
6225 echo "$ac_t""no" 1>&6
6226 fi
6227
6228
698dcdb6 6229 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
7b7a7637 6230echo "configure:6231: checking for --enable-statusbar" >&5
10f2d63a
VZ
6231 no_cache=0
6232 # Check whether --enable-statusbar or --disable-statusbar was given.
6233if test "${enable_statusbar+set}" = set; then
6234 enableval="$enable_statusbar"
698dcdb6 6235
10f2d63a
VZ
6236 if test "$enableval" = yes; then
6237 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6238 else
6239 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6240 fi
698dcdb6 6241
10f2d63a 6242else
698dcdb6 6243
10f2d63a
VZ
6244 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6245 if test "x$LINE" != x ; then
6246 eval "DEFAULT_$LINE"
6247 else
6248 no_cache=1
6249 fi
6250
6251 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6252
6253fi
10f2d63a
VZ
6254
6255
6256 eval "$ac_cv_use_statusbar"
6257 if test "$no_cache" != 1; then
6258 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6259 fi
6260
6261 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6262 echo "$ac_t""yes" 1>&6
10f2d63a 6263 else
698dcdb6 6264 echo "$ac_t""no" 1>&6
10f2d63a 6265 fi
698dcdb6 6266
10f2d63a 6267
698dcdb6 6268 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
7b7a7637 6269echo "configure:6270: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6270 no_cache=0
6271 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6272if test "${enable_tabdialog+set}" = set; then
6273 enableval="$enable_tabdialog"
698dcdb6 6274
10f2d63a
VZ
6275 if test "$enableval" = yes; then
6276 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6277 else
6278 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6279 fi
698dcdb6 6280
10f2d63a 6281else
698dcdb6 6282
10f2d63a
VZ
6283 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6284 if test "x$LINE" != x ; then
6285 eval "DEFAULT_$LINE"
6286 else
6287 no_cache=1
6288 fi
6289
6290 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6291
6292fi
10f2d63a
VZ
6293
6294
6295 eval "$ac_cv_use_tabdialog"
6296 if test "$no_cache" != 1; then
6297 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6298 fi
6299
6300 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6301 echo "$ac_t""yes" 1>&6
10f2d63a 6302 else
698dcdb6 6303 echo "$ac_t""no" 1>&6
10f2d63a 6304 fi
698dcdb6 6305
10f2d63a 6306
1e6feb95 6307 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
7b7a7637 6308echo "configure:6309: checking for --enable-textctrl" >&5
1e6feb95
VZ
6309 no_cache=0
6310 # Check whether --enable-textctrl or --disable-textctrl was given.
6311if test "${enable_textctrl+set}" = set; then
6312 enableval="$enable_textctrl"
6313
6314 if test "$enableval" = yes; then
6315 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6316 else
6317 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6318 fi
6319
6320else
6321
6322 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6323 if test "x$LINE" != x ; then
6324 eval "DEFAULT_$LINE"
6325 else
6326 no_cache=1
6327 fi
6328
6329 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6330
6331fi
6332
6333
6334 eval "$ac_cv_use_textctrl"
6335 if test "$no_cache" != 1; then
6336 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6337 fi
6338
6339 if test "$wxUSE_TEXTCTRL" = yes; then
6340 echo "$ac_t""yes" 1>&6
6341 else
6342 echo "$ac_t""no" 1>&6
6343 fi
6344
6345
698dcdb6 6346 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
7b7a7637 6347echo "configure:6348: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6348 no_cache=0
6349 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6350if test "${enable_togglebtn+set}" = set; then
6351 enableval="$enable_togglebtn"
698dcdb6 6352
1db8dc4a
VZ
6353 if test "$enableval" = yes; then
6354 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6355 else
6356 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6357 fi
698dcdb6 6358
1db8dc4a 6359else
698dcdb6 6360
1db8dc4a
VZ
6361 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6362 if test "x$LINE" != x ; then
6363 eval "DEFAULT_$LINE"
6364 else
6365 no_cache=1
6366 fi
6367
6368 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6369
6370fi
1db8dc4a
VZ
6371
6372
6373 eval "$ac_cv_use_togglebtn"
6374 if test "$no_cache" != 1; then
6375 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6376 fi
6377
6378 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6379 echo "$ac_t""yes" 1>&6
1db8dc4a 6380 else
698dcdb6 6381 echo "$ac_t""no" 1>&6
1db8dc4a 6382 fi
698dcdb6 6383
1db8dc4a 6384
698dcdb6 6385 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
7b7a7637 6386echo "configure:6387: checking for --enable-toolbar" >&5
10f2d63a
VZ
6387 no_cache=0
6388 # Check whether --enable-toolbar or --disable-toolbar was given.
6389if test "${enable_toolbar+set}" = set; then
6390 enableval="$enable_toolbar"
698dcdb6 6391
10f2d63a
VZ
6392 if test "$enableval" = yes; then
6393 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6394 else
6395 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6396 fi
698dcdb6 6397
10f2d63a 6398else
698dcdb6 6399
10f2d63a
VZ
6400 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6401 if test "x$LINE" != x ; then
6402 eval "DEFAULT_$LINE"
6403 else
6404 no_cache=1
6405 fi
6406
6407 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
6408
6409fi
10f2d63a
VZ
6410
6411
6412 eval "$ac_cv_use_toolbar"
6413 if test "$no_cache" != 1; then
6414 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6415 fi
6416
6417 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 6418 echo "$ac_t""yes" 1>&6
10f2d63a 6419 else
698dcdb6 6420 echo "$ac_t""no" 1>&6
10f2d63a 6421 fi
698dcdb6 6422
10f2d63a 6423
698dcdb6 6424 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
7b7a7637 6425echo "configure:6426: checking for --enable-tbarnative" >&5
360d6699
VZ
6426 no_cache=0
6427 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6428if test "${enable_tbarnative+set}" = set; then
6429 enableval="$enable_tbarnative"
698dcdb6 6430
360d6699
VZ
6431 if test "$enableval" = yes; then
6432 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6433 else
6434 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6435 fi
698dcdb6 6436
360d6699 6437else
698dcdb6 6438
360d6699
VZ
6439 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6440 if test "x$LINE" != x ; then
6441 eval "DEFAULT_$LINE"
6442 else
6443 no_cache=1
6444 fi
6445
6446 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
6447
6448fi
360d6699
VZ
6449
6450
6451 eval "$ac_cv_use_tbarnative"
6452 if test "$no_cache" != 1; then
6453 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6454 fi
6455
6456 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 6457 echo "$ac_t""yes" 1>&6
360d6699 6458 else
698dcdb6 6459 echo "$ac_t""no" 1>&6
360d6699 6460 fi
698dcdb6 6461
360d6699 6462
698dcdb6 6463 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
7b7a7637 6464echo "configure:6465: checking for --enable-tbarsmpl" >&5
360d6699
VZ
6465 no_cache=0
6466 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6467if test "${enable_tbarsmpl+set}" = set; then
6468 enableval="$enable_tbarsmpl"
698dcdb6 6469
360d6699
VZ
6470 if test "$enableval" = yes; then
6471 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6472 else
6473 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6474 fi
698dcdb6 6475
360d6699 6476else
698dcdb6 6477
360d6699
VZ
6478 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6479 if test "x$LINE" != x ; then
6480 eval "DEFAULT_$LINE"
6481 else
6482 no_cache=1
6483 fi
6484
6485 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
6486
6487fi
360d6699
VZ
6488
6489
6490 eval "$ac_cv_use_tbarsmpl"
6491 if test "$no_cache" != 1; then
6492 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6493 fi
6494
6495 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 6496 echo "$ac_t""yes" 1>&6
360d6699 6497 else
698dcdb6 6498 echo "$ac_t""no" 1>&6
360d6699 6499 fi
698dcdb6 6500
360d6699 6501
698dcdb6 6502 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
7b7a7637 6503echo "configure:6504: checking for --enable-treectrl" >&5
10f2d63a
VZ
6504 no_cache=0
6505 # Check whether --enable-treectrl or --disable-treectrl was given.
6506if test "${enable_treectrl+set}" = set; then
6507 enableval="$enable_treectrl"
698dcdb6 6508
10f2d63a
VZ
6509 if test "$enableval" = yes; then
6510 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6511 else
6512 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6513 fi
698dcdb6 6514
10f2d63a 6515else
698dcdb6 6516
10f2d63a
VZ
6517 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6518 if test "x$LINE" != x ; then
6519 eval "DEFAULT_$LINE"
6520 else
6521 no_cache=1
6522 fi
6523
6524 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
6525
6526fi
10f2d63a
VZ
6527
6528
1e6feb95
VZ
6529 eval "$ac_cv_use_treectrl"
6530 if test "$no_cache" != 1; then
6531 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6532 fi
6533
6534 if test "$wxUSE_TREECTRL" = yes; then
6535 echo "$ac_t""yes" 1>&6
6536 else
6537 echo "$ac_t""no" 1>&6
6538 fi
6539
6540
9f41d601 6541 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
7b7a7637 6542echo "configure:6543: checking for --enable-popupwin" >&5
9f41d601
RR
6543 no_cache=0
6544 # Check whether --enable-popupwin or --disable-popupwin was given.
6545if test "${enable_popupwin+set}" = set; then
6546 enableval="$enable_popupwin"
6547
6548 if test "$enableval" = yes; then
6549 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6550 else
6551 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6552 fi
6553
6554else
6555
6556 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6557 if test "x$LINE" != x ; then
6558 eval "DEFAULT_$LINE"
6559 else
6560 no_cache=1
6561 fi
6562
6563 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6564
6565fi
6566
6567
6568 eval "$ac_cv_use_popupwin"
6569 if test "$no_cache" != 1; then
6570 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6571 fi
6572
6573 if test "$wxUSE_POPUPWIN" = yes; then
6574 echo "$ac_t""yes" 1>&6
6575 else
6576 echo "$ac_t""no" 1>&6
6577 fi
6578
6579
1e6feb95
VZ
6580
6581
6582 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
7b7a7637 6583echo "configure:6584: checking for --enable-commondlg" >&5
1e6feb95
VZ
6584 no_cache=0
6585 # Check whether --enable-commondlg or --disable-commondlg was given.
6586if test "${enable_commondlg+set}" = set; then
6587 enableval="$enable_commondlg"
6588
6589 if test "$enableval" = yes; then
6590 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6591 else
6592 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6593 fi
6594
6595else
6596
6597 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6598 if test "x$LINE" != x ; then
6599 eval "DEFAULT_$LINE"
6600 else
6601 no_cache=1
6602 fi
6603
6604 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6605
6606fi
6607
6608
6609 eval "$ac_cv_use_commondlg"
6610 if test "$no_cache" != 1; then
6611 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6612 fi
6613
6614 if test "$wxUSE_COMMONDLGS" = yes; then
6615 echo "$ac_t""yes" 1>&6
6616 else
6617 echo "$ac_t""no" 1>&6
6618 fi
6619
6620
6621 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
7b7a7637 6622echo "configure:6623: checking for --enable-choicedlg" >&5
1e6feb95
VZ
6623 no_cache=0
6624 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6625if test "${enable_choicedlg+set}" = set; then
6626 enableval="$enable_choicedlg"
6627
6628 if test "$enableval" = yes; then
6629 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6630 else
6631 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6632 fi
6633
6634else
6635
6636 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6637 if test "x$LINE" != x ; then
6638 eval "DEFAULT_$LINE"
6639 else
6640 no_cache=1
6641 fi
6642
6643 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6644
6645fi
6646
6647
6648 eval "$ac_cv_use_choicedlg"
6649 if test "$no_cache" != 1; then
6650 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6651 fi
6652
6653 if test "$wxUSE_CHOICEDLG" = yes; then
6654 echo "$ac_t""yes" 1>&6
6655 else
6656 echo "$ac_t""no" 1>&6
6657 fi
6658
6659
6660 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
7b7a7637 6661echo "configure:6662: checking for --enable-coldlg" >&5
1e6feb95
VZ
6662 no_cache=0
6663 # Check whether --enable-coldlg or --disable-coldlg was given.
6664if test "${enable_coldlg+set}" = set; then
6665 enableval="$enable_coldlg"
6666
6667 if test "$enableval" = yes; then
6668 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6669 else
6670 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6671 fi
6672
6673else
6674
6675 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6676 if test "x$LINE" != x ; then
6677 eval "DEFAULT_$LINE"
6678 else
6679 no_cache=1
6680 fi
6681
6682 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6683
6684fi
6685
6686
6687 eval "$ac_cv_use_coldlg"
6688 if test "$no_cache" != 1; then
6689 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6690 fi
6691
6692 if test "$wxUSE_COLOURDLG" = yes; then
6693 echo "$ac_t""yes" 1>&6
6694 else
6695 echo "$ac_t""no" 1>&6
6696 fi
6697
6698
6699 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
7b7a7637 6700echo "configure:6701: checking for --enable-filedlg" >&5
1e6feb95
VZ
6701 no_cache=0
6702 # Check whether --enable-filedlg or --disable-filedlg was given.
6703if test "${enable_filedlg+set}" = set; then
6704 enableval="$enable_filedlg"
6705
6706 if test "$enableval" = yes; then
6707 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6708 else
6709 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6710 fi
6711
6712else
6713
6714 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6715 if test "x$LINE" != x ; then
6716 eval "DEFAULT_$LINE"
6717 else
6718 no_cache=1
6719 fi
6720
6721 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6722
6723fi
6724
6725
6726 eval "$ac_cv_use_filedlg"
6727 if test "$no_cache" != 1; then
6728 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6729 fi
6730
6731 if test "$wxUSE_FILEDLG" = yes; then
6732 echo "$ac_t""yes" 1>&6
6733 else
6734 echo "$ac_t""no" 1>&6
6735 fi
6736
6737
8db37e06 6738 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
7b7a7637 6739echo "configure:6740: checking for --enable-filedlg" >&5
8db37e06
VZ
6740 no_cache=0
6741 # Check whether --enable-filedlg or --disable-filedlg was given.
6742if test "${enable_filedlg+set}" = set; then
6743 enableval="$enable_filedlg"
6744
6745 if test "$enableval" = yes; then
6746 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes'
6747 else
6748 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no'
6749 fi
6750
6751else
6752
6753 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6754 if test "x$LINE" != x ; then
6755 eval "DEFAULT_$LINE"
6756 else
6757 no_cache=1
6758 fi
6759
6760 ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
6761
6762fi
6763
6764
6765 eval "$ac_cv_use_filedlg"
6766 if test "$no_cache" != 1; then
6767 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6768 fi
6769
6770 if test "$wxUSE_FINDREPLDLG" = yes; then
6771 echo "$ac_t""yes" 1>&6
6772 else
6773 echo "$ac_t""no" 1>&6
6774 fi
6775
6776
1e6feb95 6777 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
7b7a7637 6778echo "configure:6779: checking for --enable-fontdlg" >&5
1e6feb95
VZ
6779 no_cache=0
6780 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6781if test "${enable_fontdlg+set}" = set; then
6782 enableval="$enable_fontdlg"
6783
6784 if test "$enableval" = yes; then
6785 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6786 else
6787 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6788 fi
6789
6790else
6791
6792 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6793 if test "x$LINE" != x ; then
6794 eval "DEFAULT_$LINE"
6795 else
6796 no_cache=1
6797 fi
6798
6799 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6800
6801fi
6802
6803
6804 eval "$ac_cv_use_fontdlg"
6805 if test "$no_cache" != 1; then
6806 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6807 fi
6808
6809 if test "$wxUSE_FONTDLG" = yes; then
6810 echo "$ac_t""yes" 1>&6
6811 else
6812 echo "$ac_t""no" 1>&6
6813 fi
6814
6815
6816 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
7b7a7637 6817echo "configure:6818: checking for --enable-dirdlg" >&5
1e6feb95
VZ
6818 no_cache=0
6819 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6820if test "${enable_dirdlg+set}" = set; then
6821 enableval="$enable_dirdlg"
6822
6823 if test "$enableval" = yes; then
6824 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6825 else
6826 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6827 fi
6828
6829else
6830
6831 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6832 if test "x$LINE" != x ; then
6833 eval "DEFAULT_$LINE"
6834 else
6835 no_cache=1
6836 fi
6837
6838 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6839
6840fi
6841
6842
6843 eval "$ac_cv_use_dirdlg"
10f2d63a 6844 if test "$no_cache" != 1; then
1e6feb95 6845 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6846 fi
6847
1e6feb95 6848 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 6849 echo "$ac_t""yes" 1>&6
10f2d63a 6850 else
698dcdb6 6851 echo "$ac_t""no" 1>&6
10f2d63a 6852 fi
698dcdb6
VZ
6853
6854
1e6feb95 6855 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
7b7a7637 6856echo "configure:6857: checking for --enable-msgdlg" >&5
10f2d63a 6857 no_cache=0
1e6feb95
VZ
6858 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6859if test "${enable_msgdlg+set}" = set; then
6860 enableval="$enable_msgdlg"
698dcdb6 6861
10f2d63a 6862 if test "$enableval" = yes; then
1e6feb95 6863 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 6864 else
1e6feb95 6865 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 6866 fi
698dcdb6 6867
10f2d63a 6868else
698dcdb6 6869
1e6feb95 6870 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6871 if test "x$LINE" != x ; then
6872 eval "DEFAULT_$LINE"
6873 else
6874 no_cache=1
6875 fi
6876
1e6feb95 6877 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
6878
6879fi
10f2d63a
VZ
6880
6881
1e6feb95 6882 eval "$ac_cv_use_msgdlg"
10f2d63a 6883 if test "$no_cache" != 1; then
1e6feb95 6884 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6885 fi
6886
1e6feb95 6887 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 6888 echo "$ac_t""yes" 1>&6
10f2d63a 6889 else
698dcdb6 6890 echo "$ac_t""no" 1>&6
10f2d63a 6891 fi
698dcdb6 6892
10f2d63a 6893
1e6feb95 6894 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
7b7a7637 6895echo "configure:6896: checking for --enable-numberdlg" >&5
10f2d63a 6896 no_cache=0
1e6feb95
VZ
6897 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6898if test "${enable_numberdlg+set}" = set; then
6899 enableval="$enable_numberdlg"
698dcdb6 6900
10f2d63a 6901 if test "$enableval" = yes; then
1e6feb95 6902 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 6903 else
1e6feb95 6904 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 6905 fi
698dcdb6 6906
10f2d63a 6907else
698dcdb6 6908
1e6feb95 6909 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6910 if test "x$LINE" != x ; then
6911 eval "DEFAULT_$LINE"
6912 else
6913 no_cache=1
6914 fi
6915
1e6feb95 6916 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
6917
6918fi
10f2d63a
VZ
6919
6920
1e6feb95 6921 eval "$ac_cv_use_numberdlg"
10f2d63a 6922 if test "$no_cache" != 1; then
1e6feb95 6923 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6924 fi
6925
1e6feb95 6926 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 6927 echo "$ac_t""yes" 1>&6
10f2d63a 6928 else
698dcdb6 6929 echo "$ac_t""no" 1>&6
10f2d63a 6930 fi
698dcdb6 6931
10f2d63a 6932
cbca9943 6933 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7b7a7637 6934echo "configure:6935: checking for --enable-splash" >&5
cbca9943
VZ
6935 no_cache=0
6936 # Check whether --enable-splash or --disable-splash was given.
6937if test "${enable_splash+set}" = set; then
6938 enableval="$enable_splash"
6939
6940 if test "$enableval" = yes; then
6941 ac_cv_use_splash='wxUSE_SPLASH=yes'
6942 else
6943 ac_cv_use_splash='wxUSE_SPLASH=no'
6944 fi
6945
6946else
6947
6948 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
6949 if test "x$LINE" != x ; then
6950 eval "DEFAULT_$LINE"
6951 else
6952 no_cache=1
6953 fi
6954
6955 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
6956
6957fi
6958
6959
6960 eval "$ac_cv_use_splash"
6961 if test "$no_cache" != 1; then
6962 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
6963 fi
6964
6965 if test "$wxUSE_SPLASH" = yes; then
6966 echo "$ac_t""yes" 1>&6
6967 else
6968 echo "$ac_t""no" 1>&6
6969 fi
6970
6971
698dcdb6 6972 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7b7a7637 6973echo "configure:6974: checking for --enable-textdlg" >&5
10f2d63a
VZ
6974 no_cache=0
6975 # Check whether --enable-textdlg or --disable-textdlg was given.
6976if test "${enable_textdlg+set}" = set; then
6977 enableval="$enable_textdlg"
698dcdb6 6978
10f2d63a
VZ
6979 if test "$enableval" = yes; then
6980 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6981 else
6982 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6983 fi
698dcdb6 6984
10f2d63a 6985else
698dcdb6 6986
10f2d63a
VZ
6987 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6988 if test "x$LINE" != x ; then
6989 eval "DEFAULT_$LINE"
6990 else
6991 no_cache=1
6992 fi
6993
6994 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
6995
6996fi
10f2d63a
VZ
6997
6998
6999 eval "$ac_cv_use_textdlg"
7000 if test "$no_cache" != 1; then
7001 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7002 fi
7003
7004 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 7005 echo "$ac_t""yes" 1>&6
10f2d63a 7006 else
698dcdb6 7007 echo "$ac_t""no" 1>&6
10f2d63a 7008 fi
698dcdb6 7009
10f2d63a 7010
698dcdb6 7011 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7b7a7637 7012echo "configure:7013: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7013 no_cache=0
7014 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7015if test "${enable_tipdlg+set}" = set; then
7016 enableval="$enable_tipdlg"
698dcdb6 7017
10f2d63a
VZ
7018 if test "$enableval" = yes; then
7019 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7020 else
7021 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7022 fi
698dcdb6 7023
10f2d63a 7024else
698dcdb6 7025
10f2d63a
VZ
7026 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7027 if test "x$LINE" != x ; then
7028 eval "DEFAULT_$LINE"
7029 else
7030 no_cache=1
7031 fi
7032
7033 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
7034
7035fi
10f2d63a
VZ
7036
7037
7038 eval "$ac_cv_use_tipdlg"
7039 if test "$no_cache" != 1; then
7040 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7041 fi
7042
7043 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 7044 echo "$ac_t""yes" 1>&6
10f2d63a 7045 else
698dcdb6 7046 echo "$ac_t""no" 1>&6
10f2d63a 7047 fi
698dcdb6 7048
10f2d63a 7049
698dcdb6 7050 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7b7a7637 7051echo "configure:7052: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7052 no_cache=0
7053 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7054if test "${enable_progressdlg+set}" = set; then
7055 enableval="$enable_progressdlg"
698dcdb6 7056
10f2d63a
VZ
7057 if test "$enableval" = yes; then
7058 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7059 else
7060 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7061 fi
698dcdb6 7062
10f2d63a 7063else
698dcdb6 7064
10f2d63a
VZ
7065 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7066 if test "x$LINE" != x ; then
7067 eval "DEFAULT_$LINE"
7068 else
7069 no_cache=1
7070 fi
7071
7072 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7073
7074fi
10f2d63a
VZ
7075
7076
7077 eval "$ac_cv_use_progressdlg"
7078 if test "$no_cache" != 1; then
7079 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7080 fi
7081
7082 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7083 echo "$ac_t""yes" 1>&6
10f2d63a 7084 else
698dcdb6 7085 echo "$ac_t""no" 1>&6
10f2d63a 7086 fi
698dcdb6 7087
10f2d63a 7088
b1f5d087 7089 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7b7a7637 7090echo "configure:7091: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7091 no_cache=0
7092 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7093if test "${enable_wizarddlg+set}" = set; then
7094 enableval="$enable_wizarddlg"
7095
7096 if test "$enableval" = yes; then
7097 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7098 else
7099 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7100 fi
7101
7102else
7103
7104 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7105 if test "x$LINE" != x ; then
7106 eval "DEFAULT_$LINE"
7107 else
7108 no_cache=1
7109 fi
7110
7111 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7112
7113fi
7114
7115
7116 eval "$ac_cv_use_wizarddlg"
7117 if test "$no_cache" != 1; then
7118 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7119 fi
7120
7121 if test "$wxUSE_WIZARDDLG" = yes; then
7122 echo "$ac_t""yes" 1>&6
7123 else
7124 echo "$ac_t""no" 1>&6
7125 fi
7126
7127
7128
7129
1e6feb95 7130 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7b7a7637 7131echo "configure:7132: checking for --enable-menus" >&5
1e6feb95
VZ
7132 no_cache=0
7133 # Check whether --enable-menus or --disable-menus was given.
7134if test "${enable_menus+set}" = set; then
7135 enableval="$enable_menus"
7136
7137 if test "$enableval" = yes; then
7138 ac_cv_use_menus='wxUSE_MENUS=yes'
7139 else
7140 ac_cv_use_menus='wxUSE_MENUS=no'
7141 fi
7142
7143else
7144
7145 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7146 if test "x$LINE" != x ; then
7147 eval "DEFAULT_$LINE"
7148 else
7149 no_cache=1
7150 fi
7151
7152 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7153
7154fi
7155
7156
7157 eval "$ac_cv_use_menus"
7158 if test "$no_cache" != 1; then
7159 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7160 fi
7161
7162 if test "$wxUSE_MENUS" = yes; then
7163 echo "$ac_t""yes" 1>&6
7164 else
7165 echo "$ac_t""no" 1>&6
7166 fi
7167
7168
698dcdb6 7169 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7b7a7637 7170echo "configure:7171: checking for --enable-miniframe" >&5
10f2d63a
VZ
7171 no_cache=0
7172 # Check whether --enable-miniframe or --disable-miniframe was given.
7173if test "${enable_miniframe+set}" = set; then
7174 enableval="$enable_miniframe"
698dcdb6 7175
10f2d63a
VZ
7176 if test "$enableval" = yes; then
7177 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7178 else
7179 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7180 fi
698dcdb6 7181
10f2d63a 7182else
698dcdb6 7183
10f2d63a
VZ
7184 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7185 if test "x$LINE" != x ; then
7186 eval "DEFAULT_$LINE"
7187 else
7188 no_cache=1
7189 fi
7190
7191 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7192
7193fi
10f2d63a
VZ
7194
7195
7196 eval "$ac_cv_use_miniframe"
7197 if test "$no_cache" != 1; then
7198 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7199 fi
7200
7201 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7202 echo "$ac_t""yes" 1>&6
10f2d63a 7203 else
698dcdb6 7204 echo "$ac_t""no" 1>&6
10f2d63a 7205 fi
698dcdb6 7206
10f2d63a 7207
698dcdb6 7208 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7b7a7637 7209echo "configure:7210: checking for --enable-tooltips" >&5
10f2d63a
VZ
7210 no_cache=0
7211 # Check whether --enable-tooltips or --disable-tooltips was given.
7212if test "${enable_tooltips+set}" = set; then
7213 enableval="$enable_tooltips"
698dcdb6 7214
10f2d63a
VZ
7215 if test "$enableval" = yes; then
7216 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7217 else
7218 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7219 fi
698dcdb6 7220
10f2d63a 7221else
698dcdb6 7222
10f2d63a
VZ
7223 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7224 if test "x$LINE" != x ; then
7225 eval "DEFAULT_$LINE"
7226 else
7227 no_cache=1
7228 fi
7229
7230 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7231
7232fi
10f2d63a
VZ
7233
7234
7235 eval "$ac_cv_use_tooltips"
7236 if test "$no_cache" != 1; then
7237 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7238 fi
7239
7240 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7241 echo "$ac_t""yes" 1>&6
10f2d63a 7242 else
698dcdb6 7243 echo "$ac_t""no" 1>&6
10f2d63a 7244 fi
698dcdb6 7245
10f2d63a 7246
698dcdb6 7247 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7b7a7637 7248echo "configure:7249: checking for --enable-splines" >&5
10f2d63a
VZ
7249 no_cache=0
7250 # Check whether --enable-splines or --disable-splines was given.
7251if test "${enable_splines+set}" = set; then
7252 enableval="$enable_splines"
698dcdb6 7253
10f2d63a
VZ
7254 if test "$enableval" = yes; then
7255 ac_cv_use_splines='wxUSE_SPLINES=yes'
7256 else
7257 ac_cv_use_splines='wxUSE_SPLINES=no'
7258 fi
698dcdb6 7259
10f2d63a 7260else
698dcdb6 7261
10f2d63a
VZ
7262 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7263 if test "x$LINE" != x ; then
7264 eval "DEFAULT_$LINE"
7265 else
7266 no_cache=1
7267 fi
7268
7269 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7270
7271fi
10f2d63a
VZ
7272
7273
7274 eval "$ac_cv_use_splines"
7275 if test "$no_cache" != 1; then
7276 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7277 fi
7278
7279 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7280 echo "$ac_t""yes" 1>&6
10f2d63a 7281 else
698dcdb6 7282 echo "$ac_t""no" 1>&6
10f2d63a 7283 fi
698dcdb6 7284
10f2d63a 7285
698dcdb6 7286 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7b7a7637 7287echo "configure:7288: checking for --enable-validators" >&5
10f2d63a
VZ
7288 no_cache=0
7289 # Check whether --enable-validators or --disable-validators was given.
7290if test "${enable_validators+set}" = set; then
7291 enableval="$enable_validators"
698dcdb6 7292
10f2d63a
VZ
7293 if test "$enableval" = yes; then
7294 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7295 else
7296 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7297 fi
698dcdb6 7298
10f2d63a 7299else
698dcdb6 7300
10f2d63a
VZ
7301 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7302 if test "x$LINE" != x ; then
7303 eval "DEFAULT_$LINE"
7304 else
7305 no_cache=1
7306 fi
7307
7308 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7309
7310fi
10f2d63a
VZ
7311
7312
7313 eval "$ac_cv_use_validators"
7314 if test "$no_cache" != 1; then
7315 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7316 fi
7317
7318 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7319 echo "$ac_t""yes" 1>&6
10f2d63a 7320 else
698dcdb6 7321 echo "$ac_t""no" 1>&6
10f2d63a 7322 fi
698dcdb6 7323
10f2d63a 7324
698dcdb6 7325 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7b7a7637 7326echo "configure:7327: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7327 no_cache=0
7328 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7329if test "${enable_busyinfo+set}" = set; then
7330 enableval="$enable_busyinfo"
698dcdb6 7331
10f2d63a
VZ
7332 if test "$enableval" = yes; then
7333 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7334 else
7335 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7336 fi
698dcdb6 7337
10f2d63a 7338else
698dcdb6 7339
10f2d63a
VZ
7340 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7341 if test "x$LINE" != x ; then
7342 eval "DEFAULT_$LINE"
7343 else
7344 no_cache=1
7345 fi
7346
7347 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
7348
7349fi
10f2d63a
VZ
7350
7351
7352 eval "$ac_cv_use_busyinfo"
7353 if test "$no_cache" != 1; then
7354 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7355 fi
7356
7357 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 7358 echo "$ac_t""yes" 1>&6
10f2d63a 7359 else
698dcdb6 7360 echo "$ac_t""no" 1>&6
10f2d63a 7361 fi
698dcdb6 7362
10f2d63a 7363
698dcdb6 7364 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7b7a7637 7365echo "configure:7366: checking for --enable-joystick" >&5
f6bcfd97
BP
7366 no_cache=0
7367 # Check whether --enable-joystick or --disable-joystick was given.
7368if test "${enable_joystick+set}" = set; then
7369 enableval="$enable_joystick"
698dcdb6 7370
f6bcfd97
BP
7371 if test "$enableval" = yes; then
7372 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7373 else
7374 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7375 fi
698dcdb6 7376
f6bcfd97 7377else
698dcdb6 7378
f6bcfd97
BP
7379 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7380 if test "x$LINE" != x ; then
7381 eval "DEFAULT_$LINE"
7382 else
7383 no_cache=1
7384 fi
7385
7386 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
7387
7388fi
f6bcfd97
BP
7389
7390
7391 eval "$ac_cv_use_joystick"
7392 if test "$no_cache" != 1; then
7393 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7394 fi
7395
7396 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 7397 echo "$ac_t""yes" 1>&6
f6bcfd97 7398 else
698dcdb6 7399 echo "$ac_t""no" 1>&6
f6bcfd97 7400 fi
698dcdb6
VZ
7401
7402
1e6feb95 7403 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
7b7a7637 7404echo "configure:7405: checking for --enable-metafile" >&5
1e6feb95
VZ
7405 no_cache=0
7406 # Check whether --enable-metafile or --disable-metafile was given.
7407if test "${enable_metafile+set}" = set; then
7408 enableval="$enable_metafile"
7409
7410 if test "$enableval" = yes; then
7411 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7412 else
7413 ac_cv_use_metafile='wxUSE_METAFILE=no'
7414 fi
7415
7416else
7417
7418 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7419 if test "x$LINE" != x ; then
7420 eval "DEFAULT_$LINE"
7421 else
7422 no_cache=1
7423 fi
7424
7425 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7426
7427fi
7428
7429
7430 eval "$ac_cv_use_metafile"
7431 if test "$no_cache" != 1; then
7432 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7433 fi
7434
7435 if test "$wxUSE_METAFILE" = yes; then
7436 echo "$ac_t""yes" 1>&6
7437 else
7438 echo "$ac_t""no" 1>&6
7439 fi
7440
7441
24fd6d87 7442 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
7b7a7637 7443echo "configure:7444: checking for --enable-dragimage" >&5
24fd6d87
VZ
7444 no_cache=0
7445 # Check whether --enable-dragimage or --disable-dragimage was given.
7446if test "${enable_dragimage+set}" = set; then
7447 enableval="$enable_dragimage"
7448
7449 if test "$enableval" = yes; then
7450 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7451 else
7452 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7453 fi
7454
7455else
7456
7457 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7458 if test "x$LINE" != x ; then
7459 eval "DEFAULT_$LINE"
7460 else
7461 no_cache=1
7462 fi
7463
7464 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7465
7466fi
7467
7468
7469 eval "$ac_cv_use_dragimage"
7470 if test "$no_cache" != 1; then
7471 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7472 fi
7473
7474 if test "$wxUSE_DRAGIMAGE" = yes; then
7475 echo "$ac_t""yes" 1>&6
7476 else
7477 echo "$ac_t""no" 1>&6
7478 fi
7479
7480
10f2d63a 7481
698dcdb6 7482
edae8572 7483 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
7b7a7637 7484echo "configure:7485: checking for --enable-palette" >&5
edae8572
VZ
7485 no_cache=0
7486 # Check whether --enable-palette or --disable-palette was given.
7487if test "${enable_palette+set}" = set; then
7488 enableval="$enable_palette"
7489
7490 if test "$enableval" = yes; then
7491 ac_cv_use_palette='wxUSE_PALETTE=yes'
7492 else
7493 ac_cv_use_palette='wxUSE_PALETTE=no'
7494 fi
7495
7496else
7497
7498 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
7499 if test "x$LINE" != x ; then
7500 eval "DEFAULT_$LINE"
7501 else
7502 no_cache=1
7503 fi
7504
7505 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
7506
7507fi
7508
7509
7510 eval "$ac_cv_use_palette"
7511 if test "$no_cache" != 1; then
7512 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
7513 fi
7514
7515 if test "$wxUSE_PALETTE" = yes; then
7516 echo "$ac_t""yes" 1>&6
7517 else
7518 echo "$ac_t""no" 1>&6
7519 fi
7520
7521
698dcdb6 7522 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
7b7a7637 7523echo "configure:7524: checking for --enable-image" >&5
0046ff7c
VS
7524 no_cache=0
7525 # Check whether --enable-image or --disable-image was given.
7526if test "${enable_image+set}" = set; then
7527 enableval="$enable_image"
698dcdb6 7528
0046ff7c
VS
7529 if test "$enableval" = yes; then
7530 ac_cv_use_image='wxUSE_IMAGE=yes'
7531 else
7532 ac_cv_use_image='wxUSE_IMAGE=no'
7533 fi
698dcdb6 7534
0046ff7c 7535else
698dcdb6 7536
0046ff7c
VS
7537 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7538 if test "x$LINE" != x ; then
7539 eval "DEFAULT_$LINE"
7540 else
7541 no_cache=1
7542 fi
7543
7544 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
7545
7546fi
0046ff7c
VS
7547
7548
7549 eval "$ac_cv_use_image"
7550 if test "$no_cache" != 1; then
7551 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7552 fi
7553
7554 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 7555 echo "$ac_t""yes" 1>&6
0046ff7c 7556 else
698dcdb6 7557 echo "$ac_t""no" 1>&6
0046ff7c 7558 fi
698dcdb6 7559
0046ff7c 7560
698dcdb6 7561 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7b7a7637 7562echo "configure:7563: checking for --enable-gif" >&5
10f2d63a
VZ
7563 no_cache=0
7564 # Check whether --enable-gif or --disable-gif was given.
7565if test "${enable_gif+set}" = set; then
7566 enableval="$enable_gif"
698dcdb6 7567
10f2d63a
VZ
7568 if test "$enableval" = yes; then
7569 ac_cv_use_gif='wxUSE_GIF=yes'
7570 else
7571 ac_cv_use_gif='wxUSE_GIF=no'
7572 fi
698dcdb6 7573
10f2d63a 7574else
698dcdb6 7575
10f2d63a
VZ
7576 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7577 if test "x$LINE" != x ; then
7578 eval "DEFAULT_$LINE"
7579 else
7580 no_cache=1
7581 fi
7582
7583 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
7584
7585fi
10f2d63a
VZ
7586
7587
7588 eval "$ac_cv_use_gif"
7589 if test "$no_cache" != 1; then
7590 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7591 fi
7592
7593 if test "$wxUSE_GIF" = yes; then
698dcdb6 7594 echo "$ac_t""yes" 1>&6
10f2d63a 7595 else
698dcdb6 7596 echo "$ac_t""no" 1>&6
10f2d63a 7597 fi
698dcdb6 7598
10f2d63a 7599
698dcdb6 7600 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
7b7a7637 7601echo "configure:7602: checking for --enable-pcx" >&5
10f2d63a
VZ
7602 no_cache=0
7603 # Check whether --enable-pcx or --disable-pcx was given.
7604if test "${enable_pcx+set}" = set; then
7605 enableval="$enable_pcx"
698dcdb6 7606
10f2d63a
VZ
7607 if test "$enableval" = yes; then
7608 ac_cv_use_pcx='wxUSE_PCX=yes'
7609 else
7610 ac_cv_use_pcx='wxUSE_PCX=no'
7611 fi
698dcdb6 7612
10f2d63a 7613else
698dcdb6 7614
10f2d63a
VZ
7615 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7616 if test "x$LINE" != x ; then
7617 eval "DEFAULT_$LINE"
7618 else
7619 no_cache=1
7620 fi
7621
7622 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
7623
7624fi
10f2d63a
VZ
7625
7626
7627 eval "$ac_cv_use_pcx"
7628 if test "$no_cache" != 1; then
7629 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7630 fi
7631
7632 if test "$wxUSE_PCX" = yes; then
698dcdb6 7633 echo "$ac_t""yes" 1>&6
10f2d63a 7634 else
698dcdb6 7635 echo "$ac_t""no" 1>&6
10f2d63a 7636 fi
698dcdb6 7637
10f2d63a 7638
698dcdb6 7639 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7b7a7637 7640echo "configure:7641: checking for --enable-pnm" >&5
10f2d63a
VZ
7641 no_cache=0
7642 # Check whether --enable-pnm or --disable-pnm was given.
7643if test "${enable_pnm+set}" = set; then
7644 enableval="$enable_pnm"
698dcdb6 7645
10f2d63a
VZ
7646 if test "$enableval" = yes; then
7647 ac_cv_use_pnm='wxUSE_PNM=yes'
7648 else
7649 ac_cv_use_pnm='wxUSE_PNM=no'
7650 fi
698dcdb6 7651
10f2d63a 7652else
698dcdb6 7653
10f2d63a
VZ
7654 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7655 if test "x$LINE" != x ; then
7656 eval "DEFAULT_$LINE"
7657 else
7658 no_cache=1
7659 fi
7660
7661 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
7662
7663fi
10f2d63a
VZ
7664
7665
7666 eval "$ac_cv_use_pnm"
7667 if test "$no_cache" != 1; then
7668 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7669 fi
7670
7671 if test "$wxUSE_PNM" = yes; then
698dcdb6 7672 echo "$ac_t""yes" 1>&6
10f2d63a 7673 else
698dcdb6 7674 echo "$ac_t""no" 1>&6
10f2d63a 7675 fi
698dcdb6 7676
10f2d63a 7677
698dcdb6 7678 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7b7a7637 7679echo "configure:7680: checking for --enable-pnm" >&5
0046ff7c
VS
7680 no_cache=0
7681 # Check whether --enable-pnm or --disable-pnm was given.
7682if test "${enable_pnm+set}" = set; then
7683 enableval="$enable_pnm"
698dcdb6 7684
0046ff7c
VS
7685 if test "$enableval" = yes; then
7686 ac_cv_use_pnm='wxUSE_XPM=yes'
7687 else
7688 ac_cv_use_pnm='wxUSE_XPM=no'
7689 fi
698dcdb6 7690
0046ff7c 7691else
698dcdb6 7692
0046ff7c
VS
7693 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7694 if test "x$LINE" != x ; then
7695 eval "DEFAULT_$LINE"
7696 else
7697 no_cache=1
7698 fi
7699
7700 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
7701
7702fi
0046ff7c
VS
7703
7704
7705 eval "$ac_cv_use_pnm"
7706 if test "$no_cache" != 1; then
7707 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7708 fi
7709
7710 if test "$wxUSE_XPM" = yes; then
698dcdb6 7711 echo "$ac_t""yes" 1>&6
0046ff7c 7712 else
698dcdb6 7713 echo "$ac_t""no" 1>&6
0046ff7c 7714 fi
698dcdb6 7715
0046ff7c 7716
b12915c1
VZ
7717fi
7718
698dcdb6 7719
10f2d63a
VZ
7720 echo "saving argument cache $wx_arg_cache_file"
7721 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 7722
10f2d63a 7723
698dcdb6
VZ
7724
7725echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7b7a7637 7726echo "configure:7727: checking for toolkit" >&5
10f2d63a
VZ
7727
7728if test "$wxUSE_GUI" = "yes"; then
7729
3a922bb4
RL
7730 if test "$USE_BEOS" = 1; then
7731 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7732 fi
b12915c1 7733
3a922bb4
RL
7734 if test "$TOOLKIT_GIVEN" = 1; then
7735 for toolkit in `echo $ALL_TOOLKITS`; do
7736 var=wxUSE_$toolkit
7737 eval "value=\$${var}"
7738 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7739 done
10f2d63a 7740 else
3a922bb4
RL
7741 for toolkit in `echo $ALL_TOOLKITS`; do
7742 if test "$has_toolkit_in_cache" != 1; then
7743 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7744 else
7745 var=DEFAULT_wxUSE_$toolkit
7746 fi
7747 eval "wxUSE_$toolkit=\$${var}"
7748 done
10f2d63a 7749 fi
10f2d63a 7750
3a922bb4
RL
7751 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
7752 + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} \
7753 + ${wxUSE_MGL:-0}`
10f2d63a 7754
3a922bb4
RL
7755 case "${host}" in
7756 *-pc-os2_emx )
7757 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7758 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7759 LEX_STEM="lexyy"
7760 ;;
7761 *)
7762 PATH_IFS=':'
7763 LEX_STEM="lex.yy"
7764 ;;
7765 esac
10f2d63a 7766
3a922bb4
RL
7767 case "$NUM_TOOLKITS" in
7768 1)
7769 ;;
7770 0)
7771 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7772 ;;
7773 *)
7774 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7775 esac
10f2d63a 7776
3a922bb4
RL
7777 for toolkit in `echo $ALL_TOOLKITS`; do
7778 var=wxUSE_$toolkit
7779 eval "value=\$${var}"
7780 if test "x$value" != x; then
7781 cache_var=CACHE_$toolkit
7782 eval "cache=\$${cache_var}"
7783 if test "$cache" = 1; then
7784 echo "$var=$value" >> ${wx_arg_cache_file}
7785 fi
7786 if test "$value" = 1; then
7787 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7788 echo "$ac_t""$toolkit_echo" 1>&6
7789 fi
7790 fi
7791 done
10f2d63a 7792else
cf27ef00 7793 PATH_IFS=':'
3a922bb4 7794 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
7795fi
7796
698dcdb6
VZ
7797
7798cat > confcache <<\EOF
10f2d63a
VZ
7799# This file is a shell script that caches the results of configure
7800# tests run on this system so they can be shared between configure
698dcdb6
VZ
7801# scripts and configure runs. It is not useful on other systems.
7802# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 7803#
698dcdb6
VZ
7804# By default, configure uses ./config.cache as the cache file,
7805# creating it if it does not exist already. You can give configure
7806# the --cache-file=FILE option to use a different cache file; that is
7807# what configure does when it calls configure scripts in
7808# subdirectories, so they share the cache.
7809# Giving --cache-file=/dev/null disables caching, for debugging configure.
7810# config.status only pays attention to the cache file if you give it the
7811# --recheck option to rerun configure.
10f2d63a 7812#
698dcdb6 7813EOF
10f2d63a
VZ
7814# The following way of writing the cache mishandles newlines in values,
7815# but we know of no workaround that is simple, portable, and efficient.
7816# So, don't put newlines in cache variables' values.
7817# Ultrix sh set writes to stderr and can't be redirected directly,
7818# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
7819(set) 2>&1 |
7820 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7821 *ac_space=\ *)
7822 # `set' does not quote correctly, so add quotes (double-quote substitution
7823 # turns \\\\ into \\, and sed turns \\ into \).
7824 sed -n \
7825 -e "s/'/'\\\\''/g" \
7826 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7827 ;;
7828 *)
7829 # `set' quotes correctly as required by POSIX, so do not add quotes.
7830 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7831 ;;
7832 esac >> confcache
7833if cmp -s $cache_file confcache; then
7834 :
7835else
10f2d63a 7836 if test -w $cache_file; then
698dcdb6
VZ
7837 echo "updating cache $cache_file"
7838 cat confcache > $cache_file
10f2d63a
VZ
7839 else
7840 echo "not updating unwritable cache $cache_file"
7841 fi
7842fi
7843rm -f confcache
7844
698dcdb6 7845
e59890c3 7846if test "$build" != "$host" ; then
3a922bb4
RL
7847 if test "$USE_WIN32" = 1 ; then
7848 CC=$host_alias-gcc
7849 CXX=$host_alias-c++
7850 AR=$host_alias-ar
7851 RANLIB=$host_alias-ranlib
7852 DLLTOOL=$host_alias-dlltool
7853 RESCOMP=$host_alias-windres
7854 LD=$host_alias-ld
7855 NM=$host_alias-nm
7856 STRIP=$host_alias-strip
7857 else
7858 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
7859 fi
10f2d63a
VZ
7860fi
7861
698dcdb6 7862# Extract the first word of "gcc", so it can be a program name with args.
1e487827 7863set dummy gcc; ac_word=$2
698dcdb6 7864echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7b7a7637 7865echo "configure:7866: checking for $ac_word" >&5
698dcdb6
VZ
7866if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7867 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
7868else
7869 if test -n "$CC"; then
7870 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 7871else
698dcdb6
VZ
7872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7873 ac_dummy="$PATH"
7874 for ac_dir in $ac_dummy; do
7875 test -z "$ac_dir" && ac_dir=.
7876 if test -f $ac_dir/$ac_word; then
7877 ac_cv_prog_CC="gcc"
7878 break
7879 fi
7880 done
7881 IFS="$ac_save_ifs"
10f2d63a 7882fi
6232543b 7883fi
698dcdb6 7884CC="$ac_cv_prog_CC"
6232543b 7885if test -n "$CC"; then
698dcdb6 7886 echo "$ac_t""$CC" 1>&6
1e487827 7887else
698dcdb6 7888 echo "$ac_t""no" 1>&6
1e487827 7889fi
6232543b 7890
1e487827
VS
7891if test -z "$CC"; then
7892 # Extract the first word of "cc", so it can be a program name with args.
7893set dummy cc; ac_word=$2
698dcdb6 7894echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7b7a7637 7895echo "configure:7896: checking for $ac_word" >&5
698dcdb6
VZ
7896if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7897 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7898else
7899 if test -n "$CC"; then
7900 ac_cv_prog_CC="$CC" # Let the user override the test.
7901else
698dcdb6 7902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 7903 ac_prog_rejected=no
698dcdb6
VZ
7904 ac_dummy="$PATH"
7905 for ac_dir in $ac_dummy; do
7906 test -z "$ac_dir" && ac_dir=.
7907 if test -f $ac_dir/$ac_word; then
7908 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7909 ac_prog_rejected=yes
7910 continue
7911 fi
7912 ac_cv_prog_CC="cc"
7913 break
7914 fi
7915 done
7916 IFS="$ac_save_ifs"
1e487827
VS
7917if test $ac_prog_rejected = yes; then
7918 # We found a bogon in the path, so make sure we never use it.
7919 set dummy $ac_cv_prog_CC
7920 shift
698dcdb6 7921 if test $# -gt 0; then
1e487827
VS
7922 # We chose a different compiler from the bogus one.
7923 # However, it has the same basename, so the bogon will be chosen
7924 # first if we set CC to just the basename; use the full file name.
7925 shift
698dcdb6 7926 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
7927 shift
7928 ac_cv_prog_CC="$@"
703e0a69 7929 fi
1e487827
VS
7930fi
7931fi
7932fi
698dcdb6 7933CC="$ac_cv_prog_CC"
1e487827 7934if test -n "$CC"; then
698dcdb6 7935 echo "$ac_t""$CC" 1>&6
703e0a69 7936else
698dcdb6 7937 echo "$ac_t""no" 1>&6
703e0a69 7938fi
1e487827 7939
698dcdb6
VZ
7940 if test -z "$CC"; then
7941 case "`uname -s`" in
7942 *win32* | *WIN32*)
7943 # Extract the first word of "cl", so it can be a program name with args.
7944set dummy cl; ac_word=$2
7945echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7b7a7637 7946echo "configure:7947: checking for $ac_word" >&5
698dcdb6
VZ
7947if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7948 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7949else
7950 if test -n "$CC"; then
7951 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 7952else
698dcdb6
VZ
7953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7954 ac_dummy="$PATH"
7955 for ac_dir in $ac_dummy; do
7956 test -z "$ac_dir" && ac_dir=.
7957 if test -f $ac_dir/$ac_word; then
7958 ac_cv_prog_CC="cl"
7959 break
7960 fi
7961 done
7962 IFS="$ac_save_ifs"
703e0a69 7963fi
1e487827 7964fi
698dcdb6 7965CC="$ac_cv_prog_CC"
1e487827 7966if test -n "$CC"; then
698dcdb6 7967 echo "$ac_t""$CC" 1>&6
1e487827 7968else
698dcdb6 7969 echo "$ac_t""no" 1>&6
1e487827 7970fi
698dcdb6
VZ
7971 ;;
7972 esac
7973 fi
7974 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
7975fi
7976
698dcdb6 7977echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7b7a7637 7978echo "configure:7979: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 7979
698dcdb6
VZ
7980ac_ext=c
7981# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7982ac_cpp='$CPP $CPPFLAGS'
7983ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7984ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7985cross_compiling=$ac_cv_prog_cc_cross
6232543b 7986
698dcdb6 7987cat > conftest.$ac_ext << EOF
1e487827 7988
7b7a7637 7989#line 7990 "configure"
1e487827
VS
7990#include "confdefs.h"
7991
698dcdb6
VZ
7992main(){return(0);}
7993EOF
7b7a7637 7994if { (eval echo configure:7995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
7995 ac_cv_prog_cc_works=yes
7996 # If we can't run a trivial program, we are probably using a cross compiler.
7997 if (./conftest; exit) 2>/dev/null; then
7998 ac_cv_prog_cc_cross=no
7999 else
8000 ac_cv_prog_cc_cross=yes
8001 fi
8002else
8003 echo "configure: failed program was:" >&5
8004 cat conftest.$ac_ext >&5
8005 ac_cv_prog_cc_works=no
8006fi
8007rm -fr conftest*
8008ac_ext=c
8009# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8010ac_cpp='$CPP $CPPFLAGS'
8011ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8012ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8013cross_compiling=$ac_cv_prog_cc_cross
8014
8015echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8016if test $ac_cv_prog_cc_works = no; then
8017 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8018fi
8019echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7b7a7637 8020echo "configure:8021: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8021echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8022cross_compiling=$ac_cv_prog_cc_cross
8023
8024echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
7b7a7637 8025echo "configure:8026: checking whether we are using GNU C" >&5
698dcdb6
VZ
8026if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8027 echo $ac_n "(cached) $ac_c" 1>&6
8028else
8029 cat > conftest.c <<EOF
8030#ifdef __GNUC__
8031 yes;
1e487827 8032#endif
698dcdb6 8033EOF
7b7a7637 8034if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8035 ac_cv_prog_gcc=yes
8036else
8037 ac_cv_prog_gcc=no
8038fi
8039fi
1e487827 8040
698dcdb6 8041echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 8042
698dcdb6
VZ
8043if test $ac_cv_prog_gcc = yes; then
8044 GCC=yes
8045else
8046 GCC=
8047fi
1e487827 8048
698dcdb6
VZ
8049ac_test_CFLAGS="${CFLAGS+set}"
8050ac_save_CFLAGS="$CFLAGS"
8051CFLAGS=
8052echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
7b7a7637 8053echo "configure:8054: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
8054if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8055 echo $ac_n "(cached) $ac_c" 1>&6
8056else
8057 echo 'void f(){}' > conftest.c
8058if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8059 ac_cv_prog_cc_g=yes
8060else
698dcdb6 8061 ac_cv_prog_cc_g=no
10f2d63a 8062fi
698dcdb6
VZ
8063rm -f conftest*
8064
10f2d63a 8065fi
698dcdb6
VZ
8066
8067echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 8068if test "$ac_test_CFLAGS" = set; then
698dcdb6 8069 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
8070elif test $ac_cv_prog_cc_g = yes; then
8071 if test "$GCC" = yes; then
8072 CFLAGS="-g -O2"
8073 else
8074 CFLAGS="-g"
8075 fi
8076else
8077 if test "$GCC" = yes; then
8078 CFLAGS="-O2"
8079 else
8080 CFLAGS=
8081 fi
8082fi
8083
8084
8085CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8086
698dcdb6 8087echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7b7a7637 8088echo "configure:8089: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8089# On Suns, sometimes $CPP names a directory.
8090if test -n "$CPP" && test -d "$CPP"; then
8091 CPP=
8092fi
8093if test -z "$CPP"; then
698dcdb6
VZ
8094if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8095 echo $ac_n "(cached) $ac_c" 1>&6
8096else
8097 # This must be in double quotes, not single quotes, because CPP may get
8098 # substituted into the Makefile and "${CC-cc}" will confuse make.
8099 CPP="${CC-cc} -E"
10f2d63a 8100 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8101 # not just through cpp.
8102 cat > conftest.$ac_ext <<EOF
7b7a7637 8103#line 8104 "configure"
10f2d63a
VZ
8104#include "confdefs.h"
8105#include <assert.h>
698dcdb6
VZ
8106Syntax Error
8107EOF
8108ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7b7a7637 8109{ (eval echo configure:8110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8110ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8111if test -z "$ac_err"; then
10f2d63a
VZ
8112 :
8113else
698dcdb6
VZ
8114 echo "$ac_err" >&5
8115 echo "configure: failed program was:" >&5
10f2d63a 8116 cat conftest.$ac_ext >&5
698dcdb6
VZ
8117 rm -rf conftest*
8118 CPP="${CC-cc} -E -traditional-cpp"
8119 cat > conftest.$ac_ext <<EOF
7b7a7637 8120#line 8121 "configure"
10f2d63a 8121#include "confdefs.h"
698dcdb6
VZ
8122#include <assert.h>
8123Syntax Error
8124EOF
8125ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7b7a7637 8126{ (eval echo configure:8127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8127ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8128if test -z "$ac_err"; then
8129 :
10f2d63a 8130else
698dcdb6
VZ
8131 echo "$ac_err" >&5
8132 echo "configure: failed program was:" >&5
10f2d63a 8133 cat conftest.$ac_ext >&5
698dcdb6
VZ
8134 rm -rf conftest*
8135 CPP="${CC-cc} -nologo -E"
8136 cat > conftest.$ac_ext <<EOF
7b7a7637 8137#line 8138 "configure"
10f2d63a
VZ
8138#include "confdefs.h"
8139#include <assert.h>
698dcdb6
VZ
8140Syntax Error
8141EOF
8142ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7b7a7637 8143{ (eval echo configure:8144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8144ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8145if test -z "$ac_err"; then
10f2d63a
VZ
8146 :
8147else
698dcdb6
VZ
8148 echo "$ac_err" >&5
8149 echo "configure: failed program was:" >&5
10f2d63a 8150 cat conftest.$ac_ext >&5
698dcdb6
VZ
8151 rm -rf conftest*
8152 CPP=/lib/cpp
10f2d63a 8153fi
698dcdb6 8154rm -f conftest*
10f2d63a 8155fi
698dcdb6 8156rm -f conftest*
703e0a69 8157fi
698dcdb6
VZ
8158rm -f conftest*
8159 ac_cv_prog_CPP="$CPP"
8160fi
8161 CPP="$ac_cv_prog_CPP"
10f2d63a 8162else
698dcdb6 8163 ac_cv_prog_CPP="$CPP"
10f2d63a 8164fi
698dcdb6 8165echo "$ac_t""$CPP" 1>&6
10f2d63a 8166
698dcdb6
VZ
8167if test $ac_cv_prog_gcc = yes; then
8168 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
7b7a7637 8169echo "configure:8170: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8170if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8171 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8172else
8173 ac_pattern="Autoconf.*'x'"
698dcdb6 8174 cat > conftest.$ac_ext <<EOF
7b7a7637 8175#line 8176 "configure"
10f2d63a
VZ
8176#include "confdefs.h"
8177#include <sgtty.h>
8178Autoconf TIOCGETP
698dcdb6 8179EOF
10f2d63a
VZ
8180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8181 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8182 rm -rf conftest*
10f2d63a
VZ
8183 ac_cv_prog_gcc_traditional=yes
8184else
698dcdb6 8185 rm -rf conftest*
10f2d63a
VZ
8186 ac_cv_prog_gcc_traditional=no
8187fi
8188rm -f conftest*
8189
698dcdb6 8190
10f2d63a 8191 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8192 cat > conftest.$ac_ext <<EOF
7b7a7637 8193#line 8194 "configure"
10f2d63a
VZ
8194#include "confdefs.h"
8195#include <termio.h>
8196Autoconf TCGETA
698dcdb6 8197EOF
10f2d63a
VZ
8198if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8199 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8200 rm -rf conftest*
10f2d63a
VZ
8201 ac_cv_prog_gcc_traditional=yes
8202fi
8203rm -f conftest*
8204
8205 fi
8206fi
698dcdb6
VZ
8207
8208echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8209 if test $ac_cv_prog_gcc_traditional = yes; then
8210 CC="$CC -traditional"
8211 fi
8212fi
8213
703e0a69 8214
698dcdb6
VZ
8215
8216ac_ext=C
8217# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8218ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8219ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8220ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8221cross_compiling=$ac_cv_prog_cxx_cross
8222
8223
8224for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8225do
8226# Extract the first word of "$ac_prog", so it can be a program name with args.
8227set dummy $ac_prog; ac_word=$2
8228echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7b7a7637 8229echo "configure:8230: checking for $ac_word" >&5
698dcdb6
VZ
8230if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8231 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8232else
8233 if test -n "$CXX"; then
8234 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8235else
698dcdb6
VZ
8236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8237 ac_dummy="$PATH"
8238 for ac_dir in $ac_dummy; do
8239 test -z "$ac_dir" && ac_dir=.
8240 if test -f $ac_dir/$ac_word; then
8241 ac_cv_prog_CXX="$ac_prog"
8242 break
8243 fi
8244 done
8245 IFS="$ac_save_ifs"
10f2d63a
VZ
8246fi
8247fi
698dcdb6 8248CXX="$ac_cv_prog_CXX"
10f2d63a 8249if test -n "$CXX"; then
698dcdb6 8250 echo "$ac_t""$CXX" 1>&6
10f2d63a 8251else
698dcdb6 8252 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8253fi
8254
698dcdb6 8255test -n "$CXX" && break
10f2d63a 8256done
698dcdb6 8257test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
8258
8259
698dcdb6 8260echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7b7a7637 8261echo "configure:8262: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 8262
698dcdb6
VZ
8263ac_ext=C
8264# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8265ac_cpp='$CXXCPP $CPPFLAGS'
8266ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8267ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8268cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 8269
698dcdb6
VZ
8270cat > conftest.$ac_ext << EOF
8271
7b7a7637 8272#line 8273 "configure"
10f2d63a
VZ
8273#include "confdefs.h"
8274
698dcdb6
VZ
8275int main(){return(0);}
8276EOF
7b7a7637 8277if { (eval echo configure:8278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8278 ac_cv_prog_cxx_works=yes
8279 # If we can't run a trivial program, we are probably using a cross compiler.
8280 if (./conftest; exit) 2>/dev/null; then
8281 ac_cv_prog_cxx_cross=no
8282 else
8283 ac_cv_prog_cxx_cross=yes
8284 fi
8285else
8286 echo "configure: failed program was:" >&5
8287 cat conftest.$ac_ext >&5
8288 ac_cv_prog_cxx_works=no
8289fi
8290rm -fr conftest*
8291ac_ext=C
8292# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8293ac_cpp='$CXXCPP $CPPFLAGS'
8294ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8295ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8296cross_compiling=$ac_cv_prog_cxx_cross
8297
8298echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8299if test $ac_cv_prog_cxx_works = no; then
8300 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8301fi
8302echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7b7a7637 8303echo "configure:8304: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8304echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8305cross_compiling=$ac_cv_prog_cxx_cross
8306
8307echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
7b7a7637 8308echo "configure:8309: checking whether we are using GNU C++" >&5
698dcdb6
VZ
8309if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8310 echo $ac_n "(cached) $ac_c" 1>&6
8311else
8312 cat > conftest.C <<EOF
8313#ifdef __GNUC__
8314 yes;
10f2d63a 8315#endif
698dcdb6 8316EOF
7b7a7637 8317if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8318 ac_cv_prog_gxx=yes
8319else
8320 ac_cv_prog_gxx=no
8321fi
8322fi
10f2d63a 8323
698dcdb6 8324echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 8325
698dcdb6
VZ
8326if test $ac_cv_prog_gxx = yes; then
8327 GXX=yes
8328else
8329 GXX=
8330fi
10f2d63a 8331
698dcdb6
VZ
8332ac_test_CXXFLAGS="${CXXFLAGS+set}"
8333ac_save_CXXFLAGS="$CXXFLAGS"
8334CXXFLAGS=
8335echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
7b7a7637 8336echo "configure:8337: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
8337if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8338 echo $ac_n "(cached) $ac_c" 1>&6
8339else
8340 echo 'void f(){}' > conftest.cc
8341if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
8342 ac_cv_prog_cxx_g=yes
8343else
698dcdb6 8344 ac_cv_prog_cxx_g=no
10f2d63a 8345fi
698dcdb6
VZ
8346rm -f conftest*
8347
10f2d63a 8348fi
698dcdb6
VZ
8349
8350echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 8351if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 8352 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
8353elif test $ac_cv_prog_cxx_g = yes; then
8354 if test "$GXX" = yes; then
8355 CXXFLAGS="-g -O2"
8356 else
8357 CXXFLAGS="-g"
8358 fi
8359else
8360 if test "$GXX" = yes; then
8361 CXXFLAGS="-O2"
8362 else
8363 CXXFLAGS=
8364 fi
8365fi
8366
8367
10f2d63a
VZ
8368CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8369
8370ac_ext=c
698dcdb6 8371# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 8372ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
8373ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8374ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8375cross_compiling=$ac_cv_prog_cc_cross
8376
8377
8378# Extract the first word of "ranlib", so it can be a program name with args.
8379set dummy ranlib; ac_word=$2
8380echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7b7a7637 8381echo "configure:8382: checking for $ac_word" >&5
698dcdb6
VZ
8382if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8383 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8384else
8385 if test -n "$RANLIB"; then
8386 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8387else
698dcdb6
VZ
8388 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8389 ac_dummy="$PATH"
8390 for ac_dir in $ac_dummy; do
8391 test -z "$ac_dir" && ac_dir=.
8392 if test -f $ac_dir/$ac_word; then
8393 ac_cv_prog_RANLIB="ranlib"
8394 break
8395 fi
8396 done
8397 IFS="$ac_save_ifs"
8398 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
8399fi
8400fi
698dcdb6 8401RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 8402if test -n "$RANLIB"; then
698dcdb6 8403 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 8404else
698dcdb6 8405 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8406fi
8407
8408
8409# Extract the first word of "ar", so it can be a program name with args.
8410set dummy ar; ac_word=$2
698dcdb6 8411echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7b7a7637 8412echo "configure:8413: checking for $ac_word" >&5
698dcdb6
VZ
8413if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8414 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8415else
8416 if test -n "$AR"; then
8417 ac_cv_prog_AR="$AR" # Let the user override the test.
8418else
698dcdb6
VZ
8419 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8420 ac_dummy="$PATH"
8421 for ac_dir in $ac_dummy; do
8422 test -z "$ac_dir" && ac_dir=.
8423 if test -f $ac_dir/$ac_word; then
8424 ac_cv_prog_AR="ar"
8425 break
8426 fi
8427 done
8428 IFS="$ac_save_ifs"
10f2d63a
VZ
8429 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8430fi
8431fi
698dcdb6 8432AR="$ac_cv_prog_AR"
10f2d63a 8433if test -n "$AR"; then
698dcdb6 8434 echo "$ac_t""$AR" 1>&6
10f2d63a 8435else
698dcdb6 8436 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8437fi
8438
698dcdb6 8439
10f2d63a
VZ
8440# Find a good install program. We prefer a C program (faster),
8441# so one script is as good as another. But avoid the broken or
8442# incompatible versions:
8443# SysV /etc/install, /usr/sbin/install
8444# SunOS /usr/etc/install
8445# IRIX /sbin/install
8446# AIX /bin/install
8447# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8448# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8449# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8450# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 8451echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
7b7a7637 8452echo "configure:8453: checking for a BSD compatible install" >&5
10f2d63a 8453if test -z "$INSTALL"; then
698dcdb6
VZ
8454if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8455 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8456else
698dcdb6 8457 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
8458 for ac_dir in $PATH; do
8459 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
8460 case "$ac_dir/" in
8461 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
8462 *)
8463 # OSF1 and SCO ODT 3.0 have their own names for install.
8464 # Don't use installbsd from OSF since it installs stuff as root
8465 # by default.
8466 for ac_prog in ginstall scoinst install; do
698dcdb6 8467 if test -f $ac_dir/$ac_prog; then
10f2d63a 8468 if test $ac_prog = install &&
698dcdb6 8469 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
8470 # AIX install. It has an incompatible calling convention.
8471 :
8472 else
8473 ac_cv_path_install="$ac_dir/$ac_prog -c"
8474 break 2
8475 fi
8476 fi
8477 done
8478 ;;
8479 esac
8480 done
698dcdb6 8481 IFS="$ac_save_IFS"
10f2d63a
VZ
8482
8483fi
8484 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 8485 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
8486 else
8487 # As a last resort, use the slow shell script. We don't cache a
8488 # path for INSTALL within a source directory, because that will
8489 # break other packages using the cache if that directory is
8490 # removed, or if the path is relative.
698dcdb6 8491 INSTALL="$ac_install_sh"
10f2d63a
VZ
8492 fi
8493fi
698dcdb6 8494echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
8495
8496# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8497# It thinks the first close brace ends the variable substitution.
8498test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8499
698dcdb6 8500test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
8501
8502test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8503
698dcdb6 8504
10f2d63a
VZ
8505# Extract the first word of "strip", so it can be a program name with args.
8506set dummy strip; ac_word=$2
698dcdb6 8507echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7b7a7637 8508echo "configure:8509: checking for $ac_word" >&5
698dcdb6
VZ
8509if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8510 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8511else
8512 if test -n "$STRIP"; then
8513 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8514else
698dcdb6
VZ
8515 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8516 ac_dummy="$PATH"
8517 for ac_dir in $ac_dummy; do
8518 test -z "$ac_dir" && ac_dir=.
8519 if test -f $ac_dir/$ac_word; then
8520 ac_cv_prog_STRIP="strip"
8521 break
8522 fi
8523 done
8524 IFS="$ac_save_ifs"
10f2d63a
VZ
8525 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8526fi
8527fi
698dcdb6 8528STRIP="$ac_cv_prog_STRIP"
10f2d63a 8529if test -n "$STRIP"; then
698dcdb6 8530 echo "$ac_t""$STRIP" 1>&6
10f2d63a 8531else
698dcdb6 8532 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8533fi
8534
698dcdb6
VZ
8535
8536echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
7b7a7637 8537echo "configure:8538: checking make for VPATH support" >&5
10f2d63a
VZ
8538cat - << EOF > confMake
8539check : file
8540 cp \$? \$@
8541 cp \$? final_file
8542EOF
8543
8544if test ! -d sub ; then
8545 mkdir sub
8546fi
8547echo dummy > sub/file
f6bcfd97 8548${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
8549RESULT=$?
8550rm -f sub/file check final_file confMake
8551rmdir sub
8552if test "$RESULT" = 0; then
698dcdb6 8553 echo "$ac_t""yes" 1>&6
10f2d63a 8554else
698dcdb6
VZ
8555 echo "$ac_t""no" 1>&6
8556 { echo "configure: error:
1e487827
VS
8557You need a make-utility that is able to use the variable
8558VPATH correctly.
8559If your version of make does not support VPATH correctly,
8560please install GNU-make (possibly as gmake), and start
8561configure with the following command:
8562export MAKE=gmake; ./configure for sh-type shells
8563setenv MAKE gmake; ./configure for csh-type shells
8564Also please do remember to use gmake in this case every time
8565you are trying to compile.
698dcdb6 8566" 1>&2; exit 1; }
10f2d63a
VZ
8567fi
8568
8569for ac_prog in 'bison -y' byacc
8570do
698dcdb6 8571# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 8572set dummy $ac_prog; ac_word=$2
698dcdb6 8573echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7b7a7637 8574echo "configure:8575: checking for $ac_word" >&5
698dcdb6
VZ
8575if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8576 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8577else
8578 if test -n "$YACC"; then
8579 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8580else
698dcdb6
VZ
8581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8582 ac_dummy="$PATH"
8583 for ac_dir in $ac_dummy; do
8584 test -z "$ac_dir" && ac_dir=.
8585 if test -f $ac_dir/$ac_word; then
8586 ac_cv_prog_YACC="$ac_prog"
8587 break
8588 fi
8589 done
8590 IFS="$ac_save_ifs"
10f2d63a
VZ
8591fi
8592fi
698dcdb6 8593YACC="$ac_cv_prog_YACC"
10f2d63a 8594if test -n "$YACC"; then
698dcdb6 8595 echo "$ac_t""$YACC" 1>&6
10f2d63a 8596else
698dcdb6 8597 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8598fi
8599
698dcdb6 8600test -n "$YACC" && break
10f2d63a
VZ
8601done
8602test -n "$YACC" || YACC="yacc"
8603
698dcdb6
VZ
8604
8605# Extract the first word of "flex", so it can be a program name with args.
8606set dummy flex; ac_word=$2
8607echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7b7a7637 8608echo "configure:8609: checking for $ac_word" >&5
698dcdb6
VZ
8609if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8610 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8611else
8612 if test -n "$LEX"; then
8613 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8614else
698dcdb6
VZ
8615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8616 ac_dummy="$PATH"
8617 for ac_dir in $ac_dummy; do
8618 test -z "$ac_dir" && ac_dir=.
8619 if test -f $ac_dir/$ac_word; then
8620 ac_cv_prog_LEX="flex"
8621 break
8622 fi
8623 done
8624 IFS="$ac_save_ifs"
8625 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
8626fi
8627fi
698dcdb6 8628LEX="$ac_cv_prog_LEX"
10f2d63a 8629if test -n "$LEX"; then
698dcdb6 8630 echo "$ac_t""$LEX" 1>&6
10f2d63a 8631else
698dcdb6 8632 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8633fi
8634
8635if test -z "$LEXLIB"
8636then
698dcdb6
VZ
8637 case "$LEX" in
8638 flex*) ac_lib=fl ;;
8639 *) ac_lib=l ;;
8640 esac
8641 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
7b7a7637 8642echo "configure:8643: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
8643ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8644if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8645 echo $ac_n "(cached) $ac_c" 1>&6
8646else
8647 ac_save_LIBS="$LIBS"
8648LIBS="-l$ac_lib $LIBS"
8649cat > conftest.$ac_ext <<EOF
7b7a7637 8650#line 8651 "configure"
10f2d63a
VZ
8651#include "confdefs.h"
8652/* Override any gcc2 internal prototype to avoid an error. */
8653/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
8654 builtin and then its argument prototype would still apply. */
8655char yywrap();
10f2d63a 8656
698dcdb6
VZ
8657int main() {
8658yywrap()
8659; return 0; }
8660EOF
7b7a7637 8661if { (eval echo configure:8662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8662 rm -rf conftest*
8663 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 8664else
698dcdb6
VZ
8665 echo "configure: failed program was:" >&5
8666 cat conftest.$ac_ext >&5
8667 rm -rf conftest*
8668 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 8669fi
698dcdb6
VZ
8670rm -f conftest*
8671LIBS="$ac_save_LIBS"
8672
10f2d63a 8673fi
698dcdb6
VZ
8674if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8675 echo "$ac_t""yes" 1>&6
8676 LEXLIB="-l$ac_lib"
8677else
8678 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8679fi
8680
8681fi
8682
8683
698dcdb6 8684echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7b7a7637 8685echo "configure:8686: checking whether ln -s works" >&5
698dcdb6
VZ
8686if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8687 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8688else
698dcdb6
VZ
8689 rm -f conftestdata
8690if ln -s X conftestdata 2>/dev/null
8691then
8692 rm -f conftestdata
8693 ac_cv_prog_LN_S="ln -s"
10f2d63a 8694else
698dcdb6 8695 ac_cv_prog_LN_S=ln
10f2d63a
VZ
8696fi
8697fi
698dcdb6
VZ
8698LN_S="$ac_cv_prog_LN_S"
8699if test "$ac_cv_prog_LN_S" = "ln -s"; then
8700 echo "$ac_t""yes" 1>&6
10f2d63a 8701else
698dcdb6 8702 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8703fi
8704
8705
8706
8707SEARCH_INCLUDE="\
8708 /usr/local/include \
8709 \
8710 /usr/Motif-1.2/include \
8711 /usr/Motif-2.1/include \
8712 \
8713 /usr/include/Motif1.2 \
8714 /opt/xpm/include/X11 \
8715 /opt/GBxpm/include/ \
8716 /opt/GBxpm/X11/include/ \
8717 \
8718 /usr/Motif1.2/include \
8719 /usr/dt/include \
afc31813
VZ
8720 /usr/openwin/include \
8721 \
10f2d63a
VZ
8722 /usr/include/Xm \
8723 \
8724 /usr/X11R6/include \
afc31813 8725 /usr/X11R6.4/include \
10f2d63a
VZ
8726 /usr/X11R5/include \
8727 /usr/X11R4/include \
8728 \
10f2d63a
VZ
8729 /usr/include/X11R6 \
8730 /usr/include/X11R5 \
8731 /usr/include/X11R4 \
8732 \
8733 /usr/local/X11R6/include \
8734 /usr/local/X11R5/include \
8735 /usr/local/X11R4/include \
8736 \
8737 /usr/local/include/X11R6 \
8738 /usr/local/include/X11R5 \
8739 /usr/local/include/X11R4 \
8740 \
8741 /usr/X11/include \
8742 /usr/include/X11 \
8743 /usr/local/X11/include \
8744 /usr/local/include/X11 \
8745 \
8746 /usr/X386/include \
8747 /usr/x386/include \
8748 /usr/XFree86/include/X11 \
8749 \
cf27ef00 8750 X:/XFree86/include \
ec14dd32
VZ
8751 X:/XFree86/include/X11 \
8752 \
10f2d63a
VZ
8753 /usr/include/gtk \
8754 /usr/local/include/gtk \
8755 /usr/include/glib \
8756 /usr/local/include/glib \
8757 \
8758 /usr/include/qt \
8759 /usr/local/include/qt \
8760 \
8761 /usr/include/windows \
8762 /usr/include/wine \
8763 /usr/local/include/wine \
8764 \
8765 /usr/unsupported/include \
8766 /usr/athena/include \
8767 /usr/local/x11r5/include \
8768 /usr/lpp/Xamples/include \
8769 \
10f2d63a 8770 /usr/openwin/share/include \
928b5c08
VZ
8771 \
8772 /usr/include"
10f2d63a
VZ
8773
8774SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8775
698dcdb6
VZ
8776
8777cat > confcache <<\EOF
10f2d63a
VZ
8778# This file is a shell script that caches the results of configure
8779# tests run on this system so they can be shared between configure
698dcdb6
VZ
8780# scripts and configure runs. It is not useful on other systems.
8781# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8782#
698dcdb6
VZ
8783# By default, configure uses ./config.cache as the cache file,
8784# creating it if it does not exist already. You can give configure
8785# the --cache-file=FILE option to use a different cache file; that is
8786# what configure does when it calls configure scripts in
8787# subdirectories, so they share the cache.
8788# Giving --cache-file=/dev/null disables caching, for debugging configure.
8789# config.status only pays attention to the cache file if you give it the
8790# --recheck option to rerun configure.
10f2d63a 8791#
698dcdb6 8792EOF
10f2d63a
VZ
8793# The following way of writing the cache mishandles newlines in values,
8794# but we know of no workaround that is simple, portable, and efficient.
8795# So, don't put newlines in cache variables' values.
8796# Ultrix sh set writes to stderr and can't be redirected directly,
8797# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8798(set) 2>&1 |
8799 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8800 *ac_space=\ *)
8801 # `set' does not quote correctly, so add quotes (double-quote substitution
8802 # turns \\\\ into \\, and sed turns \\ into \).
8803 sed -n \
8804 -e "s/'/'\\\\''/g" \
8805 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8806 ;;
8807 *)
8808 # `set' quotes correctly as required by POSIX, so do not add quotes.
8809 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8810 ;;
8811 esac >> confcache
8812if cmp -s $cache_file confcache; then
8813 :
8814else
10f2d63a 8815 if test -w $cache_file; then
698dcdb6
VZ
8816 echo "updating cache $cache_file"
8817 cat confcache > $cache_file
10f2d63a
VZ
8818 else
8819 echo "not updating unwritable cache $cache_file"
8820 fi
8821fi
8822rm -f confcache
8823
698dcdb6
VZ
8824
8825
18dbb1f6
VZ
8826REGEX_INCLUDE=
8827if test "$wxUSE_REGEX" != "no"; then
8828 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
8829echo $ac_n "checking for regex.h""... $ac_c" 1>&6
7b7a7637 8830echo "configure:8831: checking for regex.h" >&5
18dbb1f6
VZ
8831if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8832 echo $ac_n "(cached) $ac_c" 1>&6
8833else
8834 cat > conftest.$ac_ext <<EOF
7b7a7637 8835#line 8836 "configure"
18dbb1f6
VZ
8836#include "confdefs.h"
8837#include <regex.h>
8838EOF
8839ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7b7a7637 8840{ (eval echo configure:8841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18dbb1f6
VZ
8841ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8842if test -z "$ac_err"; then
8843 rm -rf conftest*
8844 eval "ac_cv_header_$ac_safe=yes"
8845else
8846 echo "$ac_err" >&5
8847 echo "configure: failed program was:" >&5
8848 cat conftest.$ac_ext >&5
8849 rm -rf conftest*
8850 eval "ac_cv_header_$ac_safe=no"
8851fi
8852rm -f conftest*
8853fi
8854if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8855 echo "$ac_t""yes" 1>&6
8856 for ac_func in regcomp
8857do
8858echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7b7a7637 8859echo "configure:8860: checking for $ac_func" >&5
18dbb1f6
VZ
8860if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8861 echo $ac_n "(cached) $ac_c" 1>&6
8862else
8863 cat > conftest.$ac_ext <<EOF
7b7a7637 8864#line 8865 "configure"
18dbb1f6
VZ
8865#include "confdefs.h"
8866/* System header to define __stub macros and hopefully few prototypes,
8867 which can conflict with char $ac_func(); below. */
8868#include <assert.h>
8869/* Override any gcc2 internal prototype to avoid an error. */
8870/* We use char because int might match the return type of a gcc2
8871 builtin and then its argument prototype would still apply. */
8872char $ac_func();
8873
8874int main() {
8875
8876/* The GNU C library defines this for functions which it implements
8877 to always fail with ENOSYS. Some functions are actually named
8878 something starting with __ and the normal name is an alias. */
8879#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8880choke me
8881#else
8882$ac_func();
8883#endif
8884
8885; return 0; }
8886EOF
7b7a7637 8887if { (eval echo configure:8888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18dbb1f6
VZ
8888 rm -rf conftest*
8889 eval "ac_cv_func_$ac_func=yes"
8890else
8891 echo "configure: failed program was:" >&5
8892 cat conftest.$ac_ext >&5
8893 rm -rf conftest*
8894 eval "ac_cv_func_$ac_func=no"
8895fi
8896rm -f conftest*
8897fi
8898
8899if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8900 echo "$ac_t""yes" 1>&6
8901 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8902 cat >> confdefs.h <<EOF
8903#define $ac_tr_func 1
8904EOF
8905
8906else
8907 echo "$ac_t""no" 1>&6
8908fi
8909done
8910
8911else
8912 echo "$ac_t""no" 1>&6
8913fi
8914
8915
8916 if test "x$ac_cv_func_regcomp" != "xyes"; then
8917 if test "$wxUSE_REGEX" = "sys"; then
8918 { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; }
8919 fi
8920
8921 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
8922 fi
8923
8924 cat >> confdefs.h <<\EOF
8925#define wxUSE_REGEX 1
8926EOF
8927
8928fi
8929
8930
dad6c0ea
VZ
8931AFMINSTALL=
8932
3a922bb4
RL
8933TOOLKIT=
8934TOOLKIT_INCLUDE=
8935WIDGET_SET=
10f2d63a 8936
3a922bb4
RL
8937if test "$USE_WIN32" = 1 ; then
8938 for ac_hdr in w32api.h
8939do
8940ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8941echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7b7a7637 8942echo "configure:8943: checking for $ac_hdr" >&5
3a922bb4
RL
8943if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8944 echo $ac_n "(cached) $ac_c" 1>&6
8945else
8946 cat > conftest.$ac_ext <<EOF
7b7a7637 8947#line 8948 "configure"
3a922bb4
RL
8948#include "confdefs.h"
8949#include <$ac_hdr>
8950EOF
8951ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7b7a7637 8952{ (eval echo configure:8953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
8953ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8954if test -z "$ac_err"; then
8955 rm -rf conftest*
8956 eval "ac_cv_header_$ac_safe=yes"
8957else
8958 echo "$ac_err" >&5
8959 echo "configure: failed program was:" >&5
8960 cat conftest.$ac_ext >&5
8961 rm -rf conftest*
8962 eval "ac_cv_header_$ac_safe=no"
8963fi
8964rm -f conftest*
8965fi
8966if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8967 echo "$ac_t""yes" 1>&6
8968 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8969 cat >> confdefs.h <<EOF
8970#define $ac_tr_hdr 1
8971EOF
8972
8973else
8974 echo "$ac_t""no" 1>&6
8975fi
8976done
10f2d63a 8977
3a922bb4 8978 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
29fd3c0c 8979echo $ac_n "checking for windows.h""... $ac_c" 1>&6
7b7a7637 8980echo "configure:8981: checking for windows.h" >&5
d4158b5d
VS
8981if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8982 echo $ac_n "(cached) $ac_c" 1>&6
8983else
8984 cat > conftest.$ac_ext <<EOF
7b7a7637 8985#line 8986 "configure"
d4158b5d 8986#include "confdefs.h"
29fd3c0c 8987#include <windows.h>
d4158b5d
VS
8988EOF
8989ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7b7a7637 8990{ (eval echo configure:8991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4158b5d
VS
8991ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8992if test -z "$ac_err"; then
8993 rm -rf conftest*
8994 eval "ac_cv_header_$ac_safe=yes"
8995else
8996 echo "$ac_err" >&5
8997 echo "configure: failed program was:" >&5
8998 cat conftest.$ac_ext >&5
8999 rm -rf conftest*
9000 eval "ac_cv_header_$ac_safe=no"
9001fi
9002rm -f conftest*
9003fi
9004if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9005 echo "$ac_t""yes" 1>&6
29fd3c0c 9006 :
d4158b5d
VS
9007else
9008 echo "$ac_t""no" 1>&6
d4158b5d 9009
3a922bb4
RL
9010 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9011
29fd3c0c 9012fi
10f2d63a 9013
3f0f0161 9014
3a922bb4 9015 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
7b7a7637 9016echo "configure:9017: checking if w32api has good enough MSIE support" >&5
3a922bb4
RL
9017if eval "test \"`echo '$''{'wx_cv_w32api_win_ie'+set}'`\" = set"; then
9018 echo $ac_n "(cached) $ac_c" 1>&6
9019else
9020
9021 cat > conftest.$ac_ext <<EOF
7b7a7637 9022#line 9023 "configure"
3a922bb4
RL
9023#include "confdefs.h"
9024#include <w32api.h>
9025int main() {
3f0f0161 9026
3a922bb4
RL
9027 #define wxCHECK_W32API_VERSION( major, minor ) \
9028 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
9029 && ( ( __W32API_MAJOR_VERSION > (major) ) \
9030 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
f6bcfd97 9031
3a922bb4
RL
9032 #if !wxCHECK_W32API_VERSION(1,1)
9033 #error You need w32api 1.1 or newer
9034 #endif
9035
9036; return 0; }
9037EOF
7b7a7637 9038if { (eval echo configure:9039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3a922bb4
RL
9039 rm -rf conftest*
9040
9041 wx_cv_w32api_win_ie=yes
9042 CPPFLAGS="$CPPFLAGS -D_WIN_IE=0x400"
9043
9044else
9045 echo "configure: failed program was:" >&5
9046 cat conftest.$ac_ext >&5
9047 rm -rf conftest*
9048
9049 wx_cv_w32api_win_ie=no
9050
9051fi
9052rm -f conftest*
9053
9054fi
10f2d63a 9055
3a922bb4 9056echo "$ac_t""$wx_cv_w32api_win_ie" 1>&6
32832908 9057
3a922bb4
RL
9058 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
9059
7b7a7637
RL
9060 if test "$wxUSE_CYGWIN" = 1; then
9061 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
9062 fi
9063
3a922bb4
RL
9064 if test "$wxUSE_ODBC" = "yes" ; then
9065 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
9066 fi
9067
9068 if test "$wxUSE_MINGW" = 1; then
9069 LDFLAGS="$LDFLAGS -mwindows"
9070 fi
9071
9072 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
9073 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
9074fi
9075
9076if test "$wxUSE_GUI" = "yes"; then
9077 USE_GUI=1
32832908 9078
3a922bb4
RL
9079 GUI_TK_LIBRARY=
9080
9081 WXGTK12=
9082 WXGTK127=
9083 WXGTK20=
32832908 9084
3a922bb4
RL
9085 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
9086 TOOLKIT=MSW
9087 GUIDIST=MSW_DIST
1e6feb95 9088 fi
10f2d63a 9089
1e6feb95 9090 if test "$wxUSE_GTK" = 1; then
8168de4c 9091 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
7b7a7637 9092echo "configure:9093: checking for GTK+ version" >&5
8168de4c
VZ
9093
9094 gtk_version_cached=1
9095 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9096 echo $ac_n "(cached) $ac_c" 1>&6
9097else
9098
9099 gtk_version_cached=0
9100 echo "$ac_t""""" 1>&6
9101
9102 wx_cv_lib_gtk=
9103 if test "x$wxUSE_GTK2" = "xyes"; then
9104 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6f72b082
OK
9105if test "${with_gtk_prefix+set}" = set; then
9106 withval="$with_gtk_prefix"
9107 gtk_config_prefix="$withval"
9108else
9109 gtk_config_prefix=""
698dcdb6 9110fi
6f72b082
OK
9111
9112# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9113if test "${with_gtk_exec_prefix+set}" = set; then
9114 withval="$with_gtk_exec_prefix"
9115 gtk_config_exec_prefix="$withval"
9116else
9117 gtk_config_exec_prefix=""
698dcdb6
VZ
9118fi
9119
6f72b082
OK
9120# Check whether --enable-gtktest or --disable-gtktest was given.
9121if test "${enable_gtktest+set}" = set; then
9122 enableval="$enable_gtktest"
698dcdb6 9123 :
6f72b082
OK
9124else
9125 enable_gtktest=yes
698dcdb6
VZ
9126fi
9127
6f72b082 9128
8168de4c 9129 for module in .
6f72b082
OK
9130 do
9131 case "$module" in
8168de4c 9132 gthread)
6f72b082
OK
9133 gtk_config_args="$gtk_config_args gthread"
9134 ;;
9135 esac
9136 done
9137
9138 if test x$gtk_config_exec_prefix != x ; then
9139 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9140 if test x${GTK_CONFIG_2_0+set} != xset ; then
9141 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9142 fi
9143 fi
9144 if test x$gtk_config_prefix != x ; then
9145 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9146 if test x${GTK_CONFIG_2_0+set} != xset ; then
9147 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9148 fi
9149 fi
9150
9151 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9152set dummy gtk-config-2.0; ac_word=$2
698dcdb6 9153echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7b7a7637 9154echo "configure:9155: checking for $ac_word" >&5
698dcdb6
VZ
9155if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9156 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 9157else
698dcdb6
VZ
9158 case "$GTK_CONFIG_2_0" in
9159 /*)
6f72b082
OK
9160 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9161 ;;
698dcdb6
VZ
9162 ?:/*)
9163 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9164 ;;
6f72b082 9165 *)
698dcdb6
VZ
9166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9167 ac_dummy="$PATH"
9168 for ac_dir in $ac_dummy; do
9169 test -z "$ac_dir" && ac_dir=.
9170 if test -f $ac_dir/$ac_word; then
9171 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9172 break
9173 fi
9174 done
9175 IFS="$ac_save_ifs"
6f72b082
OK
9176 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9177 ;;
9178esac
9179fi
698dcdb6 9180GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 9181if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 9182 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 9183else
698dcdb6 9184 echo "$ac_t""no" 1>&6
6f72b082
OK
9185fi
9186
9187 min_gtk_version=1.3.1
698dcdb6 9188 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7b7a7637 9189echo "configure:9190: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
9190 no_gtk=""
9191 if test "$GTK_CONFIG_2_0" = "no" ; then
9192 no_gtk=yes
9193 else
9194 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9195 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9196 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9197 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9198 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9199 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9200 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9201 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9202 if test "x$enable_gtktest" = "xyes" ; then
9203 ac_save_CFLAGS="$CFLAGS"
9204 ac_save_LIBS="$LIBS"
9205 CFLAGS="$CFLAGS $GTK_CFLAGS"
9206 LIBS="$GTK_LIBS $LIBS"
9207 rm -f conf.gtktest
9208 if test "$cross_compiling" = yes; then
9209 echo $ac_n "cross compiling; assumed OK... $ac_c"
9210else
698dcdb6 9211 cat > conftest.$ac_ext <<EOF
7b7a7637 9212#line 9213 "configure"
6f72b082
OK
9213#include "confdefs.h"
9214
9215#include <gtk/gtk.h>
9216#include <stdio.h>
9217#include <stdlib.h>
9218
8168de4c 9219int
6f72b082
OK
9220main ()
9221{
9222 int major, minor, micro;
9223 char *tmp_version;
9224
9225 system ("touch conf.gtktest");
9226
9227 /* HP/UX 9 (%@#!) writes to sscanf strings */
9228 tmp_version = g_strdup("$min_gtk_version");
9229 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9230 printf("%s, bad version string\n", "$min_gtk_version");
9231 exit(1);
9232 }
9233
9234 if ((gtk_major_version != $gtk_config_major_version) ||
9235 (gtk_minor_version != $gtk_config_minor_version) ||
9236 (gtk_micro_version != $gtk_config_micro_version))
9237 {
8168de4c 9238 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
9239 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9240 gtk_major_version, gtk_minor_version, gtk_micro_version);
9241 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9242 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9243 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9244 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9245 printf("*** required on your system.\n");
9246 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9247 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9248 printf("*** before re-running configure\n");
8168de4c 9249 }
6f72b082
OK
9250#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9251 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8168de4c 9252 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
9253 (gtk_micro_version != GTK_MICRO_VERSION))
9254 {
9255 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8168de4c 9256 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 9257 printf("*** library (version %d.%d.%d)\n",
8168de4c 9258 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082
OK
9259 }
9260#endif /* defined (GTK_MAJOR_VERSION) ... */
9261 else
9262 {
9263 if ((gtk_major_version > major) ||
9264 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9265 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9266 {
9267 return 0;
9268 }
9269 else
9270 {
9271 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9272 gtk_major_version, gtk_minor_version, gtk_micro_version);
9273 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8168de4c 9274 major, minor, micro);
6f72b082
OK
9275 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9276 printf("***\n");
9277 printf("*** If you have already installed a sufficiently new version, this error\n");
9278 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9279 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9280 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9281 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9282 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9283 printf("*** so that the correct libraries are found at run-time))\n");
9284 }
9285 }
9286 return 1;
9287}
9288
698dcdb6 9289EOF
7b7a7637 9290if { (eval echo configure:9291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9291then
6f72b082
OK
9292 :
9293else
698dcdb6
VZ
9294 echo "configure: failed program was:" >&5
9295 cat conftest.$ac_ext >&5
9296 rm -fr conftest*
9297 no_gtk=yes
6f72b082 9298fi
698dcdb6 9299rm -fr conftest*
6f72b082 9300fi
698dcdb6 9301
6f72b082
OK
9302 CFLAGS="$ac_save_CFLAGS"
9303 LIBS="$ac_save_LIBS"
9304 fi
9305 fi
9306 if test "x$no_gtk" = x ; then
698dcdb6 9307 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8168de4c 9308 wx_cv_lib_gtk=2.0
6f72b082 9309 else
698dcdb6 9310 echo "$ac_t""no" 1>&6
6f72b082
OK
9311 if test "$GTK_CONFIG_2_0" = "no" ; then
9312 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9313 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9314 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9315 echo "*** full path to gtk-config-2.0."
9316 else
9317 if test -f conf.gtktest ; then
9318 :
9319 else
9320 echo "*** Could not run GTK test program, checking why..."
9321 CFLAGS="$CFLAGS $GTK_CFLAGS"
9322 LIBS="$LIBS $GTK_LIBS"
698dcdb6 9323 cat > conftest.$ac_ext <<EOF
7b7a7637 9324#line 9325 "configure"
6f72b082
OK
9325#include "confdefs.h"
9326
9327#include <gtk/gtk.h>
9328#include <stdio.h>
9329
698dcdb6
VZ
9330int main() {
9331 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9332; return 0; }
9333EOF
7b7a7637 9334if { (eval echo configure:9335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9335 rm -rf conftest*
6f72b082
OK
9336 echo "*** The test program compiled, but did not run. This usually means"
9337 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9338 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9339 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9340 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9341 echo "*** is required on your system"
8168de4c 9342 echo "***"
6f72b082
OK
9343 echo "*** If you have an old version installed, it is best to remove it, although"
9344 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9345 echo "***"
9346 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9347 echo "*** came with the system with the command"
9348 echo "***"
698dcdb6 9349 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 9350else
698dcdb6
VZ
9351 echo "configure: failed program was:" >&5
9352 cat conftest.$ac_ext >&5
9353 rm -rf conftest*
9354 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
9355 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9356 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
698dcdb6 9357 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 9358fi
698dcdb6 9359rm -f conftest*
6f72b082
OK
9360 CFLAGS="$ac_save_CFLAGS"
9361 LIBS="$ac_save_LIBS"
9362 fi
9363 fi
9364 GTK_CFLAGS=""
9365 GTK_LIBS=""
8168de4c
VZ
9366 gthread
9367 fi
9368
9369
9370 rm -f conf.gtktest
9371
9372 fi
9373
9374 if test -z "$wx_cv_lib_gtk"; then
9375
10f2d63a
VZ
9376 if test x$gtk_config_exec_prefix != x ; then
9377 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9378 if test x${GTK_CONFIG+set} != xset ; then
9379 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9380 fi
9381 fi
9382 if test x$gtk_config_prefix != x ; then
9383 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9384 if test x${GTK_CONFIG+set} != xset ; then
9385 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9386 fi
9387 fi
9388
9389 # Extract the first word of "gtk-config", so it can be a program name with args.
9390set dummy gtk-config; ac_word=$2
698dcdb6 9391echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7b7a7637 9392echo "configure:9393: checking for $ac_word" >&5
698dcdb6
VZ
9393if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9394 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 9395else
698dcdb6
VZ
9396 case "$GTK_CONFIG" in
9397 /*)
f6bcfd97
BP
9398 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9399 ;;
698dcdb6
VZ
9400 ?:/*)
9401 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9402 ;;
f6bcfd97 9403 *)
698dcdb6
VZ
9404 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9405 ac_dummy="$PATH"
9406 for ac_dir in $ac_dummy; do
9407 test -z "$ac_dir" && ac_dir=.
9408 if test -f $ac_dir/$ac_word; then
9409 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9410 break
9411 fi
9412 done
9413 IFS="$ac_save_ifs"
f6bcfd97
BP
9414 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9415 ;;
9416esac
9417fi
698dcdb6 9418GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 9419if test -n "$GTK_CONFIG"; then
698dcdb6 9420 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 9421else
698dcdb6 9422 echo "$ac_t""no" 1>&6
f6bcfd97
BP
9423fi
9424
9425 min_gtk_version=1.2.7
698dcdb6 9426 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7b7a7637 9427echo "configure:9428: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
9428 no_gtk=""
9429 if test "$GTK_CONFIG" != "no" ; then
9430 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9431 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9432 ac_save_CFLAGS="$CFLAGS"
9433 ac_save_LIBS="$LIBS"
9434 CFLAGS="$CFLAGS $GTK_CFLAGS"
9435 LIBS="$LIBS $GTK_LIBS"
9436 if test "$cross_compiling" = yes; then
9437 echo $ac_n "cross compiling; assumed OK... $ac_c"
9438else
698dcdb6 9439 cat > conftest.$ac_ext <<EOF
7b7a7637 9440#line 9441 "configure"
f6bcfd97
BP
9441#include "confdefs.h"
9442
9443#include <gtk/gtk.h>
9444#include <gtk/gtkfeatures.h>
9445#include <stdio.h>
9446#include <stdlib.h>
9447
9448int
9449main ()
9450{
9451 int major, minor, micro;
9452
9453 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9454 printf("%s, bad version string\n", "$min_gtk_version");
9455 exit(1);
9456 }
9457
9458 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9459 (GTK_MINOR_VERSION != gtk_minor_version) ||
9460 (GTK_MICRO_VERSION != gtk_micro_version)) {
9461 printf("Headers vs. library version mismatch!\n");
9462 exit(1);
9463 }
9464
9465 if (gtk_minor_version == 1) return FALSE;
9466
9467 return !((gtk_major_version > major) ||
9468 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9469 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9470}
9471
698dcdb6 9472EOF
7b7a7637 9473if { (eval echo configure:9474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9474then
f6bcfd97
BP
9475 :
9476else
698dcdb6
VZ
9477 echo "configure: failed program was:" >&5
9478 cat conftest.$ac_ext >&5
9479 rm -fr conftest*
9480 no_gtk=yes
f6bcfd97 9481fi
698dcdb6 9482rm -fr conftest*
f6bcfd97 9483fi
698dcdb6 9484
f6bcfd97
BP
9485 CFLAGS="$ac_save_CFLAGS"
9486 LIBS="$ac_save_LIBS"
9487 else
9488 no_gtk=yes
9489 fi
9490 if test "x$no_gtk" = x ; then
698dcdb6 9491 echo "$ac_t""yes" 1>&6
8168de4c 9492 wx_cv_lib_gtk=1.2.7
f6bcfd97 9493 else
698dcdb6 9494 echo "$ac_t""no" 1>&6
f6bcfd97
BP
9495 GTK_CFLAGS=""
9496 GTK_LIBS=""
9497 :
9498 fi
698dcdb6
VZ
9499
9500
f6bcfd97 9501
8168de4c
VZ
9502 fi
9503
9504 if test -z "$wx_cv_lib_gtk"; then
9505
f6bcfd97
BP
9506 if test x$gtk_config_exec_prefix != x ; then
9507 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9508 if test x${GTK_CONFIG+set} != xset ; then
9509 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9510 fi
9511 fi
9512 if test x$gtk_config_prefix != x ; then
9513 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9514 if test x${GTK_CONFIG+set} != xset ; then
9515 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9516 fi
9517 fi
9518
9519 # Extract the first word of "gtk-config", so it can be a program name with args.
9520set dummy gtk-config; ac_word=$2
698dcdb6 9521echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7b7a7637 9522echo "configure:9523: checking for $ac_word" >&5
698dcdb6
VZ
9523if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9524 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9525else
698dcdb6
VZ
9526 case "$GTK_CONFIG" in
9527 /*)
10f2d63a
VZ
9528 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9529 ;;
698dcdb6
VZ
9530 ?:/*)
9531 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9532 ;;
10f2d63a 9533 *)
698dcdb6
VZ
9534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9535 ac_dummy="$PATH"
9536 for ac_dir in $ac_dummy; do
9537 test -z "$ac_dir" && ac_dir=.
9538 if test -f $ac_dir/$ac_word; then
9539 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9540 break
9541 fi
9542 done
9543 IFS="$ac_save_ifs"
10f2d63a
VZ
9544 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9545 ;;
9546esac
9547fi
698dcdb6 9548GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 9549if test -n "$GTK_CONFIG"; then
698dcdb6 9550 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 9551else
698dcdb6 9552 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9553fi
9554
04165bec 9555 min_gtk_version=1.2.3
698dcdb6 9556 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7b7a7637 9557echo "configure:9558: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
9558 no_gtk=""
9559 if test "$GTK_CONFIG" != "no" ; then
9560 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 9561 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
9562 ac_save_CFLAGS="$CFLAGS"
9563 ac_save_LIBS="$LIBS"
9564 CFLAGS="$CFLAGS $GTK_CFLAGS"
9565 LIBS="$LIBS $GTK_LIBS"
9566 if test "$cross_compiling" = yes; then
9567 echo $ac_n "cross compiling; assumed OK... $ac_c"
9568else
698dcdb6 9569 cat > conftest.$ac_ext <<EOF
7b7a7637 9570#line 9571 "configure"
10f2d63a
VZ
9571#include "confdefs.h"
9572
9573#include <gtk/gtk.h>
f49f2b0c 9574#include <gtk/gtkfeatures.h>
10f2d63a 9575#include <stdio.h>
32832908 9576#include <stdlib.h>
10f2d63a
VZ
9577
9578int
9579main ()
9580{
9581 int major, minor, micro;
9582
9583 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9584 printf("%s, bad version string\n", "$min_gtk_version");
9585 exit(1);
9586 }
9587
f49f2b0c
RR
9588 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9589 (GTK_MINOR_VERSION != gtk_minor_version) ||
9590 (GTK_MICRO_VERSION != gtk_micro_version)) {
9591 printf("Headers vs. library version mismatch!\n");
9592 exit(1);
9593 }
9594
10f2d63a
VZ
9595 if (gtk_minor_version == 1) return FALSE;
9596
9597 return !((gtk_major_version > major) ||
9598 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9599 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9600}
9601
698dcdb6 9602EOF
7b7a7637 9603if { (eval echo configure:9604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9604then
10f2d63a
VZ
9605 :
9606else
698dcdb6
VZ
9607 echo "configure: failed program was:" >&5
9608 cat conftest.$ac_ext >&5
9609 rm -fr conftest*
9610 no_gtk=yes
10f2d63a 9611fi
698dcdb6 9612rm -fr conftest*
10f2d63a 9613fi
698dcdb6 9614
10f2d63a
VZ
9615 CFLAGS="$ac_save_CFLAGS"
9616 LIBS="$ac_save_LIBS"
9617 else
9618 no_gtk=yes
9619 fi
9620 if test "x$no_gtk" = x ; then
698dcdb6 9621 echo "$ac_t""yes" 1>&6
8168de4c 9622 wx_cv_lib_gtk=1.2.3
10f2d63a 9623 else
698dcdb6 9624 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9625 GTK_CFLAGS=""
9626 GTK_LIBS=""
7e99ad86 9627 :
10f2d63a 9628 fi
698dcdb6
VZ
9629
9630
10f2d63a 9631
8168de4c
VZ
9632 fi
9633
9634 if test -z "$wx_cv_lib_gtk"; then
9635 wx_cv_lib_gtk=none
138be253
VZ
9636 else
9637 wx_cv_cflags_gtk=$GTK_CFLAGS
9638 wx_cv_libs_gtk=$GTK_LIBS
8168de4c
VZ
9639 fi
9640
1e6feb95 9641
8168de4c 9642fi
703e0a69 9643
698dcdb6 9644
8168de4c
VZ
9645 if test "$gtk_version_cached" = 1; then
9646 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
1e6feb95 9647 fi
698dcdb6 9648
8168de4c
VZ
9649 case "$wx_cv_lib_gtk" in
9650 2.0) WXGTK20=1
9651 ;;
9652 1.2.7) WXGTK127=1
d1a8d972 9653 WXGTK12=1
8168de4c
VZ
9654 ;;
9655 1.2.3) WXGTK12=1
9656 ;;
9657 *) { echo "configure: error:
9658Please check that gtk-config is in path, the directory
9659where GTK+ libraries are installed (returned by
9660'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9661equivalent variable and GTK+ is version 1.2.3 or above.
9662 " 1>&2; exit 1; }
9663 ;;
9664 esac
2224580a 9665
138be253 9666 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11dfaa5f 9667 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
698dcdb6 9668
1e6feb95
VZ
9669 AFMINSTALL=afminstall
9670 TOOLKIT=GTK
9671 GUIDIST=GTK_DIST
7ec2881a 9672
1e6feb95 9673 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
7b7a7637 9674echo "configure:9675: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
9675ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9676if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9677 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 9678else
698dcdb6 9679 ac_save_LIBS="$LIBS"
7ec2881a 9680LIBS="-lgdk $LIBS"
698dcdb6 9681cat > conftest.$ac_ext <<EOF
7b7a7637 9682#line 9683 "configure"
7ec2881a
RR
9683#include "confdefs.h"
9684/* Override any gcc2 internal prototype to avoid an error. */
9685/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9686 builtin and then its argument prototype would still apply. */
9687char gdk_im_open();
9688
9689int main() {
9690gdk_im_open()
9691; return 0; }
9692EOF
7b7a7637 9693if { (eval echo configure:9694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9694 rm -rf conftest*
9695 eval "ac_cv_lib_$ac_lib_var=yes"
9696else
9697 echo "configure: failed program was:" >&5
9698 cat conftest.$ac_ext >&5
9699 rm -rf conftest*
9700 eval "ac_cv_lib_$ac_lib_var=no"
9701fi
9702rm -f conftest*
9703LIBS="$ac_save_LIBS"
9704
9705fi
9706if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9707 echo "$ac_t""yes" 1>&6
9708 cat >> confdefs.h <<\EOF
7ec2881a
RR
9709#define HAVE_XIM 1
9710EOF
9711
698dcdb6
VZ
9712else
9713 echo "$ac_t""no" 1>&6
7ec2881a
RR
9714fi
9715
1e6feb95 9716 fi
10f2d63a 9717
1e6feb95
VZ
9718 if test "$wxUSE_MGL" = 1; then
9719
9720 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
7b7a7637 9721echo "configure:9722: checking for SciTech MGL library" >&5
1e6feb95
VZ
9722 if test "x$MGL_ROOT" = x ; then
9723 echo "$ac_t""not found" 1>&6
9724 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9725 else
9726 echo "$ac_t""$MGL_ROOT" 1>&6
9727 fi
9728
3a922bb4
RL
9729 mgl_os=linux/gcc/glibc
9730 mgl_lib_type=""
1e6feb95
VZ
9731
9732 if test "$wxUSE_DEBUG_FLAG" = yes ; then
3a922bb4
RL
9733 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a ; then
9734 mgl_lib_type=debug
1e6feb95
VZ
9735 fi
9736 fi
3a922bb4
RL
9737 if test "x$mgl_lib_type" = x ; then
9738 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a ; then
9739 mgl_lib_type=release
1e6feb95
VZ
9740 else
9741 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9742 fi
9743 fi
9744
9745 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
3a922bb4 9746 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
1e6feb95
VZ
9747
9748 AFMINSTALL=afminstall
9749 TOOLKIT=MGL
9750 GUIDIST=MGL_DIST
9751 fi
9752
9753 if test "$wxUSE_WINE" = 1; then
3a922bb4
RL
9754 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
9755echo $ac_n "checking for windows.h""... $ac_c" 1>&6
7b7a7637 9756echo "configure:9757: checking for windows.h" >&5
3a922bb4
RL
9757if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9758 echo $ac_n "(cached) $ac_c" 1>&6
9759else
9760 cat > conftest.$ac_ext <<EOF
7b7a7637 9761#line 9762 "configure"
3a922bb4
RL
9762#include "confdefs.h"
9763#include <windows.h>
9764EOF
9765ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7b7a7637 9766{ (eval echo configure:9767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
9767ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9768if test -z "$ac_err"; then
9769 rm -rf conftest*
9770 eval "ac_cv_header_$ac_safe=yes"
9771else
9772 echo "$ac_err" >&5
9773 echo "configure: failed program was:" >&5
9774 cat conftest.$ac_ext >&5
9775 rm -rf conftest*
9776 eval "ac_cv_header_$ac_safe=no"
9777fi
9778rm -f conftest*
9779fi
9780if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9781 echo "$ac_t""yes" 1>&6
9782 :
9783else
9784 echo "$ac_t""no" 1>&6
10f2d63a 9785
1e6feb95 9786 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
3a922bb4
RL
9787
9788fi
9789
10f2d63a 9790
3a922bb4 9791 xpm_link=""
1e6feb95 9792 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
7b7a7637 9793echo "configure:9794: checking for Xpm library" >&5
1e6feb95 9794
10f2d63a
VZ
9795ac_find_libraries=
9796for ac_dir in $SEARCH_LIB;
9797 do
f11bdd03 9798 for ac_extension in a so sl dylib; do
10f2d63a
VZ
9799 if test -f "$ac_dir/libXpm.$ac_extension"; then
9800 ac_find_libraries=$ac_dir
9801 break 2
9802 fi
9803 done
9804 done
9805
1e6feb95
VZ
9806 if test "$ac_find_libraries" != "" ; then
9807 GUI_TK_LIBRARY="-L$ac_find_libraries"
3a922bb4 9808 xpm_link="-lXpm"
1e6feb95 9809 cat >> confdefs.h <<\EOF
10f2d63a
VZ
9810#define wxHAVE_LIB_XPM 1
9811EOF
9812
1e6feb95
VZ
9813 echo "$ac_t""found at $ac_find_libraries" 1>&6
9814 else
9815 echo "$ac_t""no" 1>&6
9816 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9817 fi
10f2d63a 9818
3a922bb4 9819 mesa_link=""
1e6feb95 9820 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
7b7a7637 9821echo "configure:9822: checking for Mesa library" >&5
1e6feb95 9822
10f2d63a
VZ
9823ac_find_libraries=
9824for ac_dir in $SEARCH_LIB;
9825 do
f11bdd03 9826 for ac_extension in a so sl dylib; do
10f2d63a
VZ
9827 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9828 ac_find_libraries=$ac_dir
9829 break 2
9830 fi
9831 done
9832 done
9833
1e6feb95
VZ
9834 if test "$ac_find_libraries" != "" ; then
9835 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
3a922bb4 9836 mesa_link="-lMesaGL"
1e6feb95
VZ
9837 echo "$ac_t""found at $ac_find_libraries" 1>&6
9838 else
9839 { echo "configure: error: no" 1>&2; exit 1; }
9840 fi
10f2d63a 9841
3a922bb4 9842 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine $mesa_link $xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
1e6feb95
VZ
9843 TOOLKIT=MSW
9844 GUIDIST=MSW_DIST
3a922bb4 9845 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
1e6feb95 9846 fi
698dcdb6 9847
1e6feb95
VZ
9848
9849 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
9850# paths, otherwise set no_x=yes.
9851# Uses ac_ vars as temps to allow command line to override cache and checks.
9852# --without-x overrides everything else, but does not touch the cache.
9853echo $ac_n "checking for X""... $ac_c" 1>&6
7b7a7637 9854echo "configure:9855: checking for X" >&5
ab9b9eab
VZ
9855
9856# Check whether --with-x or --without-x was given.
9857if test "${with_x+set}" = set; then
9858 withval="$with_x"
698dcdb6
VZ
9859 :
9860fi
ba337fe7 9861
ab9b9eab
VZ
9862# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9863if test "x$with_x" = xno; then
9864 # The user explicitly disabled X.
9865 have_x=disabled
9866else
9867 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9868 # Both variables are already set.
9869 have_x=yes
9870 else
698dcdb6
VZ
9871if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9872 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
9873else
9874 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
9875ac_x_includes=NO ac_x_libraries=NO
9876rm -fr conftestdir
9877if mkdir conftestdir; then
9878 cd conftestdir
ab9b9eab 9879 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 9880 cat > Imakefile <<'EOF'
ab9b9eab
VZ
9881acfindx:
9882 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9883EOF
9884 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9885 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9886 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9887 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 9888 for ac_extension in a so sl; do
ab9b9eab 9889 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 9890 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 9891 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
9892 fi
9893 done
ab9b9eab
VZ
9894 # Screen out bogus values from the imake configuration. They are
9895 # bogus both because they are the default anyway, and because
9896 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 9897 case "$ac_im_incroot" in
ab9b9eab 9898 /usr/include) ;;
698dcdb6 9899 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 9900 esac
698dcdb6 9901 case "$ac_im_usrlibdir" in
ab9b9eab 9902 /usr/lib | /lib) ;;
698dcdb6 9903 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 9904 esac
ba337fe7 9905 fi
ab9b9eab 9906 cd ..
698dcdb6 9907 rm -fr conftestdir
ab9b9eab 9908fi
10f2d63a 9909
698dcdb6
VZ
9910if test "$ac_x_includes" = NO; then
9911 # Guess where to find include files, by looking for this one X11 .h file.
9912 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9913
ab9b9eab 9914 # First, try using that file with no special directory specified.
698dcdb6 9915cat > conftest.$ac_ext <<EOF
7b7a7637 9916#line 9917 "configure"
ab9b9eab 9917#include "confdefs.h"
698dcdb6
VZ
9918#include <$x_direct_test_include>
9919EOF
9920ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7b7a7637 9921{ (eval echo configure:9922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
9922ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9923if test -z "$ac_err"; then
9924 rm -rf conftest*
ab9b9eab
VZ
9925 # We can compile using X headers with no special include directory.
9926ac_x_includes=
9927else
698dcdb6
VZ
9928 echo "$ac_err" >&5
9929 echo "configure: failed program was:" >&5
ab9b9eab 9930 cat conftest.$ac_ext >&5
698dcdb6
VZ
9931 rm -rf conftest*
9932 # Look for the header file in a standard set of common directories.
9933# Check X11 before X11Rn because it is often a symlink to the current release.
9934 for ac_dir in \
9935 /usr/X11/include \
9936 /usr/X11R6/include \
9937 /usr/X11R5/include \
9938 /usr/X11R4/include \
9939 \
9940 /usr/include/X11 \
9941 /usr/include/X11R6 \
9942 /usr/include/X11R5 \
9943 /usr/include/X11R4 \
9944 \
9945 /usr/local/X11/include \
9946 /usr/local/X11R6/include \
9947 /usr/local/X11R5/include \
9948 /usr/local/X11R4/include \
9949 \
9950 /usr/local/include/X11 \
9951 /usr/local/include/X11R6 \
9952 /usr/local/include/X11R5 \
9953 /usr/local/include/X11R4 \
9954 \
9955 /usr/X386/include \
9956 /usr/x386/include \
9957 /usr/XFree86/include/X11 \
9958 \
9959 /usr/include \
9960 /usr/local/include \
9961 /usr/unsupported/include \
9962 /usr/athena/include \
9963 /usr/local/x11r5/include \
9964 /usr/lpp/Xamples/include \
9965 \
9966 /usr/openwin/include \
9967 /usr/openwin/share/include \
9968 ; \
9969 do
9970 if test -r "$ac_dir/$x_direct_test_include"; then
9971 ac_x_includes=$ac_dir
9972 break
9973 fi
9974 done
ab9b9eab 9975fi
698dcdb6
VZ
9976rm -f conftest*
9977fi # $ac_x_includes = NO
10f2d63a 9978
698dcdb6 9979if test "$ac_x_libraries" = NO; then
ab9b9eab 9980 # Check for the libraries.
698dcdb6
VZ
9981
9982 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9983 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9984
ab9b9eab
VZ
9985 # See if we find them without any special options.
9986 # Don't add to $LIBS permanently.
698dcdb6
VZ
9987 ac_save_LIBS="$LIBS"
9988 LIBS="-l$x_direct_test_library $LIBS"
9989cat > conftest.$ac_ext <<EOF
7b7a7637 9990#line 9991 "configure"
ab9b9eab 9991#include "confdefs.h"
698dcdb6
VZ
9992
9993int main() {
9994${x_direct_test_function}()
9995; return 0; }
9996EOF
7b7a7637 9997if { (eval echo configure:9998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9998 rm -rf conftest*
9999 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
10000# We can link X programs with no special library path.
10001ac_x_libraries=
10002else
698dcdb6
VZ
10003 echo "configure: failed program was:" >&5
10004 cat conftest.$ac_ext >&5
10005 rm -rf conftest*
10006 LIBS="$ac_save_LIBS"
10007# First see if replacing the include by lib works.
10008# Check X11 before X11Rn because it is often a symlink to the current release.
10009for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
10010 /usr/X11/lib \
10011 /usr/X11R6/lib \
10012 /usr/X11R5/lib \
10013 /usr/X11R4/lib \
10014 \
10015 /usr/lib/X11 \
10016 /usr/lib/X11R6 \
10017 /usr/lib/X11R5 \
10018 /usr/lib/X11R4 \
10019 \
10020 /usr/local/X11/lib \
10021 /usr/local/X11R6/lib \
10022 /usr/local/X11R5/lib \
10023 /usr/local/X11R4/lib \
10024 \
10025 /usr/local/lib/X11 \
10026 /usr/local/lib/X11R6 \
10027 /usr/local/lib/X11R5 \
10028 /usr/local/lib/X11R4 \
10029 \
10030 /usr/X386/lib \
10031 /usr/x386/lib \
10032 /usr/XFree86/lib/X11 \
10033 \
10034 /usr/lib \
10035 /usr/local/lib \
10036 /usr/unsupported/lib \
10037 /usr/athena/lib \
10038 /usr/local/x11r5/lib \
10039 /usr/lpp/Xamples/lib \
10040 /lib/usr/lib/X11 \
10041 \
10042 /usr/openwin/lib \
10043 /usr/openwin/share/lib \
10044 ; \
ab9b9eab
VZ
10045do
10046 for ac_extension in a so sl; do
698dcdb6 10047 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
10048 ac_x_libraries=$ac_dir
10049 break 2
10f2d63a 10050 fi
10f2d63a 10051 done
ab9b9eab
VZ
10052done
10053fi
698dcdb6
VZ
10054rm -f conftest*
10055fi # $ac_x_libraries = NO
10f2d63a 10056
698dcdb6 10057if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
10058 # Didn't find X anywhere. Cache the known absence of X.
10059 ac_cv_have_x="have_x=no"
10060else
10061 # Record where we found X for the cache.
10062 ac_cv_have_x="have_x=yes \
10063 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10064fi
10065fi
10f2d63a 10066 fi
ab9b9eab
VZ
10067 eval "$ac_cv_have_x"
10068fi # $with_x != no
10f2d63a 10069
ab9b9eab 10070if test "$have_x" != yes; then
698dcdb6 10071 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
10072 no_x=yes
10073else
10074 # If each of the values was on the command line, it overrides each guess.
10075 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10076 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10077 # Update the cache value to reflect the command line values.
10078 ac_cv_have_x="have_x=yes \
10079 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 10080 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 10081fi
10f2d63a 10082
ab9b9eab
VZ
10083if test "$no_x" = yes; then
10084 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 10085 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
10086#define X_DISPLAY_MISSING 1
10087EOF
10f2d63a 10088
ab9b9eab
VZ
10089 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10090else
10091 if test -n "$x_includes"; then
10092 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
10093 fi
10094
ab9b9eab
VZ
10095 # It would also be nice to do this for all -L options, not just this one.
10096 if test -n "$x_libraries"; then
10097 X_LIBS="$X_LIBS -L$x_libraries"
10098 # For Solaris; some versions of Sun CC require a space after -R and
10099 # others require no space. Words are not sufficient . . . .
698dcdb6 10100 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 10101 "SunOS 5"*)
698dcdb6 10102 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
7b7a7637 10103echo "configure:10104: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
10104 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
10105 cat > conftest.$ac_ext <<EOF
7b7a7637 10106#line 10107 "configure"
ab9b9eab 10107#include "confdefs.h"
10f2d63a 10108
698dcdb6 10109int main() {
788deba1 10110
698dcdb6
VZ
10111; return 0; }
10112EOF
7b7a7637 10113if { (eval echo configure:10114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10114 rm -rf conftest*
ab9b9eab
VZ
10115 ac_R_nospace=yes
10116else
698dcdb6
VZ
10117 echo "configure: failed program was:" >&5
10118 cat conftest.$ac_ext >&5
10119 rm -rf conftest*
10120 ac_R_nospace=no
ab9b9eab 10121fi
698dcdb6 10122rm -f conftest*
ab9b9eab 10123 if test $ac_R_nospace = yes; then
698dcdb6 10124 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10125 X_LIBS="$X_LIBS -R$x_libraries"
10126 else
10127 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 10128 cat > conftest.$ac_ext <<EOF
7b7a7637 10129#line 10130 "configure"
ab9b9eab 10130#include "confdefs.h"
788deba1 10131
698dcdb6 10132int main() {
ab9b9eab 10133
698dcdb6
VZ
10134; return 0; }
10135EOF
7b7a7637 10136if { (eval echo configure:10137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10137 rm -rf conftest*
ab9b9eab
VZ
10138 ac_R_space=yes
10139else
698dcdb6
VZ
10140 echo "configure: failed program was:" >&5
10141 cat conftest.$ac_ext >&5
10142 rm -rf conftest*
10143 ac_R_space=no
ab9b9eab 10144fi
698dcdb6 10145rm -f conftest*
ab9b9eab 10146 if test $ac_R_space = yes; then
698dcdb6 10147 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
10148 X_LIBS="$X_LIBS -R $x_libraries"
10149 else
698dcdb6 10150 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
10151 fi
10152 fi
698dcdb6 10153 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
10154 esac
10155 fi
10156
10157 # Check for system-dependent libraries X programs must link with.
10158 # Do this before checking for the system-independent R6 libraries
10159 # (-lICE), since we may need -lsocket or whatever for X linking.
10160
10161 if test "$ISC" = yes; then
10162 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10163 else
698dcdb6
VZ
10164 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10165 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 10166 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 10167 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
7b7a7637 10168echo "configure:10169: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
10169ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10170if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10171 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10172else
698dcdb6 10173 ac_save_LIBS="$LIBS"
ab9b9eab 10174LIBS="-ldnet $LIBS"
698dcdb6 10175cat > conftest.$ac_ext <<EOF
7b7a7637 10176#line 10177 "configure"
ab9b9eab
VZ
10177#include "confdefs.h"
10178/* Override any gcc2 internal prototype to avoid an error. */
10179/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10180 builtin and then its argument prototype would still apply. */
10181char dnet_ntoa();
10182
10183int main() {
10184dnet_ntoa()
10185; return 0; }
10186EOF
7b7a7637 10187if { (eval echo configure:10188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10188 rm -rf conftest*
10189 eval "ac_cv_lib_$ac_lib_var=yes"
10190else
10191 echo "configure: failed program was:" >&5
10192 cat conftest.$ac_ext >&5
10193 rm -rf conftest*
10194 eval "ac_cv_lib_$ac_lib_var=no"
10195fi
10196rm -f conftest*
10197LIBS="$ac_save_LIBS"
10198
10199fi
10200if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10201 echo "$ac_t""yes" 1>&6
ab9b9eab 10202 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
10203else
10204 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10205fi
10206
10207 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 10208 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
7b7a7637 10209echo "configure:10210: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
10210ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10211if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10212 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10213else
698dcdb6 10214 ac_save_LIBS="$LIBS"
ab9b9eab 10215LIBS="-ldnet_stub $LIBS"
698dcdb6 10216cat > conftest.$ac_ext <<EOF
7b7a7637 10217#line 10218 "configure"
ab9b9eab
VZ
10218#include "confdefs.h"
10219/* Override any gcc2 internal prototype to avoid an error. */
10220/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10221 builtin and then its argument prototype would still apply. */
10222char dnet_ntoa();
10223
10224int main() {
10225dnet_ntoa()
10226; return 0; }
10227EOF
7b7a7637 10228if { (eval echo configure:10229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10229 rm -rf conftest*
10230 eval "ac_cv_lib_$ac_lib_var=yes"
10231else
10232 echo "configure: failed program was:" >&5
10233 cat conftest.$ac_ext >&5
10234 rm -rf conftest*
10235 eval "ac_cv_lib_$ac_lib_var=no"
10236fi
10237rm -f conftest*
10238LIBS="$ac_save_LIBS"
10239
10240fi
10241if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10242 echo "$ac_t""yes" 1>&6
ab9b9eab 10243 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
10244else
10245 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10246fi
10247
10248 fi
10249
10250 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10251 # to get the SysV transport functions.
698dcdb6 10252 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
10253 # needs -lnsl.
10254 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
10255 # on Irix 5.2, according to dickey@clark.net.
10256 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
7b7a7637 10257echo "configure:10258: checking for gethostbyname" >&5
698dcdb6
VZ
10258if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10259 echo $ac_n "(cached) $ac_c" 1>&6
10260else
10261 cat > conftest.$ac_ext <<EOF
7b7a7637 10262#line 10263 "configure"
ab9b9eab
VZ
10263#include "confdefs.h"
10264/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10265 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
10266#include <assert.h>
10267/* Override any gcc2 internal prototype to avoid an error. */
10268/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10269 builtin and then its argument prototype would still apply. */
10270char gethostbyname();
10271
10272int main() {
ab9b9eab
VZ
10273
10274/* The GNU C library defines this for functions which it implements
10275 to always fail with ENOSYS. Some functions are actually named
10276 something starting with __ and the normal name is an alias. */
10277#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10278choke me
10279#else
698dcdb6 10280gethostbyname();
ab9b9eab
VZ
10281#endif
10282
698dcdb6
VZ
10283; return 0; }
10284EOF
7b7a7637 10285if { (eval echo configure:10286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10286 rm -rf conftest*
10287 eval "ac_cv_func_gethostbyname=yes"
10288else
10289 echo "configure: failed program was:" >&5
10290 cat conftest.$ac_ext >&5
10291 rm -rf conftest*
10292 eval "ac_cv_func_gethostbyname=no"
10293fi
10294rm -f conftest*
10295fi
10296
10297if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10298 echo "$ac_t""yes" 1>&6
10299 :
10300else
10301 echo "$ac_t""no" 1>&6
10302fi
ab9b9eab
VZ
10303
10304 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 10305 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
7b7a7637 10306echo "configure:10307: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
10307ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10308if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10309 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10310else
698dcdb6 10311 ac_save_LIBS="$LIBS"
ab9b9eab 10312LIBS="-lnsl $LIBS"
698dcdb6 10313cat > conftest.$ac_ext <<EOF
7b7a7637 10314#line 10315 "configure"
ab9b9eab
VZ
10315#include "confdefs.h"
10316/* Override any gcc2 internal prototype to avoid an error. */
10317/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10318 builtin and then its argument prototype would still apply. */
10319char gethostbyname();
6232543b 10320
698dcdb6
VZ
10321int main() {
10322gethostbyname()
10323; return 0; }
10324EOF
7b7a7637 10325if { (eval echo configure:10326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10326 rm -rf conftest*
10327 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 10328else
698dcdb6
VZ
10329 echo "configure: failed program was:" >&5
10330 cat conftest.$ac_ext >&5
10331 rm -rf conftest*
10332 eval "ac_cv_lib_$ac_lib_var=no"
10333fi
10334rm -f conftest*
10335LIBS="$ac_save_LIBS"
1e487827 10336
698dcdb6
VZ
10337fi
10338if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10339 echo "$ac_t""yes" 1>&6
10340 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10341else
10342 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10343fi
10344
10345 fi
10346
10347 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10348 # socket/setsockopt and other routines are undefined under SCO ODT
10349 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
10350 # on later versions), says simon@lia.di.epfl.ch: it contains
10351 # gethostby* variants that don't use the nameserver (or something).
10352 # -lsocket must be given before -lnsl if both are needed.
10353 # We assume that if connect needs -lnsl, so does gethostbyname.
10354 echo $ac_n "checking for connect""... $ac_c" 1>&6
7b7a7637 10355echo "configure:10356: checking for connect" >&5
698dcdb6
VZ
10356if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
10357 echo $ac_n "(cached) $ac_c" 1>&6
10358else
10359 cat > conftest.$ac_ext <<EOF
7b7a7637 10360#line 10361 "configure"
ab9b9eab
VZ
10361#include "confdefs.h"
10362/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10363 which can conflict with char connect(); below. */
ab9b9eab
VZ
10364#include <assert.h>
10365/* Override any gcc2 internal prototype to avoid an error. */
10366/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10367 builtin and then its argument prototype would still apply. */
10368char connect();
10369
10370int main() {
ab9b9eab
VZ
10371
10372/* The GNU C library defines this for functions which it implements
10373 to always fail with ENOSYS. Some functions are actually named
10374 something starting with __ and the normal name is an alias. */
10375#if defined (__stub_connect) || defined (__stub___connect)
10376choke me
10377#else
698dcdb6 10378connect();
ab9b9eab
VZ
10379#endif
10380
698dcdb6
VZ
10381; return 0; }
10382EOF
7b7a7637 10383if { (eval echo configure:10384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10384 rm -rf conftest*
10385 eval "ac_cv_func_connect=yes"
10386else
10387 echo "configure: failed program was:" >&5
10388 cat conftest.$ac_ext >&5
10389 rm -rf conftest*
10390 eval "ac_cv_func_connect=no"
10391fi
10392rm -f conftest*
10393fi
10394
10395if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
10396 echo "$ac_t""yes" 1>&6
10397 :
10398else
10399 echo "$ac_t""no" 1>&6
10400fi
ab9b9eab
VZ
10401
10402 if test $ac_cv_func_connect = no; then
698dcdb6 10403 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
7b7a7637 10404echo "configure:10405: checking for connect in -lsocket" >&5
698dcdb6
VZ
10405ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
10406if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10407 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10408else
698dcdb6 10409 ac_save_LIBS="$LIBS"
ab9b9eab 10410LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 10411cat > conftest.$ac_ext <<EOF
7b7a7637 10412#line 10413 "configure"
ab9b9eab
VZ
10413#include "confdefs.h"
10414/* Override any gcc2 internal prototype to avoid an error. */
10415/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10416 builtin and then its argument prototype would still apply. */
10417char connect();
10418
10419int main() {
10420connect()
10421; return 0; }
10422EOF
7b7a7637 10423if { (eval echo configure:10424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10424 rm -rf conftest*
10425 eval "ac_cv_lib_$ac_lib_var=yes"
10426else
10427 echo "configure: failed program was:" >&5
10428 cat conftest.$ac_ext >&5
10429 rm -rf conftest*
10430 eval "ac_cv_lib_$ac_lib_var=no"
10431fi
10432rm -f conftest*
10433LIBS="$ac_save_LIBS"
10434
10435fi
10436if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10437 echo "$ac_t""yes" 1>&6
ab9b9eab 10438 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
10439else
10440 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10441fi
10442
10443 fi
10444
698dcdb6
VZ
10445 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
10446 echo $ac_n "checking for remove""... $ac_c" 1>&6
7b7a7637 10447echo "configure:10448: checking for remove" >&5
698dcdb6
VZ
10448if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
10449 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10450else
698dcdb6 10451 cat > conftest.$ac_ext <<EOF
7b7a7637 10452#line 10453 "configure"
ab9b9eab
VZ
10453#include "confdefs.h"
10454/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10455 which can conflict with char remove(); below. */
ab9b9eab
VZ
10456#include <assert.h>
10457/* Override any gcc2 internal prototype to avoid an error. */
10458/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10459 builtin and then its argument prototype would still apply. */
10460char remove();
10461
10462int main() {
ab9b9eab
VZ
10463
10464/* The GNU C library defines this for functions which it implements
10465 to always fail with ENOSYS. Some functions are actually named
10466 something starting with __ and the normal name is an alias. */
10467#if defined (__stub_remove) || defined (__stub___remove)
10468choke me
10469#else
698dcdb6 10470remove();
ab9b9eab
VZ
10471#endif
10472
698dcdb6
VZ
10473; return 0; }
10474EOF
7b7a7637 10475if { (eval echo configure:10476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10476 rm -rf conftest*
10477 eval "ac_cv_func_remove=yes"
10478else
10479 echo "configure: failed program was:" >&5
10480 cat conftest.$ac_ext >&5
10481 rm -rf conftest*
10482 eval "ac_cv_func_remove=no"
10483fi
10484rm -f conftest*
10485fi
10486
10487if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
10488 echo "$ac_t""yes" 1>&6
10489 :
10490else
10491 echo "$ac_t""no" 1>&6
10492fi
ab9b9eab
VZ
10493
10494 if test $ac_cv_func_remove = no; then
698dcdb6 10495 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
7b7a7637 10496echo "configure:10497: checking for remove in -lposix" >&5
698dcdb6
VZ
10497ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
10498if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10499 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10500else
698dcdb6 10501 ac_save_LIBS="$LIBS"
ab9b9eab 10502LIBS="-lposix $LIBS"
698dcdb6 10503cat > conftest.$ac_ext <<EOF
7b7a7637 10504#line 10505 "configure"
ab9b9eab
VZ
10505#include "confdefs.h"
10506/* Override any gcc2 internal prototype to avoid an error. */
10507/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10508 builtin and then its argument prototype would still apply. */
10509char remove();
10510
10511int main() {
10512remove()
10513; return 0; }
10514EOF
7b7a7637 10515if { (eval echo configure:10516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10516 rm -rf conftest*
10517 eval "ac_cv_lib_$ac_lib_var=yes"
10518else
10519 echo "configure: failed program was:" >&5
10520 cat conftest.$ac_ext >&5
10521 rm -rf conftest*
10522 eval "ac_cv_lib_$ac_lib_var=no"
10523fi
10524rm -f conftest*
10525LIBS="$ac_save_LIBS"
10526
10527fi
10528if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10529 echo "$ac_t""yes" 1>&6
ab9b9eab 10530 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
10531else
10532 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10533fi
10534
10535 fi
10536
10537 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 10538 echo $ac_n "checking for shmat""... $ac_c" 1>&6
7b7a7637 10539echo "configure:10540: checking for shmat" >&5
698dcdb6
VZ
10540if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
10541 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10542else
698dcdb6 10543 cat > conftest.$ac_ext <<EOF
7b7a7637 10544#line 10545 "configure"
ab9b9eab
VZ
10545#include "confdefs.h"
10546/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10547 which can conflict with char shmat(); below. */
ab9b9eab
VZ
10548#include <assert.h>
10549/* Override any gcc2 internal prototype to avoid an error. */
10550/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10551 builtin and then its argument prototype would still apply. */
10552char shmat();
10553
10554int main() {
ab9b9eab
VZ
10555
10556/* The GNU C library defines this for functions which it implements
10557 to always fail with ENOSYS. Some functions are actually named
10558 something starting with __ and the normal name is an alias. */
10559#if defined (__stub_shmat) || defined (__stub___shmat)
10560choke me
10561#else
698dcdb6 10562shmat();
ab9b9eab
VZ
10563#endif
10564
698dcdb6
VZ
10565; return 0; }
10566EOF
7b7a7637 10567if { (eval echo configure:10568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10568 rm -rf conftest*
10569 eval "ac_cv_func_shmat=yes"
10570else
10571 echo "configure: failed program was:" >&5
10572 cat conftest.$ac_ext >&5
10573 rm -rf conftest*
10574 eval "ac_cv_func_shmat=no"
10575fi
10576rm -f conftest*
10577fi
10578
10579if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
10580 echo "$ac_t""yes" 1>&6
10581 :
10582else
10583 echo "$ac_t""no" 1>&6
10584fi
ab9b9eab
VZ
10585
10586 if test $ac_cv_func_shmat = no; then
698dcdb6 10587 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
7b7a7637 10588echo "configure:10589: checking for shmat in -lipc" >&5
698dcdb6
VZ
10589ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
10590if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10591 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10592else
698dcdb6 10593 ac_save_LIBS="$LIBS"
ab9b9eab 10594LIBS="-lipc $LIBS"
698dcdb6 10595cat > conftest.$ac_ext <<EOF
7b7a7637 10596#line 10597 "configure"
ab9b9eab
VZ
10597#include "confdefs.h"
10598/* Override any gcc2 internal prototype to avoid an error. */
10599/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10600 builtin and then its argument prototype would still apply. */
10601char shmat();
10602
10603int main() {
10604shmat()
10605; return 0; }
10606EOF
7b7a7637 10607if { (eval echo configure:10608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10608 rm -rf conftest*
10609 eval "ac_cv_lib_$ac_lib_var=yes"
10610else
10611 echo "configure: failed program was:" >&5
10612 cat conftest.$ac_ext >&5
10613 rm -rf conftest*
10614 eval "ac_cv_lib_$ac_lib_var=no"
10615fi
10616rm -f conftest*
10617LIBS="$ac_save_LIBS"
10618
10619fi
10620if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10621 echo "$ac_t""yes" 1>&6
ab9b9eab 10622 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
10623else
10624 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10625fi
10626
10627 fi
10628 fi
10629
10630 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 10631 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
10632 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10633 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10634 # check for ICE first), but we must link in the order -lSM -lICE or
10635 # we get undefined symbols. So assume we have SM if we have ICE.
10636 # These have to be linked with before -lX11, unlike the other
10637 # libraries we check for below, so use a different variable.
698dcdb6
VZ
10638 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10639 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
7b7a7637 10640echo "configure:10641: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
10641ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10642if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10643 echo $ac_n "(cached) $ac_c" 1>&6
10644else
10645 ac_save_LIBS="$LIBS"
ab9b9eab 10646LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 10647cat > conftest.$ac_ext <<EOF
7b7a7637 10648#line 10649 "configure"
ab9b9eab
VZ
10649#include "confdefs.h"
10650/* Override any gcc2 internal prototype to avoid an error. */
10651/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10652 builtin and then its argument prototype would still apply. */
10653char IceConnectionNumber();
10654
10655int main() {
10656IceConnectionNumber()
10657; return 0; }
10658EOF
7b7a7637 10659if { (eval echo configure:10660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10660 rm -rf conftest*
10661 eval "ac_cv_lib_$ac_lib_var=yes"
10662else
10663 echo "configure: failed program was:" >&5
10664 cat conftest.$ac_ext >&5
10665 rm -rf conftest*
10666 eval "ac_cv_lib_$ac_lib_var=no"
10667fi
10668rm -f conftest*
10669LIBS="$ac_save_LIBS"
10670
10671fi
10672if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10673 echo "$ac_t""yes" 1>&6
ab9b9eab 10674 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
10675else
10676 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10677fi
10678
698dcdb6 10679 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
10680
10681fi
10682
1e6feb95
VZ
10683 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10684 LDFLAGS="$LDFLAGS $X_LIBS"
ab9b9eab 10685
1e6feb95
VZ
10686 if test "$wxUSE_MOTIF" = 1; then
10687 if test "$no_x" = "yes"; then
10688 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10689 fi
ab9b9eab 10690
1e6feb95
VZ
10691 GUI_TK_LIBRARY="$X_LIBS"
10692 TOOLKIT_INCLUDE="$X_CFLAGS"
1e6feb95 10693 AFMINSTALL=afminstall
1e6feb95 10694 COMPILED_X_PROGRAM=0
cd6d6d5b 10695
1e6feb95 10696 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
7b7a7637 10697echo "configure:10698: checking for Motif/Lesstif headers" >&5
1e6feb95 10698
ab9b9eab
VZ
10699ac_find_includes=
10700for ac_dir in $SEARCH_INCLUDE;
10701 do
10702 if test -f "$ac_dir/Xm/Xm.h"; then
10703 ac_find_includes=$ac_dir
10704 break
10705 fi
10706 done
10707
1e6feb95
VZ
10708 if test "$ac_find_includes" != "" ; then
10709 echo "$ac_t""found $ac_find_includes" 1>&6
10710 else
10711 cat > conftest.$ac_ext <<EOF
7b7a7637 10712#line 10713 "configure"
cd6d6d5b
VZ
10713#include "confdefs.h"
10714
1e6feb95
VZ
10715 #include <Xm/Xm.h>
10716
698dcdb6 10717int main() {
cd6d6d5b 10718
1e6feb95 10719 int version;
1e6feb95
VZ
10720 version = xmUseVersion;
10721
698dcdb6
VZ
10722; return 0; }
10723EOF
7b7a7637 10724if { (eval echo configure:10725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10725 rm -rf conftest*
10726
1e6feb95
VZ
10727 echo "$ac_t""found in default search path" 1>&6
10728 COMPILED_X_PROGRAM=1
10729
cd6d6d5b 10730else
698dcdb6
VZ
10731 echo "configure: failed program was:" >&5
10732 cat conftest.$ac_ext >&5
10733 rm -rf conftest*
10734
1e6feb95
VZ
10735 echo "$ac_t""no" 1>&6
10736 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10737
698dcdb6 10738
cd6d6d5b 10739fi
698dcdb6 10740rm -f conftest*
1e6feb95 10741 fi
ab9b9eab 10742
1e6feb95
VZ
10743 if test "$COMPILED_X_PROGRAM" = 0; then
10744 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
7b7a7637 10745echo "configure:10746: checking for Motif/Lesstif library" >&5
1e6feb95 10746
ab9b9eab
VZ
10747ac_find_libraries=
10748for ac_dir in $SEARCH_LIB;
10749 do
f11bdd03 10750 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
10751 if test -f "$ac_dir/libXm.$ac_extension"; then
10752 ac_find_libraries=$ac_dir
10753 break 2
10754 fi
10755 done
10756 done
10757
1e6feb95
VZ
10758 if test "$ac_find_libraries" != "" ; then
10759
ab9b9eab
VZ
10760 ac_path_to_include=$ac_find_includes
10761 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10762 result=$?
10763 if test $result = 0; then
10764 ac_path_to_include=""
10765 else
10766 ac_path_to_include="-I$ac_find_includes"
10767 fi
10768
1e6feb95 10769
ab9b9eab
VZ
10770 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10771 result=$?
10772 if test $result = 0; then
10773 ac_path_to_link=""
10774 else
10775 ac_path_to_link="-L$ac_find_libraries"
10776 fi
10777
698dcdb6 10778
1e6feb95
VZ
10779 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10780 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10781 echo "$ac_t""found at $ac_find_libraries" 1>&6
10782 else
10783 cat > conftest.$ac_ext <<EOF
7b7a7637 10784#line 10785 "configure"
cd6d6d5b 10785#include "confdefs.h"
ab9b9eab 10786
1e6feb95
VZ
10787 #include <Xm/Xm.h>
10788
698dcdb6 10789int main() {
ab9b9eab 10790
1e6feb95 10791 int version;
1e6feb95
VZ
10792 version = xmUseVersion;
10793
698dcdb6
VZ
10794; return 0; }
10795EOF
7b7a7637 10796if { (eval echo configure:10797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10797 rm -rf conftest*
10798
1e6feb95
VZ
10799 echo "$ac_t""found in default search path" 1>&6
10800 COMPILED_X_PROGRAM=1
10801
cd6d6d5b 10802else
698dcdb6
VZ
10803 echo "configure: failed program was:" >&5
10804 cat conftest.$ac_ext >&5
10805 rm -rf conftest*
10806
1e6feb95
VZ
10807 echo "$ac_t""no" 1>&6
10808 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10809
698dcdb6 10810
cd6d6d5b 10811fi
698dcdb6 10812rm -f conftest*
1e6feb95 10813 fi
cd6d6d5b 10814 fi
ab9b9eab 10815
3a922bb4 10816 xpm_link=""
1e6feb95 10817 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
7b7a7637 10818echo "configure:10819: checking for Xpm library" >&5
1e6feb95 10819
ab9b9eab
VZ
10820ac_find_libraries=
10821for ac_dir in $SEARCH_LIB;
10822 do
f11bdd03 10823 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
10824 if test -f "$ac_dir/libXpm.$ac_extension"; then
10825 ac_find_libraries=$ac_dir
10826 break 2
10827 fi
10828 done
10829 done
10830
1e6feb95
VZ
10831 if test "$ac_find_libraries" != "" ; then
10832
ab9b9eab
VZ
10833 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10834 result=$?
10835 if test $result = 0; then
10836 ac_path_to_link=""
10837 else
10838 ac_path_to_link="-L$ac_find_libraries"
10839 fi
10840
1e6feb95 10841 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
3a922bb4 10842 xpm_link="-lXpm "
1e6feb95 10843 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
10844#define wxHAVE_LIB_XPM 1
10845EOF
10846
1e6feb95
VZ
10847 echo "$ac_t""found at $ac_find_libraries" 1>&6
10848 else
10849 cat > conftest.$ac_ext <<EOF
7b7a7637 10850#line 10851 "configure"
cd6d6d5b
VZ
10851#include "confdefs.h"
10852
1e6feb95
VZ
10853 #include <X11/xpm.h>
10854
698dcdb6 10855int main() {
cd6d6d5b 10856
1e6feb95 10857 int version;
1e6feb95
VZ
10858 version = XpmLibraryVersion();
10859
698dcdb6
VZ
10860; return 0; }
10861EOF
7b7a7637 10862if { (eval echo configure:10863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10863 rm -rf conftest*
10864
3a922bb4
RL
10865 xpm_link="-lXpm "
10866 cat >> confdefs.h <<\EOF
3ace2e6d
SN
10867#define wxHAVE_LIB_XPM 1
10868EOF
10869
1e6feb95
VZ
10870 echo "$ac_t""found in default search path" 1>&6
10871 COMPILED_X_PROGRAM=0
10872
cd6d6d5b 10873else
698dcdb6
VZ
10874 echo "configure: failed program was:" >&5
10875 cat conftest.$ac_ext >&5
10876 rm -rf conftest*
10877
1e6feb95
VZ
10878 echo "$ac_t""no" 1>&6
10879 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10880
698dcdb6 10881
cd6d6d5b 10882fi
698dcdb6 10883rm -f conftest*
1e6feb95
VZ
10884 fi
10885
3a922bb4 10886 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm $xpm_link -lXmu -lXext -lXt -lX11"
334f0d2c 10887 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
1e6feb95
VZ
10888 TOOLKIT=MOTIF
10889 GUIDIST=MOTIF_DIST
ab9b9eab
VZ
10890 fi
10891
3a922bb4 10892 if test "$wxUSE_MAC" = 1; then
d08b457b
GD
10893 CPPFLAGS="${CPPFLAGS} -cpp-precomp"
10894 CFLAGS="${CFLAGS} -fpascal-strings"
10895 CXXFLAGS="${CXXFLAGS} -fpascal-strings"
10896 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DTARGET_CARBON"
10897
1e6feb95 10898 TOOLKIT=MAC
3a922bb4 10899 GUIDIST=MACX_DIST
1e6feb95 10900 fi
10f2d63a 10901
1e6feb95
VZ
10902 if test "$wxUSE_PM" = 1; then
10903 TOOLKIT=PM
10904 GUIDIST=GTK_DIST
10905 fi
b4085ce6 10906
3a922bb4 10907 if test "$TOOLKIT" = "PM" ; then
1e6feb95 10908 TOOLKIT_DIR="os2"
3a922bb4
RL
10909 else
10910 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
1e6feb95 10911 fi
e07802fc 10912
3a922bb4 10913 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
1e6feb95 10914
3a922bb4
RL
10915 if test "$wxUSE_UNIVERSAL" = "yes"; then
10916 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10917 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
10918 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
10919 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
10920 WIDGET_SET=univ
f6bcfd97 10921 else
3a922bb4 10922 ALL_OBJECTS="\$(GUIOBJS)"
1e6feb95
VZ
10923 fi
10924
10925 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10926
10927 if test "$TOOLKIT" != "MSW"; then
10928 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10929 fi
10930
10931 if test "$wxUSE_HTML" = "yes"; then
10932 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10933 fi
3fcdd07b 10934
3a922bb4
RL
10935 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
10936 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
831b3152 10937 fi
d9d8273d 10938 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 10939 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
10940 fi
10941 if test "$wxUSE_LIBTIFF" = "yes" ; then
10942 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10943 fi
10944 if test "$wxUSE_LIBPNG" = "yes" ; then
10945 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10946 fi
3fed1840
RR
10947 if test "$wxUSE_FREETYPE" = "yes" ; then
10948 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10949 fi
2224580a 10950
2224580a
VZ
10951 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10952 RPM_SPEC="wx\$(TOOLKIT).spec"
10953
10954 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10955 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 10956else
dad6c0ea
VZ
10957 USE_GUI=0
10958
3a922bb4 10959 TOOLKIT_DIR="base"
f6bcfd97 10960
3a922bb4
RL
10961 if test "$USE_WIN32" = 1 ; then
10962 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
10963 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
0b2effe9 10964
3a922bb4 10965 TOOLKIT="MSW"
f6bcfd97 10966 else
3a922bb4
RL
10967 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
10968 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
f6bcfd97
BP
10969 fi
10970
831b3152 10971 PORT_FILES="\${top_srcdir}/src/files.lst"
2224580a
VZ
10972 RPM_FILES="src/rpmfiles.lst"
10973 RPM_SPEC="wxBase.spec"
10974
10975 GUIDIST="BASE_DIST"
10976 DISTDIR="wxBase"
10f2d63a
VZ
10977fi
10978
3a922bb4
RL
10979if test "x$REGEX_INCLUDE" != "x" ; then
10980 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10981fi
10982if test "$wxUSE_ZLIB" = "yes" ; then
10983 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10984fi
10f2d63a 10985
3a922bb4
RL
10986if test "$wxUSE_OPENGL" = "yes"; then
10987 if test "$wxUSE_MAC" = 1; then
10988 cat >> confdefs.h <<\EOF
10989#define wxUSE_OPENGL 1
10990EOF
10f2d63a 10991
3a922bb4
RL
10992 cat >> confdefs.h <<\EOF
10993#define wxUSE_GLCANVAS 1
10994EOF
10f2d63a 10995
3a922bb4
RL
10996 OPENGL_LIBS="-framework OpenGL -framework AGL"
10997 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
10998 else
10999 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11000echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
7b7a7637 11001echo "configure:11002: checking for GL/gl.h" >&5
3a922bb4
RL
11002if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11003 echo $ac_n "(cached) $ac_c" 1>&6
11004else
11005 cat > conftest.$ac_ext <<EOF
7b7a7637 11006#line 11007 "configure"
3a922bb4
RL
11007#include "confdefs.h"
11008#include <GL/gl.h>
11009EOF
11010ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7b7a7637 11011{ (eval echo configure:11012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
11012ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11013if test -z "$ac_err"; then
11014 rm -rf conftest*
11015 eval "ac_cv_header_$ac_safe=yes"
11016else
11017 echo "$ac_err" >&5
11018 echo "configure: failed program was:" >&5
11019 cat conftest.$ac_ext >&5
11020 rm -rf conftest*
11021 eval "ac_cv_header_$ac_safe=no"
11022fi
11023rm -f conftest*
11024fi
11025if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11026 echo "$ac_t""yes" 1>&6
11027
11028 cat >> confdefs.h <<\EOF
11029#define wxUSE_OPENGL 1
11030EOF
10f2d63a 11031
3a922bb4
RL
11032 cat >> confdefs.h <<\EOF
11033#define wxUSE_GLCANVAS 1
11034EOF
10f2d63a 11035
3a922bb4
RL
11036 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
11037 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
7b7a7637 11038echo "configure:11039: checking for glFlush in -lGL" >&5
3a922bb4
RL
11039ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
11040if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11041 echo $ac_n "(cached) $ac_c" 1>&6
11042else
11043 ac_save_LIBS="$LIBS"
11044LIBS="-lGL $LIBS"
11045cat > conftest.$ac_ext <<EOF
7b7a7637 11046#line 11047 "configure"
3a922bb4
RL
11047#include "confdefs.h"
11048/* Override any gcc2 internal prototype to avoid an error. */
11049/* We use char because int might match the return type of a gcc2
11050 builtin and then its argument prototype would still apply. */
11051char glFlush();
55e80573 11052
3a922bb4
RL
11053int main() {
11054glFlush()
11055; return 0; }
11056EOF
7b7a7637 11057if { (eval echo configure:11058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4
RL
11058 rm -rf conftest*
11059 eval "ac_cv_lib_$ac_lib_var=yes"
11060else
11061 echo "configure: failed program was:" >&5
11062 cat conftest.$ac_ext >&5
11063 rm -rf conftest*
11064 eval "ac_cv_lib_$ac_lib_var=no"
11065fi
11066rm -f conftest*
11067LIBS="$ac_save_LIBS"
55e80573 11068
3a922bb4
RL
11069fi
11070if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11071 echo "$ac_t""yes" 1>&6
11072
11073 OPENGL_LIBS="-lGL -lGLU"
11074
11075else
11076 echo "$ac_t""no" 1>&6
11077
11078 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
7b7a7637 11079echo "configure:11080: checking for glFlush in -lMesaGL" >&5
3a922bb4
RL
11080ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
11081if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11082 echo $ac_n "(cached) $ac_c" 1>&6
11083else
11084 ac_save_LIBS="$LIBS"
11085LIBS="-lMesaGL $LIBS"
11086cat > conftest.$ac_ext <<EOF
7b7a7637 11087#line 11088 "configure"
3a922bb4
RL
11088#include "confdefs.h"
11089/* Override any gcc2 internal prototype to avoid an error. */
11090/* We use char because int might match the return type of a gcc2
11091 builtin and then its argument prototype would still apply. */
11092char glFlush();
11093
11094int main() {
11095glFlush()
11096; return 0; }
11097EOF
7b7a7637 11098if { (eval echo configure:11099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4
RL
11099 rm -rf conftest*
11100 eval "ac_cv_lib_$ac_lib_var=yes"
11101else
11102 echo "configure: failed program was:" >&5
11103 cat conftest.$ac_ext >&5
11104 rm -rf conftest*
11105 eval "ac_cv_lib_$ac_lib_var=no"
11106fi
11107rm -f conftest*
11108LIBS="$ac_save_LIBS"
11109
11110fi
11111if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11112 echo "$ac_t""yes" 1>&6
11113
11114 OPENGL_LIBS="-lMesaGL -lMesaGLU"
11115
11116else
11117 echo "$ac_t""no" 1>&6
11118fi
55e80573 11119
3a922bb4
RL
11120
11121fi
11122
11123
11124else
11125 echo "$ac_t""no" 1>&6
11126wxUSE_OPENGL=0
11127fi
11128
11129 fi
11130fi
11131
11132if test -z "$TOOLKIT_VPATH" ; then
11133 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
11134fi
11135
11136if test -n "$TOOLKIT" ; then
11137 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
11138fi
11139
11140if test "$wxUSE_CYGWIN" = 1 ; then
11141 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
11142fi
11143
11144lib_debug_suffix=
11145if test "$wxUSE_DEBUG_FLAG" = "yes"; then
11146 lib_debug_suffix=d
11147 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}d"
11148fi
11149
11150TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_debug_suffix}-${WX_RELEASE}"
11151TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_debug_suffix}_gl-${WX_RELEASE}"
11152
11153if test "$cross_compiling" = "yes"; then
11154 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
11155 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
11156fi
11157
11158WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
11159WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
11160
11161WXCONFIG_LIBS="-l${WX_LIBRARY}"
11162
11163if test "$wxUSE_OPENGL" = "yes"; then
11164 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} $OPENGL_LIBS"
11165fi
11166
11167WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
11168WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
11169
11170WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11171WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11172
11173WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
11174WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
11175WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
11176WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
11177
d08b457b 11178WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
3a922bb4
RL
11179
11180
11181
11182if test "$wxUSE_SHARED" = "yes"; then
55e80573
VZ
11183
11184 if test "$wxUSE_OPENGL" = "yes"; then
11185 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
3a922bb4 11186 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
55e80573
VZ
11187 else
11188 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
3a922bb4 11189 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
55e80573
VZ
11190 fi
11191
dd4f7467 11192 if test "$GCC" = "yes"; then
55e80573 11193 PIC_FLAG="-fPIC"
dd4f7467 11194 fi
55e80573
VZ
11195
11196 SHARED_LD="${CXX} -shared -o"
698dcdb6 11197
10f2d63a
VZ
11198 case "${host}" in
11199 *-hp-hpux* )
55e80573 11200 if test "$GCC" != "yes"; then
f6bcfd97
BP
11201 LDFLAGS="-L/usr/lib"
11202
10f2d63a
VZ
11203 SHARED_LD="${CXX} -b -o"
11204 PIC_FLAG="+Z"
11205 fi
55e80573 11206
7b7a7637
RL
11207 if test "$wxUSE_OPENGL" = "yes"; then
11208 WX_ALL_INSTALLED="preinstall_gl"
11209 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
11210 else
11211 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
11212 fi
10f2d63a 11213 ;;
b12915c1 11214
55e80573
VZ
11215 *-*-linux* )
11216 if test "$GCC" != "yes"; then
11217 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
7b7a7637 11218echo "configure:11219: checking for Intel compiler" >&5
55e80573
VZ
11219if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
11220 echo $ac_n "(cached) $ac_c" 1>&6
11221else
11222
11223 cat > conftest.$ac_ext <<EOF
7b7a7637 11224#line 11225 "configure"
55e80573
VZ
11225#include "confdefs.h"
11226
11227int main() {
11228
11229 #ifndef __INTEL_COMPILER
dd4f7467 11230 #error Not icc
55e80573
VZ
11231 #endif
11232
11233; return 0; }
11234EOF
7b7a7637 11235if { (eval echo configure:11236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
55e80573
VZ
11236 rm -rf conftest*
11237 wx_cv_prog_icc=yes
11238else
11239 echo "configure: failed program was:" >&5
11240 cat conftest.$ac_ext >&5
11241 rm -rf conftest*
11242 wx_cv_prog_icc=no
11243
11244fi
11245rm -f conftest*
11246
11247fi
11248
11249echo "$ac_t""$wx_cv_prog_icc" 1>&6
55e80573
VZ
11250 if test "$wx_cv_prog_icc" = "yes"; then
11251 PIC_FLAG="-KPIC"
11252 fi
11253 fi
11254
3a922bb4
RL
11255 if test "$wxUSE_SONAME" = "yes" ; then
11256 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
11257 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 11258 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 11259 fi
10f2d63a 11260 ;;
55e80573 11261
10f2d63a
VZ
11262 *-*-solaris2* )
11263 if test "$GCC" = yes ; then
f6bcfd97 11264 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
11265 else
11266 SHARED_LD="${CXX} -G -o"
11267 PIC_FLAG="-KPIC"
7b7a7637
RL
11268 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
11269 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}"
10f2d63a 11270 fi
10f2d63a 11271 ;;
55e80573 11272
b4085ce6 11273 *-*-darwin* )
d08b457b
GD
11274 CFLAGS="${CFLAGS} -fno-common"
11275 CXXFLAGS="${CXXFLAGS} -fno-common"
ea5999b9
GD
11276 SHARED_LD="${CXX} -dynamiclib -o"
11277 PIC_FLAG="-dynamic -fPIC"
10f2d63a 11278 ;;
55e80573 11279
10f2d63a
VZ
11280 *-*-aix* )
11281 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10f2d63a 11282 ;;
55e80573 11283
7b7a7637 11284 *-*-cygwin* | *-*-mingw32* )
3a922bb4
RL
11285 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_NAME_STATIC} -o"
11286 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXUSINGDLL=1"
18dbb1f6 11287 WXMSW_DLL_DEFINES="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
7b7a7637
RL
11288
11289 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 11290 WX_ALL_INSTALLED="preinstall_gl"
3a922bb4 11291 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
f6bcfd97 11292 else
3a922bb4 11293 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
f6bcfd97 11294 fi
7b7a7637 11295 PIC_FLAG=
10f2d63a 11296 ;;
55e80573 11297
10f2d63a 11298 *-pc-os2_emx )
7b7a7637 11299 wxUSE_SHARED=no
10f2d63a 11300 ;;
55e80573 11301
b12915c1 11302 *-*-beos* )
e2b8b066 11303 SHARED_LD="${LD} -shared -o"
b12915c1 11304 ;;
55e80573
VZ
11305
11306 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
11307 *-*-sunos4* | \
11308 *-*-irix5* | *-*-irix6* | \
11309 *-*-osf* | \
11310 *-*-dgux5* | \
11311 *-*-sysv5* )
11312 ;;
11313
10f2d63a 11314 *)
7b7a7637 11315 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
10f2d63a
VZ
11316 esac
11317
11318 if test "x$WX_TARGET_LIBRARY" = "x"; then
11319 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 11320 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 11321 fi
55e80573 11322
3711412e 11323 WX_TARGET_LIBRARY_TYPE="so"
3a922bb4 11324fi
f6bcfd97 11325
3a922bb4 11326if test "$wxUSE_SHARED" = "no"; then
f6bcfd97 11327
3a922bb4 11328 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
f6bcfd97
BP
11329 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11330 fi
11331
3a922bb4
RL
11332 if test "$wxUSE_OPENGL" = "yes"; then
11333 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
11334 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
11335 else
11336 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
11337 fi
698dcdb6 11338
3a922bb4
RL
11339 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11340 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
11341
11342 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a 11343fi
10f2d63a 11344
d08b457b
GD
11345if test "$wxUSE_MAC" = 1; then
11346 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
11347 # Extract the first word of "Rez", so it can be a program name with args.
11348set dummy Rez; ac_word=$2
11349echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7b7a7637 11350echo "configure:11351: checking for $ac_word" >&5
d08b457b
GD
11351if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
11352 echo $ac_n "(cached) $ac_c" 1>&6
11353else
11354 if test -n "$RESCOMP"; then
11355 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
11356else
11357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11358 ac_dummy="$PATH"
11359 for ac_dir in $ac_dummy; do
11360 test -z "$ac_dir" && ac_dir=.
11361 if test -f $ac_dir/$ac_word; then
11362 ac_cv_prog_RESCOMP="Rez"
11363 break
11364 fi
11365 done
11366 IFS="$ac_save_ifs"
11367 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
11368fi
11369fi
11370RESCOMP="$ac_cv_prog_RESCOMP"
11371if test -n "$RESCOMP"; then
11372 echo "$ac_t""$RESCOMP" 1>&6
11373else
11374 echo "$ac_t""no" 1>&6
11375fi
11376
11377 # Extract the first word of "Derez", so it can be a program name with args.
11378set dummy Derez; ac_word=$2
11379echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7b7a7637 11380echo "configure:11381: checking for $ac_word" >&5
d08b457b
GD
11381if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
11382 echo $ac_n "(cached) $ac_c" 1>&6
11383else
11384 if test -n "$DEREZ"; then
11385 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
11386else
11387 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11388 ac_dummy="$PATH"
11389 for ac_dir in $ac_dummy; do
11390 test -z "$ac_dir" && ac_dir=.
11391 if test -f $ac_dir/$ac_word; then
11392 ac_cv_prog_DEREZ="Derez"
11393 break
11394 fi
11395 done
11396 IFS="$ac_save_ifs"
11397 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
11398fi
11399fi
11400DEREZ="$ac_cv_prog_DEREZ"
11401if test -n "$DEREZ"; then
11402 echo "$ac_t""$DEREZ" 1>&6
11403else
11404 echo "$ac_t""no" 1>&6
11405fi
11406
11407 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
11408 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
11409fi
11410
3a922bb4
RL
11411
11412for ac_hdr in strings.h
9cfadba2 11413do
698dcdb6
VZ
11414ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11415echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7b7a7637 11416echo "configure:11417: checking for $ac_hdr" >&5
698dcdb6
VZ
11417if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11418 echo $ac_n "(cached) $ac_c" 1>&6
11419else
11420 cat > conftest.$ac_ext <<EOF
7b7a7637 11421#line 11422 "configure"
9cfadba2 11422#include "confdefs.h"
698dcdb6
VZ
11423#include <$ac_hdr>
11424EOF
11425ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7b7a7637 11426{ (eval echo configure:11427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11427ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11428if test -z "$ac_err"; then
11429 rm -rf conftest*
11430 eval "ac_cv_header_$ac_safe=yes"
6232543b 11431else
698dcdb6
VZ
11432 echo "$ac_err" >&5
11433 echo "configure: failed program was:" >&5
9cfadba2 11434 cat conftest.$ac_ext >&5
698dcdb6
VZ
11435 rm -rf conftest*
11436 eval "ac_cv_header_$ac_safe=no"
9cfadba2 11437fi
698dcdb6 11438rm -f conftest*
9cfadba2 11439fi
698dcdb6
VZ
11440if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11441 echo "$ac_t""yes" 1>&6
11442 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11443 cat >> confdefs.h <<EOF
11444#define $ac_tr_hdr 1
9cfadba2 11445EOF
698dcdb6
VZ
11446
11447else
11448 echo "$ac_t""no" 1>&6
9cfadba2
VZ
11449fi
11450done
10f2d63a 11451
3a922bb4 11452for ac_hdr in stdlib.h
10f2d63a 11453do
698dcdb6
VZ
11454ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11455echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7b7a7637 11456echo "configure:11457: checking for $ac_hdr" >&5
698dcdb6
VZ
11457if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11458 echo $ac_n "(cached) $ac_c" 1>&6
11459else
11460 cat > conftest.$ac_ext <<EOF
7b7a7637 11461#line 11462 "configure"
10f2d63a 11462#include "confdefs.h"
698dcdb6
VZ
11463#include <$ac_hdr>
11464EOF
11465ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7b7a7637 11466{ (eval echo configure:11467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11467ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11468if test -z "$ac_err"; then
11469 rm -rf conftest*
11470 eval "ac_cv_header_$ac_safe=yes"
6232543b 11471else
698dcdb6
VZ
11472 echo "$ac_err" >&5
11473 echo "configure: failed program was:" >&5
10f2d63a 11474 cat conftest.$ac_ext >&5
698dcdb6
VZ
11475 rm -rf conftest*
11476 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11477fi
698dcdb6 11478rm -f conftest*
10f2d63a 11479fi
698dcdb6
VZ
11480if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11481 echo "$ac_t""yes" 1>&6
11482 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11483 cat >> confdefs.h <<EOF
11484#define $ac_tr_hdr 1
10f2d63a 11485EOF
698dcdb6
VZ
11486
11487else
11488 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11489fi
11490done
11491
3a922bb4 11492for ac_hdr in unistd.h
10f2d63a 11493do
698dcdb6
VZ
11494ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11495echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7b7a7637 11496echo "configure:11497: checking for $ac_hdr" >&5
698dcdb6
VZ
11497if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11498 echo $ac_n "(cached) $ac_c" 1>&6
11499else
11500 cat > conftest.$ac_ext <<EOF
7b7a7637 11501#line 11502 "configure"
10f2d63a 11502#include "confdefs.h"
698dcdb6
VZ
11503#include <$ac_hdr>
11504EOF
11505ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7b7a7637 11506{ (eval echo configure:11507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11507ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11508if test -z "$ac_err"; then
11509 rm -rf conftest*
11510 eval "ac_cv_header_$ac_safe=yes"
6f72b082 11511else
698dcdb6
VZ
11512 echo "$ac_err" >&5
11513 echo "configure: failed program was:" >&5
6f72b082 11514 cat conftest.$ac_ext >&5
698dcdb6
VZ
11515 rm -rf conftest*
11516 eval "ac_cv_header_$ac_safe=no"
6f72b082 11517fi
698dcdb6 11518rm -f conftest*
6f72b082 11519fi
698dcdb6
VZ
11520if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11521 echo "$ac_t""yes" 1>&6
11522 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11523 cat >> confdefs.h <<EOF
11524#define $ac_tr_hdr 1
6f72b082 11525EOF
698dcdb6
VZ
11526
11527else
11528 echo "$ac_t""no" 1>&6
6f72b082
OK
11529fi
11530done
11531
3a922bb4 11532for ac_hdr in wchar.h
6f72b082 11533do
698dcdb6
VZ
11534ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11535echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7b7a7637 11536echo "configure:11537: checking for $ac_hdr" >&5
698dcdb6
VZ
11537if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11538 echo $ac_n "(cached) $ac_c" 1>&6
11539else
11540 cat > conftest.$ac_ext <<EOF
7b7a7637 11541#line 11542 "configure"
6f72b082 11542#include "confdefs.h"
698dcdb6
VZ
11543#include <$ac_hdr>
11544EOF
11545ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7b7a7637 11546{ (eval echo configure:11547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11547ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11548if test -z "$ac_err"; then
11549 rm -rf conftest*
11550 eval "ac_cv_header_$ac_safe=yes"
6f72b082 11551else
698dcdb6
VZ
11552 echo "$ac_err" >&5
11553 echo "configure: failed program was:" >&5
6f72b082 11554 cat conftest.$ac_ext >&5
698dcdb6
VZ
11555 rm -rf conftest*
11556 eval "ac_cv_header_$ac_safe=no"
6f72b082 11557fi
698dcdb6 11558rm -f conftest*
6f72b082 11559fi
698dcdb6
VZ
11560if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11561 echo "$ac_t""yes" 1>&6
11562 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11563 cat >> confdefs.h <<EOF
11564#define $ac_tr_hdr 1
6f72b082 11565EOF
698dcdb6
VZ
11566
11567else
11568 echo "$ac_t""no" 1>&6
6f72b082
OK
11569fi
11570done
11571
3a922bb4 11572for ac_hdr in wcstr.h
6f72b082 11573do
698dcdb6
VZ
11574ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11575echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7b7a7637 11576echo "configure:11577: checking for $ac_hdr" >&5
698dcdb6
VZ
11577if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11578 echo $ac_n "(cached) $ac_c" 1>&6
11579else
11580 cat > conftest.$ac_ext <<EOF
7b7a7637 11581#line 11582 "configure"
6f72b082 11582#include "confdefs.h"
698dcdb6
VZ
11583#include <$ac_hdr>
11584EOF
11585ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7b7a7637 11586{ (eval echo configure:11587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11587ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11588if test -z "$ac_err"; then
11589 rm -rf conftest*
11590 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11591else
698dcdb6
VZ
11592 echo "$ac_err" >&5
11593 echo "configure: failed program was:" >&5
10f2d63a 11594 cat conftest.$ac_ext >&5
698dcdb6
VZ
11595 rm -rf conftest*
11596 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11597fi
698dcdb6 11598rm -f conftest*
10f2d63a 11599fi
698dcdb6
VZ
11600if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11601 echo "$ac_t""yes" 1>&6
11602 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11603 cat >> confdefs.h <<EOF
11604#define $ac_tr_hdr 1
10f2d63a 11605EOF
698dcdb6
VZ
11606
11607else
11608 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11609fi
11610done
11611
3a922bb4 11612for ac_hdr in fnmatch.h
0fb0dd83 11613do
698dcdb6
VZ
11614ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11615echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7b7a7637 11616echo "configure:11617: checking for $ac_hdr" >&5
698dcdb6
VZ
11617if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11618 echo $ac_n "(cached) $ac_c" 1>&6
11619else
11620 cat > conftest.$ac_ext <<EOF
7b7a7637 11621#line 11622 "configure"
0fb0dd83 11622#include "confdefs.h"
698dcdb6
VZ
11623#include <$ac_hdr>
11624EOF
11625ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7b7a7637 11626{ (eval echo configure:11627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11627ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11628if test -z "$ac_err"; then
11629 rm -rf conftest*
11630 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 11631else
698dcdb6
VZ
11632 echo "$ac_err" >&5
11633 echo "configure: failed program was:" >&5
0fb0dd83 11634 cat conftest.$ac_ext >&5
698dcdb6
VZ
11635 rm -rf conftest*
11636 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 11637fi
698dcdb6 11638rm -f conftest*
0fb0dd83 11639fi
698dcdb6
VZ
11640if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11641 echo "$ac_t""yes" 1>&6
11642 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11643 cat >> confdefs.h <<EOF
11644#define $ac_tr_hdr 1
0fb0dd83 11645EOF
698dcdb6
VZ
11646
11647else
11648 echo "$ac_t""no" 1>&6
0fb0dd83
RR
11649fi
11650done
11651
3a922bb4 11652for ac_hdr in iconv.h
1f8ae82f 11653do
698dcdb6
VZ
11654ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11655echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7b7a7637 11656echo "configure:11657: checking for $ac_hdr" >&5
698dcdb6
VZ
11657if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11658 echo $ac_n "(cached) $ac_c" 1>&6
11659else
11660 cat > conftest.$ac_ext <<EOF
7b7a7637 11661#line 11662 "configure"
1f8ae82f 11662#include "confdefs.h"
698dcdb6
VZ
11663#include <$ac_hdr>
11664EOF
11665ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7b7a7637 11666{ (eval echo configure:11667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11667ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11668if test -z "$ac_err"; then
11669 rm -rf conftest*
11670 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 11671else
698dcdb6
VZ
11672 echo "$ac_err" >&5
11673 echo "configure: failed program was:" >&5
1f8ae82f 11674 cat conftest.$ac_ext >&5
698dcdb6
VZ
11675 rm -rf conftest*
11676 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 11677fi
698dcdb6 11678rm -f conftest*
1f8ae82f 11679fi
698dcdb6
VZ
11680if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11681 echo "$ac_t""yes" 1>&6
11682 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11683 cat >> confdefs.h <<EOF
11684#define $ac_tr_hdr 1
1f8ae82f 11685EOF
698dcdb6
VZ
11686
11687else
11688 echo "$ac_t""no" 1>&6
1f8ae82f
GD
11689fi
11690done
11691
3a922bb4 11692for ac_hdr in langinfo.h
10f2d63a 11693do
698dcdb6
VZ
11694ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11695echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7b7a7637 11696echo "configure:11697: checking for $ac_hdr" >&5
698dcdb6
VZ
11697if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11698 echo $ac_n "(cached) $ac_c" 1>&6
11699else
11700 cat > conftest.$ac_ext <<EOF
7b7a7637 11701#line 11702 "configure"
10f2d63a 11702#include "confdefs.h"
698dcdb6
VZ
11703#include <$ac_hdr>
11704EOF
11705ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7b7a7637 11706{ (eval echo configure:11707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11707ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11708if test -z "$ac_err"; then
11709 rm -rf conftest*
11710 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11711else
698dcdb6
VZ
11712 echo "$ac_err" >&5
11713 echo "configure: failed program was:" >&5
10f2d63a 11714 cat conftest.$ac_ext >&5
698dcdb6
VZ
11715 rm -rf conftest*
11716 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11717fi
698dcdb6 11718rm -f conftest*
10f2d63a 11719fi
698dcdb6
VZ
11720if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11721 echo "$ac_t""yes" 1>&6
11722 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11723 cat >> confdefs.h <<EOF
11724#define $ac_tr_hdr 1
10f2d63a 11725EOF
698dcdb6
VZ
11726
11727else
11728 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11729fi
11730done
11731
10f2d63a 11732
3a922bb4
RL
11733if test "$wxUSE_GUI" = "yes"; then
11734 if test "$wxUSE_UNIX" = "yes"; then
11735 for ac_hdr in X11/XKBlib.h
29fd3c0c
VS
11736do
11737ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11738echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7b7a7637 11739echo "configure:11740: checking for $ac_hdr" >&5
29fd3c0c
VS
11740if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11741 echo $ac_n "(cached) $ac_c" 1>&6
11742else
11743 cat > conftest.$ac_ext <<EOF
7b7a7637 11744#line 11745 "configure"
29fd3c0c
VS
11745#include "confdefs.h"
11746#include <$ac_hdr>
11747EOF
11748ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7b7a7637 11749{ (eval echo configure:11750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
11750ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11751if test -z "$ac_err"; then
11752 rm -rf conftest*
11753 eval "ac_cv_header_$ac_safe=yes"
11754else
11755 echo "$ac_err" >&5
11756 echo "configure: failed program was:" >&5
11757 cat conftest.$ac_ext >&5
11758 rm -rf conftest*
11759 eval "ac_cv_header_$ac_safe=no"
11760fi
11761rm -f conftest*
11762fi
11763if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11764 echo "$ac_t""yes" 1>&6
11765 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11766 cat >> confdefs.h <<EOF
11767#define $ac_tr_hdr 1
11768EOF
11769
11770else
11771 echo "$ac_t""no" 1>&6
11772fi
11773done
11774
3a922bb4 11775 fi
29fd3c0c
VS
11776fi
11777
698dcdb6
VZ
11778
11779echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7b7a7637 11780echo "configure:11781: checking for ANSI C header files" >&5
698dcdb6
VZ
11781if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11782 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11783else
698dcdb6 11784 cat > conftest.$ac_ext <<EOF
7b7a7637 11785#line 11786 "configure"
10f2d63a
VZ
11786#include "confdefs.h"
11787#include <stdlib.h>
11788#include <stdarg.h>
11789#include <string.h>
11790#include <float.h>
698dcdb6
VZ
11791EOF
11792ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7b7a7637 11793{ (eval echo configure:11794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11794ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11795if test -z "$ac_err"; then
11796 rm -rf conftest*
10f2d63a
VZ
11797 ac_cv_header_stdc=yes
11798else
698dcdb6
VZ
11799 echo "$ac_err" >&5
11800 echo "configure: failed program was:" >&5
10f2d63a 11801 cat conftest.$ac_ext >&5
698dcdb6 11802 rm -rf conftest*
10f2d63a
VZ
11803 ac_cv_header_stdc=no
11804fi
698dcdb6 11805rm -f conftest*
10f2d63a
VZ
11806
11807if test $ac_cv_header_stdc = yes; then
11808 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 11809cat > conftest.$ac_ext <<EOF
7b7a7637 11810#line 11811 "configure"
10f2d63a
VZ
11811#include "confdefs.h"
11812#include <string.h>
698dcdb6 11813EOF
10f2d63a
VZ
11814if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11815 egrep "memchr" >/dev/null 2>&1; then
11816 :
11817else
698dcdb6 11818 rm -rf conftest*
10f2d63a
VZ
11819 ac_cv_header_stdc=no
11820fi
11821rm -f conftest*
11822
11823fi
11824
11825if test $ac_cv_header_stdc = yes; then
11826 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 11827cat > conftest.$ac_ext <<EOF
7b7a7637 11828#line 11829 "configure"
10f2d63a
VZ
11829#include "confdefs.h"
11830#include <stdlib.h>
698dcdb6 11831EOF
10f2d63a
VZ
11832if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11833 egrep "free" >/dev/null 2>&1; then
11834 :
11835else
698dcdb6 11836 rm -rf conftest*
10f2d63a
VZ
11837 ac_cv_header_stdc=no
11838fi
11839rm -f conftest*
11840
11841fi
11842
11843if test $ac_cv_header_stdc = yes; then
11844 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 11845if test "$cross_compiling" = yes; then
10f2d63a
VZ
11846 :
11847else
698dcdb6 11848 cat > conftest.$ac_ext <<EOF
7b7a7637 11849#line 11850 "configure"
10f2d63a
VZ
11850#include "confdefs.h"
11851#include <ctype.h>
698dcdb6
VZ
11852#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11853#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 11854#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
11855int main () { int i; for (i = 0; i < 256; i++)
11856if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11857exit (0); }
11858
11859EOF
7b7a7637 11860if { (eval echo configure:11861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 11861then
10f2d63a
VZ
11862 :
11863else
698dcdb6
VZ
11864 echo "configure: failed program was:" >&5
11865 cat conftest.$ac_ext >&5
11866 rm -fr conftest*
11867 ac_cv_header_stdc=no
10f2d63a 11868fi
698dcdb6 11869rm -fr conftest*
10f2d63a 11870fi
698dcdb6 11871
10f2d63a
VZ
11872fi
11873fi
1e487827 11874
698dcdb6
VZ
11875echo "$ac_t""$ac_cv_header_stdc" 1>&6
11876if test $ac_cv_header_stdc = yes; then
11877 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11878#define STDC_HEADERS 1
11879EOF
11880
11881fi
11882
698dcdb6 11883echo $ac_n "checking for mode_t""... $ac_c" 1>&6
7b7a7637 11884echo "configure:11885: checking for mode_t" >&5
698dcdb6
VZ
11885if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11886 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 11887else
698dcdb6 11888 cat > conftest.$ac_ext <<EOF
7b7a7637 11889#line 11890 "configure"
1e487827 11890#include "confdefs.h"
698dcdb6
VZ
11891#include <sys/types.h>
11892#if STDC_HEADERS
11893#include <stdlib.h>
11894#include <stddef.h>
11895#endif
11896EOF
11897if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11898 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11899 rm -rf conftest*
10f2d63a
VZ
11900 ac_cv_type_mode_t=yes
11901else
698dcdb6
VZ
11902 rm -rf conftest*
11903 ac_cv_type_mode_t=no
703e0a69 11904fi
698dcdb6 11905rm -f conftest*
1e487827 11906
698dcdb6
VZ
11907fi
11908echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11909if test $ac_cv_type_mode_t = no; then
11910 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11911#define mode_t int
11912EOF
11913
11914fi
11915
698dcdb6 11916echo $ac_n "checking for off_t""... $ac_c" 1>&6
7b7a7637 11917echo "configure:11918: checking for off_t" >&5
698dcdb6
VZ
11918if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11919 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11920else
698dcdb6 11921 cat > conftest.$ac_ext <<EOF
7b7a7637 11922#line 11923 "configure"
10f2d63a 11923#include "confdefs.h"
698dcdb6
VZ
11924#include <sys/types.h>
11925#if STDC_HEADERS
11926#include <stdlib.h>
11927#include <stddef.h>
11928#endif
11929EOF
11930if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11931 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11932 rm -rf conftest*
10f2d63a
VZ
11933 ac_cv_type_off_t=yes
11934else
698dcdb6
VZ
11935 rm -rf conftest*
11936 ac_cv_type_off_t=no
703e0a69 11937fi
698dcdb6 11938rm -f conftest*
1e487827 11939
698dcdb6
VZ
11940fi
11941echo "$ac_t""$ac_cv_type_off_t" 1>&6
11942if test $ac_cv_type_off_t = no; then
11943 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11944#define off_t long
11945EOF
11946
11947fi
11948
698dcdb6 11949echo $ac_n "checking for pid_t""... $ac_c" 1>&6
7b7a7637 11950echo "configure:11951: checking for pid_t" >&5
698dcdb6
VZ
11951if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11952 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11953else
698dcdb6 11954 cat > conftest.$ac_ext <<EOF
7b7a7637 11955#line 11956 "configure"
10f2d63a 11956#include "confdefs.h"
698dcdb6
VZ
11957#include <sys/types.h>
11958#if STDC_HEADERS
11959#include <stdlib.h>
11960#include <stddef.h>
11961#endif
11962EOF
11963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11964 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11965 rm -rf conftest*
10f2d63a
VZ
11966 ac_cv_type_pid_t=yes
11967else
698dcdb6
VZ
11968 rm -rf conftest*
11969 ac_cv_type_pid_t=no
703e0a69 11970fi
698dcdb6 11971rm -f conftest*
1e487827 11972
698dcdb6
VZ
11973fi
11974echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11975if test $ac_cv_type_pid_t = no; then
11976 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11977#define pid_t int
11978EOF
11979
11980fi
11981
698dcdb6 11982echo $ac_n "checking for size_t""... $ac_c" 1>&6
7b7a7637 11983echo "configure:11984: checking for size_t" >&5
698dcdb6
VZ
11984if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11985 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11986else
698dcdb6 11987 cat > conftest.$ac_ext <<EOF
7b7a7637 11988#line 11989 "configure"
10f2d63a 11989#include "confdefs.h"
698dcdb6
VZ
11990#include <sys/types.h>
11991#if STDC_HEADERS
11992#include <stdlib.h>
11993#include <stddef.h>
11994#endif
11995EOF
11996if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11997 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11998 rm -rf conftest*
10f2d63a
VZ
11999 ac_cv_type_size_t=yes
12000else
698dcdb6
VZ
12001 rm -rf conftest*
12002 ac_cv_type_size_t=no
703e0a69 12003fi
698dcdb6 12004rm -f conftest*
1e487827 12005
698dcdb6
VZ
12006fi
12007echo "$ac_t""$ac_cv_type_size_t" 1>&6
12008if test $ac_cv_type_size_t = no; then
12009 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12010#define size_t unsigned
12011EOF
12012
12013fi
12014
698dcdb6 12015echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
7b7a7637 12016echo "configure:12017: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
12017if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
12018 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12019else
698dcdb6 12020 cat > conftest.$ac_ext <<EOF
7b7a7637 12021#line 12022 "configure"
10f2d63a
VZ
12022#include "confdefs.h"
12023#include <sys/types.h>
698dcdb6 12024EOF
10f2d63a
VZ
12025if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12026 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 12027 rm -rf conftest*
10f2d63a
VZ
12028 ac_cv_type_uid_t=yes
12029else
698dcdb6 12030 rm -rf conftest*
10f2d63a
VZ
12031 ac_cv_type_uid_t=no
12032fi
12033rm -f conftest*
12034
12035fi
1e487827 12036
698dcdb6
VZ
12037echo "$ac_t""$ac_cv_type_uid_t" 1>&6
12038if test $ac_cv_type_uid_t = no; then
12039 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12040#define uid_t int
12041EOF
12042
698dcdb6 12043 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12044#define gid_t int
12045EOF
12046
12047fi
12048
1e487827 12049
698dcdb6 12050echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
7b7a7637 12051echo "configure:12052: checking for wchar_t" >&5
698dcdb6
VZ
12052if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
12053 echo $ac_n "(cached) $ac_c" 1>&6
12054else
12055
12056 cat > conftest.$ac_ext <<EOF
7b7a7637 12057#line 12058 "configure"
0046ff7c
VS
12058#include "confdefs.h"
12059#include <wchar.h>
698dcdb6 12060int main() {
0046ff7c 12061
d836ee96
VZ
12062 wchar_t wc, *ws;
12063 wc = L'a';
12064 ws = L"Hello, world!";
698dcdb6
VZ
12065
12066; return 0; }
12067EOF
7b7a7637 12068if { (eval echo configure:12069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12069 rm -rf conftest*
1f8ae82f
GD
12070 wx_cv_type_wchar_t=yes
12071else
698dcdb6
VZ
12072 echo "configure: failed program was:" >&5
12073 cat conftest.$ac_ext >&5
12074 rm -rf conftest*
12075 cat > conftest.$ac_ext <<EOF
7b7a7637 12076#line 12077 "configure"
1f8ae82f
GD
12077#include "confdefs.h"
12078#include <stdlib.h>
698dcdb6 12079int main() {
1f8ae82f 12080
d836ee96
VZ
12081 wchar_t wc, *ws;
12082 wc = L'a';
12083 ws = L"Hello, world!";
698dcdb6
VZ
12084
12085; return 0; }
12086EOF
7b7a7637 12087if { (eval echo configure:12088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12088 rm -rf conftest*
0046ff7c
VS
12089 wx_cv_type_wchar_t=yes
12090else
698dcdb6
VZ
12091 echo "configure: failed program was:" >&5
12092 cat conftest.$ac_ext >&5
12093 rm -rf conftest*
12094 wx_cv_type_wchar_t=no
0046ff7c 12095fi
698dcdb6 12096rm -f conftest*
d836ee96 12097
6232543b 12098fi
698dcdb6 12099rm -f conftest*
703e0a69 12100
1e487827 12101fi
698dcdb6
VZ
12102
12103echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
12104
12105if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 12106 cat >> confdefs.h <<\EOF
0046ff7c
VS
12107#define wxUSE_WCHAR_T 1
12108EOF
12109
12110fi
12111
19af3b06
VZ
12112
12113ac_ext=C
12114# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12115ac_cpp='$CXXCPP $CPPFLAGS'
12116ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12117ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12118cross_compiling=$ac_cv_prog_cxx_cross
12119
d836ee96 12120echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
7b7a7637 12121echo "configure:12122: checking if size_t is unsigned int" >&5
d836ee96
VZ
12122if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
12123 echo $ac_n "(cached) $ac_c" 1>&6
12124else
dd2c8b7c 12125 cat > conftest.$ac_ext <<EOF
7b7a7637 12126#line 12127 "configure"
d836ee96
VZ
12127#include "confdefs.h"
12128#include <stddef.h>
12129int main() {
12130
dd2c8b7c
VZ
12131 return 0; }
12132
d836ee96 12133 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
12134
12135 int bar() {
d836ee96
VZ
12136
12137; return 0; }
12138EOF
7b7a7637 12139if { (eval echo configure:12140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
12140 rm -rf conftest*
12141 wx_cv_size_t_is_uint=no
12142else
12143 echo "configure: failed program was:" >&5
12144 cat conftest.$ac_ext >&5
12145 rm -rf conftest*
12146 wx_cv_size_t_is_uint=yes
12147
12148fi
12149rm -f conftest*
12150
12151fi
12152
12153echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
12154
12155if test "$wx_cv_size_t_is_uint" = "yes"; then
12156 cat >> confdefs.h <<\EOF
12157#define wxSIZE_T_IS_UINT 1
12158EOF
12159
12160else
12161 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
7b7a7637 12162echo "configure:12163: checking if size_t is unsigned long" >&5
d836ee96
VZ
12163if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
12164 echo $ac_n "(cached) $ac_c" 1>&6
12165else
12166 cat > conftest.$ac_ext <<EOF
7b7a7637 12167#line 12168 "configure"
d836ee96
VZ
12168#include "confdefs.h"
12169#include <stddef.h>
12170int main() {
12171
dd2c8b7c
VZ
12172 return 0; }
12173
d836ee96 12174 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
12175
12176 int bar() {
d836ee96
VZ
12177
12178; return 0; }
12179EOF
7b7a7637 12180if { (eval echo configure:12181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
12181 rm -rf conftest*
12182 wx_cv_size_t_is_ulong=no
12183else
12184 echo "configure: failed program was:" >&5
12185 cat conftest.$ac_ext >&5
12186 rm -rf conftest*
12187 wx_cv_size_t_is_ulong=yes
12188
12189fi
12190rm -f conftest*
12191
12192fi
12193
12194echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
12195
12196 if test "$wx_cv_size_t_is_ulong" = "yes"; then
12197 cat >> confdefs.h <<\EOF
12198#define wxSIZE_T_IS_ULONG 1
12199EOF
12200
12201 fi
12202fi
12203
19af3b06
VZ
12204ac_ext=c
12205# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12206ac_cpp='$CPP $CPPFLAGS'
12207ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12208ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12209cross_compiling=$ac_cv_prog_cc_cross
12210
12211
1e487827 12212
698dcdb6 12213echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
7b7a7637 12214echo "configure:12215: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
12215if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
12216 echo $ac_n "(cached) $ac_c" 1>&6
12217else
12218
12219 cat > conftest.$ac_ext <<EOF
7b7a7637 12220#line 12221 "configure"
b12915c1
VZ
12221#include "confdefs.h"
12222#include <pwd.h>
698dcdb6 12223int main() {
b12915c1
VZ
12224
12225 char *p;
12226 struct passwd *pw;
12227 p = pw->pw_gecos;
698dcdb6
VZ
12228
12229; return 0; }
12230EOF
7b7a7637 12231if { (eval echo configure:12232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12232 rm -rf conftest*
12233
b12915c1 12234 wx_cv_struct_pw_gecos=yes
698dcdb6 12235
b12915c1 12236else
698dcdb6
VZ
12237 echo "configure: failed program was:" >&5
12238 cat conftest.$ac_ext >&5
12239 rm -rf conftest*
12240
b12915c1 12241 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
12242
12243
6232543b 12244fi
698dcdb6
VZ
12245rm -f conftest*
12246
703e0a69 12247
1e487827 12248fi
698dcdb6
VZ
12249
12250echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 12251
bd3277fe 12252if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 12253 cat >> confdefs.h <<\EOF
bd3277fe
VZ
12254#define HAVE_PW_GECOS 1
12255EOF
12256
12257fi
12258
698dcdb6
VZ
12259
12260echo $ac_n "checking for working const""... $ac_c" 1>&6
7b7a7637 12261echo "configure:12262: checking for working const" >&5
698dcdb6
VZ
12262if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
12263 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12264else
698dcdb6 12265 cat > conftest.$ac_ext <<EOF
7b7a7637 12266#line 12267 "configure"
10f2d63a 12267#include "confdefs.h"
698dcdb6
VZ
12268
12269int main() {
12270
12271/* Ultrix mips cc rejects this. */
12272typedef int charset[2]; const charset x;
12273/* SunOS 4.1.1 cc rejects this. */
12274char const *const *ccp;
12275char **p;
12276/* NEC SVR4.0.2 mips cc rejects this. */
12277struct point {int x, y;};
12278static struct point const zero = {0,0};
12279/* AIX XL C 1.02.0.0 rejects this.
12280 It does not let you subtract one const X* pointer from another in an arm
12281 of an if-expression whose if-part is not a constant expression */
12282const char *g = "string";
12283ccp = &g + (g ? g-g : 0);
12284/* HPUX 7.0 cc rejects these. */
12285++ccp;
12286p = (char**) ccp;
12287ccp = (char const *const *) p;
12288{ /* SCO 3.2v4 cc rejects this. */
12289 char *t;
12290 char const *s = 0 ? (char *) 0 : (char const *) 0;
12291
12292 *t++ = 0;
10f2d63a 12293}
698dcdb6
VZ
12294{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12295 int x[] = {25, 17};
12296 const int *foo = &x[0];
12297 ++foo;
703e0a69 12298}
698dcdb6
VZ
12299{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12300 typedef const int *iptr;
12301 iptr p = 0;
12302 ++p;
6232543b 12303}
698dcdb6
VZ
12304{ /* AIX XL C 1.02.0.0 rejects this saying
12305 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12306 struct s { int j; const int *ap[3]; };
12307 struct s *b; b->j = 5;
1e487827 12308}
698dcdb6
VZ
12309{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12310 const int foo = 10;
12311}
12312
12313; return 0; }
12314EOF
7b7a7637 12315if { (eval echo configure:12316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12316 rm -rf conftest*
10f2d63a
VZ
12317 ac_cv_c_const=yes
12318else
698dcdb6
VZ
12319 echo "configure: failed program was:" >&5
12320 cat conftest.$ac_ext >&5
12321 rm -rf conftest*
12322 ac_cv_c_const=no
10f2d63a 12323fi
698dcdb6 12324rm -f conftest*
10f2d63a 12325fi
1e487827 12326
698dcdb6
VZ
12327echo "$ac_t""$ac_cv_c_const" 1>&6
12328if test $ac_cv_c_const = no; then
12329 cat >> confdefs.h <<\EOF
12330#define const
10f2d63a
VZ
12331EOF
12332
12333fi
12334
698dcdb6 12335echo $ac_n "checking for inline""... $ac_c" 1>&6
7b7a7637 12336echo "configure:12337: checking for inline" >&5
698dcdb6
VZ
12337if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
12338 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12339else
12340 ac_cv_c_inline=no
12341for ac_kw in inline __inline__ __inline; do
698dcdb6 12342 cat > conftest.$ac_ext <<EOF
7b7a7637 12343#line 12344 "configure"
10f2d63a
VZ
12344#include "confdefs.h"
12345
698dcdb6
VZ
12346int main() {
12347} $ac_kw foo() {
12348; return 0; }
12349EOF
7b7a7637 12350if { (eval echo configure:12351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12351 rm -rf conftest*
10f2d63a
VZ
12352 ac_cv_c_inline=$ac_kw; break
12353else
698dcdb6
VZ
12354 echo "configure: failed program was:" >&5
12355 cat conftest.$ac_ext >&5
10f2d63a 12356fi
698dcdb6 12357rm -f conftest*
10f2d63a
VZ
12358done
12359
12360fi
698dcdb6
VZ
12361
12362echo "$ac_t""$ac_cv_c_inline" 1>&6
12363case "$ac_cv_c_inline" in
10f2d63a 12364 inline | yes) ;;
698dcdb6
VZ
12365 no) cat >> confdefs.h <<\EOF
12366#define inline
10f2d63a
VZ
12367EOF
12368 ;;
698dcdb6 12369 *) cat >> confdefs.h <<EOF
10f2d63a
VZ
12370#define inline $ac_cv_c_inline
12371EOF
12372 ;;
12373esac
12374
698dcdb6
VZ
12375
12376echo $ac_n "checking size of char""... $ac_c" 1>&6
7b7a7637 12377echo "configure:12378: checking size of char" >&5
698dcdb6
VZ
12378if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
12379 echo $ac_n "(cached) $ac_c" 1>&6
6232543b 12380else
1e487827 12381 if test "$cross_compiling" = yes; then
698dcdb6 12382 ac_cv_sizeof_char=1
1e487827 12383else
698dcdb6 12384 cat > conftest.$ac_ext <<EOF
7b7a7637 12385#line 12386 "configure"
1e487827 12386#include "confdefs.h"
698dcdb6 12387#include <stdio.h>
7b7a7637 12388#include <sys/types.h>
698dcdb6 12389main()
1e487827 12390{
698dcdb6
VZ
12391 FILE *f=fopen("conftestval", "w");
12392 if (!f) exit(1);
12393 fprintf(f, "%d\n", sizeof(char));
12394 exit(0);
1e487827 12395}
698dcdb6 12396EOF
7b7a7637 12397if { (eval echo configure:12398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12398then
12399 ac_cv_sizeof_char=`cat conftestval`
1e487827 12400else
698dcdb6
VZ
12401 echo "configure: failed program was:" >&5
12402 cat conftest.$ac_ext >&5
12403 rm -fr conftest*
1e487827
VS
12404 ac_cv_sizeof_char=0
12405fi
698dcdb6 12406rm -fr conftest*
1e487827 12407fi
10f2d63a 12408
1e487827 12409fi
698dcdb6
VZ
12410echo "$ac_t""$ac_cv_sizeof_char" 1>&6
12411cat >> confdefs.h <<EOF
12412#define SIZEOF_CHAR $ac_cv_sizeof_char
1e487827 12413EOF
6232543b 12414
703e0a69 12415
698dcdb6 12416echo $ac_n "checking size of short""... $ac_c" 1>&6
7b7a7637 12417echo "configure:12418: checking size of short" >&5
698dcdb6
VZ
12418if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
12419 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 12420else
1e487827 12421 if test "$cross_compiling" = yes; then
698dcdb6 12422 ac_cv_sizeof_short=2
1e487827 12423else
698dcdb6 12424 cat > conftest.$ac_ext <<EOF
7b7a7637 12425#line 12426 "configure"
1e487827 12426#include "confdefs.h"
698dcdb6 12427#include <stdio.h>
7b7a7637 12428#include <sys/types.h>
698dcdb6 12429main()
1e487827 12430{
698dcdb6
VZ
12431 FILE *f=fopen("conftestval", "w");
12432 if (!f) exit(1);
12433 fprintf(f, "%d\n", sizeof(short));
12434 exit(0);
1e487827 12435}
698dcdb6 12436EOF
7b7a7637 12437if { (eval echo configure:12438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12438then
12439 ac_cv_sizeof_short=`cat conftestval`
1e487827 12440else
698dcdb6
VZ
12441 echo "configure: failed program was:" >&5
12442 cat conftest.$ac_ext >&5
12443 rm -fr conftest*
12444 ac_cv_sizeof_short=0
1e487827 12445fi
698dcdb6 12446rm -fr conftest*
1e487827 12447fi
698dcdb6 12448
1e487827 12449fi
698dcdb6
VZ
12450echo "$ac_t""$ac_cv_sizeof_short" 1>&6
12451cat >> confdefs.h <<EOF
12452#define SIZEOF_SHORT $ac_cv_sizeof_short
12453EOF
12454
12455
12456echo $ac_n "checking size of int *""... $ac_c" 1>&6
7b7a7637 12457echo "configure:12458: checking size of int *" >&5
698dcdb6
VZ
12458if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
12459 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12460else
12461 if test "$cross_compiling" = yes; then
698dcdb6 12462 ac_cv_sizeof_int_p=4
10f2d63a 12463else
698dcdb6 12464 cat > conftest.$ac_ext <<EOF
7b7a7637 12465#line 12466 "configure"
10f2d63a 12466#include "confdefs.h"
698dcdb6 12467#include <stdio.h>
7b7a7637 12468#include <sys/types.h>
698dcdb6 12469main()
10f2d63a 12470{
698dcdb6
VZ
12471 FILE *f=fopen("conftestval", "w");
12472 if (!f) exit(1);
12473 fprintf(f, "%d\n", sizeof(int *));
12474 exit(0);
10f2d63a 12475}
698dcdb6 12476EOF
7b7a7637 12477if { (eval echo configure:12478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12478then
12479 ac_cv_sizeof_int_p=`cat conftestval`
10f2d63a 12480else
698dcdb6
VZ
12481 echo "configure: failed program was:" >&5
12482 cat conftest.$ac_ext >&5
12483 rm -fr conftest*
12484 ac_cv_sizeof_int_p=0
6232543b 12485fi
698dcdb6 12486rm -fr conftest*
1e487827 12487fi
698dcdb6 12488
1e487827 12489fi
698dcdb6
VZ
12490echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
12491cat >> confdefs.h <<EOF
12492#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
12493EOF
12494
698dcdb6
VZ
12495
12496echo $ac_n "checking size of int""... $ac_c" 1>&6
7b7a7637 12497echo "configure:12498: checking size of int" >&5
698dcdb6
VZ
12498if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
12499 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12500else
12501 if test "$cross_compiling" = yes; then
698dcdb6 12502 ac_cv_sizeof_int=4
703e0a69 12503else
698dcdb6 12504 cat > conftest.$ac_ext <<EOF
7b7a7637 12505#line 12506 "configure"
1e487827 12506#include "confdefs.h"
698dcdb6 12507#include <stdio.h>
7b7a7637 12508#include <sys/types.h>
698dcdb6 12509main()
1e487827 12510{
698dcdb6
VZ
12511 FILE *f=fopen("conftestval", "w");
12512 if (!f) exit(1);
12513 fprintf(f, "%d\n", sizeof(int));
12514 exit(0);
1e487827 12515}
698dcdb6 12516EOF
7b7a7637 12517if { (eval echo configure:12518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12518then
12519 ac_cv_sizeof_int=`cat conftestval`
12520else
12521 echo "configure: failed program was:" >&5
12522 cat conftest.$ac_ext >&5
12523 rm -fr conftest*
12524 ac_cv_sizeof_int=0
703e0a69 12525fi
698dcdb6
VZ
12526rm -fr conftest*
12527fi
12528
12529fi
12530echo "$ac_t""$ac_cv_sizeof_int" 1>&6
12531cat >> confdefs.h <<EOF
12532#define SIZEOF_INT $ac_cv_sizeof_int
12533EOF
12534
12535
12536echo $ac_n "checking size of long""... $ac_c" 1>&6
7b7a7637 12537echo "configure:12538: checking size of long" >&5
698dcdb6
VZ
12538if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
12539 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12540else
12541 if test "$cross_compiling" = yes; then
698dcdb6 12542 ac_cv_sizeof_long=4
10f2d63a 12543else
698dcdb6 12544 cat > conftest.$ac_ext <<EOF
7b7a7637 12545#line 12546 "configure"
10f2d63a 12546#include "confdefs.h"
698dcdb6 12547#include <stdio.h>
7b7a7637 12548#include <sys/types.h>
698dcdb6 12549main()
10f2d63a 12550{
698dcdb6
VZ
12551 FILE *f=fopen("conftestval", "w");
12552 if (!f) exit(1);
12553 fprintf(f, "%d\n", sizeof(long));
12554 exit(0);
10f2d63a 12555}
698dcdb6 12556EOF
7b7a7637 12557if { (eval echo configure:12558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12558then
12559 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 12560else
698dcdb6
VZ
12561 echo "configure: failed program was:" >&5
12562 cat conftest.$ac_ext >&5
12563 rm -fr conftest*
12564 ac_cv_sizeof_long=0
10f2d63a 12565fi
698dcdb6 12566rm -fr conftest*
10f2d63a 12567fi
698dcdb6 12568
10f2d63a 12569fi
698dcdb6
VZ
12570echo "$ac_t""$ac_cv_sizeof_long" 1>&6
12571cat >> confdefs.h <<EOF
12572#define SIZEOF_LONG $ac_cv_sizeof_long
12573EOF
12574
12575
12576echo $ac_n "checking size of long long""... $ac_c" 1>&6
7b7a7637 12577echo "configure:12578: checking size of long long" >&5
698dcdb6
VZ
12578if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
12579 echo $ac_n "(cached) $ac_c" 1>&6
12580else
12581 if test "$cross_compiling" = yes; then
12582 ac_cv_sizeof_long_long=0
12583else
12584 cat > conftest.$ac_ext <<EOF
7b7a7637 12585#line 12586 "configure"
698dcdb6
VZ
12586#include "confdefs.h"
12587#include <stdio.h>
7b7a7637 12588#include <sys/types.h>
698dcdb6
VZ
12589main()
12590{
12591 FILE *f=fopen("conftestval", "w");
12592 if (!f) exit(1);
12593 fprintf(f, "%d\n", sizeof(long long));
12594 exit(0);
12595}
12596EOF
7b7a7637 12597if { (eval echo configure:12598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12598then
12599 ac_cv_sizeof_long_long=`cat conftestval`
6232543b 12600else
698dcdb6
VZ
12601 echo "configure: failed program was:" >&5
12602 cat conftest.$ac_ext >&5
12603 rm -fr conftest*
6232543b
VS
12604 ac_cv_sizeof_long_long=0
12605fi
698dcdb6
VZ
12606rm -fr conftest*
12607fi
12608
703e0a69 12609fi
698dcdb6
VZ
12610echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
12611cat >> confdefs.h <<EOF
10f2d63a
VZ
12612#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12613EOF
12614
1e487827 12615
698dcdb6
VZ
12616
12617echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
7b7a7637 12618echo "configure:12619: checking size of wchar_t" >&5
698dcdb6
VZ
12619if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
12620 echo $ac_n "(cached) $ac_c" 1>&6
12621else
12622
b93d0d08
VS
12623 if test "$cross_compiling" = yes; then
12624 wx_cv_sizeof_wchar_t=4
1e6feb95 12625
b93d0d08 12626else
698dcdb6 12627 cat > conftest.$ac_ext <<EOF
7b7a7637 12628#line 12629 "configure"
b93d0d08
VS
12629#include "confdefs.h"
12630
1e6feb95
VZ
12631 #ifdef HAVE_WCHAR_H
12632 # include <wchar.h>
12633 #endif
12634 #ifdef HAVE_STDLIB_H
12635 # include <stdlib.h>
12636 #endif
12637 #include <stdio.h>
12638 int main()
12639 {
12640 FILE *f=fopen("conftestval", "w");
12641 if (!f) exit(1);
12642 fprintf(f, "%i", sizeof(wchar_t));
12643 exit(0);
12644 }
698dcdb6
VZ
12645
12646EOF
7b7a7637 12647if { (eval echo configure:12648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12648then
b93d0d08
VS
12649 wx_cv_sizeof_wchar_t=`cat conftestval`
12650else
698dcdb6
VZ
12651 echo "configure: failed program was:" >&5
12652 cat conftest.$ac_ext >&5
12653 rm -fr conftest*
12654 wx_cv_sizeof_wchar_t=0
b93d0d08 12655fi
698dcdb6 12656rm -fr conftest*
b93d0d08
VS
12657fi
12658
698dcdb6 12659
b93d0d08
VS
12660fi
12661
698dcdb6
VZ
12662echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
12663
12664cat >> confdefs.h <<EOF
28c6addc 12665#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
b93d0d08
VS
12666EOF
12667
698dcdb6 12668
698dcdb6 12669echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
7b7a7637 12670echo "configure:12671: checking whether byte ordering is bigendian" >&5
698dcdb6
VZ
12671if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
12672 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12673else
12674 ac_cv_c_bigendian=unknown
12675# See if sys/param.h defines the BYTE_ORDER macro.
698dcdb6 12676cat > conftest.$ac_ext <<EOF
7b7a7637 12677#line 12678 "configure"
10f2d63a
VZ
12678#include "confdefs.h"
12679#include <sys/types.h>
12680#include <sys/param.h>
698dcdb6 12681int main() {
10f2d63a
VZ
12682
12683#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12684 bogus endian macros
12685#endif
698dcdb6
VZ
12686; return 0; }
12687EOF
7b7a7637 12688if { (eval echo configure:12689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12689 rm -rf conftest*
10f2d63a 12690 # It does; now see whether it defined to BIG_ENDIAN or not.
698dcdb6 12691cat > conftest.$ac_ext <<EOF
7b7a7637 12692#line 12693 "configure"
10f2d63a
VZ
12693#include "confdefs.h"
12694#include <sys/types.h>
12695#include <sys/param.h>
698dcdb6 12696int main() {
10f2d63a
VZ
12697
12698#if BYTE_ORDER != BIG_ENDIAN
12699 not big endian
12700#endif
698dcdb6
VZ
12701; return 0; }
12702EOF
7b7a7637 12703if { (eval echo configure:12704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12704 rm -rf conftest*
10f2d63a
VZ
12705 ac_cv_c_bigendian=yes
12706else
698dcdb6
VZ
12707 echo "configure: failed program was:" >&5
12708 cat conftest.$ac_ext >&5
12709 rm -rf conftest*
12710 ac_cv_c_bigendian=no
10f2d63a 12711fi
698dcdb6 12712rm -f conftest*
10f2d63a 12713else
698dcdb6
VZ
12714 echo "configure: failed program was:" >&5
12715 cat conftest.$ac_ext >&5
10f2d63a 12716fi
698dcdb6 12717rm -f conftest*
10f2d63a
VZ
12718if test $ac_cv_c_bigendian = unknown; then
12719if test "$cross_compiling" = yes; then
12720 ac_cv_c_bigendian=unknown
12721else
698dcdb6 12722 cat > conftest.$ac_ext <<EOF
7b7a7637 12723#line 12724 "configure"
10f2d63a
VZ
12724#include "confdefs.h"
12725main () {
12726 /* Are we little or big endian? From Harbison&Steele. */
12727 union
12728 {
12729 long l;
12730 char c[sizeof (long)];
12731 } u;
12732 u.l = 1;
12733 exit (u.c[sizeof (long) - 1] == 1);
12734}
698dcdb6 12735EOF
7b7a7637 12736if { (eval echo configure:12737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12737then
10f2d63a
VZ
12738 ac_cv_c_bigendian=no
12739else
698dcdb6
VZ
12740 echo "configure: failed program was:" >&5
12741 cat conftest.$ac_ext >&5
12742 rm -fr conftest*
12743 ac_cv_c_bigendian=yes
10f2d63a 12744fi
698dcdb6 12745rm -fr conftest*
10f2d63a 12746fi
698dcdb6 12747
10f2d63a
VZ
12748fi
12749fi
698dcdb6
VZ
12750
12751echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10f2d63a 12752if test $ac_cv_c_bigendian = unknown; then
698dcdb6 12753 echo "configure: warning: Assuming little-endian target machine - this may be overriden by adding the line "ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}" to config.cache file" 1>&2
10f2d63a
VZ
12754fi
12755if test $ac_cv_c_bigendian = yes; then
698dcdb6 12756 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12757#define WORDS_BIGENDIAN 1
12758EOF
12759
12760fi
12761
698dcdb6 12762
3a922bb4 12763echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
7b7a7637 12764echo "configure:12765: checking how to run the C++ preprocessor" >&5
3a922bb4
RL
12765if test -z "$CXXCPP"; then
12766if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
12767 echo $ac_n "(cached) $ac_c" 1>&6
12768else
12769 ac_ext=C
12770# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12771ac_cpp='$CXXCPP $CPPFLAGS'
12772ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12773ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12774cross_compiling=$ac_cv_prog_cxx_cross
12775 CXXCPP="${CXX-g++} -E"
12776 cat > conftest.$ac_ext <<EOF
7b7a7637 12777#line 12778 "configure"
3a922bb4
RL
12778#include "confdefs.h"
12779#include <stdlib.h>
12780EOF
12781ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7b7a7637 12782{ (eval echo configure:12783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
12783ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12784if test -z "$ac_err"; then
12785 :
12786else
12787 echo "$ac_err" >&5
12788 echo "configure: failed program was:" >&5
12789 cat conftest.$ac_ext >&5
12790 rm -rf conftest*
12791 CXXCPP=/lib/cpp
12792fi
12793rm -f conftest*
12794 ac_cv_prog_CXXCPP="$CXXCPP"
12795ac_ext=C
12796# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12797ac_cpp='$CXXCPP $CPPFLAGS'
12798ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12799ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12800cross_compiling=$ac_cv_prog_cxx_cross
12801fi
12802fi
12803CXXCPP="$ac_cv_prog_CXXCPP"
12804echo "$ac_t""$CXXCPP" 1>&6
12805
698dcdb6 12806
10f2d63a 12807 if test "$cross_compiling" = "yes"; then
698dcdb6 12808 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12809#define wxUSE_IOSTREAMH 1
12810EOF
12811
12812 else
698dcdb6
VZ
12813
12814 ac_ext=C
12815# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12816ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12817ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12818ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12819cross_compiling=$ac_cv_prog_cxx_cross
12820
703e0a69 12821
698dcdb6 12822 for ac_hdr in iostream
10f2d63a 12823do
698dcdb6
VZ
12824ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12825echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7b7a7637 12826echo "configure:12827: checking for $ac_hdr" >&5
698dcdb6
VZ
12827if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12828 echo $ac_n "(cached) $ac_c" 1>&6
12829else
12830 cat > conftest.$ac_ext <<EOF
7b7a7637 12831#line 12832 "configure"
10f2d63a 12832#include "confdefs.h"
698dcdb6
VZ
12833#include <$ac_hdr>
12834EOF
12835ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7b7a7637 12836{ (eval echo configure:12837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12837ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12838if test -z "$ac_err"; then
12839 rm -rf conftest*
12840 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12841else
698dcdb6
VZ
12842 echo "$ac_err" >&5
12843 echo "configure: failed program was:" >&5
10f2d63a 12844 cat conftest.$ac_ext >&5
698dcdb6
VZ
12845 rm -rf conftest*
12846 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12847fi
698dcdb6 12848rm -f conftest*
10f2d63a 12849fi
698dcdb6
VZ
12850if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12851 echo "$ac_t""yes" 1>&6
12852 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12853 cat >> confdefs.h <<EOF
12854#define $ac_tr_hdr 1
10f2d63a 12855EOF
698dcdb6
VZ
12856
12857else
12858 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12859fi
12860done
12861
698dcdb6 12862
57fe5ed0
VZ
12863 if test "$ac_cv_header_iostream" = "yes" ; then
12864 :
12865 else
698dcdb6 12866 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12867#define wxUSE_IOSTREAMH 1
12868EOF
12869
10f2d63a
VZ
12870 fi
12871
12872 ac_ext=c
698dcdb6 12873# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12874ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12875ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12876ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12877cross_compiling=$ac_cv_prog_cc_cross
10f2d63a
VZ
12878
12879 fi
12880
703e0a69 12881
698dcdb6
VZ
12882
12883 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
7b7a7637 12884echo "configure:12885: checking if C++ compiler supports bool" >&5
698dcdb6
VZ
12885if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12886 echo $ac_n "(cached) $ac_c" 1>&6
12887else
12888
12889
12890 ac_ext=C
12891# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12892ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12893ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12894ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12895cross_compiling=$ac_cv_prog_cxx_cross
10f2d63a 12896
698dcdb6
VZ
12897
12898 cat > conftest.$ac_ext <<EOF
7b7a7637 12899#line 12900 "configure"
10f2d63a
VZ
12900#include "confdefs.h"
12901
698dcdb6
VZ
12902
12903int main() {
10f2d63a
VZ
12904
12905 bool b = true;
12906
12907 return 0;
698dcdb6
VZ
12908
12909; return 0; }
12910EOF
7b7a7637 12911if { (eval echo configure:12912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12912 rm -rf conftest*
12913
10f2d63a 12914 wx_cv_cpp_bool=yes
698dcdb6 12915
10f2d63a 12916else
698dcdb6
VZ
12917 echo "configure: failed program was:" >&5
12918 cat conftest.$ac_ext >&5
12919 rm -rf conftest*
12920
10f2d63a 12921 wx_cv_cpp_bool=no
698dcdb6
VZ
12922
12923
10f2d63a 12924fi
698dcdb6 12925rm -f conftest*
10f2d63a
VZ
12926
12927 ac_ext=c
698dcdb6 12928# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12929ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12930ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12931ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12932cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 12933
698dcdb6 12934
10f2d63a 12935fi
698dcdb6
VZ
12936
12937echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10f2d63a
VZ
12938
12939 if test "$wx_cv_cpp_bool" = "yes"; then
698dcdb6 12940 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12941#define HAVE_BOOL 1
12942EOF
12943
12944 fi
12945
1e487827 12946
698dcdb6 12947
698dcdb6 12948echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
7b7a7637 12949echo "configure:12950: checking for wcslen in -lc" >&5
698dcdb6
VZ
12950ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12951if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12952 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12953else
698dcdb6 12954 ac_save_LIBS="$LIBS"
10f2d63a 12955LIBS="-lc $LIBS"
698dcdb6 12956cat > conftest.$ac_ext <<EOF
7b7a7637 12957#line 12958 "configure"
10f2d63a
VZ
12958#include "confdefs.h"
12959/* Override any gcc2 internal prototype to avoid an error. */
12960/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12961 builtin and then its argument prototype would still apply. */
12962char wcslen();
12963
12964int main() {
12965wcslen()
12966; return 0; }
12967EOF
7b7a7637 12968if { (eval echo configure:12969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12969 rm -rf conftest*
12970 eval "ac_cv_lib_$ac_lib_var=yes"
12971else
12972 echo "configure: failed program was:" >&5
12973 cat conftest.$ac_ext >&5
12974 rm -rf conftest*
12975 eval "ac_cv_lib_$ac_lib_var=no"
12976fi
12977rm -f conftest*
12978LIBS="$ac_save_LIBS"
12979
12980fi
12981if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12982 echo "$ac_t""yes" 1>&6
12983
12984 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12985#define HAVE_WCSLEN 1
12986EOF
12987
12988 WCHAR_LINK=""
698dcdb6 12989
10f2d63a 12990else
698dcdb6 12991 echo "$ac_t""no" 1>&6
10f2d63a 12992
698dcdb6 12993 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
7b7a7637 12994echo "configure:12995: checking for wcslen in -lw" >&5
698dcdb6
VZ
12995ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12996if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12997 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12998else
698dcdb6 12999 ac_save_LIBS="$LIBS"
10f2d63a 13000LIBS="-lw $LIBS"
698dcdb6 13001cat > conftest.$ac_ext <<EOF
7b7a7637 13002#line 13003 "configure"
10f2d63a
VZ
13003#include "confdefs.h"
13004/* Override any gcc2 internal prototype to avoid an error. */
13005/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13006 builtin and then its argument prototype would still apply. */
13007char wcslen();
13008
13009int main() {
13010wcslen()
13011; return 0; }
13012EOF
7b7a7637 13013if { (eval echo configure:13014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13014 rm -rf conftest*
13015 eval "ac_cv_lib_$ac_lib_var=yes"
13016else
13017 echo "configure: failed program was:" >&5
13018 cat conftest.$ac_ext >&5
13019 rm -rf conftest*
13020 eval "ac_cv_lib_$ac_lib_var=no"
13021fi
13022rm -f conftest*
13023LIBS="$ac_save_LIBS"
13024
13025fi
13026if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13027 echo "$ac_t""yes" 1>&6
13028
13029 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13030#define HAVE_WCSLEN 1
13031EOF
13032
13033 WCHAR_LINK="-lw"
698dcdb6 13034
18dbb1f6
VZ
13035else
13036 echo "$ac_t""no" 1>&6
13037
13038 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
7b7a7637 13039echo "configure:13040: checking for wcslen in -lmsvcrt" >&5
18dbb1f6
VZ
13040ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
13041if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13042 echo $ac_n "(cached) $ac_c" 1>&6
13043else
13044 ac_save_LIBS="$LIBS"
13045LIBS="-lmsvcrt $LIBS"
13046cat > conftest.$ac_ext <<EOF
7b7a7637 13047#line 13048 "configure"
18dbb1f6
VZ
13048#include "confdefs.h"
13049/* Override any gcc2 internal prototype to avoid an error. */
13050/* We use char because int might match the return type of a gcc2
13051 builtin and then its argument prototype would still apply. */
13052char wcslen();
13053
13054int main() {
13055wcslen()
13056; return 0; }
13057EOF
7b7a7637 13058if { (eval echo configure:13059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18dbb1f6
VZ
13059 rm -rf conftest*
13060 eval "ac_cv_lib_$ac_lib_var=yes"
13061else
13062 echo "configure: failed program was:" >&5
13063 cat conftest.$ac_ext >&5
13064 rm -rf conftest*
13065 eval "ac_cv_lib_$ac_lib_var=no"
13066fi
13067rm -f conftest*
13068LIBS="$ac_save_LIBS"
13069
13070fi
13071if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13072 echo "$ac_t""yes" 1>&6
13073
13074 cat >> confdefs.h <<\EOF
13075#define HAVE_WCSLEN 1
13076EOF
13077
13078 WCHAR_LINK=""
13079
698dcdb6
VZ
13080else
13081 echo "$ac_t""no" 1>&6
6232543b 13082fi
10f2d63a 13083
18dbb1f6
VZ
13084
13085fi
13086
698dcdb6 13087
1e487827 13088fi
703e0a69 13089
698dcdb6 13090
b3e8d00a
VZ
13091for ac_func in wcsrtombs
13092do
13093echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7b7a7637 13094echo "configure:13095: checking for $ac_func" >&5
b3e8d00a
VZ
13095if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13096 echo $ac_n "(cached) $ac_c" 1>&6
13097else
13098 cat > conftest.$ac_ext <<EOF
7b7a7637 13099#line 13100 "configure"
b3e8d00a
VZ
13100#include "confdefs.h"
13101/* System header to define __stub macros and hopefully few prototypes,
13102 which can conflict with char $ac_func(); below. */
13103#include <assert.h>
13104/* Override any gcc2 internal prototype to avoid an error. */
13105/* We use char because int might match the return type of a gcc2
13106 builtin and then its argument prototype would still apply. */
13107char $ac_func();
13108
13109int main() {
13110
13111/* The GNU C library defines this for functions which it implements
13112 to always fail with ENOSYS. Some functions are actually named
13113 something starting with __ and the normal name is an alias. */
13114#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13115choke me
13116#else
13117$ac_func();
13118#endif
13119
13120; return 0; }
13121EOF
7b7a7637 13122if { (eval echo configure:13123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b3e8d00a
VZ
13123 rm -rf conftest*
13124 eval "ac_cv_func_$ac_func=yes"
13125else
13126 echo "configure: failed program was:" >&5
13127 cat conftest.$ac_ext >&5
13128 rm -rf conftest*
13129 eval "ac_cv_func_$ac_func=no"
13130fi
13131rm -f conftest*
13132fi
13133
13134if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13135 echo "$ac_t""yes" 1>&6
13136 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13137 cat >> confdefs.h <<EOF
13138#define $ac_tr_func 1
13139EOF
13140
13141else
13142 echo "$ac_t""no" 1>&6
13143fi
13144done
13145
13146
698dcdb6 13147echo $ac_n "checking for vprintf""... $ac_c" 1>&6
7b7a7637 13148echo "configure:13149: checking for vprintf" >&5
698dcdb6
VZ
13149if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
13150 echo $ac_n "(cached) $ac_c" 1>&6
13151else
13152 cat > conftest.$ac_ext <<EOF
7b7a7637 13153#line 13154 "configure"
10f2d63a
VZ
13154#include "confdefs.h"
13155/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13156 which can conflict with char vprintf(); below. */
10f2d63a
VZ
13157#include <assert.h>
13158/* Override any gcc2 internal prototype to avoid an error. */
13159/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13160 builtin and then its argument prototype would still apply. */
13161char vprintf();
13162
13163int main() {
10f2d63a
VZ
13164
13165/* The GNU C library defines this for functions which it implements
13166 to always fail with ENOSYS. Some functions are actually named
13167 something starting with __ and the normal name is an alias. */
698dcdb6 13168#if defined (__stub_vprintf) || defined (__stub___vprintf)
10f2d63a
VZ
13169choke me
13170#else
698dcdb6 13171vprintf();
10f2d63a
VZ
13172#endif
13173
698dcdb6
VZ
13174; return 0; }
13175EOF
7b7a7637 13176if { (eval echo configure:13177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13177 rm -rf conftest*
13178 eval "ac_cv_func_vprintf=yes"
13179else
13180 echo "configure: failed program was:" >&5
13181 cat conftest.$ac_ext >&5
13182 rm -rf conftest*
13183 eval "ac_cv_func_vprintf=no"
13184fi
13185rm -f conftest*
13186fi
13187
13188if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
13189 echo "$ac_t""yes" 1>&6
13190 cat >> confdefs.h <<\EOF
13191#define HAVE_VPRINTF 1
13192EOF
13193
13194else
13195 echo "$ac_t""no" 1>&6
13196fi
13197
13198if test "$ac_cv_func_vprintf" != yes; then
13199echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
7b7a7637 13200echo "configure:13201: checking for _doprnt" >&5
698dcdb6
VZ
13201if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
13202 echo $ac_n "(cached) $ac_c" 1>&6
13203else
13204 cat > conftest.$ac_ext <<EOF
7b7a7637 13205#line 13206 "configure"
10f2d63a
VZ
13206#include "confdefs.h"
13207/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13208 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
13209#include <assert.h>
13210/* Override any gcc2 internal prototype to avoid an error. */
13211/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13212 builtin and then its argument prototype would still apply. */
13213char _doprnt();
13214
13215int main() {
10f2d63a
VZ
13216
13217/* The GNU C library defines this for functions which it implements
13218 to always fail with ENOSYS. Some functions are actually named
13219 something starting with __ and the normal name is an alias. */
13220#if defined (__stub__doprnt) || defined (__stub____doprnt)
13221choke me
13222#else
698dcdb6 13223_doprnt();
10f2d63a
VZ
13224#endif
13225
698dcdb6
VZ
13226; return 0; }
13227EOF
7b7a7637 13228if { (eval echo configure:13229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13229 rm -rf conftest*
13230 eval "ac_cv_func__doprnt=yes"
13231else
13232 echo "configure: failed program was:" >&5
13233 cat conftest.$ac_ext >&5
13234 rm -rf conftest*
13235 eval "ac_cv_func__doprnt=no"
13236fi
13237rm -f conftest*
13238fi
13239
13240if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
13241 echo "$ac_t""yes" 1>&6
13242 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13243#define HAVE_DOPRNT 1
13244EOF
13245
698dcdb6
VZ
13246else
13247 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13248fi
13249
13250fi
13251
1e487827 13252
698dcdb6
VZ
13253
13254
13255
13256
698dcdb6 13257echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
7b7a7637 13258echo "configure:13259: checking for vsnprintf" >&5
698dcdb6
VZ
13259if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
13260 echo $ac_n "(cached) $ac_c" 1>&6
13261else
13262
13263 cat > conftest.$ac_ext <<EOF
7b7a7637 13264#line 13265 "configure"
f6bcfd97
BP
13265#include "confdefs.h"
13266
13267 #include <stdio.h>
698dcdb6
VZ
13268 #include <stdarg.h>
13269
13270int main() {
10f2d63a 13271
f6bcfd97 13272 int wx_test_vsnprintf(const char *, ...);
10f2d63a 13273
f6bcfd97
BP
13274 wx_test_vsnprintf("%s");
13275 return 0;
13276 }
13277
13278 int wx_test_vsnprintf(const char *fmt, ...)
13279 {
13280 char *s;
13281
13282 va_list argp;
13283 va_start(argp, fmt);
13284 vsnprintf(s, 42, fmt, argp);
13285 va_end(argp);
698dcdb6
VZ
13286
13287; return 0; }
13288EOF
7b7a7637 13289if { (eval echo configure:13290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13290 rm -rf conftest*
13291
f6bcfd97 13292 wx_cv_func_vsnprintf=yes
698dcdb6 13293
10f2d63a 13294else
698dcdb6
VZ
13295 echo "configure: failed program was:" >&5
13296 cat conftest.$ac_ext >&5
13297 rm -rf conftest*
13298
13299 cat > conftest.$ac_ext <<EOF
7b7a7637 13300#line 13301 "configure"
c521c494
RL
13301#include "confdefs.h"
13302
13303 #include <stdio.h>
13304 #include <stdarg.h>
698dcdb6
VZ
13305
13306int main() {
c521c494
RL
13307
13308 int wx_test_vsnprintf(const char *, ...);
13309
13310 wx_test_vsnprintf("%s");
13311 return 0;
13312 }
13313
13314 int wx_test_vsnprintf(const char *fmt, ...)
13315 {
13316 char *s;
13317
13318 va_list argp;
13319 va_start(argp, fmt);
13320 _vsnprintf(s, 42, fmt, argp);
13321 va_end(argp);
698dcdb6
VZ
13322
13323; return 0; }
13324EOF
7b7a7637 13325if { (eval echo configure:13326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13326 rm -rf conftest*
13327
c521c494 13328 wx_cv_func_vsnprintf=yes
698dcdb6 13329
c521c494 13330else
698dcdb6
VZ
13331 echo "configure: failed program was:" >&5
13332 cat conftest.$ac_ext >&5
13333 rm -rf conftest*
13334
c521c494 13335 wx_cv_func_vsnprintf=no
698dcdb6 13336
10f2d63a 13337fi
698dcdb6
VZ
13338rm -f conftest*
13339
6232543b 13340fi
698dcdb6 13341rm -f conftest*
703e0a69 13342
1e487827 13343fi
698dcdb6
VZ
13344
13345echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
10f2d63a 13346
9d8deca0 13347if test "$wx_cv_func_vsnprintf" = yes; then
698dcdb6 13348 cat >> confdefs.h <<\EOF
9d8deca0
VZ
13349#define HAVE_VSNPRINTF 1
13350EOF
13351
13352else
698dcdb6 13353 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9d8deca0
VZ
13354fi
13355
698dcdb6 13356echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
7b7a7637 13357echo "configure:13358: checking for vsscanf" >&5
698dcdb6
VZ
13358if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
13359 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13360else
698dcdb6
VZ
13361
13362 cat > conftest.$ac_ext <<EOF
7b7a7637 13363#line 13364 "configure"
10f2d63a 13364#include "confdefs.h"
10f2d63a 13365
f6bcfd97
BP
13366 #include <stdio.h>
13367 #include <stdarg.h>
698dcdb6
VZ
13368
13369int main() {
10f2d63a 13370
f6bcfd97 13371 int wx_test_vsscanf(const char *, ...);
10f2d63a 13372
f6bcfd97
BP
13373 wx_test_vsscanf("%d");
13374 return 0;
10f2d63a
VZ
13375 }
13376
f6bcfd97 13377 int wx_test_vsscanf(const char *fmt, ...)
10f2d63a 13378 {
f6bcfd97
BP
13379 va_list argp;
13380 va_start(argp, fmt);
13381 vsscanf("42", fmt, argp);
13382 va_end(argp);
698dcdb6
VZ
13383
13384; return 0; }
13385EOF
7b7a7637 13386if { (eval echo configure:13387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13387 rm -rf conftest*
13388
f6bcfd97 13389 wx_cv_func_vsscanf=yes
698dcdb6 13390
10f2d63a 13391else
698dcdb6
VZ
13392 echo "configure: failed program was:" >&5
13393 cat conftest.$ac_ext >&5
13394 rm -rf conftest*
13395
f6bcfd97 13396 wx_cv_func_vsscanf=no
698dcdb6 13397
6232543b 13398fi
698dcdb6 13399rm -f conftest*
703e0a69 13400
1e487827 13401fi
698dcdb6
VZ
13402
13403echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10f2d63a 13404
9d8deca0 13405if test "$wx_cv_func_vsscanf" = yes; then
698dcdb6 13406 cat >> confdefs.h <<\EOF
9d8deca0
VZ
13407#define HAVE_VSSCANF 1
13408EOF
13409
13410fi
13411
95c8801c
VS
13412if test "$TOOLKIT" != "MSW"; then
13413
13414
13415
698dcdb6
VZ
13416ac_ext=C
13417# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13418ac_cpp='$CXXCPP $CPPFLAGS'
13419ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13420ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13421cross_compiling=$ac_cv_prog_cxx_cross
13422
13423echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
7b7a7637 13424echo "configure:13425: checking if iconv() takes char**" >&5
698dcdb6
VZ
13425if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
13426 echo $ac_n "(cached) $ac_c" 1>&6
13427else
13428
13429 cat > conftest.$ac_ext <<EOF
7b7a7637 13430#line 13431 "configure"
95c8801c
VS
13431#include "confdefs.h"
13432#include <iconv.h>
698dcdb6 13433int main() {
95c8801c
VS
13434
13435 char **inbuf, **outbuf;
19af3b06
VZ
13436 iconv_t cd;
13437 size_t insz, outsz;
13438 iconv(cd, inbuf, &insz, outbuf, &outsz);
698dcdb6
VZ
13439
13440; return 0; }
13441EOF
7b7a7637 13442if { (eval echo configure:13443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 13443 rm -rf conftest*
95c8801c
VS
13444 wx_cv_iconv_takes_char=yes
13445else
698dcdb6
VZ
13446 echo "configure: failed program was:" >&5
13447 cat conftest.$ac_ext >&5
13448 rm -rf conftest*
13449 wx_cv_iconv_takes_char=no
95c8801c 13450fi
698dcdb6 13451rm -f conftest*
95c8801c
VS
13452
13453fi
698dcdb6
VZ
13454
13455echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
10f2d63a 13456ac_ext=c
698dcdb6 13457# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 13458ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13459ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13460ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13461cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 13462
95c8801c 13463if test "$wx_cv_iconv_takes_char" = yes ; then
698dcdb6 13464 cat >> confdefs.h <<\EOF
95c8801c
VS
13465#define WX_ICONV_TAKES_CHAR 1
13466EOF
13467
13468fi
10f2d63a 13469
1e487827 13470
698dcdb6
VZ
13471if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
13472 for ac_func in sigaction
eb4efbdc 13473do
698dcdb6 13474echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7b7a7637 13475echo "configure:13476: checking for $ac_func" >&5
698dcdb6
VZ
13476if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13477 echo $ac_n "(cached) $ac_c" 1>&6
13478else
13479 cat > conftest.$ac_ext <<EOF
7b7a7637 13480#line 13481 "configure"
eb4efbdc
VZ
13481#include "confdefs.h"
13482/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13483 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
13484#include <assert.h>
13485/* Override any gcc2 internal prototype to avoid an error. */
13486/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13487 builtin and then its argument prototype would still apply. */
13488char $ac_func();
13489
13490int main() {
eb4efbdc
VZ
13491
13492/* The GNU C library defines this for functions which it implements
13493 to always fail with ENOSYS. Some functions are actually named
13494 something starting with __ and the normal name is an alias. */
13495#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13496choke me
13497#else
698dcdb6 13498$ac_func();
eb4efbdc
VZ
13499#endif
13500
698dcdb6 13501; return 0; }
eb4efbdc 13502EOF
7b7a7637 13503if { (eval echo configure:13504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13504 rm -rf conftest*
13505 eval "ac_cv_func_$ac_func=yes"
13506else
13507 echo "configure: failed program was:" >&5
13508 cat conftest.$ac_ext >&5
13509 rm -rf conftest*
13510 eval "ac_cv_func_$ac_func=no"
13511fi
13512rm -f conftest*
13513fi
eb4efbdc 13514
698dcdb6
VZ
13515if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13516 echo "$ac_t""yes" 1>&6
13517 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13518 cat >> confdefs.h <<EOF
13519#define $ac_tr_func 1
13520EOF
13521
13522else
13523 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
13524fi
13525done
13526
698dcdb6 13527
eb4efbdc 13528 if test "$ac_cv_func_sigaction" = "no"; then
698dcdb6 13529 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
eb4efbdc
VZ
13530 wxUSE_ON_FATAL_EXCEPTION=no
13531 fi
f6bcfd97
BP
13532
13533 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6
VZ
13534
13535 ac_ext=C
13536# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 13537ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
13538ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13539ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13540cross_compiling=$ac_cv_prog_cxx_cross
6232543b 13541
1e487827 13542
698dcdb6 13543 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
7b7a7637 13544echo "configure:13545: checking for sa_handler type" >&5
698dcdb6
VZ
13545if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
13546 echo $ac_n "(cached) $ac_c" 1>&6
13547else
13548
13549 cat > conftest.$ac_ext <<EOF
7b7a7637 13550#line 13551 "configure"
f6bcfd97
BP
13551#include "confdefs.h"
13552#include <signal.h>
698dcdb6 13553int main() {
f6bcfd97
BP
13554
13555 extern void testSigHandler(int);
13556
13557 struct sigaction sa;
13558 sa.sa_handler = testSigHandler;
698dcdb6
VZ
13559
13560; return 0; }
13561EOF
7b7a7637 13562if { (eval echo configure:13563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13563 rm -rf conftest*
13564
f6bcfd97 13565 wx_cv_type_sa_handler=int
698dcdb6 13566
f6bcfd97 13567else
698dcdb6
VZ
13568 echo "configure: failed program was:" >&5
13569 cat conftest.$ac_ext >&5
13570 rm -rf conftest*
13571
f6bcfd97 13572 wx_cv_type_sa_handler=void
698dcdb6 13573
6232543b 13574fi
698dcdb6
VZ
13575rm -f conftest*
13576
1e487827 13577fi
698dcdb6
VZ
13578
13579echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
f6bcfd97
BP
13580
13581 ac_ext=c
698dcdb6 13582# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
f6bcfd97 13583ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13584ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13585ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13586cross_compiling=$ac_cv_prog_cc_cross
13587
703e0a69 13588
698dcdb6 13589 cat >> confdefs.h <<EOF
f6bcfd97
BP
13590#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
13591EOF
13592
13593 fi
eb4efbdc
VZ
13594fi
13595
10f2d63a
VZ
13596for ac_func in vfork
13597do
698dcdb6 13598echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7b7a7637 13599echo "configure:13600: checking for $ac_func" >&5
698dcdb6
VZ
13600if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13601 echo $ac_n "(cached) $ac_c" 1>&6
13602else
13603 cat > conftest.$ac_ext <<EOF
7b7a7637 13604#line 13605 "configure"
10f2d63a
VZ
13605#include "confdefs.h"
13606/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13607 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13608#include <assert.h>
13609/* Override any gcc2 internal prototype to avoid an error. */
13610/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13611 builtin and then its argument prototype would still apply. */
13612char $ac_func();
13613
13614int main() {
10f2d63a
VZ
13615
13616/* The GNU C library defines this for functions which it implements
13617 to always fail with ENOSYS. Some functions are actually named
13618 something starting with __ and the normal name is an alias. */
13619#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13620choke me
13621#else
698dcdb6 13622$ac_func();
10f2d63a
VZ
13623#endif
13624
698dcdb6 13625; return 0; }
10f2d63a 13626EOF
7b7a7637 13627if { (eval echo configure:13628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13628 rm -rf conftest*
13629 eval "ac_cv_func_$ac_func=yes"
13630else
13631 echo "configure: failed program was:" >&5
13632 cat conftest.$ac_ext >&5
13633 rm -rf conftest*
13634 eval "ac_cv_func_$ac_func=no"
13635fi
13636rm -f conftest*
13637fi
270a909e 13638
698dcdb6
VZ
13639if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13640 echo "$ac_t""yes" 1>&6
13641 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13642 cat >> confdefs.h <<EOF
13643#define $ac_tr_func 1
13644EOF
13645
13646else
13647 echo "$ac_t""no" 1>&6
270a909e
VZ
13648fi
13649done
13650
1e487827 13651
52e8b690 13652echo $ac_n "checking for statfs""... $ac_c" 1>&6
7b7a7637 13653echo "configure:13654: checking for statfs" >&5
52e8b690
VZ
13654if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
13655 echo $ac_n "(cached) $ac_c" 1>&6
13656else
13657 cat > conftest.$ac_ext <<EOF
7b7a7637 13658#line 13659 "configure"
52e8b690
VZ
13659#include "confdefs.h"
13660
d08b457b
GD
13661 #ifdef __DARWIN__
13662 #include <sys/param.h>
13663 #include <sys/mount.h>
13664 #else
13665 #include <sys/vfs.h>
13666 #endif
52e8b690
VZ
13667
13668int main() {
13669
13670 long l;
13671 struct statfs fs;
13672 statfs("/", &fs);
13673 l = fs.f_bsize;
13674 l += fs.f_blocks;
13675 l += fs.f_bavail;
13676
13677; return 0; }
13678EOF
7b7a7637 13679if { (eval echo configure:13680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
52e8b690
VZ
13680 rm -rf conftest*
13681
13682 wx_cv_func_statfs=yes
13683
13684else
13685 echo "configure: failed program was:" >&5
13686 cat conftest.$ac_ext >&5
13687 rm -rf conftest*
13688
13689 wx_cv_func_statfs=no
13690
13691
13692fi
13693rm -f conftest*
13694
13695fi
13696
13697echo "$ac_t""$wx_cv_func_statfs" 1>&6
13698
13699if test "$wx_cv_func_statfs" = "yes"; then
13700 cat >> confdefs.h <<\EOF
13701#define HAVE_STATFS 1
13702EOF
13703
13704else
13705 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
13706fi
13707
698dcdb6
VZ
13708if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
13709 for ac_func in fcntl flock
4f3c5f06 13710do
698dcdb6 13711echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7b7a7637 13712echo "configure:13713: checking for $ac_func" >&5
698dcdb6
VZ
13713if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13714 echo $ac_n "(cached) $ac_c" 1>&6
13715else
13716 cat > conftest.$ac_ext <<EOF
7b7a7637 13717#line 13718 "configure"
4f3c5f06
VZ
13718#include "confdefs.h"
13719/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13720 which can conflict with char $ac_func(); below. */
4f3c5f06
VZ
13721#include <assert.h>
13722/* Override any gcc2 internal prototype to avoid an error. */
13723/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13724 builtin and then its argument prototype would still apply. */
13725char $ac_func();
13726
13727int main() {
4f3c5f06
VZ
13728
13729/* The GNU C library defines this for functions which it implements
13730 to always fail with ENOSYS. Some functions are actually named
13731 something starting with __ and the normal name is an alias. */
13732#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13733choke me
13734#else
698dcdb6 13735$ac_func();
4f3c5f06
VZ
13736#endif
13737
698dcdb6
VZ
13738; return 0; }
13739EOF
7b7a7637 13740if { (eval echo configure:13741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13741 rm -rf conftest*
13742 eval "ac_cv_func_$ac_func=yes"
13743else
13744 echo "configure: failed program was:" >&5
13745 cat conftest.$ac_ext >&5
13746 rm -rf conftest*
13747 eval "ac_cv_func_$ac_func=no"
13748fi
13749rm -f conftest*
13750fi
13751
13752if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13753 echo "$ac_t""yes" 1>&6
13754 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13755 cat >> confdefs.h <<EOF
13756#define $ac_tr_func 1
4f3c5f06
VZ
13757EOF
13758 break
698dcdb6
VZ
13759else
13760 echo "$ac_t""no" 1>&6
4f3c5f06
VZ
13761fi
13762done
13763
698dcdb6 13764
4f3c5f06 13765 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
698dcdb6 13766 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f3c5f06
VZ
13767 wxUSE_SNGLINST_CHECKER=no
13768 fi
13769fi
13770
270a909e
VZ
13771for ac_func in timegm
13772do
698dcdb6 13773echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7b7a7637 13774echo "configure:13775: checking for $ac_func" >&5
698dcdb6
VZ
13775if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13776 echo $ac_n "(cached) $ac_c" 1>&6
13777else
13778 cat > conftest.$ac_ext <<EOF
7b7a7637 13779#line 13780 "configure"
270a909e
VZ
13780#include "confdefs.h"
13781/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13782 which can conflict with char $ac_func(); below. */
270a909e
VZ
13783#include <assert.h>
13784/* Override any gcc2 internal prototype to avoid an error. */
13785/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13786 builtin and then its argument prototype would still apply. */
13787char $ac_func();
13788
13789int main() {
270a909e
VZ
13790
13791/* The GNU C library defines this for functions which it implements
13792 to always fail with ENOSYS. Some functions are actually named
13793 something starting with __ and the normal name is an alias. */
13794#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13795choke me
13796#else
698dcdb6 13797$ac_func();
270a909e
VZ
13798#endif
13799
698dcdb6 13800; return 0; }
270a909e 13801EOF
7b7a7637 13802if { (eval echo configure:13803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13803 rm -rf conftest*
13804 eval "ac_cv_func_$ac_func=yes"
13805else
13806 echo "configure: failed program was:" >&5
13807 cat conftest.$ac_ext >&5
13808 rm -rf conftest*
13809 eval "ac_cv_func_$ac_func=no"
13810fi
13811rm -f conftest*
13812fi
10f2d63a 13813
698dcdb6
VZ
13814if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13815 echo "$ac_t""yes" 1>&6
13816 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13817 cat >> confdefs.h <<EOF
13818#define $ac_tr_func 1
13819EOF
13820
13821else
13822 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13823fi
13824done
13825
698dcdb6 13826
8fd0d89b
VZ
13827for ac_func in putenv setenv
13828do
698dcdb6 13829echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7b7a7637 13830echo "configure:13831: checking for $ac_func" >&5
698dcdb6
VZ
13831if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13832 echo $ac_n "(cached) $ac_c" 1>&6
13833else
13834 cat > conftest.$ac_ext <<EOF
7b7a7637 13835#line 13836 "configure"
8fd0d89b
VZ
13836#include "confdefs.h"
13837/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13838 which can conflict with char $ac_func(); below. */
8fd0d89b
VZ
13839#include <assert.h>
13840/* Override any gcc2 internal prototype to avoid an error. */
13841/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13842 builtin and then its argument prototype would still apply. */
13843char $ac_func();
13844
13845int main() {
8fd0d89b
VZ
13846
13847/* The GNU C library defines this for functions which it implements
13848 to always fail with ENOSYS. Some functions are actually named
13849 something starting with __ and the normal name is an alias. */
13850#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13851choke me
13852#else
698dcdb6 13853$ac_func();
8fd0d89b
VZ
13854#endif
13855
698dcdb6
VZ
13856; return 0; }
13857EOF
7b7a7637 13858if { (eval echo configure:13859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13859 rm -rf conftest*
13860 eval "ac_cv_func_$ac_func=yes"
13861else
13862 echo "configure: failed program was:" >&5
13863 cat conftest.$ac_ext >&5
13864 rm -rf conftest*
13865 eval "ac_cv_func_$ac_func=no"
13866fi
13867rm -f conftest*
13868fi
13869
13870if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13871 echo "$ac_t""yes" 1>&6
13872 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13873 cat >> confdefs.h <<EOF
13874#define $ac_tr_func 1
8fd0d89b
VZ
13875EOF
13876 break
698dcdb6
VZ
13877else
13878 echo "$ac_t""no" 1>&6
8fd0d89b
VZ
13879fi
13880done
13881
698dcdb6 13882
b12915c1
VZ
13883HAVE_SOME_SLEEP_FUNC=0
13884if test "$USE_BEOS" = 1; then
698dcdb6 13885 cat >> confdefs.h <<\EOF
b12915c1
VZ
13886#define HAVE_SLEEP 1
13887EOF
13888
13889 HAVE_SOME_SLEEP_FUNC=1
13890fi
13891
f11bdd03 13892if test "$USE_DARWIN" = 1; then
698dcdb6 13893 cat >> confdefs.h <<\EOF
b4085ce6
GD
13894#define HAVE_USLEEP 1
13895EOF
13896
13897 HAVE_SOME_SLEEP_FUNC=1
13898fi
13899
b12915c1
VZ
13900if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
13901 POSIX4_LINK=
698dcdb6 13902 for ac_func in nanosleep
10f2d63a 13903do
698dcdb6 13904echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7b7a7637 13905echo "configure:13906: checking for $ac_func" >&5
698dcdb6
VZ
13906if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13907 echo $ac_n "(cached) $ac_c" 1>&6
13908else
13909 cat > conftest.$ac_ext <<EOF
7b7a7637 13910#line 13911 "configure"
10f2d63a
VZ
13911#include "confdefs.h"
13912/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13913 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13914#include <assert.h>
13915/* Override any gcc2 internal prototype to avoid an error. */
13916/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13917 builtin and then its argument prototype would still apply. */
13918char $ac_func();
13919
13920int main() {
10f2d63a
VZ
13921
13922/* The GNU C library defines this for functions which it implements
13923 to always fail with ENOSYS. Some functions are actually named
13924 something starting with __ and the normal name is an alias. */
13925#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13926choke me
13927#else
698dcdb6 13928$ac_func();
10f2d63a
VZ
13929#endif
13930
698dcdb6
VZ
13931; return 0; }
13932EOF
7b7a7637 13933if { (eval echo configure:13934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13934 rm -rf conftest*
13935 eval "ac_cv_func_$ac_func=yes"
13936else
13937 echo "configure: failed program was:" >&5
13938 cat conftest.$ac_ext >&5
13939 rm -rf conftest*
13940 eval "ac_cv_func_$ac_func=no"
13941fi
13942rm -f conftest*
13943fi
13944
13945if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13946 echo "$ac_t""yes" 1>&6
13947 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13948 cat >> confdefs.h <<EOF
13949#define $ac_tr_func 1
13950EOF
13951 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13952#define HAVE_NANOSLEEP 1
13953EOF
13954
13955else
698dcdb6
VZ
13956 echo "$ac_t""no" 1>&6
13957echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
7b7a7637 13958echo "configure:13959: checking for nanosleep in -lposix4" >&5
698dcdb6
VZ
13959ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
13960if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13961 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13962else
698dcdb6 13963 ac_save_LIBS="$LIBS"
10f2d63a 13964LIBS="-lposix4 $LIBS"
698dcdb6 13965cat > conftest.$ac_ext <<EOF
7b7a7637 13966#line 13967 "configure"
10f2d63a
VZ
13967#include "confdefs.h"
13968/* Override any gcc2 internal prototype to avoid an error. */
13969/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13970 builtin and then its argument prototype would still apply. */
13971char nanosleep();
13972
13973int main() {
13974nanosleep()
13975; return 0; }
13976EOF
7b7a7637 13977if { (eval echo configure:13978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13978 rm -rf conftest*
13979 eval "ac_cv_lib_$ac_lib_var=yes"
13980else
13981 echo "configure: failed program was:" >&5
13982 cat conftest.$ac_ext >&5
13983 rm -rf conftest*
13984 eval "ac_cv_lib_$ac_lib_var=no"
13985fi
13986rm -f conftest*
13987LIBS="$ac_save_LIBS"
13988
13989fi
13990if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13991 echo "$ac_t""yes" 1>&6
13992
13993 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13994#define HAVE_NANOSLEEP 1
13995EOF
13996
b12915c1 13997 POSIX4_LINK="-lposix4"
698dcdb6 13998
10f2d63a 13999else
698dcdb6 14000 echo "$ac_t""no" 1>&6
10f2d63a 14001
698dcdb6 14002 for ac_func in usleep
10f2d63a 14003do
698dcdb6 14004echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7b7a7637 14005echo "configure:14006: checking for $ac_func" >&5
698dcdb6
VZ
14006if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14007 echo $ac_n "(cached) $ac_c" 1>&6
14008else
14009 cat > conftest.$ac_ext <<EOF
7b7a7637 14010#line 14011 "configure"
10f2d63a
VZ
14011#include "confdefs.h"
14012/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14013 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
14014#include <assert.h>
14015/* Override any gcc2 internal prototype to avoid an error. */
14016/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14017 builtin and then its argument prototype would still apply. */
14018char $ac_func();
14019
14020int main() {
10f2d63a
VZ
14021
14022/* The GNU C library defines this for functions which it implements
14023 to always fail with ENOSYS. Some functions are actually named
14024 something starting with __ and the normal name is an alias. */
14025#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14026choke me
14027#else
698dcdb6 14028$ac_func();
10f2d63a
VZ
14029#endif
14030
698dcdb6
VZ
14031; return 0; }
14032EOF
7b7a7637 14033if { (eval echo configure:14034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14034 rm -rf conftest*
14035 eval "ac_cv_func_$ac_func=yes"
14036else
14037 echo "configure: failed program was:" >&5
14038 cat conftest.$ac_ext >&5
14039 rm -rf conftest*
14040 eval "ac_cv_func_$ac_func=no"
14041fi
14042rm -f conftest*
14043fi
14044
14045if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14046 echo "$ac_t""yes" 1>&6
14047 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14048 cat >> confdefs.h <<EOF
14049#define $ac_tr_func 1
14050EOF
14051 cat >> confdefs.h <<\EOF
b4085ce6
GD
14052#define HAVE_USLEEP 1
14053EOF
14054
10f2d63a 14055else
698dcdb6
VZ
14056 echo "$ac_t""no" 1>&6
14057echo "configure: warning: wxSleep() function will not work" 1>&2
14058
10f2d63a
VZ
14059fi
14060done
14061
698dcdb6
VZ
14062
14063
10f2d63a
VZ
14064fi
14065
698dcdb6
VZ
14066
14067
10f2d63a
VZ
14068fi
14069done
14070
b12915c1 14071fi
10f2d63a
VZ
14072
14073for ac_func in uname gethostname
14074do
698dcdb6 14075echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7b7a7637 14076echo "configure:14077: checking for $ac_func" >&5
698dcdb6
VZ
14077if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14078 echo $ac_n "(cached) $ac_c" 1>&6
14079else
14080 cat > conftest.$ac_ext <<EOF
7b7a7637 14081#line 14082 "configure"
10f2d63a
VZ
14082#include "confdefs.h"
14083/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14084 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
14085#include <assert.h>
14086/* Override any gcc2 internal prototype to avoid an error. */
14087/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14088 builtin and then its argument prototype would still apply. */
14089char $ac_func();
14090
14091int main() {
10f2d63a
VZ
14092
14093/* The GNU C library defines this for functions which it implements
14094 to always fail with ENOSYS. Some functions are actually named
14095 something starting with __ and the normal name is an alias. */
14096#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14097choke me
14098#else
698dcdb6 14099$ac_func();
10f2d63a
VZ
14100#endif
14101
698dcdb6
VZ
14102; return 0; }
14103EOF
7b7a7637 14104if { (eval echo configure:14105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14105 rm -rf conftest*
14106 eval "ac_cv_func_$ac_func=yes"
14107else
14108 echo "configure: failed program was:" >&5
14109 cat conftest.$ac_ext >&5
14110 rm -rf conftest*
14111 eval "ac_cv_func_$ac_func=no"
14112fi
14113rm -f conftest*
14114fi
14115
14116if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14117 echo "$ac_t""yes" 1>&6
14118 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14119 cat >> confdefs.h <<EOF
14120#define $ac_tr_func 1
10f2d63a
VZ
14121EOF
14122 break
698dcdb6
VZ
14123else
14124 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14125fi
14126done
14127
698dcdb6
VZ
14128
14129
14130ac_ext=C
14131# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 14132ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
14133ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14134ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14135cross_compiling=$ac_cv_prog_cxx_cross
14136
6098c7f9 14137
10f2d63a
VZ
14138for ac_func in strtok_r
14139do
698dcdb6 14140echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7b7a7637 14141echo "configure:14142: checking for $ac_func" >&5
698dcdb6
VZ
14142if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14143 echo $ac_n "(cached) $ac_c" 1>&6
14144else
14145 cat > conftest.$ac_ext <<EOF
7b7a7637 14146#line 14147 "configure"
10f2d63a
VZ
14147#include "confdefs.h"
14148/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14149 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
14150#include <assert.h>
14151/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
14152#ifdef __cplusplus
14153extern "C"
14154#endif
10f2d63a 14155/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14156 builtin and then its argument prototype would still apply. */
14157char $ac_func();
14158
14159int main() {
10f2d63a
VZ
14160
14161/* The GNU C library defines this for functions which it implements
14162 to always fail with ENOSYS. Some functions are actually named
14163 something starting with __ and the normal name is an alias. */
14164#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14165choke me
14166#else
698dcdb6 14167$ac_func();
10f2d63a
VZ
14168#endif
14169
698dcdb6 14170; return 0; }
10f2d63a 14171EOF
7b7a7637 14172if { (eval echo configure:14173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14173 rm -rf conftest*
14174 eval "ac_cv_func_$ac_func=yes"
14175else
14176 echo "configure: failed program was:" >&5
14177 cat conftest.$ac_ext >&5
14178 rm -rf conftest*
14179 eval "ac_cv_func_$ac_func=no"
14180fi
14181rm -f conftest*
14182fi
10f2d63a 14183
698dcdb6
VZ
14184if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14185 echo "$ac_t""yes" 1>&6
14186 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14187 cat >> confdefs.h <<EOF
14188#define $ac_tr_func 1
14189EOF
14190
14191else
14192 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14193fi
14194done
14195
698dcdb6 14196
6098c7f9 14197ac_ext=c
698dcdb6 14198# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 14199ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
14200ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14201ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14202cross_compiling=$ac_cv_prog_cc_cross
6232543b 14203
1e487827 14204
698dcdb6 14205INET_LINK=
10f2d63a
VZ
14206for ac_func in inet_addr
14207do
698dcdb6 14208echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7b7a7637 14209echo "configure:14210: checking for $ac_func" >&5
698dcdb6
VZ
14210if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14211 echo $ac_n "(cached) $ac_c" 1>&6
14212else
14213 cat > conftest.$ac_ext <<EOF
7b7a7637 14214#line 14215 "configure"
10f2d63a
VZ
14215#include "confdefs.h"
14216/* System header to define __stub macros and hopefully few prototypes,
698dcdb6
VZ
14217 which can conflict with char $ac_func(); below. */
14218#include <assert.h>
14219/* Override any gcc2 internal prototype to avoid an error. */
10f2d63a 14220/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14221 builtin and then its argument prototype would still apply. */
14222char $ac_func();
14223
14224int main() {
10f2d63a
VZ
14225
14226/* The GNU C library defines this for functions which it implements
14227 to always fail with ENOSYS. Some functions are actually named
1e487827
VS
14228 something starting with __ and the normal name is an alias. */
14229#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14230choke me
14231#else
698dcdb6 14232$ac_func();
1e487827 14233#endif
703e0a69 14234
698dcdb6
VZ
14235; return 0; }
14236EOF
7b7a7637 14237if { (eval echo configure:14238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14238 rm -rf conftest*
14239 eval "ac_cv_func_$ac_func=yes"
14240else
14241 echo "configure: failed program was:" >&5
14242 cat conftest.$ac_ext >&5
14243 rm -rf conftest*
14244 eval "ac_cv_func_$ac_func=no"
14245fi
14246rm -f conftest*
14247fi
14248
14249if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14250 echo "$ac_t""yes" 1>&6
14251 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14252 cat >> confdefs.h <<EOF
14253#define $ac_tr_func 1
14254EOF
14255 cat >> confdefs.h <<\EOF
c63c7106
VZ
14256#define HAVE_INET_ADDR 1
14257EOF
14258
10f2d63a 14259else
698dcdb6
VZ
14260 echo "$ac_t""no" 1>&6
14261echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
7b7a7637 14262echo "configure:14263: checking for inet_addr in -lnsl" >&5
698dcdb6
VZ
14263ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
14264if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14265 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 14266else
698dcdb6 14267 ac_save_LIBS="$LIBS"
c63c7106 14268LIBS="-lnsl $LIBS"
698dcdb6 14269cat > conftest.$ac_ext <<EOF
7b7a7637 14270#line 14271 "configure"
c63c7106
VZ
14271#include "confdefs.h"
14272/* Override any gcc2 internal prototype to avoid an error. */
14273/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14274 builtin and then its argument prototype would still apply. */
14275char inet_addr();
14276
14277int main() {
14278inet_addr()
14279; return 0; }
14280EOF
7b7a7637 14281if { (eval echo configure:14282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14282 rm -rf conftest*
14283 eval "ac_cv_lib_$ac_lib_var=yes"
14284else
14285 echo "configure: failed program was:" >&5
14286 cat conftest.$ac_ext >&5
14287 rm -rf conftest*
14288 eval "ac_cv_lib_$ac_lib_var=no"
14289fi
14290rm -f conftest*
14291LIBS="$ac_save_LIBS"
14292
14293fi
14294if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14295 echo "$ac_t""yes" 1>&6
c63c7106
VZ
14296 INET_LINK="nsl"
14297else
698dcdb6
VZ
14298 echo "$ac_t""no" 1>&6
14299echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
7b7a7637 14300echo "configure:14301: checking for inet_addr in -lresolv" >&5
698dcdb6
VZ
14301ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
14302if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14303 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 14304else
698dcdb6 14305 ac_save_LIBS="$LIBS"
c63c7106 14306LIBS="-lresolv $LIBS"
698dcdb6 14307cat > conftest.$ac_ext <<EOF
7b7a7637 14308#line 14309 "configure"
c63c7106
VZ
14309#include "confdefs.h"
14310/* Override any gcc2 internal prototype to avoid an error. */
14311/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14312 builtin and then its argument prototype would still apply. */
14313char inet_addr();
14314
14315int main() {
14316inet_addr()
14317; return 0; }
14318EOF
7b7a7637 14319if { (eval echo configure:14320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14320 rm -rf conftest*
14321 eval "ac_cv_lib_$ac_lib_var=yes"
14322else
14323 echo "configure: failed program was:" >&5
14324 cat conftest.$ac_ext >&5
14325 rm -rf conftest*
14326 eval "ac_cv_lib_$ac_lib_var=no"
14327fi
14328rm -f conftest*
14329LIBS="$ac_save_LIBS"
c63c7106 14330
6232543b 14331fi
698dcdb6
VZ
14332if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14333 echo "$ac_t""yes" 1>&6
14334 INET_LINK="resolv"
14335
14336else
14337 echo "$ac_t""no" 1>&6
14338fi
c63c7106 14339
698dcdb6 14340
1e487827 14341fi
703e0a69 14342
698dcdb6
VZ
14343
14344
10f2d63a
VZ
14345fi
14346done
14347
698dcdb6 14348
10f2d63a
VZ
14349for ac_func in inet_aton
14350do
698dcdb6 14351echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7b7a7637 14352echo "configure:14353: checking for $ac_func" >&5
698dcdb6
VZ
14353if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14354 echo $ac_n "(cached) $ac_c" 1>&6
14355else
14356 cat > conftest.$ac_ext <<EOF
7b7a7637 14357#line 14358 "configure"
10f2d63a
VZ
14358#include "confdefs.h"
14359/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14360 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
14361#include <assert.h>
14362/* Override any gcc2 internal prototype to avoid an error. */
14363/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14364 builtin and then its argument prototype would still apply. */
14365char $ac_func();
14366
14367int main() {
10f2d63a
VZ
14368
14369/* The GNU C library defines this for functions which it implements
14370 to always fail with ENOSYS. Some functions are actually named
14371 something starting with __ and the normal name is an alias. */
14372#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14373choke me
14374#else
698dcdb6 14375$ac_func();
10f2d63a
VZ
14376#endif
14377
698dcdb6
VZ
14378; return 0; }
14379EOF
7b7a7637 14380if { (eval echo configure:14381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14381 rm -rf conftest*
14382 eval "ac_cv_func_$ac_func=yes"
14383else
14384 echo "configure: failed program was:" >&5
14385 cat conftest.$ac_ext >&5
14386 rm -rf conftest*
14387 eval "ac_cv_func_$ac_func=no"
14388fi
14389rm -f conftest*
14390fi
14391
14392if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14393 echo "$ac_t""yes" 1>&6
14394 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14395 cat >> confdefs.h <<EOF
14396#define $ac_tr_func 1
14397EOF
14398 cat >> confdefs.h <<\EOF
c63c7106
VZ
14399#define HAVE_INET_ATON 1
14400EOF
14401
10f2d63a 14402else
698dcdb6
VZ
14403 echo "$ac_t""no" 1>&6
14404 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
7b7a7637 14405echo "configure:14406: checking for inet_aton in -l$INET_LINK" >&5
698dcdb6
VZ
14406ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
14407if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14408 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14409else
698dcdb6 14410 ac_save_LIBS="$LIBS"
c63c7106 14411LIBS="-l$INET_LINK $LIBS"
698dcdb6 14412cat > conftest.$ac_ext <<EOF
7b7a7637 14413#line 14414 "configure"
10f2d63a
VZ
14414#include "confdefs.h"
14415/* Override any gcc2 internal prototype to avoid an error. */
14416/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14417 builtin and then its argument prototype would still apply. */
14418char inet_aton();
14419
14420int main() {
14421inet_aton()
14422; return 0; }
14423EOF
7b7a7637 14424if { (eval echo configure:14425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14425 rm -rf conftest*
14426 eval "ac_cv_lib_$ac_lib_var=yes"
14427else
14428 echo "configure: failed program was:" >&5
14429 cat conftest.$ac_ext >&5
14430 rm -rf conftest*
14431 eval "ac_cv_lib_$ac_lib_var=no"
14432fi
14433rm -f conftest*
14434LIBS="$ac_save_LIBS"
14435
14436fi
14437if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14438 echo "$ac_t""yes" 1>&6
14439 cat >> confdefs.h <<\EOF
c63c7106 14440#define HAVE_INET_ATON 1
10f2d63a
VZ
14441EOF
14442
698dcdb6
VZ
14443else
14444 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14445fi
14446
698dcdb6 14447
c63c7106
VZ
14448fi
14449done
14450
698dcdb6 14451
c63c7106 14452if test "x$INET_LINK" != "x"; then
698dcdb6 14453 cat >> confdefs.h <<\EOF
c63c7106
VZ
14454#define HAVE_INET_ADDR 1
14455EOF
14456
14457 INET_LINK="-l$INET_LINK"
14458fi
10f2d63a
VZ
14459
14460fi
14461
698dcdb6
VZ
14462
14463cat > confcache <<\EOF
10f2d63a
VZ
14464# This file is a shell script that caches the results of configure
14465# tests run on this system so they can be shared between configure
698dcdb6
VZ
14466# scripts and configure runs. It is not useful on other systems.
14467# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 14468#
698dcdb6
VZ
14469# By default, configure uses ./config.cache as the cache file,
14470# creating it if it does not exist already. You can give configure
14471# the --cache-file=FILE option to use a different cache file; that is
14472# what configure does when it calls configure scripts in
14473# subdirectories, so they share the cache.
14474# Giving --cache-file=/dev/null disables caching, for debugging configure.
14475# config.status only pays attention to the cache file if you give it the
14476# --recheck option to rerun configure.
10f2d63a 14477#
698dcdb6 14478EOF
10f2d63a
VZ
14479# The following way of writing the cache mishandles newlines in values,
14480# but we know of no workaround that is simple, portable, and efficient.
14481# So, don't put newlines in cache variables' values.
14482# Ultrix sh set writes to stderr and can't be redirected directly,
14483# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
14484(set) 2>&1 |
14485 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14486 *ac_space=\ *)
14487 # `set' does not quote correctly, so add quotes (double-quote substitution
14488 # turns \\\\ into \\, and sed turns \\ into \).
14489 sed -n \
14490 -e "s/'/'\\\\''/g" \
14491 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14492 ;;
14493 *)
14494 # `set' quotes correctly as required by POSIX, so do not add quotes.
14495 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14496 ;;
14497 esac >> confcache
14498if cmp -s $cache_file confcache; then
14499 :
14500else
10f2d63a 14501 if test -w $cache_file; then
698dcdb6
VZ
14502 echo "updating cache $cache_file"
14503 cat confcache > $cache_file
10f2d63a
VZ
14504 else
14505 echo "not updating unwritable cache $cache_file"
14506 fi
14507fi
14508rm -f confcache
14509
698dcdb6
VZ
14510
14511
b089607b 14512if test "$TOOLKIT" != "MSW"; then
10f2d63a 14513
698dcdb6 14514
3a922bb4
RL
14515THREADS_LINK=
14516THREADS_OBJ=
14517CODE_GEN_FLAGS=
14518CODE_GEN_FLAGS_CXX=
10f2d63a
VZ
14519
14520if test "$wxUSE_THREADS" = "yes" ; then
14521 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 14522 echo "configure: warning: Threads are not supported under WINE" 1>&2
10f2d63a 14523 wxUSE_THREADS="no"
b12915c1 14524 elif test "$USE_BEOS" = 1; then
698dcdb6 14525 echo "configure: warning: BeOS threads are not yet supported" 1>&2
b12915c1 14526 wxUSE_THREADS="no"
10f2d63a
VZ
14527 fi
14528fi
14529
14530if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 14531
186837b0 14532 if test "$USE_AIX" = 1; then
f6bcfd97
BP
14533 THREADS_LIB=pthreads
14534 else
14535 THREADS_LIB=pthread
14536 fi
14537
698dcdb6 14538 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
7b7a7637 14539echo "configure:14540: checking for pthread_create in -l$THREADS_LIB" >&5
698dcdb6
VZ
14540ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
14541if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14542 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14543else
698dcdb6 14544 ac_save_LIBS="$LIBS"
f6bcfd97 14545LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 14546cat > conftest.$ac_ext <<EOF
7b7a7637 14547#line 14548 "configure"
10f2d63a
VZ
14548#include "confdefs.h"
14549/* Override any gcc2 internal prototype to avoid an error. */
14550/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14551 builtin and then its argument prototype would still apply. */
14552char pthread_create();
14553
14554int main() {
14555pthread_create()
14556; return 0; }
14557EOF
7b7a7637 14558if { (eval echo configure:14559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14559 rm -rf conftest*
14560 eval "ac_cv_lib_$ac_lib_var=yes"
14561else
14562 echo "configure: failed program was:" >&5
14563 cat conftest.$ac_ext >&5
14564 rm -rf conftest*
14565 eval "ac_cv_lib_$ac_lib_var=no"
14566fi
14567rm -f conftest*
14568LIBS="$ac_save_LIBS"
10f2d63a 14569
698dcdb6
VZ
14570fi
14571if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14572 echo "$ac_t""yes" 1>&6
14573
10f2d63a 14574 THREADS_OBJ="threadpsx.lo"
f6bcfd97 14575 THREADS_LINK=$THREADS_LIB
698dcdb6 14576
10f2d63a 14577else
698dcdb6 14578 echo "$ac_t""no" 1>&6
10f2d63a 14579
698dcdb6 14580 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
7b7a7637 14581echo "configure:14582: checking for pthread_create in -lc_r" >&5
698dcdb6
VZ
14582ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
14583if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14584 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14585else
698dcdb6 14586 ac_save_LIBS="$LIBS"
10f2d63a 14587LIBS="-lc_r $LIBS"
698dcdb6 14588cat > conftest.$ac_ext <<EOF
7b7a7637 14589#line 14590 "configure"
10f2d63a
VZ
14590#include "confdefs.h"
14591/* Override any gcc2 internal prototype to avoid an error. */
14592/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14593 builtin and then its argument prototype would still apply. */
14594char pthread_create();
14595
14596int main() {
14597pthread_create()
14598; return 0; }
14599EOF
7b7a7637 14600if { (eval echo configure:14601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14601 rm -rf conftest*
14602 eval "ac_cv_lib_$ac_lib_var=yes"
14603else
14604 echo "configure: failed program was:" >&5
14605 cat conftest.$ac_ext >&5
14606 rm -rf conftest*
14607 eval "ac_cv_lib_$ac_lib_var=no"
14608fi
14609rm -f conftest*
14610LIBS="$ac_save_LIBS"
10f2d63a 14611
698dcdb6
VZ
14612fi
14613if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14614 echo "$ac_t""yes" 1>&6
14615
10f2d63a
VZ
14616 THREADS_OBJ="threadpsx.lo"
14617 THREADS_LINK="c_r"
698dcdb6 14618
10f2d63a 14619else
698dcdb6 14620 echo "$ac_t""no" 1>&6
10f2d63a 14621
698dcdb6
VZ
14622 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
14623echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
7b7a7637 14624echo "configure:14625: checking for sys/prctl.h" >&5
698dcdb6
VZ
14625if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14626 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14627else
698dcdb6 14628 cat > conftest.$ac_ext <<EOF
7b7a7637 14629#line 14630 "configure"
10f2d63a
VZ
14630#include "confdefs.h"
14631#include <sys/prctl.h>
698dcdb6
VZ
14632EOF
14633ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7b7a7637 14634{ (eval echo configure:14635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14635ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14636if test -z "$ac_err"; then
14637 rm -rf conftest*
14638 eval "ac_cv_header_$ac_safe=yes"
1e487827 14639else
698dcdb6
VZ
14640 echo "$ac_err" >&5
14641 echo "configure: failed program was:" >&5
10f2d63a 14642 cat conftest.$ac_ext >&5
698dcdb6
VZ
14643 rm -rf conftest*
14644 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14645fi
698dcdb6 14646rm -f conftest*
10f2d63a 14647fi
698dcdb6
VZ
14648if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14649 echo "$ac_t""yes" 1>&6
14650
1f8ae82f 14651 THREADS_OBJ="threadsgi.lo"
698dcdb6
VZ
14652
14653else
14654 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14655fi
14656
698dcdb6 14657
6232543b 14658fi
10f2d63a 14659
698dcdb6 14660
1e487827 14661fi
703e0a69 14662
698dcdb6 14663
10f2d63a
VZ
14664 if test -z "$THREADS_OBJ" ; then
14665 wxUSE_THREADS=no
698dcdb6 14666 echo "configure: warning: No thread support on this system" 1>&2
10f2d63a
VZ
14667 fi
14668fi
14669
14670if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 14671 for ac_func in thr_setconcurrency
70846f0a 14672do
698dcdb6 14673echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7b7a7637 14674echo "configure:14675: checking for $ac_func" >&5
698dcdb6
VZ
14675if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14676 echo $ac_n "(cached) $ac_c" 1>&6
14677else
14678 cat > conftest.$ac_ext <<EOF
7b7a7637 14679#line 14680 "configure"
70846f0a
VZ
14680#include "confdefs.h"
14681/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14682 which can conflict with char $ac_func(); below. */
70846f0a
VZ
14683#include <assert.h>
14684/* Override any gcc2 internal prototype to avoid an error. */
14685/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14686 builtin and then its argument prototype would still apply. */
14687char $ac_func();
14688
14689int main() {
70846f0a
VZ
14690
14691/* The GNU C library defines this for functions which it implements
14692 to always fail with ENOSYS. Some functions are actually named
14693 something starting with __ and the normal name is an alias. */
14694#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14695choke me
14696#else
698dcdb6 14697$ac_func();
70846f0a
VZ
14698#endif
14699
698dcdb6 14700; return 0; }
70846f0a 14701EOF
7b7a7637 14702if { (eval echo configure:14703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14703 rm -rf conftest*
14704 eval "ac_cv_func_$ac_func=yes"
14705else
14706 echo "configure: failed program was:" >&5
14707 cat conftest.$ac_ext >&5
14708 rm -rf conftest*
14709 eval "ac_cv_func_$ac_func=no"
14710fi
14711rm -f conftest*
14712fi
70846f0a 14713
698dcdb6
VZ
14714if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14715 echo "$ac_t""yes" 1>&6
14716 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14717 cat >> confdefs.h <<EOF
14718#define $ac_tr_func 1
14719EOF
14720
14721else
14722 echo "$ac_t""no" 1>&6
70846f0a
VZ
14723fi
14724done
14725
698dcdb6
VZ
14726
14727
14728 for ac_hdr in sched.h
10f2d63a 14729do
698dcdb6
VZ
14730ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14731echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7b7a7637 14732echo "configure:14733: checking for $ac_hdr" >&5
698dcdb6
VZ
14733if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14734 echo $ac_n "(cached) $ac_c" 1>&6
14735else
14736 cat > conftest.$ac_ext <<EOF
7b7a7637 14737#line 14738 "configure"
10f2d63a 14738#include "confdefs.h"
698dcdb6
VZ
14739#include <$ac_hdr>
14740EOF
14741ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7b7a7637 14742{ (eval echo configure:14743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14743ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14744if test -z "$ac_err"; then
14745 rm -rf conftest*
14746 eval "ac_cv_header_$ac_safe=yes"
1e487827 14747else
698dcdb6
VZ
14748 echo "$ac_err" >&5
14749 echo "configure: failed program was:" >&5
10f2d63a 14750 cat conftest.$ac_ext >&5
698dcdb6
VZ
14751 rm -rf conftest*
14752 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14753fi
698dcdb6 14754rm -f conftest*
10f2d63a 14755fi
698dcdb6
VZ
14756if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14757 echo "$ac_t""yes" 1>&6
14758 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14759 cat >> confdefs.h <<EOF
14760#define $ac_tr_hdr 1
10f2d63a 14761EOF
698dcdb6
VZ
14762
14763else
14764 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14765fi
14766done
14767
698dcdb6
VZ
14768
14769 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
7b7a7637 14770echo "configure:14771: checking for sched_yield in -l$THREADS_LINK" >&5
698dcdb6
VZ
14771ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
14772if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14773 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14774else
698dcdb6 14775 ac_save_LIBS="$LIBS"
10f2d63a 14776LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14777cat > conftest.$ac_ext <<EOF
7b7a7637 14778#line 14779 "configure"
10f2d63a
VZ
14779#include "confdefs.h"
14780/* Override any gcc2 internal prototype to avoid an error. */
14781/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14782 builtin and then its argument prototype would still apply. */
14783char sched_yield();
14784
14785int main() {
14786sched_yield()
14787; return 0; }
14788EOF
7b7a7637 14789if { (eval echo configure:14790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14790 rm -rf conftest*
14791 eval "ac_cv_lib_$ac_lib_var=yes"
14792else
14793 echo "configure: failed program was:" >&5
14794 cat conftest.$ac_ext >&5
14795 rm -rf conftest*
14796 eval "ac_cv_lib_$ac_lib_var=no"
14797fi
14798rm -f conftest*
14799LIBS="$ac_save_LIBS"
14800
14801fi
14802if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14803 echo "$ac_t""yes" 1>&6
14804 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14805#define HAVE_SCHED_YIELD 1
14806EOF
14807
14808else
698dcdb6
VZ
14809 echo "$ac_t""no" 1>&6
14810echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
7b7a7637 14811echo "configure:14812: checking for sched_yield in -lposix4" >&5
698dcdb6
VZ
14812ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
14813if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14814 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14815else
698dcdb6 14816 ac_save_LIBS="$LIBS"
1e487827 14817LIBS="-lposix4 $LIBS"
698dcdb6 14818cat > conftest.$ac_ext <<EOF
7b7a7637 14819#line 14820 "configure"
10f2d63a
VZ
14820#include "confdefs.h"
14821/* Override any gcc2 internal prototype to avoid an error. */
14822/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14823 builtin and then its argument prototype would still apply. */
14824char sched_yield();
14825
14826int main() {
14827sched_yield()
14828; return 0; }
14829EOF
7b7a7637 14830if { (eval echo configure:14831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14831 rm -rf conftest*
14832 eval "ac_cv_lib_$ac_lib_var=yes"
14833else
14834 echo "configure: failed program was:" >&5
14835 cat conftest.$ac_ext >&5
14836 rm -rf conftest*
14837 eval "ac_cv_lib_$ac_lib_var=no"
14838fi
14839rm -f conftest*
14840LIBS="$ac_save_LIBS"
14841
14842fi
14843if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14844 echo "$ac_t""yes" 1>&6
14845 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14846#define HAVE_SCHED_YIELD 1
14847EOF
14848 POSIX4_LINK="-lposix4"
14849else
698dcdb6
VZ
14850 echo "$ac_t""no" 1>&6
14851echo "configure: warning: wxThread::Yield will not work properly" 1>&2
14852
6232543b 14853fi
10f2d63a 14854
698dcdb6 14855
1e487827 14856fi
703e0a69 14857
698dcdb6 14858
f6bcfd97 14859 HAVE_PRIOR_FUNCS=0
698dcdb6 14860 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
7b7a7637 14861echo "configure:14862: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
698dcdb6
VZ
14862ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
14863if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14864 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14865else
698dcdb6 14866 ac_save_LIBS="$LIBS"
10f2d63a 14867LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14868cat > conftest.$ac_ext <<EOF
7b7a7637 14869#line 14870 "configure"
10f2d63a
VZ
14870#include "confdefs.h"
14871/* Override any gcc2 internal prototype to avoid an error. */
14872/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14873 builtin and then its argument prototype would still apply. */
14874char pthread_attr_getschedpolicy();
14875
14876int main() {
14877pthread_attr_getschedpolicy()
14878; return 0; }
14879EOF
7b7a7637 14880if { (eval echo configure:14881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14881 rm -rf conftest*
14882 eval "ac_cv_lib_$ac_lib_var=yes"
14883else
14884 echo "configure: failed program was:" >&5
14885 cat conftest.$ac_ext >&5
14886 rm -rf conftest*
14887 eval "ac_cv_lib_$ac_lib_var=no"
14888fi
14889rm -f conftest*
14890LIBS="$ac_save_LIBS"
14891
14892fi
14893if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14894 echo "$ac_t""yes" 1>&6
14895 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
7b7a7637 14896echo "configure:14897: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
698dcdb6
VZ
14897ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
14898if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14899 echo $ac_n "(cached) $ac_c" 1>&6
14900else
14901 ac_save_LIBS="$LIBS"
f6bcfd97 14902LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14903cat > conftest.$ac_ext <<EOF
7b7a7637 14904#line 14905 "configure"
f6bcfd97
BP
14905#include "confdefs.h"
14906/* Override any gcc2 internal prototype to avoid an error. */
14907/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14908 builtin and then its argument prototype would still apply. */
14909char pthread_attr_setschedparam();
14910
14911int main() {
14912pthread_attr_setschedparam()
14913; return 0; }
14914EOF
7b7a7637 14915if { (eval echo configure:14916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14916 rm -rf conftest*
14917 eval "ac_cv_lib_$ac_lib_var=yes"
14918else
14919 echo "configure: failed program was:" >&5
14920 cat conftest.$ac_ext >&5
14921 rm -rf conftest*
14922 eval "ac_cv_lib_$ac_lib_var=no"
14923fi
14924rm -f conftest*
14925LIBS="$ac_save_LIBS"
14926
14927fi
14928if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14929 echo "$ac_t""yes" 1>&6
14930 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
7b7a7637 14931echo "configure:14932: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
698dcdb6
VZ
14932ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14933if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14934 echo $ac_n "(cached) $ac_c" 1>&6
14935else
14936 ac_save_LIBS="$LIBS"
f6bcfd97 14937LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14938cat > conftest.$ac_ext <<EOF
7b7a7637 14939#line 14940 "configure"
f6bcfd97
BP
14940#include "confdefs.h"
14941/* Override any gcc2 internal prototype to avoid an error. */
14942/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14943 builtin and then its argument prototype would still apply. */
14944char sched_get_priority_max();
14945
14946int main() {
14947sched_get_priority_max()
14948; return 0; }
14949EOF
7b7a7637 14950if { (eval echo configure:14951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14951 rm -rf conftest*
14952 eval "ac_cv_lib_$ac_lib_var=yes"
14953else
14954 echo "configure: failed program was:" >&5
14955 cat conftest.$ac_ext >&5
14956 rm -rf conftest*
14957 eval "ac_cv_lib_$ac_lib_var=no"
14958fi
14959rm -f conftest*
14960LIBS="$ac_save_LIBS"
14961
14962fi
14963if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14964 echo "$ac_t""yes" 1>&6
f6bcfd97 14965 HAVE_PRIOR_FUNCS=1
10f2d63a 14966else
698dcdb6
VZ
14967 echo "$ac_t""no" 1>&6
14968echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
7b7a7637 14969echo "configure:14970: checking for sched_get_priority_max in -lposix4" >&5
698dcdb6
VZ
14970ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14971if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14972 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 14973else
698dcdb6 14974 ac_save_LIBS="$LIBS"
1e487827 14975LIBS="-lposix4 $LIBS"
698dcdb6 14976cat > conftest.$ac_ext <<EOF
7b7a7637 14977#line 14978 "configure"
10f2d63a 14978#include "confdefs.h"
6232543b 14979/* Override any gcc2 internal prototype to avoid an error. */
6232543b 14980/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14981 builtin and then its argument prototype would still apply. */
14982char sched_get_priority_max();
14983
14984int main() {
14985sched_get_priority_max()
14986; return 0; }
14987EOF
7b7a7637 14988if { (eval echo configure:14989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14989 rm -rf conftest*
14990 eval "ac_cv_lib_$ac_lib_var=yes"
14991else
14992 echo "configure: failed program was:" >&5
14993 cat conftest.$ac_ext >&5
14994 rm -rf conftest*
14995 eval "ac_cv_lib_$ac_lib_var=no"
14996fi
14997rm -f conftest*
14998LIBS="$ac_save_LIBS"
10f2d63a 14999
698dcdb6
VZ
15000fi
15001if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15002 echo "$ac_t""yes" 1>&6
15003
f6bcfd97
BP
15004 HAVE_PRIOR_FUNCS=1
15005 POSIX4_LINK="-lposix4"
698dcdb6
VZ
15006
15007else
15008 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15009fi
15010
698dcdb6 15011
10f2d63a
VZ
15012fi
15013
698dcdb6
VZ
15014
15015else
15016 echo "$ac_t""no" 1>&6
6232543b 15017fi
10f2d63a 15018
698dcdb6
VZ
15019
15020else
15021 echo "$ac_t""no" 1>&6
1e487827 15022fi
703e0a69 15023
698dcdb6 15024
f6bcfd97 15025 if test "$HAVE_PRIOR_FUNCS" = 1; then
698dcdb6 15026 cat >> confdefs.h <<\EOF
f6bcfd97
BP
15027#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
15028EOF
15029
15030 else
698dcdb6 15031 echo "configure: warning: Setting thread priority will not work" 1>&2
f6bcfd97
BP
15032 fi
15033
698dcdb6 15034 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
7b7a7637 15035echo "configure:15036: checking for pthread_cancel in -l$THREADS_LINK" >&5
698dcdb6
VZ
15036ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
15037if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15038 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15039else
698dcdb6 15040 ac_save_LIBS="$LIBS"
10f2d63a 15041LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 15042cat > conftest.$ac_ext <<EOF
7b7a7637 15043#line 15044 "configure"
10f2d63a
VZ
15044#include "confdefs.h"
15045/* Override any gcc2 internal prototype to avoid an error. */
15046/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15047 builtin and then its argument prototype would still apply. */
15048char pthread_cancel();
15049
15050int main() {
15051pthread_cancel()
15052; return 0; }
15053EOF
7b7a7637 15054if { (eval echo configure:15055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15055 rm -rf conftest*
15056 eval "ac_cv_lib_$ac_lib_var=yes"
15057else
15058 echo "configure: failed program was:" >&5
15059 cat conftest.$ac_ext >&5
15060 rm -rf conftest*
15061 eval "ac_cv_lib_$ac_lib_var=no"
15062fi
15063rm -f conftest*
15064LIBS="$ac_save_LIBS"
15065
15066fi
15067if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15068 echo "$ac_t""yes" 1>&6
15069 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15070#define HAVE_PTHREAD_CANCEL 1
15071EOF
15072
15073else
698dcdb6
VZ
15074 echo "$ac_t""no" 1>&6
15075echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10f2d63a
VZ
15076fi
15077
1e487827 15078
698dcdb6 15079 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
7b7a7637 15080echo "configure:15081: checking for pthread_cleanup_push/pop" >&5
698dcdb6
VZ
15081if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
15082 echo $ac_n "(cached) $ac_c" 1>&6
15083else
15084
15085 cat > conftest.$ac_ext <<EOF
7b7a7637 15086#line 15087 "configure"
10f2d63a
VZ
15087#include "confdefs.h"
15088#include <pthread.h>
698dcdb6 15089int main() {
10f2d63a
VZ
15090
15091 pthread_cleanup_push(NULL, NULL);
15092 pthread_cleanup_pop(0);
698dcdb6
VZ
15093
15094; return 0; }
15095EOF
7b7a7637 15096if { (eval echo configure:15097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15097 rm -rf conftest*
15098
10f2d63a 15099 wx_cv_func_pthread_cleanup_push=yes
698dcdb6 15100
10f2d63a 15101else
698dcdb6
VZ
15102 echo "configure: failed program was:" >&5
15103 cat conftest.$ac_ext >&5
15104 rm -rf conftest*
15105
10f2d63a 15106 wx_cv_func_pthread_cleanup_push=no
698dcdb6 15107
6232543b 15108fi
698dcdb6
VZ
15109rm -f conftest*
15110
1e487827 15111fi
698dcdb6
VZ
15112
15113echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
10f2d63a 15114
d9b9876f 15115 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
698dcdb6 15116 cat >> confdefs.h <<\EOF
d9b9876f
VZ
15117#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
15118EOF
15119
15120 fi
15121
698dcdb6 15122
b48da802
VZ
15123 if test "x$wx_lib_glibc21" = "xyes"; then
15124 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
ab252f7b
VZ
15125 fi
15126
698dcdb6 15127 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
7b7a7637 15128echo "configure:15129: checking for pthread_mutexattr_t" >&5
698dcdb6
VZ
15129if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
15130 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 15131else
698dcdb6
VZ
15132
15133 cat > conftest.$ac_ext <<EOF
7b7a7637 15134#line 15135 "configure"
d9b9876f
VZ
15135#include "confdefs.h"
15136#include <pthread.h>
698dcdb6 15137int main() {
d9b9876f
VZ
15138
15139 pthread_mutexattr_t attr;
15140 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
698dcdb6
VZ
15141
15142; return 0; }
15143EOF
7b7a7637 15144if { (eval echo configure:15145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15145 rm -rf conftest*
15146
d9b9876f 15147 wx_cv_type_pthread_mutexattr_t=yes
698dcdb6 15148
d9b9876f 15149else
698dcdb6
VZ
15150 echo "configure: failed program was:" >&5
15151 cat conftest.$ac_ext >&5
15152 rm -rf conftest*
15153
d9b9876f 15154 wx_cv_type_pthread_mutexattr_t=no
698dcdb6
VZ
15155
15156
6232543b 15157fi
698dcdb6
VZ
15158rm -f conftest*
15159
1e487827 15160fi
698dcdb6
VZ
15161
15162echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
d9b9876f
VZ
15163
15164 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
698dcdb6 15165 cat >> confdefs.h <<\EOF
d9b9876f
VZ
15166#define HAVE_PTHREAD_MUTEXATTR_T 1
15167EOF
15168
15169 else
698dcdb6 15170 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
7b7a7637 15171echo "configure:15172: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
698dcdb6
VZ
15172if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
15173 echo $ac_n "(cached) $ac_c" 1>&6
15174else
15175
15176 cat > conftest.$ac_ext <<EOF
7b7a7637 15177#line 15178 "configure"
d9b9876f
VZ
15178#include "confdefs.h"
15179#include <pthread.h>
698dcdb6 15180int main() {
d9b9876f
VZ
15181
15182 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
698dcdb6
VZ
15183
15184; return 0; }
15185EOF
7b7a7637 15186if { (eval echo configure:15187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15187 rm -rf conftest*
15188
d9b9876f 15189 wx_cv_type_pthread_rec_mutex_init=yes
698dcdb6 15190
d9b9876f 15191else
698dcdb6
VZ
15192 echo "configure: failed program was:" >&5
15193 cat conftest.$ac_ext >&5
15194 rm -rf conftest*
15195
d9b9876f 15196 wx_cv_type_pthread_rec_mutex_init=no
698dcdb6
VZ
15197
15198
6232543b 15199fi
698dcdb6
VZ
15200rm -f conftest*
15201
1e487827 15202fi
698dcdb6
VZ
15203
15204echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
3765e936 15205 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
698dcdb6 15206 cat >> confdefs.h <<\EOF
d9b9876f
VZ
15207#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
15208EOF
15209
15210 else
698dcdb6 15211 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
d9b9876f
VZ
15212 fi
15213 fi
15214
10f2d63a 15215 THREADS_LINK="-l$THREADS_LINK"
186837b0
VZ
15216
15217 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
a3cb1afc 15218 CPPFLAGS="${CFLAGS} -mt"
186837b0
VZ
15219 CXXFLAGS="${CXXFLAGS} -mt"
15220 LDFLAGS="${LDFLAGS} -mt"
15221 fi
10f2d63a
VZ
15222fi
15223
15224fi
15225
15226if test "$wxUSE_THREADS" = "yes"; then
698dcdb6 15227 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15228#define wxUSE_THREADS 1
15229EOF
15230
698dcdb6 15231
7b6058cd 15232 if test "$USE_DARWIN" != 1; then
3a922bb4 15233 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
2c6025bc 15234 fi
10f2d63a
VZ
15235
15236 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
15237else
15238 if test "$ac_cv_func_strtok_r" = "yes"; then
698dcdb6 15239 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
7b7a7637 15240echo "configure:15241: checking if -D_REENTRANT is needed" >&5
ab9b9eab 15241 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
3a922bb4 15242 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
698dcdb6 15243 echo "$ac_t""yes" 1>&6
ab9b9eab 15244 else
698dcdb6 15245 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15246 fi
15247 fi
15248fi
15249
6f72b082 15250if test "$WXGTK20" = 1 ; then
698dcdb6 15251 cat >> confdefs.h <<EOF
6f72b082 15252#define __WXGTK20__ $WXGTK20
13111b2a
VZ
15253EOF
15254
15255 WXGTK12=1
15256fi
15257
10f2d63a 15258if test "$WXGTK12" = 1 ; then
698dcdb6 15259 cat >> confdefs.h <<EOF
10f2d63a
VZ
15260#define __WXGTK12__ $WXGTK12
15261EOF
15262
15263fi
15264
f6bcfd97 15265if test "$WXGTK127" = 1 ; then
698dcdb6 15266 cat >> confdefs.h <<EOF
f6bcfd97
BP
15267#define __WXGTK127__ $WXGTK127
15268EOF
15269
15270fi
15271
10f2d63a
VZ
15272WXDEBUG=
15273
15274if test "$wxUSE_DEBUG_INFO" = "yes" ; then
15275 WXDEBUG="-g"
15276 wxUSE_OPTIMISE=no
15277fi
15278
15279if test "$wxUSE_DEBUG_GDB" = "yes" ; then
15280 wxUSE_DEBUG_INFO=yes
15281 WXDEBUG="-ggdb"
15282fi
15283
15284if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
698dcdb6 15285 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15286#define WXDEBUG 1
15287EOF
15288
15289 WXDEBUG_DEFINE="-D__WXDEBUG__"
15290else
15291 if test "$wxUSE_GTK" = 1 ; then
15292 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
15293 fi
15294fi
15295
15296if test "$wxUSE_MEM_TRACING" = "yes" ; then
698dcdb6 15297 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15298#define wxUSE_MEMORY_TRACING 1
15299EOF
15300
698dcdb6 15301 cat >> confdefs.h <<\EOF
10f2d63a 15302#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
15303EOF
15304
698dcdb6 15305 cat >> confdefs.h <<\EOF
47c13eb7 15306#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
15307EOF
15308
15309 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
15310fi
15311
15312if test "$wxUSE_DMALLOC" = "yes" ; then
15313 DMALLOC_LINK="-ldmalloc"
15314fi
15315
15316PROFILE=
15317if test "$wxUSE_PROFILE" = "yes" ; then
15318 PROFILE="-pg"
15319fi
15320
10f2d63a
VZ
15321if test "$GCC" = yes ; then
15322 if test "$wxUSE_NO_RTTI" = "yes" ; then
3a922bb4 15323 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
10f2d63a
VZ
15324 fi
15325 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
3a922bb4 15326 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
10f2d63a
VZ
15327 fi
15328 if test "$wxUSE_PERMISSIVE" = "yes" ; then
d08b457b 15329 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
15330 fi
15331 if test "$wxUSE_NO_DEPS" = "no" ; then
077c5642
GD
15332 CFLAGS="-MMD ${CFLAGS}"
15333 CXXFLAGS="-MMD ${CXXFLAGS}"
3a922bb4
RL
15334 fi
15335 if test "$USE_WIN32" = 1 ; then
15336 # I'm not even really sure what this was ever added to solve,
15337 # but someone added it for mingw native builds, so I guess
15338 # they had a reason, right??
15339 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
10f2d63a
VZ
15340 fi
15341fi
15342
698dcdb6 15343
10f2d63a
VZ
15344CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
15345CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
15346if test "$wxUSE_OPTIMISE" = "no" ; then
15347 OPTIMISE=
15348else
15349 if test "$GCC" = yes ; then
15350 OPTIMISE="-O2"
15351 case "${host}" in
15352 i586-*-*|i686-*-* )
15353 OPTIMISE="${OPTIMISE} "
15354 ;;
15355 esac
15356 else
15357 OPTIMISE="-O"
15358 fi
15359fi
15360
54276ccf
VZ
15361if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
15362 cat >> confdefs.h <<\EOF
15363#define WXWIN_COMPATIBILITY_2 1
15364EOF
15365
15366
15367 WXWIN_COMPATIBILITY_2_2="yes"
15368fi
15369
15370if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
15371 cat >> confdefs.h <<\EOF
15372#define WXWIN_COMPATIBILITY_2_2 1
15373EOF
15374
15375fi
15376
698dcdb6 15377
10f2d63a 15378ZLIB_INCLUDE=
422107f9 15379if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
698dcdb6 15380 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15381#define wxUSE_ZLIB 1
15382EOF
15383
422107f9
VZ
15384 if test "$wxUSE_ZLIB" = "yes" ; then
15385 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
15386 else
15387 ZLIB_LINK=
698dcdb6
VZ
15388 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
15389echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
7b7a7637 15390echo "configure:15391: checking for zlib.h" >&5
698dcdb6
VZ
15391if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15392 echo $ac_n "(cached) $ac_c" 1>&6
15393else
15394 cat > conftest.$ac_ext <<EOF
7b7a7637 15395#line 15396 "configure"
422107f9
VZ
15396#include "confdefs.h"
15397#include <zlib.h>
698dcdb6
VZ
15398EOF
15399ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7b7a7637 15400{ (eval echo configure:15401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15401ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15402if test -z "$ac_err"; then
15403 rm -rf conftest*
15404 eval "ac_cv_header_$ac_safe=yes"
422107f9 15405else
698dcdb6
VZ
15406 echo "$ac_err" >&5
15407 echo "configure: failed program was:" >&5
422107f9 15408 cat conftest.$ac_ext >&5
698dcdb6
VZ
15409 rm -rf conftest*
15410 eval "ac_cv_header_$ac_safe=no"
422107f9 15411fi
698dcdb6 15412rm -f conftest*
422107f9 15413fi
698dcdb6
VZ
15414if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15415 echo "$ac_t""yes" 1>&6
15416 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
7b7a7637 15417echo "configure:15418: checking for deflate in -lz" >&5
698dcdb6
VZ
15418ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
15419if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15420 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15421else
698dcdb6 15422 ac_save_LIBS="$LIBS"
422107f9 15423LIBS="-lz $LIBS"
698dcdb6 15424cat > conftest.$ac_ext <<EOF
7b7a7637 15425#line 15426 "configure"
422107f9
VZ
15426#include "confdefs.h"
15427/* Override any gcc2 internal prototype to avoid an error. */
15428/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15429 builtin and then its argument prototype would still apply. */
15430char deflate();
15431
15432int main() {
15433deflate()
15434; return 0; }
15435EOF
7b7a7637 15436if { (eval echo configure:15437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15437 rm -rf conftest*
15438 eval "ac_cv_lib_$ac_lib_var=yes"
15439else
15440 echo "configure: failed program was:" >&5
15441 cat conftest.$ac_ext >&5
15442 rm -rf conftest*
15443 eval "ac_cv_lib_$ac_lib_var=no"
15444fi
15445rm -f conftest*
15446LIBS="$ac_save_LIBS"
15447
15448fi
15449if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15450 echo "$ac_t""yes" 1>&6
422107f9 15451 ZLIB_LINK="-lz"
698dcdb6
VZ
15452else
15453 echo "$ac_t""no" 1>&6
422107f9
VZ
15454fi
15455
698dcdb6
VZ
15456else
15457 echo "$ac_t""no" 1>&6
422107f9
VZ
15458fi
15459
15460 if test "x$ZLIB_LINK" = "x" ; then
698dcdb6 15461 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
422107f9
VZ
15462 fi
15463 fi
10f2d63a
VZ
15464fi
15465
15466PNG_INCLUDE=
422107f9 15467if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
698dcdb6 15468 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15469#define wxUSE_LIBPNG 1
15470EOF
15471
41fd4136 15472 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
698dcdb6 15473 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
422107f9
VZ
15474 wxUSE_LIBPNG=yes
15475 fi
15476
15477 if test "$wxUSE_LIBPNG" = "yes" ; then
15478 PNG_INCLUDE="-I\${top_srcdir}/src/png"
15479 else
15480 PNG_LINK=
698dcdb6
VZ
15481 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
15482echo $ac_n "checking for png.h""... $ac_c" 1>&6
7b7a7637 15483echo "configure:15484: checking for png.h" >&5
698dcdb6
VZ
15484if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15485 echo $ac_n "(cached) $ac_c" 1>&6
15486else
15487 cat > conftest.$ac_ext <<EOF
7b7a7637 15488#line 15489 "configure"
422107f9
VZ
15489#include "confdefs.h"
15490#include <png.h>
698dcdb6
VZ
15491EOF
15492ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7b7a7637 15493{ (eval echo configure:15494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15494ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15495if test -z "$ac_err"; then
15496 rm -rf conftest*
15497 eval "ac_cv_header_$ac_safe=yes"
422107f9 15498else
698dcdb6
VZ
15499 echo "$ac_err" >&5
15500 echo "configure: failed program was:" >&5
422107f9 15501 cat conftest.$ac_ext >&5
698dcdb6
VZ
15502 rm -rf conftest*
15503 eval "ac_cv_header_$ac_safe=no"
422107f9 15504fi
698dcdb6 15505rm -f conftest*
422107f9 15506fi
698dcdb6
VZ
15507if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15508 echo "$ac_t""yes" 1>&6
15509 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
7b7a7637 15510echo "configure:15511: checking for png_check_sig in -lpng" >&5
698dcdb6
VZ
15511ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
15512if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15513 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15514else
698dcdb6 15515 ac_save_LIBS="$LIBS"
422107f9 15516LIBS="-lpng -lz -lm $LIBS"
698dcdb6 15517cat > conftest.$ac_ext <<EOF
7b7a7637 15518#line 15519 "configure"
422107f9
VZ
15519#include "confdefs.h"
15520/* Override any gcc2 internal prototype to avoid an error. */
15521/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15522 builtin and then its argument prototype would still apply. */
15523char png_check_sig();
15524
15525int main() {
15526png_check_sig()
15527; return 0; }
15528EOF
7b7a7637 15529if { (eval echo configure:15530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15530 rm -rf conftest*
15531 eval "ac_cv_lib_$ac_lib_var=yes"
15532else
15533 echo "configure: failed program was:" >&5
15534 cat conftest.$ac_ext >&5
15535 rm -rf conftest*
15536 eval "ac_cv_lib_$ac_lib_var=no"
15537fi
15538rm -f conftest*
15539LIBS="$ac_save_LIBS"
15540
15541fi
15542if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15543 echo "$ac_t""yes" 1>&6
422107f9 15544 PNG_LINK="-lpng"
698dcdb6
VZ
15545else
15546 echo "$ac_t""no" 1>&6
422107f9
VZ
15547fi
15548
698dcdb6
VZ
15549
15550else
15551 echo "$ac_t""no" 1>&6
422107f9
VZ
15552fi
15553
15554 if test "x$PNG_LINK" = "x" ; then
698dcdb6 15555 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
15556 fi
15557 fi
15558
10f2d63a
VZ
15559 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
15560fi
15561
15562JPEG_INCLUDE=
422107f9 15563if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
698dcdb6 15564 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15565#define wxUSE_LIBJPEG 1
15566EOF
15567
422107f9
VZ
15568 if test "$wxUSE_LIBJPEG" = "yes" ; then
15569 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
15570 else
15571 JPEG_LINK=
463abc64 15572 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7b7a7637 15573echo "configure:15574: checking for jpeglib.h" >&5
463abc64 15574 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
698dcdb6
VZ
15575 echo $ac_n "(cached) $ac_c" 1>&6
15576else
15577 cat > conftest.$ac_ext <<EOF
7b7a7637 15578#line 15579 "configure"
422107f9 15579#include "confdefs.h"
463abc64
VZ
15580
15581 #undef HAVE_STDLIB_H
15582 #include <stdio.h>
15583 #include <jpeglib.h>
15584
15585int main() {
15586
15587
15588; return 0; }
698dcdb6 15589EOF
7b7a7637 15590if { (eval echo configure:15591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15591 rm -rf conftest*
463abc64 15592 ac_cv_header_jpeglib_h=yes
6232543b 15593else
698dcdb6 15594 echo "configure: failed program was:" >&5
422107f9 15595 cat conftest.$ac_ext >&5
698dcdb6 15596 rm -rf conftest*
463abc64
VZ
15597 ac_cv_header_jpeglib_h=no
15598
422107f9 15599fi
698dcdb6 15600rm -f conftest*
463abc64 15601
422107f9 15602fi
463abc64
VZ
15603
15604 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
15605
15606 if test "$ac_cv_header_jpeglib_h" = "yes"; then
15607 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
7b7a7637 15608echo "configure:15609: checking for jpeg_read_header in -ljpeg" >&5
698dcdb6
VZ
15609ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
15610if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15611 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15612else
698dcdb6 15613 ac_save_LIBS="$LIBS"
422107f9 15614LIBS="-ljpeg $LIBS"
698dcdb6 15615cat > conftest.$ac_ext <<EOF
7b7a7637 15616#line 15617 "configure"
422107f9
VZ
15617#include "confdefs.h"
15618/* Override any gcc2 internal prototype to avoid an error. */
15619/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15620 builtin and then its argument prototype would still apply. */
15621char jpeg_read_header();
15622
15623int main() {
15624jpeg_read_header()
15625; return 0; }
15626EOF
7b7a7637 15627if { (eval echo configure:15628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15628 rm -rf conftest*
15629 eval "ac_cv_lib_$ac_lib_var=yes"
15630else
15631 echo "configure: failed program was:" >&5
15632 cat conftest.$ac_ext >&5
15633 rm -rf conftest*
15634 eval "ac_cv_lib_$ac_lib_var=no"
15635fi
15636rm -f conftest*
15637LIBS="$ac_save_LIBS"
15638
15639fi
15640if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15641 echo "$ac_t""yes" 1>&6
422107f9 15642 JPEG_LINK="-ljpeg"
698dcdb6
VZ
15643else
15644 echo "$ac_t""no" 1>&6
422107f9
VZ
15645fi
15646
463abc64 15647 fi
422107f9
VZ
15648
15649 if test "x$JPEG_LINK" = "x" ; then
698dcdb6 15650 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
15651 fi
15652 fi
10f2d63a
VZ
15653fi
15654
c7a2bf27 15655TIFF_INCLUDE=
0dcf9893 15656if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
698dcdb6 15657 cat >> confdefs.h <<\EOF
c7a2bf27
RR
15658#define wxUSE_LIBTIFF 1
15659EOF
15660
665bbe97 15661 if test "$wxUSE_LIBTIFF" = "yes" ; then
0dcf9893
VZ
15662 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
15663 else
15664 TIFF_LINK=
698dcdb6
VZ
15665 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
15666echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7b7a7637 15667echo "configure:15668: checking for tiffio.h" >&5
698dcdb6
VZ
15668if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15669 echo $ac_n "(cached) $ac_c" 1>&6
15670else
15671 cat > conftest.$ac_ext <<EOF
7b7a7637 15672#line 15673 "configure"
0dcf9893
VZ
15673#include "confdefs.h"
15674#include <tiffio.h>
698dcdb6
VZ
15675EOF
15676ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7b7a7637 15677{ (eval echo configure:15678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15678ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15679if test -z "$ac_err"; then
15680 rm -rf conftest*
15681 eval "ac_cv_header_$ac_safe=yes"
3fed1840 15682else
698dcdb6
VZ
15683 echo "$ac_err" >&5
15684 echo "configure: failed program was:" >&5
3fed1840 15685 cat conftest.$ac_ext >&5
698dcdb6
VZ
15686 rm -rf conftest*
15687 eval "ac_cv_header_$ac_safe=no"
3fed1840 15688fi
698dcdb6 15689rm -f conftest*
3fed1840 15690fi
698dcdb6
VZ
15691if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15692 echo "$ac_t""yes" 1>&6
3a922bb4 15693 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
7b7a7637 15694echo "configure:15695: checking for TIFFError in -ltiff" >&5
3a922bb4 15695ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15696if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15697 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 15698else
698dcdb6 15699 ac_save_LIBS="$LIBS"
3a922bb4 15700LIBS="-ltiff -lm $LIBS"
698dcdb6 15701cat > conftest.$ac_ext <<EOF
7b7a7637 15702#line 15703 "configure"
3fed1840
RR
15703#include "confdefs.h"
15704/* Override any gcc2 internal prototype to avoid an error. */
15705/* We use char because int might match the return type of a gcc2
698dcdb6 15706 builtin and then its argument prototype would still apply. */
3a922bb4 15707char TIFFError();
698dcdb6
VZ
15708
15709int main() {
3a922bb4 15710TIFFError()
698dcdb6
VZ
15711; return 0; }
15712EOF
7b7a7637 15713if { (eval echo configure:15714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15714 rm -rf conftest*
15715 eval "ac_cv_lib_$ac_lib_var=yes"
15716else
15717 echo "configure: failed program was:" >&5
15718 cat conftest.$ac_ext >&5
15719 rm -rf conftest*
15720 eval "ac_cv_lib_$ac_lib_var=no"
15721fi
15722rm -f conftest*
15723LIBS="$ac_save_LIBS"
15724
15725fi
15726if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15727 echo "$ac_t""yes" 1>&6
3a922bb4 15728 TIFF_LINK="-ltiff"
698dcdb6
VZ
15729else
15730 echo "$ac_t""no" 1>&6
3fed1840
RR
15731fi
15732
698dcdb6
VZ
15733else
15734 echo "$ac_t""no" 1>&6
3fed1840
RR
15735fi
15736
3a922bb4
RL
15737 if test "x$TIFF_LINK" = "x" ; then
15738 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
3fed1840
RR
15739 fi
15740 fi
15741fi
15742
3a922bb4
RL
15743FREETYPE_INCLUDE=
15744if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
15745 cat >> confdefs.h <<\EOF
15746#define wxUSE_FREETYPE 1
7b6058cd
GD
15747EOF
15748
3a922bb4
RL
15749 if test "$wxUSE_FREETYPE" = "yes" ; then
15750 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
7b6058cd 15751 else
3a922bb4
RL
15752 FREETYPE_LINK=
15753 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
15754echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
7b7a7637 15755echo "configure:15756: checking for freetype.h" >&5
698dcdb6
VZ
15756if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15757 echo $ac_n "(cached) $ac_c" 1>&6
15758else
15759 cat > conftest.$ac_ext <<EOF
7b7a7637 15760#line 15761 "configure"
10f2d63a 15761#include "confdefs.h"
3a922bb4 15762#include <freetype.h>
698dcdb6
VZ
15763EOF
15764ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7b7a7637 15765{ (eval echo configure:15766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15766ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15767if test -z "$ac_err"; then
15768 rm -rf conftest*
15769 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 15770else
698dcdb6
VZ
15771 echo "$ac_err" >&5
15772 echo "configure: failed program was:" >&5
10f2d63a 15773 cat conftest.$ac_ext >&5
698dcdb6
VZ
15774 rm -rf conftest*
15775 eval "ac_cv_header_$ac_safe=no"
10f2d63a 15776fi
698dcdb6 15777rm -f conftest*
10f2d63a 15778fi
698dcdb6
VZ
15779if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15780 echo "$ac_t""yes" 1>&6
3a922bb4 15781 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
7b7a7637 15782echo "configure:15783: checking for FT_Render_Glyph in -lfreetype" >&5
3a922bb4 15783ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15784if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15785 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15786else
698dcdb6 15787 ac_save_LIBS="$LIBS"
3a922bb4 15788LIBS="-lfreetype -lm $LIBS"
698dcdb6 15789cat > conftest.$ac_ext <<EOF
7b7a7637 15790#line 15791 "configure"
10f2d63a
VZ
15791#include "confdefs.h"
15792/* Override any gcc2 internal prototype to avoid an error. */
15793/* We use char because int might match the return type of a gcc2
698dcdb6 15794 builtin and then its argument prototype would still apply. */
3a922bb4 15795char FT_Render_Glyph();
698dcdb6
VZ
15796
15797int main() {
3a922bb4 15798FT_Render_Glyph()
698dcdb6
VZ
15799; return 0; }
15800EOF
7b7a7637 15801if { (eval echo configure:15802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15802 rm -rf conftest*
15803 eval "ac_cv_lib_$ac_lib_var=yes"
15804else
15805 echo "configure: failed program was:" >&5
15806 cat conftest.$ac_ext >&5
15807 rm -rf conftest*
15808 eval "ac_cv_lib_$ac_lib_var=no"
15809fi
15810rm -f conftest*
15811LIBS="$ac_save_LIBS"
10f2d63a 15812
698dcdb6
VZ
15813fi
15814if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15815 echo "$ac_t""yes" 1>&6
3a922bb4 15816 FREETYPE_LINK="-lfreetype"
698dcdb6
VZ
15817else
15818 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15819fi
15820
3a922bb4 15821
10f2d63a 15822else
698dcdb6 15823 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15824fi
15825
3a922bb4
RL
15826 if test "x$FREETYPE_LINK" = "x" ; then
15827 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
15828 fi
7b6058cd 15829 fi
10f2d63a
VZ
15830fi
15831
698dcdb6 15832
10f2d63a 15833if test "$wxUSE_GUI" = "yes"; then
698dcdb6 15834 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15835#define wxUSE_GUI 1
15836EOF
15837
698dcdb6 15838
10f2d63a 15839 else
698dcdb6 15840 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15841#define wxUSE_NOGUI 1
15842EOF
15843
15844fi
15845
698dcdb6 15846
10f2d63a 15847if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 15848 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15849#define wxUSE_UNIX 1
15850EOF
15851
15852fi
15853
698dcdb6 15854
10f2d63a 15855if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 15856 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15857#define wxUSE_APPLE_IEEE 1
15858EOF
15859
15860fi
15861
1e6feb95
VZ
15862if test "$wxUSE_TIMER" = "yes"; then
15863 cat >> confdefs.h <<\EOF
15864#define wxUSE_TIMER 1
15865EOF
15866
15867fi
15868
10f2d63a 15869if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 15870 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15871#define wxUSE_WAVE 1
15872EOF
15873
15874fi
15875
1e6feb95
VZ
15876if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15877 cat >> confdefs.h <<\EOF
15878#define wxUSE_CMDLINE_PARSER 1
15879EOF
15880
15881fi
15882
15883if test "$wxUSE_STOPWATCH" = "yes"; then
15884 cat >> confdefs.h <<\EOF
15885#define wxUSE_STOPWATCH 1
15886EOF
15887
15888fi
15889
15890if test "$wxUSE_DATETIME" = "yes"; then
15891 cat >> confdefs.h <<\EOF
15892#define wxUSE_DATETIME 1
15893EOF
15894
15895fi
15896
15897if test "$wxUSE_TIMEDATE" = "yes"; then
15898 cat >> confdefs.h <<\EOF
15899#define wxUSE_TIMEDATE 1
15900EOF
15901
15902fi
15903
10f2d63a 15904if test "$wxUSE_FILE" = "yes"; then
698dcdb6 15905 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15906#define wxUSE_FILE 1
15907EOF
15908
15909fi
15910
1e6feb95
VZ
15911if test "$wxUSE_FFILE" = "yes"; then
15912 cat >> confdefs.h <<\EOF
15913#define wxUSE_FFILE 1
15914EOF
15915
15916fi
15917
24528b0c 15918if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 15919 cat >> confdefs.h <<\EOF
24528b0c
VS
15920#define wxUSE_FILESYSTEM 1
15921EOF
15922
15923fi
15924
10f2d63a 15925if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 15926 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15927#define wxUSE_FS_INET 1
15928EOF
15929
15930fi
15931
15932if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 15933 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15934#define wxUSE_FS_ZIP 1
15935EOF
15936
15937fi
15938
15939if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 15940 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15941#define wxUSE_ZIPSTREAM 1
15942EOF
15943
15944fi
15945
eb4efbdc 15946if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 15947 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
15948#define wxUSE_ON_FATAL_EXCEPTION 1
15949EOF
15950
15951fi
15952
4f3c5f06 15953if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 15954 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
15955#define wxUSE_SNGLINST_CHECKER 1
15956EOF
15957
15958fi
15959
10f2d63a 15960if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 15961 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15962#define wxUSE_BUSYINFO 1
15963EOF
15964
15965fi
15966
15967if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 15968 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15969#define wxUSE_STD_IOSTREAM 1
15970EOF
15971
15972fi
15973
15974if test "$wxUSE_TEXTFILE" = "yes"; then
15975 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15976 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 15977 else
698dcdb6 15978 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15979#define wxUSE_TEXTFILE 1
15980EOF
15981
15982 fi
15983fi
15984
15985if test "$wxUSE_CONFIG" = "yes" ; then
15986 if test "$wxUSE_TEXTFILE" != "yes"; then
698dcdb6 15987 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
10f2d63a 15988 else
698dcdb6 15989 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15990#define wxUSE_CONFIG 1
15991EOF
15992
15993 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15994 fi
15995fi
15996
15997if test "$wxUSE_INTL" = "yes" ; then
15998 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15999 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 16000 else
698dcdb6 16001 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16002#define wxUSE_INTL 1
16003EOF
16004
16005 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 16006 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
16007 fi
16008fi
16009
16010if test "$wxUSE_LOG" = "yes"; then
698dcdb6 16011 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16012#define wxUSE_LOG 1
16013EOF
16014
d73be714
VZ
16015
16016 if test "$wxUSE_LOGGUI" = "yes"; then
16017 cat >> confdefs.h <<\EOF
16018#define wxUSE_LOGGUI 1
16019EOF
16020
16021 fi
16022
16023 if test "$wxUSE_LOGWINDOW" = "yes"; then
16024 cat >> confdefs.h <<\EOF
16025#define wxUSE_LOGWINDOW 1
16026EOF
16027
16028 fi
10f2d63a
VZ
16029fi
16030
16031if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 16032 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16033#define wxUSE_LONGLONG 1
16034EOF
16035
16036fi
16037
e8f65ba6 16038if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 16039 cat >> confdefs.h <<\EOF
e8f65ba6
RR
16040#define wxUSE_GEOMETRY 1
16041EOF
16042
16043fi
16044
10f2d63a 16045if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 16046 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16047#define wxUSE_DIALUP_MANAGER 1
16048EOF
16049
70f7a477 16050 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
16051fi
16052
16053if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 16054 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16055#define wxUSE_STREAMS 1
16056EOF
16057
16058fi
16059
1e487827 16060
1e6feb95 16061if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 16062 for ac_func in strptime
83307f33 16063do
698dcdb6 16064echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7b7a7637 16065echo "configure:16066: checking for $ac_func" >&5
698dcdb6
VZ
16066if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16067 echo $ac_n "(cached) $ac_c" 1>&6
16068else
16069 cat > conftest.$ac_ext <<EOF
7b7a7637 16070#line 16071 "configure"
83307f33
VZ
16071#include "confdefs.h"
16072/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16073 which can conflict with char $ac_func(); below. */
83307f33
VZ
16074#include <assert.h>
16075/* Override any gcc2 internal prototype to avoid an error. */
16076/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16077 builtin and then its argument prototype would still apply. */
16078char $ac_func();
16079
16080int main() {
83307f33
VZ
16081
16082/* The GNU C library defines this for functions which it implements
16083 to always fail with ENOSYS. Some functions are actually named
16084 something starting with __ and the normal name is an alias. */
16085#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16086choke me
16087#else
698dcdb6 16088$ac_func();
83307f33
VZ
16089#endif
16090
698dcdb6 16091; return 0; }
83307f33 16092EOF
7b7a7637 16093if { (eval echo configure:16094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16094 rm -rf conftest*
16095 eval "ac_cv_func_$ac_func=yes"
16096else
16097 echo "configure: failed program was:" >&5
16098 cat conftest.$ac_ext >&5
16099 rm -rf conftest*
16100 eval "ac_cv_func_$ac_func=no"
16101fi
16102rm -f conftest*
16103fi
83307f33 16104
698dcdb6
VZ
16105if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16106 echo "$ac_t""yes" 1>&6
16107 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16108 cat >> confdefs.h <<EOF
16109#define $ac_tr_func 1
16110EOF
16111
16112else
16113 echo "$ac_t""no" 1>&6
83307f33
VZ
16114fi
16115done
16116
1e487827 16117
698dcdb6 16118 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
7b7a7637 16119echo "configure:16120: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
16120if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
16121 echo $ac_n "(cached) $ac_c" 1>&6
16122else
16123
16124 cat > conftest.$ac_ext <<EOF
7b7a7637 16125#line 16126 "configure"
360d6699
VZ
16126#include "confdefs.h"
16127
b4085ce6 16128 #include <time.h>
698dcdb6
VZ
16129
16130int main() {
360d6699
VZ
16131
16132 int tz;
4f11a343 16133 tz = timezone;
698dcdb6
VZ
16134
16135; return 0; }
16136EOF
7b7a7637 16137if { (eval echo configure:16138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16138 rm -rf conftest*
16139
4f11a343 16140 wx_cv_var_timezone=timezone
698dcdb6 16141
360d6699 16142else
698dcdb6
VZ
16143 echo "configure: failed program was:" >&5
16144 cat conftest.$ac_ext >&5
16145 rm -rf conftest*
16146
16147 cat > conftest.$ac_ext <<EOF
7b7a7637 16148#line 16149 "configure"
360d6699
VZ
16149#include "confdefs.h"
16150
b4085ce6 16151 #include <time.h>
698dcdb6
VZ
16152
16153int main() {
360d6699
VZ
16154
16155 int tz;
16156 tz = _timezone;
698dcdb6
VZ
16157
16158; return 0; }
16159EOF
7b7a7637 16160if { (eval echo configure:16161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16161 rm -rf conftest*
16162
360d6699 16163 wx_cv_var_timezone=_timezone
698dcdb6 16164
5357c8e8 16165else
698dcdb6
VZ
16166 echo "configure: failed program was:" >&5
16167 cat conftest.$ac_ext >&5
16168 rm -rf conftest*
16169
16170 cat > conftest.$ac_ext <<EOF
7b7a7637 16171#line 16172 "configure"
5357c8e8
VZ
16172#include "confdefs.h"
16173
b4085ce6 16174 #include <time.h>
698dcdb6
VZ
16175
16176int main() {
5357c8e8
VZ
16177
16178 int tz;
4f11a343 16179 tz = __timezone;
698dcdb6
VZ
16180
16181; return 0; }
16182EOF
7b7a7637 16183if { (eval echo configure:16184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16184 rm -rf conftest*
16185
4f11a343 16186 wx_cv_var_timezone=__timezone
698dcdb6 16187
360d6699 16188else
698dcdb6
VZ
16189 echo "configure: failed program was:" >&5
16190 cat conftest.$ac_ext >&5
16191 rm -rf conftest*
16192 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
16193
360d6699 16194fi
698dcdb6
VZ
16195rm -f conftest*
16196
16197
360d6699 16198fi
698dcdb6
VZ
16199rm -f conftest*
16200
16201
6232543b 16202fi
698dcdb6
VZ
16203rm -f conftest*
16204
16205
1e487827 16206fi
703e0a69 16207
698dcdb6
VZ
16208echo "$ac_t""$wx_cv_var_timezone" 1>&6
16209
16210 cat >> confdefs.h <<EOF
360d6699
VZ
16211#define WX_TIMEZONE $wx_cv_var_timezone
16212EOF
16213
698dcdb6
VZ
16214
16215 for ac_func in localtime
afc31813 16216do
698dcdb6 16217echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7b7a7637 16218echo "configure:16219: checking for $ac_func" >&5
698dcdb6
VZ
16219if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16220 echo $ac_n "(cached) $ac_c" 1>&6
16221else
16222 cat > conftest.$ac_ext <<EOF
7b7a7637 16223#line 16224 "configure"
10f2d63a 16224#include "confdefs.h"
afc31813 16225/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16226 which can conflict with char $ac_func(); below. */
afc31813
VZ
16227#include <assert.h>
16228/* Override any gcc2 internal prototype to avoid an error. */
16229/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16230 builtin and then its argument prototype would still apply. */
16231char $ac_func();
16232
16233int main() {
afc31813
VZ
16234
16235/* The GNU C library defines this for functions which it implements
16236 to always fail with ENOSYS. Some functions are actually named
16237 something starting with __ and the normal name is an alias. */
16238#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16239choke me
16240#else
698dcdb6 16241$ac_func();
afc31813
VZ
16242#endif
16243
698dcdb6 16244; return 0; }
10f2d63a 16245EOF
7b7a7637 16246if { (eval echo configure:16247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16247 rm -rf conftest*
16248 eval "ac_cv_func_$ac_func=yes"
16249else
16250 echo "configure: failed program was:" >&5
16251 cat conftest.$ac_ext >&5
16252 rm -rf conftest*
16253 eval "ac_cv_func_$ac_func=no"
16254fi
16255rm -f conftest*
16256fi
afc31813 16257
698dcdb6
VZ
16258if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16259 echo "$ac_t""yes" 1>&6
16260 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16261 cat >> confdefs.h <<EOF
16262#define $ac_tr_func 1
16263EOF
16264
16265else
16266 echo "$ac_t""no" 1>&6
afc31813
VZ
16267fi
16268done
16269
1e487827 16270
698dcdb6
VZ
16271 if test "$ac_cv_func_localtime" = "yes"; then
16272 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
7b7a7637 16273echo "configure:16274: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
16274if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16275 echo $ac_n "(cached) $ac_c" 1>&6
16276else
16277
16278 cat > conftest.$ac_ext <<EOF
7b7a7637 16279#line 16280 "configure"
0470b1e6
VZ
16280#include "confdefs.h"
16281
b4085ce6 16282 #include <time.h>
698dcdb6
VZ
16283
16284int main() {
0470b1e6
VZ
16285
16286 struct tm tm;
16287 tm.tm_gmtoff++;
698dcdb6
VZ
16288
16289; return 0; }
16290EOF
7b7a7637 16291if { (eval echo configure:16292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16292 rm -rf conftest*
16293
f03a98d8 16294 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 16295
0470b1e6 16296else
698dcdb6
VZ
16297 echo "configure: failed program was:" >&5
16298 cat conftest.$ac_ext >&5
16299 rm -rf conftest*
16300 wx_cv_struct_tm_has_gmtoff=no
16301
0470b1e6 16302fi
698dcdb6
VZ
16303rm -f conftest*
16304
1e487827 16305fi
698dcdb6
VZ
16306
16307echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
16308 fi
16309
16310 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 16311 cat >> confdefs.h <<\EOF
6232543b
VS
16312#define WX_GMTOFF_IN_TM 1
16313EOF
0470b1e6 16314
3fcdd07b
VZ
16315 fi
16316
698dcdb6 16317 for ac_func in gettimeofday ftime
3fcdd07b 16318do
698dcdb6 16319echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7b7a7637 16320echo "configure:16321: checking for $ac_func" >&5
698dcdb6
VZ
16321if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16322 echo $ac_n "(cached) $ac_c" 1>&6
16323else
16324 cat > conftest.$ac_ext <<EOF
7b7a7637 16325#line 16326 "configure"
3fcdd07b
VZ
16326#include "confdefs.h"
16327/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16328 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
16329#include <assert.h>
16330/* Override any gcc2 internal prototype to avoid an error. */
16331/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16332 builtin and then its argument prototype would still apply. */
16333char $ac_func();
16334
16335int main() {
3fcdd07b
VZ
16336
16337/* The GNU C library defines this for functions which it implements
16338 to always fail with ENOSYS. Some functions are actually named
16339 something starting with __ and the normal name is an alias. */
16340#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16341choke me
16342#else
698dcdb6 16343$ac_func();
3fcdd07b
VZ
16344#endif
16345
698dcdb6
VZ
16346; return 0; }
16347EOF
7b7a7637 16348if { (eval echo configure:16349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16349 rm -rf conftest*
16350 eval "ac_cv_func_$ac_func=yes"
16351else
16352 echo "configure: failed program was:" >&5
16353 cat conftest.$ac_ext >&5
16354 rm -rf conftest*
16355 eval "ac_cv_func_$ac_func=no"
16356fi
16357rm -f conftest*
16358fi
16359
16360if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16361 echo "$ac_t""yes" 1>&6
16362 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16363 cat >> confdefs.h <<EOF
16364#define $ac_tr_func 1
3fcdd07b
VZ
16365EOF
16366 break
698dcdb6
VZ
16367else
16368 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
16369fi
16370done
16371
afc31813 16372
698dcdb6
VZ
16373 if test "$ac_cv_func_gettimeofday" = "yes"; then
16374 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
7b7a7637 16375echo "configure:16376: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
16376if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16377 echo $ac_n "(cached) $ac_c" 1>&6
16378else
16379
16380
16381 ac_ext=C
16382# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16383ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16384ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16385ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16386cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16387
698dcdb6
VZ
16388
16389 cat > conftest.$ac_ext <<EOF
7b7a7637 16390#line 16391 "configure"
10f2d63a 16391#include "confdefs.h"
afc31813
VZ
16392
16393 #include <sys/time.h>
16394 #include <unistd.h>
698dcdb6
VZ
16395
16396int main() {
afc31813
VZ
16397
16398 struct timeval tv;
776862b4 16399 gettimeofday(&tv, NULL);
698dcdb6
VZ
16400
16401; return 0; }
16402EOF
7b7a7637 16403if { (eval echo configure:16404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16404 rm -rf conftest*
afc31813 16405 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 16406else
698dcdb6
VZ
16407 echo "configure: failed program was:" >&5
16408 cat conftest.$ac_ext >&5
16409 rm -rf conftest*
16410 cat > conftest.$ac_ext <<EOF
7b7a7637 16411#line 16412 "configure"
10f2d63a 16412#include "confdefs.h"
afc31813
VZ
16413
16414 #include <sys/time.h>
16415 #include <unistd.h>
698dcdb6
VZ
16416
16417int main() {
afc31813
VZ
16418
16419 struct timeval tv;
16420 gettimeofday(&tv);
698dcdb6
VZ
16421
16422; return 0; }
16423EOF
7b7a7637 16424if { (eval echo configure:16425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16425 rm -rf conftest*
afc31813 16426 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 16427else
698dcdb6
VZ
16428 echo "configure: failed program was:" >&5
16429 cat conftest.$ac_ext >&5
16430 rm -rf conftest*
776862b4
VZ
16431
16432 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
16433 wx_cv_func_gettimeofday_has_2_args=unknown
16434
698dcdb6 16435
10f2d63a 16436fi
698dcdb6
VZ
16437rm -f conftest*
16438
10f2d63a 16439fi
698dcdb6 16440rm -f conftest*
afc31813 16441 ac_ext=c
698dcdb6 16442# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 16443ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16444ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16445ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16446cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 16447
698dcdb6 16448
afc31813 16449fi
698dcdb6
VZ
16450
16451echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 16452
afc31813 16453 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 16454 cat >> confdefs.h <<\EOF
afc31813
VZ
16455#define WX_GETTIMEOFDAY_NO_TZ 1
16456EOF
16457
16458 fi
16459 fi
16460
698dcdb6 16461 cat >> confdefs.h <<\EOF
afc31813
VZ
16462#define wxUSE_TIMEDATE 1
16463EOF
16464
16465 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16466fi
16467
698dcdb6 16468
b089607b
VZ
16469if test "$TOOLKIT" != "MSW"; then
16470
3a922bb4
RL
16471 if test "$wxUSE_SOCKETS" = "yes"; then
16472 echo $ac_n "checking for socket""... $ac_c" 1>&6
7b7a7637 16473echo "configure:16474: checking for socket" >&5
698dcdb6
VZ
16474if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16475 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16476else
698dcdb6 16477 cat > conftest.$ac_ext <<EOF
7b7a7637 16478#line 16479 "configure"
c63c7106
VZ
16479#include "confdefs.h"
16480/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16481 which can conflict with char socket(); below. */
c63c7106
VZ
16482#include <assert.h>
16483/* Override any gcc2 internal prototype to avoid an error. */
16484/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16485 builtin and then its argument prototype would still apply. */
16486char socket();
16487
16488int main() {
c63c7106
VZ
16489
16490/* The GNU C library defines this for functions which it implements
16491 to always fail with ENOSYS. Some functions are actually named
16492 something starting with __ and the normal name is an alias. */
16493#if defined (__stub_socket) || defined (__stub___socket)
16494choke me
16495#else
698dcdb6 16496socket();
c63c7106
VZ
16497#endif
16498
698dcdb6
VZ
16499; return 0; }
16500EOF
7b7a7637 16501if { (eval echo configure:16502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16502 rm -rf conftest*
16503 eval "ac_cv_func_socket=yes"
16504else
16505 echo "configure: failed program was:" >&5
16506 cat conftest.$ac_ext >&5
16507 rm -rf conftest*
16508 eval "ac_cv_func_socket=no"
16509fi
16510rm -f conftest*
16511fi
16512
16513if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16514 echo "$ac_t""yes" 1>&6
c63c7106
VZ
16515 :
16516else
698dcdb6
VZ
16517 echo "$ac_t""no" 1>&6
16518echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
7b7a7637 16519echo "configure:16520: checking for socket in -lsocket" >&5
698dcdb6
VZ
16520ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16521if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16522 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16523else
698dcdb6 16524 ac_save_LIBS="$LIBS"
c63c7106 16525LIBS="-lsocket $LIBS"
698dcdb6 16526cat > conftest.$ac_ext <<EOF
7b7a7637 16527#line 16528 "configure"
c63c7106
VZ
16528#include "confdefs.h"
16529/* Override any gcc2 internal prototype to avoid an error. */
16530/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16531 builtin and then its argument prototype would still apply. */
16532char socket();
16533
16534int main() {
16535socket()
16536; return 0; }
16537EOF
7b7a7637 16538if { (eval echo configure:16539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16539 rm -rf conftest*
16540 eval "ac_cv_lib_$ac_lib_var=yes"
16541else
16542 echo "configure: failed program was:" >&5
16543 cat conftest.$ac_ext >&5
16544 rm -rf conftest*
16545 eval "ac_cv_lib_$ac_lib_var=no"
16546fi
16547rm -f conftest*
16548LIBS="$ac_save_LIBS"
16549
16550fi
16551if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16552 echo "$ac_t""yes" 1>&6
c63c7106 16553 INET_LINK="$INET_LINK -lsocket"
c63c7106 16554else
698dcdb6 16555 echo "$ac_t""no" 1>&6
afc31813 16556
3a922bb4
RL
16557 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
16558 wxUSE_SOCKETS=no
16559
698dcdb6 16560
6232543b 16561fi
b089607b 16562
3a922bb4 16563
1e487827 16564fi
afc31813 16565
3a922bb4 16566 fi
51a9faba 16567
3a922bb4
RL
16568
16569 if test "$wxUSE_SOCKETS" = "yes" ; then
16570 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
7b7a7637 16571echo "configure:16572: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
16572if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16573 echo $ac_n "(cached) $ac_c" 1>&6
16574else
16575
3a922bb4
RL
16576
16577 ac_ext=C
698dcdb6 16578# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16579ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16580ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16581ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16582cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16583
698dcdb6 16584
3a922bb4 16585 cat > conftest.$ac_ext <<EOF
7b7a7637 16586#line 16587 "configure"
afc31813 16587#include "confdefs.h"
51a9faba 16588
3a922bb4
RL
16589 #include <sys/types.h>
16590 #include <sys/socket.h>
16591
698dcdb6 16592int main() {
51a9faba 16593
3a922bb4
RL
16594 socklen_t len;
16595 getsockname(0, 0, &len);
16596
698dcdb6
VZ
16597; return 0; }
16598EOF
7b7a7637 16599if { (eval echo configure:16600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16600 rm -rf conftest*
51a9faba 16601 wx_cv_type_getsockname3=socklen_t
afc31813 16602else
698dcdb6
VZ
16603 echo "configure: failed program was:" >&5
16604 cat conftest.$ac_ext >&5
16605 rm -rf conftest*
16606 cat > conftest.$ac_ext <<EOF
7b7a7637 16607#line 16608 "configure"
afc31813 16608#include "confdefs.h"
51a9faba 16609
3a922bb4
RL
16610 #include <sys/types.h>
16611 #include <sys/socket.h>
16612
698dcdb6 16613int main() {
51a9faba 16614
3a922bb4
RL
16615 size_t len;
16616 getsockname(0, 0, &len);
16617
698dcdb6
VZ
16618; return 0; }
16619EOF
7b7a7637 16620if { (eval echo configure:16621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16621 rm -rf conftest*
51a9faba 16622 wx_cv_type_getsockname3=size_t
afc31813 16623else
698dcdb6
VZ
16624 echo "configure: failed program was:" >&5
16625 cat conftest.$ac_ext >&5
16626 rm -rf conftest*
16627 cat > conftest.$ac_ext <<EOF
7b7a7637 16628#line 16629 "configure"
afc31813 16629#include "confdefs.h"
51a9faba 16630
3a922bb4
RL
16631 #include <sys/types.h>
16632 #include <sys/socket.h>
16633
698dcdb6 16634int main() {
51a9faba 16635
3a922bb4
RL
16636 int len;
16637 getsockname(0, 0, &len);
16638
698dcdb6
VZ
16639; return 0; }
16640EOF
7b7a7637 16641if { (eval echo configure:16642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16642 rm -rf conftest*
51a9faba 16643 wx_cv_type_getsockname3=int
afc31813 16644else
698dcdb6
VZ
16645 echo "configure: failed program was:" >&5
16646 cat conftest.$ac_ext >&5
16647 rm -rf conftest*
16648 wx_cv_type_getsockname3=unknown
3a922bb4 16649
afc31813 16650fi
698dcdb6 16651rm -f conftest*
3a922bb4 16652
afc31813 16653fi
698dcdb6 16654rm -f conftest*
3a922bb4 16655
afc31813 16656fi
698dcdb6 16657rm -f conftest*
51a9faba 16658
3a922bb4 16659 ac_ext=c
698dcdb6 16660# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 16661ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16662ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16663ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16664cross_compiling=$ac_cv_prog_cc_cross
afc31813 16665
3a922bb4 16666
51a9faba 16667fi
698dcdb6
VZ
16668
16669echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 16670
3a922bb4
RL
16671 if test "$wx_cv_type_getsockname3" = "unknown"; then
16672 wxUSE_SOCKETS=no
16673 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
16674 else
16675 cat >> confdefs.h <<EOF
51a9faba
VZ
16676#define SOCKLEN_T $wx_cv_type_getsockname3
16677EOF
16678
3a922bb4 16679 fi
51a9faba
VZ
16680 fi
16681fi
afc31813 16682
51a9faba 16683if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 16684 cat >> confdefs.h <<\EOF
afc31813
VZ
16685#define wxUSE_SOCKETS 1
16686EOF
16687
70f7a477 16688 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
16689fi
16690
698dcdb6 16691
dc3d889d
VZ
16692if test "$wxUSE_GUI" = "yes"; then
16693
3a922bb4
RL
16694 if test "$TOOLKIT" != "MSW"; then
16695 if test "$wxUSE_JOYSTICK" = "yes"; then
16696 for ac_hdr in linux/joystick.h
10f2d63a 16697do
698dcdb6
VZ
16698ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16699echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7b7a7637 16700echo "configure:16701: checking for $ac_hdr" >&5
698dcdb6
VZ
16701if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16702 echo $ac_n "(cached) $ac_c" 1>&6
16703else
16704 cat > conftest.$ac_ext <<EOF
7b7a7637 16705#line 16706 "configure"
10f2d63a 16706#include "confdefs.h"
698dcdb6
VZ
16707#include <$ac_hdr>
16708EOF
16709ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7b7a7637 16710{ (eval echo configure:16711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
16711ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16712if test -z "$ac_err"; then
16713 rm -rf conftest*
16714 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 16715else
698dcdb6
VZ
16716 echo "$ac_err" >&5
16717 echo "configure: failed program was:" >&5
10f2d63a 16718 cat conftest.$ac_ext >&5
698dcdb6
VZ
16719 rm -rf conftest*
16720 eval "ac_cv_header_$ac_safe=no"
10f2d63a 16721fi
698dcdb6 16722rm -f conftest*
10f2d63a 16723fi
698dcdb6
VZ
16724if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16725 echo "$ac_t""yes" 1>&6
16726 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16727 cat >> confdefs.h <<EOF
16728#define $ac_tr_hdr 1
10f2d63a 16729EOF
698dcdb6
VZ
16730
16731else
16732 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16733fi
16734done
16735
3a922bb4
RL
16736 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
16737 wxUSE_JOYSTICK=no
16738 echo "configure: warning: Joystick not supported by this system" 1>&2
16739 fi
16740 fi
16741 fi
b089607b 16742
3a922bb4
RL
16743 if test "$wxUSE_JOYSTICK" = "yes"; then
16744 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16745#define wxUSE_JOYSTICK 1
16746EOF
16747
3a922bb4
RL
16748 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
16749 fi
dc3d889d
VZ
16750fi
16751
698dcdb6 16752
b089607b
VZ
16753if test "$TOOLKIT" != "MSW"; then
16754
3a922bb4
RL
16755 HAVE_DL_FUNCS=0
16756 HAVE_SHL_FUNCS=0
16757 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
16758 if test "$USE_DARWIN" = 1; then
16759 HAVE_DL_FUNCS=1
16760 else
16761 for ac_func in dlopen
10f2d63a 16762do
698dcdb6 16763echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7b7a7637 16764echo "configure:16765: checking for $ac_func" >&5
698dcdb6
VZ
16765if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16766 echo $ac_n "(cached) $ac_c" 1>&6
16767else
16768 cat > conftest.$ac_ext <<EOF
7b7a7637 16769#line 16770 "configure"
10f2d63a
VZ
16770#include "confdefs.h"
16771/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16772 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16773#include <assert.h>
16774/* Override any gcc2 internal prototype to avoid an error. */
16775/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16776 builtin and then its argument prototype would still apply. */
16777char $ac_func();
16778
16779int main() {
10f2d63a
VZ
16780
16781/* The GNU C library defines this for functions which it implements
16782 to always fail with ENOSYS. Some functions are actually named
16783 something starting with __ and the normal name is an alias. */
16784#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16785choke me
16786#else
698dcdb6 16787$ac_func();
10f2d63a
VZ
16788#endif
16789
698dcdb6
VZ
16790; return 0; }
16791EOF
7b7a7637 16792if { (eval echo configure:16793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16793 rm -rf conftest*
16794 eval "ac_cv_func_$ac_func=yes"
16795else
16796 echo "configure: failed program was:" >&5
16797 cat conftest.$ac_ext >&5
16798 rm -rf conftest*
16799 eval "ac_cv_func_$ac_func=no"
16800fi
16801rm -f conftest*
16802fi
16803
16804if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16805 echo "$ac_t""yes" 1>&6
16806 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16807 cat >> confdefs.h <<EOF
16808#define $ac_tr_func 1
16809EOF
16810
3a922bb4 16811 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16812#define HAVE_DLOPEN 1
16813EOF
16814
3a922bb4
RL
16815 HAVE_DL_FUNCS=1
16816
10f2d63a 16817else
698dcdb6
VZ
16818 echo "$ac_t""no" 1>&6
16819echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
7b7a7637 16820echo "configure:16821: checking for dlopen in -ldl" >&5
698dcdb6
VZ
16821ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16822if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16823 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16824else
698dcdb6 16825 ac_save_LIBS="$LIBS"
10f2d63a 16826LIBS="-ldl $LIBS"
698dcdb6 16827cat > conftest.$ac_ext <<EOF
7b7a7637 16828#line 16829 "configure"
10f2d63a
VZ
16829#include "confdefs.h"
16830/* Override any gcc2 internal prototype to avoid an error. */
16831/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16832 builtin and then its argument prototype would still apply. */
16833char dlopen();
16834
16835int main() {
16836dlopen()
16837; return 0; }
16838EOF
7b7a7637 16839if { (eval echo configure:16840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16840 rm -rf conftest*
16841 eval "ac_cv_lib_$ac_lib_var=yes"
16842else
16843 echo "configure: failed program was:" >&5
16844 cat conftest.$ac_ext >&5
16845 rm -rf conftest*
16846 eval "ac_cv_lib_$ac_lib_var=no"
16847fi
16848rm -f conftest*
16849LIBS="$ac_save_LIBS"
16850
16851fi
16852if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16853 echo "$ac_t""yes" 1>&6
16854
3a922bb4 16855 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16856#define HAVE_DLOPEN 1
16857EOF
16858
3a922bb4
RL
16859 HAVE_DL_FUNCS=1
16860 LIBS="$LIBS -ldl"
16861
10f2d63a 16862else
698dcdb6 16863 echo "$ac_t""no" 1>&6
10f2d63a 16864
3a922bb4 16865 for ac_func in shl_load
10f2d63a 16866do
698dcdb6 16867echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7b7a7637 16868echo "configure:16869: checking for $ac_func" >&5
698dcdb6
VZ
16869if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16870 echo $ac_n "(cached) $ac_c" 1>&6
16871else
16872 cat > conftest.$ac_ext <<EOF
7b7a7637 16873#line 16874 "configure"
10f2d63a
VZ
16874#include "confdefs.h"
16875/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16876 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16877#include <assert.h>
16878/* Override any gcc2 internal prototype to avoid an error. */
16879/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16880 builtin and then its argument prototype would still apply. */
16881char $ac_func();
16882
16883int main() {
10f2d63a
VZ
16884
16885/* The GNU C library defines this for functions which it implements
16886 to always fail with ENOSYS. Some functions are actually named
16887 something starting with __ and the normal name is an alias. */
16888#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16889choke me
16890#else
698dcdb6 16891$ac_func();
10f2d63a
VZ
16892#endif
16893
698dcdb6
VZ
16894; return 0; }
16895EOF
7b7a7637 16896if { (eval echo configure:16897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16897 rm -rf conftest*
16898 eval "ac_cv_func_$ac_func=yes"
16899else
16900 echo "configure: failed program was:" >&5
16901 cat conftest.$ac_ext >&5
16902 rm -rf conftest*
16903 eval "ac_cv_func_$ac_func=no"
16904fi
16905rm -f conftest*
16906fi
16907
16908if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16909 echo "$ac_t""yes" 1>&6
16910 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16911 cat >> confdefs.h <<EOF
16912#define $ac_tr_func 1
16913EOF
16914
3a922bb4 16915 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16916#define HAVE_SHL_LOAD 1
16917EOF
16918
3a922bb4
RL
16919 HAVE_SHL_FUNCS=1
16920
10f2d63a 16921else
698dcdb6
VZ
16922 echo "$ac_t""no" 1>&6
16923echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
7b7a7637 16924echo "configure:16925: checking for dld in -lshl_load" >&5
698dcdb6
VZ
16925ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16926if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16927 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16928else
698dcdb6 16929 ac_save_LIBS="$LIBS"
f6bcfd97 16930LIBS="-lshl_load $LIBS"
698dcdb6 16931cat > conftest.$ac_ext <<EOF
7b7a7637 16932#line 16933 "configure"
f6bcfd97
BP
16933#include "confdefs.h"
16934/* Override any gcc2 internal prototype to avoid an error. */
16935/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16936 builtin and then its argument prototype would still apply. */
16937char dld();
16938
16939int main() {
16940dld()
16941; return 0; }
16942EOF
7b7a7637 16943if { (eval echo configure:16944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16944 rm -rf conftest*
16945 eval "ac_cv_lib_$ac_lib_var=yes"
16946else
16947 echo "configure: failed program was:" >&5
16948 cat conftest.$ac_ext >&5
16949 rm -rf conftest*
16950 eval "ac_cv_lib_$ac_lib_var=no"
16951fi
16952rm -f conftest*
16953LIBS="$ac_save_LIBS"
f6bcfd97 16954
698dcdb6
VZ
16955fi
16956if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16957 echo "$ac_t""yes" 1>&6
16958
3a922bb4
RL
16959 HAVE_SHL_FUNCS=1
16960 LIBS="$LIBS -ldld"
16961
698dcdb6
VZ
16962else
16963 echo "$ac_t""no" 1>&6
f6bcfd97
BP
16964fi
16965
3a922bb4 16966
10f2d63a
VZ
16967fi
16968done
16969
3a922bb4 16970
10f2d63a
VZ
16971fi
16972
3a922bb4 16973
10f2d63a
VZ
16974fi
16975done
16976
1e487827 16977
3a922bb4
RL
16978 if test "$HAVE_DL_FUNCS" = 1; then
16979 for ac_func in dlerror
f6bcfd97 16980do
698dcdb6 16981echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7b7a7637 16982echo "configure:16983: checking for $ac_func" >&5
698dcdb6
VZ
16983if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16984 echo $ac_n "(cached) $ac_c" 1>&6
16985else
16986 cat > conftest.$ac_ext <<EOF
7b7a7637 16987#line 16988 "configure"
f6bcfd97
BP
16988#include "confdefs.h"
16989/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16990 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
16991#include <assert.h>
16992/* Override any gcc2 internal prototype to avoid an error. */
16993/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16994 builtin and then its argument prototype would still apply. */
16995char $ac_func();
16996
16997int main() {
f6bcfd97
BP
16998
16999/* The GNU C library defines this for functions which it implements
17000 to always fail with ENOSYS. Some functions are actually named
17001 something starting with __ and the normal name is an alias. */
17002#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17003choke me
17004#else
698dcdb6 17005$ac_func();
f6bcfd97
BP
17006#endif
17007
698dcdb6
VZ
17008; return 0; }
17009EOF
7b7a7637 17010if { (eval echo configure:17011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17011 rm -rf conftest*
17012 eval "ac_cv_func_$ac_func=yes"
17013else
17014 echo "configure: failed program was:" >&5
17015 cat conftest.$ac_ext >&5
17016 rm -rf conftest*
17017 eval "ac_cv_func_$ac_func=no"
17018fi
17019rm -f conftest*
17020fi
17021
17022if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17023 echo "$ac_t""yes" 1>&6
17024 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17025 cat >> confdefs.h <<EOF
17026#define $ac_tr_func 1
17027EOF
17028 cat >> confdefs.h <<\EOF
f6bcfd97
BP
17029#define HAVE_DLERROR 1
17030EOF
17031
17032else
698dcdb6
VZ
17033 echo "$ac_t""no" 1>&6
17034echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
7b7a7637 17035echo "configure:17036: checking for dlerror in -ldl" >&5
698dcdb6
VZ
17036ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
17037if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17038 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 17039else
698dcdb6 17040 ac_save_LIBS="$LIBS"
f6bcfd97 17041LIBS="-ldl $LIBS"
698dcdb6 17042cat > conftest.$ac_ext <<EOF
7b7a7637 17043#line 17044 "configure"
f6bcfd97
BP
17044#include "confdefs.h"
17045/* Override any gcc2 internal prototype to avoid an error. */
17046/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17047 builtin and then its argument prototype would still apply. */
17048char dlerror();
17049
17050int main() {
17051dlerror()
17052; return 0; }
17053EOF
7b7a7637 17054if { (eval echo configure:17055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17055 rm -rf conftest*
17056 eval "ac_cv_lib_$ac_lib_var=yes"
17057else
17058 echo "configure: failed program was:" >&5
17059 cat conftest.$ac_ext >&5
17060 rm -rf conftest*
17061 eval "ac_cv_lib_$ac_lib_var=no"
17062fi
17063rm -f conftest*
17064LIBS="$ac_save_LIBS"
17065
17066fi
17067if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17068 echo "$ac_t""yes" 1>&6
17069 cat >> confdefs.h <<\EOF
f6bcfd97
BP
17070#define HAVE_DLERROR 1
17071EOF
17072
698dcdb6
VZ
17073else
17074 echo "$ac_t""no" 1>&6
f6bcfd97
BP
17075fi
17076
17077fi
17078done
17079
3a922bb4
RL
17080 fi
17081 fi
f6bcfd97 17082
3a922bb4
RL
17083 if test "$HAVE_DL_FUNCS" = 0; then
17084 if test "$HAVE_SHL_FUNCS" = 0; then
17085 if test "$USE_UNIX" = 1; then
17086 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
17087 wxUSE_DYNLIB_CLASS=no
17088 else
17089 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
17090 fi
17091 fi
10f2d63a
VZ
17092 fi
17093 fi
17094fi
17095
17096if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 17097 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17098#define wxUSE_DYNLIB_CLASS 1
17099EOF
17100
b12915c1
VZ
17101else
17102 wxUSE_ODBC=no
17103 wxUSE_SERIAL=no
10f2d63a
VZ
17104fi
17105
698dcdb6 17106
1e6feb95
VZ
17107if test "$wxUSE_FONTMAP" = "yes" ; then
17108 cat >> confdefs.h <<\EOF
17109#define wxUSE_FONTMAP 1
17110EOF
17111
17112fi
17113
10f2d63a 17114if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 17115 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17116#define wxUSE_UNICODE 1
17117EOF
17118
17119fi
17120
10f2d63a 17121if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 17122 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17123#define wxUSE_EXPERIMENTAL_PRINTF 1
17124EOF
17125
17126fi
17127
698dcdb6 17128
b12915c1 17129if test "$wxUSE_SERIAL" = "yes" ; then
698dcdb6 17130 cat >> confdefs.h <<\EOF
b12915c1
VZ
17131#define wxUSE_SERIAL 1
17132EOF
17133
17134fi
17135
698dcdb6 17136
10f2d63a
VZ
17137IODBC_C_SRC=""
17138if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 17139 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17140#define wxUSE_ODBC 1
17141EOF
17142
17143 WXODBCFLAG="-D_IODBC_"
17144 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
17145fi
17146
698dcdb6 17147
10f2d63a 17148if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 17149 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17150#define wxUSE_POSTSCRIPT 1
17151EOF
17152
17153fi
17154
698dcdb6 17155cat >> confdefs.h <<\EOF
10f2d63a
VZ
17156#define wxUSE_AFM_FOR_POSTSCRIPT 1
17157EOF
17158
698dcdb6
VZ
17159
17160cat >> confdefs.h <<\EOF
10f2d63a
VZ
17161#define wxUSE_NORMALIZED_PS_FONTS 1
17162EOF
17163
698dcdb6
VZ
17164
17165
10f2d63a 17166if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 17167 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17168#define wxUSE_CONSTRAINTS 1
17169EOF
17170
17171 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
17172fi
17173
17174if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
698dcdb6 17175 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17176#define wxUSE_MDI_ARCHITECTURE 1
17177EOF
17178
17179 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
17180fi
17181
17182if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 17183 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17184#define wxUSE_DOC_VIEW_ARCHITECTURE 1
17185EOF
17186
17187 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
17188 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17189 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
17190 fi
17191fi
17192
17193if test "$wxUSE_HELP" = "yes"; then
698dcdb6 17194 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17195#define wxUSE_HELP 1
17196EOF
17197
17198 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 17199
3e44f09d 17200 if test "$USE_WIN32" = 1; then
031d8228 17201 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
29fd3c0c
VS
17202 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
17203echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
7b7a7637 17204echo "configure:17205: checking for htmlhelp.h" >&5
29fd3c0c
VS
17205if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17206 echo $ac_n "(cached) $ac_c" 1>&6
17207else
17208 cat > conftest.$ac_ext <<EOF
7b7a7637 17209#line 17210 "configure"
29fd3c0c
VS
17210#include "confdefs.h"
17211#include <htmlhelp.h>
17212EOF
17213ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7b7a7637 17214{ (eval echo configure:17215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
17215ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17216if test -z "$ac_err"; then
17217 rm -rf conftest*
17218 eval "ac_cv_header_$ac_safe=yes"
17219else
17220 echo "$ac_err" >&5
17221 echo "configure: failed program was:" >&5
17222 cat conftest.$ac_ext >&5
17223 rm -rf conftest*
17224 eval "ac_cv_header_$ac_safe=no"
17225fi
17226rm -f conftest*
17227fi
17228if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17229 echo "$ac_t""yes" 1>&6
17230
17231 cat >> confdefs.h <<\EOF
17232#define wxUSE_MS_HTML_HELP 1
17233EOF
17234
17235
17236else
17237 echo "$ac_t""no" 1>&6
17238
2b9bdf71 17239 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h, disabled" 1>&2
29fd3c0c
VS
17240 wxUSE_MS_HTML_HELP=no
17241
17242fi
17243
3e44f09d 17244 fi
3379ed37 17245 fi
031d8228
VS
17246
17247 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17248 if test "$wxUSE_HTML" = "yes"; then
17249 cat >> confdefs.h <<\EOF
17250#define wxUSE_WXHTML_HELP 1
17251EOF
17252
17253 else
17254 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17255 wxUSE_WXHTML_HELP=no
17256 fi
17257 fi
10f2d63a
VZ
17258fi
17259
17260if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17261 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 17262 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 17263 else
698dcdb6 17264 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17265#define wxUSE_PRINTING_ARCHITECTURE 1
17266EOF
17267
17268 fi
17269 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17270fi
17271
17272if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 17273 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17274#define wxUSE_PROLOGIO 1
17275EOF
17276
17277fi
17278
17279if test "$wxUSE_RESOURCES" = "yes" ; then
3379ed37 17280 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17281#define wxUSE_RESOURCES 1
17282EOF
17283
3379ed37 17284 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
10f2d63a
VZ
17285fi
17286
17287if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 17288 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17289#define wxUSE_X_RESOURCES 1
17290EOF
17291
17292fi
17293
698dcdb6 17294
3a922bb4
RL
17295if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
17296 -o "$wxUSE_CLIPBOARD" = "yes" \
17297 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
2b9bdf71 17298 for ac_hdr in ole2.h
10f2d63a 17299do
698dcdb6
VZ
17300ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17301echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7b7a7637 17302echo "configure:17303: checking for $ac_hdr" >&5
698dcdb6
VZ
17303if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17304 echo $ac_n "(cached) $ac_c" 1>&6
17305else
17306 cat > conftest.$ac_ext <<EOF
7b7a7637 17307#line 17308 "configure"
10f2d63a 17308#include "confdefs.h"
698dcdb6
VZ
17309#include <$ac_hdr>
17310EOF
17311ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7b7a7637 17312{ (eval echo configure:17313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
17313ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17314if test -z "$ac_err"; then
17315 rm -rf conftest*
17316 eval "ac_cv_header_$ac_safe=yes"
1e487827 17317else
698dcdb6
VZ
17318 echo "$ac_err" >&5
17319 echo "configure: failed program was:" >&5
10f2d63a 17320 cat conftest.$ac_ext >&5
698dcdb6
VZ
17321 rm -rf conftest*
17322 eval "ac_cv_header_$ac_safe=no"
10f2d63a 17323fi
698dcdb6 17324rm -f conftest*
10f2d63a 17325fi
698dcdb6
VZ
17326if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17327 echo "$ac_t""yes" 1>&6
17328 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17329 cat >> confdefs.h <<EOF
17330#define $ac_tr_hdr 1
10f2d63a 17331EOF
698dcdb6
VZ
17332
17333else
17334 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17335fi
17336done
17337
698dcdb6 17338
2b9bdf71
VZ
17339 if test "$ac_cv_header_ole2_h" = "yes" ; then
17340 if test "$GCC" = yes ; then
17341 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
2b9bdf71
VZ
17342 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
17343 LIBS="$LIBS -lrpcrt4 -loleaut32 -lole32 -luuid"
17344 cat >> confdefs.h <<\EOF
4f11a343
VS
17345#define wxUSE_OLE 1
17346EOF
17347
b64f0a5f 17348
2b9bdf71
VZ
17349 fi
17350
17351 cat >> confdefs.h <<\EOF
17352#define wxUSE_DATAOBJ 1
17353EOF
17354
17355 else
17356 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
17357
17358 wxUSE_CLIPBOARD=no
17359 wxUSE_DRAG_AND_DROP=no
17360 wxUSE_DATAOBJ=no
17361 fi
17362
17363 if test "$wxUSE_METAFILE" = "yes"; then
17364 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17365#define wxUSE_METAFILE 1
17366EOF
17367
2b9bdf71
VZ
17368
17369 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17370#define wxUSE_ENH_METAFILE 1
17371EOF
17372
2b9bdf71
VZ
17373 fi
17374fi
17375
17376if test "$wxUSE_IPC" = "yes"; then
17377 if test "$wxUSE_SOCKETS" != "yes"; then
17378 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
17379 fi
17380
17381 cat >> confdefs.h <<\EOF
17382#define wxUSE_IPC 1
17383EOF
17384
17385fi
17386
17387if test "$wxUSE_CLIPBOARD" = "yes"; then
17388 cat >> confdefs.h <<\EOF
17389#define wxUSE_CLIPBOARD 1
17390EOF
17391
673f4220 17392
e33ef661 17393 cat >> confdefs.h <<\EOF
673f4220
VZ
17394#define wxUSE_DATAOBJ 1
17395EOF
17396
2b9bdf71
VZ
17397fi
17398
17399if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17400 if test "$wxUSE_GTK" = 1; then
17401 if test "$WXGTK12" != 1; then
17402 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
10f2d63a
VZ
17403 wxUSE_DRAG_AND_DROP=no
17404 fi
17405 fi
17406
2b9bdf71
VZ
17407 if test "$wxUSE_MOTIF" = 1; then
17408 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
17409 wxUSE_DRAG_AND_DROP=no
17410 fi
17411
17412 if test "$wxUSE_MAC" = 1; then
17413 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
17414 wxUSE_DRAG_AND_DROP=no
17415 fi
17416
10f2d63a 17417 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 17418 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17419#define wxUSE_DRAG_AND_DROP 1
17420EOF
17421
17422 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17423 fi
17424
17425fi
17426
17427if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 17428 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17429#define wxUSE_SPLINES 1
17430EOF
17431
17432fi
17433
698dcdb6 17434
1e6feb95
VZ
17435USES_CONTROLS=0
17436if test "$wxUSE_CONTROLS" = "yes"; then
17437 USES_CONTROLS=1
17438fi
17439
10f2d63a 17440if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 17441 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17442#define wxUSE_ACCEL 1
17443EOF
17444
1e6feb95
VZ
17445 USES_CONTROLS=1
17446fi
17447
17448if test "$wxUSE_BUTTON" = "yes"; then
17449 cat >> confdefs.h <<\EOF
17450#define wxUSE_BUTTON 1
17451EOF
17452
17453 USES_CONTROLS=1
17454fi
17455
17456if test "$wxUSE_BMPBUTTON" = "yes"; then
17457 cat >> confdefs.h <<\EOF
17458#define wxUSE_BMPBUTTON 1
17459EOF
17460
17461 USES_CONTROLS=1
17462fi
17463
17464if test "$wxUSE_CALCTRL" = "yes"; then
17465 cat >> confdefs.h <<\EOF
17466#define wxUSE_CALENDARCTRL 1
17467EOF
17468
17469 USES_CONTROLS=1
17470 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
17471fi
17472
17473if test "$wxUSE_CARET" = "yes"; then
698dcdb6 17474 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17475#define wxUSE_CARET 1
17476EOF
17477
1e6feb95 17478 USES_CONTROLS=1
10f2d63a
VZ
17479 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17480fi
17481
17482if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 17483 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17484#define wxUSE_COMBOBOX 1
17485EOF
17486
1e6feb95 17487 USES_CONTROLS=1
10f2d63a
VZ
17488fi
17489
17490if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 17491 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17492#define wxUSE_CHOICE 1
17493EOF
17494
1e6feb95 17495 USES_CONTROLS=1
10f2d63a
VZ
17496fi
17497
17498if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 17499 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17500#define wxUSE_CHECKBOX 1
17501EOF
17502
1e6feb95 17503 USES_CONTROLS=1
10f2d63a
VZ
17504fi
17505
17506if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 17507 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17508#define wxUSE_CHECKLISTBOX 1
17509EOF
17510
1e6feb95 17511 USES_CONTROLS=1
10f2d63a
VZ
17512 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17513fi
17514
17515if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 17516 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17517#define wxUSE_GAUGE 1
17518EOF
17519
1e6feb95 17520 USES_CONTROLS=1
10f2d63a
VZ
17521fi
17522
d6a55c4b
VZ
17523if test "$wxUSE_NEW_GRID" = "yes"; then
17524 wxUSE_GRID="yes"
698dcdb6 17525 cat >> confdefs.h <<\EOF
d6a55c4b 17526#define wxUSE_NEW_GRID 1
10f2d63a
VZ
17527EOF
17528
1e6feb95 17529 USES_CONTROLS=1
d6a55c4b 17530 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
17531fi
17532
d6a55c4b 17533if test "$wxUSE_GRID" = "yes"; then
698dcdb6 17534 cat >> confdefs.h <<\EOF
d6a55c4b 17535#define wxUSE_GRID 1
10f2d63a
VZ
17536EOF
17537
1e6feb95 17538 USES_CONTROLS=1
d6a55c4b 17539 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
17540fi
17541
17542if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17543 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17544#define wxUSE_IMAGLIST 1
17545EOF
17546
17547fi
17548
17549if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 17550 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17551#define wxUSE_LISTBOX 1
17552EOF
17553
1e6feb95 17554 USES_CONTROLS=1
10f2d63a
VZ
17555fi
17556
17557if test "$wxUSE_LISTCTRL" = "yes"; then
17558 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17559 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17560#define wxUSE_LISTCTRL 1
17561EOF
17562
1e6feb95 17563 USES_CONTROLS=1
10f2d63a
VZ
17564 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17565 else
698dcdb6 17566 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17567 fi
17568fi
17569
17570if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 17571 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17572#define wxUSE_NOTEBOOK 1
17573EOF
17574
1e6feb95 17575 USES_CONTROLS=1
10f2d63a
VZ
17576 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17577fi
17578
24176f2c
GD
17579if test "$wxUSE_PROPSHEET" = "yes"; then
17580 cat >> confdefs.h <<\EOF
17581#define wxUSE_PROPSHEET 1
17582EOF
17583
17584 USES_CONTROLS=1
17585 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
17586fi
17587
10f2d63a 17588if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 17589 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17590#define wxUSE_RADIOBOX 1
17591EOF
17592
1e6feb95 17593 USES_CONTROLS=1
10f2d63a
VZ
17594fi
17595
17596if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 17597 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17598#define wxUSE_RADIOBTN 1
17599EOF
17600
1e6feb95 17601 USES_CONTROLS=1
10f2d63a
VZ
17602fi
17603
17604if test "$wxUSE_SASH" = "yes"; then
698dcdb6 17605 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17606#define wxUSE_SASH 1
17607EOF
17608
17609 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17610fi
17611
17612if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 17613 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17614#define wxUSE_SCROLLBAR 1
17615EOF
17616
1e6feb95 17617 USES_CONTROLS=1
741a9306 17618 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
17619fi
17620
17621if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 17622 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17623#define wxUSE_SLIDER 1
17624EOF
17625
1e6feb95 17626 USES_CONTROLS=1
10f2d63a
VZ
17627fi
17628
17629if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 17630 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17631#define wxUSE_SPINBTN 1
17632EOF
17633
1e6feb95 17634 USES_CONTROLS=1
10f2d63a
VZ
17635fi
17636
56cfaa52 17637if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 17638 cat >> confdefs.h <<\EOF
56cfaa52
RR
17639#define wxUSE_SPINCTRL 1
17640EOF
17641
1e6feb95 17642 USES_CONTROLS=1
56cfaa52
RR
17643fi
17644
10f2d63a 17645if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 17646 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17647#define wxUSE_SPLITTER 1
17648EOF
17649
17650 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17651fi
17652
17653if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 17654 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17655#define wxUSE_STATBMP 1
17656EOF
17657
1e6feb95 17658 USES_CONTROLS=1
10f2d63a
VZ
17659fi
17660
17661if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 17662 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17663#define wxUSE_STATBOX 1
17664EOF
17665
1e6feb95
VZ
17666 USES_CONTROLS=1
17667fi
17668
17669if test "$wxUSE_STATTEXT" = "yes"; then
17670 cat >> confdefs.h <<\EOF
17671#define wxUSE_STATTEXT 1
17672EOF
17673
17674 USES_CONTROLS=1
10f2d63a
VZ
17675fi
17676
17677if test "$wxUSE_STATLINE" = "yes"; then
17678 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 17679 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 17680 else
698dcdb6 17681 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17682#define wxUSE_STATLINE 1
17683EOF
17684
1e6feb95 17685 USES_CONTROLS=1
10f2d63a
VZ
17686 fi
17687fi
17688
17689if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 17690 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17691#define wxUSE_STATUSBAR 1
17692EOF
17693
1e6feb95 17694 USES_CONTROLS=1
698dcdb6 17695
2286341c 17696 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
17697fi
17698
17699if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 17700 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17701#define wxUSE_TAB_DIALOG 1
17702EOF
17703
17704 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17705fi
17706
1e6feb95
VZ
17707if test "$wxUSE_TEXTCTRL" = "yes"; then
17708 cat >> confdefs.h <<\EOF
17709#define wxUSE_TEXTCTRL 1
17710EOF
17711
17712 USES_CONTROLS=1
17713 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17714fi
17715
1db8dc4a 17716if test "$wxUSE_TOGGLEBTN" = "yes"; then
a45d7ab7
GD
17717 if test "$wxUSE_MAC" = 1; then
17718 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
17719 wxUSE_TOGGLEBTN=no
17720 fi
17721
17722 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17723 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
17724#define wxUSE_TOGGLEBTN 1
17725EOF
17726
1e6feb95 17727 USES_CONTROLS=1
a45d7ab7 17728 fi
1db8dc4a
VZ
17729fi
17730
360d6699 17731if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 17732 cat >> confdefs.h <<\EOF
360d6699
VZ
17733#define wxUSE_TOOLBAR_SIMPLE 1
17734EOF
17735
17736 wxUSE_TOOLBAR="yes"
1e6feb95 17737 USES_CONTROLS=1
360d6699
VZ
17738fi
17739
10f2d63a 17740if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 17741 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17742#define wxUSE_TOOLBAR 1
17743EOF
17744
1e6feb95 17745 USES_CONTROLS=1
698dcdb6 17746
360d6699
VZ
17747 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17748 wxUSE_TOOLBAR_NATIVE="yes"
17749 fi
17750
1e6feb95
VZ
17751 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17752 cat >> confdefs.h <<\EOF
360d6699
VZ
17753#define wxUSE_TOOLBAR_NATIVE 1
17754EOF
17755
1e6feb95
VZ
17756 USES_CONTROLS=1
17757 fi
17758
17759 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
17760fi
17761
10f2d63a
VZ
17762if test "$wxUSE_TOOLTIPS" = "yes"; then
17763 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 17764 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
10f2d63a
VZ
17765 else
17766 if test "$wxUSE_WINE" = 1; then
698dcdb6 17767 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
10f2d63a 17768 else
698dcdb6 17769 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17770#define wxUSE_TOOLTIPS 1
17771EOF
17772
17773 fi
17774 fi
17775fi
17776
17777if test "$wxUSE_TREECTRL" = "yes"; then
17778 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17779 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17780#define wxUSE_TREECTRL 1
17781EOF
17782
1e6feb95 17783 USES_CONTROLS=1
10f2d63a
VZ
17784 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17785 else
698dcdb6 17786 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17787 fi
17788fi
17789
9f41d601 17790if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65
GD
17791 if test "$wxUSE_MAC" = 1; then
17792 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
17793 else
17794 cat >> confdefs.h <<\EOF
9f41d601
RR
17795#define wxUSE_POPUPWIN 1
17796EOF
17797
6abe4b65
GD
17798 USES_CONTROLS=1
17799 fi
9f41d601
RR
17800fi
17801
1e6feb95
VZ
17802if test "$USES_CONTROLS" = 1; then
17803 cat >> confdefs.h <<\EOF
17804#define wxUSE_CONTROLS 1
10f2d63a
VZ
17805EOF
17806
10f2d63a
VZ
17807fi
17808
1e6feb95 17809
24176f2c
GD
17810if test "$wxUSE_TREELAYOUT" = "yes"; then
17811 cat >> confdefs.h <<\EOF
17812#define wxUSE_TREELAYOUT 1
17813EOF
17814
17815 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
17816fi
1e6feb95 17817
24fd6d87
VZ
17818if test "$wxUSE_DRAGIMAGE" = "yes"; then
17819 cat >> confdefs.h <<\EOF
17820#define wxUSE_DRAGIMAGE 1
17821EOF
17822
17823 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
17824fi
17825
1e6feb95 17826if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 17827 cat >> confdefs.h <<\EOF
1e6feb95 17828#define wxUSE_MENUS 1
10f2d63a
VZ
17829EOF
17830
1e6feb95 17831 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
17832fi
17833
1e6feb95
VZ
17834if test "$wxUSE_METAFILE" = "yes"; then
17835 cat >> confdefs.h <<\EOF
17836#define wxUSE_METAFILE 1
10f2d63a
VZ
17837EOF
17838
10f2d63a
VZ
17839fi
17840
1e6feb95
VZ
17841if test "$wxUSE_MIMETYPE" = "yes"; then
17842 cat >> confdefs.h <<\EOF
17843#define wxUSE_MIMETYPE 1
10f2d63a
VZ
17844EOF
17845
10f2d63a
VZ
17846fi
17847
3e44f09d
VZ
17848if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
17849 cat >> confdefs.h <<\EOF
17850#define wxUSE_SYSTEM_OPTIONS 1
17851EOF
17852
17853fi
17854
10f2d63a 17855if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 17856 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17857#define wxUSE_MINIFRAME 1
17858EOF
17859
17860 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
17861fi
17862
17863if test "$wxUSE_HTML" = "yes"; then
698dcdb6 17864 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17865#define wxUSE_HTML 1
17866EOF
17867
17868 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
17869fi
17870
17871if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 17872 cat >> confdefs.h <<\EOF
1e487827
VS
17873#define wxUSE_VALIDATORS 1
17874EOF
703e0a69 17875
698dcdb6
VZ
17876 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
17877fi
17878
edae8572
VZ
17879if test "$wxUSE_PALETTE" = "yes" ; then
17880 cat >> confdefs.h <<\EOF
17881#define wxUSE_PALETTE 1
17882EOF
17883
17884fi
17885
698dcdb6
VZ
17886if test "$wxUSE_IMAGE" = "yes" ; then
17887 cat >> confdefs.h <<\EOF
17888#define wxUSE_IMAGE 1
17889EOF
17890
17891fi
17892
17893if test "$wxUSE_GIF" = "yes" ; then
17894 cat >> confdefs.h <<\EOF
17895#define wxUSE_GIF 1
17896EOF
17897
17898fi
17899
17900if test "$wxUSE_PCX" = "yes" ; then
17901 cat >> confdefs.h <<\EOF
17902#define wxUSE_PCX 1
17903EOF
17904
17905fi
17906
17907if test "$wxUSE_PNM" = "yes" ; then
17908 cat >> confdefs.h <<\EOF
17909#define wxUSE_PNM 1
17910EOF
17911
17912fi
17913
17914if test "$wxUSE_XPM" = "yes" ; then
17915 cat >> confdefs.h <<\EOF
17916#define wxUSE_XPM 1
17917EOF
17918
17919fi
17920
17921
1e6feb95
VZ
17922if test "$wxUSE_CHOICEDLG" = "yes"; then
17923 cat >> confdefs.h <<\EOF
17924#define wxUSE_CHOICEDLG 1
17925EOF
17926
17927fi
17928
17929if test "$wxUSE_COLOURDLG" = "yes"; then
17930 cat >> confdefs.h <<\EOF
17931#define wxUSE_COLOURDLG 1
17932EOF
17933
17934fi
17935
17936if test "$wxUSE_FILEDLG" = "yes"; then
17937 cat >> confdefs.h <<\EOF
17938#define wxUSE_FILEDLG 1
17939EOF
17940
17941fi
17942
8db37e06
VZ
17943if test "$wxUSE_FINDREPLDLG" = "yes"; then
17944 cat >> confdefs.h <<\EOF
17945#define wxUSE_FINDREPLDLG 1
17946EOF
17947
17948fi
17949
1e6feb95
VZ
17950if test "$wxUSE_FONTDLG" = "yes"; then
17951 cat >> confdefs.h <<\EOF
17952#define wxUSE_FONTDLG 1
17953EOF
17954
17955fi
17956
17957if test "$wxUSE_DIRDLG" = "yes"; then
17958 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17959 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
17960 else
17961 if test "$wxUSE_TREECTRL" != "yes"; then
17962 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
17963 else
17964 cat >> confdefs.h <<\EOF
17965#define wxUSE_DIRDLG 1
17966EOF
17967
17968 fi
17969 fi
17970fi
17971
17972if test "$wxUSE_MSGDLG" = "yes"; then
17973 cat >> confdefs.h <<\EOF
17974#define wxUSE_MSGDLG 1
17975EOF
17976
17977fi
17978
17979if test "$wxUSE_NUMBERDLG" = "yes"; then
17980 cat >> confdefs.h <<\EOF
17981#define wxUSE_NUMBERDLG 1
17982EOF
17983
17984fi
17985
17986if test "$wxUSE_PROGRESSDLG" = "yes"; then
17987 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17988 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
17989 else
17990 cat >> confdefs.h <<\EOF
17991#define wxUSE_PROGRESSDLG 1
17992EOF
17993
17994 fi
17995fi
17996
cbca9943
VZ
17997if test "$wxUSE_SPLASH" = "yes"; then
17998 cat >> confdefs.h <<\EOF
17999#define wxUSE_SPLASH 1
18000EOF
18001
18002fi
18003
1e6feb95
VZ
18004if test "$wxUSE_STARTUP_TIPS" = "yes"; then
18005 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18006 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
18007 else
18008 cat >> confdefs.h <<\EOF
18009#define wxUSE_STARTUP_TIPS 1
18010EOF
18011
18012 fi
18013fi
18014
18015if test "$wxUSE_TEXTDLG" = "yes"; then
18016 cat >> confdefs.h <<\EOF
18017#define wxUSE_TEXTDLG 1
18018EOF
18019
18020fi
18021
b1f5d087
VZ
18022if test "$wxUSE_WIZARDDLG" = "yes"; then
18023 cat >> confdefs.h <<\EOF
18024#define wxUSE_WIZARDDLG 1
18025EOF
18026
18027 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
18028fi
18029
1e6feb95 18030
698dcdb6
VZ
18031if test "$cross_compiling" = "yes"; then
18032 OSINFO="\"$host\""
18033else
18034 OSINFO=`uname -s -r -m`
18035 OSINFO="\"$OSINFO\""
18036fi
18037
18038cat >> confdefs.h <<EOF
18039#define WXWIN_OS_DESCRIPTION $OSINFO
18040EOF
18041
18042
18043
06dda230
VZ
18044if test "x$prefix" != "xNONE"; then
18045 wxPREFIX=$prefix
18046else
18047 wxPREFIX=$ac_default_prefix
18048fi
18049
7e67ed0d 18050cat >> confdefs.h <<EOF
06dda230 18051#define wxINSTALL_PREFIX "$wxPREFIX"
7e67ed0d
VZ
18052EOF
18053
18054
18055
698dcdb6 18056GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
698dcdb6
VZ
18057
18058EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
3a922bb4 18059
f11bdd03 18060if test "$wxUSE_MAC" = 1 ; then
698dcdb6
VZ
18061 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
18062fi
3a922bb4 18063
698dcdb6
VZ
18064if test "$wxUSE_GUI" = "yes"; then
18065 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
3a922bb4
RL
18066
18067
18068 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
18069 drawing dynamic erase event exec font image \
18070 minimal richedit rotate widgets"
18071
18072 if test "$wxUSE_UNIVERSAL" = "yes" ; then
18073 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
18074 fi
18075
18076 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
18077else
18078 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
18079fi
18080
18081LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
18082
3a922bb4 18083INCLUDES="-I. -I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
3e44f09d
VZ
18084$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
18085$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
698dcdb6
VZ
18086
18087if test "$wxUSE_GTK" = 1; then
18088 WXCONFIG_INCLUDE=""
18089else
18090 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
18091fi
18092
18093if test "$GXX" = yes ; then
18094 CXXWARNINGS="-Wall"
18095 fi
18096EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
18097
18098CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
18099CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
18100
18101LDFLAGS="$LDFLAGS $PROFILE"
18102
698dcdb6
VZ
18103SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
32832908 18171
2f51a9ec
GD
18172
18173
18174
18175
f6bcfd97 18176
dad6c0ea 18177
caa2c79b 18178
3711412e 18179
1e6feb95
VZ
18180
18181
0f3f1cbc 18182
18dbb1f6 18183
10f2d63a
VZ
18184
18185
698dcdb6 18186echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
7b7a7637 18187echo "configure:18188: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
18188set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
18189if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
18190 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18191else
698dcdb6 18192 cat > conftestmake <<\EOF
10f2d63a
VZ
18193all:
18194 @echo 'ac_maketemp="${MAKE}"'
18195EOF
18196# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 18197eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
18198if test -n "$ac_maketemp"; then
18199 eval ac_cv_prog_make_${ac_make}_set=yes
18200else
18201 eval ac_cv_prog_make_${ac_make}_set=no
18202fi
698dcdb6 18203rm -f conftestmake
10f2d63a
VZ
18204fi
18205if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 18206 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
18207 SET_MAKE=
18208else
698dcdb6 18209 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18210 SET_MAKE="MAKE=${MAKE-make}"
18211fi
18212
698dcdb6 18213
3a922bb4
RL
18214if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
18215 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 18216fi
665bbe97 18217
698dcdb6 18218
10f2d63a 18219
2224580a 18220if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 18221 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
18222 wx_cv_path_ifs=$PATH_IFS
18223 wx_cv_program_ext=$PROGRAM_EXT
18224 wx_cv_target_library=$WX_TARGET_LIBRARY
7b6058cd 18225 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
3711412e 18226 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
93a20a27 18227 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
7b6058cd 18228 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
698dcdb6 18229 subdirs="demos samples utils contrib"
2224580a
VZ
18230
18231fi
10f2d63a 18232
698dcdb6
VZ
18233trap '' 1 2 15
18234cat > confcache <<\EOF
10f2d63a
VZ
18235# This file is a shell script that caches the results of configure
18236# tests run on this system so they can be shared between configure
698dcdb6
VZ
18237# scripts and configure runs. It is not useful on other systems.
18238# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 18239#
698dcdb6
VZ
18240# By default, configure uses ./config.cache as the cache file,
18241# creating it if it does not exist already. You can give configure
18242# the --cache-file=FILE option to use a different cache file; that is
18243# what configure does when it calls configure scripts in
18244# subdirectories, so they share the cache.
18245# Giving --cache-file=/dev/null disables caching, for debugging configure.
18246# config.status only pays attention to the cache file if you give it the
18247# --recheck option to rerun configure.
10f2d63a 18248#
698dcdb6 18249EOF
10f2d63a
VZ
18250# The following way of writing the cache mishandles newlines in values,
18251# but we know of no workaround that is simple, portable, and efficient.
18252# So, don't put newlines in cache variables' values.
18253# Ultrix sh set writes to stderr and can't be redirected directly,
18254# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
18255(set) 2>&1 |
18256 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18257 *ac_space=\ *)
18258 # `set' does not quote correctly, so add quotes (double-quote substitution
18259 # turns \\\\ into \\, and sed turns \\ into \).
18260 sed -n \
18261 -e "s/'/'\\\\''/g" \
18262 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18263 ;;
18264 *)
18265 # `set' quotes correctly as required by POSIX, so do not add quotes.
18266 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18267 ;;
18268 esac >> confcache
18269if cmp -s $cache_file confcache; then
18270 :
18271else
10f2d63a 18272 if test -w $cache_file; then
698dcdb6
VZ
18273 echo "updating cache $cache_file"
18274 cat confcache > $cache_file
10f2d63a
VZ
18275 else
18276 echo "not updating unwritable cache $cache_file"
18277 fi
18278fi
18279rm -f confcache
18280
698dcdb6
VZ
18281trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18282
10f2d63a
VZ
18283test "x$prefix" = xNONE && prefix=$ac_default_prefix
18284# Let make expand exec_prefix.
18285test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18286
698dcdb6
VZ
18287# Any assignment to VPATH causes Sun make to only execute
18288# the first set of double-colon rules, so remove it if not needed.
18289# If there is a colon in the path, we need to keep it.
10f2d63a 18290if test "x$srcdir" = x.; then
698dcdb6 18291 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
18292fi
18293
698dcdb6
VZ
18294trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18295
10f2d63a
VZ
18296DEFS=-DHAVE_CONFIG_H
18297
698dcdb6 18298# Without the "./", some shells look in PATH for config.status.
10f2d63a 18299: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
18300
18301echo creating $CONFIG_STATUS
18302rm -f $CONFIG_STATUS
18303cat > $CONFIG_STATUS <<EOF
18304#! /bin/sh
10f2d63a
VZ
18305# Generated automatically by configure.
18306# Run this file to recreate the current configuration.
698dcdb6
VZ
18307# This directory was configured as follows,
18308# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18309#
18310# $0 $ac_configure_args
18311#
10f2d63a 18312# Compiler output produced by configure, useful for debugging
698dcdb6 18313# configure, is in ./config.log if it exists.
1e487827 18314
698dcdb6
VZ
18315ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18316for ac_option
10f2d63a 18317do
698dcdb6 18318 case "\$ac_option" in
10f2d63a 18319 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
18320 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18321 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18322 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18323 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18324 exit 0 ;;
18325 -help | --help | --hel | --he | --h)
18326 echo "\$ac_cs_usage"; exit 0 ;;
18327 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
18328 esac
18329done
18330
698dcdb6
VZ
18331ac_given_srcdir=$srcdir
18332ac_given_INSTALL="$INSTALL"
703e0a69 18333
698dcdb6
VZ
18334trap 'rm -fr `echo "
18335 wx-config
18336 src/make.env
18337 src/makeprog.env
18338 src/makelib.env
18339 Makefile
18340 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 18341EOF
698dcdb6 18342cat >> $CONFIG_STATUS <<EOF
1e487827 18343
698dcdb6
VZ
18344# Protect against being on the right side of a sed subst in config.status.
18345sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18346 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18347$ac_vpsub
18348$extrasub
18349s%@SHELL@%$SHELL%g
18350s%@CFLAGS@%$CFLAGS%g
18351s%@CPPFLAGS@%$CPPFLAGS%g
18352s%@CXXFLAGS@%$CXXFLAGS%g
18353s%@FFLAGS@%$FFLAGS%g
18354s%@DEFS@%$DEFS%g
18355s%@LDFLAGS@%$LDFLAGS%g
18356s%@LIBS@%$LIBS%g
18357s%@exec_prefix@%$exec_prefix%g
18358s%@prefix@%$prefix%g
18359s%@program_transform_name@%$program_transform_name%g
18360s%@bindir@%$bindir%g
18361s%@sbindir@%$sbindir%g
18362s%@libexecdir@%$libexecdir%g
18363s%@datadir@%$datadir%g
18364s%@sysconfdir@%$sysconfdir%g
18365s%@sharedstatedir@%$sharedstatedir%g
18366s%@localstatedir@%$localstatedir%g
18367s%@libdir@%$libdir%g
18368s%@includedir@%$includedir%g
18369s%@oldincludedir@%$oldincludedir%g
18370s%@infodir@%$infodir%g
18371s%@mandir@%$mandir%g
18372s%@host@%$host%g
18373s%@host_alias@%$host_alias%g
18374s%@host_cpu@%$host_cpu%g
18375s%@host_vendor@%$host_vendor%g
18376s%@host_os@%$host_os%g
18377s%@target@%$target%g
18378s%@target_alias@%$target_alias%g
18379s%@target_cpu@%$target_cpu%g
18380s%@target_vendor@%$target_vendor%g
18381s%@target_os@%$target_os%g
18382s%@build@%$build%g
18383s%@build_alias@%$build_alias%g
18384s%@build_cpu@%$build_cpu%g
18385s%@build_vendor@%$build_vendor%g
18386s%@build_os@%$build_os%g
18387s%@CC@%$CC%g
18388s%@CPP@%$CPP%g
18389s%@CXX@%$CXX%g
698dcdb6
VZ
18390s%@RANLIB@%$RANLIB%g
18391s%@AR@%$AR%g
18392s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18393s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18394s%@INSTALL_DATA@%$INSTALL_DATA%g
18395s%@STRIP@%$STRIP%g
18396s%@YACC@%$YACC%g
18397s%@LEX@%$LEX%g
18398s%@LEXLIB@%$LEXLIB%g
18399s%@LN_S@%$LN_S%g
18400s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
698dcdb6
VZ
18401s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18402s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 18403s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
18404s%@X_CFLAGS@%$X_CFLAGS%g
18405s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18406s%@X_LIBS@%$X_LIBS%g
18407s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3a922bb4 18408s%@RESCOMP@%$RESCOMP%g
698dcdb6 18409s%@DEREZ@%$DEREZ%g
3a922bb4 18410s%@CXXCPP@%$CXXCPP%g
698dcdb6
VZ
18411s%@LEX_STEM@%$LEX_STEM%g
18412s%@PATH_IFS@%$PATH_IFS%g
18413s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18414s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18415s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
698dcdb6
VZ
18416s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18417s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
698dcdb6
VZ
18418s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18419s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18420s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
698dcdb6 18421s%@PROGRAM_EXT@%$PROGRAM_EXT%g
698dcdb6
VZ
18422s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18423s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
698dcdb6
VZ
18424s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18425s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18426s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
698dcdb6
VZ
18427s%@WX_ALL@%$WX_ALL%g
18428s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18429s%@SHARED_LD@%$SHARED_LD%g
18430s%@PIC_FLAG@%$PIC_FLAG%g
698dcdb6
VZ
18431s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18432s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
3a922bb4
RL
18433s%@SONAME_FLAGS@%$SONAME_FLAGS%g
18434s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
698dcdb6
VZ
18435s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18436s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18437s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18438s%@USE_GUI@%$USE_GUI%g
18439s%@AFMINSTALL@%$AFMINSTALL%g
18440s%@TOOLKIT@%$TOOLKIT%g
698dcdb6 18441s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
1e6feb95 18442s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
3a922bb4
RL
18443s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
18444s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
18445s%@cross_compiling@%$cross_compiling%g
18446s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
18447s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
698dcdb6
VZ
18448s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18449s%@ALL_OBJECTS@%$ALL_OBJECTS%g
698dcdb6
VZ
18450s%@GUIDIST@%$GUIDIST%g
18451s%@PORT_FILES@%$PORT_FILES%g
18452s%@DISTDIR@%$DISTDIR%g
18453s%@RPM_SPEC@%$RPM_SPEC%g
18454s%@RPM_FILES@%$RPM_FILES%g
698dcdb6 18455s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
698dcdb6
VZ
18456s%@EXTRA_LIBS@%$EXTRA_LIBS%g
18457s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18458s%@EXTRADEFS@%$EXTRADEFS%g
18459s%@LD_LIBS@%$LD_LIBS%g
18dbb1f6 18460s%@WXMSW_DLL_DEFINES@%$WXMSW_DLL_DEFINES%g
698dcdb6 18461s%@RESFLAGS@%$RESFLAGS%g
3a922bb4 18462s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
d08b457b 18463s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
698dcdb6
VZ
18464s%@LIBWXMACRES@%$LIBWXMACRES%g
18465s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18466s%@DLLTOOL@%$DLLTOOL%g
18467s%@AS@%$AS%g
18468s%@NM@%$NM%g
18469s%@LD@%$LD%g
18470s%@MAKEINFO@%$MAKEINFO%g
18471s%@SET_MAKE@%$SET_MAKE%g
18472s%@subdirs@%$subdirs%g
1e487827 18473
1e487827 18474CEOF
1e487827
VS
18475EOF
18476
698dcdb6
VZ
18477cat >> $CONFIG_STATUS <<\EOF
18478
18479# Split the substitutions into bite-sized pieces for seds with
18480# small command number limits, like on Digital OSF/1 and HP-UX.
18481ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18482ac_file=1 # Number of current file.
18483ac_beg=1 # First line for current file.
18484ac_end=$ac_max_sed_cmds # Line after last line for current file.
18485ac_more_lines=:
18486ac_sed_cmds=""
18487while $ac_more_lines; do
18488 if test $ac_beg -gt 1; then
18489 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18490 else
18491 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18492 fi
18493 if test ! -s conftest.s$ac_file; then
18494 ac_more_lines=false
18495 rm -f conftest.s$ac_file
18496 else
18497 if test -z "$ac_sed_cmds"; then
18498 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 18499 else
698dcdb6 18500 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 18501 fi
698dcdb6
VZ
18502 ac_file=`expr $ac_file + 1`
18503 ac_beg=$ac_end
18504 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 18505 fi
698dcdb6
VZ
18506done
18507if test -z "$ac_sed_cmds"; then
18508 ac_sed_cmds=cat
18509fi
18510EOF
10f2d63a 18511
698dcdb6
VZ
18512cat >> $CONFIG_STATUS <<EOF
18513
18514CONFIG_FILES=\${CONFIG_FILES-"wx-config
18515 src/make.env
18516 src/makeprog.env
18517 src/makelib.env
18518 Makefile
18519 "}
10f2d63a 18520EOF
698dcdb6
VZ
18521cat >> $CONFIG_STATUS <<\EOF
18522for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 18523 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
18524 case "$ac_file" in
18525 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18526 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18527 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
18528 esac
18529
698dcdb6 18530 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 18531
698dcdb6
VZ
18532 # Remove last slash and all that follows it. Not all systems have dirname.
18533 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18534 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18535 # The file is in a subdirectory.
18536 test ! -d "$ac_dir" && mkdir "$ac_dir"
18537 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 18538 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 18539 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
18540 else
18541 ac_dir_suffix= ac_dots=
18542 fi
18543
698dcdb6
VZ
18544 case "$ac_given_srcdir" in
18545 .) srcdir=.
18546 if test -z "$ac_dots"; then top_srcdir=.
18547 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18548 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 18549 *) # Relative path.
698dcdb6
VZ
18550 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18551 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
18552 esac
18553
698dcdb6
VZ
18554 case "$ac_given_INSTALL" in
18555 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18556 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
18557 esac
18558
698dcdb6
VZ
18559 echo creating "$ac_file"
18560 rm -f "$ac_file"
18561 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18562 case "$ac_file" in
18563 *Makefile*) ac_comsub="1i\\
18564# $configure_input" ;;
18565 *) ac_comsub= ;;
18566 esac
10f2d63a 18567
698dcdb6
VZ
18568 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18569 sed -e "$ac_comsub
18570s%@configure_input@%$configure_input%g
18571s%@srcdir@%$srcdir%g
18572s%@top_srcdir@%$top_srcdir%g
18573s%@INSTALL@%$INSTALL%g
18574" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18575fi; done
18576rm -f conftest.s*
10f2d63a
VZ
18577
18578# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18579# NAME is the cpp macro being defined and VALUE is the value it is being given.
18580#
18581# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
18582ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18583ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18584ac_dC='\3'
18585ac_dD='%g'
18586# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18587ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18588ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 18589ac_uC=' '
698dcdb6
VZ
18590ac_uD='\4%g'
18591# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18592ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18593ac_eB='$%\1#\2define\3'
18594ac_eC=' '
18595ac_eD='%g'
10f2d63a 18596
698dcdb6
VZ
18597if test "${CONFIG_HEADERS+set}" != set; then
18598EOF
18599cat >> $CONFIG_STATUS <<EOF
18600 CONFIG_HEADERS="setup.h:setup.h.in"
18601EOF
18602cat >> $CONFIG_STATUS <<\EOF
18603fi
18604for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 18605 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
18606 case "$ac_file" in
18607 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18608 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18609 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
18610 esac
18611
698dcdb6
VZ
18612 echo creating $ac_file
18613
18614 rm -f conftest.frag conftest.in conftest.out
18615 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18616 cat $ac_file_inputs > conftest.in
18617
18618EOF
18619
18620# Transform confdefs.h into a sed script conftest.vals that substitutes
18621# the proper values into config.h.in to produce config.h. And first:
18622# Protect against being on the right side of a sed subst in config.status.
18623# Protect against being in an unquoted here document in config.status.
18624rm -f conftest.vals
18625cat > conftest.hdr <<\EOF
18626s/[\\&%]/\\&/g
18627s%[\\$`]%\\&%g
18628s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18629s%ac_d%ac_u%gp
18630s%ac_u%ac_e%gp
18631EOF
18632sed -n -f conftest.hdr confdefs.h > conftest.vals
18633rm -f conftest.hdr
10f2d63a
VZ
18634
18635# This sed command replaces #undef with comments. This is necessary, for
18636# example, in the case of _POSIX_SOURCE, which is predefined and required
18637# on some systems where configure will not decide to define it.
698dcdb6
VZ
18638cat >> conftest.vals <<\EOF
18639s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
18640EOF
18641
698dcdb6
VZ
18642# Break up conftest.vals because some shells have a limit on
18643# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
18644
18645rm -f conftest.tail
698dcdb6 18646while :
10f2d63a 18647do
698dcdb6
VZ
18648 ac_lines=`grep -c . conftest.vals`
18649 # grep -c gives empty output for an empty file on some AIX systems.
18650 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18651 # Write a limited-size here document to conftest.frag.
18652 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18653 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 18654 echo 'CEOF
698dcdb6
VZ
18655 sed -f conftest.frag conftest.in > conftest.out
18656 rm -f conftest.in
18657 mv conftest.out conftest.in
18658' >> $CONFIG_STATUS
18659 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18660 rm -f conftest.vals
18661 mv conftest.tail conftest.vals
10f2d63a 18662done
698dcdb6
VZ
18663rm -f conftest.vals
18664
18665cat >> $CONFIG_STATUS <<\EOF
18666 rm -f conftest.frag conftest.h
18667 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18668 cat conftest.in >> conftest.h
18669 rm -f conftest.in
18670 if cmp -s $ac_file conftest.h 2>/dev/null; then
18671 echo "$ac_file is unchanged"
18672 rm -f conftest.h
10f2d63a 18673 else
698dcdb6
VZ
18674 # Remove last slash and all that follows it. Not all systems have dirname.
18675 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 18676 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
18677 # The file is in a subdirectory.
18678 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 18679 fi
698dcdb6
VZ
18680 rm -f $ac_file
18681 mv conftest.h $ac_file
10f2d63a 18682 fi
698dcdb6
VZ
18683fi; done
18684
10f2d63a 18685EOF
698dcdb6 18686cat >> $CONFIG_STATUS <<EOF
10f2d63a 18687
3a922bb4 18688 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
698dcdb6
VZ
18689 LN_S="${LN_S}"
18690
18691
18692EOF
18693cat >> $CONFIG_STATUS <<\EOF
10f2d63a 18694
3a922bb4 18695 if test ! -L wx-config; then
991a5759 18696 chmod +x wx-config
3a922bb4
RL
18697 mv wx-config wx${TOOLCHAIN_NAME}-config
18698 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 18699 fi
665bbe97 18700
00cf1208
RR
18701 if test ! -d lib; then
18702 mkdir lib
18703 fi
18704 if test ! -d lib/wx; then
18705 mkdir lib/wx
18706 fi
18707 if test ! -d lib/wx/include; then
18708 mkdir lib/wx/include
18709 fi
3a922bb4
RL
18710 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
18711 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 18712 fi
3a922bb4
RL
18713 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
18714 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
18715 fi
18716 if test -f setup.h; then
3a922bb4 18717 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 18718 fi
698dcdb6
VZ
18719
18720exit 0
10f2d63a
VZ
18721EOF
18722chmod +x $CONFIG_STATUS
698dcdb6
VZ
18723rm -fr confdefs* $ac_clean_files
18724test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 18725
2224580a
VZ
18726if test "$no_recursion" != yes; then
18727
18728 # Remove --cache-file and --srcdir arguments so they do not pile up.
18729 ac_sub_configure_args=
18730 ac_prev=
18731 for ac_arg in $ac_configure_args; do
18732 if test -n "$ac_prev"; then
18733 ac_prev=
18734 continue
18735 fi
698dcdb6 18736 case "$ac_arg" in
2224580a
VZ
18737 -cache-file | --cache-file | --cache-fil | --cache-fi \
18738 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18739 ac_prev=cache_file ;;
18740 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 18741 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
18742 ;;
18743 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18744 ac_prev=srcdir ;;
18745 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18746 ;;
18747 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18748 esac
18749 done
18750
698dcdb6 18751 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
18752
18753 # Do not complain, so a configure script can configure whichever
18754 # parts of a large source tree are present.
698dcdb6
VZ
18755 if test ! -d $srcdir/$ac_config_dir; then
18756 continue
18757 fi
18758
18759 echo configuring in $ac_config_dir
2224580a 18760
698dcdb6 18761 case "$srcdir" in
2224580a
VZ
18762 .) ;;
18763 *)
698dcdb6
VZ
18764 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18765 else
18766 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18767 fi
18768 ;;
2224580a
VZ
18769 esac
18770
18771 ac_popdir=`pwd`
698dcdb6 18772 cd $ac_config_dir
2224580a 18773
698dcdb6
VZ
18774 # A "../" for each directory in /$ac_config_dir.
18775 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 18776
698dcdb6 18777 case "$srcdir" in
2224580a
VZ
18778 .) # No --srcdir option. We are building in place.
18779 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
18780 /*) # Absolute path.
18781 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 18782 *) # Relative path.
698dcdb6 18783 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
18784 esac
18785
18786 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
18787 if test -f $ac_sub_srcdir/configure; then
18788 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
18789 elif test -f $ac_sub_srcdir/configure.in; then
18790 ac_sub_configure=$ac_configure
18791 else
698dcdb6 18792 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
18793 ac_sub_configure=
18794 fi
18795
18796 # The recursion is here.
18797 if test -n "$ac_sub_configure"; then
698dcdb6 18798
2224580a 18799 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
18800 case "$cache_file" in
18801 /*) ac_sub_cache_file=$cache_file ;;
2224580a 18802 *) # Relative path.
698dcdb6 18803 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 18804 esac
698dcdb6
VZ
18805 case "$ac_given_INSTALL" in
18806 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18807 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18808 esac
2224580a 18809
698dcdb6 18810 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 18811 # The eval makes quoting arguments work.
698dcdb6
VZ
18812 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
18813 then :
18814 else
18815 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
18816 fi
2224580a
VZ
18817 fi
18818
18819 cd $ac_popdir
18820 done
18821fi
18822
698dcdb6 18823