]> git.saurik.com Git - wxWidgets.git/blame - configure
send right click events for the URLs too
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
698dcdb6 3# From configure.in Id: configure.in
703e0a69
VZ
4
5
6
7
8
703e0a69
VZ
9
10
1e487827 11
1e487827 12
698dcdb6
VZ
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
8168de4c
VZ
38
39# Configure paths for GTK+
40# Owen Taylor 97-11-3
698dcdb6
VZ
41
42
43
44
698dcdb6
VZ
45
46
47# Guess values for system-dependent variables and create Makefiles.
48# Generated automatically using autoconf version 2.13
49# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
50#
51# This configure script is free software; the Free Software Foundation
52# gives unlimited permission to copy, distribute and modify it.
53
54# Defaults:
55ac_help=
56ac_default_prefix=/usr/local
57# Any additions from configure.in:
58ac_help="$ac_help
8168de4c 59 --enable-gui use GUI classes"
1e6feb95 60ac_help="$ac_help
8168de4c 61 --enable-universal use wxWindows GUI controls instead of native ones"
698dcdb6
VZ
62ac_help="$ac_help
63 --with-gtk use GTK+"
64ac_help="$ac_help
65 --with-motif use Motif/Lesstif"
66ac_help="$ac_help
67 --with-mac use Mac OS X"
68ac_help="$ac_help
69 --with-wine use WINE"
70ac_help="$ac_help
71 --with-cygwin use Cygwin for MS-Windows"
72ac_help="$ac_help
73 --with-mingw use GCC Minimal MS-Windows"
74ac_help="$ac_help
75 --with-pm use OS/2 Presentation Manager"
1e6feb95
VZ
76ac_help="$ac_help
77 --with-mgl use MGL"
698dcdb6 78ac_help="$ac_help
8168de4c 79 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
698dcdb6 80ac_help="$ac_help
8168de4c 81 --with-libpng use libpng (PNG image format)"
698dcdb6 82ac_help="$ac_help
8168de4c 83 --with-libjpeg use libjpeg (JPEG file format)"
698dcdb6 84ac_help="$ac_help
8168de4c 85 --with-libtiff use libtiff (TIFF file format)"
698dcdb6 86ac_help="$ac_help
8168de4c 87 --with-freetype use freetype (font rasterizer)"
698dcdb6 88ac_help="$ac_help
8168de4c 89 --with-opengl use OpenGL (or Mesa)"
698dcdb6 90ac_help="$ac_help
8168de4c 91 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
3e44f09d
VZ
92ac_help="$ac_help
93 --with-regex enable support for wxRegEx class"
698dcdb6 94ac_help="$ac_help
8168de4c 95 --with-zlib use zlib for LZW compression"
698dcdb6 96ac_help="$ac_help
8168de4c 97 --with-odbc use the IODBC and wxODBC classes"
698dcdb6 98ac_help="$ac_help
8168de4c 99 --enable-shared create shared library code"
698dcdb6 100ac_help="$ac_help
8168de4c 101 --enable-burnt_name create set name in shared library "
698dcdb6 102ac_help="$ac_help
8168de4c 103 --enable-optimise create optimised code"
698dcdb6 104ac_help="$ac_help
8168de4c 105 --enable-debug same as debug_flag and debug_info"
698dcdb6 106ac_help="$ac_help
8168de4c 107 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
698dcdb6 108ac_help="$ac_help
8168de4c 109 --enable-debug_info create code with debugging information"
698dcdb6 110ac_help="$ac_help
8168de4c 111 --enable-debug_gdb create code with extra GDB debugging information"
698dcdb6 112ac_help="$ac_help
8168de4c 113 --enable-debug_cntxt use wxDebugContext"
698dcdb6 114ac_help="$ac_help
8168de4c 115 --enable-mem_tracing create code with memory tracing"
698dcdb6 116ac_help="$ac_help
8168de4c 117 --enable-profile create code with profiling information"
698dcdb6 118ac_help="$ac_help
8168de4c 119 --enable-no_rtti create code without RTTI information"
698dcdb6 120ac_help="$ac_help
8168de4c 121 --enable-no_exceptions create code without exceptions information"
698dcdb6 122ac_help="$ac_help
8168de4c 123 --enable-permissive compile code disregarding strict ANSI"
698dcdb6 124ac_help="$ac_help
8168de4c 125 --enable-no_deps create code without dependency information"
54276ccf
VZ
126ac_help="$ac_help
127 --enable-compat20 enable wxWin 2.0 compatibility"
128ac_help="$ac_help
129 --enable-compat22 enable wxWin 2.2 compatibility"
698dcdb6 130ac_help="$ac_help
8168de4c 131 --enable-intl use internationalization system"
698dcdb6 132ac_help="$ac_help
8168de4c 133 --enable-config use wxConfig (and derived) classes"
698dcdb6 134ac_help="$ac_help
8168de4c 135 --enable-sockets use socket/network classes"
698dcdb6 136ac_help="$ac_help
8168de4c 137 --enable-ipc use interprocess communication (wxSocket etc.)"
698dcdb6 138ac_help="$ac_help
8168de4c 139 --enable-cmdline use wxCmdLineParser class"
1e6feb95 140ac_help="$ac_help
8168de4c 141 --enable-datetime use wxDateTime class"
1e6feb95 142ac_help="$ac_help
8168de4c 143 --enable-timedate use obsolete wxDate/wxTime classes"
1e6feb95 144ac_help="$ac_help
8168de4c 145 --enable-stopwatch use wxStopWatch class"
1e6feb95 146ac_help="$ac_help
8168de4c 147 --enable-dialupman use dialup network classes"
698dcdb6 148ac_help="$ac_help
8168de4c 149 --enable-apple_ieee use the Apple IEEE codec"
698dcdb6 150ac_help="$ac_help
8168de4c 151 --enable-timer use wxTimer class"
698dcdb6 152ac_help="$ac_help
8168de4c 153 --enable-wave use wxWave class"
698dcdb6 154ac_help="$ac_help
8168de4c 155 --enable-fraction use wxFraction class"
698dcdb6 156ac_help="$ac_help
8168de4c 157 --enable-dynlib use wxLibrary class for DLL loading"
698dcdb6 158ac_help="$ac_help
8168de4c 159 --enable-longlong use wxLongLong class"
698dcdb6 160ac_help="$ac_help
8168de4c 161 --enable-geometry use geometry class"
698dcdb6 162ac_help="$ac_help
8168de4c 163 --enable-log use logging system"
698dcdb6 164ac_help="$ac_help
8168de4c 165 --enable-streams use wxStream etc classes"
698dcdb6 166ac_help="$ac_help
8168de4c 167 --enable-file use wxFile classes"
698dcdb6 168ac_help="$ac_help
8168de4c 169 --enable-ffile use wxFFile classes"
1e6feb95 170ac_help="$ac_help
8168de4c 171 --enable-textfile use wxTextFile classes"
698dcdb6 172ac_help="$ac_help
8168de4c 173 --enable-fontmap use font encodings conversion classes"
1e6feb95 174ac_help="$ac_help
8168de4c 175 --enable-unicode compile wxString with Unicode support"
698dcdb6 176ac_help="$ac_help
8168de4c 177 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
698dcdb6 178ac_help="$ac_help
8168de4c 179 --enable-wxprintfv use wxWindows implementation of vprintf()"
698dcdb6 180ac_help="$ac_help
8168de4c 181 --enable-std_iostreams use standard C++ stream classes"
698dcdb6 182ac_help="$ac_help
8168de4c 183 --enable-filesystem use virtual file systems classes"
698dcdb6 184ac_help="$ac_help
8168de4c 185 --enable-fs_inet use virtual HTTP/FTP filesystems"
698dcdb6 186ac_help="$ac_help
8168de4c 187 --enable-fs_zip use virtual ZIP filesystems"
698dcdb6 188ac_help="$ac_help
8168de4c 189 --enable-zipstream use wxZipInputStream"
698dcdb6 190ac_help="$ac_help
8168de4c 191 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
698dcdb6 192ac_help="$ac_help
8168de4c 193 --enable-snglinst use wxSingleInstanceChecker class"
698dcdb6 194ac_help="$ac_help
8168de4c 195 --enable-mimetypes use wxMimeTypesManager"
3e44f09d
VZ
196ac_help="$ac_help
197 --enable-sysoptions use wxSystemOptions"
1e6feb95 198ac_help="$ac_help
8168de4c 199 --enable-threads use threads"
698dcdb6 200ac_help="$ac_help
8168de4c 201 --enable-serial use class serialization"
698dcdb6 202ac_help="$ac_help
8168de4c 203 --enable-docview use document view architecture"
698dcdb6 204ac_help="$ac_help
3379ed37 205 --enable-help use help subsystem"
29fd3c0c
VS
206ac_help="$ac_help
207 --enable-mshtmlhelp use MS HTML Help (win32)"
3379ed37
VZ
208ac_help="$ac_help
209 --enable-html use wxHTML sub-library"
210ac_help="$ac_help
211 --enable-htmlhelp use wxHTML-based help"
698dcdb6 212ac_help="$ac_help
8168de4c 213 --enable-constraints use layout-constraints system"
698dcdb6 214ac_help="$ac_help
8168de4c 215 --enable-printarch use printing architecture"
698dcdb6 216ac_help="$ac_help
8168de4c 217 --enable-mdi use multiple document interface architecture"
698dcdb6 218ac_help="$ac_help
8168de4c 219 --enable-loggui use standard GUI logger"
1e6feb95 220ac_help="$ac_help
8168de4c 221 --enable-logwin use wxLogWindow"
1e6feb95 222ac_help="$ac_help
8168de4c 223 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 224ac_help="$ac_help
8168de4c 225 --enable-prologio use Prolog IO library"
698dcdb6 226ac_help="$ac_help
8168de4c 227 --enable-resources use wxWindows resources"
698dcdb6 228ac_help="$ac_help
8168de4c 229 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 230ac_help="$ac_help
8168de4c 231 --enable-clipboard use wxClipboard classes"
698dcdb6 232ac_help="$ac_help
8168de4c 233 --enable-dnd use Drag'n'Drop classes"
698dcdb6 234ac_help="$ac_help
8168de4c 235 --enable-metafile use win32 metafiles"
698dcdb6 236ac_help="$ac_help
24176f2c 237 --enable-treelayout use wxTreeLayout classes"
698dcdb6 238ac_help="$ac_help
8168de4c 239 --enable-controls use all usual controls"
698dcdb6 240ac_help="$ac_help
8168de4c 241 --enable-accel use accelerators"
698dcdb6 242ac_help="$ac_help
8168de4c 243 --enable-button use wxButton class"
698dcdb6 244ac_help="$ac_help
8168de4c 245 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 246ac_help="$ac_help
8168de4c 247 --enable-calendar use wxCalendarCtrl class"
1e6feb95 248ac_help="$ac_help
8168de4c 249 --enable-caret use wxCaret class"
1e6feb95 250ac_help="$ac_help
8168de4c 251 --enable-checkbox use wxCheckBox class"
698dcdb6 252ac_help="$ac_help
8168de4c 253 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 254ac_help="$ac_help
8168de4c 255 --enable-choice use wxChoice class"
698dcdb6 256ac_help="$ac_help
8168de4c 257 --enable-combobox use wxComboBox classes"
698dcdb6 258ac_help="$ac_help
8168de4c 259 --enable-gauge use wxGauge class"
698dcdb6 260ac_help="$ac_help
8168de4c 261 --enable-grid use wxGrid class"
698dcdb6 262ac_help="$ac_help
8168de4c 263 --enable-newgrid use new wxGrid class"
698dcdb6 264ac_help="$ac_help
8168de4c 265 --enable-imaglist use wxImageList class"
698dcdb6 266ac_help="$ac_help
8168de4c 267 --enable-listbox use wxListBox class"
698dcdb6 268ac_help="$ac_help
8168de4c 269 --enable-listctrl use wxListCtrl class"
698dcdb6 270ac_help="$ac_help
8168de4c 271 --enable-notebook use wxNotebook class"
24176f2c
GD
272ac_help="$ac_help
273 --enable-propsheet use wxPropertySheet class"
698dcdb6 274ac_help="$ac_help
8168de4c 275 --enable-radiobox use wxRadioBox class"
698dcdb6 276ac_help="$ac_help
8168de4c 277 --enable-radiobtn use wxRadioButton class"
698dcdb6 278ac_help="$ac_help
8168de4c 279 --enable-sash use wxSashWindow class"
698dcdb6 280ac_help="$ac_help
8168de4c 281 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 282ac_help="$ac_help
8168de4c 283 --enable-slider use wxSlider class"
698dcdb6 284ac_help="$ac_help
8168de4c 285 --enable-spinbtn use wxSpinButton class"
698dcdb6 286ac_help="$ac_help
8168de4c 287 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 288ac_help="$ac_help
8168de4c 289 --enable-splitter use wxSplitterWindow class"
698dcdb6 290ac_help="$ac_help
8168de4c 291 --enable-statbmp use wxStaticBitmap class"
698dcdb6 292ac_help="$ac_help
8168de4c 293 --enable-statbox use wxStaticBox class"
698dcdb6 294ac_help="$ac_help
8168de4c 295 --enable-statline use wxStaticLine class"
698dcdb6 296ac_help="$ac_help
8168de4c 297 --enable-stattext use wxStaticText class"
1e6feb95 298ac_help="$ac_help
8168de4c 299 --enable-statusbar use wxStatusBar class"
698dcdb6 300ac_help="$ac_help
8168de4c 301 --enable-tabdialog use wxTabControl class"
698dcdb6 302ac_help="$ac_help
8168de4c 303 --enable-textctrl use wxTextCtrl class"
1e6feb95 304ac_help="$ac_help
8168de4c 305 --enable-togglebtn use wxToggleButton class"
698dcdb6 306ac_help="$ac_help
8168de4c 307 --enable-toolbar use wxToolBar class"
698dcdb6 308ac_help="$ac_help
8168de4c 309 --enable-tbarnative use native wxToolBar class"
698dcdb6 310ac_help="$ac_help
8168de4c 311 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 312ac_help="$ac_help
8168de4c 313 --enable-treectrl use wxTreeCtrl class"
9f41d601
RR
314ac_help="$ac_help
315 --enable-popupwin use wxPopUpWindow class"
698dcdb6 316ac_help="$ac_help
8168de4c 317 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
698dcdb6 318ac_help="$ac_help
8168de4c 319 --enable-choicedlg use wxChoiceDialog"
1e6feb95 320ac_help="$ac_help
8168de4c 321 --enable-coldlg use wxColourDialog"
1e6feb95 322ac_help="$ac_help
8168de4c 323 --enable-filedlg use wxFileDialog"
8db37e06
VZ
324ac_help="$ac_help
325 --enable-finddlg use wxFindReplaceDialog"
1e6feb95 326ac_help="$ac_help
8168de4c 327 --enable-fontdlg use wxFontDialog"
1e6feb95 328ac_help="$ac_help
8168de4c 329 --enable-dirdlg use wxDirDialog"
698dcdb6 330ac_help="$ac_help
8168de4c 331 --enable-msgdlg use wxMessageDialog"
1e6feb95 332ac_help="$ac_help
8168de4c 333 --enable-numberdlg use wxNumberEntryDialog"
cbca9943
VZ
334ac_help="$ac_help
335 --enable-splash use wxSplashScreen"
1e6feb95 336ac_help="$ac_help
8168de4c 337 --enable-textdlg use wxTextDialog"
698dcdb6 338ac_help="$ac_help
8168de4c 339 --enable-tipdlg use startup tips"
698dcdb6 340ac_help="$ac_help
8168de4c 341 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
342ac_help="$ac_help
343 --enable-wizarddlg use wxWizard"
698dcdb6 344ac_help="$ac_help
8168de4c 345 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 346ac_help="$ac_help
8168de4c 347 --enable-miniframe use wxMiniFrame class"
698dcdb6 348ac_help="$ac_help
8168de4c 349 --enable-tooltips use wxToolTip class"
698dcdb6 350ac_help="$ac_help
8168de4c 351 --enable-splines use spline drawing code"
698dcdb6 352ac_help="$ac_help
8168de4c 353 --enable-validators use wxValidator and derived classes"
698dcdb6 354ac_help="$ac_help
8168de4c 355 --enable-busyinfo use wxBusyInfo"
698dcdb6 356ac_help="$ac_help
8168de4c 357 --enable-joystick compile in joystick support (Linux only)"
698dcdb6 358ac_help="$ac_help
8168de4c 359 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
360ac_help="$ac_help
361 --enable-dragimage use wxDragImage"
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
cbca9943 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
cbca9943 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
cbca9943 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
VZ
1061PROGRAM_EXT=
1062
10f2d63a
VZ
1063case "${host}" in
1064 *-hp-hpux* )
1065 USE_HPUX=1
1066 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1067 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
698dcdb6 1068 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1069#define __HPUX__ 1
1070EOF
1071
1072 ;;
1073 *-*-linux* )
1074 USE_LINUX=1
698dcdb6 1075 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1076#define __LINUX__ 1
1077EOF
1078
1079 TMP=`uname -m`
1080 if test "x$TMP" = "xalpha"; then
1081 USE_ALPHA=1
698dcdb6 1082 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1083#define __ALPHA__ 1
1084EOF
1085
1086 fi
1087 DEFAULT_DEFAULT_wxUSE_GTK=1
1088 ;;
1089 *-*-irix5* | *-*-irix6* )
1090 USE_SGI=1
1091 USE_SVR4=1
698dcdb6 1092 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1093#define __SGI__ 1
1094EOF
1095
698dcdb6 1096 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1097#define __SVR4__ 1
1098EOF
1099
1100 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1101 ;;
1102 *-*-solaris2* )
1103 USE_SUN=1
1104 USE_SOLARIS=1
1105 USE_SVR4=1
698dcdb6 1106 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1107#define __SUN__ 1
1108EOF
1109
698dcdb6 1110 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1111#define __SOLARIS__ 1
1112EOF
1113
698dcdb6 1114 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1115#define __SVR4__ 1
1116EOF
1117
1118 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1119 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1120 ;;
1121 *-*-sunos4* )
1122 USE_SUN=1
1123 USE_SUNOS=1
1124 USE_BSD=1
698dcdb6 1125 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1126#define __SUN__ 1
1127EOF
1128
698dcdb6 1129 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1130#define __SUNOS__ 1
1131EOF
1132
698dcdb6 1133 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1134#define __BSD__ 1
1135EOF
1136
1137 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1138 ;;
f6bcfd97 1139 *-*-freebsd*)
10f2d63a
VZ
1140 USE_BSD=1
1141 USE_FREEBSD=1
698dcdb6 1142 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1143#define __FREEBSD__ 1
1144EOF
1145
698dcdb6 1146 cat >> confdefs.h <<\EOF
10f2d63a 1147#define __BSD__ 1
95c8801c
VS
1148EOF
1149
1150 DEFAULT_DEFAULT_wxUSE_GTK=1
1151 ;;
1152 *-*-openbsd*)
1153 USE_BSD=1
1154 USE_OPENBSD=1
698dcdb6 1155 cat >> confdefs.h <<\EOF
95c8801c
VS
1156#define __FREEBSD__ 1
1157EOF
1158
698dcdb6 1159 cat >> confdefs.h <<\EOF
95c8801c 1160#define __OPENBSD__ 1
f6bcfd97
BP
1161EOF
1162
1163 DEFAULT_DEFAULT_wxUSE_GTK=1
1164 ;;
1165 *-*-netbsd*)
1166 USE_BSD=1
1167 USE_NETBSD=1
698dcdb6 1168 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1169#define __FREEBSD__ 1
1170EOF
1171
698dcdb6 1172 cat >> confdefs.h <<\EOF
f6bcfd97 1173#define __NETBSD__ 1
10f2d63a
VZ
1174EOF
1175
1176 DEFAULT_DEFAULT_wxUSE_GTK=1
1177 ;;
1178 *-*-osf* )
1179 USE_ALPHA=1
1180 USE_OSF=1
698dcdb6 1181 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1182#define __ALPHA__ 1
1183EOF
1184
698dcdb6 1185 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1186#define __OSF__ 1
1187EOF
1188
1189 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1190 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1191 ;;
1192 *-*-dgux5* )
1193 USE_ALPHA=1
1194 USE_SVR4=1
698dcdb6 1195 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1196#define __ALPHA__ 1
1197EOF
1198
698dcdb6 1199 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1200#define __SVR4__ 1
1201EOF
1202
1203 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1204 ;;
1205 *-*-sysv5* )
1206 USE_SYSV=1
1207 USE_SVR4=1
698dcdb6 1208 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1209#define __SYSV__ 1
1210EOF
1211
698dcdb6 1212 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1213#define __SVR4__ 1
1214EOF
1215
1216 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1217 ;;
1218 *-*-aix* )
1219 USE_AIX=1
1220 USE_SYSV=1
1221 USE_SVR4=1
698dcdb6 1222 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1223#define __AIX__ 1
1224EOF
1225
698dcdb6 1226 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1227#define __SYSV__ 1
1228EOF
1229
698dcdb6 1230 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1231#define __SVR4__ 1
1232EOF
1233
1234 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1235 ;;
1236
1c8183e2 1237 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1238 USE_UNIX=0
1239 USE_WIN32=1
698dcdb6 1240 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1241#define __WIN32__ 1
1242EOF
1243
698dcdb6 1244 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1245#define __WIN95__ 1
1246EOF
1247
698dcdb6 1248 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1249#define __WINDOWS__ 1
1250EOF
1251
698dcdb6 1252 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1253#define __GNUWIN32__ 1
1254EOF
1255
698dcdb6 1256 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1257#define STRICT 1
1258EOF
1259
698dcdb6 1260 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1261#define WINVER 0x0400
1262EOF
1263
cf27ef00 1264 PROGRAM_EXT=".exe"
10f2d63a
VZ
1265 DEFAULT_DEFAULT_wxUSE_MSW=1
1266 ;;
1267
1268 *-pc-os2_emx )
698dcdb6 1269 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1270#define __EMX__ 1
1271EOF
1272
cf27ef00 1273 PROGRAM_EXT=".exe"
e07802fc 1274 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1275 ;;
1276
b4085ce6
GD
1277 *-*-darwin* )
1278 USE_BSD=1
f11bdd03 1279 USE_DARWIN=1
698dcdb6 1280 cat >> confdefs.h <<\EOF
f11bdd03 1281#define __BSD__ 1
b4085ce6
GD
1282EOF
1283
698dcdb6 1284 cat >> confdefs.h <<\EOF
f11bdd03 1285#define __DARWIN__ 1
b4085ce6
GD
1286EOF
1287
698dcdb6 1288 cat >> confdefs.h <<\EOF
b4085ce6
GD
1289#define __UNIX__ 1
1290EOF
1291
1292 DEFAULT_DEFAULT_wxUSE_MAC=1
1293 ;;
1294
b12915c1
VZ
1295 *-*-beos* )
1296 USE_BEOS=1
698dcdb6 1297 cat >> confdefs.h <<\EOF
b12915c1
VZ
1298#define __BEOS__ 1
1299EOF
1300
1301 ;;
1302
10f2d63a 1303 *)
698dcdb6 1304 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1305esac
1306
1307if test "$USE_UNIX" = 1 ; then
b12915c1 1308 wxUSE_UNIX=yes
698dcdb6 1309 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1310#define __UNIX__ 1
1311EOF
1312
698dcdb6 1313
b12915c1
VZ
1314 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1315 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1316fi
1317
1318if test "$USE_BEOS" = 1; then
1319 SRC_SUBDIRS="$SRC_SUBDIRS be"
1320 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1321fi
1322
2389f33b
VZ
1323if test "$USE_LINUX" = 1; then
1324 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
1325echo "configure:1326: checking for glibc 2.1 or later" >&5
1326if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1327 echo $ac_n "(cached) $ac_c" 1>&6
1328else
1329 cat > conftest.$ac_ext <<EOF
1330#line 1331 "configure"
1331#include "confdefs.h"
1332#include <features.h>
1333int main() {
1334
1335 #if !__GLIBC_PREREQ(2, 1)
1336 #error not glibc2.1
1337 #endif
1338
1339; return 0; }
1340EOF
1341if { (eval echo configure:1342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1342 rm -rf conftest*
1343
1344 wx_lib_glibc21=yes
1345
1346else
1347 echo "configure: failed program was:" >&5
1348 cat conftest.$ac_ext >&5
1349 rm -rf conftest*
1350
1351 wx_lib_glibc21=no
1352
1353
1354fi
1355rm -f conftest*
1356
1357fi
1358
1359echo "$ac_t""$wx_lib_glibc21" 1>&6
1360
1361 if test "$wx_lib_glibc21" = "yes"; then
1362 cat >> confdefs.h <<\EOF
1363#define wxHAVE_GLIBC2 1
1364EOF
1365
1366 fi
1367fi
10f2d63a 1368
1e487827 1369
1e487827 1370
6232543b 1371
10f2d63a
VZ
1372 wx_arg_cache_file="configarg.cache"
1373 echo "loading argument cache $wx_arg_cache_file"
1374 rm -f ${wx_arg_cache_file}.tmp
1375 touch ${wx_arg_cache_file}.tmp
1376 touch ${wx_arg_cache_file}
698dcdb6 1377
10f2d63a
VZ
1378
1379DEBUG_CONFIGURE=0
1380if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1381 DEFAULT_wxUSE_UNIVERSAL=no
1382
10f2d63a
VZ
1383 DEFAULT_wxUSE_THREADS=yes
1384
1385 DEFAULT_wxUSE_SHARED=yes
00cf1208 1386 DEFAULT_wxUSE_BURNT_NAME=no
1e6feb95 1387 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1388 DEFAULT_wxUSE_PROFILE=no
1389 DEFAULT_wxUSE_NO_DEPS=no
1390 DEFAULT_wxUSE_NO_RTTI=no
1391 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1392 DEFAULT_wxUSE_PERMISSIVE=no
1393 DEFAULT_wxUSE_DEBUG_FLAG=yes
1394 DEFAULT_wxUSE_DEBUG_INFO=yes
1395 DEFAULT_wxUSE_DEBUG_GDB=yes
1396 DEFAULT_wxUSE_MEM_TRACING=no
1397 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1398 DEFAULT_wxUSE_DMALLOC=no
1399 DEFAULT_wxUSE_APPLE_IEEE=no
1400
1401 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1402 DEFAULT_wxUSE_LOGWINDOW=no
1403 DEFAULT_wxUSE_LOGGUI=no
10f2d63a
VZ
1404
1405 DEFAULT_wxUSE_GUI=yes
1e6feb95 1406 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1407
3e44f09d 1408 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1409 DEFAULT_wxUSE_ZLIB=no
1410 DEFAULT_wxUSE_LIBPNG=no
1411 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1412 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1413 DEFAULT_wxUSE_ODBC=no
3fed1840 1414 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1415 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1416
eb4efbdc 1417 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1418 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1419 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1420 DEFAULT_wxUSE_CMDLINE_PARSER=no
1421 DEFAULT_wxUSE_DATETIME=no
1422 DEFAULT_wxUSE_TIMEDATE=no
1423 DEFAULT_wxUSE_TIMER=no
1424 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1425 DEFAULT_wxUSE_FILE=no
1e6feb95 1426 DEFAULT_wxUSE_FFILE=no
10f2d63a 1427 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1428 DEFAULT_wxUSE_WAVE=no
1429 DEFAULT_wxUSE_INTL=no
1430 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1431 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1432 DEFAULT_wxUSE_STREAMS=no
1433 DEFAULT_wxUSE_SOCKETS=no
1434 DEFAULT_wxUSE_DIALUP_MANAGER=no
1435 DEFAULT_wxUSE_SERIAL=no
1436 DEFAULT_wxUSE_JOYSTICK=no
1437 DEFAULT_wxUSE_DYNLIB_CLASS=no
1438 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1439 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1440
1441 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1442 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1443 DEFAULT_wxUSE_POSTSCRIPT=no
1444
1445 DEFAULT_wxUSE_X_RESOURCES=no
1446 DEFAULT_wxUSE_CLIPBOARD=no
1447 DEFAULT_wxUSE_TOOLTIPS=no
1448 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1449 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1450 DEFAULT_wxUSE_SPLINES=no
1451
1452 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1453 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1454 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1455
1456 DEFAULT_wxUSE_PROLOGIO=no
1457 DEFAULT_wxUSE_RESOURCES=no
1458 DEFAULT_wxUSE_CONSTRAINTS=no
1459 DEFAULT_wxUSE_IPC=no
1460 DEFAULT_wxUSE_HELP=no
29fd3c0c 1461 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1462 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1463 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1464 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1465 DEFAULT_wxUSE_MIMETYPE=no
3e44f09d 1466 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1467
1468 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1469 DEFAULT_wxUSE_CHOICEDLG=no
1470 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1471 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1472 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1473 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1474 DEFAULT_wxUSE_FONTDLG=no
1475 DEFAULT_wxUSE_MSGDLG=no
1476 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1477 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1478 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1479 DEFAULT_wxUSE_STARTUP_TIPS=no
1480 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1481 DEFAULT_wxUSE_WIZARDDLG=no
1482
1e6feb95 1483 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1484 DEFAULT_wxUSE_MINIFRAME=no
1485 DEFAULT_wxUSE_HTML=no
24528b0c 1486 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1487 DEFAULT_wxUSE_FS_INET=no
1488 DEFAULT_wxUSE_FS_ZIP=no
1489 DEFAULT_wxUSE_BUSYINFO=no
1490 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1491 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1492
1493 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1494 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1495 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1496 DEFAULT_wxUSE_CALCTRL=no
1497 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1498 DEFAULT_wxUSE_CHECKBOX=no
1499 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1500 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1501 DEFAULT_wxUSE_COMBOBOX=no
1502 DEFAULT_wxUSE_GAUGE=no
1503 DEFAULT_wxUSE_GRID=no
1504 DEFAULT_wxUSE_NEW_GRID=no
1505 DEFAULT_wxUSE_IMAGLIST=no
1506 DEFAULT_wxUSE_LISTBOX=no
1507 DEFAULT_wxUSE_LISTCTRL=no
1508 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1509 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1510 DEFAULT_wxUSE_RADIOBOX=no
1511 DEFAULT_wxUSE_RADIOBTN=no
1512 DEFAULT_wxUSE_SASH=no
1513 DEFAULT_wxUSE_SCROLLBAR=no
1514 DEFAULT_wxUSE_SLIDER=no
1515 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1516 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1517 DEFAULT_wxUSE_SPLITTER=no
1518 DEFAULT_wxUSE_STATBMP=no
1519 DEFAULT_wxUSE_STATBOX=no
1520 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1521 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1522 DEFAULT_wxUSE_STATUSBAR=yes
1523 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1524 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1525 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1526 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1527 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1528 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1529 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1530 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
1531
1532 DEFAULT_wxUSE_UNICODE=no
1533 DEFAULT_wxUSE_WCSRTOMBS=no
1534
0046ff7c 1535 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1536 DEFAULT_wxUSE_GIF=no
1537 DEFAULT_wxUSE_PCX=no
1538 DEFAULT_wxUSE_PNM=no
0046ff7c 1539 DEFAULT_wxUSE_XPM=no
10f2d63a 1540else
1e6feb95
VZ
1541 DEFAULT_wxUSE_UNIVERSAL=no
1542
10f2d63a
VZ
1543 DEFAULT_wxUSE_THREADS=yes
1544
1545 DEFAULT_wxUSE_SHARED=yes
00cf1208 1546 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1547 DEFAULT_wxUSE_OPTIMISE=yes
1548 DEFAULT_wxUSE_PROFILE=no
1549 DEFAULT_wxUSE_NO_DEPS=no
1550 DEFAULT_wxUSE_NO_RTTI=no
1551 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1552 DEFAULT_wxUSE_PERMISSIVE=no
1553 DEFAULT_wxUSE_DEBUG_FLAG=no
1554 DEFAULT_wxUSE_DEBUG_INFO=no
1555 DEFAULT_wxUSE_DEBUG_GDB=no
1556 DEFAULT_wxUSE_MEM_TRACING=no
1557 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1558 DEFAULT_wxUSE_DMALLOC=no
1559 DEFAULT_wxUSE_APPLE_IEEE=yes
1560
1561 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1562 DEFAULT_wxUSE_LOGWINDOW=yes
1563 DEFAULT_wxUSE_LOGGUI=yes
10f2d63a
VZ
1564
1565 DEFAULT_wxUSE_GUI=yes
1566
831b3152 1567 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1568 DEFAULT_wxUSE_ZLIB=yes
1569 DEFAULT_wxUSE_LIBPNG=yes
1570 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1571 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1572 DEFAULT_wxUSE_ODBC=no
3fed1840 1573 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1574 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1575
eb4efbdc 1576 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1577 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1578 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1579 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1580 DEFAULT_wxUSE_DATETIME=yes
1581 DEFAULT_wxUSE_TIMEDATE=no
1582 DEFAULT_wxUSE_TIMER=yes
1583 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1584 DEFAULT_wxUSE_FILE=yes
1e6feb95 1585 DEFAULT_wxUSE_FFILE=yes
10f2d63a 1586 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1587 DEFAULT_wxUSE_WAVE=no
1588 DEFAULT_wxUSE_INTL=yes
1589 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1590 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1591 DEFAULT_wxUSE_STREAMS=yes
1592 DEFAULT_wxUSE_SOCKETS=yes
1593 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1594 DEFAULT_wxUSE_SERIAL=yes
1595 DEFAULT_wxUSE_JOYSTICK=yes
1596 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1597 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1598 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1599
1600 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1601 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1602 DEFAULT_wxUSE_POSTSCRIPT=yes
1603
1604 DEFAULT_wxUSE_X_RESOURCES=no
1605 DEFAULT_wxUSE_CLIPBOARD=yes
1606 DEFAULT_wxUSE_TOOLTIPS=yes
1607 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1608 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1609 DEFAULT_wxUSE_SPLINES=yes
1610
1611 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1612 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1613 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1614
1615 DEFAULT_wxUSE_PROLOGIO=yes
1616 DEFAULT_wxUSE_RESOURCES=yes
1617 DEFAULT_wxUSE_CONSTRAINTS=yes
1618 DEFAULT_wxUSE_IPC=yes
1619 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1620 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1621 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1622 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1623 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1624 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1625 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1626
1627 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1628 DEFAULT_wxUSE_CHOICEDLG=yes
1629 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1630 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1631 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1632 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1633 DEFAULT_wxUSE_FONTDLG=yes
1634 DEFAULT_wxUSE_MSGDLG=yes
1635 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1636 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1637 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1638 DEFAULT_wxUSE_STARTUP_TIPS=yes
1639 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1640 DEFAULT_wxUSE_WIZARDDLG=yes
1641
1e6feb95 1642 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1643 DEFAULT_wxUSE_MINIFRAME=yes
1644 DEFAULT_wxUSE_HTML=yes
24528b0c 1645 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1646 DEFAULT_wxUSE_FS_INET=yes
1647 DEFAULT_wxUSE_FS_ZIP=yes
1648 DEFAULT_wxUSE_BUSYINFO=yes
1649 DEFAULT_wxUSE_ZIPSTREAM=yes
1650 DEFAULT_wxUSE_VALIDATORS=yes
1651
1652 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1653 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1654 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1655 DEFAULT_wxUSE_CALCTRL=yes
1656 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1657 DEFAULT_wxUSE_CHECKBOX=yes
1658 DEFAULT_wxUSE_CHECKLST=yes
1659 DEFAULT_wxUSE_CHOICE=yes
1660 DEFAULT_wxUSE_COMBOBOX=yes
1661 DEFAULT_wxUSE_GAUGE=yes
1662 DEFAULT_wxUSE_GRID=yes
cc977e5f 1663 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1664 DEFAULT_wxUSE_IMAGLIST=yes
1665 DEFAULT_wxUSE_LISTBOX=yes
1666 DEFAULT_wxUSE_LISTCTRL=yes
1667 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1668 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1669 DEFAULT_wxUSE_RADIOBOX=yes
1670 DEFAULT_wxUSE_RADIOBTN=yes
1671 DEFAULT_wxUSE_SASH=yes
1672 DEFAULT_wxUSE_SCROLLBAR=yes
1673 DEFAULT_wxUSE_SLIDER=yes
1674 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1675 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1676 DEFAULT_wxUSE_SPLITTER=yes
1677 DEFAULT_wxUSE_STATBMP=yes
1678 DEFAULT_wxUSE_STATBOX=yes
1679 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1680 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1681 DEFAULT_wxUSE_STATUSBAR=yes
1682 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1683 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1684 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1685 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1686 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1687 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1688 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1689 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
1690
1691 DEFAULT_wxUSE_UNICODE=no
1692 DEFAULT_wxUSE_WCSRTOMBS=no
1693
0046ff7c 1694 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1695 DEFAULT_wxUSE_GIF=yes
1696 DEFAULT_wxUSE_PCX=yes
1697 DEFAULT_wxUSE_PNM=yes
0046ff7c 1698 DEFAULT_wxUSE_XPM=yes
10f2d63a
VZ
1699fi
1700
698dcdb6
VZ
1701
1702
10f2d63a
VZ
1703for toolkit in `echo $ALL_TOOLKITS`; do
1704 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1705 if test "x$LINE" != x ; then
1706 has_toolkit_in_cache=1
1707 eval "DEFAULT_$LINE"
1708 eval "CACHE_$toolkit=1"
1709 fi
1710done
1711
698dcdb6
VZ
1712
1713
1714 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
2389f33b 1715echo "configure:1716: checking for --enable-gui" >&5
10f2d63a
VZ
1716 no_cache=0
1717 # Check whether --enable-gui or --disable-gui was given.
1718if test "${enable_gui+set}" = set; then
1719 enableval="$enable_gui"
698dcdb6 1720
10f2d63a
VZ
1721 if test "$enableval" = yes; then
1722 ac_cv_use_gui='wxUSE_GUI=yes'
1723 else
1724 ac_cv_use_gui='wxUSE_GUI=no'
1725 fi
698dcdb6 1726
10f2d63a 1727else
698dcdb6 1728
10f2d63a
VZ
1729 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1730 if test "x$LINE" != x ; then
1731 eval "DEFAULT_$LINE"
1732 else
1733 no_cache=1
1734 fi
1735
1736 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1737
1738fi
10f2d63a
VZ
1739
1740
1741 eval "$ac_cv_use_gui"
1742 if test "$no_cache" != 1; then
1743 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1744 fi
1745
1746 if test "$wxUSE_GUI" = yes; then
698dcdb6 1747 echo "$ac_t""yes" 1>&6
10f2d63a 1748 else
698dcdb6 1749 echo "$ac_t""no" 1>&6
10f2d63a 1750 fi
698dcdb6 1751
10f2d63a 1752
b12915c1 1753if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1754
1e6feb95
VZ
1755
1756 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
2389f33b 1757echo "configure:1758: checking for --enable-universal" >&5
1e6feb95
VZ
1758 no_cache=0
1759 # Check whether --enable-universal or --disable-universal was given.
1760if test "${enable_universal+set}" = set; then
1761 enableval="$enable_universal"
1762
1763 if test "$enableval" = yes; then
1764 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1765 else
1766 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1767 fi
1768
1769else
1770
1771 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1772 if test "x$LINE" != x ; then
1773 eval "DEFAULT_$LINE"
1774 else
1775 no_cache=1
1776 fi
1777
1778 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1779
1780fi
1781
1782
1783 eval "$ac_cv_use_universal"
1784 if test "$no_cache" != 1; then
1785 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1786 fi
1787
1788 if test "$wxUSE_UNIVERSAL" = yes; then
1789 echo "$ac_t""yes" 1>&6
1790 else
1791 echo "$ac_t""no" 1>&6
1792 fi
1793
10f2d63a
VZ
1794# Check whether --with-gtk or --without-gtk was given.
1795if test "${with_gtk+set}" = set; then
1796 withval="$with_gtk"
1797 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1798fi
10f2d63a
VZ
1799
1800# Check whether --with-motif or --without-motif was given.
1801if test "${with_motif+set}" = set; then
1802 withval="$with_motif"
1803 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1804fi
10f2d63a 1805
b4085ce6
GD
1806# Check whether --with-mac or --without-mac was given.
1807if test "${with_mac+set}" = set; then
1808 withval="$with_mac"
1809 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1810fi
b4085ce6 1811
10f2d63a
VZ
1812# Check whether --with-wine or --without-wine was given.
1813if test "${with_wine+set}" = set; then
1814 withval="$with_wine"
1815 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1816fi
10f2d63a
VZ
1817
1818# Check whether --with-cygwin or --without-cygwin was given.
1819if test "${with_cygwin+set}" = set; then
1820 withval="$with_cygwin"
1821 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
698dcdb6 1822fi
10f2d63a
VZ
1823
1824# Check whether --with-mingw or --without-mingw was given.
1825if test "${with_mingw+set}" = set; then
1826 withval="$with_mingw"
1827 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
698dcdb6 1828fi
10f2d63a 1829
e07802fc
VZ
1830# Check whether --with-pm or --without-pm was given.
1831if test "${with_pm+set}" = set; then
1832 withval="$with_pm"
1833 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1834fi
1835
1e6feb95
VZ
1836# Check whether --with-mgl or --without-mgl was given.
1837if test "${with_mgl+set}" = set; then
1838 withval="$with_mgl"
1839 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1840fi
1841
10f2d63a 1842
8168de4c
VZ
1843# Check whether --enable-gtk2 or --disable-gtk2 was given.
1844if test "${enable_gtk2+set}" = set; then
1845 enableval="$enable_gtk2"
1846 wxUSE_GTK2=1
10f2d63a 1847else
8168de4c 1848 wxUSE_GTK2=0
698dcdb6
VZ
1849fi
1850
703e0a69 1851
1e487827 1852
698dcdb6 1853 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
2389f33b 1854echo "configure:1855: checking for --with-libpng" >&5
698dcdb6
VZ
1855 no_cache=0
1856 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1857if test "${with_libpng+set}" = set; then
1858 withval="$with_libpng"
698dcdb6 1859
10f2d63a 1860 if test "$withval" = yes; then
b12915c1 1861 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1862 elif test "$withval" = no; then
b12915c1 1863 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1864 elif test "$withval" = sys; then
1865 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1866 else
698dcdb6 1867 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1868 fi
698dcdb6 1869
10f2d63a 1870else
698dcdb6 1871
b12915c1 1872 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1873 if test "x$LINE" != x ; then
1874 eval "DEFAULT_$LINE"
1875 else
1876 no_cache=1
1877 fi
1878
b12915c1 1879 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1880
1881fi
10f2d63a
VZ
1882
1883
b12915c1 1884 eval "$ac_cv_use_libpng"
10f2d63a 1885 if test "$no_cache" != 1; then
b12915c1 1886 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1887 fi
1888
b12915c1 1889 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1890 echo "$ac_t""yes" 1>&6
422107f9 1891 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1892 echo "$ac_t""no" 1>&6
422107f9 1893 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1894 echo "$ac_t""system version" 1>&6
422107f9 1895 else
698dcdb6 1896 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1897 fi
698dcdb6 1898
10f2d63a 1899
698dcdb6 1900 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2389f33b 1901echo "configure:1902: checking for --with-libjpeg" >&5
10f2d63a 1902 no_cache=0
698dcdb6 1903 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1904if test "${with_libjpeg+set}" = set; then
1905 withval="$with_libjpeg"
698dcdb6 1906
10f2d63a 1907 if test "$withval" = yes; then
b12915c1 1908 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1909 elif test "$withval" = no; then
b12915c1 1910 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1911 elif test "$withval" = sys; then
1912 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1913 else
698dcdb6 1914 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1915 fi
698dcdb6 1916
10f2d63a 1917else
698dcdb6 1918
b12915c1 1919 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1920 if test "x$LINE" != x ; then
1921 eval "DEFAULT_$LINE"
1922 else
1923 no_cache=1
1924 fi
1925
b12915c1 1926 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
1927
1928fi
10f2d63a
VZ
1929
1930
b12915c1 1931 eval "$ac_cv_use_libjpeg"
10f2d63a 1932 if test "$no_cache" != 1; then
b12915c1 1933 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1934 fi
1935
b12915c1 1936 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 1937 echo "$ac_t""yes" 1>&6
422107f9 1938 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 1939 echo "$ac_t""no" 1>&6
422107f9 1940 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 1941 echo "$ac_t""system version" 1>&6
422107f9 1942 else
698dcdb6 1943 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1944 fi
698dcdb6 1945
10f2d63a 1946
698dcdb6 1947 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2389f33b 1948echo "configure:1949: checking for --with-libtiff" >&5
10f2d63a 1949 no_cache=0
698dcdb6 1950 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
1951if test "${with_libtiff+set}" = set; then
1952 withval="$with_libtiff"
698dcdb6 1953
10f2d63a 1954 if test "$withval" = yes; then
b12915c1 1955 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1956 elif test "$withval" = no; then
b12915c1 1957 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1958 elif test "$withval" = sys; then
1959 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1960 else
698dcdb6 1961 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1962 fi
698dcdb6 1963
10f2d63a 1964else
698dcdb6 1965
b12915c1 1966 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1967 if test "x$LINE" != x ; then
1968 eval "DEFAULT_$LINE"
1969 else
1970 no_cache=1
1971 fi
1972
b12915c1 1973 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
1974
1975fi
10f2d63a
VZ
1976
1977
b12915c1 1978 eval "$ac_cv_use_libtiff"
10f2d63a 1979 if test "$no_cache" != 1; then
b12915c1 1980 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1981 fi
1982
b12915c1 1983 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 1984 echo "$ac_t""yes" 1>&6
0dcf9893 1985 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 1986 echo "$ac_t""no" 1>&6
0dcf9893 1987 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 1988 echo "$ac_t""system version" 1>&6
0dcf9893 1989 else
698dcdb6 1990 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1991 fi
698dcdb6 1992
10f2d63a 1993
698dcdb6 1994 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
2389f33b 1995echo "configure:1996: checking for --with-freetype" >&5
3fed1840 1996 no_cache=0
698dcdb6 1997 # Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
1998if test "${with_freetype+set}" = set; then
1999 withval="$with_freetype"
698dcdb6 2000
3fed1840
RR
2001 if test "$withval" = yes; then
2002 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2003 elif test "$withval" = no; then
2004 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2005 elif test "$withval" = sys; then
2006 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
2007 else
698dcdb6 2008 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 2009 fi
698dcdb6 2010
3fed1840 2011else
698dcdb6 2012
3fed1840
RR
2013 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2014 if test "x$LINE" != x ; then
2015 eval "DEFAULT_$LINE"
2016 else
2017 no_cache=1
2018 fi
2019
2020 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
698dcdb6
VZ
2021
2022fi
3fed1840
RR
2023
2024
2025 eval "$ac_cv_use_freetype"
2026 if test "$no_cache" != 1; then
2027 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2028 fi
2029
2030 if test "$wxUSE_FREETYPE" = yes; then
698dcdb6 2031 echo "$ac_t""yes" 1>&6
3fed1840 2032 elif test "$wxUSE_FREETYPE" = no; then
698dcdb6 2033 echo "$ac_t""no" 1>&6
3fed1840 2034 elif test "$wxUSE_FREETYPE" = sys; then
698dcdb6 2035 echo "$ac_t""system version" 1>&6
3fed1840 2036 else
698dcdb6 2037 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 2038 fi
698dcdb6 2039
3fed1840 2040
698dcdb6 2041 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2389f33b 2042echo "configure:2043: checking for --with-opengl" >&5
10f2d63a 2043 no_cache=0
698dcdb6 2044 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2045if test "${with_opengl+set}" = set; then
2046 withval="$with_opengl"
698dcdb6 2047
10f2d63a 2048 if test "$withval" = yes; then
b12915c1 2049 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2050 else
b12915c1 2051 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2052 fi
698dcdb6 2053
10f2d63a 2054else
698dcdb6 2055
b12915c1 2056 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2057 if test "x$LINE" != x ; then
2058 eval "DEFAULT_$LINE"
2059 else
2060 no_cache=1
2061 fi
2062
b12915c1 2063 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2064
2065fi
10f2d63a
VZ
2066
2067
b12915c1 2068 eval "$ac_cv_use_opengl"
10f2d63a 2069 if test "$no_cache" != 1; then
b12915c1 2070 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2071 fi
2072
b12915c1 2073 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2074 echo "$ac_t""yes" 1>&6
10f2d63a 2075 else
698dcdb6 2076 echo "$ac_t""no" 1>&6
10f2d63a 2077 fi
698dcdb6 2078
10f2d63a 2079
b12915c1
VZ
2080fi
2081
1e487827 2082
698dcdb6 2083 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2389f33b 2084echo "configure:2085: checking for --with-dmalloc" >&5
698dcdb6
VZ
2085 no_cache=0
2086 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2087if test "${with_dmalloc+set}" = set; then
2088 withval="$with_dmalloc"
698dcdb6 2089
c7a2bf27 2090 if test "$withval" = yes; then
b12915c1 2091 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2092 else
b12915c1 2093 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2094 fi
698dcdb6 2095
c7a2bf27 2096else
698dcdb6 2097
b12915c1 2098 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2099 if test "x$LINE" != x ; then
2100 eval "DEFAULT_$LINE"
2101 else
2102 no_cache=1
2103 fi
2104
b12915c1 2105 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2106
2107fi
c7a2bf27
RR
2108
2109
b12915c1 2110 eval "$ac_cv_use_dmalloc"
c7a2bf27 2111 if test "$no_cache" != 1; then
b12915c1 2112 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2113 fi
2114
b12915c1 2115 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2116 echo "$ac_t""yes" 1>&6
c7a2bf27 2117 else
698dcdb6 2118 echo "$ac_t""no" 1>&6
c7a2bf27 2119 fi
698dcdb6 2120
c7a2bf27 2121
3e44f09d 2122 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2389f33b 2123echo "configure:2124: checking for --with-regex" >&5
3e44f09d
VZ
2124 no_cache=0
2125 # Check whether --with-regex or --without-regex was given.
2126if test "${with_regex+set}" = set; then
2127 withval="$with_regex"
2128
2129 if test "$withval" = yes; then
2130 ac_cv_use_regex='wxUSE_REGEX=yes'
2131 elif test "$withval" = no; then
2132 ac_cv_use_regex='wxUSE_REGEX=no'
2133 elif test "$withval" = sys; then
2134 ac_cv_use_regex='wxUSE_REGEX=sys'
2135 else
2136 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2137 fi
2138
2139else
2140
2141 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2142 if test "x$LINE" != x ; then
2143 eval "DEFAULT_$LINE"
2144 else
2145 no_cache=1
2146 fi
2147
2148 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2149
2150fi
2151
2152
2153 eval "$ac_cv_use_regex"
2154 if test "$no_cache" != 1; then
2155 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2156 fi
2157
2158 if test "$wxUSE_REGEX" = yes; then
2159 echo "$ac_t""yes" 1>&6
2160 elif test "$wxUSE_REGEX" = no; then
2161 echo "$ac_t""no" 1>&6
2162 elif test "$wxUSE_REGEX" = sys; then
2163 echo "$ac_t""system version" 1>&6
2164 else
2165 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2166 fi
2167
2168
698dcdb6 2169 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2389f33b 2170echo "configure:2171: checking for --with-zlib" >&5
10f2d63a 2171 no_cache=0
698dcdb6 2172 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2173if test "${with_zlib+set}" = set; then
2174 withval="$with_zlib"
698dcdb6 2175
10f2d63a 2176 if test "$withval" = yes; then
b12915c1 2177 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2178 elif test "$withval" = no; then
b12915c1 2179 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2180 elif test "$withval" = sys; then
2181 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2182 else
698dcdb6 2183 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2184 fi
698dcdb6 2185
10f2d63a 2186else
698dcdb6 2187
b12915c1 2188 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2189 if test "x$LINE" != x ; then
2190 eval "DEFAULT_$LINE"
2191 else
2192 no_cache=1
2193 fi
2194
b12915c1 2195 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2196
2197fi
10f2d63a
VZ
2198
2199
b12915c1 2200 eval "$ac_cv_use_zlib"
10f2d63a 2201 if test "$no_cache" != 1; then
b12915c1 2202 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2203 fi
2204
b12915c1 2205 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2206 echo "$ac_t""yes" 1>&6
422107f9 2207 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2208 echo "$ac_t""no" 1>&6
422107f9 2209 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2210 echo "$ac_t""system version" 1>&6
422107f9 2211 else
698dcdb6 2212 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2213 fi
698dcdb6 2214
10f2d63a 2215
698dcdb6 2216 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2389f33b 2217echo "configure:2218: checking for --with-odbc" >&5
10f2d63a 2218 no_cache=0
698dcdb6 2219 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2220if test "${with_odbc+set}" = set; then
2221 withval="$with_odbc"
698dcdb6 2222
10f2d63a
VZ
2223 if test "$withval" = yes; then
2224 ac_cv_use_odbc='wxUSE_ODBC=yes'
2225 else
2226 ac_cv_use_odbc='wxUSE_ODBC=no'
2227 fi
698dcdb6 2228
10f2d63a 2229else
698dcdb6 2230
10f2d63a
VZ
2231 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2232 if test "x$LINE" != x ; then
2233 eval "DEFAULT_$LINE"
2234 else
2235 no_cache=1
2236 fi
2237
2238 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2239
2240fi
10f2d63a
VZ
2241
2242
2243 eval "$ac_cv_use_odbc"
2244 if test "$no_cache" != 1; then
2245 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2246 fi
2247
2248 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2249 echo "$ac_t""yes" 1>&6
10f2d63a 2250 else
698dcdb6 2251 echo "$ac_t""no" 1>&6
10f2d63a 2252 fi
698dcdb6
VZ
2253
2254
10f2d63a 2255
698dcdb6
VZ
2256
2257
2258 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2389f33b 2259echo "configure:2260: checking for --enable-shared" >&5
10f2d63a
VZ
2260 no_cache=0
2261 # Check whether --enable-shared or --disable-shared was given.
2262if test "${enable_shared+set}" = set; then
2263 enableval="$enable_shared"
698dcdb6 2264
10f2d63a
VZ
2265 if test "$enableval" = yes; then
2266 ac_cv_use_shared='wxUSE_SHARED=yes'
2267 else
2268 ac_cv_use_shared='wxUSE_SHARED=no'
2269 fi
698dcdb6 2270
10f2d63a 2271else
698dcdb6 2272
10f2d63a
VZ
2273 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2274 if test "x$LINE" != x ; then
2275 eval "DEFAULT_$LINE"
2276 else
2277 no_cache=1
2278 fi
2279
2280 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2281
2282fi
10f2d63a
VZ
2283
2284
2285 eval "$ac_cv_use_shared"
2286 if test "$no_cache" != 1; then
2287 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2288 fi
2289
2290 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2291 echo "$ac_t""yes" 1>&6
10f2d63a 2292 else
698dcdb6 2293 echo "$ac_t""no" 1>&6
10f2d63a 2294 fi
698dcdb6 2295
10f2d63a 2296
698dcdb6 2297 echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6
2389f33b 2298echo "configure:2299: checking for --enable-burnt_name" >&5
00cf1208
RR
2299 no_cache=0
2300 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2301if test "${enable_burnt_name+set}" = set; then
2302 enableval="$enable_burnt_name"
698dcdb6 2303
00cf1208
RR
2304 if test "$enableval" = yes; then
2305 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2306 else
2307 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2308 fi
698dcdb6 2309
00cf1208 2310else
698dcdb6 2311
00cf1208
RR
2312 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2313 if test "x$LINE" != x ; then
2314 eval "DEFAULT_$LINE"
2315 else
2316 no_cache=1
2317 fi
2318
2319 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
698dcdb6
VZ
2320
2321fi
00cf1208
RR
2322
2323
2324 eval "$ac_cv_use_burnt_name"
2325 if test "$no_cache" != 1; then
2326 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2327 fi
2328
2329 if test "$wxUSE_BURNT_NAME" = yes; then
698dcdb6 2330 echo "$ac_t""yes" 1>&6
00cf1208 2331 else
698dcdb6 2332 echo "$ac_t""no" 1>&6
00cf1208 2333 fi
698dcdb6 2334
00cf1208 2335
698dcdb6 2336 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2389f33b 2337echo "configure:2338: checking for --enable-optimise" >&5
10f2d63a
VZ
2338 no_cache=0
2339 # Check whether --enable-optimise or --disable-optimise was given.
2340if test "${enable_optimise+set}" = set; then
2341 enableval="$enable_optimise"
698dcdb6 2342
10f2d63a
VZ
2343 if test "$enableval" = yes; then
2344 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2345 else
2346 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2347 fi
698dcdb6 2348
10f2d63a 2349else
698dcdb6 2350
10f2d63a
VZ
2351 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2352 if test "x$LINE" != x ; then
2353 eval "DEFAULT_$LINE"
2354 else
2355 no_cache=1
2356 fi
2357
2358 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2359
2360fi
10f2d63a
VZ
2361
2362
2363 eval "$ac_cv_use_optimise"
2364 if test "$no_cache" != 1; then
2365 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2366 fi
2367
2368 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2369 echo "$ac_t""yes" 1>&6
10f2d63a 2370 else
698dcdb6 2371 echo "$ac_t""no" 1>&6
10f2d63a 2372 fi
698dcdb6 2373
10f2d63a 2374
698dcdb6 2375 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2389f33b 2376echo "configure:2377: checking for --enable-debug" >&5
10f2d63a
VZ
2377 no_cache=0
2378 # Check whether --enable-debug or --disable-debug was given.
2379if test "${enable_debug+set}" = set; then
2380 enableval="$enable_debug"
698dcdb6 2381
10f2d63a
VZ
2382 if test "$enableval" = yes; then
2383 ac_cv_use_debug='wxUSE_DEBUG=yes'
2384 else
2385 ac_cv_use_debug='wxUSE_DEBUG=no'
2386 fi
698dcdb6 2387
10f2d63a 2388else
698dcdb6 2389
10f2d63a
VZ
2390 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2391 if test "x$LINE" != x ; then
2392 eval "DEFAULT_$LINE"
2393 else
2394 no_cache=1
2395 fi
2396
2397 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2398
2399fi
10f2d63a
VZ
2400
2401
2402 eval "$ac_cv_use_debug"
2403 if test "$no_cache" != 1; then
2404 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2405 fi
2406
2407 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2408 echo "$ac_t""yes" 1>&6
10f2d63a 2409 else
698dcdb6 2410 echo "$ac_t""no" 1>&6
10f2d63a 2411 fi
698dcdb6 2412
10f2d63a
VZ
2413
2414if test "$wxUSE_DEBUG" = "yes"; then
2415 DEFAULT_wxUSE_DEBUG_FLAG=yes
2416 DEFAULT_wxUSE_DEBUG_INFO=yes
2417elif test "$wxUSE_DEBUG" = "no"; then
2418 DEFAULT_wxUSE_DEBUG_FLAG=no
2419 DEFAULT_wxUSE_DEBUG_INFO=no
2420fi
2421
698dcdb6
VZ
2422
2423 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2389f33b 2424echo "configure:2425: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2425 no_cache=0
2426 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2427if test "${enable_debug_flag+set}" = set; then
2428 enableval="$enable_debug_flag"
698dcdb6 2429
10f2d63a
VZ
2430 if test "$enableval" = yes; then
2431 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2432 else
2433 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2434 fi
698dcdb6 2435
10f2d63a 2436else
698dcdb6 2437
10f2d63a
VZ
2438 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2439 if test "x$LINE" != x ; then
2440 eval "DEFAULT_$LINE"
2441 else
2442 no_cache=1
2443 fi
2444
2445 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2446
2447fi
10f2d63a
VZ
2448
2449
2450 eval "$ac_cv_use_debug_flag"
2451 if test "$no_cache" != 1; then
2452 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2453 fi
2454
2455 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2456 echo "$ac_t""yes" 1>&6
10f2d63a 2457 else
698dcdb6 2458 echo "$ac_t""no" 1>&6
10f2d63a 2459 fi
698dcdb6 2460
10f2d63a 2461
698dcdb6 2462 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2389f33b 2463echo "configure:2464: checking for --enable-debug_info" >&5
10f2d63a
VZ
2464 no_cache=0
2465 # Check whether --enable-debug_info or --disable-debug_info was given.
2466if test "${enable_debug_info+set}" = set; then
2467 enableval="$enable_debug_info"
698dcdb6 2468
10f2d63a
VZ
2469 if test "$enableval" = yes; then
2470 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2471 else
2472 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2473 fi
698dcdb6 2474
10f2d63a 2475else
698dcdb6 2476
10f2d63a
VZ
2477 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2478 if test "x$LINE" != x ; then
2479 eval "DEFAULT_$LINE"
2480 else
2481 no_cache=1
2482 fi
2483
2484 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2485
2486fi
10f2d63a
VZ
2487
2488
2489 eval "$ac_cv_use_debug_info"
2490 if test "$no_cache" != 1; then
2491 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2492 fi
2493
2494 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2495 echo "$ac_t""yes" 1>&6
10f2d63a 2496 else
698dcdb6 2497 echo "$ac_t""no" 1>&6
10f2d63a 2498 fi
698dcdb6 2499
10f2d63a 2500
698dcdb6 2501 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2389f33b 2502echo "configure:2503: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2503 no_cache=0
2504 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2505if test "${enable_debug_gdb+set}" = set; then
2506 enableval="$enable_debug_gdb"
698dcdb6 2507
10f2d63a
VZ
2508 if test "$enableval" = yes; then
2509 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2510 else
2511 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2512 fi
698dcdb6 2513
10f2d63a 2514else
698dcdb6 2515
10f2d63a
VZ
2516 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2517 if test "x$LINE" != x ; then
2518 eval "DEFAULT_$LINE"
2519 else
2520 no_cache=1
2521 fi
2522
2523 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2524
2525fi
10f2d63a
VZ
2526
2527
2528 eval "$ac_cv_use_debug_gdb"
2529 if test "$no_cache" != 1; then
2530 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2531 fi
2532
2533 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2534 echo "$ac_t""yes" 1>&6
10f2d63a 2535 else
698dcdb6 2536 echo "$ac_t""no" 1>&6
10f2d63a 2537 fi
698dcdb6 2538
10f2d63a 2539
698dcdb6 2540 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2389f33b 2541echo "configure:2542: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2542 no_cache=0
2543 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2544if test "${enable_debug_cntxt+set}" = set; then
2545 enableval="$enable_debug_cntxt"
698dcdb6 2546
10f2d63a
VZ
2547 if test "$enableval" = yes; then
2548 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2549 else
2550 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2551 fi
698dcdb6 2552
10f2d63a 2553else
698dcdb6 2554
10f2d63a
VZ
2555 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2556 if test "x$LINE" != x ; then
2557 eval "DEFAULT_$LINE"
2558 else
2559 no_cache=1
2560 fi
2561
2562 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2563
2564fi
10f2d63a
VZ
2565
2566
2567 eval "$ac_cv_use_debug_cntxt"
2568 if test "$no_cache" != 1; then
2569 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2570 fi
2571
2572 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2573 echo "$ac_t""yes" 1>&6
10f2d63a 2574 else
698dcdb6 2575 echo "$ac_t""no" 1>&6
10f2d63a 2576 fi
698dcdb6 2577
10f2d63a 2578
698dcdb6 2579 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2389f33b 2580echo "configure:2581: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2581 no_cache=0
2582 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2583if test "${enable_mem_tracing+set}" = set; then
2584 enableval="$enable_mem_tracing"
698dcdb6 2585
10f2d63a
VZ
2586 if test "$enableval" = yes; then
2587 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2588 else
2589 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2590 fi
698dcdb6 2591
10f2d63a 2592else
698dcdb6 2593
10f2d63a
VZ
2594 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2595 if test "x$LINE" != x ; then
2596 eval "DEFAULT_$LINE"
2597 else
2598 no_cache=1
2599 fi
2600
2601 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2602
2603fi
10f2d63a
VZ
2604
2605
2606 eval "$ac_cv_use_mem_tracing"
2607 if test "$no_cache" != 1; then
2608 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2609 fi
2610
2611 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2612 echo "$ac_t""yes" 1>&6
10f2d63a 2613 else
698dcdb6 2614 echo "$ac_t""no" 1>&6
10f2d63a 2615 fi
698dcdb6 2616
10f2d63a 2617
698dcdb6 2618 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2389f33b 2619echo "configure:2620: checking for --enable-profile" >&5
10f2d63a
VZ
2620 no_cache=0
2621 # Check whether --enable-profile or --disable-profile was given.
2622if test "${enable_profile+set}" = set; then
2623 enableval="$enable_profile"
698dcdb6 2624
10f2d63a
VZ
2625 if test "$enableval" = yes; then
2626 ac_cv_use_profile='wxUSE_PROFILE=yes'
2627 else
2628 ac_cv_use_profile='wxUSE_PROFILE=no'
2629 fi
698dcdb6 2630
10f2d63a 2631else
698dcdb6 2632
10f2d63a
VZ
2633 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2634 if test "x$LINE" != x ; then
2635 eval "DEFAULT_$LINE"
2636 else
2637 no_cache=1
2638 fi
2639
2640 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2641
2642fi
10f2d63a
VZ
2643
2644
2645 eval "$ac_cv_use_profile"
2646 if test "$no_cache" != 1; then
2647 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2648 fi
2649
2650 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2651 echo "$ac_t""yes" 1>&6
10f2d63a 2652 else
698dcdb6 2653 echo "$ac_t""no" 1>&6
10f2d63a 2654 fi
698dcdb6 2655
10f2d63a 2656
698dcdb6 2657 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2389f33b 2658echo "configure:2659: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2659 no_cache=0
2660 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2661if test "${enable_no_rtti+set}" = set; then
2662 enableval="$enable_no_rtti"
698dcdb6 2663
10f2d63a
VZ
2664 if test "$enableval" = yes; then
2665 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2666 else
2667 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2668 fi
698dcdb6 2669
10f2d63a 2670else
698dcdb6 2671
10f2d63a
VZ
2672 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2673 if test "x$LINE" != x ; then
2674 eval "DEFAULT_$LINE"
2675 else
2676 no_cache=1
2677 fi
2678
2679 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2680
2681fi
10f2d63a
VZ
2682
2683
2684 eval "$ac_cv_use_no_rtti"
2685 if test "$no_cache" != 1; then
2686 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2687 fi
2688
2689 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2690 echo "$ac_t""yes" 1>&6
10f2d63a 2691 else
698dcdb6 2692 echo "$ac_t""no" 1>&6
10f2d63a 2693 fi
698dcdb6 2694
10f2d63a 2695
698dcdb6 2696 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2389f33b 2697echo "configure:2698: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2698 no_cache=0
2699 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2700if test "${enable_no_exceptions+set}" = set; then
2701 enableval="$enable_no_exceptions"
698dcdb6 2702
10f2d63a
VZ
2703 if test "$enableval" = yes; then
2704 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2705 else
2706 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2707 fi
698dcdb6 2708
10f2d63a 2709else
698dcdb6 2710
10f2d63a
VZ
2711 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2712 if test "x$LINE" != x ; then
2713 eval "DEFAULT_$LINE"
2714 else
2715 no_cache=1
2716 fi
2717
2718 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2719
2720fi
10f2d63a
VZ
2721
2722
2723 eval "$ac_cv_use_no_exceptions"
2724 if test "$no_cache" != 1; then
2725 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2726 fi
2727
2728 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2729 echo "$ac_t""yes" 1>&6
10f2d63a 2730 else
698dcdb6 2731 echo "$ac_t""no" 1>&6
10f2d63a 2732 fi
698dcdb6 2733
10f2d63a 2734
698dcdb6 2735 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2389f33b 2736echo "configure:2737: checking for --enable-permissive" >&5
10f2d63a
VZ
2737 no_cache=0
2738 # Check whether --enable-permissive or --disable-permissive was given.
2739if test "${enable_permissive+set}" = set; then
2740 enableval="$enable_permissive"
698dcdb6 2741
10f2d63a
VZ
2742 if test "$enableval" = yes; then
2743 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2744 else
2745 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2746 fi
698dcdb6 2747
10f2d63a 2748else
698dcdb6 2749
10f2d63a
VZ
2750 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2751 if test "x$LINE" != x ; then
2752 eval "DEFAULT_$LINE"
2753 else
2754 no_cache=1
2755 fi
2756
2757 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2758
2759fi
10f2d63a
VZ
2760
2761
2762 eval "$ac_cv_use_permissive"
2763 if test "$no_cache" != 1; then
2764 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2765 fi
2766
2767 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2768 echo "$ac_t""yes" 1>&6
10f2d63a 2769 else
698dcdb6 2770 echo "$ac_t""no" 1>&6
10f2d63a 2771 fi
698dcdb6 2772
10f2d63a 2773
698dcdb6 2774 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2389f33b 2775echo "configure:2776: checking for --enable-no_deps" >&5
10f2d63a
VZ
2776 no_cache=0
2777 # Check whether --enable-no_deps or --disable-no_deps was given.
2778if test "${enable_no_deps+set}" = set; then
2779 enableval="$enable_no_deps"
698dcdb6 2780
10f2d63a
VZ
2781 if test "$enableval" = yes; then
2782 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2783 else
2784 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2785 fi
698dcdb6 2786
10f2d63a 2787else
698dcdb6 2788
10f2d63a
VZ
2789 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2790 if test "x$LINE" != x ; then
2791 eval "DEFAULT_$LINE"
2792 else
2793 no_cache=1
2794 fi
2795
2796 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2797
2798fi
10f2d63a
VZ
2799
2800
2801 eval "$ac_cv_use_no_deps"
2802 if test "$no_cache" != 1; then
2803 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2804 fi
2805
2806 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2807 echo "$ac_t""yes" 1>&6
10f2d63a 2808 else
698dcdb6 2809 echo "$ac_t""no" 1>&6
10f2d63a 2810 fi
698dcdb6
VZ
2811
2812
10f2d63a 2813
54276ccf 2814 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2389f33b 2815echo "configure:2816: checking for --enable-compat20" >&5
54276ccf
VZ
2816 no_cache=0
2817 # Check whether --enable-compat20 or --disable-compat20 was given.
2818if test "${enable_compat20+set}" = set; then
2819 enableval="$enable_compat20"
2820
2821 if test "$enableval" = yes; then
2822 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2823 else
2824 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2825 fi
2826
2827else
2828
2829 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2830 if test "x$LINE" != x ; then
2831 eval "DEFAULT_$LINE"
2832 else
2833 no_cache=1
2834 fi
2835
2836 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2837
2838fi
2839
2840
2841 eval "$ac_cv_use_compat20"
2842 if test "$no_cache" != 1; then
2843 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2844 fi
2845
2846 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2847 echo "$ac_t""yes" 1>&6
2848 else
2849 echo "$ac_t""no" 1>&6
2850 fi
2851
2852
2853 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2389f33b 2854echo "configure:2855: checking for --enable-compat22" >&5
54276ccf
VZ
2855 no_cache=0
2856 # Check whether --enable-compat22 or --disable-compat22 was given.
2857if test "${enable_compat22+set}" = set; then
2858 enableval="$enable_compat22"
2859
2860 if test "$enableval" = yes; then
2861 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2862 else
2863 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2864 fi
2865
2866else
2867
2868 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2869 if test "x$LINE" != x ; then
2870 eval "DEFAULT_$LINE"
2871 else
2872 no_cache=1
2873 fi
2874
2875 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2876
2877fi
2878
2879
2880 eval "$ac_cv_use_compat22"
2881 if test "$no_cache" != 1; then
2882 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2883 fi
2884
2885 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2886 echo "$ac_t""yes" 1>&6
2887 else
2888 echo "$ac_t""no" 1>&6
2889 fi
2890
2891
2892
698dcdb6
VZ
2893
2894 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
2389f33b 2895echo "configure:2896: checking for --enable-intl" >&5
10f2d63a
VZ
2896 no_cache=0
2897 # Check whether --enable-intl or --disable-intl was given.
2898if test "${enable_intl+set}" = set; then
2899 enableval="$enable_intl"
698dcdb6 2900
10f2d63a
VZ
2901 if test "$enableval" = yes; then
2902 ac_cv_use_intl='wxUSE_INTL=yes'
2903 else
2904 ac_cv_use_intl='wxUSE_INTL=no'
2905 fi
698dcdb6 2906
10f2d63a 2907else
698dcdb6 2908
10f2d63a
VZ
2909 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2910 if test "x$LINE" != x ; then
2911 eval "DEFAULT_$LINE"
2912 else
2913 no_cache=1
2914 fi
2915
2916 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
2917
2918fi
10f2d63a
VZ
2919
2920
2921 eval "$ac_cv_use_intl"
2922 if test "$no_cache" != 1; then
2923 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2924 fi
2925
2926 if test "$wxUSE_INTL" = yes; then
698dcdb6 2927 echo "$ac_t""yes" 1>&6
10f2d63a 2928 else
698dcdb6 2929 echo "$ac_t""no" 1>&6
10f2d63a 2930 fi
698dcdb6 2931
10f2d63a 2932
698dcdb6 2933 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
2389f33b 2934echo "configure:2935: checking for --enable-config" >&5
10f2d63a
VZ
2935 no_cache=0
2936 # Check whether --enable-config or --disable-config was given.
2937if test "${enable_config+set}" = set; then
2938 enableval="$enable_config"
698dcdb6 2939
10f2d63a
VZ
2940 if test "$enableval" = yes; then
2941 ac_cv_use_config='wxUSE_CONFIG=yes'
2942 else
2943 ac_cv_use_config='wxUSE_CONFIG=no'
2944 fi
698dcdb6 2945
10f2d63a 2946else
698dcdb6 2947
10f2d63a
VZ
2948 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2949 if test "x$LINE" != x ; then
2950 eval "DEFAULT_$LINE"
2951 else
2952 no_cache=1
2953 fi
2954
2955 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
2956
2957fi
10f2d63a
VZ
2958
2959
2960 eval "$ac_cv_use_config"
2961 if test "$no_cache" != 1; then
2962 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2963 fi
2964
2965 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 2966 echo "$ac_t""yes" 1>&6
10f2d63a 2967 else
698dcdb6 2968 echo "$ac_t""no" 1>&6
10f2d63a 2969 fi
698dcdb6
VZ
2970
2971
b12915c1 2972
698dcdb6 2973 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
2389f33b 2974echo "configure:2975: checking for --enable-sockets" >&5
10f2d63a
VZ
2975 no_cache=0
2976 # Check whether --enable-sockets or --disable-sockets was given.
2977if test "${enable_sockets+set}" = set; then
2978 enableval="$enable_sockets"
698dcdb6 2979
10f2d63a
VZ
2980 if test "$enableval" = yes; then
2981 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2982 else
2983 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2984 fi
698dcdb6 2985
10f2d63a 2986else
698dcdb6 2987
10f2d63a
VZ
2988 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2989 if test "x$LINE" != x ; then
2990 eval "DEFAULT_$LINE"
2991 else
2992 no_cache=1
2993 fi
2994
2995 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
2996
2997fi
10f2d63a
VZ
2998
2999
3000 eval "$ac_cv_use_sockets"
3001 if test "$no_cache" != 1; then
3002 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3003 fi
3004
3005 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 3006 echo "$ac_t""yes" 1>&6
10f2d63a 3007 else
698dcdb6 3008 echo "$ac_t""no" 1>&6
10f2d63a 3009 fi
698dcdb6 3010
b12915c1 3011
698dcdb6
VZ
3012
3013 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
2389f33b 3014echo "configure:3015: checking for --enable-ipc" >&5
10f2d63a 3015 no_cache=0
eb4efbdc
VZ
3016 # Check whether --enable-ipc or --disable-ipc was given.
3017if test "${enable_ipc+set}" = set; then
3018 enableval="$enable_ipc"
698dcdb6 3019
10f2d63a 3020 if test "$enableval" = yes; then
eb4efbdc 3021 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3022 else
eb4efbdc 3023 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3024 fi
698dcdb6 3025
10f2d63a 3026else
698dcdb6 3027
eb4efbdc 3028 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3029 if test "x$LINE" != x ; then
3030 eval "DEFAULT_$LINE"
3031 else
3032 no_cache=1
3033 fi
3034
eb4efbdc 3035 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3036
3037fi
10f2d63a
VZ
3038
3039
eb4efbdc 3040 eval "$ac_cv_use_ipc"
10f2d63a 3041 if test "$no_cache" != 1; then
eb4efbdc 3042 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3043 fi
3044
eb4efbdc 3045 if test "$wxUSE_IPC" = yes; then
698dcdb6 3046 echo "$ac_t""yes" 1>&6
10f2d63a 3047 else
698dcdb6 3048 echo "$ac_t""no" 1>&6
10f2d63a 3049 fi
698dcdb6
VZ
3050
3051
eb4efbdc 3052
1e6feb95 3053 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
2389f33b 3054echo "configure:3055: checking for --enable-cmdline" >&5
1e6feb95
VZ
3055 no_cache=0
3056 # Check whether --enable-cmdline or --disable-cmdline was given.
3057if test "${enable_cmdline+set}" = set; then
3058 enableval="$enable_cmdline"
3059
3060 if test "$enableval" = yes; then
3061 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3062 else
3063 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3064 fi
3065
3066else
3067
3068 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3069 if test "x$LINE" != x ; then
3070 eval "DEFAULT_$LINE"
3071 else
3072 no_cache=1
3073 fi
3074
3075 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3076
3077fi
3078
3079
3080 eval "$ac_cv_use_cmdline"
3081 if test "$no_cache" != 1; then
3082 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3083 fi
3084
3085 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3086 echo "$ac_t""yes" 1>&6
3087 else
3088 echo "$ac_t""no" 1>&6
3089 fi
3090
3091
3092 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
2389f33b 3093echo "configure:3094: checking for --enable-datetime" >&5
1e6feb95
VZ
3094 no_cache=0
3095 # Check whether --enable-datetime or --disable-datetime was given.
3096if test "${enable_datetime+set}" = set; then
3097 enableval="$enable_datetime"
3098
3099 if test "$enableval" = yes; then
3100 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3101 else
3102 ac_cv_use_datetime='wxUSE_DATETIME=no'
3103 fi
3104
3105else
3106
3107 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3108 if test "x$LINE" != x ; then
3109 eval "DEFAULT_$LINE"
3110 else
3111 no_cache=1
3112 fi
3113
3114 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3115
3116fi
3117
3118
3119 eval "$ac_cv_use_datetime"
3120 if test "$no_cache" != 1; then
3121 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3122 fi
3123
3124 if test "$wxUSE_DATETIME" = yes; then
3125 echo "$ac_t""yes" 1>&6
3126 else
3127 echo "$ac_t""no" 1>&6
3128 fi
3129
3130
3131 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
2389f33b 3132echo "configure:3133: checking for --enable-timedate" >&5
1e6feb95
VZ
3133 no_cache=0
3134 # Check whether --enable-timedate or --disable-timedate was given.
3135if test "${enable_timedate+set}" = set; then
3136 enableval="$enable_timedate"
3137
3138 if test "$enableval" = yes; then
3139 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3140 else
3141 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3142 fi
3143
3144else
3145
3146 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3147 if test "x$LINE" != x ; then
3148 eval "DEFAULT_$LINE"
3149 else
3150 no_cache=1
3151 fi
3152
3153 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3154
3155fi
3156
3157
3158 eval "$ac_cv_use_timedate"
3159 if test "$no_cache" != 1; then
3160 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3161 fi
3162
3163 if test "$wxUSE_TIMEDATE" = yes; then
3164 echo "$ac_t""yes" 1>&6
3165 else
3166 echo "$ac_t""no" 1>&6
3167 fi
3168
3169
3170 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
2389f33b 3171echo "configure:3172: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3172 no_cache=0
3173 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3174if test "${enable_stopwatch+set}" = set; then
3175 enableval="$enable_stopwatch"
3176
3177 if test "$enableval" = yes; then
3178 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3179 else
3180 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3181 fi
3182
3183else
3184
3185 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3186 if test "x$LINE" != x ; then
3187 eval "DEFAULT_$LINE"
3188 else
3189 no_cache=1
3190 fi
3191
3192 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3193
3194fi
3195
3196
3197 eval "$ac_cv_use_stopwatch"
3198 if test "$no_cache" != 1; then
3199 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3200 fi
3201
3202 if test "$wxUSE_STOPWATCH" = yes; then
3203 echo "$ac_t""yes" 1>&6
3204 else
3205 echo "$ac_t""no" 1>&6
3206 fi
3207
3208
698dcdb6 3209 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
2389f33b 3210echo "configure:3211: checking for --enable-dialupman" >&5
10f2d63a 3211 no_cache=0
eb4efbdc
VZ
3212 # Check whether --enable-dialupman or --disable-dialupman was given.
3213if test "${enable_dialupman+set}" = set; then
3214 enableval="$enable_dialupman"
698dcdb6 3215
10f2d63a 3216 if test "$enableval" = yes; then
eb4efbdc 3217 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3218 else
eb4efbdc 3219 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3220 fi
698dcdb6 3221
10f2d63a 3222else
698dcdb6 3223
eb4efbdc 3224 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3225 if test "x$LINE" != x ; then
3226 eval "DEFAULT_$LINE"
3227 else
3228 no_cache=1
3229 fi
3230
eb4efbdc 3231 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3232
3233fi
10f2d63a
VZ
3234
3235
eb4efbdc 3236 eval "$ac_cv_use_dialupman"
10f2d63a 3237 if test "$no_cache" != 1; then
eb4efbdc 3238 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3239 fi
3240
eb4efbdc 3241 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3242 echo "$ac_t""yes" 1>&6
10f2d63a 3243 else
698dcdb6 3244 echo "$ac_t""no" 1>&6
10f2d63a 3245 fi
698dcdb6 3246
10f2d63a 3247
698dcdb6 3248 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
2389f33b 3249echo "configure:3250: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3250 no_cache=0
3251 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3252if test "${enable_apple_ieee+set}" = set; then
3253 enableval="$enable_apple_ieee"
698dcdb6 3254
10f2d63a
VZ
3255 if test "$enableval" = yes; then
3256 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3257 else
3258 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3259 fi
698dcdb6 3260
10f2d63a 3261else
698dcdb6 3262
10f2d63a
VZ
3263 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3264 if test "x$LINE" != x ; then
3265 eval "DEFAULT_$LINE"
3266 else
3267 no_cache=1
3268 fi
3269
3270 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3271
3272fi
10f2d63a
VZ
3273
3274
3275 eval "$ac_cv_use_apple_ieee"
3276 if test "$no_cache" != 1; then
3277 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3278 fi
3279
3280 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3281 echo "$ac_t""yes" 1>&6
10f2d63a 3282 else
698dcdb6 3283 echo "$ac_t""no" 1>&6
10f2d63a 3284 fi
698dcdb6 3285
10f2d63a 3286
1e6feb95 3287 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
2389f33b 3288echo "configure:3289: checking for --enable-timer" >&5
10f2d63a 3289 no_cache=0
1e6feb95
VZ
3290 # Check whether --enable-timer or --disable-timer was given.
3291if test "${enable_timer+set}" = set; then
3292 enableval="$enable_timer"
698dcdb6 3293
10f2d63a 3294 if test "$enableval" = yes; then
1e6feb95 3295 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3296 else
1e6feb95 3297 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3298 fi
698dcdb6 3299
10f2d63a 3300else
698dcdb6 3301
1e6feb95 3302 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3303 if test "x$LINE" != x ; then
3304 eval "DEFAULT_$LINE"
3305 else
3306 no_cache=1
3307 fi
3308
1e6feb95 3309 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3310
3311fi
10f2d63a
VZ
3312
3313
1e6feb95 3314 eval "$ac_cv_use_timer"
10f2d63a 3315 if test "$no_cache" != 1; then
1e6feb95 3316 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3317 fi
3318
1e6feb95 3319 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3320 echo "$ac_t""yes" 1>&6
10f2d63a 3321 else
698dcdb6 3322 echo "$ac_t""no" 1>&6
10f2d63a 3323 fi
698dcdb6 3324
10f2d63a 3325
698dcdb6 3326 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
2389f33b 3327echo "configure:3328: checking for --enable-wave" >&5
10f2d63a
VZ
3328 no_cache=0
3329 # Check whether --enable-wave or --disable-wave was given.
3330if test "${enable_wave+set}" = set; then
3331 enableval="$enable_wave"
698dcdb6 3332
10f2d63a
VZ
3333 if test "$enableval" = yes; then
3334 ac_cv_use_wave='wxUSE_WAVE=yes'
3335 else
3336 ac_cv_use_wave='wxUSE_WAVE=no'
3337 fi
698dcdb6 3338
10f2d63a 3339else
698dcdb6 3340
10f2d63a
VZ
3341 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3342 if test "x$LINE" != x ; then
3343 eval "DEFAULT_$LINE"
3344 else
3345 no_cache=1
3346 fi
3347
3348 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3349
3350fi
10f2d63a
VZ
3351
3352
3353 eval "$ac_cv_use_wave"
3354 if test "$no_cache" != 1; then
3355 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3356 fi
3357
3358 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3359 echo "$ac_t""yes" 1>&6
10f2d63a 3360 else
698dcdb6 3361 echo "$ac_t""no" 1>&6
10f2d63a 3362 fi
698dcdb6 3363
10f2d63a 3364
698dcdb6 3365 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
2389f33b 3366echo "configure:3367: checking for --enable-fraction" >&5
10f2d63a
VZ
3367 no_cache=0
3368 # Check whether --enable-fraction or --disable-fraction was given.
3369if test "${enable_fraction+set}" = set; then
3370 enableval="$enable_fraction"
698dcdb6 3371
10f2d63a
VZ
3372 if test "$enableval" = yes; then
3373 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3374 else
3375 ac_cv_use_fraction='wxUSE_FRACTION=no'
3376 fi
698dcdb6 3377
10f2d63a 3378else
698dcdb6 3379
10f2d63a
VZ
3380 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3381 if test "x$LINE" != x ; then
3382 eval "DEFAULT_$LINE"
3383 else
3384 no_cache=1
3385 fi
3386
3387 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3388
3389fi
10f2d63a
VZ
3390
3391
3392 eval "$ac_cv_use_fraction"
3393 if test "$no_cache" != 1; then
3394 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3395 fi
3396
3397 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3398 echo "$ac_t""yes" 1>&6
10f2d63a 3399 else
698dcdb6 3400 echo "$ac_t""no" 1>&6
10f2d63a 3401 fi
698dcdb6 3402
10f2d63a 3403
698dcdb6 3404 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
2389f33b 3405echo "configure:3406: checking for --enable-dynlib" >&5
10f2d63a
VZ
3406 no_cache=0
3407 # Check whether --enable-dynlib or --disable-dynlib was given.
3408if test "${enable_dynlib+set}" = set; then
3409 enableval="$enable_dynlib"
698dcdb6 3410
10f2d63a
VZ
3411 if test "$enableval" = yes; then
3412 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3413 else
3414 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3415 fi
698dcdb6 3416
10f2d63a 3417else
698dcdb6 3418
10f2d63a
VZ
3419 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3420 if test "x$LINE" != x ; then
3421 eval "DEFAULT_$LINE"
3422 else
3423 no_cache=1
3424 fi
3425
3426 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3427
3428fi
10f2d63a
VZ
3429
3430
3431 eval "$ac_cv_use_dynlib"
3432 if test "$no_cache" != 1; then
3433 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3434 fi
3435
3436 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3437 echo "$ac_t""yes" 1>&6
10f2d63a 3438 else
698dcdb6 3439 echo "$ac_t""no" 1>&6
10f2d63a 3440 fi
698dcdb6 3441
10f2d63a 3442
698dcdb6 3443 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
2389f33b 3444echo "configure:3445: checking for --enable-longlong" >&5
10f2d63a
VZ
3445 no_cache=0
3446 # Check whether --enable-longlong or --disable-longlong was given.
3447if test "${enable_longlong+set}" = set; then
3448 enableval="$enable_longlong"
698dcdb6 3449
10f2d63a
VZ
3450 if test "$enableval" = yes; then
3451 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3452 else
3453 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3454 fi
698dcdb6 3455
10f2d63a 3456else
698dcdb6 3457
10f2d63a
VZ
3458 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3459 if test "x$LINE" != x ; then
3460 eval "DEFAULT_$LINE"
3461 else
3462 no_cache=1
3463 fi
3464
3465 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3466
3467fi
10f2d63a
VZ
3468
3469
3470 eval "$ac_cv_use_longlong"
3471 if test "$no_cache" != 1; then
3472 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3473 fi
3474
3475 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3476 echo "$ac_t""yes" 1>&6
10f2d63a 3477 else
698dcdb6 3478 echo "$ac_t""no" 1>&6
10f2d63a 3479 fi
698dcdb6 3480
10f2d63a 3481
698dcdb6 3482 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
2389f33b 3483echo "configure:3484: checking for --enable-geometry" >&5
e8f65ba6
RR
3484 no_cache=0
3485 # Check whether --enable-geometry or --disable-geometry was given.
3486if test "${enable_geometry+set}" = set; then
3487 enableval="$enable_geometry"
698dcdb6 3488
e8f65ba6
RR
3489 if test "$enableval" = yes; then
3490 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3491 else
3492 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3493 fi
698dcdb6 3494
e8f65ba6 3495else
698dcdb6 3496
e8f65ba6
RR
3497 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3498 if test "x$LINE" != x ; then
3499 eval "DEFAULT_$LINE"
3500 else
3501 no_cache=1
3502 fi
3503
3504 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3505
3506fi
e8f65ba6
RR
3507
3508
3509 eval "$ac_cv_use_geometry"
3510 if test "$no_cache" != 1; then
3511 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3512 fi
3513
3514 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3515 echo "$ac_t""yes" 1>&6
e8f65ba6 3516 else
698dcdb6 3517 echo "$ac_t""no" 1>&6
e8f65ba6 3518 fi
698dcdb6 3519
e8f65ba6 3520
698dcdb6 3521 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
2389f33b 3522echo "configure:3523: checking for --enable-log" >&5
10f2d63a
VZ
3523 no_cache=0
3524 # Check whether --enable-log or --disable-log was given.
3525if test "${enable_log+set}" = set; then
3526 enableval="$enable_log"
698dcdb6 3527
10f2d63a
VZ
3528 if test "$enableval" = yes; then
3529 ac_cv_use_log='wxUSE_LOG=yes'
3530 else
3531 ac_cv_use_log='wxUSE_LOG=no'
3532 fi
698dcdb6 3533
10f2d63a 3534else
698dcdb6 3535
10f2d63a
VZ
3536 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3537 if test "x$LINE" != x ; then
3538 eval "DEFAULT_$LINE"
3539 else
3540 no_cache=1
3541 fi
3542
3543 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3544
3545fi
10f2d63a
VZ
3546
3547
3548 eval "$ac_cv_use_log"
3549 if test "$no_cache" != 1; then
3550 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3551 fi
3552
3553 if test "$wxUSE_LOG" = yes; then
698dcdb6 3554 echo "$ac_t""yes" 1>&6
10f2d63a 3555 else
698dcdb6 3556 echo "$ac_t""no" 1>&6
10f2d63a 3557 fi
698dcdb6 3558
10f2d63a 3559
698dcdb6 3560 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
2389f33b 3561echo "configure:3562: checking for --enable-streams" >&5
10f2d63a
VZ
3562 no_cache=0
3563 # Check whether --enable-streams or --disable-streams was given.
3564if test "${enable_streams+set}" = set; then
3565 enableval="$enable_streams"
698dcdb6 3566
10f2d63a
VZ
3567 if test "$enableval" = yes; then
3568 ac_cv_use_streams='wxUSE_STREAMS=yes'
3569 else
3570 ac_cv_use_streams='wxUSE_STREAMS=no'
3571 fi
698dcdb6 3572
10f2d63a 3573else
698dcdb6 3574
10f2d63a
VZ
3575 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3576 if test "x$LINE" != x ; then
3577 eval "DEFAULT_$LINE"
3578 else
3579 no_cache=1
3580 fi
3581
3582 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3583
3584fi
10f2d63a
VZ
3585
3586
3587 eval "$ac_cv_use_streams"
3588 if test "$no_cache" != 1; then
3589 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3590 fi
3591
3592 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3593 echo "$ac_t""yes" 1>&6
10f2d63a 3594 else
698dcdb6 3595 echo "$ac_t""no" 1>&6
10f2d63a 3596 fi
698dcdb6 3597
10f2d63a 3598
698dcdb6 3599 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
2389f33b 3600echo "configure:3601: checking for --enable-file" >&5
10f2d63a
VZ
3601 no_cache=0
3602 # Check whether --enable-file or --disable-file was given.
3603if test "${enable_file+set}" = set; then
3604 enableval="$enable_file"
698dcdb6 3605
10f2d63a
VZ
3606 if test "$enableval" = yes; then
3607 ac_cv_use_file='wxUSE_FILE=yes'
3608 else
3609 ac_cv_use_file='wxUSE_FILE=no'
3610 fi
698dcdb6 3611
10f2d63a 3612else
698dcdb6 3613
10f2d63a
VZ
3614 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3615 if test "x$LINE" != x ; then
3616 eval "DEFAULT_$LINE"
3617 else
3618 no_cache=1
3619 fi
3620
3621 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3622
3623fi
10f2d63a
VZ
3624
3625
3626 eval "$ac_cv_use_file"
3627 if test "$no_cache" != 1; then
3628 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3629 fi
3630
3631 if test "$wxUSE_FILE" = yes; then
698dcdb6 3632 echo "$ac_t""yes" 1>&6
10f2d63a 3633 else
698dcdb6 3634 echo "$ac_t""no" 1>&6
10f2d63a 3635 fi
698dcdb6 3636
10f2d63a 3637
1e6feb95 3638 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
2389f33b 3639echo "configure:3640: checking for --enable-ffile" >&5
10f2d63a 3640 no_cache=0
1e6feb95
VZ
3641 # Check whether --enable-ffile or --disable-ffile was given.
3642if test "${enable_ffile+set}" = set; then
3643 enableval="$enable_ffile"
698dcdb6 3644
10f2d63a 3645 if test "$enableval" = yes; then
1e6feb95 3646 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3647 else
1e6feb95 3648 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3649 fi
698dcdb6 3650
10f2d63a 3651else
698dcdb6 3652
1e6feb95 3653 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3654 if test "x$LINE" != x ; then
3655 eval "DEFAULT_$LINE"
3656 else
3657 no_cache=1
3658 fi
3659
1e6feb95 3660 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3661
3662fi
10f2d63a
VZ
3663
3664
1e6feb95 3665 eval "$ac_cv_use_ffile"
10f2d63a 3666 if test "$no_cache" != 1; then
1e6feb95 3667 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3668 fi
3669
1e6feb95 3670 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3671 echo "$ac_t""yes" 1>&6
10f2d63a 3672 else
698dcdb6 3673 echo "$ac_t""no" 1>&6
10f2d63a 3674 fi
698dcdb6 3675
10f2d63a 3676
1e6feb95 3677 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
2389f33b 3678echo "configure:3679: checking for --enable-textfile" >&5
10f2d63a 3679 no_cache=0
1e6feb95
VZ
3680 # Check whether --enable-textfile or --disable-textfile was given.
3681if test "${enable_textfile+set}" = set; then
3682 enableval="$enable_textfile"
698dcdb6 3683
10f2d63a 3684 if test "$enableval" = yes; then
1e6feb95 3685 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 3686 else
1e6feb95 3687 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 3688 fi
698dcdb6 3689
10f2d63a 3690else
698dcdb6 3691
1e6feb95 3692 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3693 if test "x$LINE" != x ; then
3694 eval "DEFAULT_$LINE"
3695 else
3696 no_cache=1
3697 fi
3698
1e6feb95 3699 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
3700
3701fi
10f2d63a
VZ
3702
3703
1e6feb95 3704 eval "$ac_cv_use_textfile"
10f2d63a 3705 if test "$no_cache" != 1; then
1e6feb95 3706 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3707 fi
3708
1e6feb95 3709 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 3710 echo "$ac_t""yes" 1>&6
10f2d63a 3711 else
698dcdb6 3712 echo "$ac_t""no" 1>&6
10f2d63a 3713 fi
698dcdb6 3714
10f2d63a 3715
1e6feb95 3716 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
2389f33b 3717echo "configure:3718: checking for --enable-fontmap" >&5
10f2d63a 3718 no_cache=0
1e6feb95
VZ
3719 # Check whether --enable-fontmap or --disable-fontmap was given.
3720if test "${enable_fontmap+set}" = set; then
3721 enableval="$enable_fontmap"
698dcdb6 3722
10f2d63a 3723 if test "$enableval" = yes; then
1e6feb95 3724 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 3725 else
1e6feb95 3726 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 3727 fi
698dcdb6 3728
10f2d63a 3729else
698dcdb6 3730
1e6feb95 3731 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
3732 if test "x$LINE" != x ; then
3733 eval "DEFAULT_$LINE"
3734 else
3735 no_cache=1
3736 fi
3737
1e6feb95 3738 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
3739
3740fi
10f2d63a
VZ
3741
3742
1e6feb95 3743 eval "$ac_cv_use_fontmap"
10f2d63a 3744 if test "$no_cache" != 1; then
1e6feb95 3745 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3746 fi
3747
1e6feb95 3748 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 3749 echo "$ac_t""yes" 1>&6
10f2d63a 3750 else
698dcdb6 3751 echo "$ac_t""no" 1>&6
10f2d63a 3752 fi
698dcdb6 3753
10f2d63a 3754
1e6feb95 3755 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
2389f33b 3756echo "configure:3757: checking for --enable-unicode" >&5
10f2d63a 3757 no_cache=0
1e6feb95
VZ
3758 # Check whether --enable-unicode or --disable-unicode was given.
3759if test "${enable_unicode+set}" = set; then
3760 enableval="$enable_unicode"
3761
3762 if test "$enableval" = yes; then
3763 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3764 else
3765 ac_cv_use_unicode='wxUSE_UNICODE=no'
3766 fi
3767
3768else
3769
3770 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3771 if test "x$LINE" != x ; then
3772 eval "DEFAULT_$LINE"
3773 else
3774 no_cache=1
3775 fi
3776
3777 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3778
3779fi
3780
3781
3782 eval "$ac_cv_use_unicode"
3783 if test "$no_cache" != 1; then
3784 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3785 fi
3786
3787 if test "$wxUSE_UNICODE" = yes; then
3788 echo "$ac_t""yes" 1>&6
3789 else
3790 echo "$ac_t""no" 1>&6
3791 fi
3792
3793
3794 echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6
2389f33b 3795echo "configure:3796: checking for --enable-wcsrtombs" >&5
1e6feb95
VZ
3796 no_cache=0
3797 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3798if test "${enable_wcsrtombs+set}" = set; then
3799 enableval="$enable_wcsrtombs"
3800
3801 if test "$enableval" = yes; then
3802 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3803 else
3804 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3805 fi
3806
3807else
3808
3809 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3810 if test "x$LINE" != x ; then
3811 eval "DEFAULT_$LINE"
3812 else
3813 no_cache=1
3814 fi
3815
3816 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3817
3818fi
3819
3820
3821 eval "$ac_cv_use_wcsrtombs"
3822 if test "$no_cache" != 1; then
3823 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3824 fi
3825
3826 if test "$wxUSE_WCSRTOMBS" = yes; then
3827 echo "$ac_t""yes" 1>&6
3828 else
3829 echo "$ac_t""no" 1>&6
3830 fi
3831
3832
3833 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
2389f33b 3834echo "configure:3835: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
3835 no_cache=0
3836 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3837if test "${enable_wxprintfv+set}" = set; then
3838 enableval="$enable_wxprintfv"
3839
3840 if test "$enableval" = yes; then
10f2d63a
VZ
3841 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3842 else
3843 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3844 fi
698dcdb6 3845
10f2d63a 3846else
698dcdb6 3847
10f2d63a
VZ
3848 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3849 if test "x$LINE" != x ; then
3850 eval "DEFAULT_$LINE"
3851 else
3852 no_cache=1
3853 fi
3854
3855 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
3856
3857fi
10f2d63a
VZ
3858
3859
3860 eval "$ac_cv_use_wxprintfv"
3861 if test "$no_cache" != 1; then
3862 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3863 fi
3864
3865 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 3866 echo "$ac_t""yes" 1>&6
10f2d63a 3867 else
698dcdb6 3868 echo "$ac_t""no" 1>&6
10f2d63a 3869 fi
698dcdb6 3870
10f2d63a 3871
698dcdb6 3872 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
2389f33b 3873echo "configure:3874: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
3874 no_cache=0
3875 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3876if test "${enable_std_iostreams+set}" = set; then
3877 enableval="$enable_std_iostreams"
698dcdb6 3878
10f2d63a
VZ
3879 if test "$enableval" = yes; then
3880 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3881 else
3882 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3883 fi
698dcdb6 3884
10f2d63a 3885else
698dcdb6 3886
10f2d63a
VZ
3887 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3888 if test "x$LINE" != x ; then
3889 eval "DEFAULT_$LINE"
3890 else
3891 no_cache=1
3892 fi
3893
3894 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
3895
3896fi
10f2d63a
VZ
3897
3898
3899 eval "$ac_cv_use_std_iostreams"
3900 if test "$no_cache" != 1; then
3901 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3902 fi
3903
3904 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 3905 echo "$ac_t""yes" 1>&6
10f2d63a 3906 else
698dcdb6 3907 echo "$ac_t""no" 1>&6
10f2d63a 3908 fi
698dcdb6 3909
10f2d63a 3910
698dcdb6 3911 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
2389f33b 3912echo "configure:3913: checking for --enable-filesystem" >&5
24528b0c
VS
3913 no_cache=0
3914 # Check whether --enable-filesystem or --disable-filesystem was given.
3915if test "${enable_filesystem+set}" = set; then
3916 enableval="$enable_filesystem"
698dcdb6 3917
24528b0c
VS
3918 if test "$enableval" = yes; then
3919 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3920 else
3921 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3922 fi
698dcdb6 3923
24528b0c 3924else
698dcdb6 3925
24528b0c
VS
3926 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3927 if test "x$LINE" != x ; then
3928 eval "DEFAULT_$LINE"
3929 else
3930 no_cache=1
3931 fi
3932
3933 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
3934
3935fi
24528b0c
VS
3936
3937
3938 eval "$ac_cv_use_filesystem"
3939 if test "$no_cache" != 1; then
3940 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3941 fi
3942
3943 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 3944 echo "$ac_t""yes" 1>&6
24528b0c 3945 else
698dcdb6 3946 echo "$ac_t""no" 1>&6
24528b0c 3947 fi
698dcdb6 3948
24528b0c 3949
698dcdb6 3950 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
2389f33b 3951echo "configure:3952: checking for --enable-fs_inet" >&5
10f2d63a
VZ
3952 no_cache=0
3953 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3954if test "${enable_fs_inet+set}" = set; then
3955 enableval="$enable_fs_inet"
698dcdb6 3956
10f2d63a
VZ
3957 if test "$enableval" = yes; then
3958 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3959 else
3960 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3961 fi
698dcdb6 3962
10f2d63a 3963else
698dcdb6 3964
10f2d63a
VZ
3965 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3966 if test "x$LINE" != x ; then
3967 eval "DEFAULT_$LINE"
3968 else
3969 no_cache=1
3970 fi
3971
3972 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
3973
3974fi
10f2d63a
VZ
3975
3976
3977 eval "$ac_cv_use_fs_inet"
3978 if test "$no_cache" != 1; then
3979 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3980 fi
3981
3982 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 3983 echo "$ac_t""yes" 1>&6
10f2d63a 3984 else
698dcdb6 3985 echo "$ac_t""no" 1>&6
10f2d63a 3986 fi
698dcdb6 3987
10f2d63a 3988
698dcdb6 3989 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
2389f33b 3990echo "configure:3991: checking for --enable-fs_zip" >&5
10f2d63a
VZ
3991 no_cache=0
3992 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3993if test "${enable_fs_zip+set}" = set; then
3994 enableval="$enable_fs_zip"
698dcdb6 3995
10f2d63a
VZ
3996 if test "$enableval" = yes; then
3997 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3998 else
3999 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4000 fi
698dcdb6 4001
10f2d63a 4002else
698dcdb6 4003
10f2d63a
VZ
4004 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4005 if test "x$LINE" != x ; then
4006 eval "DEFAULT_$LINE"
4007 else
4008 no_cache=1
4009 fi
4010
4011 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
4012
4013fi
10f2d63a
VZ
4014
4015
4016 eval "$ac_cv_use_fs_zip"
4017 if test "$no_cache" != 1; then
4018 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4019 fi
4020
4021 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 4022 echo "$ac_t""yes" 1>&6
10f2d63a 4023 else
698dcdb6 4024 echo "$ac_t""no" 1>&6
10f2d63a 4025 fi
698dcdb6 4026
10f2d63a 4027
698dcdb6 4028 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
2389f33b 4029echo "configure:4030: checking for --enable-zipstream" >&5
10f2d63a
VZ
4030 no_cache=0
4031 # Check whether --enable-zipstream or --disable-zipstream was given.
4032if test "${enable_zipstream+set}" = set; then
4033 enableval="$enable_zipstream"
698dcdb6 4034
10f2d63a
VZ
4035 if test "$enableval" = yes; then
4036 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4037 else
4038 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4039 fi
698dcdb6 4040
10f2d63a 4041else
698dcdb6 4042
10f2d63a
VZ
4043 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4044 if test "x$LINE" != x ; then
4045 eval "DEFAULT_$LINE"
4046 else
4047 no_cache=1
4048 fi
4049
4050 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4051
4052fi
10f2d63a
VZ
4053
4054
4055 eval "$ac_cv_use_zipstream"
4056 if test "$no_cache" != 1; then
4057 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4058 fi
4059
4060 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4061 echo "$ac_t""yes" 1>&6
10f2d63a 4062 else
698dcdb6 4063 echo "$ac_t""no" 1>&6
10f2d63a 4064 fi
698dcdb6 4065
10f2d63a 4066
698dcdb6
VZ
4067
4068 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
2389f33b 4069echo "configure:4070: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4070 no_cache=0
4071 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4072if test "${enable_catch_segvs+set}" = set; then
4073 enableval="$enable_catch_segvs"
698dcdb6 4074
eb4efbdc
VZ
4075 if test "$enableval" = yes; then
4076 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4077 else
4078 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4079 fi
698dcdb6 4080
eb4efbdc 4081else
698dcdb6 4082
eb4efbdc
VZ
4083 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4084 if test "x$LINE" != x ; then
4085 eval "DEFAULT_$LINE"
4086 else
4087 no_cache=1
4088 fi
4089
4090 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4091
4092fi
eb4efbdc
VZ
4093
4094
4095 eval "$ac_cv_use_catch_segvs"
4096 if test "$no_cache" != 1; then
4097 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4098 fi
4099
4100 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4101 echo "$ac_t""yes" 1>&6
eb4efbdc 4102 else
698dcdb6 4103 echo "$ac_t""no" 1>&6
eb4efbdc 4104 fi
698dcdb6 4105
eb4efbdc 4106
698dcdb6 4107 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
2389f33b 4108echo "configure:4109: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4109 no_cache=0
4110 # Check whether --enable-snglinst or --disable-snglinst was given.
4111if test "${enable_snglinst+set}" = set; then
4112 enableval="$enable_snglinst"
698dcdb6 4113
4f3c5f06
VZ
4114 if test "$enableval" = yes; then
4115 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4116 else
4117 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4118 fi
698dcdb6 4119
4f3c5f06 4120else
698dcdb6 4121
4f3c5f06
VZ
4122 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4123 if test "x$LINE" != x ; then
4124 eval "DEFAULT_$LINE"
4125 else
4126 no_cache=1
4127 fi
4128
4129 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4130
4131fi
4f3c5f06
VZ
4132
4133
4134 eval "$ac_cv_use_snglinst"
4135 if test "$no_cache" != 1; then
4136 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4137 fi
4138
4139 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4140 echo "$ac_t""yes" 1>&6
4f3c5f06 4141 else
698dcdb6 4142 echo "$ac_t""no" 1>&6
4f3c5f06 4143 fi
698dcdb6
VZ
4144
4145
eb4efbdc 4146
1e6feb95 4147 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
2389f33b 4148echo "configure:4149: checking for --enable-mimetype" >&5
1e6feb95
VZ
4149 no_cache=0
4150 # Check whether --enable-mimetype or --disable-mimetype was given.
4151if test "${enable_mimetype+set}" = set; then
4152 enableval="$enable_mimetype"
4153
4154 if test "$enableval" = yes; then
4155 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4156 else
4157 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4158 fi
4159
4160else
4161
4162 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4163 if test "x$LINE" != x ; then
4164 eval "DEFAULT_$LINE"
4165 else
4166 no_cache=1
4167 fi
4168
4169 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4170
4171fi
4172
4173
4174 eval "$ac_cv_use_mimetype"
4175 if test "$no_cache" != 1; then
4176 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4177 fi
4178
4179 if test "$wxUSE_MIMETYPE" = yes; then
4180 echo "$ac_t""yes" 1>&6
4181 else
4182 echo "$ac_t""no" 1>&6
4183 fi
4184
4185
3e44f09d 4186 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
2389f33b 4187echo "configure:4188: checking for --enable-system_options" >&5
3e44f09d
VZ
4188 no_cache=0
4189 # Check whether --enable-system_options or --disable-system_options was given.
4190if test "${enable_system_options+set}" = set; then
4191 enableval="$enable_system_options"
4192
4193 if test "$enableval" = yes; then
4194 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4195 else
4196 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4197 fi
4198
4199else
4200
4201 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${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_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4209
4210fi
4211
4212
4213 eval "$ac_cv_use_system_options"
4214 if test "$no_cache" != 1; then
4215 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4216 fi
4217
4218 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4219 echo "$ac_t""yes" 1>&6
4220 else
4221 echo "$ac_t""no" 1>&6
4222 fi
4223
4224
1e6feb95 4225
698dcdb6
VZ
4226
4227 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
2389f33b 4228echo "configure:4229: checking for --enable-threads" >&5
10f2d63a
VZ
4229 no_cache=0
4230 # Check whether --enable-threads or --disable-threads was given.
4231if test "${enable_threads+set}" = set; then
4232 enableval="$enable_threads"
698dcdb6 4233
10f2d63a
VZ
4234 if test "$enableval" = yes; then
4235 ac_cv_use_threads='wxUSE_THREADS=yes'
4236 else
4237 ac_cv_use_threads='wxUSE_THREADS=no'
4238 fi
698dcdb6 4239
10f2d63a 4240else
698dcdb6 4241
10f2d63a
VZ
4242 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4243 if test "x$LINE" != x ; then
4244 eval "DEFAULT_$LINE"
4245 else
4246 no_cache=1
4247 fi
4248
4249 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4250
4251fi
10f2d63a
VZ
4252
4253
4254 eval "$ac_cv_use_threads"
4255 if test "$no_cache" != 1; then
4256 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4257 fi
4258
4259 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4260 echo "$ac_t""yes" 1>&6
10f2d63a 4261 else
698dcdb6 4262 echo "$ac_t""no" 1>&6
10f2d63a 4263 fi
698dcdb6 4264
10f2d63a 4265
698dcdb6 4266 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
2389f33b 4267echo "configure:4268: checking for --enable-serial" >&5
10f2d63a
VZ
4268 no_cache=0
4269 # Check whether --enable-serial or --disable-serial was given.
4270if test "${enable_serial+set}" = set; then
4271 enableval="$enable_serial"
698dcdb6 4272
10f2d63a
VZ
4273 if test "$enableval" = yes; then
4274 ac_cv_use_serial='wxUSE_SERIAL=yes'
4275 else
4276 ac_cv_use_serial='wxUSE_SERIAL=no'
4277 fi
698dcdb6 4278
10f2d63a 4279else
698dcdb6 4280
10f2d63a
VZ
4281 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4282 if test "x$LINE" != x ; then
4283 eval "DEFAULT_$LINE"
4284 else
4285 no_cache=1
4286 fi
4287
4288 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
698dcdb6
VZ
4289
4290fi
10f2d63a
VZ
4291
4292
4293 eval "$ac_cv_use_serial"
4294 if test "$no_cache" != 1; then
4295 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4296 fi
4297
4298 if test "$wxUSE_SERIAL" = yes; then
698dcdb6 4299 echo "$ac_t""yes" 1>&6
10f2d63a 4300 else
698dcdb6 4301 echo "$ac_t""no" 1>&6
10f2d63a 4302 fi
698dcdb6 4303
10f2d63a 4304
b12915c1
VZ
4305if test "$wxUSE_GUI" = "yes"; then
4306
698dcdb6
VZ
4307
4308
4309 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
2389f33b 4310echo "configure:4311: checking for --enable-docview" >&5
10f2d63a
VZ
4311 no_cache=0
4312 # Check whether --enable-docview or --disable-docview was given.
4313if test "${enable_docview+set}" = set; then
4314 enableval="$enable_docview"
698dcdb6 4315
10f2d63a
VZ
4316 if test "$enableval" = yes; then
4317 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4318 else
4319 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4320 fi
698dcdb6 4321
10f2d63a 4322else
698dcdb6 4323
10f2d63a
VZ
4324 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4325 if test "x$LINE" != x ; then
4326 eval "DEFAULT_$LINE"
4327 else
4328 no_cache=1
4329 fi
4330
4331 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4332
4333fi
10f2d63a
VZ
4334
4335
4336 eval "$ac_cv_use_docview"
4337 if test "$no_cache" != 1; then
4338 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4339 fi
4340
4341 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4342 echo "$ac_t""yes" 1>&6
10f2d63a 4343 else
698dcdb6 4344 echo "$ac_t""no" 1>&6
10f2d63a 4345 fi
698dcdb6 4346
10f2d63a 4347
698dcdb6 4348 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
2389f33b 4349echo "configure:4350: checking for --enable-help" >&5
10f2d63a
VZ
4350 no_cache=0
4351 # Check whether --enable-help or --disable-help was given.
4352if test "${enable_help+set}" = set; then
4353 enableval="$enable_help"
698dcdb6 4354
10f2d63a
VZ
4355 if test "$enableval" = yes; then
4356 ac_cv_use_help='wxUSE_HELP=yes'
4357 else
4358 ac_cv_use_help='wxUSE_HELP=no'
4359 fi
698dcdb6 4360
10f2d63a 4361else
698dcdb6 4362
10f2d63a
VZ
4363 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4364 if test "x$LINE" != x ; then
4365 eval "DEFAULT_$LINE"
4366 else
4367 no_cache=1
4368 fi
4369
4370 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4371
4372fi
10f2d63a
VZ
4373
4374
4375 eval "$ac_cv_use_help"
4376 if test "$no_cache" != 1; then
4377 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4378 fi
4379
4380 if test "$wxUSE_HELP" = yes; then
698dcdb6 4381 echo "$ac_t""yes" 1>&6
10f2d63a 4382 else
698dcdb6 4383 echo "$ac_t""no" 1>&6
10f2d63a 4384 fi
698dcdb6 4385
10f2d63a 4386
29fd3c0c 4387 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
2389f33b 4388echo "configure:4389: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4389 no_cache=0
4390 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4391if test "${enable_mshtmlhelp+set}" = set; then
4392 enableval="$enable_mshtmlhelp"
4393
4394 if test "$enableval" = yes; then
4395 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4396 else
4397 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4398 fi
4399
4400else
4401
4402 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4403 if test "x$LINE" != x ; then
4404 eval "DEFAULT_$LINE"
4405 else
4406 no_cache=1
4407 fi
4408
4409 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4410
4411fi
4412
4413
4414 eval "$ac_cv_use_mshtmlhelp"
4415 if test "$no_cache" != 1; then
4416 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4417 fi
4418
4419 if test "$wxUSE_MS_HTML_HELP" = yes; then
4420 echo "$ac_t""yes" 1>&6
4421 else
4422 echo "$ac_t""no" 1>&6
4423 fi
4424
4425
3379ed37 4426 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
2389f33b 4427echo "configure:4428: checking for --enable-html" >&5
3379ed37
VZ
4428 no_cache=0
4429 # Check whether --enable-html or --disable-html was given.
4430if test "${enable_html+set}" = set; then
4431 enableval="$enable_html"
4432
4433 if test "$enableval" = yes; then
4434 ac_cv_use_html='wxUSE_HTML=yes'
4435 else
4436 ac_cv_use_html='wxUSE_HTML=no'
4437 fi
4438
4439else
4440
4441 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4442 if test "x$LINE" != x ; then
4443 eval "DEFAULT_$LINE"
4444 else
4445 no_cache=1
4446 fi
4447
4448 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4449
4450fi
4451
4452
4453 eval "$ac_cv_use_html"
4454 if test "$no_cache" != 1; then
4455 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4456 fi
4457
4458 if test "$wxUSE_HTML" = yes; then
4459 echo "$ac_t""yes" 1>&6
4460 else
4461 echo "$ac_t""no" 1>&6
4462 fi
4463
4464
4465 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
2389f33b 4466echo "configure:4467: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4467 no_cache=0
4468 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4469if test "${enable_htmlhelp+set}" = set; then
4470 enableval="$enable_htmlhelp"
4471
4472 if test "$enableval" = yes; then
4473 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4474 else
4475 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4476 fi
4477
4478else
4479
4480 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4481 if test "x$LINE" != x ; then
4482 eval "DEFAULT_$LINE"
4483 else
4484 no_cache=1
4485 fi
4486
4487 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4488
4489fi
4490
4491
4492 eval "$ac_cv_use_htmlhelp"
4493 if test "$no_cache" != 1; then
4494 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4495 fi
4496
4497 if test "$wxUSE_WXHTML_HELP" = yes; then
4498 echo "$ac_t""yes" 1>&6
4499 else
4500 echo "$ac_t""no" 1>&6
4501 fi
4502
4503
698dcdb6 4504 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
2389f33b 4505echo "configure:4506: checking for --enable-constraints" >&5
10f2d63a
VZ
4506 no_cache=0
4507 # Check whether --enable-constraints or --disable-constraints was given.
4508if test "${enable_constraints+set}" = set; then
4509 enableval="$enable_constraints"
698dcdb6 4510
10f2d63a
VZ
4511 if test "$enableval" = yes; then
4512 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4513 else
4514 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4515 fi
698dcdb6 4516
10f2d63a 4517else
698dcdb6 4518
10f2d63a
VZ
4519 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4520 if test "x$LINE" != x ; then
4521 eval "DEFAULT_$LINE"
4522 else
4523 no_cache=1
4524 fi
4525
4526 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
4527
4528fi
10f2d63a
VZ
4529
4530
4531 eval "$ac_cv_use_constraints"
4532 if test "$no_cache" != 1; then
4533 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4534 fi
4535
4536 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 4537 echo "$ac_t""yes" 1>&6
10f2d63a 4538 else
698dcdb6 4539 echo "$ac_t""no" 1>&6
10f2d63a 4540 fi
698dcdb6 4541
10f2d63a 4542
698dcdb6 4543 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
2389f33b 4544echo "configure:4545: checking for --enable-printarch" >&5
10f2d63a
VZ
4545 no_cache=0
4546 # Check whether --enable-printarch or --disable-printarch was given.
4547if test "${enable_printarch+set}" = set; then
4548 enableval="$enable_printarch"
698dcdb6 4549
10f2d63a
VZ
4550 if test "$enableval" = yes; then
4551 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4552 else
4553 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4554 fi
698dcdb6 4555
10f2d63a 4556else
698dcdb6 4557
10f2d63a
VZ
4558 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4559 if test "x$LINE" != x ; then
4560 eval "DEFAULT_$LINE"
4561 else
4562 no_cache=1
4563 fi
4564
4565 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
4566
4567fi
10f2d63a
VZ
4568
4569
4570 eval "$ac_cv_use_printarch"
4571 if test "$no_cache" != 1; then
4572 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4573 fi
4574
4575 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 4576 echo "$ac_t""yes" 1>&6
10f2d63a 4577 else
698dcdb6 4578 echo "$ac_t""no" 1>&6
10f2d63a 4579 fi
698dcdb6 4580
10f2d63a 4581
698dcdb6 4582 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
2389f33b 4583echo "configure:4584: checking for --enable-mdi" >&5
10f2d63a
VZ
4584 no_cache=0
4585 # Check whether --enable-mdi or --disable-mdi was given.
4586if test "${enable_mdi+set}" = set; then
4587 enableval="$enable_mdi"
698dcdb6 4588
10f2d63a
VZ
4589 if test "$enableval" = yes; then
4590 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4591 else
4592 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4593 fi
698dcdb6 4594
10f2d63a 4595else
698dcdb6 4596
10f2d63a
VZ
4597 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4598 if test "x$LINE" != x ; then
4599 eval "DEFAULT_$LINE"
4600 else
4601 no_cache=1
4602 fi
4603
4604 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
4605
4606fi
10f2d63a
VZ
4607
4608
4609 eval "$ac_cv_use_mdi"
4610 if test "$no_cache" != 1; then
4611 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4612 fi
4613
4614 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 4615 echo "$ac_t""yes" 1>&6
10f2d63a 4616 else
698dcdb6 4617 echo "$ac_t""no" 1>&6
10f2d63a 4618 fi
698dcdb6
VZ
4619
4620
1e6feb95 4621 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
2389f33b 4622echo "configure:4623: checking for --enable-loggui" >&5
1e6feb95
VZ
4623 no_cache=0
4624 # Check whether --enable-loggui or --disable-loggui was given.
4625if test "${enable_loggui+set}" = set; then
4626 enableval="$enable_loggui"
4627
4628 if test "$enableval" = yes; then
4629 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4630 else
4631 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4632 fi
4633
4634else
4635
4636 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4637 if test "x$LINE" != x ; then
4638 eval "DEFAULT_$LINE"
4639 else
4640 no_cache=1
4641 fi
4642
4643 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4644
4645fi
4646
4647
4648 eval "$ac_cv_use_loggui"
4649 if test "$no_cache" != 1; then
4650 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4651 fi
4652
4653 if test "$wxUSE_LOGGUI" = yes; then
4654 echo "$ac_t""yes" 1>&6
4655 else
4656 echo "$ac_t""no" 1>&6
4657 fi
4658
4659
4660 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
2389f33b 4661echo "configure:4662: checking for --enable-logwin" >&5
1e6feb95
VZ
4662 no_cache=0
4663 # Check whether --enable-logwin or --disable-logwin was given.
4664if test "${enable_logwin+set}" = set; then
4665 enableval="$enable_logwin"
4666
4667 if test "$enableval" = yes; then
4668 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4669 else
4670 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4671 fi
4672
4673else
4674
4675 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4676 if test "x$LINE" != x ; then
4677 eval "DEFAULT_$LINE"
4678 else
4679 no_cache=1
4680 fi
4681
4682 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4683
4684fi
4685
4686
4687 eval "$ac_cv_use_logwin"
4688 if test "$no_cache" != 1; then
4689 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4690 fi
4691
4692 if test "$wxUSE_LOGWINDOW" = yes; then
4693 echo "$ac_t""yes" 1>&6
4694 else
4695 echo "$ac_t""no" 1>&6
4696 fi
4697
4698
10f2d63a 4699
698dcdb6 4700 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
2389f33b 4701echo "configure:4702: checking for --enable-postscript" >&5
10f2d63a
VZ
4702 no_cache=0
4703 # Check whether --enable-postscript or --disable-postscript was given.
4704if test "${enable_postscript+set}" = set; then
4705 enableval="$enable_postscript"
698dcdb6 4706
10f2d63a
VZ
4707 if test "$enableval" = yes; then
4708 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4709 else
4710 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4711 fi
698dcdb6 4712
10f2d63a 4713else
698dcdb6 4714
10f2d63a
VZ
4715 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4716 if test "x$LINE" != x ; then
4717 eval "DEFAULT_$LINE"
4718 else
4719 no_cache=1
4720 fi
4721
4722 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
4723
4724fi
10f2d63a
VZ
4725
4726
4727 eval "$ac_cv_use_postscript"
4728 if test "$no_cache" != 1; then
4729 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4730 fi
4731
4732 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 4733 echo "$ac_t""yes" 1>&6
10f2d63a 4734 else
698dcdb6 4735 echo "$ac_t""no" 1>&6
10f2d63a 4736 fi
698dcdb6
VZ
4737
4738
4739
10f2d63a 4740
1e6feb95 4741
698dcdb6 4742 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
2389f33b 4743echo "configure:4744: checking for --enable-prologio" >&5
10f2d63a
VZ
4744 no_cache=0
4745 # Check whether --enable-prologio or --disable-prologio was given.
4746if test "${enable_prologio+set}" = set; then
4747 enableval="$enable_prologio"
698dcdb6 4748
10f2d63a
VZ
4749 if test "$enableval" = yes; then
4750 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4751 else
4752 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4753 fi
698dcdb6 4754
10f2d63a 4755else
698dcdb6 4756
10f2d63a
VZ
4757 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4758 if test "x$LINE" != x ; then
4759 eval "DEFAULT_$LINE"
4760 else
4761 no_cache=1
4762 fi
4763
4764 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
4765
4766fi
10f2d63a
VZ
4767
4768
4769 eval "$ac_cv_use_prologio"
4770 if test "$no_cache" != 1; then
4771 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4772 fi
4773
4774 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 4775 echo "$ac_t""yes" 1>&6
10f2d63a 4776 else
698dcdb6 4777 echo "$ac_t""no" 1>&6
10f2d63a 4778 fi
698dcdb6 4779
10f2d63a 4780
698dcdb6 4781 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
2389f33b 4782echo "configure:4783: checking for --enable-resources" >&5
10f2d63a
VZ
4783 no_cache=0
4784 # Check whether --enable-resources or --disable-resources was given.
4785if test "${enable_resources+set}" = set; then
4786 enableval="$enable_resources"
698dcdb6 4787
10f2d63a
VZ
4788 if test "$enableval" = yes; then
4789 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4790 else
4791 ac_cv_use_resources='wxUSE_RESOURCES=no'
4792 fi
698dcdb6 4793
10f2d63a 4794else
698dcdb6 4795
10f2d63a
VZ
4796 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4797 if test "x$LINE" != x ; then
4798 eval "DEFAULT_$LINE"
4799 else
4800 no_cache=1
4801 fi
4802
4803 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
4804
4805fi
10f2d63a
VZ
4806
4807
4808 eval "$ac_cv_use_resources"
4809 if test "$no_cache" != 1; then
4810 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4811 fi
4812
4813 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 4814 echo "$ac_t""yes" 1>&6
10f2d63a 4815 else
698dcdb6 4816 echo "$ac_t""no" 1>&6
10f2d63a 4817 fi
698dcdb6 4818
10f2d63a 4819
698dcdb6
VZ
4820
4821 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
2389f33b 4822echo "configure:4823: checking for --enable-xresources" >&5
10f2d63a
VZ
4823 no_cache=0
4824 # Check whether --enable-xresources or --disable-xresources was given.
4825if test "${enable_xresources+set}" = set; then
4826 enableval="$enable_xresources"
698dcdb6 4827
10f2d63a
VZ
4828 if test "$enableval" = yes; then
4829 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4830 else
4831 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4832 fi
698dcdb6 4833
10f2d63a 4834else
698dcdb6 4835
10f2d63a
VZ
4836 LINE=`grep "wxUSE_X_RESOURCES" ${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_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
4844
4845fi
10f2d63a
VZ
4846
4847
4848 eval "$ac_cv_use_xresources"
4849 if test "$no_cache" != 1; then
4850 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4851 fi
4852
4853 if test "$wxUSE_X_RESOURCES" = 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
VZ
4858
4859
10f2d63a 4860
698dcdb6
VZ
4861
4862 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
2389f33b 4863echo "configure:4864: checking for --enable-clipboard" >&5
10f2d63a
VZ
4864 no_cache=0
4865 # Check whether --enable-clipboard or --disable-clipboard was given.
4866if test "${enable_clipboard+set}" = set; then
4867 enableval="$enable_clipboard"
698dcdb6 4868
10f2d63a
VZ
4869 if test "$enableval" = yes; then
4870 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4871 else
4872 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4873 fi
698dcdb6 4874
10f2d63a 4875else
698dcdb6 4876
10f2d63a
VZ
4877 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4878 if test "x$LINE" != x ; then
4879 eval "DEFAULT_$LINE"
4880 else
4881 no_cache=1
4882 fi
4883
4884 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
4885
4886fi
10f2d63a
VZ
4887
4888
4889 eval "$ac_cv_use_clipboard"
4890 if test "$no_cache" != 1; then
4891 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4892 fi
4893
4894 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 4895 echo "$ac_t""yes" 1>&6
10f2d63a 4896 else
698dcdb6 4897 echo "$ac_t""no" 1>&6
10f2d63a 4898 fi
698dcdb6 4899
10f2d63a 4900
698dcdb6 4901 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
2389f33b 4902echo "configure:4903: checking for --enable-dnd" >&5
10f2d63a
VZ
4903 no_cache=0
4904 # Check whether --enable-dnd or --disable-dnd was given.
4905if test "${enable_dnd+set}" = set; then
4906 enableval="$enable_dnd"
698dcdb6 4907
10f2d63a
VZ
4908 if test "$enableval" = yes; then
4909 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4910 else
4911 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4912 fi
698dcdb6 4913
10f2d63a 4914else
698dcdb6 4915
10f2d63a
VZ
4916 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4917 if test "x$LINE" != x ; then
4918 eval "DEFAULT_$LINE"
4919 else
4920 no_cache=1
4921 fi
4922
4923 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
4924
4925fi
10f2d63a
VZ
4926
4927
4928 eval "$ac_cv_use_dnd"
4929 if test "$no_cache" != 1; then
4930 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4931 fi
4932
4933 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 4934 echo "$ac_t""yes" 1>&6
10f2d63a 4935 else
698dcdb6 4936 echo "$ac_t""no" 1>&6
10f2d63a 4937 fi
698dcdb6 4938
10f2d63a 4939
698dcdb6 4940 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
2389f33b 4941echo "configure:4942: checking for --enable-metafile" >&5
b64f0a5f
RL
4942 no_cache=0
4943 # Check whether --enable-metafile or --disable-metafile was given.
4944if test "${enable_metafile+set}" = set; then
4945 enableval="$enable_metafile"
698dcdb6 4946
b64f0a5f
RL
4947 if test "$enableval" = yes; then
4948 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4949 else
4950 ac_cv_use_metafile='wxUSE_METAFILE=no'
4951 fi
698dcdb6 4952
b64f0a5f 4953else
698dcdb6 4954
b64f0a5f
RL
4955 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4956 if test "x$LINE" != x ; then
4957 eval "DEFAULT_$LINE"
4958 else
4959 no_cache=1
4960 fi
4961
4962 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
4963
4964fi
b64f0a5f
RL
4965
4966
4967 eval "$ac_cv_use_metafile"
4968 if test "$no_cache" != 1; then
4969 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4970 fi
4971
4972 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 4973 echo "$ac_t""yes" 1>&6
b64f0a5f 4974 else
698dcdb6 4975 echo "$ac_t""no" 1>&6
b64f0a5f 4976 fi
698dcdb6
VZ
4977
4978
10f2d63a 4979
24176f2c 4980 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
2389f33b 4981echo "configure:4982: checking for --enable-treelayout" >&5
10f2d63a 4982 no_cache=0
24176f2c
GD
4983 # Check whether --enable-treelayout or --disable-treelayout was given.
4984if test "${enable_treelayout+set}" = set; then
4985 enableval="$enable_treelayout"
698dcdb6 4986
10f2d63a 4987 if test "$enableval" = yes; then
24176f2c 4988 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 4989 else
24176f2c 4990 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 4991 fi
698dcdb6 4992
10f2d63a 4993else
698dcdb6 4994
24176f2c 4995 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
4996 if test "x$LINE" != x ; then
4997 eval "DEFAULT_$LINE"
4998 else
4999 no_cache=1
5000 fi
5001
24176f2c 5002 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
5003
5004fi
10f2d63a
VZ
5005
5006
24176f2c 5007 eval "$ac_cv_use_treelayout"
10f2d63a 5008 if test "$no_cache" != 1; then
24176f2c 5009 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5010 fi
5011
24176f2c 5012 if test "$wxUSE_TREELAYOUT" = 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 5018
698dcdb6
VZ
5019
5020
5021 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
2389f33b 5022echo "configure:5023: checking for --enable-controls" >&5
10f2d63a
VZ
5023 no_cache=0
5024 # Check whether --enable-controls or --disable-controls was given.
5025if test "${enable_controls+set}" = set; then
5026 enableval="$enable_controls"
698dcdb6 5027
10f2d63a
VZ
5028 if test "$enableval" = yes; then
5029 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5030 else
5031 ac_cv_use_controls='wxUSE_CONTROLS=no'
5032 fi
698dcdb6 5033
10f2d63a 5034else
698dcdb6 5035
10f2d63a
VZ
5036 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5037 if test "x$LINE" != x ; then
5038 eval "DEFAULT_$LINE"
5039 else
5040 no_cache=1
5041 fi
5042
5043 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5044
5045fi
10f2d63a
VZ
5046
5047
5048 eval "$ac_cv_use_controls"
5049 if test "$no_cache" != 1; then
5050 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5051 fi
5052
5053 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5054 echo "$ac_t""yes" 1>&6
10f2d63a 5055 else
698dcdb6 5056 echo "$ac_t""no" 1>&6
10f2d63a 5057 fi
698dcdb6 5058
10f2d63a
VZ
5059
5060if test "$wxUSE_CONTROLS" = "yes"; then
5061 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5062 DEFAULT_wxUSE_BMPBUTTON=yes
5063 DEFAULT_wxUSE_BUTTON=yes
5064 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5065 DEFAULT_wxUSE_CARET=yes
5066 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5067 DEFAULT_wxUSE_CHECKBOX=yes
5068 DEFAULT_wxUSE_CHECKLISTBOX=yes
5069 DEFAULT_wxUSE_CHOICE=yes
5070 DEFAULT_wxUSE_GAUGE=yes
5071 DEFAULT_wxUSE_GRID=yes
cc977e5f 5072 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5073 DEFAULT_wxUSE_IMAGLIST=yes
5074 DEFAULT_wxUSE_LISTBOX=yes
5075 DEFAULT_wxUSE_LISTCTRL=yes
5076 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5077 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5078 DEFAULT_wxUSE_RADIOBOX=yes
5079 DEFAULT_wxUSE_RADIOBTN=yes
5080 DEFAULT_wxUSE_SASH=yes
5081 DEFAULT_wxUSE_SCROLLBAR=yes
5082 DEFAULT_wxUSE_SLIDER=yes
5083 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5084 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5085 DEFAULT_wxUSE_SPLITTER=yes
5086 DEFAULT_wxUSE_STATBMP=yes
5087 DEFAULT_wxUSE_STATBOX=yes
5088 DEFAULT_wxUSE_STATLINE=yes
5089 DEFAULT_wxUSE_STATUSBAR=yes
5090 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5091 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5092 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5093 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5094 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5095 DEFAULT_wxUSE_TOOLTIPS=yes
5096 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5097 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
5098elif test "$wxUSE_CONTROLS" = "no"; then
5099 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5100 DEFAULT_wxUSE_BMPBUTTON=no
5101 DEFAULT_wxUSE_BUTTON=no
5102 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5103 DEFAULT_wxUSE_CARET=no
5104 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5105 DEFAULT_wxUSE_CHECKBOX=no
5106 DEFAULT_wxUSE_CHECKLISTBOX=no
5107 DEFAULT_wxUSE_CHOICE=no
5108 DEFAULT_wxUSE_GAUGE=no
5109 DEFAULT_wxUSE_GRID=no
5110 DEFAULT_wxUSE_NEW_GRID=no
5111 DEFAULT_wxUSE_IMAGLIST=no
5112 DEFAULT_wxUSE_LISTBOX=no
5113 DEFAULT_wxUSE_LISTCTRL=no
5114 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5115 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5116 DEFAULT_wxUSE_RADIOBOX=no
5117 DEFAULT_wxUSE_RADIOBTN=no
5118 DEFAULT_wxUSE_SASH=no
5119 DEFAULT_wxUSE_SCROLLBAR=no
5120 DEFAULT_wxUSE_SLIDER=no
5121 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5122 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5123 DEFAULT_wxUSE_SPLITTER=no
5124 DEFAULT_wxUSE_STATBMP=no
5125 DEFAULT_wxUSE_STATBOX=no
5126 DEFAULT_wxUSE_STATLINE=no
5127 DEFAULT_wxUSE_STATUSBAR=no
5128 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5129 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5130 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5131 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5132 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5133 DEFAULT_wxUSE_TOOLTIPS=no
5134 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5135 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
5136fi
5137
698dcdb6
VZ
5138
5139 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
2389f33b 5140echo "configure:5141: checking for --enable-accel" >&5
10f2d63a
VZ
5141 no_cache=0
5142 # Check whether --enable-accel or --disable-accel was given.
5143if test "${enable_accel+set}" = set; then
5144 enableval="$enable_accel"
698dcdb6 5145
10f2d63a
VZ
5146 if test "$enableval" = yes; then
5147 ac_cv_use_accel='wxUSE_ACCEL=yes'
5148 else
5149 ac_cv_use_accel='wxUSE_ACCEL=no'
5150 fi
698dcdb6 5151
10f2d63a 5152else
698dcdb6 5153
10f2d63a
VZ
5154 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5155 if test "x$LINE" != x ; then
5156 eval "DEFAULT_$LINE"
5157 else
5158 no_cache=1
5159 fi
5160
5161 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5162
5163fi
10f2d63a
VZ
5164
5165
5166 eval "$ac_cv_use_accel"
5167 if test "$no_cache" != 1; then
5168 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5169 fi
5170
5171 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5172 echo "$ac_t""yes" 1>&6
10f2d63a 5173 else
698dcdb6 5174 echo "$ac_t""no" 1>&6
10f2d63a 5175 fi
698dcdb6 5176
10f2d63a 5177
1e6feb95 5178 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
2389f33b 5179echo "configure:5180: checking for --enable-button" >&5
10f2d63a 5180 no_cache=0
1e6feb95
VZ
5181 # Check whether --enable-button or --disable-button was given.
5182if test "${enable_button+set}" = set; then
5183 enableval="$enable_button"
698dcdb6 5184
10f2d63a 5185 if test "$enableval" = yes; then
1e6feb95 5186 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5187 else
1e6feb95 5188 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5189 fi
698dcdb6 5190
10f2d63a 5191else
698dcdb6 5192
1e6feb95 5193 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5194 if test "x$LINE" != x ; then
5195 eval "DEFAULT_$LINE"
5196 else
5197 no_cache=1
5198 fi
5199
1e6feb95 5200 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5201
5202fi
10f2d63a
VZ
5203
5204
1e6feb95 5205 eval "$ac_cv_use_button"
10f2d63a 5206 if test "$no_cache" != 1; then
1e6feb95 5207 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5208 fi
5209
1e6feb95 5210 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5211 echo "$ac_t""yes" 1>&6
10f2d63a 5212 else
698dcdb6 5213 echo "$ac_t""no" 1>&6
10f2d63a 5214 fi
698dcdb6 5215
10f2d63a 5216
698dcdb6 5217 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
2389f33b 5218echo "configure:5219: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5219 no_cache=0
5220 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5221if test "${enable_bmpbutton+set}" = set; then
5222 enableval="$enable_bmpbutton"
698dcdb6 5223
10f2d63a
VZ
5224 if test "$enableval" = yes; then
5225 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5226 else
5227 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5228 fi
698dcdb6 5229
10f2d63a 5230else
698dcdb6 5231
10f2d63a
VZ
5232 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5233 if test "x$LINE" != x ; then
5234 eval "DEFAULT_$LINE"
5235 else
5236 no_cache=1
5237 fi
5238
5239 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5240
5241fi
10f2d63a
VZ
5242
5243
5244 eval "$ac_cv_use_bmpbutton"
5245 if test "$no_cache" != 1; then
5246 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5247 fi
5248
5249 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5250 echo "$ac_t""yes" 1>&6
10f2d63a 5251 else
698dcdb6 5252 echo "$ac_t""no" 1>&6
10f2d63a 5253 fi
698dcdb6 5254
10f2d63a 5255
1e6feb95 5256 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
2389f33b 5257echo "configure:5258: checking for --enable-calendar" >&5
1e6feb95
VZ
5258 no_cache=0
5259 # Check whether --enable-calendar or --disable-calendar was given.
5260if test "${enable_calendar+set}" = set; then
5261 enableval="$enable_calendar"
5262
5263 if test "$enableval" = yes; then
5264 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5265 else
5266 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5267 fi
5268
5269else
5270
5271 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5272 if test "x$LINE" != x ; then
5273 eval "DEFAULT_$LINE"
5274 else
5275 no_cache=1
5276 fi
5277
5278 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5279
5280fi
5281
5282
5283 eval "$ac_cv_use_calendar"
5284 if test "$no_cache" != 1; then
5285 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5286 fi
5287
5288 if test "$wxUSE_CALCTRL" = yes; then
5289 echo "$ac_t""yes" 1>&6
5290 else
5291 echo "$ac_t""no" 1>&6
5292 fi
5293
5294
5295 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
2389f33b 5296echo "configure:5297: checking for --enable-caret" >&5
1e6feb95
VZ
5297 no_cache=0
5298 # Check whether --enable-caret or --disable-caret was given.
5299if test "${enable_caret+set}" = set; then
5300 enableval="$enable_caret"
5301
5302 if test "$enableval" = yes; then
5303 ac_cv_use_caret='wxUSE_CARET=yes'
5304 else
5305 ac_cv_use_caret='wxUSE_CARET=no'
5306 fi
5307
5308else
5309
5310 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5311 if test "x$LINE" != x ; then
5312 eval "DEFAULT_$LINE"
5313 else
5314 no_cache=1
5315 fi
5316
5317 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5318
5319fi
5320
5321
5322 eval "$ac_cv_use_caret"
5323 if test "$no_cache" != 1; then
5324 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5325 fi
5326
5327 if test "$wxUSE_CARET" = yes; then
5328 echo "$ac_t""yes" 1>&6
5329 else
5330 echo "$ac_t""no" 1>&6
5331 fi
5332
5333
698dcdb6 5334 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
2389f33b 5335echo "configure:5336: checking for --enable-checkbox" >&5
10f2d63a
VZ
5336 no_cache=0
5337 # Check whether --enable-checkbox or --disable-checkbox was given.
5338if test "${enable_checkbox+set}" = set; then
5339 enableval="$enable_checkbox"
698dcdb6 5340
10f2d63a
VZ
5341 if test "$enableval" = yes; then
5342 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5343 else
5344 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5345 fi
698dcdb6 5346
10f2d63a 5347else
698dcdb6 5348
10f2d63a
VZ
5349 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5350 if test "x$LINE" != x ; then
5351 eval "DEFAULT_$LINE"
5352 else
5353 no_cache=1
5354 fi
5355
5356 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5357
5358fi
10f2d63a
VZ
5359
5360
5361 eval "$ac_cv_use_checkbox"
5362 if test "$no_cache" != 1; then
5363 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5364 fi
5365
5366 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5367 echo "$ac_t""yes" 1>&6
10f2d63a 5368 else
698dcdb6 5369 echo "$ac_t""no" 1>&6
10f2d63a 5370 fi
698dcdb6 5371
10f2d63a 5372
698dcdb6 5373 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
2389f33b 5374echo "configure:5375: checking for --enable-checklst" >&5
10f2d63a
VZ
5375 no_cache=0
5376 # Check whether --enable-checklst or --disable-checklst was given.
5377if test "${enable_checklst+set}" = set; then
5378 enableval="$enable_checklst"
698dcdb6 5379
10f2d63a
VZ
5380 if test "$enableval" = yes; then
5381 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5382 else
5383 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5384 fi
698dcdb6 5385
10f2d63a 5386else
698dcdb6 5387
10f2d63a
VZ
5388 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5389 if test "x$LINE" != x ; then
5390 eval "DEFAULT_$LINE"
5391 else
5392 no_cache=1
5393 fi
5394
5395 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5396
5397fi
10f2d63a
VZ
5398
5399
5400 eval "$ac_cv_use_checklst"
5401 if test "$no_cache" != 1; then
5402 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5403 fi
5404
5405 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5406 echo "$ac_t""yes" 1>&6
10f2d63a 5407 else
698dcdb6 5408 echo "$ac_t""no" 1>&6
10f2d63a 5409 fi
698dcdb6 5410
10f2d63a 5411
698dcdb6 5412 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
2389f33b 5413echo "configure:5414: checking for --enable-choice" >&5
10f2d63a
VZ
5414 no_cache=0
5415 # Check whether --enable-choice or --disable-choice was given.
5416if test "${enable_choice+set}" = set; then
5417 enableval="$enable_choice"
698dcdb6 5418
10f2d63a
VZ
5419 if test "$enableval" = yes; then
5420 ac_cv_use_choice='wxUSE_CHOICE=yes'
5421 else
5422 ac_cv_use_choice='wxUSE_CHOICE=no'
5423 fi
698dcdb6 5424
10f2d63a 5425else
698dcdb6 5426
10f2d63a
VZ
5427 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5428 if test "x$LINE" != x ; then
5429 eval "DEFAULT_$LINE"
5430 else
5431 no_cache=1
5432 fi
5433
5434 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5435
5436fi
10f2d63a
VZ
5437
5438
5439 eval "$ac_cv_use_choice"
5440 if test "$no_cache" != 1; then
5441 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5442 fi
5443
5444 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5445 echo "$ac_t""yes" 1>&6
10f2d63a 5446 else
698dcdb6 5447 echo "$ac_t""no" 1>&6
10f2d63a 5448 fi
698dcdb6 5449
10f2d63a 5450
698dcdb6 5451 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
2389f33b 5452echo "configure:5453: checking for --enable-combobox" >&5
10f2d63a
VZ
5453 no_cache=0
5454 # Check whether --enable-combobox or --disable-combobox was given.
5455if test "${enable_combobox+set}" = set; then
5456 enableval="$enable_combobox"
698dcdb6 5457
10f2d63a
VZ
5458 if test "$enableval" = yes; then
5459 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5460 else
5461 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5462 fi
698dcdb6 5463
10f2d63a 5464else
698dcdb6 5465
10f2d63a
VZ
5466 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5467 if test "x$LINE" != x ; then
5468 eval "DEFAULT_$LINE"
5469 else
5470 no_cache=1
5471 fi
5472
5473 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
5474
5475fi
10f2d63a
VZ
5476
5477
5478 eval "$ac_cv_use_combobox"
5479 if test "$no_cache" != 1; then
5480 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5481 fi
5482
5483 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 5484 echo "$ac_t""yes" 1>&6
10f2d63a 5485 else
698dcdb6 5486 echo "$ac_t""no" 1>&6
10f2d63a 5487 fi
698dcdb6 5488
10f2d63a 5489
698dcdb6 5490 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
2389f33b 5491echo "configure:5492: checking for --enable-gauge" >&5
10f2d63a
VZ
5492 no_cache=0
5493 # Check whether --enable-gauge or --disable-gauge was given.
5494if test "${enable_gauge+set}" = set; then
5495 enableval="$enable_gauge"
698dcdb6 5496
10f2d63a
VZ
5497 if test "$enableval" = yes; then
5498 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5499 else
5500 ac_cv_use_gauge='wxUSE_GAUGE=no'
5501 fi
698dcdb6 5502
10f2d63a 5503else
698dcdb6 5504
10f2d63a
VZ
5505 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5506 if test "x$LINE" != x ; then
5507 eval "DEFAULT_$LINE"
5508 else
5509 no_cache=1
5510 fi
5511
5512 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
5513
5514fi
10f2d63a
VZ
5515
5516
5517 eval "$ac_cv_use_gauge"
5518 if test "$no_cache" != 1; then
5519 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5520 fi
5521
5522 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 5523 echo "$ac_t""yes" 1>&6
10f2d63a 5524 else
698dcdb6 5525 echo "$ac_t""no" 1>&6
10f2d63a 5526 fi
698dcdb6 5527
10f2d63a 5528
698dcdb6 5529 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
2389f33b 5530echo "configure:5531: checking for --enable-grid" >&5
10f2d63a
VZ
5531 no_cache=0
5532 # Check whether --enable-grid or --disable-grid was given.
5533if test "${enable_grid+set}" = set; then
5534 enableval="$enable_grid"
698dcdb6 5535
10f2d63a
VZ
5536 if test "$enableval" = yes; then
5537 ac_cv_use_grid='wxUSE_GRID=yes'
5538 else
5539 ac_cv_use_grid='wxUSE_GRID=no'
5540 fi
698dcdb6 5541
10f2d63a 5542else
698dcdb6 5543
10f2d63a
VZ
5544 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5545 if test "x$LINE" != x ; then
5546 eval "DEFAULT_$LINE"
5547 else
5548 no_cache=1
5549 fi
5550
5551 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
5552
5553fi
10f2d63a
VZ
5554
5555
5556 eval "$ac_cv_use_grid"
5557 if test "$no_cache" != 1; then
5558 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5559 fi
5560
5561 if test "$wxUSE_GRID" = yes; then
698dcdb6 5562 echo "$ac_t""yes" 1>&6
10f2d63a 5563 else
698dcdb6 5564 echo "$ac_t""no" 1>&6
10f2d63a 5565 fi
698dcdb6 5566
10f2d63a 5567
698dcdb6 5568 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
2389f33b 5569echo "configure:5570: checking for --enable-newgrid" >&5
10f2d63a
VZ
5570 no_cache=0
5571 # Check whether --enable-newgrid or --disable-newgrid was given.
5572if test "${enable_newgrid+set}" = set; then
5573 enableval="$enable_newgrid"
698dcdb6 5574
10f2d63a
VZ
5575 if test "$enableval" = yes; then
5576 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5577 else
5578 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5579 fi
698dcdb6 5580
10f2d63a 5581else
698dcdb6 5582
10f2d63a
VZ
5583 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5584 if test "x$LINE" != x ; then
5585 eval "DEFAULT_$LINE"
5586 else
5587 no_cache=1
5588 fi
5589
5590 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
5591
5592fi
10f2d63a
VZ
5593
5594
5595 eval "$ac_cv_use_newgrid"
5596 if test "$no_cache" != 1; then
5597 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5598 fi
5599
5600 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 5601 echo "$ac_t""yes" 1>&6
10f2d63a 5602 else
698dcdb6 5603 echo "$ac_t""no" 1>&6
10f2d63a 5604 fi
698dcdb6 5605
10f2d63a 5606
698dcdb6 5607 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
2389f33b 5608echo "configure:5609: checking for --enable-imaglist" >&5
10f2d63a
VZ
5609 no_cache=0
5610 # Check whether --enable-imaglist or --disable-imaglist was given.
5611if test "${enable_imaglist+set}" = set; then
5612 enableval="$enable_imaglist"
698dcdb6 5613
10f2d63a
VZ
5614 if test "$enableval" = yes; then
5615 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5616 else
5617 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5618 fi
698dcdb6 5619
10f2d63a 5620else
698dcdb6 5621
10f2d63a
VZ
5622 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5623 if test "x$LINE" != x ; then
5624 eval "DEFAULT_$LINE"
5625 else
5626 no_cache=1
5627 fi
5628
5629 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
5630
5631fi
10f2d63a
VZ
5632
5633
5634 eval "$ac_cv_use_imaglist"
5635 if test "$no_cache" != 1; then
5636 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5637 fi
5638
5639 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 5640 echo "$ac_t""yes" 1>&6
10f2d63a 5641 else
698dcdb6 5642 echo "$ac_t""no" 1>&6
10f2d63a 5643 fi
698dcdb6 5644
10f2d63a 5645
698dcdb6 5646 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
2389f33b 5647echo "configure:5648: checking for --enable-listbox" >&5
10f2d63a
VZ
5648 no_cache=0
5649 # Check whether --enable-listbox or --disable-listbox was given.
5650if test "${enable_listbox+set}" = set; then
5651 enableval="$enable_listbox"
698dcdb6 5652
10f2d63a
VZ
5653 if test "$enableval" = yes; then
5654 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5655 else
5656 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5657 fi
698dcdb6 5658
10f2d63a 5659else
698dcdb6 5660
10f2d63a
VZ
5661 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5662 if test "x$LINE" != x ; then
5663 eval "DEFAULT_$LINE"
5664 else
5665 no_cache=1
5666 fi
5667
5668 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
5669
5670fi
10f2d63a
VZ
5671
5672
5673 eval "$ac_cv_use_listbox"
5674 if test "$no_cache" != 1; then
5675 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5676 fi
5677
5678 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 5679 echo "$ac_t""yes" 1>&6
10f2d63a 5680 else
698dcdb6 5681 echo "$ac_t""no" 1>&6
10f2d63a 5682 fi
698dcdb6 5683
10f2d63a 5684
698dcdb6 5685 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
2389f33b 5686echo "configure:5687: checking for --enable-listctrl" >&5
10f2d63a
VZ
5687 no_cache=0
5688 # Check whether --enable-listctrl or --disable-listctrl was given.
5689if test "${enable_listctrl+set}" = set; then
5690 enableval="$enable_listctrl"
698dcdb6 5691
10f2d63a
VZ
5692 if test "$enableval" = yes; then
5693 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5694 else
5695 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5696 fi
698dcdb6 5697
10f2d63a 5698else
698dcdb6 5699
10f2d63a
VZ
5700 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5701 if test "x$LINE" != x ; then
5702 eval "DEFAULT_$LINE"
5703 else
5704 no_cache=1
5705 fi
5706
5707 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
5708
5709fi
10f2d63a
VZ
5710
5711
5712 eval "$ac_cv_use_listctrl"
5713 if test "$no_cache" != 1; then
5714 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5715 fi
5716
5717 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 5718 echo "$ac_t""yes" 1>&6
10f2d63a 5719 else
698dcdb6 5720 echo "$ac_t""no" 1>&6
10f2d63a 5721 fi
698dcdb6 5722
10f2d63a 5723
698dcdb6 5724 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
2389f33b 5725echo "configure:5726: checking for --enable-notebook" >&5
10f2d63a
VZ
5726 no_cache=0
5727 # Check whether --enable-notebook or --disable-notebook was given.
5728if test "${enable_notebook+set}" = set; then
5729 enableval="$enable_notebook"
698dcdb6 5730
10f2d63a
VZ
5731 if test "$enableval" = yes; then
5732 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5733 else
5734 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5735 fi
698dcdb6 5736
10f2d63a 5737else
698dcdb6 5738
10f2d63a
VZ
5739 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5740 if test "x$LINE" != x ; then
5741 eval "DEFAULT_$LINE"
5742 else
5743 no_cache=1
5744 fi
5745
5746 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
5747
5748fi
10f2d63a
VZ
5749
5750
5751 eval "$ac_cv_use_notebook"
5752 if test "$no_cache" != 1; then
5753 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5754 fi
5755
5756 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 5757 echo "$ac_t""yes" 1>&6
10f2d63a 5758 else
698dcdb6 5759 echo "$ac_t""no" 1>&6
10f2d63a 5760 fi
698dcdb6 5761
10f2d63a 5762
24176f2c 5763 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
2389f33b 5764echo "configure:5765: checking for --enable-propsheet" >&5
24176f2c
GD
5765 no_cache=0
5766 # Check whether --enable-propsheet or --disable-propsheet was given.
5767if test "${enable_propsheet+set}" = set; then
5768 enableval="$enable_propsheet"
5769
5770 if test "$enableval" = yes; then
5771 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5772 else
5773 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5774 fi
5775
5776else
5777
5778 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5779 if test "x$LINE" != x ; then
5780 eval "DEFAULT_$LINE"
5781 else
5782 no_cache=1
5783 fi
5784
5785 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5786
5787fi
5788
5789
5790 eval "$ac_cv_use_propsheet"
5791 if test "$no_cache" != 1; then
5792 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5793 fi
5794
5795 if test "$wxUSE_PROPSHEET" = yes; then
5796 echo "$ac_t""yes" 1>&6
5797 else
5798 echo "$ac_t""no" 1>&6
5799 fi
5800
5801
698dcdb6 5802 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
2389f33b 5803echo "configure:5804: checking for --enable-radiobox" >&5
10f2d63a
VZ
5804 no_cache=0
5805 # Check whether --enable-radiobox or --disable-radiobox was given.
5806if test "${enable_radiobox+set}" = set; then
5807 enableval="$enable_radiobox"
698dcdb6 5808
10f2d63a
VZ
5809 if test "$enableval" = yes; then
5810 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5811 else
5812 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5813 fi
698dcdb6 5814
10f2d63a 5815else
698dcdb6 5816
10f2d63a
VZ
5817 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5818 if test "x$LINE" != x ; then
5819 eval "DEFAULT_$LINE"
5820 else
5821 no_cache=1
5822 fi
5823
5824 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
5825
5826fi
10f2d63a
VZ
5827
5828
5829 eval "$ac_cv_use_radiobox"
5830 if test "$no_cache" != 1; then
5831 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5832 fi
5833
5834 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 5835 echo "$ac_t""yes" 1>&6
10f2d63a 5836 else
698dcdb6 5837 echo "$ac_t""no" 1>&6
10f2d63a 5838 fi
698dcdb6 5839
10f2d63a 5840
698dcdb6 5841 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
2389f33b 5842echo "configure:5843: checking for --enable-radiobtn" >&5
10f2d63a
VZ
5843 no_cache=0
5844 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5845if test "${enable_radiobtn+set}" = set; then
5846 enableval="$enable_radiobtn"
698dcdb6 5847
10f2d63a
VZ
5848 if test "$enableval" = yes; then
5849 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5850 else
5851 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5852 fi
698dcdb6 5853
10f2d63a 5854else
698dcdb6 5855
10f2d63a
VZ
5856 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5857 if test "x$LINE" != x ; then
5858 eval "DEFAULT_$LINE"
5859 else
5860 no_cache=1
5861 fi
5862
5863 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
5864
5865fi
10f2d63a
VZ
5866
5867
5868 eval "$ac_cv_use_radiobtn"
5869 if test "$no_cache" != 1; then
5870 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5871 fi
5872
5873 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 5874 echo "$ac_t""yes" 1>&6
10f2d63a 5875 else
698dcdb6 5876 echo "$ac_t""no" 1>&6
10f2d63a 5877 fi
698dcdb6 5878
10f2d63a 5879
698dcdb6 5880 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
2389f33b 5881echo "configure:5882: checking for --enable-sash" >&5
10f2d63a
VZ
5882 no_cache=0
5883 # Check whether --enable-sash or --disable-sash was given.
5884if test "${enable_sash+set}" = set; then
5885 enableval="$enable_sash"
698dcdb6 5886
10f2d63a
VZ
5887 if test "$enableval" = yes; then
5888 ac_cv_use_sash='wxUSE_SASH=yes'
5889 else
5890 ac_cv_use_sash='wxUSE_SASH=no'
5891 fi
698dcdb6 5892
10f2d63a 5893else
698dcdb6 5894
10f2d63a
VZ
5895 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5896 if test "x$LINE" != x ; then
5897 eval "DEFAULT_$LINE"
5898 else
5899 no_cache=1
5900 fi
5901
5902 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
5903
5904fi
10f2d63a
VZ
5905
5906
5907 eval "$ac_cv_use_sash"
5908 if test "$no_cache" != 1; then
5909 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5910 fi
5911
5912 if test "$wxUSE_SASH" = yes; then
698dcdb6 5913 echo "$ac_t""yes" 1>&6
10f2d63a 5914 else
698dcdb6 5915 echo "$ac_t""no" 1>&6
10f2d63a 5916 fi
698dcdb6 5917
10f2d63a 5918
698dcdb6 5919 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
2389f33b 5920echo "configure:5921: checking for --enable-scrollbar" >&5
10f2d63a
VZ
5921 no_cache=0
5922 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5923if test "${enable_scrollbar+set}" = set; then
5924 enableval="$enable_scrollbar"
698dcdb6 5925
10f2d63a
VZ
5926 if test "$enableval" = yes; then
5927 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5928 else
5929 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5930 fi
698dcdb6 5931
10f2d63a 5932else
698dcdb6 5933
10f2d63a
VZ
5934 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5935 if test "x$LINE" != x ; then
5936 eval "DEFAULT_$LINE"
5937 else
5938 no_cache=1
5939 fi
5940
5941 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
5942
5943fi
10f2d63a
VZ
5944
5945
5946 eval "$ac_cv_use_scrollbar"
5947 if test "$no_cache" != 1; then
5948 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5949 fi
5950
5951 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 5952 echo "$ac_t""yes" 1>&6
10f2d63a 5953 else
698dcdb6 5954 echo "$ac_t""no" 1>&6
10f2d63a 5955 fi
698dcdb6 5956
10f2d63a 5957
698dcdb6 5958 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
2389f33b 5959echo "configure:5960: checking for --enable-slider" >&5
10f2d63a
VZ
5960 no_cache=0
5961 # Check whether --enable-slider or --disable-slider was given.
5962if test "${enable_slider+set}" = set; then
5963 enableval="$enable_slider"
698dcdb6 5964
10f2d63a
VZ
5965 if test "$enableval" = yes; then
5966 ac_cv_use_slider='wxUSE_SLIDER=yes'
5967 else
5968 ac_cv_use_slider='wxUSE_SLIDER=no'
5969 fi
698dcdb6 5970
10f2d63a 5971else
698dcdb6 5972
10f2d63a
VZ
5973 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5974 if test "x$LINE" != x ; then
5975 eval "DEFAULT_$LINE"
5976 else
5977 no_cache=1
5978 fi
5979
5980 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
5981
5982fi
10f2d63a
VZ
5983
5984
5985 eval "$ac_cv_use_slider"
5986 if test "$no_cache" != 1; then
5987 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5988 fi
5989
5990 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 5991 echo "$ac_t""yes" 1>&6
10f2d63a 5992 else
698dcdb6 5993 echo "$ac_t""no" 1>&6
10f2d63a 5994 fi
698dcdb6 5995
10f2d63a 5996
698dcdb6 5997 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
2389f33b 5998echo "configure:5999: checking for --enable-spinbtn" >&5
10f2d63a
VZ
5999 no_cache=0
6000 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6001if test "${enable_spinbtn+set}" = set; then
6002 enableval="$enable_spinbtn"
698dcdb6 6003
10f2d63a
VZ
6004 if test "$enableval" = yes; then
6005 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6006 else
6007 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6008 fi
698dcdb6 6009
10f2d63a 6010else
698dcdb6 6011
10f2d63a
VZ
6012 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6013 if test "x$LINE" != x ; then
6014 eval "DEFAULT_$LINE"
6015 else
6016 no_cache=1
6017 fi
6018
6019 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
6020
6021fi
10f2d63a
VZ
6022
6023
6024 eval "$ac_cv_use_spinbtn"
6025 if test "$no_cache" != 1; then
6026 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6027 fi
6028
6029 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 6030 echo "$ac_t""yes" 1>&6
10f2d63a 6031 else
698dcdb6 6032 echo "$ac_t""no" 1>&6
10f2d63a 6033 fi
698dcdb6 6034
10f2d63a 6035
698dcdb6 6036 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
2389f33b 6037echo "configure:6038: checking for --enable-spinctrl" >&5
56cfaa52
RR
6038 no_cache=0
6039 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6040if test "${enable_spinctrl+set}" = set; then
6041 enableval="$enable_spinctrl"
698dcdb6 6042
56cfaa52
RR
6043 if test "$enableval" = yes; then
6044 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6045 else
6046 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6047 fi
698dcdb6 6048
56cfaa52 6049else
698dcdb6 6050
56cfaa52
RR
6051 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6052 if test "x$LINE" != x ; then
6053 eval "DEFAULT_$LINE"
6054 else
6055 no_cache=1
6056 fi
6057
6058 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6059
6060fi
56cfaa52
RR
6061
6062
6063 eval "$ac_cv_use_spinctrl"
6064 if test "$no_cache" != 1; then
6065 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6066 fi
6067
6068 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6069 echo "$ac_t""yes" 1>&6
56cfaa52 6070 else
698dcdb6 6071 echo "$ac_t""no" 1>&6
56cfaa52 6072 fi
698dcdb6 6073
56cfaa52 6074
698dcdb6 6075 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
2389f33b 6076echo "configure:6077: checking for --enable-splitter" >&5
10f2d63a
VZ
6077 no_cache=0
6078 # Check whether --enable-splitter or --disable-splitter was given.
6079if test "${enable_splitter+set}" = set; then
6080 enableval="$enable_splitter"
698dcdb6 6081
10f2d63a
VZ
6082 if test "$enableval" = yes; then
6083 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6084 else
6085 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6086 fi
698dcdb6 6087
10f2d63a 6088else
698dcdb6 6089
10f2d63a
VZ
6090 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6091 if test "x$LINE" != x ; then
6092 eval "DEFAULT_$LINE"
6093 else
6094 no_cache=1
6095 fi
6096
6097 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6098
6099fi
10f2d63a
VZ
6100
6101
6102 eval "$ac_cv_use_splitter"
6103 if test "$no_cache" != 1; then
6104 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6105 fi
6106
6107 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6108 echo "$ac_t""yes" 1>&6
10f2d63a 6109 else
698dcdb6 6110 echo "$ac_t""no" 1>&6
10f2d63a 6111 fi
698dcdb6 6112
10f2d63a 6113
698dcdb6 6114 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
2389f33b 6115echo "configure:6116: checking for --enable-statbmp" >&5
10f2d63a
VZ
6116 no_cache=0
6117 # Check whether --enable-statbmp or --disable-statbmp was given.
6118if test "${enable_statbmp+set}" = set; then
6119 enableval="$enable_statbmp"
698dcdb6 6120
10f2d63a
VZ
6121 if test "$enableval" = yes; then
6122 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6123 else
6124 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6125 fi
698dcdb6 6126
10f2d63a 6127else
698dcdb6 6128
10f2d63a
VZ
6129 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6130 if test "x$LINE" != x ; then
6131 eval "DEFAULT_$LINE"
6132 else
6133 no_cache=1
6134 fi
6135
6136 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6137
6138fi
10f2d63a
VZ
6139
6140
6141 eval "$ac_cv_use_statbmp"
6142 if test "$no_cache" != 1; then
6143 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6144 fi
6145
6146 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6147 echo "$ac_t""yes" 1>&6
10f2d63a 6148 else
698dcdb6 6149 echo "$ac_t""no" 1>&6
10f2d63a 6150 fi
698dcdb6 6151
10f2d63a 6152
698dcdb6 6153 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
2389f33b 6154echo "configure:6155: checking for --enable-statbox" >&5
10f2d63a
VZ
6155 no_cache=0
6156 # Check whether --enable-statbox or --disable-statbox was given.
6157if test "${enable_statbox+set}" = set; then
6158 enableval="$enable_statbox"
698dcdb6 6159
10f2d63a
VZ
6160 if test "$enableval" = yes; then
6161 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6162 else
6163 ac_cv_use_statbox='wxUSE_STATBOX=no'
6164 fi
698dcdb6 6165
10f2d63a 6166else
698dcdb6 6167
10f2d63a
VZ
6168 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6169 if test "x$LINE" != x ; then
6170 eval "DEFAULT_$LINE"
6171 else
6172 no_cache=1
6173 fi
6174
6175 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6176
6177fi
10f2d63a
VZ
6178
6179
6180 eval "$ac_cv_use_statbox"
6181 if test "$no_cache" != 1; then
6182 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6183 fi
6184
6185 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6186 echo "$ac_t""yes" 1>&6
10f2d63a 6187 else
698dcdb6 6188 echo "$ac_t""no" 1>&6
10f2d63a 6189 fi
698dcdb6 6190
10f2d63a 6191
698dcdb6 6192 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
2389f33b 6193echo "configure:6194: checking for --enable-statline" >&5
10f2d63a
VZ
6194 no_cache=0
6195 # Check whether --enable-statline or --disable-statline was given.
6196if test "${enable_statline+set}" = set; then
6197 enableval="$enable_statline"
698dcdb6 6198
10f2d63a
VZ
6199 if test "$enableval" = yes; then
6200 ac_cv_use_statline='wxUSE_STATLINE=yes'
6201 else
6202 ac_cv_use_statline='wxUSE_STATLINE=no'
6203 fi
698dcdb6 6204
10f2d63a 6205else
698dcdb6 6206
10f2d63a
VZ
6207 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6208 if test "x$LINE" != x ; then
6209 eval "DEFAULT_$LINE"
6210 else
6211 no_cache=1
6212 fi
6213
6214 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6215
6216fi
10f2d63a
VZ
6217
6218
6219 eval "$ac_cv_use_statline"
6220 if test "$no_cache" != 1; then
6221 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6222 fi
6223
6224 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6225 echo "$ac_t""yes" 1>&6
10f2d63a 6226 else
698dcdb6 6227 echo "$ac_t""no" 1>&6
10f2d63a 6228 fi
698dcdb6 6229
10f2d63a 6230
1e6feb95 6231 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
2389f33b 6232echo "configure:6233: checking for --enable-stattext" >&5
1e6feb95
VZ
6233 no_cache=0
6234 # Check whether --enable-stattext or --disable-stattext was given.
6235if test "${enable_stattext+set}" = set; then
6236 enableval="$enable_stattext"
6237
6238 if test "$enableval" = yes; then
6239 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6240 else
6241 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6242 fi
6243
6244else
6245
6246 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6247 if test "x$LINE" != x ; then
6248 eval "DEFAULT_$LINE"
6249 else
6250 no_cache=1
6251 fi
6252
6253 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6254
6255fi
6256
6257
6258 eval "$ac_cv_use_stattext"
6259 if test "$no_cache" != 1; then
6260 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6261 fi
6262
6263 if test "$wxUSE_STATTEXT" = yes; then
6264 echo "$ac_t""yes" 1>&6
6265 else
6266 echo "$ac_t""no" 1>&6
6267 fi
6268
6269
698dcdb6 6270 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
2389f33b 6271echo "configure:6272: checking for --enable-statusbar" >&5
10f2d63a
VZ
6272 no_cache=0
6273 # Check whether --enable-statusbar or --disable-statusbar was given.
6274if test "${enable_statusbar+set}" = set; then
6275 enableval="$enable_statusbar"
698dcdb6 6276
10f2d63a
VZ
6277 if test "$enableval" = yes; then
6278 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6279 else
6280 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6281 fi
698dcdb6 6282
10f2d63a 6283else
698dcdb6 6284
10f2d63a
VZ
6285 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6286 if test "x$LINE" != x ; then
6287 eval "DEFAULT_$LINE"
6288 else
6289 no_cache=1
6290 fi
6291
6292 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6293
6294fi
10f2d63a
VZ
6295
6296
6297 eval "$ac_cv_use_statusbar"
6298 if test "$no_cache" != 1; then
6299 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6300 fi
6301
6302 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6303 echo "$ac_t""yes" 1>&6
10f2d63a 6304 else
698dcdb6 6305 echo "$ac_t""no" 1>&6
10f2d63a 6306 fi
698dcdb6 6307
10f2d63a 6308
698dcdb6 6309 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
2389f33b 6310echo "configure:6311: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6311 no_cache=0
6312 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6313if test "${enable_tabdialog+set}" = set; then
6314 enableval="$enable_tabdialog"
698dcdb6 6315
10f2d63a
VZ
6316 if test "$enableval" = yes; then
6317 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6318 else
6319 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6320 fi
698dcdb6 6321
10f2d63a 6322else
698dcdb6 6323
10f2d63a
VZ
6324 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6325 if test "x$LINE" != x ; then
6326 eval "DEFAULT_$LINE"
6327 else
6328 no_cache=1
6329 fi
6330
6331 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6332
6333fi
10f2d63a
VZ
6334
6335
6336 eval "$ac_cv_use_tabdialog"
6337 if test "$no_cache" != 1; then
6338 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6339 fi
6340
6341 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6342 echo "$ac_t""yes" 1>&6
10f2d63a 6343 else
698dcdb6 6344 echo "$ac_t""no" 1>&6
10f2d63a 6345 fi
698dcdb6 6346
10f2d63a 6347
1e6feb95 6348 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
2389f33b 6349echo "configure:6350: checking for --enable-textctrl" >&5
1e6feb95
VZ
6350 no_cache=0
6351 # Check whether --enable-textctrl or --disable-textctrl was given.
6352if test "${enable_textctrl+set}" = set; then
6353 enableval="$enable_textctrl"
6354
6355 if test "$enableval" = yes; then
6356 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6357 else
6358 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6359 fi
6360
6361else
6362
6363 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6364 if test "x$LINE" != x ; then
6365 eval "DEFAULT_$LINE"
6366 else
6367 no_cache=1
6368 fi
6369
6370 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6371
6372fi
6373
6374
6375 eval "$ac_cv_use_textctrl"
6376 if test "$no_cache" != 1; then
6377 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6378 fi
6379
6380 if test "$wxUSE_TEXTCTRL" = yes; then
6381 echo "$ac_t""yes" 1>&6
6382 else
6383 echo "$ac_t""no" 1>&6
6384 fi
6385
6386
698dcdb6 6387 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
2389f33b 6388echo "configure:6389: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6389 no_cache=0
6390 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6391if test "${enable_togglebtn+set}" = set; then
6392 enableval="$enable_togglebtn"
698dcdb6 6393
1db8dc4a
VZ
6394 if test "$enableval" = yes; then
6395 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6396 else
6397 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6398 fi
698dcdb6 6399
1db8dc4a 6400else
698dcdb6 6401
1db8dc4a
VZ
6402 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6403 if test "x$LINE" != x ; then
6404 eval "DEFAULT_$LINE"
6405 else
6406 no_cache=1
6407 fi
6408
6409 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6410
6411fi
1db8dc4a
VZ
6412
6413
6414 eval "$ac_cv_use_togglebtn"
6415 if test "$no_cache" != 1; then
6416 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6417 fi
6418
6419 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6420 echo "$ac_t""yes" 1>&6
1db8dc4a 6421 else
698dcdb6 6422 echo "$ac_t""no" 1>&6
1db8dc4a 6423 fi
698dcdb6 6424
1db8dc4a 6425
698dcdb6 6426 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
2389f33b 6427echo "configure:6428: checking for --enable-toolbar" >&5
10f2d63a
VZ
6428 no_cache=0
6429 # Check whether --enable-toolbar or --disable-toolbar was given.
6430if test "${enable_toolbar+set}" = set; then
6431 enableval="$enable_toolbar"
698dcdb6 6432
10f2d63a
VZ
6433 if test "$enableval" = yes; then
6434 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6435 else
6436 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6437 fi
698dcdb6 6438
10f2d63a 6439else
698dcdb6 6440
10f2d63a
VZ
6441 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6442 if test "x$LINE" != x ; then
6443 eval "DEFAULT_$LINE"
6444 else
6445 no_cache=1
6446 fi
6447
6448 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
6449
6450fi
10f2d63a
VZ
6451
6452
6453 eval "$ac_cv_use_toolbar"
6454 if test "$no_cache" != 1; then
6455 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6456 fi
6457
6458 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 6459 echo "$ac_t""yes" 1>&6
10f2d63a 6460 else
698dcdb6 6461 echo "$ac_t""no" 1>&6
10f2d63a 6462 fi
698dcdb6 6463
10f2d63a 6464
698dcdb6 6465 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
2389f33b 6466echo "configure:6467: checking for --enable-tbarnative" >&5
360d6699
VZ
6467 no_cache=0
6468 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6469if test "${enable_tbarnative+set}" = set; then
6470 enableval="$enable_tbarnative"
698dcdb6 6471
360d6699
VZ
6472 if test "$enableval" = yes; then
6473 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6474 else
6475 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6476 fi
698dcdb6 6477
360d6699 6478else
698dcdb6 6479
360d6699
VZ
6480 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6481 if test "x$LINE" != x ; then
6482 eval "DEFAULT_$LINE"
6483 else
6484 no_cache=1
6485 fi
6486
6487 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
6488
6489fi
360d6699
VZ
6490
6491
6492 eval "$ac_cv_use_tbarnative"
6493 if test "$no_cache" != 1; then
6494 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6495 fi
6496
6497 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 6498 echo "$ac_t""yes" 1>&6
360d6699 6499 else
698dcdb6 6500 echo "$ac_t""no" 1>&6
360d6699 6501 fi
698dcdb6 6502
360d6699 6503
698dcdb6 6504 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
2389f33b 6505echo "configure:6506: checking for --enable-tbarsmpl" >&5
360d6699
VZ
6506 no_cache=0
6507 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6508if test "${enable_tbarsmpl+set}" = set; then
6509 enableval="$enable_tbarsmpl"
698dcdb6 6510
360d6699
VZ
6511 if test "$enableval" = yes; then
6512 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6513 else
6514 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6515 fi
698dcdb6 6516
360d6699 6517else
698dcdb6 6518
360d6699
VZ
6519 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6520 if test "x$LINE" != x ; then
6521 eval "DEFAULT_$LINE"
6522 else
6523 no_cache=1
6524 fi
6525
6526 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
6527
6528fi
360d6699
VZ
6529
6530
6531 eval "$ac_cv_use_tbarsmpl"
6532 if test "$no_cache" != 1; then
6533 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6534 fi
6535
6536 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 6537 echo "$ac_t""yes" 1>&6
360d6699 6538 else
698dcdb6 6539 echo "$ac_t""no" 1>&6
360d6699 6540 fi
698dcdb6 6541
360d6699 6542
698dcdb6 6543 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
2389f33b 6544echo "configure:6545: checking for --enable-treectrl" >&5
10f2d63a
VZ
6545 no_cache=0
6546 # Check whether --enable-treectrl or --disable-treectrl was given.
6547if test "${enable_treectrl+set}" = set; then
6548 enableval="$enable_treectrl"
698dcdb6 6549
10f2d63a
VZ
6550 if test "$enableval" = yes; then
6551 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6552 else
6553 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6554 fi
698dcdb6 6555
10f2d63a 6556else
698dcdb6 6557
10f2d63a
VZ
6558 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6559 if test "x$LINE" != x ; then
6560 eval "DEFAULT_$LINE"
6561 else
6562 no_cache=1
6563 fi
6564
6565 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
6566
6567fi
10f2d63a
VZ
6568
6569
1e6feb95
VZ
6570 eval "$ac_cv_use_treectrl"
6571 if test "$no_cache" != 1; then
6572 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6573 fi
6574
6575 if test "$wxUSE_TREECTRL" = yes; then
6576 echo "$ac_t""yes" 1>&6
6577 else
6578 echo "$ac_t""no" 1>&6
6579 fi
6580
6581
9f41d601 6582 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
2389f33b 6583echo "configure:6584: checking for --enable-popupwin" >&5
9f41d601
RR
6584 no_cache=0
6585 # Check whether --enable-popupwin or --disable-popupwin was given.
6586if test "${enable_popupwin+set}" = set; then
6587 enableval="$enable_popupwin"
6588
6589 if test "$enableval" = yes; then
6590 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6591 else
6592 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6593 fi
6594
6595else
6596
6597 LINE=`grep "wxUSE_POPUPWIN" ${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_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6605
6606fi
6607
6608
6609 eval "$ac_cv_use_popupwin"
6610 if test "$no_cache" != 1; then
6611 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6612 fi
6613
6614 if test "$wxUSE_POPUPWIN" = yes; then
6615 echo "$ac_t""yes" 1>&6
6616 else
6617 echo "$ac_t""no" 1>&6
6618 fi
6619
6620
1e6feb95
VZ
6621
6622
6623 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
2389f33b 6624echo "configure:6625: checking for --enable-commondlg" >&5
1e6feb95
VZ
6625 no_cache=0
6626 # Check whether --enable-commondlg or --disable-commondlg was given.
6627if test "${enable_commondlg+set}" = set; then
6628 enableval="$enable_commondlg"
6629
6630 if test "$enableval" = yes; then
6631 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6632 else
6633 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6634 fi
6635
6636else
6637
6638 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6639 if test "x$LINE" != x ; then
6640 eval "DEFAULT_$LINE"
6641 else
6642 no_cache=1
6643 fi
6644
6645 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6646
6647fi
6648
6649
6650 eval "$ac_cv_use_commondlg"
6651 if test "$no_cache" != 1; then
6652 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6653 fi
6654
6655 if test "$wxUSE_COMMONDLGS" = yes; then
6656 echo "$ac_t""yes" 1>&6
6657 else
6658 echo "$ac_t""no" 1>&6
6659 fi
6660
6661
6662 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
2389f33b 6663echo "configure:6664: checking for --enable-choicedlg" >&5
1e6feb95
VZ
6664 no_cache=0
6665 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6666if test "${enable_choicedlg+set}" = set; then
6667 enableval="$enable_choicedlg"
6668
6669 if test "$enableval" = yes; then
6670 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6671 else
6672 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6673 fi
6674
6675else
6676
6677 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6678 if test "x$LINE" != x ; then
6679 eval "DEFAULT_$LINE"
6680 else
6681 no_cache=1
6682 fi
6683
6684 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6685
6686fi
6687
6688
6689 eval "$ac_cv_use_choicedlg"
6690 if test "$no_cache" != 1; then
6691 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6692 fi
6693
6694 if test "$wxUSE_CHOICEDLG" = yes; then
6695 echo "$ac_t""yes" 1>&6
6696 else
6697 echo "$ac_t""no" 1>&6
6698 fi
6699
6700
6701 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
2389f33b 6702echo "configure:6703: checking for --enable-coldlg" >&5
1e6feb95
VZ
6703 no_cache=0
6704 # Check whether --enable-coldlg or --disable-coldlg was given.
6705if test "${enable_coldlg+set}" = set; then
6706 enableval="$enable_coldlg"
6707
6708 if test "$enableval" = yes; then
6709 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6710 else
6711 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6712 fi
6713
6714else
6715
6716 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6717 if test "x$LINE" != x ; then
6718 eval "DEFAULT_$LINE"
6719 else
6720 no_cache=1
6721 fi
6722
6723 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6724
6725fi
6726
6727
6728 eval "$ac_cv_use_coldlg"
6729 if test "$no_cache" != 1; then
6730 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6731 fi
6732
6733 if test "$wxUSE_COLOURDLG" = yes; then
6734 echo "$ac_t""yes" 1>&6
6735 else
6736 echo "$ac_t""no" 1>&6
6737 fi
6738
6739
6740 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
2389f33b 6741echo "configure:6742: checking for --enable-filedlg" >&5
1e6feb95
VZ
6742 no_cache=0
6743 # Check whether --enable-filedlg or --disable-filedlg was given.
6744if test "${enable_filedlg+set}" = set; then
6745 enableval="$enable_filedlg"
6746
6747 if test "$enableval" = yes; then
6748 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6749 else
6750 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6751 fi
6752
6753else
6754
6755 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6756 if test "x$LINE" != x ; then
6757 eval "DEFAULT_$LINE"
6758 else
6759 no_cache=1
6760 fi
6761
6762 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6763
6764fi
6765
6766
6767 eval "$ac_cv_use_filedlg"
6768 if test "$no_cache" != 1; then
6769 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6770 fi
6771
6772 if test "$wxUSE_FILEDLG" = yes; then
6773 echo "$ac_t""yes" 1>&6
6774 else
6775 echo "$ac_t""no" 1>&6
6776 fi
6777
6778
8db37e06 6779 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
2389f33b 6780echo "configure:6781: checking for --enable-filedlg" >&5
8db37e06
VZ
6781 no_cache=0
6782 # Check whether --enable-filedlg or --disable-filedlg was given.
6783if test "${enable_filedlg+set}" = set; then
6784 enableval="$enable_filedlg"
6785
6786 if test "$enableval" = yes; then
6787 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes'
6788 else
6789 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no'
6790 fi
6791
6792else
6793
6794 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6795 if test "x$LINE" != x ; then
6796 eval "DEFAULT_$LINE"
6797 else
6798 no_cache=1
6799 fi
6800
6801 ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
6802
6803fi
6804
6805
6806 eval "$ac_cv_use_filedlg"
6807 if test "$no_cache" != 1; then
6808 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6809 fi
6810
6811 if test "$wxUSE_FINDREPLDLG" = yes; then
6812 echo "$ac_t""yes" 1>&6
6813 else
6814 echo "$ac_t""no" 1>&6
6815 fi
6816
6817
1e6feb95 6818 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
2389f33b 6819echo "configure:6820: checking for --enable-fontdlg" >&5
1e6feb95
VZ
6820 no_cache=0
6821 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6822if test "${enable_fontdlg+set}" = set; then
6823 enableval="$enable_fontdlg"
6824
6825 if test "$enableval" = yes; then
6826 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6827 else
6828 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6829 fi
6830
6831else
6832
6833 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6834 if test "x$LINE" != x ; then
6835 eval "DEFAULT_$LINE"
6836 else
6837 no_cache=1
6838 fi
6839
6840 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6841
6842fi
6843
6844
6845 eval "$ac_cv_use_fontdlg"
6846 if test "$no_cache" != 1; then
6847 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6848 fi
6849
6850 if test "$wxUSE_FONTDLG" = yes; then
6851 echo "$ac_t""yes" 1>&6
6852 else
6853 echo "$ac_t""no" 1>&6
6854 fi
6855
6856
6857 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
2389f33b 6858echo "configure:6859: checking for --enable-dirdlg" >&5
1e6feb95
VZ
6859 no_cache=0
6860 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6861if test "${enable_dirdlg+set}" = set; then
6862 enableval="$enable_dirdlg"
6863
6864 if test "$enableval" = yes; then
6865 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6866 else
6867 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6868 fi
6869
6870else
6871
6872 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6873 if test "x$LINE" != x ; then
6874 eval "DEFAULT_$LINE"
6875 else
6876 no_cache=1
6877 fi
6878
6879 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6880
6881fi
6882
6883
6884 eval "$ac_cv_use_dirdlg"
10f2d63a 6885 if test "$no_cache" != 1; then
1e6feb95 6886 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6887 fi
6888
1e6feb95 6889 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 6890 echo "$ac_t""yes" 1>&6
10f2d63a 6891 else
698dcdb6 6892 echo "$ac_t""no" 1>&6
10f2d63a 6893 fi
698dcdb6
VZ
6894
6895
1e6feb95 6896 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
2389f33b 6897echo "configure:6898: checking for --enable-msgdlg" >&5
10f2d63a 6898 no_cache=0
1e6feb95
VZ
6899 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6900if test "${enable_msgdlg+set}" = set; then
6901 enableval="$enable_msgdlg"
698dcdb6 6902
10f2d63a 6903 if test "$enableval" = yes; then
1e6feb95 6904 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 6905 else
1e6feb95 6906 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 6907 fi
698dcdb6 6908
10f2d63a 6909else
698dcdb6 6910
1e6feb95 6911 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6912 if test "x$LINE" != x ; then
6913 eval "DEFAULT_$LINE"
6914 else
6915 no_cache=1
6916 fi
6917
1e6feb95 6918 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
6919
6920fi
10f2d63a
VZ
6921
6922
1e6feb95 6923 eval "$ac_cv_use_msgdlg"
10f2d63a 6924 if test "$no_cache" != 1; then
1e6feb95 6925 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6926 fi
6927
1e6feb95 6928 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 6929 echo "$ac_t""yes" 1>&6
10f2d63a 6930 else
698dcdb6 6931 echo "$ac_t""no" 1>&6
10f2d63a 6932 fi
698dcdb6 6933
10f2d63a 6934
1e6feb95 6935 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
2389f33b 6936echo "configure:6937: checking for --enable-numberdlg" >&5
10f2d63a 6937 no_cache=0
1e6feb95
VZ
6938 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6939if test "${enable_numberdlg+set}" = set; then
6940 enableval="$enable_numberdlg"
698dcdb6 6941
10f2d63a 6942 if test "$enableval" = yes; then
1e6feb95 6943 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 6944 else
1e6feb95 6945 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 6946 fi
698dcdb6 6947
10f2d63a 6948else
698dcdb6 6949
1e6feb95 6950 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6951 if test "x$LINE" != x ; then
6952 eval "DEFAULT_$LINE"
6953 else
6954 no_cache=1
6955 fi
6956
1e6feb95 6957 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
6958
6959fi
10f2d63a
VZ
6960
6961
1e6feb95 6962 eval "$ac_cv_use_numberdlg"
10f2d63a 6963 if test "$no_cache" != 1; then
1e6feb95 6964 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6965 fi
6966
1e6feb95 6967 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 6968 echo "$ac_t""yes" 1>&6
10f2d63a 6969 else
698dcdb6 6970 echo "$ac_t""no" 1>&6
10f2d63a 6971 fi
698dcdb6 6972
10f2d63a 6973
cbca9943 6974 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
2389f33b 6975echo "configure:6976: checking for --enable-splash" >&5
cbca9943
VZ
6976 no_cache=0
6977 # Check whether --enable-splash or --disable-splash was given.
6978if test "${enable_splash+set}" = set; then
6979 enableval="$enable_splash"
6980
6981 if test "$enableval" = yes; then
6982 ac_cv_use_splash='wxUSE_SPLASH=yes'
6983 else
6984 ac_cv_use_splash='wxUSE_SPLASH=no'
6985 fi
6986
6987else
6988
6989 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
6990 if test "x$LINE" != x ; then
6991 eval "DEFAULT_$LINE"
6992 else
6993 no_cache=1
6994 fi
6995
6996 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
6997
6998fi
6999
7000
7001 eval "$ac_cv_use_splash"
7002 if test "$no_cache" != 1; then
7003 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7004 fi
7005
7006 if test "$wxUSE_SPLASH" = yes; then
7007 echo "$ac_t""yes" 1>&6
7008 else
7009 echo "$ac_t""no" 1>&6
7010 fi
7011
7012
698dcdb6 7013 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
2389f33b 7014echo "configure:7015: checking for --enable-textdlg" >&5
10f2d63a
VZ
7015 no_cache=0
7016 # Check whether --enable-textdlg or --disable-textdlg was given.
7017if test "${enable_textdlg+set}" = set; then
7018 enableval="$enable_textdlg"
698dcdb6 7019
10f2d63a
VZ
7020 if test "$enableval" = yes; then
7021 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7022 else
7023 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7024 fi
698dcdb6 7025
10f2d63a 7026else
698dcdb6 7027
10f2d63a
VZ
7028 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7029 if test "x$LINE" != x ; then
7030 eval "DEFAULT_$LINE"
7031 else
7032 no_cache=1
7033 fi
7034
7035 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
7036
7037fi
10f2d63a
VZ
7038
7039
7040 eval "$ac_cv_use_textdlg"
7041 if test "$no_cache" != 1; then
7042 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7043 fi
7044
7045 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 7046 echo "$ac_t""yes" 1>&6
10f2d63a 7047 else
698dcdb6 7048 echo "$ac_t""no" 1>&6
10f2d63a 7049 fi
698dcdb6 7050
10f2d63a 7051
698dcdb6 7052 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
2389f33b 7053echo "configure:7054: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7054 no_cache=0
7055 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7056if test "${enable_tipdlg+set}" = set; then
7057 enableval="$enable_tipdlg"
698dcdb6 7058
10f2d63a
VZ
7059 if test "$enableval" = yes; then
7060 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7061 else
7062 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7063 fi
698dcdb6 7064
10f2d63a 7065else
698dcdb6 7066
10f2d63a
VZ
7067 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7068 if test "x$LINE" != x ; then
7069 eval "DEFAULT_$LINE"
7070 else
7071 no_cache=1
7072 fi
7073
7074 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
7075
7076fi
10f2d63a
VZ
7077
7078
7079 eval "$ac_cv_use_tipdlg"
7080 if test "$no_cache" != 1; then
7081 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7082 fi
7083
7084 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 7085 echo "$ac_t""yes" 1>&6
10f2d63a 7086 else
698dcdb6 7087 echo "$ac_t""no" 1>&6
10f2d63a 7088 fi
698dcdb6 7089
10f2d63a 7090
698dcdb6 7091 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
2389f33b 7092echo "configure:7093: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7093 no_cache=0
7094 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7095if test "${enable_progressdlg+set}" = set; then
7096 enableval="$enable_progressdlg"
698dcdb6 7097
10f2d63a
VZ
7098 if test "$enableval" = yes; then
7099 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7100 else
7101 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7102 fi
698dcdb6 7103
10f2d63a 7104else
698dcdb6 7105
10f2d63a
VZ
7106 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7107 if test "x$LINE" != x ; then
7108 eval "DEFAULT_$LINE"
7109 else
7110 no_cache=1
7111 fi
7112
7113 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7114
7115fi
10f2d63a
VZ
7116
7117
7118 eval "$ac_cv_use_progressdlg"
7119 if test "$no_cache" != 1; then
7120 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7121 fi
7122
7123 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7124 echo "$ac_t""yes" 1>&6
10f2d63a 7125 else
698dcdb6 7126 echo "$ac_t""no" 1>&6
10f2d63a 7127 fi
698dcdb6 7128
10f2d63a 7129
b1f5d087 7130 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
2389f33b 7131echo "configure:7132: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7132 no_cache=0
7133 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7134if test "${enable_wizarddlg+set}" = set; then
7135 enableval="$enable_wizarddlg"
7136
7137 if test "$enableval" = yes; then
7138 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7139 else
7140 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7141 fi
7142
7143else
7144
7145 LINE=`grep "wxUSE_WIZARDDLG" ${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_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7153
7154fi
7155
7156
7157 eval "$ac_cv_use_wizarddlg"
7158 if test "$no_cache" != 1; then
7159 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7160 fi
7161
7162 if test "$wxUSE_WIZARDDLG" = yes; then
7163 echo "$ac_t""yes" 1>&6
7164 else
7165 echo "$ac_t""no" 1>&6
7166 fi
7167
7168
7169
7170
1e6feb95 7171 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
2389f33b 7172echo "configure:7173: checking for --enable-menus" >&5
1e6feb95
VZ
7173 no_cache=0
7174 # Check whether --enable-menus or --disable-menus was given.
7175if test "${enable_menus+set}" = set; then
7176 enableval="$enable_menus"
7177
7178 if test "$enableval" = yes; then
7179 ac_cv_use_menus='wxUSE_MENUS=yes'
7180 else
7181 ac_cv_use_menus='wxUSE_MENUS=no'
7182 fi
7183
7184else
7185
7186 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7187 if test "x$LINE" != x ; then
7188 eval "DEFAULT_$LINE"
7189 else
7190 no_cache=1
7191 fi
7192
7193 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7194
7195fi
7196
7197
7198 eval "$ac_cv_use_menus"
7199 if test "$no_cache" != 1; then
7200 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7201 fi
7202
7203 if test "$wxUSE_MENUS" = yes; then
7204 echo "$ac_t""yes" 1>&6
7205 else
7206 echo "$ac_t""no" 1>&6
7207 fi
7208
7209
698dcdb6 7210 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
2389f33b 7211echo "configure:7212: checking for --enable-miniframe" >&5
10f2d63a
VZ
7212 no_cache=0
7213 # Check whether --enable-miniframe or --disable-miniframe was given.
7214if test "${enable_miniframe+set}" = set; then
7215 enableval="$enable_miniframe"
698dcdb6 7216
10f2d63a
VZ
7217 if test "$enableval" = yes; then
7218 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7219 else
7220 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7221 fi
698dcdb6 7222
10f2d63a 7223else
698dcdb6 7224
10f2d63a
VZ
7225 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7226 if test "x$LINE" != x ; then
7227 eval "DEFAULT_$LINE"
7228 else
7229 no_cache=1
7230 fi
7231
7232 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7233
7234fi
10f2d63a
VZ
7235
7236
7237 eval "$ac_cv_use_miniframe"
7238 if test "$no_cache" != 1; then
7239 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7240 fi
7241
7242 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7243 echo "$ac_t""yes" 1>&6
10f2d63a 7244 else
698dcdb6 7245 echo "$ac_t""no" 1>&6
10f2d63a 7246 fi
698dcdb6 7247
10f2d63a 7248
698dcdb6 7249 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
2389f33b 7250echo "configure:7251: checking for --enable-tooltips" >&5
10f2d63a
VZ
7251 no_cache=0
7252 # Check whether --enable-tooltips or --disable-tooltips was given.
7253if test "${enable_tooltips+set}" = set; then
7254 enableval="$enable_tooltips"
698dcdb6 7255
10f2d63a
VZ
7256 if test "$enableval" = yes; then
7257 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7258 else
7259 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7260 fi
698dcdb6 7261
10f2d63a 7262else
698dcdb6 7263
10f2d63a
VZ
7264 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7265 if test "x$LINE" != x ; then
7266 eval "DEFAULT_$LINE"
7267 else
7268 no_cache=1
7269 fi
7270
7271 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7272
7273fi
10f2d63a
VZ
7274
7275
7276 eval "$ac_cv_use_tooltips"
7277 if test "$no_cache" != 1; then
7278 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7279 fi
7280
7281 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7282 echo "$ac_t""yes" 1>&6
10f2d63a 7283 else
698dcdb6 7284 echo "$ac_t""no" 1>&6
10f2d63a 7285 fi
698dcdb6 7286
10f2d63a 7287
698dcdb6 7288 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
2389f33b 7289echo "configure:7290: checking for --enable-splines" >&5
10f2d63a
VZ
7290 no_cache=0
7291 # Check whether --enable-splines or --disable-splines was given.
7292if test "${enable_splines+set}" = set; then
7293 enableval="$enable_splines"
698dcdb6 7294
10f2d63a
VZ
7295 if test "$enableval" = yes; then
7296 ac_cv_use_splines='wxUSE_SPLINES=yes'
7297 else
7298 ac_cv_use_splines='wxUSE_SPLINES=no'
7299 fi
698dcdb6 7300
10f2d63a 7301else
698dcdb6 7302
10f2d63a
VZ
7303 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7304 if test "x$LINE" != x ; then
7305 eval "DEFAULT_$LINE"
7306 else
7307 no_cache=1
7308 fi
7309
7310 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7311
7312fi
10f2d63a
VZ
7313
7314
7315 eval "$ac_cv_use_splines"
7316 if test "$no_cache" != 1; then
7317 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7318 fi
7319
7320 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7321 echo "$ac_t""yes" 1>&6
10f2d63a 7322 else
698dcdb6 7323 echo "$ac_t""no" 1>&6
10f2d63a 7324 fi
698dcdb6 7325
10f2d63a 7326
698dcdb6 7327 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
2389f33b 7328echo "configure:7329: checking for --enable-validators" >&5
10f2d63a
VZ
7329 no_cache=0
7330 # Check whether --enable-validators or --disable-validators was given.
7331if test "${enable_validators+set}" = set; then
7332 enableval="$enable_validators"
698dcdb6 7333
10f2d63a
VZ
7334 if test "$enableval" = yes; then
7335 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7336 else
7337 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7338 fi
698dcdb6 7339
10f2d63a 7340else
698dcdb6 7341
10f2d63a
VZ
7342 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7343 if test "x$LINE" != x ; then
7344 eval "DEFAULT_$LINE"
7345 else
7346 no_cache=1
7347 fi
7348
7349 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7350
7351fi
10f2d63a
VZ
7352
7353
7354 eval "$ac_cv_use_validators"
7355 if test "$no_cache" != 1; then
7356 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7357 fi
7358
7359 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7360 echo "$ac_t""yes" 1>&6
10f2d63a 7361 else
698dcdb6 7362 echo "$ac_t""no" 1>&6
10f2d63a 7363 fi
698dcdb6 7364
10f2d63a 7365
698dcdb6 7366 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
2389f33b 7367echo "configure:7368: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7368 no_cache=0
7369 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7370if test "${enable_busyinfo+set}" = set; then
7371 enableval="$enable_busyinfo"
698dcdb6 7372
10f2d63a
VZ
7373 if test "$enableval" = yes; then
7374 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7375 else
7376 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7377 fi
698dcdb6 7378
10f2d63a 7379else
698dcdb6 7380
10f2d63a
VZ
7381 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7382 if test "x$LINE" != x ; then
7383 eval "DEFAULT_$LINE"
7384 else
7385 no_cache=1
7386 fi
7387
7388 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
7389
7390fi
10f2d63a
VZ
7391
7392
7393 eval "$ac_cv_use_busyinfo"
7394 if test "$no_cache" != 1; then
7395 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7396 fi
7397
7398 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 7399 echo "$ac_t""yes" 1>&6
10f2d63a 7400 else
698dcdb6 7401 echo "$ac_t""no" 1>&6
10f2d63a 7402 fi
698dcdb6 7403
10f2d63a 7404
698dcdb6 7405 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
2389f33b 7406echo "configure:7407: checking for --enable-joystick" >&5
f6bcfd97
BP
7407 no_cache=0
7408 # Check whether --enable-joystick or --disable-joystick was given.
7409if test "${enable_joystick+set}" = set; then
7410 enableval="$enable_joystick"
698dcdb6 7411
f6bcfd97
BP
7412 if test "$enableval" = yes; then
7413 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7414 else
7415 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7416 fi
698dcdb6 7417
f6bcfd97 7418else
698dcdb6 7419
f6bcfd97
BP
7420 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7421 if test "x$LINE" != x ; then
7422 eval "DEFAULT_$LINE"
7423 else
7424 no_cache=1
7425 fi
7426
7427 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
7428
7429fi
f6bcfd97
BP
7430
7431
7432 eval "$ac_cv_use_joystick"
7433 if test "$no_cache" != 1; then
7434 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7435 fi
7436
7437 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 7438 echo "$ac_t""yes" 1>&6
f6bcfd97 7439 else
698dcdb6 7440 echo "$ac_t""no" 1>&6
f6bcfd97 7441 fi
698dcdb6
VZ
7442
7443
1e6feb95 7444 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
2389f33b 7445echo "configure:7446: checking for --enable-metafile" >&5
1e6feb95
VZ
7446 no_cache=0
7447 # Check whether --enable-metafile or --disable-metafile was given.
7448if test "${enable_metafile+set}" = set; then
7449 enableval="$enable_metafile"
7450
7451 if test "$enableval" = yes; then
7452 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7453 else
7454 ac_cv_use_metafile='wxUSE_METAFILE=no'
7455 fi
7456
7457else
7458
7459 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7460 if test "x$LINE" != x ; then
7461 eval "DEFAULT_$LINE"
7462 else
7463 no_cache=1
7464 fi
7465
7466 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7467
7468fi
7469
7470
7471 eval "$ac_cv_use_metafile"
7472 if test "$no_cache" != 1; then
7473 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7474 fi
7475
7476 if test "$wxUSE_METAFILE" = yes; then
7477 echo "$ac_t""yes" 1>&6
7478 else
7479 echo "$ac_t""no" 1>&6
7480 fi
7481
7482
24fd6d87 7483 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
2389f33b 7484echo "configure:7485: checking for --enable-dragimage" >&5
24fd6d87
VZ
7485 no_cache=0
7486 # Check whether --enable-dragimage or --disable-dragimage was given.
7487if test "${enable_dragimage+set}" = set; then
7488 enableval="$enable_dragimage"
7489
7490 if test "$enableval" = yes; then
7491 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7492 else
7493 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7494 fi
7495
7496else
7497
7498 LINE=`grep "wxUSE_DRAGIMAGE" ${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_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7506
7507fi
7508
7509
7510 eval "$ac_cv_use_dragimage"
7511 if test "$no_cache" != 1; then
7512 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7513 fi
7514
7515 if test "$wxUSE_DRAGIMAGE" = yes; then
7516 echo "$ac_t""yes" 1>&6
7517 else
7518 echo "$ac_t""no" 1>&6
7519 fi
7520
7521
10f2d63a 7522
698dcdb6
VZ
7523
7524 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
2389f33b 7525echo "configure:7526: checking for --enable-image" >&5
0046ff7c
VS
7526 no_cache=0
7527 # Check whether --enable-image or --disable-image was given.
7528if test "${enable_image+set}" = set; then
7529 enableval="$enable_image"
698dcdb6 7530
0046ff7c
VS
7531 if test "$enableval" = yes; then
7532 ac_cv_use_image='wxUSE_IMAGE=yes'
7533 else
7534 ac_cv_use_image='wxUSE_IMAGE=no'
7535 fi
698dcdb6 7536
0046ff7c 7537else
698dcdb6 7538
0046ff7c
VS
7539 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7540 if test "x$LINE" != x ; then
7541 eval "DEFAULT_$LINE"
7542 else
7543 no_cache=1
7544 fi
7545
7546 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
7547
7548fi
0046ff7c
VS
7549
7550
7551 eval "$ac_cv_use_image"
7552 if test "$no_cache" != 1; then
7553 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7554 fi
7555
7556 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 7557 echo "$ac_t""yes" 1>&6
0046ff7c 7558 else
698dcdb6 7559 echo "$ac_t""no" 1>&6
0046ff7c 7560 fi
698dcdb6 7561
0046ff7c 7562
698dcdb6 7563 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
2389f33b 7564echo "configure:7565: checking for --enable-gif" >&5
10f2d63a
VZ
7565 no_cache=0
7566 # Check whether --enable-gif or --disable-gif was given.
7567if test "${enable_gif+set}" = set; then
7568 enableval="$enable_gif"
698dcdb6 7569
10f2d63a
VZ
7570 if test "$enableval" = yes; then
7571 ac_cv_use_gif='wxUSE_GIF=yes'
7572 else
7573 ac_cv_use_gif='wxUSE_GIF=no'
7574 fi
698dcdb6 7575
10f2d63a 7576else
698dcdb6 7577
10f2d63a
VZ
7578 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7579 if test "x$LINE" != x ; then
7580 eval "DEFAULT_$LINE"
7581 else
7582 no_cache=1
7583 fi
7584
7585 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
7586
7587fi
10f2d63a
VZ
7588
7589
7590 eval "$ac_cv_use_gif"
7591 if test "$no_cache" != 1; then
7592 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7593 fi
7594
7595 if test "$wxUSE_GIF" = yes; then
698dcdb6 7596 echo "$ac_t""yes" 1>&6
10f2d63a 7597 else
698dcdb6 7598 echo "$ac_t""no" 1>&6
10f2d63a 7599 fi
698dcdb6 7600
10f2d63a 7601
698dcdb6 7602 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
2389f33b 7603echo "configure:7604: checking for --enable-pcx" >&5
10f2d63a
VZ
7604 no_cache=0
7605 # Check whether --enable-pcx or --disable-pcx was given.
7606if test "${enable_pcx+set}" = set; then
7607 enableval="$enable_pcx"
698dcdb6 7608
10f2d63a
VZ
7609 if test "$enableval" = yes; then
7610 ac_cv_use_pcx='wxUSE_PCX=yes'
7611 else
7612 ac_cv_use_pcx='wxUSE_PCX=no'
7613 fi
698dcdb6 7614
10f2d63a 7615else
698dcdb6 7616
10f2d63a
VZ
7617 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7618 if test "x$LINE" != x ; then
7619 eval "DEFAULT_$LINE"
7620 else
7621 no_cache=1
7622 fi
7623
7624 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
7625
7626fi
10f2d63a
VZ
7627
7628
7629 eval "$ac_cv_use_pcx"
7630 if test "$no_cache" != 1; then
7631 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7632 fi
7633
7634 if test "$wxUSE_PCX" = yes; then
698dcdb6 7635 echo "$ac_t""yes" 1>&6
10f2d63a 7636 else
698dcdb6 7637 echo "$ac_t""no" 1>&6
10f2d63a 7638 fi
698dcdb6 7639
10f2d63a 7640
698dcdb6 7641 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
2389f33b 7642echo "configure:7643: checking for --enable-pnm" >&5
10f2d63a
VZ
7643 no_cache=0
7644 # Check whether --enable-pnm or --disable-pnm was given.
7645if test "${enable_pnm+set}" = set; then
7646 enableval="$enable_pnm"
698dcdb6 7647
10f2d63a
VZ
7648 if test "$enableval" = yes; then
7649 ac_cv_use_pnm='wxUSE_PNM=yes'
7650 else
7651 ac_cv_use_pnm='wxUSE_PNM=no'
7652 fi
698dcdb6 7653
10f2d63a 7654else
698dcdb6 7655
10f2d63a
VZ
7656 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7657 if test "x$LINE" != x ; then
7658 eval "DEFAULT_$LINE"
7659 else
7660 no_cache=1
7661 fi
7662
7663 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
7664
7665fi
10f2d63a
VZ
7666
7667
7668 eval "$ac_cv_use_pnm"
7669 if test "$no_cache" != 1; then
7670 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7671 fi
7672
7673 if test "$wxUSE_PNM" = yes; then
698dcdb6 7674 echo "$ac_t""yes" 1>&6
10f2d63a 7675 else
698dcdb6 7676 echo "$ac_t""no" 1>&6
10f2d63a 7677 fi
698dcdb6 7678
10f2d63a 7679
698dcdb6 7680 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
2389f33b 7681echo "configure:7682: checking for --enable-pnm" >&5
0046ff7c
VS
7682 no_cache=0
7683 # Check whether --enable-pnm or --disable-pnm was given.
7684if test "${enable_pnm+set}" = set; then
7685 enableval="$enable_pnm"
698dcdb6 7686
0046ff7c
VS
7687 if test "$enableval" = yes; then
7688 ac_cv_use_pnm='wxUSE_XPM=yes'
7689 else
7690 ac_cv_use_pnm='wxUSE_XPM=no'
7691 fi
698dcdb6 7692
0046ff7c 7693else
698dcdb6 7694
0046ff7c
VS
7695 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7696 if test "x$LINE" != x ; then
7697 eval "DEFAULT_$LINE"
7698 else
7699 no_cache=1
7700 fi
7701
7702 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
7703
7704fi
0046ff7c
VS
7705
7706
7707 eval "$ac_cv_use_pnm"
7708 if test "$no_cache" != 1; then
7709 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7710 fi
7711
7712 if test "$wxUSE_XPM" = yes; then
698dcdb6 7713 echo "$ac_t""yes" 1>&6
0046ff7c 7714 else
698dcdb6 7715 echo "$ac_t""no" 1>&6
0046ff7c 7716 fi
698dcdb6 7717
0046ff7c 7718
b12915c1
VZ
7719fi
7720
698dcdb6 7721
10f2d63a
VZ
7722 echo "saving argument cache $wx_arg_cache_file"
7723 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 7724
10f2d63a 7725
698dcdb6
VZ
7726
7727echo $ac_n "checking for toolkit""... $ac_c" 1>&6
2389f33b 7728echo "configure:7729: checking for toolkit" >&5
10f2d63a
VZ
7729
7730if test "$wxUSE_GUI" = "yes"; then
7731
b12915c1 7732if test "$USE_BEOS" = 1; then
698dcdb6 7733 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
b12915c1
VZ
7734fi
7735
10f2d63a
VZ
7736if test "$TOOLKIT_GIVEN" = 1; then
7737 for toolkit in `echo $ALL_TOOLKITS`; do
7738 var=wxUSE_$toolkit
7739 eval "value=\$${var}"
7740 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7741 done
7742else
7743 for toolkit in `echo $ALL_TOOLKITS`; do
7744 if test "$has_toolkit_in_cache" != 1; then
7745 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7746 else
7747 var=DEFAULT_wxUSE_$toolkit
7748 fi
7749 eval "wxUSE_$toolkit=\$${var}"
7750 done
7751fi
7752
1e6feb95 7753NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}`
cf27ef00 7754
ec14dd32
VZ
7755case "${host}" in
7756 *-pc-os2_emx )
7757 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7758 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7759 LEX_STEM="lexyy"
7760 ;;
7761 *)
7762 PATH_IFS=':'
7763 LEX_STEM="lex.yy"
7764 ;;
7765esac
10f2d63a
VZ
7766
7767case "$NUM_TOOLKITS" in
7768 1)
7769 ;;
7770 0)
698dcdb6 7771 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
10f2d63a
VZ
7772 ;;
7773 *)
698dcdb6 7774 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
10f2d63a
VZ
7775esac
7776
7777for 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
8168de4c
VZ
7787 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7788 echo "$ac_t""$toolkit_echo" 1>&6
10f2d63a
VZ
7789 fi
7790 fi
7791done
7792
7793else
cf27ef00 7794 PATH_IFS=':'
698dcdb6 7795 echo "$ac_t""base only" 1>&6
10f2d63a
VZ
7796fi
7797
698dcdb6
VZ
7798
7799cat > confcache <<\EOF
10f2d63a
VZ
7800# This file is a shell script that caches the results of configure
7801# tests run on this system so they can be shared between configure
698dcdb6
VZ
7802# scripts and configure runs. It is not useful on other systems.
7803# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 7804#
698dcdb6
VZ
7805# By default, configure uses ./config.cache as the cache file,
7806# creating it if it does not exist already. You can give configure
7807# the --cache-file=FILE option to use a different cache file; that is
7808# what configure does when it calls configure scripts in
7809# subdirectories, so they share the cache.
7810# Giving --cache-file=/dev/null disables caching, for debugging configure.
7811# config.status only pays attention to the cache file if you give it the
7812# --recheck option to rerun configure.
10f2d63a 7813#
698dcdb6 7814EOF
10f2d63a
VZ
7815# The following way of writing the cache mishandles newlines in values,
7816# but we know of no workaround that is simple, portable, and efficient.
7817# So, don't put newlines in cache variables' values.
7818# Ultrix sh set writes to stderr and can't be redirected directly,
7819# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
7820(set) 2>&1 |
7821 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7822 *ac_space=\ *)
7823 # `set' does not quote correctly, so add quotes (double-quote substitution
7824 # turns \\\\ into \\, and sed turns \\ into \).
7825 sed -n \
7826 -e "s/'/'\\\\''/g" \
7827 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7828 ;;
7829 *)
7830 # `set' quotes correctly as required by POSIX, so do not add quotes.
7831 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7832 ;;
7833 esac >> confcache
7834if cmp -s $cache_file confcache; then
7835 :
7836else
10f2d63a 7837 if test -w $cache_file; then
698dcdb6
VZ
7838 echo "updating cache $cache_file"
7839 cat confcache > $cache_file
10f2d63a
VZ
7840 else
7841 echo "not updating unwritable cache $cache_file"
7842 fi
7843fi
7844rm -f confcache
7845
698dcdb6 7846
e59890c3 7847if test "$build" != "$host" ; then
10f2d63a
VZ
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
32832908 7853 RESCOMP=$host_alias-windres
10f2d63a
VZ
7854 LD=$host_alias-ld
7855 NM=$host_alias-nm
7856 STRIP=$host_alias-strip
10f2d63a
VZ
7857fi
7858
698dcdb6 7859# Extract the first word of "gcc", so it can be a program name with args.
1e487827 7860set dummy gcc; ac_word=$2
698dcdb6 7861echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2389f33b 7862echo "configure:7863: checking for $ac_word" >&5
698dcdb6
VZ
7863if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7864 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
7865else
7866 if test -n "$CC"; then
7867 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 7868else
698dcdb6
VZ
7869 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7870 ac_dummy="$PATH"
7871 for ac_dir in $ac_dummy; do
7872 test -z "$ac_dir" && ac_dir=.
7873 if test -f $ac_dir/$ac_word; then
7874 ac_cv_prog_CC="gcc"
7875 break
7876 fi
7877 done
7878 IFS="$ac_save_ifs"
10f2d63a 7879fi
6232543b 7880fi
698dcdb6 7881CC="$ac_cv_prog_CC"
6232543b 7882if test -n "$CC"; then
698dcdb6 7883 echo "$ac_t""$CC" 1>&6
1e487827 7884else
698dcdb6 7885 echo "$ac_t""no" 1>&6
1e487827 7886fi
6232543b 7887
1e487827
VS
7888if test -z "$CC"; then
7889 # Extract the first word of "cc", so it can be a program name with args.
7890set dummy cc; ac_word=$2
698dcdb6 7891echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2389f33b 7892echo "configure:7893: checking for $ac_word" >&5
698dcdb6
VZ
7893if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7894 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7895else
7896 if test -n "$CC"; then
7897 ac_cv_prog_CC="$CC" # Let the user override the test.
7898else
698dcdb6 7899 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 7900 ac_prog_rejected=no
698dcdb6
VZ
7901 ac_dummy="$PATH"
7902 for ac_dir in $ac_dummy; do
7903 test -z "$ac_dir" && ac_dir=.
7904 if test -f $ac_dir/$ac_word; then
7905 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7906 ac_prog_rejected=yes
7907 continue
7908 fi
7909 ac_cv_prog_CC="cc"
7910 break
7911 fi
7912 done
7913 IFS="$ac_save_ifs"
1e487827
VS
7914if test $ac_prog_rejected = yes; then
7915 # We found a bogon in the path, so make sure we never use it.
7916 set dummy $ac_cv_prog_CC
7917 shift
698dcdb6 7918 if test $# -gt 0; then
1e487827
VS
7919 # We chose a different compiler from the bogus one.
7920 # However, it has the same basename, so the bogon will be chosen
7921 # first if we set CC to just the basename; use the full file name.
7922 shift
698dcdb6 7923 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
7924 shift
7925 ac_cv_prog_CC="$@"
703e0a69 7926 fi
1e487827
VS
7927fi
7928fi
7929fi
698dcdb6 7930CC="$ac_cv_prog_CC"
1e487827 7931if test -n "$CC"; then
698dcdb6 7932 echo "$ac_t""$CC" 1>&6
703e0a69 7933else
698dcdb6 7934 echo "$ac_t""no" 1>&6
703e0a69 7935fi
1e487827 7936
698dcdb6
VZ
7937 if test -z "$CC"; then
7938 case "`uname -s`" in
7939 *win32* | *WIN32*)
7940 # Extract the first word of "cl", so it can be a program name with args.
7941set dummy cl; ac_word=$2
7942echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2389f33b 7943echo "configure:7944: checking for $ac_word" >&5
698dcdb6
VZ
7944if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7945 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7946else
7947 if test -n "$CC"; then
7948 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 7949else
698dcdb6
VZ
7950 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7951 ac_dummy="$PATH"
7952 for ac_dir in $ac_dummy; do
7953 test -z "$ac_dir" && ac_dir=.
7954 if test -f $ac_dir/$ac_word; then
7955 ac_cv_prog_CC="cl"
7956 break
7957 fi
7958 done
7959 IFS="$ac_save_ifs"
703e0a69 7960fi
1e487827 7961fi
698dcdb6 7962CC="$ac_cv_prog_CC"
1e487827 7963if test -n "$CC"; then
698dcdb6 7964 echo "$ac_t""$CC" 1>&6
1e487827 7965else
698dcdb6 7966 echo "$ac_t""no" 1>&6
1e487827 7967fi
698dcdb6
VZ
7968 ;;
7969 esac
7970 fi
7971 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
7972fi
7973
698dcdb6 7974echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2389f33b 7975echo "configure:7976: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 7976
698dcdb6
VZ
7977ac_ext=c
7978# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7979ac_cpp='$CPP $CPPFLAGS'
7980ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7981ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7982cross_compiling=$ac_cv_prog_cc_cross
6232543b 7983
698dcdb6 7984cat > conftest.$ac_ext << EOF
1e487827 7985
2389f33b 7986#line 7987 "configure"
1e487827
VS
7987#include "confdefs.h"
7988
698dcdb6
VZ
7989main(){return(0);}
7990EOF
2389f33b 7991if { (eval echo configure:7992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
7992 ac_cv_prog_cc_works=yes
7993 # If we can't run a trivial program, we are probably using a cross compiler.
7994 if (./conftest; exit) 2>/dev/null; then
7995 ac_cv_prog_cc_cross=no
7996 else
7997 ac_cv_prog_cc_cross=yes
7998 fi
7999else
8000 echo "configure: failed program was:" >&5
8001 cat conftest.$ac_ext >&5
8002 ac_cv_prog_cc_works=no
8003fi
8004rm -fr conftest*
8005ac_ext=c
8006# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8007ac_cpp='$CPP $CPPFLAGS'
8008ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8009ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8010cross_compiling=$ac_cv_prog_cc_cross
8011
8012echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8013if test $ac_cv_prog_cc_works = no; then
8014 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8015fi
8016echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2389f33b 8017echo "configure:8018: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8018echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8019cross_compiling=$ac_cv_prog_cc_cross
8020
8021echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2389f33b 8022echo "configure:8023: checking whether we are using GNU C" >&5
698dcdb6
VZ
8023if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8024 echo $ac_n "(cached) $ac_c" 1>&6
8025else
8026 cat > conftest.c <<EOF
8027#ifdef __GNUC__
8028 yes;
1e487827 8029#endif
698dcdb6 8030EOF
2389f33b 8031if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8032 ac_cv_prog_gcc=yes
8033else
8034 ac_cv_prog_gcc=no
8035fi
8036fi
1e487827 8037
698dcdb6 8038echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 8039
698dcdb6
VZ
8040if test $ac_cv_prog_gcc = yes; then
8041 GCC=yes
8042else
8043 GCC=
8044fi
1e487827 8045
698dcdb6
VZ
8046ac_test_CFLAGS="${CFLAGS+set}"
8047ac_save_CFLAGS="$CFLAGS"
8048CFLAGS=
8049echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2389f33b 8050echo "configure:8051: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
8051if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8052 echo $ac_n "(cached) $ac_c" 1>&6
8053else
8054 echo 'void f(){}' > conftest.c
8055if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8056 ac_cv_prog_cc_g=yes
8057else
698dcdb6 8058 ac_cv_prog_cc_g=no
10f2d63a 8059fi
698dcdb6
VZ
8060rm -f conftest*
8061
10f2d63a 8062fi
698dcdb6
VZ
8063
8064echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 8065if test "$ac_test_CFLAGS" = set; then
698dcdb6 8066 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
8067elif test $ac_cv_prog_cc_g = yes; then
8068 if test "$GCC" = yes; then
8069 CFLAGS="-g -O2"
8070 else
8071 CFLAGS="-g"
8072 fi
8073else
8074 if test "$GCC" = yes; then
8075 CFLAGS="-O2"
8076 else
8077 CFLAGS=
8078 fi
8079fi
8080
8081
8082CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8083
698dcdb6 8084echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2389f33b 8085echo "configure:8086: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8086# On Suns, sometimes $CPP names a directory.
8087if test -n "$CPP" && test -d "$CPP"; then
8088 CPP=
8089fi
8090if test -z "$CPP"; then
698dcdb6
VZ
8091if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8092 echo $ac_n "(cached) $ac_c" 1>&6
8093else
8094 # This must be in double quotes, not single quotes, because CPP may get
8095 # substituted into the Makefile and "${CC-cc}" will confuse make.
8096 CPP="${CC-cc} -E"
10f2d63a 8097 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8098 # not just through cpp.
8099 cat > conftest.$ac_ext <<EOF
2389f33b 8100#line 8101 "configure"
10f2d63a
VZ
8101#include "confdefs.h"
8102#include <assert.h>
698dcdb6
VZ
8103Syntax Error
8104EOF
8105ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2389f33b 8106{ (eval echo configure:8107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8107ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8108if test -z "$ac_err"; then
10f2d63a
VZ
8109 :
8110else
698dcdb6
VZ
8111 echo "$ac_err" >&5
8112 echo "configure: failed program was:" >&5
10f2d63a 8113 cat conftest.$ac_ext >&5
698dcdb6
VZ
8114 rm -rf conftest*
8115 CPP="${CC-cc} -E -traditional-cpp"
8116 cat > conftest.$ac_ext <<EOF
2389f33b 8117#line 8118 "configure"
10f2d63a 8118#include "confdefs.h"
698dcdb6
VZ
8119#include <assert.h>
8120Syntax Error
8121EOF
8122ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2389f33b 8123{ (eval echo configure:8124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8124ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8125if test -z "$ac_err"; then
8126 :
10f2d63a 8127else
698dcdb6
VZ
8128 echo "$ac_err" >&5
8129 echo "configure: failed program was:" >&5
10f2d63a 8130 cat conftest.$ac_ext >&5
698dcdb6
VZ
8131 rm -rf conftest*
8132 CPP="${CC-cc} -nologo -E"
8133 cat > conftest.$ac_ext <<EOF
2389f33b 8134#line 8135 "configure"
10f2d63a
VZ
8135#include "confdefs.h"
8136#include <assert.h>
698dcdb6
VZ
8137Syntax Error
8138EOF
8139ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2389f33b 8140{ (eval echo configure:8141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8141ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8142if test -z "$ac_err"; then
10f2d63a
VZ
8143 :
8144else
698dcdb6
VZ
8145 echo "$ac_err" >&5
8146 echo "configure: failed program was:" >&5
10f2d63a 8147 cat conftest.$ac_ext >&5
698dcdb6
VZ
8148 rm -rf conftest*
8149 CPP=/lib/cpp
10f2d63a 8150fi
698dcdb6 8151rm -f conftest*
10f2d63a 8152fi
698dcdb6 8153rm -f conftest*
703e0a69 8154fi
698dcdb6
VZ
8155rm -f conftest*
8156 ac_cv_prog_CPP="$CPP"
8157fi
8158 CPP="$ac_cv_prog_CPP"
10f2d63a 8159else
698dcdb6 8160 ac_cv_prog_CPP="$CPP"
10f2d63a 8161fi
698dcdb6 8162echo "$ac_t""$CPP" 1>&6
10f2d63a
VZ
8163
8164
698dcdb6
VZ
8165if test $ac_cv_prog_gcc = yes; then
8166 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2389f33b 8167echo "configure:8168: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8168if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8169 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8170else
8171 ac_pattern="Autoconf.*'x'"
698dcdb6 8172 cat > conftest.$ac_ext <<EOF
2389f33b 8173#line 8174 "configure"
10f2d63a
VZ
8174#include "confdefs.h"
8175#include <sgtty.h>
8176Autoconf TIOCGETP
698dcdb6 8177EOF
10f2d63a
VZ
8178if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8179 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8180 rm -rf conftest*
10f2d63a
VZ
8181 ac_cv_prog_gcc_traditional=yes
8182else
698dcdb6 8183 rm -rf conftest*
10f2d63a
VZ
8184 ac_cv_prog_gcc_traditional=no
8185fi
8186rm -f conftest*
8187
698dcdb6 8188
10f2d63a 8189 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8190 cat > conftest.$ac_ext <<EOF
2389f33b 8191#line 8192 "configure"
10f2d63a
VZ
8192#include "confdefs.h"
8193#include <termio.h>
8194Autoconf TCGETA
698dcdb6 8195EOF
10f2d63a
VZ
8196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8197 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8198 rm -rf conftest*
10f2d63a
VZ
8199 ac_cv_prog_gcc_traditional=yes
8200fi
8201rm -f conftest*
8202
8203 fi
8204fi
698dcdb6
VZ
8205
8206echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8207 if test $ac_cv_prog_gcc_traditional = yes; then
8208 CC="$CC -traditional"
8209 fi
8210fi
8211
703e0a69 8212
698dcdb6
VZ
8213
8214ac_ext=C
8215# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8216ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8217ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8218ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8219cross_compiling=$ac_cv_prog_cxx_cross
8220
8221
8222for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8223do
8224# Extract the first word of "$ac_prog", so it can be a program name with args.
8225set dummy $ac_prog; ac_word=$2
8226echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2389f33b 8227echo "configure:8228: checking for $ac_word" >&5
698dcdb6
VZ
8228if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8229 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8230else
8231 if test -n "$CXX"; then
8232 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8233else
698dcdb6
VZ
8234 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8235 ac_dummy="$PATH"
8236 for ac_dir in $ac_dummy; do
8237 test -z "$ac_dir" && ac_dir=.
8238 if test -f $ac_dir/$ac_word; then
8239 ac_cv_prog_CXX="$ac_prog"
8240 break
8241 fi
8242 done
8243 IFS="$ac_save_ifs"
10f2d63a
VZ
8244fi
8245fi
698dcdb6 8246CXX="$ac_cv_prog_CXX"
10f2d63a 8247if test -n "$CXX"; then
698dcdb6 8248 echo "$ac_t""$CXX" 1>&6
10f2d63a 8249else
698dcdb6 8250 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8251fi
8252
698dcdb6 8253test -n "$CXX" && break
10f2d63a 8254done
698dcdb6 8255test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
8256
8257
698dcdb6 8258echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2389f33b 8259echo "configure:8260: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 8260
698dcdb6
VZ
8261ac_ext=C
8262# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8263ac_cpp='$CXXCPP $CPPFLAGS'
8264ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8265ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8266cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 8267
698dcdb6
VZ
8268cat > conftest.$ac_ext << EOF
8269
2389f33b 8270#line 8271 "configure"
10f2d63a
VZ
8271#include "confdefs.h"
8272
698dcdb6
VZ
8273int main(){return(0);}
8274EOF
2389f33b 8275if { (eval echo configure:8276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8276 ac_cv_prog_cxx_works=yes
8277 # If we can't run a trivial program, we are probably using a cross compiler.
8278 if (./conftest; exit) 2>/dev/null; then
8279 ac_cv_prog_cxx_cross=no
8280 else
8281 ac_cv_prog_cxx_cross=yes
8282 fi
8283else
8284 echo "configure: failed program was:" >&5
8285 cat conftest.$ac_ext >&5
8286 ac_cv_prog_cxx_works=no
8287fi
8288rm -fr conftest*
8289ac_ext=C
8290# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8291ac_cpp='$CXXCPP $CPPFLAGS'
8292ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8293ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8294cross_compiling=$ac_cv_prog_cxx_cross
8295
8296echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8297if test $ac_cv_prog_cxx_works = no; then
8298 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8299fi
8300echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2389f33b 8301echo "configure:8302: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8302echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8303cross_compiling=$ac_cv_prog_cxx_cross
8304
8305echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2389f33b 8306echo "configure:8307: checking whether we are using GNU C++" >&5
698dcdb6
VZ
8307if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8308 echo $ac_n "(cached) $ac_c" 1>&6
8309else
8310 cat > conftest.C <<EOF
8311#ifdef __GNUC__
8312 yes;
10f2d63a 8313#endif
698dcdb6 8314EOF
2389f33b 8315if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8316 ac_cv_prog_gxx=yes
8317else
8318 ac_cv_prog_gxx=no
8319fi
8320fi
10f2d63a 8321
698dcdb6 8322echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 8323
698dcdb6
VZ
8324if test $ac_cv_prog_gxx = yes; then
8325 GXX=yes
8326else
8327 GXX=
8328fi
10f2d63a 8329
698dcdb6
VZ
8330ac_test_CXXFLAGS="${CXXFLAGS+set}"
8331ac_save_CXXFLAGS="$CXXFLAGS"
8332CXXFLAGS=
8333echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2389f33b 8334echo "configure:8335: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
8335if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8336 echo $ac_n "(cached) $ac_c" 1>&6
8337else
8338 echo 'void f(){}' > conftest.cc
8339if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
8340 ac_cv_prog_cxx_g=yes
8341else
698dcdb6 8342 ac_cv_prog_cxx_g=no
10f2d63a 8343fi
698dcdb6
VZ
8344rm -f conftest*
8345
10f2d63a 8346fi
698dcdb6
VZ
8347
8348echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 8349if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 8350 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
8351elif test $ac_cv_prog_cxx_g = yes; then
8352 if test "$GXX" = yes; then
8353 CXXFLAGS="-g -O2"
8354 else
8355 CXXFLAGS="-g"
8356 fi
8357else
8358 if test "$GXX" = yes; then
8359 CXXFLAGS="-O2"
8360 else
8361 CXXFLAGS=
8362 fi
8363fi
8364
8365
698dcdb6 8366echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2389f33b 8367echo "configure:8368: checking how to run the C++ preprocessor" >&5
1e487827 8368if test -z "$CXXCPP"; then
698dcdb6
VZ
8369if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
8370 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 8371else
698dcdb6
VZ
8372 ac_ext=C
8373# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8374ac_cpp='$CXXCPP $CPPFLAGS'
8375ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8376ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8377cross_compiling=$ac_cv_prog_cxx_cross
8378 CXXCPP="${CXX-g++} -E"
8379 cat > conftest.$ac_ext <<EOF
2389f33b 8380#line 8381 "configure"
1e487827 8381#include "confdefs.h"
698dcdb6
VZ
8382#include <stdlib.h>
8383EOF
8384ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2389f33b 8385{ (eval echo configure:8386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8386ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8387if test -z "$ac_err"; then
1e487827
VS
8388 :
8389else
698dcdb6
VZ
8390 echo "$ac_err" >&5
8391 echo "configure: failed program was:" >&5
1e487827 8392 cat conftest.$ac_ext >&5
698dcdb6
VZ
8393 rm -rf conftest*
8394 CXXCPP=/lib/cpp
1e487827 8395fi
698dcdb6
VZ
8396rm -f conftest*
8397 ac_cv_prog_CXXCPP="$CXXCPP"
8398ac_ext=C
8399# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8400ac_cpp='$CXXCPP $CPPFLAGS'
8401ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8402ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8403cross_compiling=$ac_cv_prog_cxx_cross
1e487827 8404fi
1e487827 8405fi
698dcdb6
VZ
8406CXXCPP="$ac_cv_prog_CXXCPP"
8407echo "$ac_t""$CXXCPP" 1>&6
1e487827 8408
10f2d63a
VZ
8409
8410CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8411
8412ac_ext=c
698dcdb6 8413# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 8414ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
8415ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8416ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8417cross_compiling=$ac_cv_prog_cc_cross
8418
8419
8420# Extract the first word of "ranlib", so it can be a program name with args.
8421set dummy ranlib; ac_word=$2
8422echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2389f33b 8423echo "configure:8424: checking for $ac_word" >&5
698dcdb6
VZ
8424if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8425 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8426else
8427 if test -n "$RANLIB"; then
8428 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8429else
698dcdb6
VZ
8430 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8431 ac_dummy="$PATH"
8432 for ac_dir in $ac_dummy; do
8433 test -z "$ac_dir" && ac_dir=.
8434 if test -f $ac_dir/$ac_word; then
8435 ac_cv_prog_RANLIB="ranlib"
8436 break
8437 fi
8438 done
8439 IFS="$ac_save_ifs"
8440 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
8441fi
8442fi
698dcdb6 8443RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 8444if test -n "$RANLIB"; then
698dcdb6 8445 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 8446else
698dcdb6 8447 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8448fi
8449
8450
8451# Extract the first word of "ar", so it can be a program name with args.
8452set dummy ar; ac_word=$2
698dcdb6 8453echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2389f33b 8454echo "configure:8455: checking for $ac_word" >&5
698dcdb6
VZ
8455if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8456 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8457else
8458 if test -n "$AR"; then
8459 ac_cv_prog_AR="$AR" # Let the user override the test.
8460else
698dcdb6
VZ
8461 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8462 ac_dummy="$PATH"
8463 for ac_dir in $ac_dummy; do
8464 test -z "$ac_dir" && ac_dir=.
8465 if test -f $ac_dir/$ac_word; then
8466 ac_cv_prog_AR="ar"
8467 break
8468 fi
8469 done
8470 IFS="$ac_save_ifs"
10f2d63a
VZ
8471 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8472fi
8473fi
698dcdb6 8474AR="$ac_cv_prog_AR"
10f2d63a 8475if test -n "$AR"; then
698dcdb6 8476 echo "$ac_t""$AR" 1>&6
10f2d63a 8477else
698dcdb6 8478 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8479fi
8480
698dcdb6 8481
10f2d63a
VZ
8482# Find a good install program. We prefer a C program (faster),
8483# so one script is as good as another. But avoid the broken or
8484# incompatible versions:
8485# SysV /etc/install, /usr/sbin/install
8486# SunOS /usr/etc/install
8487# IRIX /sbin/install
8488# AIX /bin/install
8489# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8490# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8491# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8492# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 8493echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2389f33b 8494echo "configure:8495: checking for a BSD compatible install" >&5
10f2d63a 8495if test -z "$INSTALL"; then
698dcdb6
VZ
8496if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8497 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8498else
698dcdb6 8499 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
8500 for ac_dir in $PATH; do
8501 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
8502 case "$ac_dir/" in
8503 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
8504 *)
8505 # OSF1 and SCO ODT 3.0 have their own names for install.
8506 # Don't use installbsd from OSF since it installs stuff as root
8507 # by default.
8508 for ac_prog in ginstall scoinst install; do
698dcdb6 8509 if test -f $ac_dir/$ac_prog; then
10f2d63a 8510 if test $ac_prog = install &&
698dcdb6 8511 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
8512 # AIX install. It has an incompatible calling convention.
8513 :
8514 else
8515 ac_cv_path_install="$ac_dir/$ac_prog -c"
8516 break 2
8517 fi
8518 fi
8519 done
8520 ;;
8521 esac
8522 done
698dcdb6 8523 IFS="$ac_save_IFS"
10f2d63a
VZ
8524
8525fi
8526 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 8527 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
8528 else
8529 # As a last resort, use the slow shell script. We don't cache a
8530 # path for INSTALL within a source directory, because that will
8531 # break other packages using the cache if that directory is
8532 # removed, or if the path is relative.
698dcdb6 8533 INSTALL="$ac_install_sh"
10f2d63a
VZ
8534 fi
8535fi
698dcdb6 8536echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
8537
8538# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8539# It thinks the first close brace ends the variable substitution.
8540test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8541
698dcdb6 8542test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
8543
8544test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8545
698dcdb6 8546
10f2d63a
VZ
8547# Extract the first word of "strip", so it can be a program name with args.
8548set dummy strip; ac_word=$2
698dcdb6 8549echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2389f33b 8550echo "configure:8551: checking for $ac_word" >&5
698dcdb6
VZ
8551if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8552 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8553else
8554 if test -n "$STRIP"; then
8555 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8556else
698dcdb6
VZ
8557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8558 ac_dummy="$PATH"
8559 for ac_dir in $ac_dummy; do
8560 test -z "$ac_dir" && ac_dir=.
8561 if test -f $ac_dir/$ac_word; then
8562 ac_cv_prog_STRIP="strip"
8563 break
8564 fi
8565 done
8566 IFS="$ac_save_ifs"
10f2d63a
VZ
8567 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8568fi
8569fi
698dcdb6 8570STRIP="$ac_cv_prog_STRIP"
10f2d63a 8571if test -n "$STRIP"; then
698dcdb6 8572 echo "$ac_t""$STRIP" 1>&6
10f2d63a 8573else
698dcdb6 8574 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8575fi
8576
698dcdb6
VZ
8577
8578echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
2389f33b 8579echo "configure:8580: checking make for VPATH support" >&5
10f2d63a
VZ
8580cat - << EOF > confMake
8581check : file
8582 cp \$? \$@
8583 cp \$? final_file
8584EOF
8585
8586if test ! -d sub ; then
8587 mkdir sub
8588fi
8589echo dummy > sub/file
f6bcfd97 8590${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
8591RESULT=$?
8592rm -f sub/file check final_file confMake
8593rmdir sub
8594if test "$RESULT" = 0; then
698dcdb6 8595 echo "$ac_t""yes" 1>&6
10f2d63a 8596else
698dcdb6
VZ
8597 echo "$ac_t""no" 1>&6
8598 { echo "configure: error:
1e487827
VS
8599You need a make-utility that is able to use the variable
8600VPATH correctly.
8601If your version of make does not support VPATH correctly,
8602please install GNU-make (possibly as gmake), and start
8603configure with the following command:
8604export MAKE=gmake; ./configure for sh-type shells
8605setenv MAKE gmake; ./configure for csh-type shells
8606Also please do remember to use gmake in this case every time
8607you are trying to compile.
698dcdb6 8608" 1>&2; exit 1; }
10f2d63a
VZ
8609fi
8610
8611for ac_prog in 'bison -y' byacc
8612do
698dcdb6 8613# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 8614set dummy $ac_prog; ac_word=$2
698dcdb6 8615echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2389f33b 8616echo "configure:8617: checking for $ac_word" >&5
698dcdb6
VZ
8617if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8618 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8619else
8620 if test -n "$YACC"; then
8621 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8622else
698dcdb6
VZ
8623 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8624 ac_dummy="$PATH"
8625 for ac_dir in $ac_dummy; do
8626 test -z "$ac_dir" && ac_dir=.
8627 if test -f $ac_dir/$ac_word; then
8628 ac_cv_prog_YACC="$ac_prog"
8629 break
8630 fi
8631 done
8632 IFS="$ac_save_ifs"
10f2d63a
VZ
8633fi
8634fi
698dcdb6 8635YACC="$ac_cv_prog_YACC"
10f2d63a 8636if test -n "$YACC"; then
698dcdb6 8637 echo "$ac_t""$YACC" 1>&6
10f2d63a 8638else
698dcdb6 8639 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8640fi
8641
698dcdb6 8642test -n "$YACC" && break
10f2d63a
VZ
8643done
8644test -n "$YACC" || YACC="yacc"
8645
698dcdb6
VZ
8646
8647# Extract the first word of "flex", so it can be a program name with args.
8648set dummy flex; ac_word=$2
8649echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2389f33b 8650echo "configure:8651: checking for $ac_word" >&5
698dcdb6
VZ
8651if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8652 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8653else
8654 if test -n "$LEX"; then
8655 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8656else
698dcdb6
VZ
8657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8658 ac_dummy="$PATH"
8659 for ac_dir in $ac_dummy; do
8660 test -z "$ac_dir" && ac_dir=.
8661 if test -f $ac_dir/$ac_word; then
8662 ac_cv_prog_LEX="flex"
8663 break
8664 fi
8665 done
8666 IFS="$ac_save_ifs"
8667 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
8668fi
8669fi
698dcdb6 8670LEX="$ac_cv_prog_LEX"
10f2d63a 8671if test -n "$LEX"; then
698dcdb6 8672 echo "$ac_t""$LEX" 1>&6
10f2d63a 8673else
698dcdb6 8674 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8675fi
8676
8677if test -z "$LEXLIB"
8678then
698dcdb6
VZ
8679 case "$LEX" in
8680 flex*) ac_lib=fl ;;
8681 *) ac_lib=l ;;
8682 esac
8683 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2389f33b 8684echo "configure:8685: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
8685ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8686if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8687 echo $ac_n "(cached) $ac_c" 1>&6
8688else
8689 ac_save_LIBS="$LIBS"
8690LIBS="-l$ac_lib $LIBS"
8691cat > conftest.$ac_ext <<EOF
2389f33b 8692#line 8693 "configure"
10f2d63a
VZ
8693#include "confdefs.h"
8694/* Override any gcc2 internal prototype to avoid an error. */
8695/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
8696 builtin and then its argument prototype would still apply. */
8697char yywrap();
10f2d63a 8698
698dcdb6
VZ
8699int main() {
8700yywrap()
8701; return 0; }
8702EOF
2389f33b 8703if { (eval echo configure:8704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8704 rm -rf conftest*
8705 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 8706else
698dcdb6
VZ
8707 echo "configure: failed program was:" >&5
8708 cat conftest.$ac_ext >&5
8709 rm -rf conftest*
8710 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 8711fi
698dcdb6
VZ
8712rm -f conftest*
8713LIBS="$ac_save_LIBS"
8714
10f2d63a 8715fi
698dcdb6
VZ
8716if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8717 echo "$ac_t""yes" 1>&6
8718 LEXLIB="-l$ac_lib"
8719else
8720 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8721fi
8722
8723fi
8724
8725
698dcdb6 8726echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2389f33b 8727echo "configure:8728: checking whether ln -s works" >&5
698dcdb6
VZ
8728if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8729 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8730else
698dcdb6
VZ
8731 rm -f conftestdata
8732if ln -s X conftestdata 2>/dev/null
8733then
8734 rm -f conftestdata
8735 ac_cv_prog_LN_S="ln -s"
10f2d63a 8736else
698dcdb6 8737 ac_cv_prog_LN_S=ln
10f2d63a
VZ
8738fi
8739fi
698dcdb6
VZ
8740LN_S="$ac_cv_prog_LN_S"
8741if test "$ac_cv_prog_LN_S" = "ln -s"; then
8742 echo "$ac_t""yes" 1>&6
10f2d63a 8743else
698dcdb6 8744 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8745fi
8746
8747
8748
8749SEARCH_INCLUDE="\
8750 /usr/local/include \
8751 \
8752 /usr/Motif-1.2/include \
8753 /usr/Motif-2.1/include \
8754 \
8755 /usr/include/Motif1.2 \
8756 /opt/xpm/include/X11 \
8757 /opt/GBxpm/include/ \
8758 /opt/GBxpm/X11/include/ \
8759 \
8760 /usr/Motif1.2/include \
8761 /usr/dt/include \
afc31813
VZ
8762 /usr/openwin/include \
8763 \
10f2d63a
VZ
8764 /usr/include/Xm \
8765 \
8766 /usr/X11R6/include \
afc31813 8767 /usr/X11R6.4/include \
10f2d63a
VZ
8768 /usr/X11R5/include \
8769 /usr/X11R4/include \
8770 \
10f2d63a
VZ
8771 /usr/include/X11R6 \
8772 /usr/include/X11R5 \
8773 /usr/include/X11R4 \
8774 \
8775 /usr/local/X11R6/include \
8776 /usr/local/X11R5/include \
8777 /usr/local/X11R4/include \
8778 \
8779 /usr/local/include/X11R6 \
8780 /usr/local/include/X11R5 \
8781 /usr/local/include/X11R4 \
8782 \
8783 /usr/X11/include \
8784 /usr/include/X11 \
8785 /usr/local/X11/include \
8786 /usr/local/include/X11 \
8787 \
8788 /usr/X386/include \
8789 /usr/x386/include \
8790 /usr/XFree86/include/X11 \
8791 \
cf27ef00 8792 X:/XFree86/include \
ec14dd32
VZ
8793 X:/XFree86/include/X11 \
8794 \
10f2d63a
VZ
8795 /usr/include/gtk \
8796 /usr/local/include/gtk \
8797 /usr/include/glib \
8798 /usr/local/include/glib \
8799 \
8800 /usr/include/qt \
8801 /usr/local/include/qt \
8802 \
8803 /usr/include/windows \
8804 /usr/include/wine \
8805 /usr/local/include/wine \
8806 \
8807 /usr/unsupported/include \
8808 /usr/athena/include \
8809 /usr/local/x11r5/include \
8810 /usr/lpp/Xamples/include \
8811 \
10f2d63a 8812 /usr/openwin/share/include \
928b5c08
VZ
8813 \
8814 /usr/include"
10f2d63a
VZ
8815
8816SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8817
698dcdb6
VZ
8818
8819cat > confcache <<\EOF
10f2d63a
VZ
8820# This file is a shell script that caches the results of configure
8821# tests run on this system so they can be shared between configure
698dcdb6
VZ
8822# scripts and configure runs. It is not useful on other systems.
8823# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8824#
698dcdb6
VZ
8825# By default, configure uses ./config.cache as the cache file,
8826# creating it if it does not exist already. You can give configure
8827# the --cache-file=FILE option to use a different cache file; that is
8828# what configure does when it calls configure scripts in
8829# subdirectories, so they share the cache.
8830# Giving --cache-file=/dev/null disables caching, for debugging configure.
8831# config.status only pays attention to the cache file if you give it the
8832# --recheck option to rerun configure.
10f2d63a 8833#
698dcdb6 8834EOF
10f2d63a
VZ
8835# The following way of writing the cache mishandles newlines in values,
8836# but we know of no workaround that is simple, portable, and efficient.
8837# So, don't put newlines in cache variables' values.
8838# Ultrix sh set writes to stderr and can't be redirected directly,
8839# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8840(set) 2>&1 |
8841 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8842 *ac_space=\ *)
8843 # `set' does not quote correctly, so add quotes (double-quote substitution
8844 # turns \\\\ into \\, and sed turns \\ into \).
8845 sed -n \
8846 -e "s/'/'\\\\''/g" \
8847 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8848 ;;
8849 *)
8850 # `set' quotes correctly as required by POSIX, so do not add quotes.
8851 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8852 ;;
8853 esac >> confcache
8854if cmp -s $cache_file confcache; then
8855 :
8856else
10f2d63a 8857 if test -w $cache_file; then
698dcdb6
VZ
8858 echo "updating cache $cache_file"
8859 cat confcache > $cache_file
10f2d63a
VZ
8860 else
8861 echo "not updating unwritable cache $cache_file"
8862 fi
8863fi
8864rm -f confcache
8865
698dcdb6
VZ
8866
8867
18dbb1f6
VZ
8868REGEX_INCLUDE=
8869if test "$wxUSE_REGEX" != "no"; then
8870 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
8871echo $ac_n "checking for regex.h""... $ac_c" 1>&6
2389f33b 8872echo "configure:8873: checking for regex.h" >&5
18dbb1f6
VZ
8873if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8874 echo $ac_n "(cached) $ac_c" 1>&6
8875else
8876 cat > conftest.$ac_ext <<EOF
2389f33b 8877#line 8878 "configure"
18dbb1f6
VZ
8878#include "confdefs.h"
8879#include <regex.h>
8880EOF
8881ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2389f33b 8882{ (eval echo configure:8883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18dbb1f6
VZ
8883ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8884if test -z "$ac_err"; then
8885 rm -rf conftest*
8886 eval "ac_cv_header_$ac_safe=yes"
8887else
8888 echo "$ac_err" >&5
8889 echo "configure: failed program was:" >&5
8890 cat conftest.$ac_ext >&5
8891 rm -rf conftest*
8892 eval "ac_cv_header_$ac_safe=no"
8893fi
8894rm -f conftest*
8895fi
8896if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8897 echo "$ac_t""yes" 1>&6
8898 for ac_func in regcomp
8899do
8900echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2389f33b 8901echo "configure:8902: checking for $ac_func" >&5
18dbb1f6
VZ
8902if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8903 echo $ac_n "(cached) $ac_c" 1>&6
8904else
8905 cat > conftest.$ac_ext <<EOF
2389f33b 8906#line 8907 "configure"
18dbb1f6
VZ
8907#include "confdefs.h"
8908/* System header to define __stub macros and hopefully few prototypes,
8909 which can conflict with char $ac_func(); below. */
8910#include <assert.h>
8911/* Override any gcc2 internal prototype to avoid an error. */
8912/* We use char because int might match the return type of a gcc2
8913 builtin and then its argument prototype would still apply. */
8914char $ac_func();
8915
8916int main() {
8917
8918/* The GNU C library defines this for functions which it implements
8919 to always fail with ENOSYS. Some functions are actually named
8920 something starting with __ and the normal name is an alias. */
8921#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8922choke me
8923#else
8924$ac_func();
8925#endif
8926
8927; return 0; }
8928EOF
2389f33b 8929if { (eval echo configure:8930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18dbb1f6
VZ
8930 rm -rf conftest*
8931 eval "ac_cv_func_$ac_func=yes"
8932else
8933 echo "configure: failed program was:" >&5
8934 cat conftest.$ac_ext >&5
8935 rm -rf conftest*
8936 eval "ac_cv_func_$ac_func=no"
8937fi
8938rm -f conftest*
8939fi
8940
8941if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8942 echo "$ac_t""yes" 1>&6
8943 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8944 cat >> confdefs.h <<EOF
8945#define $ac_tr_func 1
8946EOF
8947
8948else
8949 echo "$ac_t""no" 1>&6
8950fi
8951done
8952
8953else
8954 echo "$ac_t""no" 1>&6
8955fi
8956
8957
8958 if test "x$ac_cv_func_regcomp" != "xyes"; then
8959 if test "$wxUSE_REGEX" = "sys"; then
8960 { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; }
8961 fi
8962
8963 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
8964 fi
8965
8966 cat >> confdefs.h <<\EOF
8967#define wxUSE_REGEX 1
8968EOF
8969
8970fi
8971
8972
dad6c0ea
VZ
8973AFMINSTALL=
8974
10f2d63a 8975if test "$wxUSE_GUI" = "yes"; then
1e6feb95 8976 USE_GUI=1
10f2d63a 8977
1e6feb95
VZ
8978 TOOLKIT=
8979 TOOLKIT_INCLUDE=
10f2d63a 8980
1e6feb95
VZ
8981 GUI_TK_LIBRARY=
8982 GUI_TK_LINK=
10f2d63a 8983
1e6feb95
VZ
8984 WXGTK12=
8985 WXGTK127=
8986 WXGTK20=
10f2d63a 8987
1e6feb95 8988 WXWINE=
10f2d63a 8989
1e6feb95 8990 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
29fd3c0c
VS
8991 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
8992echo $ac_n "checking for windows.h""... $ac_c" 1>&6
2389f33b 8993echo "configure:8994: checking for windows.h" >&5
d4158b5d
VS
8994if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8995 echo $ac_n "(cached) $ac_c" 1>&6
8996else
8997 cat > conftest.$ac_ext <<EOF
2389f33b 8998#line 8999 "configure"
d4158b5d 8999#include "confdefs.h"
29fd3c0c 9000#include <windows.h>
d4158b5d
VS
9001EOF
9002ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2389f33b 9003{ (eval echo configure:9004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4158b5d
VS
9004ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9005if test -z "$ac_err"; then
9006 rm -rf conftest*
9007 eval "ac_cv_header_$ac_safe=yes"
9008else
9009 echo "$ac_err" >&5
9010 echo "configure: failed program was:" >&5
9011 cat conftest.$ac_ext >&5
9012 rm -rf conftest*
9013 eval "ac_cv_header_$ac_safe=no"
9014fi
9015rm -f conftest*
9016fi
9017if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9018 echo "$ac_t""yes" 1>&6
29fd3c0c 9019 :
d4158b5d
VS
9020else
9021 echo "$ac_t""no" 1>&6
d4158b5d 9022
3f0f0161
VZ
9023 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9024
29fd3c0c 9025fi
10f2d63a 9026
3f0f0161 9027
1e6feb95 9028 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
3f0f0161 9029
031d8228 9030 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
f6bcfd97 9031
1e6feb95
VZ
9032 if test "$wxUSE_ODBC" = "yes" ; then
9033 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
9034 fi
10f2d63a 9035
1e6feb95
VZ
9036 if test "$wxUSE_MINGW" = 1; then
9037 LDFLAGS="$LDFLAGS -mwindows"
9038 fi
32832908 9039
1e6feb95
VZ
9040 TOOLKIT=MSW
9041 GUIDIST=MSW_DIST
32832908 9042
1e6feb95
VZ
9043 RCINCSWITCH="--include-dir"
9044 RCDEFSWITCH="--define"
9045 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
9046 RCINPUTSWITCH="-i"
9047 RCOUTPUTSWITCH="-o"
9048 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
32832908 9049
1e6feb95
VZ
9050 RESPROGRAM="\$(RES_PROGRAM)"
9051 fi
10f2d63a 9052
1e6feb95 9053 if test "$wxUSE_GTK" = 1; then
8168de4c 9054 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
2389f33b 9055echo "configure:9056: checking for GTK+ version" >&5
8168de4c
VZ
9056
9057 gtk_version_cached=1
9058 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9059 echo $ac_n "(cached) $ac_c" 1>&6
9060else
9061
9062 gtk_version_cached=0
9063 echo "$ac_t""""" 1>&6
9064
9065 wx_cv_lib_gtk=
9066 if test "x$wxUSE_GTK2" = "xyes"; then
9067 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6f72b082
OK
9068if test "${with_gtk_prefix+set}" = set; then
9069 withval="$with_gtk_prefix"
9070 gtk_config_prefix="$withval"
9071else
9072 gtk_config_prefix=""
698dcdb6 9073fi
6f72b082
OK
9074
9075# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9076if test "${with_gtk_exec_prefix+set}" = set; then
9077 withval="$with_gtk_exec_prefix"
9078 gtk_config_exec_prefix="$withval"
9079else
9080 gtk_config_exec_prefix=""
698dcdb6
VZ
9081fi
9082
6f72b082
OK
9083# Check whether --enable-gtktest or --disable-gtktest was given.
9084if test "${enable_gtktest+set}" = set; then
9085 enableval="$enable_gtktest"
698dcdb6 9086 :
6f72b082
OK
9087else
9088 enable_gtktest=yes
698dcdb6
VZ
9089fi
9090
6f72b082 9091
8168de4c 9092 for module in .
6f72b082
OK
9093 do
9094 case "$module" in
8168de4c 9095 gthread)
6f72b082
OK
9096 gtk_config_args="$gtk_config_args gthread"
9097 ;;
9098 esac
9099 done
9100
9101 if test x$gtk_config_exec_prefix != x ; then
9102 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9103 if test x${GTK_CONFIG_2_0+set} != xset ; then
9104 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9105 fi
9106 fi
9107 if test x$gtk_config_prefix != x ; then
9108 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9109 if test x${GTK_CONFIG_2_0+set} != xset ; then
9110 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9111 fi
9112 fi
9113
9114 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9115set dummy gtk-config-2.0; ac_word=$2
698dcdb6 9116echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2389f33b 9117echo "configure:9118: checking for $ac_word" >&5
698dcdb6
VZ
9118if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9119 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 9120else
698dcdb6
VZ
9121 case "$GTK_CONFIG_2_0" in
9122 /*)
6f72b082
OK
9123 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9124 ;;
698dcdb6
VZ
9125 ?:/*)
9126 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9127 ;;
6f72b082 9128 *)
698dcdb6
VZ
9129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9130 ac_dummy="$PATH"
9131 for ac_dir in $ac_dummy; do
9132 test -z "$ac_dir" && ac_dir=.
9133 if test -f $ac_dir/$ac_word; then
9134 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9135 break
9136 fi
9137 done
9138 IFS="$ac_save_ifs"
6f72b082
OK
9139 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9140 ;;
9141esac
9142fi
698dcdb6 9143GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 9144if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 9145 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 9146else
698dcdb6 9147 echo "$ac_t""no" 1>&6
6f72b082
OK
9148fi
9149
9150 min_gtk_version=1.3.1
698dcdb6 9151 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
2389f33b 9152echo "configure:9153: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
9153 no_gtk=""
9154 if test "$GTK_CONFIG_2_0" = "no" ; then
9155 no_gtk=yes
9156 else
9157 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9158 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9159 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9160 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9161 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9162 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9163 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9164 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9165 if test "x$enable_gtktest" = "xyes" ; then
9166 ac_save_CFLAGS="$CFLAGS"
9167 ac_save_LIBS="$LIBS"
9168 CFLAGS="$CFLAGS $GTK_CFLAGS"
9169 LIBS="$GTK_LIBS $LIBS"
9170 rm -f conf.gtktest
9171 if test "$cross_compiling" = yes; then
9172 echo $ac_n "cross compiling; assumed OK... $ac_c"
9173else
698dcdb6 9174 cat > conftest.$ac_ext <<EOF
2389f33b 9175#line 9176 "configure"
6f72b082
OK
9176#include "confdefs.h"
9177
9178#include <gtk/gtk.h>
9179#include <stdio.h>
9180#include <stdlib.h>
9181
8168de4c 9182int
6f72b082
OK
9183main ()
9184{
9185 int major, minor, micro;
9186 char *tmp_version;
9187
9188 system ("touch conf.gtktest");
9189
9190 /* HP/UX 9 (%@#!) writes to sscanf strings */
9191 tmp_version = g_strdup("$min_gtk_version");
9192 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9193 printf("%s, bad version string\n", "$min_gtk_version");
9194 exit(1);
9195 }
9196
9197 if ((gtk_major_version != $gtk_config_major_version) ||
9198 (gtk_minor_version != $gtk_config_minor_version) ||
9199 (gtk_micro_version != $gtk_config_micro_version))
9200 {
8168de4c 9201 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
9202 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9203 gtk_major_version, gtk_minor_version, gtk_micro_version);
9204 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9205 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9206 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9207 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9208 printf("*** required on your system.\n");
9209 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9210 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9211 printf("*** before re-running configure\n");
8168de4c 9212 }
6f72b082
OK
9213#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9214 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8168de4c 9215 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
9216 (gtk_micro_version != GTK_MICRO_VERSION))
9217 {
9218 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8168de4c 9219 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 9220 printf("*** library (version %d.%d.%d)\n",
8168de4c 9221 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082
OK
9222 }
9223#endif /* defined (GTK_MAJOR_VERSION) ... */
9224 else
9225 {
9226 if ((gtk_major_version > major) ||
9227 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9228 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9229 {
9230 return 0;
9231 }
9232 else
9233 {
9234 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9235 gtk_major_version, gtk_minor_version, gtk_micro_version);
9236 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8168de4c 9237 major, minor, micro);
6f72b082
OK
9238 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9239 printf("***\n");
9240 printf("*** If you have already installed a sufficiently new version, this error\n");
9241 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9242 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9243 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9244 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9245 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9246 printf("*** so that the correct libraries are found at run-time))\n");
9247 }
9248 }
9249 return 1;
9250}
9251
698dcdb6 9252EOF
2389f33b 9253if { (eval echo configure:9254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9254then
6f72b082
OK
9255 :
9256else
698dcdb6
VZ
9257 echo "configure: failed program was:" >&5
9258 cat conftest.$ac_ext >&5
9259 rm -fr conftest*
9260 no_gtk=yes
6f72b082 9261fi
698dcdb6 9262rm -fr conftest*
6f72b082 9263fi
698dcdb6 9264
6f72b082
OK
9265 CFLAGS="$ac_save_CFLAGS"
9266 LIBS="$ac_save_LIBS"
9267 fi
9268 fi
9269 if test "x$no_gtk" = x ; then
698dcdb6 9270 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8168de4c 9271 wx_cv_lib_gtk=2.0
6f72b082 9272 else
698dcdb6 9273 echo "$ac_t""no" 1>&6
6f72b082
OK
9274 if test "$GTK_CONFIG_2_0" = "no" ; then
9275 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9276 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9277 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9278 echo "*** full path to gtk-config-2.0."
9279 else
9280 if test -f conf.gtktest ; then
9281 :
9282 else
9283 echo "*** Could not run GTK test program, checking why..."
9284 CFLAGS="$CFLAGS $GTK_CFLAGS"
9285 LIBS="$LIBS $GTK_LIBS"
698dcdb6 9286 cat > conftest.$ac_ext <<EOF
2389f33b 9287#line 9288 "configure"
6f72b082
OK
9288#include "confdefs.h"
9289
9290#include <gtk/gtk.h>
9291#include <stdio.h>
9292
698dcdb6
VZ
9293int main() {
9294 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9295; return 0; }
9296EOF
2389f33b 9297if { (eval echo configure:9298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9298 rm -rf conftest*
6f72b082
OK
9299 echo "*** The test program compiled, but did not run. This usually means"
9300 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9301 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9302 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9303 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9304 echo "*** is required on your system"
8168de4c 9305 echo "***"
6f72b082
OK
9306 echo "*** If you have an old version installed, it is best to remove it, although"
9307 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9308 echo "***"
9309 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9310 echo "*** came with the system with the command"
9311 echo "***"
698dcdb6 9312 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 9313else
698dcdb6
VZ
9314 echo "configure: failed program was:" >&5
9315 cat conftest.$ac_ext >&5
9316 rm -rf conftest*
9317 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
9318 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9319 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
698dcdb6 9320 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 9321fi
698dcdb6 9322rm -f conftest*
6f72b082
OK
9323 CFLAGS="$ac_save_CFLAGS"
9324 LIBS="$ac_save_LIBS"
9325 fi
9326 fi
9327 GTK_CFLAGS=""
9328 GTK_LIBS=""
8168de4c
VZ
9329 gthread
9330 fi
9331
9332
9333 rm -f conf.gtktest
9334
9335 fi
9336
9337 if test -z "$wx_cv_lib_gtk"; then
9338
10f2d63a
VZ
9339 if test x$gtk_config_exec_prefix != x ; then
9340 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9341 if test x${GTK_CONFIG+set} != xset ; then
9342 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9343 fi
9344 fi
9345 if test x$gtk_config_prefix != x ; then
9346 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9347 if test x${GTK_CONFIG+set} != xset ; then
9348 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9349 fi
9350 fi
9351
9352 # Extract the first word of "gtk-config", so it can be a program name with args.
9353set dummy gtk-config; ac_word=$2
698dcdb6 9354echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2389f33b 9355echo "configure:9356: checking for $ac_word" >&5
698dcdb6
VZ
9356if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9357 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 9358else
698dcdb6
VZ
9359 case "$GTK_CONFIG" in
9360 /*)
f6bcfd97
BP
9361 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9362 ;;
698dcdb6
VZ
9363 ?:/*)
9364 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9365 ;;
f6bcfd97 9366 *)
698dcdb6
VZ
9367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9368 ac_dummy="$PATH"
9369 for ac_dir in $ac_dummy; do
9370 test -z "$ac_dir" && ac_dir=.
9371 if test -f $ac_dir/$ac_word; then
9372 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9373 break
9374 fi
9375 done
9376 IFS="$ac_save_ifs"
f6bcfd97
BP
9377 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9378 ;;
9379esac
9380fi
698dcdb6 9381GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 9382if test -n "$GTK_CONFIG"; then
698dcdb6 9383 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 9384else
698dcdb6 9385 echo "$ac_t""no" 1>&6
f6bcfd97
BP
9386fi
9387
9388 min_gtk_version=1.2.7
698dcdb6 9389 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
2389f33b 9390echo "configure:9391: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
9391 no_gtk=""
9392 if test "$GTK_CONFIG" != "no" ; then
9393 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9394 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9395 ac_save_CFLAGS="$CFLAGS"
9396 ac_save_LIBS="$LIBS"
9397 CFLAGS="$CFLAGS $GTK_CFLAGS"
9398 LIBS="$LIBS $GTK_LIBS"
9399 if test "$cross_compiling" = yes; then
9400 echo $ac_n "cross compiling; assumed OK... $ac_c"
9401else
698dcdb6 9402 cat > conftest.$ac_ext <<EOF
2389f33b 9403#line 9404 "configure"
f6bcfd97
BP
9404#include "confdefs.h"
9405
9406#include <gtk/gtk.h>
9407#include <gtk/gtkfeatures.h>
9408#include <stdio.h>
9409#include <stdlib.h>
9410
9411int
9412main ()
9413{
9414 int major, minor, micro;
9415
9416 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9417 printf("%s, bad version string\n", "$min_gtk_version");
9418 exit(1);
9419 }
9420
9421 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9422 (GTK_MINOR_VERSION != gtk_minor_version) ||
9423 (GTK_MICRO_VERSION != gtk_micro_version)) {
9424 printf("Headers vs. library version mismatch!\n");
9425 exit(1);
9426 }
9427
9428 if (gtk_minor_version == 1) return FALSE;
9429
9430 return !((gtk_major_version > major) ||
9431 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9432 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9433}
9434
698dcdb6 9435EOF
2389f33b 9436if { (eval echo configure:9437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9437then
f6bcfd97
BP
9438 :
9439else
698dcdb6
VZ
9440 echo "configure: failed program was:" >&5
9441 cat conftest.$ac_ext >&5
9442 rm -fr conftest*
9443 no_gtk=yes
f6bcfd97 9444fi
698dcdb6 9445rm -fr conftest*
f6bcfd97 9446fi
698dcdb6 9447
f6bcfd97
BP
9448 CFLAGS="$ac_save_CFLAGS"
9449 LIBS="$ac_save_LIBS"
9450 else
9451 no_gtk=yes
9452 fi
9453 if test "x$no_gtk" = x ; then
698dcdb6 9454 echo "$ac_t""yes" 1>&6
8168de4c 9455 wx_cv_lib_gtk=1.2.7
f6bcfd97 9456 else
698dcdb6 9457 echo "$ac_t""no" 1>&6
f6bcfd97
BP
9458 GTK_CFLAGS=""
9459 GTK_LIBS=""
9460 :
9461 fi
698dcdb6
VZ
9462
9463
f6bcfd97 9464
8168de4c
VZ
9465 fi
9466
9467 if test -z "$wx_cv_lib_gtk"; then
9468
f6bcfd97
BP
9469 if test x$gtk_config_exec_prefix != x ; then
9470 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9471 if test x${GTK_CONFIG+set} != xset ; then
9472 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9473 fi
9474 fi
9475 if test x$gtk_config_prefix != x ; then
9476 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9477 if test x${GTK_CONFIG+set} != xset ; then
9478 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9479 fi
9480 fi
9481
9482 # Extract the first word of "gtk-config", so it can be a program name with args.
9483set dummy gtk-config; ac_word=$2
698dcdb6 9484echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2389f33b 9485echo "configure:9486: checking for $ac_word" >&5
698dcdb6
VZ
9486if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9487 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9488else
698dcdb6
VZ
9489 case "$GTK_CONFIG" in
9490 /*)
10f2d63a
VZ
9491 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9492 ;;
698dcdb6
VZ
9493 ?:/*)
9494 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9495 ;;
10f2d63a 9496 *)
698dcdb6
VZ
9497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9498 ac_dummy="$PATH"
9499 for ac_dir in $ac_dummy; do
9500 test -z "$ac_dir" && ac_dir=.
9501 if test -f $ac_dir/$ac_word; then
9502 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9503 break
9504 fi
9505 done
9506 IFS="$ac_save_ifs"
10f2d63a
VZ
9507 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9508 ;;
9509esac
9510fi
698dcdb6 9511GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 9512if test -n "$GTK_CONFIG"; then
698dcdb6 9513 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 9514else
698dcdb6 9515 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9516fi
9517
04165bec 9518 min_gtk_version=1.2.3
698dcdb6 9519 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
2389f33b 9520echo "configure:9521: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
9521 no_gtk=""
9522 if test "$GTK_CONFIG" != "no" ; then
9523 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 9524 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
9525 ac_save_CFLAGS="$CFLAGS"
9526 ac_save_LIBS="$LIBS"
9527 CFLAGS="$CFLAGS $GTK_CFLAGS"
9528 LIBS="$LIBS $GTK_LIBS"
9529 if test "$cross_compiling" = yes; then
9530 echo $ac_n "cross compiling; assumed OK... $ac_c"
9531else
698dcdb6 9532 cat > conftest.$ac_ext <<EOF
2389f33b 9533#line 9534 "configure"
10f2d63a
VZ
9534#include "confdefs.h"
9535
9536#include <gtk/gtk.h>
f49f2b0c 9537#include <gtk/gtkfeatures.h>
10f2d63a 9538#include <stdio.h>
32832908 9539#include <stdlib.h>
10f2d63a
VZ
9540
9541int
9542main ()
9543{
9544 int major, minor, micro;
9545
9546 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9547 printf("%s, bad version string\n", "$min_gtk_version");
9548 exit(1);
9549 }
9550
f49f2b0c
RR
9551 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9552 (GTK_MINOR_VERSION != gtk_minor_version) ||
9553 (GTK_MICRO_VERSION != gtk_micro_version)) {
9554 printf("Headers vs. library version mismatch!\n");
9555 exit(1);
9556 }
9557
10f2d63a
VZ
9558 if (gtk_minor_version == 1) return FALSE;
9559
9560 return !((gtk_major_version > major) ||
9561 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9562 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9563}
9564
698dcdb6 9565EOF
2389f33b 9566if { (eval echo configure:9567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9567then
10f2d63a
VZ
9568 :
9569else
698dcdb6
VZ
9570 echo "configure: failed program was:" >&5
9571 cat conftest.$ac_ext >&5
9572 rm -fr conftest*
9573 no_gtk=yes
10f2d63a 9574fi
698dcdb6 9575rm -fr conftest*
10f2d63a 9576fi
698dcdb6 9577
10f2d63a
VZ
9578 CFLAGS="$ac_save_CFLAGS"
9579 LIBS="$ac_save_LIBS"
9580 else
9581 no_gtk=yes
9582 fi
9583 if test "x$no_gtk" = x ; then
698dcdb6 9584 echo "$ac_t""yes" 1>&6
8168de4c 9585 wx_cv_lib_gtk=1.2.3
10f2d63a 9586 else
698dcdb6 9587 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9588 GTK_CFLAGS=""
9589 GTK_LIBS=""
7e99ad86 9590 :
10f2d63a 9591 fi
698dcdb6
VZ
9592
9593
10f2d63a 9594
8168de4c
VZ
9595 fi
9596
9597 if test -z "$wx_cv_lib_gtk"; then
9598 wx_cv_lib_gtk=none
138be253
VZ
9599 else
9600 wx_cv_cflags_gtk=$GTK_CFLAGS
9601 wx_cv_libs_gtk=$GTK_LIBS
8168de4c
VZ
9602 fi
9603
1e6feb95 9604
8168de4c 9605fi
703e0a69 9606
698dcdb6 9607
8168de4c
VZ
9608 if test "$gtk_version_cached" = 1; then
9609 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
1e6feb95 9610 fi
698dcdb6 9611
8168de4c
VZ
9612 case "$wx_cv_lib_gtk" in
9613 2.0) WXGTK20=1
9614 ;;
9615 1.2.7) WXGTK127=1
d1a8d972 9616 WXGTK12=1
8168de4c
VZ
9617 ;;
9618 1.2.3) WXGTK12=1
9619 ;;
9620 *) { echo "configure: error:
9621Please check that gtk-config is in path, the directory
9622where GTK+ libraries are installed (returned by
9623'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9624equivalent variable and GTK+ is version 1.2.3 or above.
9625 " 1>&2; exit 1; }
9626 ;;
9627 esac
2224580a 9628
138be253 9629 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11dfaa5f 9630 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
698dcdb6 9631
1e6feb95
VZ
9632 AFMINSTALL=afminstall
9633 TOOLKIT=GTK
9634 GUIDIST=GTK_DIST
7ec2881a 9635
1e6feb95 9636 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
2389f33b 9637echo "configure:9638: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
9638ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9639if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9640 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 9641else
698dcdb6 9642 ac_save_LIBS="$LIBS"
7ec2881a 9643LIBS="-lgdk $LIBS"
698dcdb6 9644cat > conftest.$ac_ext <<EOF
2389f33b 9645#line 9646 "configure"
7ec2881a
RR
9646#include "confdefs.h"
9647/* Override any gcc2 internal prototype to avoid an error. */
9648/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9649 builtin and then its argument prototype would still apply. */
9650char gdk_im_open();
9651
9652int main() {
9653gdk_im_open()
9654; return 0; }
9655EOF
2389f33b 9656if { (eval echo configure:9657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9657 rm -rf conftest*
9658 eval "ac_cv_lib_$ac_lib_var=yes"
9659else
9660 echo "configure: failed program was:" >&5
9661 cat conftest.$ac_ext >&5
9662 rm -rf conftest*
9663 eval "ac_cv_lib_$ac_lib_var=no"
9664fi
9665rm -f conftest*
9666LIBS="$ac_save_LIBS"
9667
9668fi
9669if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9670 echo "$ac_t""yes" 1>&6
9671 cat >> confdefs.h <<\EOF
7ec2881a
RR
9672#define HAVE_XIM 1
9673EOF
9674
698dcdb6
VZ
9675else
9676 echo "$ac_t""no" 1>&6
7ec2881a
RR
9677fi
9678
1e6feb95 9679 fi
10f2d63a 9680
1e6feb95
VZ
9681 if test "$wxUSE_MGL" = 1; then
9682
9683 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
2389f33b 9684echo "configure:9685: checking for SciTech MGL library" >&5
1e6feb95
VZ
9685 if test "x$MGL_ROOT" = x ; then
9686 echo "$ac_t""not found" 1>&6
9687 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9688 else
9689 echo "$ac_t""$MGL_ROOT" 1>&6
9690 fi
9691
9692 MGL_OS=linux/gcc/glibc
9693 MGL_LIB_TYPE=""
9694
9695 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9696 if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then
9697 MGL_LIB_TYPE=debug
9698 fi
9699 fi
9700 if test "x$MGL_LIB_TYPE" = x ; then
9701 if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then
9702 MGL_LIB_TYPE=release
9703 else
9704 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9705 fi
9706 fi
9707
9708 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9709 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm"
9710
9711 AFMINSTALL=afminstall
9712 TOOLKIT=MGL
9713 GUIDIST=MGL_DIST
9714 fi
9715
9716 if test "$wxUSE_WINE" = 1; then
9717 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
2389f33b 9718echo "configure:9719: checking for WINE includes" >&5
1e6feb95 9719
10f2d63a
VZ
9720ac_find_includes=
9721for ac_dir in $SEARCH_INCLUDE;
9722 do
9723 if test -f "$ac_dir/windows.h"; then
9724 ac_find_includes=$ac_dir
9725 break
9726 fi
9727 done
9728
1e6feb95
VZ
9729 if test "$ac_find_includes" != "" ; then
9730 echo "$ac_t""found $ac_find_includes" 1>&6
9731 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
9732 else
9733 echo "$ac_t""no" 1>&6
9734 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9735 fi
10f2d63a 9736
1e6feb95
VZ
9737 XPM_LINK=""
9738 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
2389f33b 9739echo "configure:9740: checking for Xpm library" >&5
1e6feb95 9740
10f2d63a
VZ
9741ac_find_libraries=
9742for ac_dir in $SEARCH_LIB;
9743 do
f11bdd03 9744 for ac_extension in a so sl dylib; do
10f2d63a
VZ
9745 if test -f "$ac_dir/libXpm.$ac_extension"; then
9746 ac_find_libraries=$ac_dir
9747 break 2
9748 fi
9749 done
9750 done
9751
1e6feb95
VZ
9752 if test "$ac_find_libraries" != "" ; then
9753 GUI_TK_LIBRARY="-L$ac_find_libraries"
9754 XPM_LINK="-lXpm"
9755 cat >> confdefs.h <<\EOF
10f2d63a
VZ
9756#define wxHAVE_LIB_XPM 1
9757EOF
9758
1e6feb95
VZ
9759 echo "$ac_t""found at $ac_find_libraries" 1>&6
9760 else
9761 echo "$ac_t""no" 1>&6
9762 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9763 fi
10f2d63a 9764
1e6feb95
VZ
9765 MESA_LINK=""
9766 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
2389f33b 9767echo "configure:9768: checking for Mesa library" >&5
1e6feb95 9768
10f2d63a
VZ
9769ac_find_libraries=
9770for ac_dir in $SEARCH_LIB;
9771 do
f11bdd03 9772 for ac_extension in a so sl dylib; do
10f2d63a
VZ
9773 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9774 ac_find_libraries=$ac_dir
9775 break 2
9776 fi
9777 done
9778 done
9779
1e6feb95
VZ
9780 if test "$ac_find_libraries" != "" ; then
9781 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9782 MESA_LINK="-lMesaGL"
9783 echo "$ac_t""found at $ac_find_libraries" 1>&6
9784 else
9785 { echo "configure: error: no" 1>&2; exit 1; }
9786 fi
10f2d63a 9787
1e6feb95
VZ
9788 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9789 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9790 WXWINE=1
9791 TOOLKIT=MSW
9792 GUIDIST=MSW_DIST
9793 fi
698dcdb6 9794
1e6feb95
VZ
9795
9796 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
9797# paths, otherwise set no_x=yes.
9798# Uses ac_ vars as temps to allow command line to override cache and checks.
9799# --without-x overrides everything else, but does not touch the cache.
9800echo $ac_n "checking for X""... $ac_c" 1>&6
2389f33b 9801echo "configure:9802: checking for X" >&5
ab9b9eab
VZ
9802
9803# Check whether --with-x or --without-x was given.
9804if test "${with_x+set}" = set; then
9805 withval="$with_x"
698dcdb6
VZ
9806 :
9807fi
ba337fe7 9808
ab9b9eab
VZ
9809# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9810if test "x$with_x" = xno; then
9811 # The user explicitly disabled X.
9812 have_x=disabled
9813else
9814 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9815 # Both variables are already set.
9816 have_x=yes
9817 else
698dcdb6
VZ
9818if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9819 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
9820else
9821 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
9822ac_x_includes=NO ac_x_libraries=NO
9823rm -fr conftestdir
9824if mkdir conftestdir; then
9825 cd conftestdir
ab9b9eab 9826 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 9827 cat > Imakefile <<'EOF'
ab9b9eab
VZ
9828acfindx:
9829 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9830EOF
9831 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9832 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9833 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9834 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 9835 for ac_extension in a so sl; do
ab9b9eab 9836 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 9837 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 9838 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
9839 fi
9840 done
ab9b9eab
VZ
9841 # Screen out bogus values from the imake configuration. They are
9842 # bogus both because they are the default anyway, and because
9843 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 9844 case "$ac_im_incroot" in
ab9b9eab 9845 /usr/include) ;;
698dcdb6 9846 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 9847 esac
698dcdb6 9848 case "$ac_im_usrlibdir" in
ab9b9eab 9849 /usr/lib | /lib) ;;
698dcdb6 9850 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 9851 esac
ba337fe7 9852 fi
ab9b9eab 9853 cd ..
698dcdb6 9854 rm -fr conftestdir
ab9b9eab 9855fi
10f2d63a 9856
698dcdb6
VZ
9857if test "$ac_x_includes" = NO; then
9858 # Guess where to find include files, by looking for this one X11 .h file.
9859 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9860
ab9b9eab 9861 # First, try using that file with no special directory specified.
698dcdb6 9862cat > conftest.$ac_ext <<EOF
2389f33b 9863#line 9864 "configure"
ab9b9eab 9864#include "confdefs.h"
698dcdb6
VZ
9865#include <$x_direct_test_include>
9866EOF
9867ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2389f33b 9868{ (eval echo configure:9869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
9869ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9870if test -z "$ac_err"; then
9871 rm -rf conftest*
ab9b9eab
VZ
9872 # We can compile using X headers with no special include directory.
9873ac_x_includes=
9874else
698dcdb6
VZ
9875 echo "$ac_err" >&5
9876 echo "configure: failed program was:" >&5
ab9b9eab 9877 cat conftest.$ac_ext >&5
698dcdb6
VZ
9878 rm -rf conftest*
9879 # Look for the header file in a standard set of common directories.
9880# Check X11 before X11Rn because it is often a symlink to the current release.
9881 for ac_dir in \
9882 /usr/X11/include \
9883 /usr/X11R6/include \
9884 /usr/X11R5/include \
9885 /usr/X11R4/include \
9886 \
9887 /usr/include/X11 \
9888 /usr/include/X11R6 \
9889 /usr/include/X11R5 \
9890 /usr/include/X11R4 \
9891 \
9892 /usr/local/X11/include \
9893 /usr/local/X11R6/include \
9894 /usr/local/X11R5/include \
9895 /usr/local/X11R4/include \
9896 \
9897 /usr/local/include/X11 \
9898 /usr/local/include/X11R6 \
9899 /usr/local/include/X11R5 \
9900 /usr/local/include/X11R4 \
9901 \
9902 /usr/X386/include \
9903 /usr/x386/include \
9904 /usr/XFree86/include/X11 \
9905 \
9906 /usr/include \
9907 /usr/local/include \
9908 /usr/unsupported/include \
9909 /usr/athena/include \
9910 /usr/local/x11r5/include \
9911 /usr/lpp/Xamples/include \
9912 \
9913 /usr/openwin/include \
9914 /usr/openwin/share/include \
9915 ; \
9916 do
9917 if test -r "$ac_dir/$x_direct_test_include"; then
9918 ac_x_includes=$ac_dir
9919 break
9920 fi
9921 done
ab9b9eab 9922fi
698dcdb6
VZ
9923rm -f conftest*
9924fi # $ac_x_includes = NO
10f2d63a 9925
698dcdb6 9926if test "$ac_x_libraries" = NO; then
ab9b9eab 9927 # Check for the libraries.
698dcdb6
VZ
9928
9929 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9930 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9931
ab9b9eab
VZ
9932 # See if we find them without any special options.
9933 # Don't add to $LIBS permanently.
698dcdb6
VZ
9934 ac_save_LIBS="$LIBS"
9935 LIBS="-l$x_direct_test_library $LIBS"
9936cat > conftest.$ac_ext <<EOF
2389f33b 9937#line 9938 "configure"
ab9b9eab 9938#include "confdefs.h"
698dcdb6
VZ
9939
9940int main() {
9941${x_direct_test_function}()
9942; return 0; }
9943EOF
2389f33b 9944if { (eval echo configure:9945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9945 rm -rf conftest*
9946 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
9947# We can link X programs with no special library path.
9948ac_x_libraries=
9949else
698dcdb6
VZ
9950 echo "configure: failed program was:" >&5
9951 cat conftest.$ac_ext >&5
9952 rm -rf conftest*
9953 LIBS="$ac_save_LIBS"
9954# First see if replacing the include by lib works.
9955# Check X11 before X11Rn because it is often a symlink to the current release.
9956for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9957 /usr/X11/lib \
9958 /usr/X11R6/lib \
9959 /usr/X11R5/lib \
9960 /usr/X11R4/lib \
9961 \
9962 /usr/lib/X11 \
9963 /usr/lib/X11R6 \
9964 /usr/lib/X11R5 \
9965 /usr/lib/X11R4 \
9966 \
9967 /usr/local/X11/lib \
9968 /usr/local/X11R6/lib \
9969 /usr/local/X11R5/lib \
9970 /usr/local/X11R4/lib \
9971 \
9972 /usr/local/lib/X11 \
9973 /usr/local/lib/X11R6 \
9974 /usr/local/lib/X11R5 \
9975 /usr/local/lib/X11R4 \
9976 \
9977 /usr/X386/lib \
9978 /usr/x386/lib \
9979 /usr/XFree86/lib/X11 \
9980 \
9981 /usr/lib \
9982 /usr/local/lib \
9983 /usr/unsupported/lib \
9984 /usr/athena/lib \
9985 /usr/local/x11r5/lib \
9986 /usr/lpp/Xamples/lib \
9987 /lib/usr/lib/X11 \
9988 \
9989 /usr/openwin/lib \
9990 /usr/openwin/share/lib \
9991 ; \
ab9b9eab
VZ
9992do
9993 for ac_extension in a so sl; do
698dcdb6 9994 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
9995 ac_x_libraries=$ac_dir
9996 break 2
10f2d63a 9997 fi
10f2d63a 9998 done
ab9b9eab
VZ
9999done
10000fi
698dcdb6
VZ
10001rm -f conftest*
10002fi # $ac_x_libraries = NO
10f2d63a 10003
698dcdb6 10004if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
10005 # Didn't find X anywhere. Cache the known absence of X.
10006 ac_cv_have_x="have_x=no"
10007else
10008 # Record where we found X for the cache.
10009 ac_cv_have_x="have_x=yes \
10010 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10011fi
10012fi
10f2d63a 10013 fi
ab9b9eab
VZ
10014 eval "$ac_cv_have_x"
10015fi # $with_x != no
10f2d63a 10016
ab9b9eab 10017if test "$have_x" != yes; then
698dcdb6 10018 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
10019 no_x=yes
10020else
10021 # If each of the values was on the command line, it overrides each guess.
10022 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10023 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10024 # Update the cache value to reflect the command line values.
10025 ac_cv_have_x="have_x=yes \
10026 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 10027 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 10028fi
10f2d63a 10029
ab9b9eab
VZ
10030if test "$no_x" = yes; then
10031 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 10032 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
10033#define X_DISPLAY_MISSING 1
10034EOF
10f2d63a 10035
ab9b9eab
VZ
10036 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10037else
10038 if test -n "$x_includes"; then
10039 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
10040 fi
10041
ab9b9eab
VZ
10042 # It would also be nice to do this for all -L options, not just this one.
10043 if test -n "$x_libraries"; then
10044 X_LIBS="$X_LIBS -L$x_libraries"
10045 # For Solaris; some versions of Sun CC require a space after -R and
10046 # others require no space. Words are not sufficient . . . .
698dcdb6 10047 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 10048 "SunOS 5"*)
698dcdb6 10049 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
2389f33b 10050echo "configure:10051: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
10051 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
10052 cat > conftest.$ac_ext <<EOF
2389f33b 10053#line 10054 "configure"
ab9b9eab 10054#include "confdefs.h"
10f2d63a 10055
698dcdb6 10056int main() {
788deba1 10057
698dcdb6
VZ
10058; return 0; }
10059EOF
2389f33b 10060if { (eval echo configure:10061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10061 rm -rf conftest*
ab9b9eab
VZ
10062 ac_R_nospace=yes
10063else
698dcdb6
VZ
10064 echo "configure: failed program was:" >&5
10065 cat conftest.$ac_ext >&5
10066 rm -rf conftest*
10067 ac_R_nospace=no
ab9b9eab 10068fi
698dcdb6 10069rm -f conftest*
ab9b9eab 10070 if test $ac_R_nospace = yes; then
698dcdb6 10071 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10072 X_LIBS="$X_LIBS -R$x_libraries"
10073 else
10074 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 10075 cat > conftest.$ac_ext <<EOF
2389f33b 10076#line 10077 "configure"
ab9b9eab 10077#include "confdefs.h"
788deba1 10078
698dcdb6 10079int main() {
ab9b9eab 10080
698dcdb6
VZ
10081; return 0; }
10082EOF
2389f33b 10083if { (eval echo configure:10084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10084 rm -rf conftest*
ab9b9eab
VZ
10085 ac_R_space=yes
10086else
698dcdb6
VZ
10087 echo "configure: failed program was:" >&5
10088 cat conftest.$ac_ext >&5
10089 rm -rf conftest*
10090 ac_R_space=no
ab9b9eab 10091fi
698dcdb6 10092rm -f conftest*
ab9b9eab 10093 if test $ac_R_space = yes; then
698dcdb6 10094 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
10095 X_LIBS="$X_LIBS -R $x_libraries"
10096 else
698dcdb6 10097 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
10098 fi
10099 fi
698dcdb6 10100 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
10101 esac
10102 fi
10103
10104 # Check for system-dependent libraries X programs must link with.
10105 # Do this before checking for the system-independent R6 libraries
10106 # (-lICE), since we may need -lsocket or whatever for X linking.
10107
10108 if test "$ISC" = yes; then
10109 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10110 else
698dcdb6
VZ
10111 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10112 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 10113 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 10114 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
2389f33b 10115echo "configure:10116: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
10116ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10117if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10118 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10119else
698dcdb6 10120 ac_save_LIBS="$LIBS"
ab9b9eab 10121LIBS="-ldnet $LIBS"
698dcdb6 10122cat > conftest.$ac_ext <<EOF
2389f33b 10123#line 10124 "configure"
ab9b9eab
VZ
10124#include "confdefs.h"
10125/* Override any gcc2 internal prototype to avoid an error. */
10126/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10127 builtin and then its argument prototype would still apply. */
10128char dnet_ntoa();
10129
10130int main() {
10131dnet_ntoa()
10132; return 0; }
10133EOF
2389f33b 10134if { (eval echo configure:10135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10135 rm -rf conftest*
10136 eval "ac_cv_lib_$ac_lib_var=yes"
10137else
10138 echo "configure: failed program was:" >&5
10139 cat conftest.$ac_ext >&5
10140 rm -rf conftest*
10141 eval "ac_cv_lib_$ac_lib_var=no"
10142fi
10143rm -f conftest*
10144LIBS="$ac_save_LIBS"
10145
10146fi
10147if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10148 echo "$ac_t""yes" 1>&6
ab9b9eab 10149 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
10150else
10151 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10152fi
10153
10154 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 10155 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2389f33b 10156echo "configure:10157: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
10157ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10158if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10159 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10160else
698dcdb6 10161 ac_save_LIBS="$LIBS"
ab9b9eab 10162LIBS="-ldnet_stub $LIBS"
698dcdb6 10163cat > conftest.$ac_ext <<EOF
2389f33b 10164#line 10165 "configure"
ab9b9eab
VZ
10165#include "confdefs.h"
10166/* Override any gcc2 internal prototype to avoid an error. */
10167/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10168 builtin and then its argument prototype would still apply. */
10169char dnet_ntoa();
10170
10171int main() {
10172dnet_ntoa()
10173; return 0; }
10174EOF
2389f33b 10175if { (eval echo configure:10176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10176 rm -rf conftest*
10177 eval "ac_cv_lib_$ac_lib_var=yes"
10178else
10179 echo "configure: failed program was:" >&5
10180 cat conftest.$ac_ext >&5
10181 rm -rf conftest*
10182 eval "ac_cv_lib_$ac_lib_var=no"
10183fi
10184rm -f conftest*
10185LIBS="$ac_save_LIBS"
10186
10187fi
10188if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10189 echo "$ac_t""yes" 1>&6
ab9b9eab 10190 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
10191else
10192 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10193fi
10194
10195 fi
10196
10197 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10198 # to get the SysV transport functions.
698dcdb6 10199 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
10200 # needs -lnsl.
10201 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
10202 # on Irix 5.2, according to dickey@clark.net.
10203 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2389f33b 10204echo "configure:10205: checking for gethostbyname" >&5
698dcdb6
VZ
10205if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10206 echo $ac_n "(cached) $ac_c" 1>&6
10207else
10208 cat > conftest.$ac_ext <<EOF
2389f33b 10209#line 10210 "configure"
ab9b9eab
VZ
10210#include "confdefs.h"
10211/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10212 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
10213#include <assert.h>
10214/* Override any gcc2 internal prototype to avoid an error. */
10215/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10216 builtin and then its argument prototype would still apply. */
10217char gethostbyname();
10218
10219int main() {
ab9b9eab
VZ
10220
10221/* The GNU C library defines this for functions which it implements
10222 to always fail with ENOSYS. Some functions are actually named
10223 something starting with __ and the normal name is an alias. */
10224#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10225choke me
10226#else
698dcdb6 10227gethostbyname();
ab9b9eab
VZ
10228#endif
10229
698dcdb6
VZ
10230; return 0; }
10231EOF
2389f33b 10232if { (eval echo configure:10233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10233 rm -rf conftest*
10234 eval "ac_cv_func_gethostbyname=yes"
10235else
10236 echo "configure: failed program was:" >&5
10237 cat conftest.$ac_ext >&5
10238 rm -rf conftest*
10239 eval "ac_cv_func_gethostbyname=no"
10240fi
10241rm -f conftest*
10242fi
10243
10244if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10245 echo "$ac_t""yes" 1>&6
10246 :
10247else
10248 echo "$ac_t""no" 1>&6
10249fi
ab9b9eab
VZ
10250
10251 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 10252 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2389f33b 10253echo "configure:10254: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
10254ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10255if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10256 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10257else
698dcdb6 10258 ac_save_LIBS="$LIBS"
ab9b9eab 10259LIBS="-lnsl $LIBS"
698dcdb6 10260cat > conftest.$ac_ext <<EOF
2389f33b 10261#line 10262 "configure"
ab9b9eab
VZ
10262#include "confdefs.h"
10263/* Override any gcc2 internal prototype to avoid an error. */
10264/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10265 builtin and then its argument prototype would still apply. */
10266char gethostbyname();
6232543b 10267
698dcdb6
VZ
10268int main() {
10269gethostbyname()
10270; return 0; }
10271EOF
2389f33b 10272if { (eval echo configure:10273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10273 rm -rf conftest*
10274 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 10275else
698dcdb6
VZ
10276 echo "configure: failed program was:" >&5
10277 cat conftest.$ac_ext >&5
10278 rm -rf conftest*
10279 eval "ac_cv_lib_$ac_lib_var=no"
10280fi
10281rm -f conftest*
10282LIBS="$ac_save_LIBS"
1e487827 10283
698dcdb6
VZ
10284fi
10285if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10286 echo "$ac_t""yes" 1>&6
10287 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10288else
10289 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10290fi
10291
10292 fi
10293
10294 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10295 # socket/setsockopt and other routines are undefined under SCO ODT
10296 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
10297 # on later versions), says simon@lia.di.epfl.ch: it contains
10298 # gethostby* variants that don't use the nameserver (or something).
10299 # -lsocket must be given before -lnsl if both are needed.
10300 # We assume that if connect needs -lnsl, so does gethostbyname.
10301 echo $ac_n "checking for connect""... $ac_c" 1>&6
2389f33b 10302echo "configure:10303: checking for connect" >&5
698dcdb6
VZ
10303if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
10304 echo $ac_n "(cached) $ac_c" 1>&6
10305else
10306 cat > conftest.$ac_ext <<EOF
2389f33b 10307#line 10308 "configure"
ab9b9eab
VZ
10308#include "confdefs.h"
10309/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10310 which can conflict with char connect(); below. */
ab9b9eab
VZ
10311#include <assert.h>
10312/* Override any gcc2 internal prototype to avoid an error. */
10313/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10314 builtin and then its argument prototype would still apply. */
10315char connect();
10316
10317int main() {
ab9b9eab
VZ
10318
10319/* The GNU C library defines this for functions which it implements
10320 to always fail with ENOSYS. Some functions are actually named
10321 something starting with __ and the normal name is an alias. */
10322#if defined (__stub_connect) || defined (__stub___connect)
10323choke me
10324#else
698dcdb6 10325connect();
ab9b9eab
VZ
10326#endif
10327
698dcdb6
VZ
10328; return 0; }
10329EOF
2389f33b 10330if { (eval echo configure:10331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10331 rm -rf conftest*
10332 eval "ac_cv_func_connect=yes"
10333else
10334 echo "configure: failed program was:" >&5
10335 cat conftest.$ac_ext >&5
10336 rm -rf conftest*
10337 eval "ac_cv_func_connect=no"
10338fi
10339rm -f conftest*
10340fi
10341
10342if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
10343 echo "$ac_t""yes" 1>&6
10344 :
10345else
10346 echo "$ac_t""no" 1>&6
10347fi
ab9b9eab
VZ
10348
10349 if test $ac_cv_func_connect = no; then
698dcdb6 10350 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2389f33b 10351echo "configure:10352: checking for connect in -lsocket" >&5
698dcdb6
VZ
10352ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
10353if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10354 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10355else
698dcdb6 10356 ac_save_LIBS="$LIBS"
ab9b9eab 10357LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 10358cat > conftest.$ac_ext <<EOF
2389f33b 10359#line 10360 "configure"
ab9b9eab
VZ
10360#include "confdefs.h"
10361/* Override any gcc2 internal prototype to avoid an error. */
10362/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10363 builtin and then its argument prototype would still apply. */
10364char connect();
10365
10366int main() {
10367connect()
10368; return 0; }
10369EOF
2389f33b 10370if { (eval echo configure:10371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10371 rm -rf conftest*
10372 eval "ac_cv_lib_$ac_lib_var=yes"
10373else
10374 echo "configure: failed program was:" >&5
10375 cat conftest.$ac_ext >&5
10376 rm -rf conftest*
10377 eval "ac_cv_lib_$ac_lib_var=no"
10378fi
10379rm -f conftest*
10380LIBS="$ac_save_LIBS"
10381
10382fi
10383if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10384 echo "$ac_t""yes" 1>&6
ab9b9eab 10385 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
10386else
10387 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10388fi
10389
10390 fi
10391
698dcdb6
VZ
10392 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
10393 echo $ac_n "checking for remove""... $ac_c" 1>&6
2389f33b 10394echo "configure:10395: checking for remove" >&5
698dcdb6
VZ
10395if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
10396 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10397else
698dcdb6 10398 cat > conftest.$ac_ext <<EOF
2389f33b 10399#line 10400 "configure"
ab9b9eab
VZ
10400#include "confdefs.h"
10401/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10402 which can conflict with char remove(); below. */
ab9b9eab
VZ
10403#include <assert.h>
10404/* Override any gcc2 internal prototype to avoid an error. */
10405/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10406 builtin and then its argument prototype would still apply. */
10407char remove();
10408
10409int main() {
ab9b9eab
VZ
10410
10411/* The GNU C library defines this for functions which it implements
10412 to always fail with ENOSYS. Some functions are actually named
10413 something starting with __ and the normal name is an alias. */
10414#if defined (__stub_remove) || defined (__stub___remove)
10415choke me
10416#else
698dcdb6 10417remove();
ab9b9eab
VZ
10418#endif
10419
698dcdb6
VZ
10420; return 0; }
10421EOF
2389f33b 10422if { (eval echo configure:10423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10423 rm -rf conftest*
10424 eval "ac_cv_func_remove=yes"
10425else
10426 echo "configure: failed program was:" >&5
10427 cat conftest.$ac_ext >&5
10428 rm -rf conftest*
10429 eval "ac_cv_func_remove=no"
10430fi
10431rm -f conftest*
10432fi
10433
10434if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
10435 echo "$ac_t""yes" 1>&6
10436 :
10437else
10438 echo "$ac_t""no" 1>&6
10439fi
ab9b9eab
VZ
10440
10441 if test $ac_cv_func_remove = no; then
698dcdb6 10442 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2389f33b 10443echo "configure:10444: checking for remove in -lposix" >&5
698dcdb6
VZ
10444ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
10445if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10446 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10447else
698dcdb6 10448 ac_save_LIBS="$LIBS"
ab9b9eab 10449LIBS="-lposix $LIBS"
698dcdb6 10450cat > conftest.$ac_ext <<EOF
2389f33b 10451#line 10452 "configure"
ab9b9eab
VZ
10452#include "confdefs.h"
10453/* Override any gcc2 internal prototype to avoid an error. */
10454/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10455 builtin and then its argument prototype would still apply. */
10456char remove();
10457
10458int main() {
10459remove()
10460; return 0; }
10461EOF
2389f33b 10462if { (eval echo configure:10463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10463 rm -rf conftest*
10464 eval "ac_cv_lib_$ac_lib_var=yes"
10465else
10466 echo "configure: failed program was:" >&5
10467 cat conftest.$ac_ext >&5
10468 rm -rf conftest*
10469 eval "ac_cv_lib_$ac_lib_var=no"
10470fi
10471rm -f conftest*
10472LIBS="$ac_save_LIBS"
10473
10474fi
10475if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10476 echo "$ac_t""yes" 1>&6
ab9b9eab 10477 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
10478else
10479 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10480fi
10481
10482 fi
10483
10484 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 10485 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2389f33b 10486echo "configure:10487: checking for shmat" >&5
698dcdb6
VZ
10487if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
10488 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10489else
698dcdb6 10490 cat > conftest.$ac_ext <<EOF
2389f33b 10491#line 10492 "configure"
ab9b9eab
VZ
10492#include "confdefs.h"
10493/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10494 which can conflict with char shmat(); below. */
ab9b9eab
VZ
10495#include <assert.h>
10496/* Override any gcc2 internal prototype to avoid an error. */
10497/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10498 builtin and then its argument prototype would still apply. */
10499char shmat();
10500
10501int main() {
ab9b9eab
VZ
10502
10503/* The GNU C library defines this for functions which it implements
10504 to always fail with ENOSYS. Some functions are actually named
10505 something starting with __ and the normal name is an alias. */
10506#if defined (__stub_shmat) || defined (__stub___shmat)
10507choke me
10508#else
698dcdb6 10509shmat();
ab9b9eab
VZ
10510#endif
10511
698dcdb6
VZ
10512; return 0; }
10513EOF
2389f33b 10514if { (eval echo configure:10515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10515 rm -rf conftest*
10516 eval "ac_cv_func_shmat=yes"
10517else
10518 echo "configure: failed program was:" >&5
10519 cat conftest.$ac_ext >&5
10520 rm -rf conftest*
10521 eval "ac_cv_func_shmat=no"
10522fi
10523rm -f conftest*
10524fi
10525
10526if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
10527 echo "$ac_t""yes" 1>&6
10528 :
10529else
10530 echo "$ac_t""no" 1>&6
10531fi
ab9b9eab
VZ
10532
10533 if test $ac_cv_func_shmat = no; then
698dcdb6 10534 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2389f33b 10535echo "configure:10536: checking for shmat in -lipc" >&5
698dcdb6
VZ
10536ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
10537if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10538 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10539else
698dcdb6 10540 ac_save_LIBS="$LIBS"
ab9b9eab 10541LIBS="-lipc $LIBS"
698dcdb6 10542cat > conftest.$ac_ext <<EOF
2389f33b 10543#line 10544 "configure"
ab9b9eab
VZ
10544#include "confdefs.h"
10545/* Override any gcc2 internal prototype to avoid an error. */
10546/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10547 builtin and then its argument prototype would still apply. */
10548char shmat();
10549
10550int main() {
10551shmat()
10552; return 0; }
10553EOF
2389f33b 10554if { (eval echo configure:10555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10555 rm -rf conftest*
10556 eval "ac_cv_lib_$ac_lib_var=yes"
10557else
10558 echo "configure: failed program was:" >&5
10559 cat conftest.$ac_ext >&5
10560 rm -rf conftest*
10561 eval "ac_cv_lib_$ac_lib_var=no"
10562fi
10563rm -f conftest*
10564LIBS="$ac_save_LIBS"
10565
10566fi
10567if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10568 echo "$ac_t""yes" 1>&6
ab9b9eab 10569 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
10570else
10571 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10572fi
10573
10574 fi
10575 fi
10576
10577 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 10578 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
10579 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10580 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10581 # check for ICE first), but we must link in the order -lSM -lICE or
10582 # we get undefined symbols. So assume we have SM if we have ICE.
10583 # These have to be linked with before -lX11, unlike the other
10584 # libraries we check for below, so use a different variable.
698dcdb6
VZ
10585 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10586 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2389f33b 10587echo "configure:10588: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
10588ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10589if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10590 echo $ac_n "(cached) $ac_c" 1>&6
10591else
10592 ac_save_LIBS="$LIBS"
ab9b9eab 10593LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 10594cat > conftest.$ac_ext <<EOF
2389f33b 10595#line 10596 "configure"
ab9b9eab
VZ
10596#include "confdefs.h"
10597/* Override any gcc2 internal prototype to avoid an error. */
10598/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10599 builtin and then its argument prototype would still apply. */
10600char IceConnectionNumber();
10601
10602int main() {
10603IceConnectionNumber()
10604; return 0; }
10605EOF
2389f33b 10606if { (eval echo configure:10607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10607 rm -rf conftest*
10608 eval "ac_cv_lib_$ac_lib_var=yes"
10609else
10610 echo "configure: failed program was:" >&5
10611 cat conftest.$ac_ext >&5
10612 rm -rf conftest*
10613 eval "ac_cv_lib_$ac_lib_var=no"
10614fi
10615rm -f conftest*
10616LIBS="$ac_save_LIBS"
10617
10618fi
10619if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10620 echo "$ac_t""yes" 1>&6
ab9b9eab 10621 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
10622else
10623 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10624fi
10625
698dcdb6 10626 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
10627
10628fi
10629
1e6feb95
VZ
10630 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10631 LDFLAGS="$LDFLAGS $X_LIBS"
ab9b9eab 10632
1e6feb95
VZ
10633 if test "$wxUSE_MOTIF" = 1; then
10634 if test "$no_x" = "yes"; then
10635 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10636 fi
ab9b9eab 10637
1e6feb95
VZ
10638 GUI_TK_LIBRARY="$X_LIBS"
10639 TOOLKIT_INCLUDE="$X_CFLAGS"
ab9b9eab 10640
1e6feb95 10641 AFMINSTALL=afminstall
dad6c0ea 10642
1e6feb95
VZ
10643
10644 COMPILED_X_PROGRAM=0
cd6d6d5b 10645
1e6feb95 10646 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
2389f33b 10647echo "configure:10648: checking for Motif/Lesstif headers" >&5
1e6feb95 10648
ab9b9eab
VZ
10649ac_find_includes=
10650for ac_dir in $SEARCH_INCLUDE;
10651 do
10652 if test -f "$ac_dir/Xm/Xm.h"; then
10653 ac_find_includes=$ac_dir
10654 break
10655 fi
10656 done
10657
1e6feb95
VZ
10658 if test "$ac_find_includes" != "" ; then
10659 echo "$ac_t""found $ac_find_includes" 1>&6
10660 else
10661 cat > conftest.$ac_ext <<EOF
2389f33b 10662#line 10663 "configure"
cd6d6d5b
VZ
10663#include "confdefs.h"
10664
1e6feb95
VZ
10665 #include <Xm/Xm.h>
10666
698dcdb6 10667int main() {
cd6d6d5b 10668
1e6feb95 10669 int version;
cd6d6d5b 10670
1e6feb95
VZ
10671 version = xmUseVersion;
10672
698dcdb6
VZ
10673; return 0; }
10674EOF
2389f33b 10675if { (eval echo configure:10676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10676 rm -rf conftest*
10677
1e6feb95
VZ
10678 echo "$ac_t""found in default search path" 1>&6
10679 COMPILED_X_PROGRAM=1
10680
cd6d6d5b 10681else
698dcdb6
VZ
10682 echo "configure: failed program was:" >&5
10683 cat conftest.$ac_ext >&5
10684 rm -rf conftest*
10685
1e6feb95
VZ
10686 echo "$ac_t""no" 1>&6
10687 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10688
698dcdb6 10689
cd6d6d5b 10690fi
698dcdb6 10691rm -f conftest*
1e6feb95 10692 fi
ab9b9eab 10693
1e6feb95
VZ
10694 if test "$COMPILED_X_PROGRAM" = 0; then
10695 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
2389f33b 10696echo "configure:10697: checking for Motif/Lesstif library" >&5
1e6feb95 10697
ab9b9eab
VZ
10698ac_find_libraries=
10699for ac_dir in $SEARCH_LIB;
10700 do
f11bdd03 10701 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
10702 if test -f "$ac_dir/libXm.$ac_extension"; then
10703 ac_find_libraries=$ac_dir
10704 break 2
10705 fi
10706 done
10707 done
10708
1e6feb95
VZ
10709 if test "$ac_find_libraries" != "" ; then
10710
ab9b9eab
VZ
10711 ac_path_to_include=$ac_find_includes
10712 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10713 result=$?
10714 if test $result = 0; then
10715 ac_path_to_include=""
10716 else
10717 ac_path_to_include="-I$ac_find_includes"
10718 fi
10719
1e6feb95 10720
ab9b9eab
VZ
10721 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10722 result=$?
10723 if test $result = 0; then
10724 ac_path_to_link=""
10725 else
10726 ac_path_to_link="-L$ac_find_libraries"
10727 fi
10728
698dcdb6 10729
1e6feb95
VZ
10730 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10731 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10732 echo "$ac_t""found at $ac_find_libraries" 1>&6
10733 else
10734 cat > conftest.$ac_ext <<EOF
2389f33b 10735#line 10736 "configure"
cd6d6d5b 10736#include "confdefs.h"
ab9b9eab 10737
1e6feb95
VZ
10738 #include <Xm/Xm.h>
10739
698dcdb6 10740int main() {
ab9b9eab 10741
1e6feb95 10742 int version;
ab9b9eab 10743
1e6feb95
VZ
10744 version = xmUseVersion;
10745
698dcdb6
VZ
10746; return 0; }
10747EOF
2389f33b 10748if { (eval echo configure:10749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10749 rm -rf conftest*
10750
1e6feb95
VZ
10751 echo "$ac_t""found in default search path" 1>&6
10752 COMPILED_X_PROGRAM=1
10753
cd6d6d5b 10754else
698dcdb6
VZ
10755 echo "configure: failed program was:" >&5
10756 cat conftest.$ac_ext >&5
10757 rm -rf conftest*
10758
1e6feb95
VZ
10759 echo "$ac_t""no" 1>&6
10760 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10761
698dcdb6 10762
cd6d6d5b 10763fi
698dcdb6 10764rm -f conftest*
1e6feb95 10765 fi
cd6d6d5b 10766 fi
ab9b9eab 10767
1e6feb95
VZ
10768
10769 XPM_LINK=""
10770 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
2389f33b 10771echo "configure:10772: checking for Xpm library" >&5
1e6feb95 10772
ab9b9eab
VZ
10773ac_find_libraries=
10774for ac_dir in $SEARCH_LIB;
10775 do
f11bdd03 10776 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
10777 if test -f "$ac_dir/libXpm.$ac_extension"; then
10778 ac_find_libraries=$ac_dir
10779 break 2
10780 fi
10781 done
10782 done
10783
1e6feb95
VZ
10784 if test "$ac_find_libraries" != "" ; then
10785
ab9b9eab
VZ
10786 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10787 result=$?
10788 if test $result = 0; then
10789 ac_path_to_link=""
10790 else
10791 ac_path_to_link="-L$ac_find_libraries"
10792 fi
10793
1e6feb95
VZ
10794 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10795 XPM_LINK="-lXpm "
10796 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
10797#define wxHAVE_LIB_XPM 1
10798EOF
10799
1e6feb95
VZ
10800 echo "$ac_t""found at $ac_find_libraries" 1>&6
10801 else
10802 cat > conftest.$ac_ext <<EOF
2389f33b 10803#line 10804 "configure"
cd6d6d5b
VZ
10804#include "confdefs.h"
10805
1e6feb95
VZ
10806 #include <X11/xpm.h>
10807
698dcdb6 10808int main() {
cd6d6d5b 10809
1e6feb95 10810 int version;
cd6d6d5b 10811
1e6feb95
VZ
10812 version = XpmLibraryVersion();
10813
698dcdb6
VZ
10814; return 0; }
10815EOF
2389f33b 10816if { (eval echo configure:10817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10817 rm -rf conftest*
10818
1e6feb95
VZ
10819 XPM_LINK="-lXpm "
10820 cat >> confdefs.h <<\EOF
3ace2e6d
SN
10821#define wxHAVE_LIB_XPM 1
10822EOF
10823
1e6feb95
VZ
10824 echo "$ac_t""found in default search path" 1>&6
10825 COMPILED_X_PROGRAM=0
10826
cd6d6d5b 10827else
698dcdb6
VZ
10828 echo "configure: failed program was:" >&5
10829 cat conftest.$ac_ext >&5
10830 rm -rf conftest*
10831
1e6feb95
VZ
10832 echo "$ac_t""no" 1>&6
10833 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10834
698dcdb6 10835
cd6d6d5b 10836fi
698dcdb6 10837rm -f conftest*
1e6feb95
VZ
10838 fi
10839
10840 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
10841 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
10842 TOOLKIT=MOTIF
10843 GUIDIST=MOTIF_DIST
ab9b9eab
VZ
10844 fi
10845
1e6feb95
VZ
10846 if test "$wxUSE_MAC" = 1; then
10847 TOOLKIT=MAC
10848 GUIDIST=MACX_DIST
10849 fi
10f2d63a 10850
1e6feb95
VZ
10851 if test "$wxUSE_PM" = 1; then
10852 TOOLKIT=PM
10853 GUIDIST=GTK_DIST
10854 fi
b4085ce6 10855
1e6feb95
VZ
10856 if test "$TOOLKIT" != "PM" ; then
10857 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10858 else
10859 TOOLKIT_DIR="os2"
10860 fi
e07802fc 10861
1e6feb95 10862 TOOLKIT_NAME="${TOOLKIT_DIR}"
10f2d63a 10863
1e6feb95
VZ
10864 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10865
10866 if test "$TOOLKIT_NAME" = "motif"; then
10867 TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10868 fi
10869
10870 if test "$wxUSE_UNIVERSAL" = "yes"; then
10871 TOOLKIT_NAME="${TOOLKIT_NAME}univ"
10872 UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
10873 TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}"
10874 SETUPH_DIR="univ"
f6bcfd97 10875 else
1e6feb95
VZ
10876 SETUPH_DIR="${TOOLKIT_DIR}"
10877 fi
10878
10879 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10880 TOOLKIT_NAME="${TOOLKIT_NAME}d"
f6bcfd97
BP
10881 fi
10882
2224580a 10883 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
1e6feb95
VZ
10884 if test "$wxUSE_UNIVERSAL" = "yes"; then
10885 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__"
10886 fi
10f2d63a 10887
f6bcfd97 10888 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10f2d63a 10889
1e6feb95
VZ
10890 if test "$wxUSE_UNIVERSAL" = "yes"; then
10891 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10892 else
10893 ALL_OBJECTS="\$(GUIOBJS)"
10894 fi
10895
10896 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10897
10898 if test "$TOOLKIT" != "MSW"; then
10899 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10900 fi
10901
10902 if test "$wxUSE_HTML" = "yes"; then
10903 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10904 fi
3fcdd07b 10905
1e6feb95
VZ
10906 if test "$TOOLKIT" != "MSW"; then
10907 if test "$wxUSE_ODBC" = "yes" ; then
10908 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10909 fi
3fcdd07b
VZ
10910 fi
10911
831b3152
VZ
10912 if test "x$REGEX_INCLUDE" != "x" ; then
10913 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10914 fi
10915
d9d8273d 10916 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 10917 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
10918 fi
10919 if test "$wxUSE_LIBTIFF" = "yes" ; then
10920 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10921 fi
10922 if test "$wxUSE_LIBPNG" = "yes" ; then
10923 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10924 fi
10925 if test "$wxUSE_ZLIB" = "yes" ; then
10926 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10927 fi
3fed1840
RR
10928 if test "$wxUSE_FREETYPE" = "yes" ; then
10929 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10930 fi
2224580a 10931
1e6feb95
VZ
10932 if test "$wxUSE_UNIVERSAL" = "yes"; then
10933 ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)"
10934 else
10935 ALL_DEPFILES="\$(GUIDEPS)"
10936 fi
10937
10938 ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)"
10939
10940 if test "$TOOLKIT" != "MSW"; then
10941 ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)"
10942 fi
10943
10944 if test "$wxUSE_HTML" = "yes"; then
10945 ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)"
10946 fi
10947
879df073 10948 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
1e6feb95 10949 if test "$wxUSE_UNIVERSAL" = "yes"; then
879df073 10950 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
1e6feb95 10951 fi
2224580a
VZ
10952 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10953 RPM_SPEC="wx\$(TOOLKIT).spec"
10954
10955 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10956 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 10957else
dad6c0ea
VZ
10958 USE_GUI=0
10959
f6bcfd97
BP
10960 TOOLKIT_DIR="base"
10961
0b2effe9
VZ
10962 TOOLKIT_VPATH="."
10963
f6bcfd97
BP
10964 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10965 TOOLKIT_NAME="${TOOLKIT_DIR}d"
10966 else
10967 TOOLKIT_NAME="${TOOLKIT_DIR}"
10968 fi
10969
07eb77a6
RL
10970 TOOLKIT_DEF="-D__WXBASE__"
10971
b4085ce6
GD
10972 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
10973 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10f2d63a 10974
0b2effe9
VZ
10975 if test "x$REGEX_INCLUDE" != "x" ; then
10976 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10977 fi
10978
a20b6d3a
VZ
10979 if test "$wxUSE_ZLIB" = "yes" ; then
10980 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10981 fi
10982
f6bcfd97 10983 WX_LIBRARY="wx_${TOOLKIT_NAME}"
2224580a 10984
831b3152 10985 PORT_FILES="\${top_srcdir}/src/files.lst"
2224580a
VZ
10986 RPM_FILES="src/rpmfiles.lst"
10987 RPM_SPEC="wxBase.spec"
10988
10989 GUIDIST="BASE_DIST"
10990 DISTDIR="wxBase"
10f2d63a
VZ
10991fi
10992
10993WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
bdad4e7e 10994WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10f2d63a
VZ
10995
10996WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
bdad4e7e 10997WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10f2d63a 10998
18dbb1f6
VZ
10999case "${host}" in
11000 *-*-mingw32* )
11001 WX_LIBRARY_NAME_SHARED="wx${WX_MAJOR_VERSION_NUMBER}${WX_MINOR_VERSION_NUMBER}_${WX_RELEASE_NUMBER}.dll"
11002 ;;
11003 * )
11004 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11005 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11006 ;;
11007esac
10f2d63a
VZ
11008
11009WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
11010WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
11011WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
bdad4e7e
RR
11012WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
11013WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
11014WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10f2d63a
VZ
11015
11016SHARED_LD=
11017PIC_FLAG=
11018WX_ALL=
11019WX_ALL_INSTALLED=
1d62a8b4 11020BURNT_LIBRARY_NAME=
f6bcfd97 11021WX_TARGET_LIBRARY_SONAME=
10f2d63a 11022
698dcdb6 11023
10f2d63a
VZ
11024if test "$wxUSE_SHARED" = "yes"; then
11025 case "${host}" in
11026 *-hp-hpux* )
11027 if test "$GCC" = yes ; then
6b076b40 11028 SHARED_LD="${CXX} -shared -fPIC -o"
10f2d63a
VZ
11029 PIC_FLAG="-fPIC"
11030 else
f6bcfd97
BP
11031 LDFLAGS="-L/usr/lib"
11032
10f2d63a
VZ
11033 SHARED_LD="${CXX} -b -o"
11034 PIC_FLAG="+Z"
11035 fi
f6bcfd97
BP
11036 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
11037 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
c661ecca 11038 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 11039 WX_ALL_INSTALLED="preinstall_gl"
c661ecca
RR
11040 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
11041 else
11042 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
11043 fi
10f2d63a 11044 ;;
b12915c1
VZ
11045
11046 *-*-linux* )
6b076b40 11047 SHARED_LD="${CXX} -shared -o"
10f2d63a 11048 PIC_FLAG="-fPIC"
00cf1208 11049 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 11050 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
bdad4e7e 11051 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 11052 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 11053 fi
c661ecca
RR
11054 if test "$wxUSE_OPENGL" = "yes"; then
11055 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11056 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11057 else
11058 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11059 WX_ALL="CREATE_LINKS"
422107f9 11060 fi
00cf1208 11061 ;;
10f2d63a
VZ
11062 *-*-irix5* | *-*-irix6* )
11063 if test "$GCC" = yes ; then
6b076b40 11064 SHARED_LD="${CXX} -shared -o"
10f2d63a
VZ
11065 PIC_FLAG="-fPIC"
11066 else
11067 SHARED_LD="${CXX} -shared -o"
11068 fi
c661ecca
RR
11069 if test "$wxUSE_OPENGL" = "yes"; then
11070 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11071 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11072 else
11073 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11074 WX_ALL="CREATE_LINKS"
422107f9 11075 fi
10f2d63a
VZ
11076 ;;
11077 *-*-solaris2* )
11078 if test "$GCC" = yes ; then
6b076b40 11079 SHARED_LD="${CXX} -shared -o"
10f2d63a 11080 PIC_FLAG="-fPIC"
f6bcfd97
BP
11081
11082 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
11083 else
11084 SHARED_LD="${CXX} -G -o"
11085 PIC_FLAG="-KPIC"
11086 fi
c661ecca
RR
11087 if test "$wxUSE_OPENGL" = "yes"; then
11088 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11089 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11090 else
11091 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11092 WX_ALL="CREATE_LINKS"
11093 fi
10f2d63a
VZ
11094 ;;
11095 *-*-sunos4* )
6b076b40 11096 SHARED_LD="${CXX} -shared -o"
10f2d63a
VZ
11097 PIC_FLAG="-fPIC"
11098 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11099 WX_ALL="CREATE_LINKS"
11100 ;;
95c8801c 11101 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
6b076b40 11102 SHARED_LD="${CXX} -shared -o"
10f2d63a 11103 PIC_FLAG="-fPIC"
37d403aa
JS
11104 if test "$wxUSE_OPENGL" = "yes"; then
11105 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11106 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11107 else
11108 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11109 WX_ALL="CREATE_LINKS"
11110 fi
10f2d63a 11111 ;;
b4085ce6 11112 *-*-darwin* )
a3cb1afc
VZ
11113 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__DARWIN__ -D__POWERPC__"
11114 CPPFLAGS="${CPPFLAGS} -fno-common"
ea5999b9
GD
11115 SHARED_LD="${CXX} -dynamiclib -o"
11116 PIC_FLAG="-dynamic -fPIC"
b4085ce6
GD
11117 if test "$wxUSE_OPENGL" = "yes"; then
11118 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11119 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11120 else
11121 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11122 WX_ALL="CREATE_LINKS"
11123 fi
a3cb1afc
VZ
11124 if test "$wxUSE_MAC" = 1 ; then
11125 WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
11126 fi
1e6feb95
VZ
11127 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11128 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11129 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
11130 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
11131 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
11132 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
11133 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
11134 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
b4085ce6 11135 ;;
10f2d63a
VZ
11136 *-*-osf* )
11137 SHARED_LD="${CXX} -shared -o"
11138 PIC_FLAG="-fPIC"
11139 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11140 WX_ALL="CREATE_LINKS"
11141 ;;
11142 *-*-dgux5* )
11143 SHARED_LD="${CXX} -shared -o"
11144 PIC_FLAG="-fPIC"
11145 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11146 WX_ALL="CREATE_LINKS"
11147 ;;
11148 *-*-sysv5* )
6b076b40 11149 SHARED_LD="${CXX} -shared -o"
10f2d63a
VZ
11150 PIC_FLAG="-fPIC"
11151 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11152 WX_ALL="CREATE_LINKS"
11153 ;;
11154 *-*-aix* )
11155 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
11156 WX_ALL=${WX_LIBRARY_NAME_SHARED}
11157 ;;
1c8183e2 11158 *-*-cygwin* )
10f2d63a 11159 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 11160 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
11161 if test "$wxUSE_OPENGL" = "yes"; then
11162 WX_ALL_INSTALLED="preinstall_gl"
11163 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
11164 else
11165 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
11166 fi
10f2d63a 11167 ;;
b12915c1 11168 *-*-mingw32* )
18dbb1f6
VZ
11169 WX_LIBRARY_NAME_STATIC="lib/libwx${WX_MAJOR_VERSION_NUMBER}${WX_MINOR_VERSION_NUMBER}_${WX_RELEASE_NUMBER}.a"
11170 SHARED_LD="${CC} -shared -Wl,--out-implib,${WX_LIBRARY_NAME_STATIC} -o"
11171 TOOLKIT_DEF="${TOOLKIT_DEF} -DWXUSINGDLL=1"
11172 WXMSW_DLL_DEFINES="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
11173 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
11174 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
f6bcfd97
BP
11175 if test "$wxUSE_OPENGL" = "yes"; then
11176 WX_ALL_INSTALLED="preinstall_gl"
18dbb1f6 11177 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
f6bcfd97 11178 else
18dbb1f6 11179 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
f6bcfd97 11180 fi
10f2d63a
VZ
11181 ;;
11182 *-pc-os2_emx )
e07802fc
VZ
11183 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11184 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 11185 ;;
b12915c1 11186 *-*-beos* )
e2b8b066 11187 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
11188 PIC_FLAG="-fPIC"
11189 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11190 WX_ALL="CREATE_LINKS"
11191 ;;
10f2d63a 11192 *)
698dcdb6 11193 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
11194 esac
11195
11196 if test "x$WX_TARGET_LIBRARY" = "x"; then
11197 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 11198 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 11199 fi
3711412e 11200 WX_TARGET_LIBRARY_TYPE="so"
10f2d63a
VZ
11201else
11202 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 11203 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
11204
11205 if test "$wxUSE_OPENGL" = "yes"; then
11206 WX_ALL_INSTALLED="preinstall_gl"
11207 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
11208 else
11209 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
11210 fi
11211
11212 if test "$wxUSE_GUI" = "no"; then
11213 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11214 fi
11215
3711412e 11216 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a
VZ
11217fi
11218
698dcdb6
VZ
11219
11220for ac_hdr in strings.h
10f2d63a 11221do
698dcdb6
VZ
11222ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11223echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a3cb1afc 11224echo "configure:11225: checking for $ac_hdr" >&5
698dcdb6
VZ
11225if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11226 echo $ac_n "(cached) $ac_c" 1>&6
11227else
11228 cat > conftest.$ac_ext <<EOF
a3cb1afc 11229#line 11230 "configure"
10f2d63a 11230#include "confdefs.h"
698dcdb6
VZ
11231#include <$ac_hdr>
11232EOF
11233ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a3cb1afc 11234{ (eval echo configure:11235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11235ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11236if test -z "$ac_err"; then
11237 rm -rf conftest*
11238 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11239else
698dcdb6
VZ
11240 echo "$ac_err" >&5
11241 echo "configure: failed program was:" >&5
10f2d63a 11242 cat conftest.$ac_ext >&5
698dcdb6
VZ
11243 rm -rf conftest*
11244 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11245fi
698dcdb6 11246rm -f conftest*
10f2d63a 11247fi
698dcdb6
VZ
11248if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11249 echo "$ac_t""yes" 1>&6
11250 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11251 cat >> confdefs.h <<EOF
11252#define $ac_tr_hdr 1
10f2d63a 11253EOF
698dcdb6
VZ
11254
11255else
11256 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11257fi
11258done
11259
698dcdb6 11260for ac_hdr in stdlib.h
9cfadba2 11261do
698dcdb6
VZ
11262ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11263echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a3cb1afc 11264echo "configure:11265: checking for $ac_hdr" >&5
698dcdb6
VZ
11265if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11266 echo $ac_n "(cached) $ac_c" 1>&6
11267else
11268 cat > conftest.$ac_ext <<EOF
a3cb1afc 11269#line 11270 "configure"
9cfadba2 11270#include "confdefs.h"
698dcdb6
VZ
11271#include <$ac_hdr>
11272EOF
11273ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a3cb1afc 11274{ (eval echo configure:11275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11275ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11276if test -z "$ac_err"; then
11277 rm -rf conftest*
11278 eval "ac_cv_header_$ac_safe=yes"
6232543b 11279else
698dcdb6
VZ
11280 echo "$ac_err" >&5
11281 echo "configure: failed program was:" >&5
9cfadba2 11282 cat conftest.$ac_ext >&5
698dcdb6
VZ
11283 rm -rf conftest*
11284 eval "ac_cv_header_$ac_safe=no"
9cfadba2 11285fi
698dcdb6 11286rm -f conftest*
9cfadba2 11287fi
698dcdb6
VZ
11288if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11289 echo "$ac_t""yes" 1>&6
11290 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11291 cat >> confdefs.h <<EOF
11292#define $ac_tr_hdr 1
9cfadba2 11293EOF
698dcdb6
VZ
11294
11295else
11296 echo "$ac_t""no" 1>&6
9cfadba2
VZ
11297fi
11298done
10f2d63a 11299
698dcdb6 11300for ac_hdr in unistd.h
10f2d63a 11301do
698dcdb6
VZ
11302ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11303echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a3cb1afc 11304echo "configure:11305: checking for $ac_hdr" >&5
698dcdb6
VZ
11305if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11306 echo $ac_n "(cached) $ac_c" 1>&6
11307else
11308 cat > conftest.$ac_ext <<EOF
a3cb1afc 11309#line 11310 "configure"
10f2d63a 11310#include "confdefs.h"
698dcdb6
VZ
11311#include <$ac_hdr>
11312EOF
11313ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a3cb1afc 11314{ (eval echo configure:11315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11315ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11316if test -z "$ac_err"; then
11317 rm -rf conftest*
11318 eval "ac_cv_header_$ac_safe=yes"
6232543b 11319else
698dcdb6
VZ
11320 echo "$ac_err" >&5
11321 echo "configure: failed program was:" >&5
10f2d63a 11322 cat conftest.$ac_ext >&5
698dcdb6
VZ
11323 rm -rf conftest*
11324 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11325fi
698dcdb6 11326rm -f conftest*
10f2d63a 11327fi
698dcdb6
VZ
11328if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11329 echo "$ac_t""yes" 1>&6
11330 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11331 cat >> confdefs.h <<EOF
11332#define $ac_tr_hdr 1
10f2d63a 11333EOF
698dcdb6
VZ
11334
11335else
11336 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11337fi
11338done
11339
698dcdb6 11340for ac_hdr in wchar.h
10f2d63a 11341do
698dcdb6
VZ
11342ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11343echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a3cb1afc 11344echo "configure:11345: checking for $ac_hdr" >&5
698dcdb6
VZ
11345if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11346 echo $ac_n "(cached) $ac_c" 1>&6
11347else
11348 cat > conftest.$ac_ext <<EOF
a3cb1afc 11349#line 11350 "configure"
10f2d63a 11350#include "confdefs.h"
698dcdb6
VZ
11351#include <$ac_hdr>
11352EOF
11353ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a3cb1afc 11354{ (eval echo configure:11355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11355ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11356if test -z "$ac_err"; then
11357 rm -rf conftest*
11358 eval "ac_cv_header_$ac_safe=yes"
6f72b082 11359else
698dcdb6
VZ
11360 echo "$ac_err" >&5
11361 echo "configure: failed program was:" >&5
6f72b082 11362 cat conftest.$ac_ext >&5
698dcdb6
VZ
11363 rm -rf conftest*
11364 eval "ac_cv_header_$ac_safe=no"
6f72b082 11365fi
698dcdb6 11366rm -f conftest*
6f72b082 11367fi
698dcdb6
VZ
11368if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11369 echo "$ac_t""yes" 1>&6
11370 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11371 cat >> confdefs.h <<EOF
11372#define $ac_tr_hdr 1
6f72b082 11373EOF
698dcdb6
VZ
11374
11375else
11376 echo "$ac_t""no" 1>&6
6f72b082
OK
11377fi
11378done
11379
698dcdb6 11380for ac_hdr in wcstr.h
6f72b082 11381do
698dcdb6
VZ
11382ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11383echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a3cb1afc 11384echo "configure:11385: checking for $ac_hdr" >&5
698dcdb6
VZ
11385if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11386 echo $ac_n "(cached) $ac_c" 1>&6
11387else
11388 cat > conftest.$ac_ext <<EOF
a3cb1afc 11389#line 11390 "configure"
6f72b082 11390#include "confdefs.h"
698dcdb6
VZ
11391#include <$ac_hdr>
11392EOF
11393ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a3cb1afc 11394{ (eval echo configure:11395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11395ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11396if test -z "$ac_err"; then
11397 rm -rf conftest*
11398 eval "ac_cv_header_$ac_safe=yes"
6f72b082 11399else
698dcdb6
VZ
11400 echo "$ac_err" >&5
11401 echo "configure: failed program was:" >&5
6f72b082 11402 cat conftest.$ac_ext >&5
698dcdb6
VZ
11403 rm -rf conftest*
11404 eval "ac_cv_header_$ac_safe=no"
6f72b082 11405fi
698dcdb6 11406rm -f conftest*
6f72b082 11407fi
698dcdb6
VZ
11408if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11409 echo "$ac_t""yes" 1>&6
11410 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11411 cat >> confdefs.h <<EOF
11412#define $ac_tr_hdr 1
6f72b082 11413EOF
698dcdb6
VZ
11414
11415else
11416 echo "$ac_t""no" 1>&6
6f72b082
OK
11417fi
11418done
11419
698dcdb6 11420for ac_hdr in fnmatch.h
6f72b082 11421do
698dcdb6
VZ
11422ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11423echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a3cb1afc 11424echo "configure:11425: checking for $ac_hdr" >&5
698dcdb6
VZ
11425if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11426 echo $ac_n "(cached) $ac_c" 1>&6
11427else
11428 cat > conftest.$ac_ext <<EOF
a3cb1afc 11429#line 11430 "configure"
6f72b082 11430#include "confdefs.h"
698dcdb6
VZ
11431#include <$ac_hdr>
11432EOF
11433ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a3cb1afc 11434{ (eval echo configure:11435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11435ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11436if test -z "$ac_err"; then
11437 rm -rf conftest*
11438 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11439else
698dcdb6
VZ
11440 echo "$ac_err" >&5
11441 echo "configure: failed program was:" >&5
10f2d63a 11442 cat conftest.$ac_ext >&5
698dcdb6
VZ
11443 rm -rf conftest*
11444 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11445fi
698dcdb6 11446rm -f conftest*
10f2d63a 11447fi
698dcdb6
VZ
11448if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11449 echo "$ac_t""yes" 1>&6
11450 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11451 cat >> confdefs.h <<EOF
11452#define $ac_tr_hdr 1
10f2d63a 11453EOF
698dcdb6
VZ
11454
11455else
11456 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11457fi
11458done
11459
698dcdb6 11460for ac_hdr in iconv.h
0fb0dd83 11461do
698dcdb6
VZ
11462ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11463echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a3cb1afc 11464echo "configure:11465: checking for $ac_hdr" >&5
698dcdb6
VZ
11465if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11466 echo $ac_n "(cached) $ac_c" 1>&6
11467else
11468 cat > conftest.$ac_ext <<EOF
a3cb1afc 11469#line 11470 "configure"
0fb0dd83 11470#include "confdefs.h"
698dcdb6
VZ
11471#include <$ac_hdr>
11472EOF
11473ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a3cb1afc 11474{ (eval echo configure:11475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11475ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11476if test -z "$ac_err"; then
11477 rm -rf conftest*
11478 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 11479else
698dcdb6
VZ
11480 echo "$ac_err" >&5
11481 echo "configure: failed program was:" >&5
0fb0dd83 11482 cat conftest.$ac_ext >&5
698dcdb6
VZ
11483 rm -rf conftest*
11484 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 11485fi
698dcdb6 11486rm -f conftest*
0fb0dd83 11487fi
698dcdb6
VZ
11488if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11489 echo "$ac_t""yes" 1>&6
11490 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11491 cat >> confdefs.h <<EOF
11492#define $ac_tr_hdr 1
0fb0dd83 11493EOF
698dcdb6
VZ
11494
11495else
11496 echo "$ac_t""no" 1>&6
0fb0dd83
RR
11497fi
11498done
11499
698dcdb6 11500for ac_hdr in langinfo.h
1f8ae82f 11501do
698dcdb6
VZ
11502ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11503echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a3cb1afc 11504echo "configure:11505: checking for $ac_hdr" >&5
698dcdb6
VZ
11505if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11506 echo $ac_n "(cached) $ac_c" 1>&6
11507else
11508 cat > conftest.$ac_ext <<EOF
a3cb1afc 11509#line 11510 "configure"
1f8ae82f 11510#include "confdefs.h"
698dcdb6
VZ
11511#include <$ac_hdr>
11512EOF
11513ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a3cb1afc 11514{ (eval echo configure:11515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11515ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11516if test -z "$ac_err"; then
11517 rm -rf conftest*
11518 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 11519else
698dcdb6
VZ
11520 echo "$ac_err" >&5
11521 echo "configure: failed program was:" >&5
1f8ae82f 11522 cat conftest.$ac_ext >&5
698dcdb6
VZ
11523 rm -rf conftest*
11524 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 11525fi
698dcdb6 11526rm -f conftest*
1f8ae82f 11527fi
698dcdb6
VZ
11528if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11529 echo "$ac_t""yes" 1>&6
11530 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11531 cat >> confdefs.h <<EOF
11532#define $ac_tr_hdr 1
1f8ae82f 11533EOF
698dcdb6
VZ
11534
11535else
11536 echo "$ac_t""no" 1>&6
1f8ae82f
GD
11537fi
11538done
11539
698dcdb6 11540
73fd4a60
VZ
11541if test "$wxUSE_GUI" = "yes"; then
11542 if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 11543 for ac_hdr in X11/XKBlib.h
10f2d63a 11544do
698dcdb6
VZ
11545ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11546echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a3cb1afc 11547echo "configure:11548: checking for $ac_hdr" >&5
698dcdb6
VZ
11548if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11549 echo $ac_n "(cached) $ac_c" 1>&6
11550else
11551 cat > conftest.$ac_ext <<EOF
a3cb1afc 11552#line 11553 "configure"
10f2d63a 11553#include "confdefs.h"
698dcdb6
VZ
11554#include <$ac_hdr>
11555EOF
11556ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a3cb1afc 11557{ (eval echo configure:11558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11558ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11559if test -z "$ac_err"; then
11560 rm -rf conftest*
11561 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11562else
698dcdb6
VZ
11563 echo "$ac_err" >&5
11564 echo "configure: failed program was:" >&5
10f2d63a 11565 cat conftest.$ac_ext >&5
698dcdb6
VZ
11566 rm -rf conftest*
11567 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11568fi
698dcdb6 11569rm -f conftest*
10f2d63a 11570fi
698dcdb6
VZ
11571if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11572 echo "$ac_t""yes" 1>&6
11573 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11574 cat >> confdefs.h <<EOF
11575#define $ac_tr_hdr 1
10f2d63a 11576EOF
698dcdb6
VZ
11577
11578else
11579 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11580fi
11581done
11582
73fd4a60 11583 fi
10f2d63a
VZ
11584fi
11585
3e44f09d 11586if test "$USE_WIN32" = 1; then
29fd3c0c
VS
11587 for ac_hdr in w32api.h
11588do
11589ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11590echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a3cb1afc 11591echo "configure:11592: checking for $ac_hdr" >&5
29fd3c0c
VS
11592if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11593 echo $ac_n "(cached) $ac_c" 1>&6
11594else
11595 cat > conftest.$ac_ext <<EOF
a3cb1afc 11596#line 11597 "configure"
29fd3c0c
VS
11597#include "confdefs.h"
11598#include <$ac_hdr>
11599EOF
11600ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a3cb1afc 11601{ (eval echo configure:11602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
11602ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11603if test -z "$ac_err"; then
11604 rm -rf conftest*
11605 eval "ac_cv_header_$ac_safe=yes"
11606else
11607 echo "$ac_err" >&5
11608 echo "configure: failed program was:" >&5
11609 cat conftest.$ac_ext >&5
11610 rm -rf conftest*
11611 eval "ac_cv_header_$ac_safe=no"
11612fi
11613rm -f conftest*
11614fi
11615if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11616 echo "$ac_t""yes" 1>&6
11617 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11618 cat >> confdefs.h <<EOF
11619#define $ac_tr_hdr 1
11620EOF
11621
11622else
11623 echo "$ac_t""no" 1>&6
11624fi
11625done
11626
11627fi
11628
698dcdb6
VZ
11629
11630echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
a3cb1afc 11631echo "configure:11632: checking for ANSI C header files" >&5
698dcdb6
VZ
11632if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11633 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11634else
698dcdb6 11635 cat > conftest.$ac_ext <<EOF
a3cb1afc 11636#line 11637 "configure"
10f2d63a
VZ
11637#include "confdefs.h"
11638#include <stdlib.h>
11639#include <stdarg.h>
11640#include <string.h>
11641#include <float.h>
698dcdb6
VZ
11642EOF
11643ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a3cb1afc 11644{ (eval echo configure:11645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11645ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11646if test -z "$ac_err"; then
11647 rm -rf conftest*
10f2d63a
VZ
11648 ac_cv_header_stdc=yes
11649else
698dcdb6
VZ
11650 echo "$ac_err" >&5
11651 echo "configure: failed program was:" >&5
10f2d63a 11652 cat conftest.$ac_ext >&5
698dcdb6 11653 rm -rf conftest*
10f2d63a
VZ
11654 ac_cv_header_stdc=no
11655fi
698dcdb6 11656rm -f conftest*
10f2d63a
VZ
11657
11658if test $ac_cv_header_stdc = yes; then
11659 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 11660cat > conftest.$ac_ext <<EOF
a3cb1afc 11661#line 11662 "configure"
10f2d63a
VZ
11662#include "confdefs.h"
11663#include <string.h>
698dcdb6 11664EOF
10f2d63a
VZ
11665if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11666 egrep "memchr" >/dev/null 2>&1; then
11667 :
11668else
698dcdb6 11669 rm -rf conftest*
10f2d63a
VZ
11670 ac_cv_header_stdc=no
11671fi
11672rm -f conftest*
11673
11674fi
11675
11676if test $ac_cv_header_stdc = yes; then
11677 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 11678cat > conftest.$ac_ext <<EOF
a3cb1afc 11679#line 11680 "configure"
10f2d63a
VZ
11680#include "confdefs.h"
11681#include <stdlib.h>
698dcdb6 11682EOF
10f2d63a
VZ
11683if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11684 egrep "free" >/dev/null 2>&1; then
11685 :
11686else
698dcdb6 11687 rm -rf conftest*
10f2d63a
VZ
11688 ac_cv_header_stdc=no
11689fi
11690rm -f conftest*
11691
11692fi
11693
11694if test $ac_cv_header_stdc = yes; then
11695 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 11696if test "$cross_compiling" = yes; then
10f2d63a
VZ
11697 :
11698else
698dcdb6 11699 cat > conftest.$ac_ext <<EOF
a3cb1afc 11700#line 11701 "configure"
10f2d63a
VZ
11701#include "confdefs.h"
11702#include <ctype.h>
698dcdb6
VZ
11703#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11704#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 11705#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
11706int main () { int i; for (i = 0; i < 256; i++)
11707if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11708exit (0); }
11709
11710EOF
a3cb1afc 11711if { (eval echo configure:11712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 11712then
10f2d63a
VZ
11713 :
11714else
698dcdb6
VZ
11715 echo "configure: failed program was:" >&5
11716 cat conftest.$ac_ext >&5
11717 rm -fr conftest*
11718 ac_cv_header_stdc=no
10f2d63a 11719fi
698dcdb6 11720rm -fr conftest*
10f2d63a 11721fi
698dcdb6 11722
10f2d63a
VZ
11723fi
11724fi
1e487827 11725
698dcdb6
VZ
11726echo "$ac_t""$ac_cv_header_stdc" 1>&6
11727if test $ac_cv_header_stdc = yes; then
11728 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11729#define STDC_HEADERS 1
11730EOF
11731
11732fi
11733
698dcdb6 11734echo $ac_n "checking for mode_t""... $ac_c" 1>&6
a3cb1afc 11735echo "configure:11736: checking for mode_t" >&5
698dcdb6
VZ
11736if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11737 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 11738else
698dcdb6 11739 cat > conftest.$ac_ext <<EOF
a3cb1afc 11740#line 11741 "configure"
1e487827 11741#include "confdefs.h"
698dcdb6
VZ
11742#include <sys/types.h>
11743#if STDC_HEADERS
11744#include <stdlib.h>
11745#include <stddef.h>
11746#endif
11747EOF
11748if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11749 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11750 rm -rf conftest*
10f2d63a
VZ
11751 ac_cv_type_mode_t=yes
11752else
698dcdb6
VZ
11753 rm -rf conftest*
11754 ac_cv_type_mode_t=no
703e0a69 11755fi
698dcdb6 11756rm -f conftest*
1e487827 11757
698dcdb6
VZ
11758fi
11759echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11760if test $ac_cv_type_mode_t = no; then
11761 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11762#define mode_t int
11763EOF
11764
11765fi
11766
698dcdb6 11767echo $ac_n "checking for off_t""... $ac_c" 1>&6
a3cb1afc 11768echo "configure:11769: checking for off_t" >&5
698dcdb6
VZ
11769if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11770 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11771else
698dcdb6 11772 cat > conftest.$ac_ext <<EOF
a3cb1afc 11773#line 11774 "configure"
10f2d63a 11774#include "confdefs.h"
698dcdb6
VZ
11775#include <sys/types.h>
11776#if STDC_HEADERS
11777#include <stdlib.h>
11778#include <stddef.h>
11779#endif
11780EOF
11781if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11782 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11783 rm -rf conftest*
10f2d63a
VZ
11784 ac_cv_type_off_t=yes
11785else
698dcdb6
VZ
11786 rm -rf conftest*
11787 ac_cv_type_off_t=no
703e0a69 11788fi
698dcdb6 11789rm -f conftest*
1e487827 11790
698dcdb6
VZ
11791fi
11792echo "$ac_t""$ac_cv_type_off_t" 1>&6
11793if test $ac_cv_type_off_t = no; then
11794 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11795#define off_t long
11796EOF
11797
11798fi
11799
698dcdb6 11800echo $ac_n "checking for pid_t""... $ac_c" 1>&6
a3cb1afc 11801echo "configure:11802: checking for pid_t" >&5
698dcdb6
VZ
11802if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11803 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11804else
698dcdb6 11805 cat > conftest.$ac_ext <<EOF
a3cb1afc 11806#line 11807 "configure"
10f2d63a 11807#include "confdefs.h"
698dcdb6
VZ
11808#include <sys/types.h>
11809#if STDC_HEADERS
11810#include <stdlib.h>
11811#include <stddef.h>
11812#endif
11813EOF
11814if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11815 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11816 rm -rf conftest*
10f2d63a
VZ
11817 ac_cv_type_pid_t=yes
11818else
698dcdb6
VZ
11819 rm -rf conftest*
11820 ac_cv_type_pid_t=no
703e0a69 11821fi
698dcdb6 11822rm -f conftest*
1e487827 11823
698dcdb6
VZ
11824fi
11825echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11826if test $ac_cv_type_pid_t = no; then
11827 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11828#define pid_t int
11829EOF
11830
11831fi
11832
698dcdb6 11833echo $ac_n "checking for size_t""... $ac_c" 1>&6
a3cb1afc 11834echo "configure:11835: checking for size_t" >&5
698dcdb6
VZ
11835if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11836 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11837else
698dcdb6 11838 cat > conftest.$ac_ext <<EOF
a3cb1afc 11839#line 11840 "configure"
10f2d63a 11840#include "confdefs.h"
698dcdb6
VZ
11841#include <sys/types.h>
11842#if STDC_HEADERS
11843#include <stdlib.h>
11844#include <stddef.h>
11845#endif
11846EOF
11847if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11848 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11849 rm -rf conftest*
10f2d63a
VZ
11850 ac_cv_type_size_t=yes
11851else
698dcdb6
VZ
11852 rm -rf conftest*
11853 ac_cv_type_size_t=no
703e0a69 11854fi
698dcdb6 11855rm -f conftest*
1e487827 11856
698dcdb6
VZ
11857fi
11858echo "$ac_t""$ac_cv_type_size_t" 1>&6
11859if test $ac_cv_type_size_t = no; then
11860 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11861#define size_t unsigned
11862EOF
11863
11864fi
11865
698dcdb6 11866echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
a3cb1afc 11867echo "configure:11868: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
11868if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
11869 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11870else
698dcdb6 11871 cat > conftest.$ac_ext <<EOF
a3cb1afc 11872#line 11873 "configure"
10f2d63a
VZ
11873#include "confdefs.h"
11874#include <sys/types.h>
698dcdb6 11875EOF
10f2d63a
VZ
11876if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11877 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 11878 rm -rf conftest*
10f2d63a
VZ
11879 ac_cv_type_uid_t=yes
11880else
698dcdb6 11881 rm -rf conftest*
10f2d63a
VZ
11882 ac_cv_type_uid_t=no
11883fi
11884rm -f conftest*
11885
11886fi
1e487827 11887
698dcdb6
VZ
11888echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11889if test $ac_cv_type_uid_t = no; then
11890 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11891#define uid_t int
11892EOF
11893
698dcdb6 11894 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11895#define gid_t int
11896EOF
11897
11898fi
11899
1e487827 11900
698dcdb6 11901echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
a3cb1afc 11902echo "configure:11903: checking for wchar_t" >&5
698dcdb6
VZ
11903if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
11904 echo $ac_n "(cached) $ac_c" 1>&6
11905else
11906
11907 cat > conftest.$ac_ext <<EOF
a3cb1afc 11908#line 11909 "configure"
0046ff7c
VS
11909#include "confdefs.h"
11910#include <wchar.h>
698dcdb6 11911int main() {
0046ff7c 11912
d836ee96
VZ
11913 wchar_t wc, *ws;
11914 wc = L'a';
11915 ws = L"Hello, world!";
698dcdb6
VZ
11916
11917; return 0; }
11918EOF
a3cb1afc 11919if { (eval echo configure:11920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11920 rm -rf conftest*
1f8ae82f
GD
11921 wx_cv_type_wchar_t=yes
11922else
698dcdb6
VZ
11923 echo "configure: failed program was:" >&5
11924 cat conftest.$ac_ext >&5
11925 rm -rf conftest*
11926 cat > conftest.$ac_ext <<EOF
a3cb1afc 11927#line 11928 "configure"
1f8ae82f
GD
11928#include "confdefs.h"
11929#include <stdlib.h>
698dcdb6 11930int main() {
1f8ae82f 11931
d836ee96
VZ
11932 wchar_t wc, *ws;
11933 wc = L'a';
11934 ws = L"Hello, world!";
698dcdb6
VZ
11935
11936; return 0; }
11937EOF
a3cb1afc 11938if { (eval echo configure:11939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11939 rm -rf conftest*
0046ff7c
VS
11940 wx_cv_type_wchar_t=yes
11941else
698dcdb6
VZ
11942 echo "configure: failed program was:" >&5
11943 cat conftest.$ac_ext >&5
11944 rm -rf conftest*
11945 wx_cv_type_wchar_t=no
0046ff7c 11946fi
698dcdb6 11947rm -f conftest*
d836ee96 11948
6232543b 11949fi
698dcdb6 11950rm -f conftest*
703e0a69 11951
1e487827 11952fi
698dcdb6
VZ
11953
11954echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
11955
11956if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 11957 cat >> confdefs.h <<\EOF
0046ff7c
VS
11958#define wxUSE_WCHAR_T 1
11959EOF
11960
11961fi
11962
19af3b06
VZ
11963
11964ac_ext=C
11965# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11966ac_cpp='$CXXCPP $CPPFLAGS'
11967ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11968ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11969cross_compiling=$ac_cv_prog_cxx_cross
11970
d836ee96 11971echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
a3cb1afc 11972echo "configure:11973: checking if size_t is unsigned int" >&5
d836ee96
VZ
11973if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
11974 echo $ac_n "(cached) $ac_c" 1>&6
11975else
dd2c8b7c 11976 cat > conftest.$ac_ext <<EOF
a3cb1afc 11977#line 11978 "configure"
d836ee96
VZ
11978#include "confdefs.h"
11979#include <stddef.h>
11980int main() {
11981
dd2c8b7c
VZ
11982 return 0; }
11983
d836ee96 11984 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
11985
11986 int bar() {
d836ee96
VZ
11987
11988; return 0; }
11989EOF
a3cb1afc 11990if { (eval echo configure:11991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
11991 rm -rf conftest*
11992 wx_cv_size_t_is_uint=no
11993else
11994 echo "configure: failed program was:" >&5
11995 cat conftest.$ac_ext >&5
11996 rm -rf conftest*
11997 wx_cv_size_t_is_uint=yes
11998
11999fi
12000rm -f conftest*
12001
12002fi
12003
12004echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
12005
12006if test "$wx_cv_size_t_is_uint" = "yes"; then
12007 cat >> confdefs.h <<\EOF
12008#define wxSIZE_T_IS_UINT 1
12009EOF
12010
12011else
12012 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
a3cb1afc 12013echo "configure:12014: checking if size_t is unsigned long" >&5
d836ee96
VZ
12014if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
12015 echo $ac_n "(cached) $ac_c" 1>&6
12016else
12017 cat > conftest.$ac_ext <<EOF
a3cb1afc 12018#line 12019 "configure"
d836ee96
VZ
12019#include "confdefs.h"
12020#include <stddef.h>
12021int main() {
12022
dd2c8b7c
VZ
12023 return 0; }
12024
d836ee96 12025 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
12026
12027 int bar() {
d836ee96
VZ
12028
12029; return 0; }
12030EOF
a3cb1afc 12031if { (eval echo configure:12032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
12032 rm -rf conftest*
12033 wx_cv_size_t_is_ulong=no
12034else
12035 echo "configure: failed program was:" >&5
12036 cat conftest.$ac_ext >&5
12037 rm -rf conftest*
12038 wx_cv_size_t_is_ulong=yes
12039
12040fi
12041rm -f conftest*
12042
12043fi
12044
12045echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
12046
12047 if test "$wx_cv_size_t_is_ulong" = "yes"; then
12048 cat >> confdefs.h <<\EOF
12049#define wxSIZE_T_IS_ULONG 1
12050EOF
12051
12052 fi
12053fi
12054
19af3b06
VZ
12055ac_ext=c
12056# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12057ac_cpp='$CPP $CPPFLAGS'
12058ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12059ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12060cross_compiling=$ac_cv_prog_cc_cross
12061
12062
1e487827 12063
698dcdb6 12064echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
a3cb1afc 12065echo "configure:12066: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
12066if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
12067 echo $ac_n "(cached) $ac_c" 1>&6
12068else
12069
12070 cat > conftest.$ac_ext <<EOF
a3cb1afc 12071#line 12072 "configure"
b12915c1
VZ
12072#include "confdefs.h"
12073#include <pwd.h>
698dcdb6 12074int main() {
b12915c1
VZ
12075
12076 char *p;
12077 struct passwd *pw;
12078 p = pw->pw_gecos;
698dcdb6
VZ
12079
12080; return 0; }
12081EOF
a3cb1afc 12082if { (eval echo configure:12083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12083 rm -rf conftest*
12084
b12915c1 12085 wx_cv_struct_pw_gecos=yes
698dcdb6 12086
b12915c1 12087else
698dcdb6
VZ
12088 echo "configure: failed program was:" >&5
12089 cat conftest.$ac_ext >&5
12090 rm -rf conftest*
12091
b12915c1 12092 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
12093
12094
6232543b 12095fi
698dcdb6
VZ
12096rm -f conftest*
12097
703e0a69 12098
1e487827 12099fi
698dcdb6
VZ
12100
12101echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 12102
bd3277fe 12103if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 12104 cat >> confdefs.h <<\EOF
bd3277fe
VZ
12105#define HAVE_PW_GECOS 1
12106EOF
12107
12108fi
12109
698dcdb6
VZ
12110
12111echo $ac_n "checking for working const""... $ac_c" 1>&6
a3cb1afc 12112echo "configure:12113: checking for working const" >&5
698dcdb6
VZ
12113if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
12114 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12115else
698dcdb6 12116 cat > conftest.$ac_ext <<EOF
a3cb1afc 12117#line 12118 "configure"
10f2d63a 12118#include "confdefs.h"
698dcdb6
VZ
12119
12120int main() {
12121
12122/* Ultrix mips cc rejects this. */
12123typedef int charset[2]; const charset x;
12124/* SunOS 4.1.1 cc rejects this. */
12125char const *const *ccp;
12126char **p;
12127/* NEC SVR4.0.2 mips cc rejects this. */
12128struct point {int x, y;};
12129static struct point const zero = {0,0};
12130/* AIX XL C 1.02.0.0 rejects this.
12131 It does not let you subtract one const X* pointer from another in an arm
12132 of an if-expression whose if-part is not a constant expression */
12133const char *g = "string";
12134ccp = &g + (g ? g-g : 0);
12135/* HPUX 7.0 cc rejects these. */
12136++ccp;
12137p = (char**) ccp;
12138ccp = (char const *const *) p;
12139{ /* SCO 3.2v4 cc rejects this. */
12140 char *t;
12141 char const *s = 0 ? (char *) 0 : (char const *) 0;
12142
12143 *t++ = 0;
10f2d63a 12144}
698dcdb6
VZ
12145{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12146 int x[] = {25, 17};
12147 const int *foo = &x[0];
12148 ++foo;
703e0a69 12149}
698dcdb6
VZ
12150{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12151 typedef const int *iptr;
12152 iptr p = 0;
12153 ++p;
6232543b 12154}
698dcdb6
VZ
12155{ /* AIX XL C 1.02.0.0 rejects this saying
12156 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12157 struct s { int j; const int *ap[3]; };
12158 struct s *b; b->j = 5;
1e487827 12159}
698dcdb6
VZ
12160{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12161 const int foo = 10;
12162}
12163
12164; return 0; }
12165EOF
a3cb1afc 12166if { (eval echo configure:12167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12167 rm -rf conftest*
10f2d63a
VZ
12168 ac_cv_c_const=yes
12169else
698dcdb6
VZ
12170 echo "configure: failed program was:" >&5
12171 cat conftest.$ac_ext >&5
12172 rm -rf conftest*
12173 ac_cv_c_const=no
10f2d63a 12174fi
698dcdb6 12175rm -f conftest*
10f2d63a 12176fi
1e487827 12177
698dcdb6
VZ
12178echo "$ac_t""$ac_cv_c_const" 1>&6
12179if test $ac_cv_c_const = no; then
12180 cat >> confdefs.h <<\EOF
12181#define const
10f2d63a
VZ
12182EOF
12183
12184fi
12185
698dcdb6 12186echo $ac_n "checking for inline""... $ac_c" 1>&6
a3cb1afc 12187echo "configure:12188: checking for inline" >&5
698dcdb6
VZ
12188if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
12189 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12190else
12191 ac_cv_c_inline=no
12192for ac_kw in inline __inline__ __inline; do
698dcdb6 12193 cat > conftest.$ac_ext <<EOF
a3cb1afc 12194#line 12195 "configure"
10f2d63a
VZ
12195#include "confdefs.h"
12196
698dcdb6
VZ
12197int main() {
12198} $ac_kw foo() {
12199; return 0; }
12200EOF
a3cb1afc 12201if { (eval echo configure:12202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12202 rm -rf conftest*
10f2d63a
VZ
12203 ac_cv_c_inline=$ac_kw; break
12204else
698dcdb6
VZ
12205 echo "configure: failed program was:" >&5
12206 cat conftest.$ac_ext >&5
10f2d63a 12207fi
698dcdb6 12208rm -f conftest*
10f2d63a
VZ
12209done
12210
12211fi
698dcdb6
VZ
12212
12213echo "$ac_t""$ac_cv_c_inline" 1>&6
12214case "$ac_cv_c_inline" in
10f2d63a 12215 inline | yes) ;;
698dcdb6
VZ
12216 no) cat >> confdefs.h <<\EOF
12217#define inline
10f2d63a
VZ
12218EOF
12219 ;;
698dcdb6 12220 *) cat >> confdefs.h <<EOF
10f2d63a
VZ
12221#define inline $ac_cv_c_inline
12222EOF
12223 ;;
12224esac
12225
698dcdb6
VZ
12226
12227echo $ac_n "checking size of char""... $ac_c" 1>&6
a3cb1afc 12228echo "configure:12229: checking size of char" >&5
698dcdb6
VZ
12229if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
12230 echo $ac_n "(cached) $ac_c" 1>&6
6232543b 12231else
1e487827 12232 if test "$cross_compiling" = yes; then
698dcdb6 12233 ac_cv_sizeof_char=1
1e487827 12234else
698dcdb6 12235 cat > conftest.$ac_ext <<EOF
a3cb1afc 12236#line 12237 "configure"
1e487827 12237#include "confdefs.h"
698dcdb6
VZ
12238#include <stdio.h>
12239main()
1e487827 12240{
698dcdb6
VZ
12241 FILE *f=fopen("conftestval", "w");
12242 if (!f) exit(1);
12243 fprintf(f, "%d\n", sizeof(char));
12244 exit(0);
1e487827 12245}
698dcdb6 12246EOF
a3cb1afc 12247if { (eval echo configure:12248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12248then
12249 ac_cv_sizeof_char=`cat conftestval`
1e487827 12250else
698dcdb6
VZ
12251 echo "configure: failed program was:" >&5
12252 cat conftest.$ac_ext >&5
12253 rm -fr conftest*
1e487827
VS
12254 ac_cv_sizeof_char=0
12255fi
698dcdb6 12256rm -fr conftest*
1e487827 12257fi
10f2d63a 12258
1e487827 12259fi
698dcdb6
VZ
12260echo "$ac_t""$ac_cv_sizeof_char" 1>&6
12261cat >> confdefs.h <<EOF
12262#define SIZEOF_CHAR $ac_cv_sizeof_char
1e487827 12263EOF
6232543b 12264
703e0a69 12265
698dcdb6 12266echo $ac_n "checking size of short""... $ac_c" 1>&6
a3cb1afc 12267echo "configure:12268: checking size of short" >&5
698dcdb6
VZ
12268if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
12269 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 12270else
1e487827 12271 if test "$cross_compiling" = yes; then
698dcdb6 12272 ac_cv_sizeof_short=2
1e487827 12273else
698dcdb6 12274 cat > conftest.$ac_ext <<EOF
a3cb1afc 12275#line 12276 "configure"
1e487827 12276#include "confdefs.h"
698dcdb6
VZ
12277#include <stdio.h>
12278main()
1e487827 12279{
698dcdb6
VZ
12280 FILE *f=fopen("conftestval", "w");
12281 if (!f) exit(1);
12282 fprintf(f, "%d\n", sizeof(short));
12283 exit(0);
1e487827 12284}
698dcdb6 12285EOF
a3cb1afc 12286if { (eval echo configure:12287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12287then
12288 ac_cv_sizeof_short=`cat conftestval`
1e487827 12289else
698dcdb6
VZ
12290 echo "configure: failed program was:" >&5
12291 cat conftest.$ac_ext >&5
12292 rm -fr conftest*
12293 ac_cv_sizeof_short=0
1e487827 12294fi
698dcdb6 12295rm -fr conftest*
1e487827 12296fi
698dcdb6 12297
1e487827 12298fi
698dcdb6
VZ
12299echo "$ac_t""$ac_cv_sizeof_short" 1>&6
12300cat >> confdefs.h <<EOF
12301#define SIZEOF_SHORT $ac_cv_sizeof_short
12302EOF
12303
12304
12305echo $ac_n "checking size of int *""... $ac_c" 1>&6
a3cb1afc 12306echo "configure:12307: checking size of int *" >&5
698dcdb6
VZ
12307if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
12308 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12309else
12310 if test "$cross_compiling" = yes; then
698dcdb6 12311 ac_cv_sizeof_int_p=4
10f2d63a 12312else
698dcdb6 12313 cat > conftest.$ac_ext <<EOF
a3cb1afc 12314#line 12315 "configure"
10f2d63a 12315#include "confdefs.h"
698dcdb6
VZ
12316#include <stdio.h>
12317main()
10f2d63a 12318{
698dcdb6
VZ
12319 FILE *f=fopen("conftestval", "w");
12320 if (!f) exit(1);
12321 fprintf(f, "%d\n", sizeof(int *));
12322 exit(0);
10f2d63a 12323}
698dcdb6 12324EOF
a3cb1afc 12325if { (eval echo configure:12326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12326then
12327 ac_cv_sizeof_int_p=`cat conftestval`
10f2d63a 12328else
698dcdb6
VZ
12329 echo "configure: failed program was:" >&5
12330 cat conftest.$ac_ext >&5
12331 rm -fr conftest*
12332 ac_cv_sizeof_int_p=0
6232543b 12333fi
698dcdb6 12334rm -fr conftest*
1e487827 12335fi
698dcdb6 12336
1e487827 12337fi
698dcdb6
VZ
12338echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
12339cat >> confdefs.h <<EOF
12340#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
12341EOF
12342
698dcdb6
VZ
12343
12344echo $ac_n "checking size of int""... $ac_c" 1>&6
a3cb1afc 12345echo "configure:12346: checking size of int" >&5
698dcdb6
VZ
12346if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
12347 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12348else
12349 if test "$cross_compiling" = yes; then
698dcdb6 12350 ac_cv_sizeof_int=4
703e0a69 12351else
698dcdb6 12352 cat > conftest.$ac_ext <<EOF
a3cb1afc 12353#line 12354 "configure"
1e487827 12354#include "confdefs.h"
698dcdb6
VZ
12355#include <stdio.h>
12356main()
1e487827 12357{
698dcdb6
VZ
12358 FILE *f=fopen("conftestval", "w");
12359 if (!f) exit(1);
12360 fprintf(f, "%d\n", sizeof(int));
12361 exit(0);
1e487827 12362}
698dcdb6 12363EOF
a3cb1afc 12364if { (eval echo configure:12365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12365then
12366 ac_cv_sizeof_int=`cat conftestval`
12367else
12368 echo "configure: failed program was:" >&5
12369 cat conftest.$ac_ext >&5
12370 rm -fr conftest*
12371 ac_cv_sizeof_int=0
703e0a69 12372fi
698dcdb6
VZ
12373rm -fr conftest*
12374fi
12375
12376fi
12377echo "$ac_t""$ac_cv_sizeof_int" 1>&6
12378cat >> confdefs.h <<EOF
12379#define SIZEOF_INT $ac_cv_sizeof_int
12380EOF
12381
12382
12383echo $ac_n "checking size of long""... $ac_c" 1>&6
a3cb1afc 12384echo "configure:12385: checking size of long" >&5
698dcdb6
VZ
12385if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
12386 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12387else
12388 if test "$cross_compiling" = yes; then
698dcdb6 12389 ac_cv_sizeof_long=4
10f2d63a 12390else
698dcdb6 12391 cat > conftest.$ac_ext <<EOF
a3cb1afc 12392#line 12393 "configure"
10f2d63a 12393#include "confdefs.h"
698dcdb6
VZ
12394#include <stdio.h>
12395main()
10f2d63a 12396{
698dcdb6
VZ
12397 FILE *f=fopen("conftestval", "w");
12398 if (!f) exit(1);
12399 fprintf(f, "%d\n", sizeof(long));
12400 exit(0);
10f2d63a 12401}
698dcdb6 12402EOF
a3cb1afc 12403if { (eval echo configure:12404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12404then
12405 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 12406else
698dcdb6
VZ
12407 echo "configure: failed program was:" >&5
12408 cat conftest.$ac_ext >&5
12409 rm -fr conftest*
12410 ac_cv_sizeof_long=0
10f2d63a 12411fi
698dcdb6 12412rm -fr conftest*
10f2d63a 12413fi
698dcdb6 12414
10f2d63a 12415fi
698dcdb6
VZ
12416echo "$ac_t""$ac_cv_sizeof_long" 1>&6
12417cat >> confdefs.h <<EOF
12418#define SIZEOF_LONG $ac_cv_sizeof_long
12419EOF
12420
12421
12422echo $ac_n "checking size of long long""... $ac_c" 1>&6
a3cb1afc 12423echo "configure:12424: checking size of long long" >&5
698dcdb6
VZ
12424if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
12425 echo $ac_n "(cached) $ac_c" 1>&6
12426else
12427 if test "$cross_compiling" = yes; then
12428 ac_cv_sizeof_long_long=0
12429else
12430 cat > conftest.$ac_ext <<EOF
a3cb1afc 12431#line 12432 "configure"
698dcdb6
VZ
12432#include "confdefs.h"
12433#include <stdio.h>
12434main()
12435{
12436 FILE *f=fopen("conftestval", "w");
12437 if (!f) exit(1);
12438 fprintf(f, "%d\n", sizeof(long long));
12439 exit(0);
12440}
12441EOF
a3cb1afc 12442if { (eval echo configure:12443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12443then
12444 ac_cv_sizeof_long_long=`cat conftestval`
6232543b 12445else
698dcdb6
VZ
12446 echo "configure: failed program was:" >&5
12447 cat conftest.$ac_ext >&5
12448 rm -fr conftest*
6232543b
VS
12449 ac_cv_sizeof_long_long=0
12450fi
698dcdb6
VZ
12451rm -fr conftest*
12452fi
12453
703e0a69 12454fi
698dcdb6
VZ
12455echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
12456cat >> confdefs.h <<EOF
10f2d63a
VZ
12457#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12458EOF
12459
1e487827 12460
698dcdb6
VZ
12461
12462echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
a3cb1afc 12463echo "configure:12464: checking size of wchar_t" >&5
698dcdb6
VZ
12464if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
12465 echo $ac_n "(cached) $ac_c" 1>&6
12466else
12467
b93d0d08
VS
12468 if test "$cross_compiling" = yes; then
12469 wx_cv_sizeof_wchar_t=4
1e6feb95 12470
b93d0d08 12471else
698dcdb6 12472 cat > conftest.$ac_ext <<EOF
a3cb1afc 12473#line 12474 "configure"
b93d0d08
VS
12474#include "confdefs.h"
12475
1e6feb95
VZ
12476 #ifdef HAVE_WCHAR_H
12477 # include <wchar.h>
12478 #endif
12479 #ifdef HAVE_STDLIB_H
12480 # include <stdlib.h>
12481 #endif
12482 #include <stdio.h>
12483 int main()
12484 {
12485 FILE *f=fopen("conftestval", "w");
12486 if (!f) exit(1);
12487 fprintf(f, "%i", sizeof(wchar_t));
12488 exit(0);
12489 }
698dcdb6
VZ
12490
12491EOF
a3cb1afc 12492if { (eval echo configure:12493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12493then
b93d0d08
VS
12494 wx_cv_sizeof_wchar_t=`cat conftestval`
12495else
698dcdb6
VZ
12496 echo "configure: failed program was:" >&5
12497 cat conftest.$ac_ext >&5
12498 rm -fr conftest*
12499 wx_cv_sizeof_wchar_t=0
b93d0d08 12500fi
698dcdb6 12501rm -fr conftest*
b93d0d08
VS
12502fi
12503
698dcdb6 12504
b93d0d08
VS
12505fi
12506
698dcdb6
VZ
12507echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
12508
12509cat >> confdefs.h <<EOF
28c6addc 12510#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
b93d0d08
VS
12511EOF
12512
698dcdb6 12513
698dcdb6 12514echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
a3cb1afc 12515echo "configure:12516: checking whether byte ordering is bigendian" >&5
698dcdb6
VZ
12516if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
12517 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12518else
12519 ac_cv_c_bigendian=unknown
12520# See if sys/param.h defines the BYTE_ORDER macro.
698dcdb6 12521cat > conftest.$ac_ext <<EOF
a3cb1afc 12522#line 12523 "configure"
10f2d63a
VZ
12523#include "confdefs.h"
12524#include <sys/types.h>
12525#include <sys/param.h>
698dcdb6 12526int main() {
10f2d63a
VZ
12527
12528#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12529 bogus endian macros
12530#endif
698dcdb6
VZ
12531; return 0; }
12532EOF
a3cb1afc 12533if { (eval echo configure:12534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12534 rm -rf conftest*
10f2d63a 12535 # It does; now see whether it defined to BIG_ENDIAN or not.
698dcdb6 12536cat > conftest.$ac_ext <<EOF
a3cb1afc 12537#line 12538 "configure"
10f2d63a
VZ
12538#include "confdefs.h"
12539#include <sys/types.h>
12540#include <sys/param.h>
698dcdb6 12541int main() {
10f2d63a
VZ
12542
12543#if BYTE_ORDER != BIG_ENDIAN
12544 not big endian
12545#endif
698dcdb6
VZ
12546; return 0; }
12547EOF
a3cb1afc 12548if { (eval echo configure:12549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12549 rm -rf conftest*
10f2d63a
VZ
12550 ac_cv_c_bigendian=yes
12551else
698dcdb6
VZ
12552 echo "configure: failed program was:" >&5
12553 cat conftest.$ac_ext >&5
12554 rm -rf conftest*
12555 ac_cv_c_bigendian=no
10f2d63a 12556fi
698dcdb6 12557rm -f conftest*
10f2d63a 12558else
698dcdb6
VZ
12559 echo "configure: failed program was:" >&5
12560 cat conftest.$ac_ext >&5
10f2d63a 12561fi
698dcdb6 12562rm -f conftest*
10f2d63a
VZ
12563if test $ac_cv_c_bigendian = unknown; then
12564if test "$cross_compiling" = yes; then
12565 ac_cv_c_bigendian=unknown
12566else
698dcdb6 12567 cat > conftest.$ac_ext <<EOF
a3cb1afc 12568#line 12569 "configure"
10f2d63a
VZ
12569#include "confdefs.h"
12570main () {
12571 /* Are we little or big endian? From Harbison&Steele. */
12572 union
12573 {
12574 long l;
12575 char c[sizeof (long)];
12576 } u;
12577 u.l = 1;
12578 exit (u.c[sizeof (long) - 1] == 1);
12579}
698dcdb6 12580EOF
a3cb1afc 12581if { (eval echo configure:12582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12582then
10f2d63a
VZ
12583 ac_cv_c_bigendian=no
12584else
698dcdb6
VZ
12585 echo "configure: failed program was:" >&5
12586 cat conftest.$ac_ext >&5
12587 rm -fr conftest*
12588 ac_cv_c_bigendian=yes
10f2d63a 12589fi
698dcdb6 12590rm -fr conftest*
10f2d63a 12591fi
698dcdb6 12592
10f2d63a
VZ
12593fi
12594fi
698dcdb6
VZ
12595
12596echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10f2d63a 12597if test $ac_cv_c_bigendian = unknown; then
698dcdb6 12598 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
12599fi
12600if test $ac_cv_c_bigendian = yes; then
698dcdb6 12601 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12602#define WORDS_BIGENDIAN 1
12603EOF
12604
12605fi
12606
698dcdb6
VZ
12607
12608
10f2d63a 12609 if test "$cross_compiling" = "yes"; then
698dcdb6 12610 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12611#define wxUSE_IOSTREAMH 1
12612EOF
12613
12614 else
698dcdb6
VZ
12615
12616 ac_ext=C
12617# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12618ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12619ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12620ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12621cross_compiling=$ac_cv_prog_cxx_cross
12622
703e0a69 12623
698dcdb6 12624 for ac_hdr in iostream
10f2d63a 12625do
698dcdb6
VZ
12626ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12627echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a3cb1afc 12628echo "configure:12629: checking for $ac_hdr" >&5
698dcdb6
VZ
12629if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12630 echo $ac_n "(cached) $ac_c" 1>&6
12631else
12632 cat > conftest.$ac_ext <<EOF
a3cb1afc 12633#line 12634 "configure"
10f2d63a 12634#include "confdefs.h"
698dcdb6
VZ
12635#include <$ac_hdr>
12636EOF
12637ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a3cb1afc 12638{ (eval echo configure:12639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12639ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12640if test -z "$ac_err"; then
12641 rm -rf conftest*
12642 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12643else
698dcdb6
VZ
12644 echo "$ac_err" >&5
12645 echo "configure: failed program was:" >&5
10f2d63a 12646 cat conftest.$ac_ext >&5
698dcdb6
VZ
12647 rm -rf conftest*
12648 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12649fi
698dcdb6 12650rm -f conftest*
10f2d63a 12651fi
698dcdb6
VZ
12652if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12653 echo "$ac_t""yes" 1>&6
12654 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12655 cat >> confdefs.h <<EOF
12656#define $ac_tr_hdr 1
10f2d63a 12657EOF
698dcdb6
VZ
12658
12659else
12660 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12661fi
12662done
12663
698dcdb6 12664
57fe5ed0
VZ
12665 if test "$ac_cv_header_iostream" = "yes" ; then
12666 :
12667 else
698dcdb6 12668 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12669#define wxUSE_IOSTREAMH 1
12670EOF
12671
10f2d63a
VZ
12672 fi
12673
12674 ac_ext=c
698dcdb6 12675# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12676ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12677ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12678ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12679cross_compiling=$ac_cv_prog_cc_cross
10f2d63a
VZ
12680
12681 fi
12682
703e0a69 12683
698dcdb6
VZ
12684
12685 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
a3cb1afc 12686echo "configure:12687: checking if C++ compiler supports bool" >&5
698dcdb6
VZ
12687if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12688 echo $ac_n "(cached) $ac_c" 1>&6
12689else
12690
12691
12692 ac_ext=C
12693# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12694ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12695ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12696ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12697cross_compiling=$ac_cv_prog_cxx_cross
10f2d63a 12698
698dcdb6
VZ
12699
12700 cat > conftest.$ac_ext <<EOF
a3cb1afc 12701#line 12702 "configure"
10f2d63a
VZ
12702#include "confdefs.h"
12703
698dcdb6
VZ
12704
12705int main() {
10f2d63a
VZ
12706
12707 bool b = true;
12708
12709 return 0;
698dcdb6
VZ
12710
12711; return 0; }
12712EOF
a3cb1afc 12713if { (eval echo configure:12714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12714 rm -rf conftest*
12715
10f2d63a 12716 wx_cv_cpp_bool=yes
698dcdb6 12717
10f2d63a 12718else
698dcdb6
VZ
12719 echo "configure: failed program was:" >&5
12720 cat conftest.$ac_ext >&5
12721 rm -rf conftest*
12722
10f2d63a 12723 wx_cv_cpp_bool=no
698dcdb6
VZ
12724
12725
10f2d63a 12726fi
698dcdb6 12727rm -f conftest*
10f2d63a
VZ
12728
12729 ac_ext=c
698dcdb6 12730# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12731ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12732ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12733ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12734cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 12735
698dcdb6 12736
10f2d63a 12737fi
698dcdb6
VZ
12738
12739echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10f2d63a
VZ
12740
12741 if test "$wx_cv_cpp_bool" = "yes"; then
698dcdb6 12742 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12743#define HAVE_BOOL 1
12744EOF
12745
12746 fi
12747
1e487827 12748
698dcdb6 12749
698dcdb6 12750echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
a3cb1afc 12751echo "configure:12752: checking for wcslen in -lc" >&5
698dcdb6
VZ
12752ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12753if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12754 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12755else
698dcdb6 12756 ac_save_LIBS="$LIBS"
10f2d63a 12757LIBS="-lc $LIBS"
698dcdb6 12758cat > conftest.$ac_ext <<EOF
a3cb1afc 12759#line 12760 "configure"
10f2d63a
VZ
12760#include "confdefs.h"
12761/* Override any gcc2 internal prototype to avoid an error. */
12762/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12763 builtin and then its argument prototype would still apply. */
12764char wcslen();
12765
12766int main() {
12767wcslen()
12768; return 0; }
12769EOF
a3cb1afc 12770if { (eval echo configure:12771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12771 rm -rf conftest*
12772 eval "ac_cv_lib_$ac_lib_var=yes"
12773else
12774 echo "configure: failed program was:" >&5
12775 cat conftest.$ac_ext >&5
12776 rm -rf conftest*
12777 eval "ac_cv_lib_$ac_lib_var=no"
12778fi
12779rm -f conftest*
12780LIBS="$ac_save_LIBS"
12781
12782fi
12783if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12784 echo "$ac_t""yes" 1>&6
12785
12786 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12787#define HAVE_WCSLEN 1
12788EOF
12789
12790 WCHAR_LINK=""
698dcdb6 12791
10f2d63a 12792else
698dcdb6 12793 echo "$ac_t""no" 1>&6
10f2d63a 12794
698dcdb6 12795 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
a3cb1afc 12796echo "configure:12797: checking for wcslen in -lw" >&5
698dcdb6
VZ
12797ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12798if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12799 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12800else
698dcdb6 12801 ac_save_LIBS="$LIBS"
10f2d63a 12802LIBS="-lw $LIBS"
698dcdb6 12803cat > conftest.$ac_ext <<EOF
a3cb1afc 12804#line 12805 "configure"
10f2d63a
VZ
12805#include "confdefs.h"
12806/* Override any gcc2 internal prototype to avoid an error. */
12807/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12808 builtin and then its argument prototype would still apply. */
12809char wcslen();
12810
12811int main() {
12812wcslen()
12813; return 0; }
12814EOF
a3cb1afc 12815if { (eval echo configure:12816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12816 rm -rf conftest*
12817 eval "ac_cv_lib_$ac_lib_var=yes"
12818else
12819 echo "configure: failed program was:" >&5
12820 cat conftest.$ac_ext >&5
12821 rm -rf conftest*
12822 eval "ac_cv_lib_$ac_lib_var=no"
12823fi
12824rm -f conftest*
12825LIBS="$ac_save_LIBS"
12826
12827fi
12828if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12829 echo "$ac_t""yes" 1>&6
12830
12831 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12832#define HAVE_WCSLEN 1
12833EOF
12834
12835 WCHAR_LINK="-lw"
698dcdb6 12836
18dbb1f6
VZ
12837else
12838 echo "$ac_t""no" 1>&6
12839
12840 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
a3cb1afc 12841echo "configure:12842: checking for wcslen in -lmsvcrt" >&5
18dbb1f6
VZ
12842ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
12843if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12844 echo $ac_n "(cached) $ac_c" 1>&6
12845else
12846 ac_save_LIBS="$LIBS"
12847LIBS="-lmsvcrt $LIBS"
12848cat > conftest.$ac_ext <<EOF
a3cb1afc 12849#line 12850 "configure"
18dbb1f6
VZ
12850#include "confdefs.h"
12851/* Override any gcc2 internal prototype to avoid an error. */
12852/* We use char because int might match the return type of a gcc2
12853 builtin and then its argument prototype would still apply. */
12854char wcslen();
12855
12856int main() {
12857wcslen()
12858; return 0; }
12859EOF
a3cb1afc 12860if { (eval echo configure:12861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18dbb1f6
VZ
12861 rm -rf conftest*
12862 eval "ac_cv_lib_$ac_lib_var=yes"
12863else
12864 echo "configure: failed program was:" >&5
12865 cat conftest.$ac_ext >&5
12866 rm -rf conftest*
12867 eval "ac_cv_lib_$ac_lib_var=no"
12868fi
12869rm -f conftest*
12870LIBS="$ac_save_LIBS"
12871
12872fi
12873if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12874 echo "$ac_t""yes" 1>&6
12875
12876 cat >> confdefs.h <<\EOF
12877#define HAVE_WCSLEN 1
12878EOF
12879
12880 WCHAR_LINK=""
12881
698dcdb6
VZ
12882else
12883 echo "$ac_t""no" 1>&6
6232543b 12884fi
10f2d63a 12885
18dbb1f6
VZ
12886
12887fi
12888
698dcdb6 12889
1e487827 12890fi
703e0a69 12891
698dcdb6
VZ
12892
12893echo $ac_n "checking for vprintf""... $ac_c" 1>&6
a3cb1afc 12894echo "configure:12895: checking for vprintf" >&5
698dcdb6
VZ
12895if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
12896 echo $ac_n "(cached) $ac_c" 1>&6
12897else
12898 cat > conftest.$ac_ext <<EOF
a3cb1afc 12899#line 12900 "configure"
10f2d63a
VZ
12900#include "confdefs.h"
12901/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12902 which can conflict with char vprintf(); below. */
10f2d63a
VZ
12903#include <assert.h>
12904/* Override any gcc2 internal prototype to avoid an error. */
12905/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12906 builtin and then its argument prototype would still apply. */
12907char vprintf();
12908
12909int main() {
10f2d63a
VZ
12910
12911/* The GNU C library defines this for functions which it implements
12912 to always fail with ENOSYS. Some functions are actually named
12913 something starting with __ and the normal name is an alias. */
698dcdb6 12914#if defined (__stub_vprintf) || defined (__stub___vprintf)
10f2d63a
VZ
12915choke me
12916#else
698dcdb6 12917vprintf();
10f2d63a
VZ
12918#endif
12919
698dcdb6
VZ
12920; return 0; }
12921EOF
a3cb1afc 12922if { (eval echo configure:12923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12923 rm -rf conftest*
12924 eval "ac_cv_func_vprintf=yes"
12925else
12926 echo "configure: failed program was:" >&5
12927 cat conftest.$ac_ext >&5
12928 rm -rf conftest*
12929 eval "ac_cv_func_vprintf=no"
12930fi
12931rm -f conftest*
12932fi
12933
12934if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12935 echo "$ac_t""yes" 1>&6
12936 cat >> confdefs.h <<\EOF
12937#define HAVE_VPRINTF 1
12938EOF
12939
12940else
12941 echo "$ac_t""no" 1>&6
12942fi
12943
12944if test "$ac_cv_func_vprintf" != yes; then
12945echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
a3cb1afc 12946echo "configure:12947: checking for _doprnt" >&5
698dcdb6
VZ
12947if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
12948 echo $ac_n "(cached) $ac_c" 1>&6
12949else
12950 cat > conftest.$ac_ext <<EOF
a3cb1afc 12951#line 12952 "configure"
10f2d63a
VZ
12952#include "confdefs.h"
12953/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12954 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
12955#include <assert.h>
12956/* Override any gcc2 internal prototype to avoid an error. */
12957/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12958 builtin and then its argument prototype would still apply. */
12959char _doprnt();
12960
12961int main() {
10f2d63a
VZ
12962
12963/* The GNU C library defines this for functions which it implements
12964 to always fail with ENOSYS. Some functions are actually named
12965 something starting with __ and the normal name is an alias. */
12966#if defined (__stub__doprnt) || defined (__stub____doprnt)
12967choke me
12968#else
698dcdb6 12969_doprnt();
10f2d63a
VZ
12970#endif
12971
698dcdb6
VZ
12972; return 0; }
12973EOF
a3cb1afc 12974if { (eval echo configure:12975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12975 rm -rf conftest*
12976 eval "ac_cv_func__doprnt=yes"
12977else
12978 echo "configure: failed program was:" >&5
12979 cat conftest.$ac_ext >&5
12980 rm -rf conftest*
12981 eval "ac_cv_func__doprnt=no"
12982fi
12983rm -f conftest*
12984fi
12985
12986if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12987 echo "$ac_t""yes" 1>&6
12988 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12989#define HAVE_DOPRNT 1
12990EOF
12991
698dcdb6
VZ
12992else
12993 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12994fi
12995
12996fi
12997
1e487827 12998
698dcdb6
VZ
12999
13000
13001
13002
13003
13004echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
a3cb1afc 13005echo "configure:13006: checking for vsnprintf" >&5
698dcdb6
VZ
13006if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
13007 echo $ac_n "(cached) $ac_c" 1>&6
13008else
13009
13010 cat > conftest.$ac_ext <<EOF
a3cb1afc 13011#line 13012 "configure"
f6bcfd97
BP
13012#include "confdefs.h"
13013
13014 #include <stdio.h>
698dcdb6
VZ
13015 #include <stdarg.h>
13016
13017int main() {
10f2d63a 13018
f6bcfd97 13019 int wx_test_vsnprintf(const char *, ...);
10f2d63a 13020
f6bcfd97
BP
13021 wx_test_vsnprintf("%s");
13022 return 0;
13023 }
13024
13025 int wx_test_vsnprintf(const char *fmt, ...)
13026 {
13027 char *s;
13028
13029 va_list argp;
13030 va_start(argp, fmt);
13031 vsnprintf(s, 42, fmt, argp);
13032 va_end(argp);
698dcdb6
VZ
13033
13034; return 0; }
13035EOF
a3cb1afc 13036if { (eval echo configure:13037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13037 rm -rf conftest*
13038
f6bcfd97 13039 wx_cv_func_vsnprintf=yes
698dcdb6 13040
10f2d63a 13041else
698dcdb6
VZ
13042 echo "configure: failed program was:" >&5
13043 cat conftest.$ac_ext >&5
13044 rm -rf conftest*
13045
13046 cat > conftest.$ac_ext <<EOF
a3cb1afc 13047#line 13048 "configure"
c521c494
RL
13048#include "confdefs.h"
13049
13050 #include <stdio.h>
13051 #include <stdarg.h>
698dcdb6
VZ
13052
13053int main() {
c521c494
RL
13054
13055 int wx_test_vsnprintf(const char *, ...);
13056
13057 wx_test_vsnprintf("%s");
13058 return 0;
13059 }
13060
13061 int wx_test_vsnprintf(const char *fmt, ...)
13062 {
13063 char *s;
13064
13065 va_list argp;
13066 va_start(argp, fmt);
13067 _vsnprintf(s, 42, fmt, argp);
13068 va_end(argp);
698dcdb6
VZ
13069
13070; return 0; }
13071EOF
a3cb1afc 13072if { (eval echo configure:13073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13073 rm -rf conftest*
13074
c521c494 13075 wx_cv_func_vsnprintf=yes
698dcdb6 13076
c521c494 13077else
698dcdb6
VZ
13078 echo "configure: failed program was:" >&5
13079 cat conftest.$ac_ext >&5
13080 rm -rf conftest*
13081
c521c494 13082 wx_cv_func_vsnprintf=no
698dcdb6 13083
10f2d63a 13084fi
698dcdb6
VZ
13085rm -f conftest*
13086
6232543b 13087fi
698dcdb6 13088rm -f conftest*
703e0a69 13089
1e487827 13090fi
698dcdb6
VZ
13091
13092echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
10f2d63a 13093
9d8deca0 13094if test "$wx_cv_func_vsnprintf" = yes; then
698dcdb6 13095 cat >> confdefs.h <<\EOF
9d8deca0
VZ
13096#define HAVE_VSNPRINTF 1
13097EOF
13098
13099else
698dcdb6 13100 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9d8deca0
VZ
13101fi
13102
698dcdb6 13103echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
a3cb1afc 13104echo "configure:13105: checking for vsscanf" >&5
698dcdb6
VZ
13105if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
13106 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13107else
698dcdb6
VZ
13108
13109 cat > conftest.$ac_ext <<EOF
a3cb1afc 13110#line 13111 "configure"
10f2d63a 13111#include "confdefs.h"
10f2d63a 13112
f6bcfd97
BP
13113 #include <stdio.h>
13114 #include <stdarg.h>
698dcdb6
VZ
13115
13116int main() {
10f2d63a 13117
f6bcfd97 13118 int wx_test_vsscanf(const char *, ...);
10f2d63a 13119
f6bcfd97
BP
13120 wx_test_vsscanf("%d");
13121 return 0;
10f2d63a
VZ
13122 }
13123
f6bcfd97 13124 int wx_test_vsscanf(const char *fmt, ...)
10f2d63a 13125 {
f6bcfd97
BP
13126 va_list argp;
13127 va_start(argp, fmt);
13128 vsscanf("42", fmt, argp);
13129 va_end(argp);
698dcdb6
VZ
13130
13131; return 0; }
13132EOF
a3cb1afc 13133if { (eval echo configure:13134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13134 rm -rf conftest*
13135
f6bcfd97 13136 wx_cv_func_vsscanf=yes
698dcdb6 13137
10f2d63a 13138else
698dcdb6
VZ
13139 echo "configure: failed program was:" >&5
13140 cat conftest.$ac_ext >&5
13141 rm -rf conftest*
13142
f6bcfd97 13143 wx_cv_func_vsscanf=no
698dcdb6 13144
6232543b 13145fi
698dcdb6 13146rm -f conftest*
703e0a69 13147
1e487827 13148fi
698dcdb6
VZ
13149
13150echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10f2d63a 13151
9d8deca0 13152if test "$wx_cv_func_vsscanf" = yes; then
698dcdb6 13153 cat >> confdefs.h <<\EOF
9d8deca0
VZ
13154#define HAVE_VSSCANF 1
13155EOF
13156
13157fi
13158
95c8801c
VS
13159if test "$TOOLKIT" != "MSW"; then
13160
13161
13162
698dcdb6
VZ
13163ac_ext=C
13164# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13165ac_cpp='$CXXCPP $CPPFLAGS'
13166ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13167ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13168cross_compiling=$ac_cv_prog_cxx_cross
13169
13170echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
a3cb1afc 13171echo "configure:13172: checking if iconv() takes char**" >&5
698dcdb6
VZ
13172if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
13173 echo $ac_n "(cached) $ac_c" 1>&6
13174else
13175
13176 cat > conftest.$ac_ext <<EOF
a3cb1afc 13177#line 13178 "configure"
95c8801c
VS
13178#include "confdefs.h"
13179#include <iconv.h>
698dcdb6 13180int main() {
95c8801c
VS
13181
13182 char **inbuf, **outbuf;
19af3b06
VZ
13183 iconv_t cd;
13184 size_t insz, outsz;
13185 iconv(cd, inbuf, &insz, outbuf, &outsz);
698dcdb6
VZ
13186
13187; return 0; }
13188EOF
a3cb1afc 13189if { (eval echo configure:13190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 13190 rm -rf conftest*
95c8801c
VS
13191 wx_cv_iconv_takes_char=yes
13192else
698dcdb6
VZ
13193 echo "configure: failed program was:" >&5
13194 cat conftest.$ac_ext >&5
13195 rm -rf conftest*
13196 wx_cv_iconv_takes_char=no
95c8801c 13197fi
698dcdb6 13198rm -f conftest*
95c8801c
VS
13199
13200fi
698dcdb6
VZ
13201
13202echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
10f2d63a 13203ac_ext=c
698dcdb6 13204# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 13205ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13206ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13207ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13208cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 13209
95c8801c 13210if test "$wx_cv_iconv_takes_char" = yes ; then
698dcdb6 13211 cat >> confdefs.h <<\EOF
95c8801c
VS
13212#define WX_ICONV_TAKES_CHAR 1
13213EOF
13214
13215fi
10f2d63a 13216
1e487827 13217
698dcdb6
VZ
13218if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
13219 for ac_func in sigaction
eb4efbdc 13220do
698dcdb6 13221echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a3cb1afc 13222echo "configure:13223: checking for $ac_func" >&5
698dcdb6
VZ
13223if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13224 echo $ac_n "(cached) $ac_c" 1>&6
13225else
13226 cat > conftest.$ac_ext <<EOF
a3cb1afc 13227#line 13228 "configure"
eb4efbdc
VZ
13228#include "confdefs.h"
13229/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13230 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
13231#include <assert.h>
13232/* Override any gcc2 internal prototype to avoid an error. */
13233/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13234 builtin and then its argument prototype would still apply. */
13235char $ac_func();
13236
13237int main() {
eb4efbdc
VZ
13238
13239/* The GNU C library defines this for functions which it implements
13240 to always fail with ENOSYS. Some functions are actually named
13241 something starting with __ and the normal name is an alias. */
13242#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13243choke me
13244#else
698dcdb6 13245$ac_func();
eb4efbdc
VZ
13246#endif
13247
698dcdb6 13248; return 0; }
eb4efbdc 13249EOF
a3cb1afc 13250if { (eval echo configure:13251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13251 rm -rf conftest*
13252 eval "ac_cv_func_$ac_func=yes"
13253else
13254 echo "configure: failed program was:" >&5
13255 cat conftest.$ac_ext >&5
13256 rm -rf conftest*
13257 eval "ac_cv_func_$ac_func=no"
13258fi
13259rm -f conftest*
13260fi
eb4efbdc 13261
698dcdb6
VZ
13262if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13263 echo "$ac_t""yes" 1>&6
13264 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13265 cat >> confdefs.h <<EOF
13266#define $ac_tr_func 1
13267EOF
13268
13269else
13270 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
13271fi
13272done
13273
698dcdb6 13274
eb4efbdc 13275 if test "$ac_cv_func_sigaction" = "no"; then
698dcdb6 13276 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
eb4efbdc
VZ
13277 wxUSE_ON_FATAL_EXCEPTION=no
13278 fi
f6bcfd97
BP
13279
13280 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6
VZ
13281
13282 ac_ext=C
13283# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 13284ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
13285ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13286ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13287cross_compiling=$ac_cv_prog_cxx_cross
6232543b 13288
1e487827 13289
698dcdb6 13290 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
a3cb1afc 13291echo "configure:13292: checking for sa_handler type" >&5
698dcdb6
VZ
13292if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
13293 echo $ac_n "(cached) $ac_c" 1>&6
13294else
13295
13296 cat > conftest.$ac_ext <<EOF
a3cb1afc 13297#line 13298 "configure"
f6bcfd97
BP
13298#include "confdefs.h"
13299#include <signal.h>
698dcdb6 13300int main() {
f6bcfd97
BP
13301
13302 extern void testSigHandler(int);
13303
13304 struct sigaction sa;
13305 sa.sa_handler = testSigHandler;
698dcdb6
VZ
13306
13307; return 0; }
13308EOF
a3cb1afc 13309if { (eval echo configure:13310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13310 rm -rf conftest*
13311
f6bcfd97 13312 wx_cv_type_sa_handler=int
698dcdb6 13313
f6bcfd97 13314else
698dcdb6
VZ
13315 echo "configure: failed program was:" >&5
13316 cat conftest.$ac_ext >&5
13317 rm -rf conftest*
13318
f6bcfd97 13319 wx_cv_type_sa_handler=void
698dcdb6 13320
6232543b 13321fi
698dcdb6
VZ
13322rm -f conftest*
13323
1e487827 13324fi
698dcdb6
VZ
13325
13326echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
f6bcfd97
BP
13327
13328 ac_ext=c
698dcdb6 13329# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
f6bcfd97 13330ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13331ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13332ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13333cross_compiling=$ac_cv_prog_cc_cross
13334
703e0a69 13335
698dcdb6 13336 cat >> confdefs.h <<EOF
f6bcfd97
BP
13337#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
13338EOF
13339
13340 fi
eb4efbdc
VZ
13341fi
13342
10f2d63a
VZ
13343for ac_func in vfork
13344do
698dcdb6 13345echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a3cb1afc 13346echo "configure:13347: checking for $ac_func" >&5
698dcdb6
VZ
13347if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13348 echo $ac_n "(cached) $ac_c" 1>&6
13349else
13350 cat > conftest.$ac_ext <<EOF
a3cb1afc 13351#line 13352 "configure"
10f2d63a
VZ
13352#include "confdefs.h"
13353/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13354 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13355#include <assert.h>
13356/* Override any gcc2 internal prototype to avoid an error. */
13357/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13358 builtin and then its argument prototype would still apply. */
13359char $ac_func();
13360
13361int main() {
10f2d63a
VZ
13362
13363/* The GNU C library defines this for functions which it implements
13364 to always fail with ENOSYS. Some functions are actually named
13365 something starting with __ and the normal name is an alias. */
13366#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13367choke me
13368#else
698dcdb6 13369$ac_func();
10f2d63a
VZ
13370#endif
13371
698dcdb6 13372; return 0; }
10f2d63a 13373EOF
a3cb1afc 13374if { (eval echo configure:13375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13375 rm -rf conftest*
13376 eval "ac_cv_func_$ac_func=yes"
13377else
13378 echo "configure: failed program was:" >&5
13379 cat conftest.$ac_ext >&5
13380 rm -rf conftest*
13381 eval "ac_cv_func_$ac_func=no"
13382fi
13383rm -f conftest*
13384fi
270a909e 13385
698dcdb6
VZ
13386if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13387 echo "$ac_t""yes" 1>&6
13388 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13389 cat >> confdefs.h <<EOF
13390#define $ac_tr_func 1
13391EOF
13392
13393else
13394 echo "$ac_t""no" 1>&6
270a909e
VZ
13395fi
13396done
13397
1e487827 13398
52e8b690
VZ
13399echo $ac_n "checking for statfs""... $ac_c" 1>&6
13400echo "configure:13401: checking for statfs" >&5
13401if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
13402 echo $ac_n "(cached) $ac_c" 1>&6
13403else
13404 cat > conftest.$ac_ext <<EOF
13405#line 13406 "configure"
13406#include "confdefs.h"
13407
13408 #include <sys/vfs.h>
13409
13410int main() {
13411
13412 long l;
13413 struct statfs fs;
13414 statfs("/", &fs);
13415 l = fs.f_bsize;
13416 l += fs.f_blocks;
13417 l += fs.f_bavail;
13418
13419; return 0; }
13420EOF
13421if { (eval echo configure:13422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13422 rm -rf conftest*
13423
13424 wx_cv_func_statfs=yes
13425
13426else
13427 echo "configure: failed program was:" >&5
13428 cat conftest.$ac_ext >&5
13429 rm -rf conftest*
13430
13431 wx_cv_func_statfs=no
13432
13433
13434fi
13435rm -f conftest*
13436
13437fi
13438
13439echo "$ac_t""$wx_cv_func_statfs" 1>&6
13440
13441if test "$wx_cv_func_statfs" = "yes"; then
13442 cat >> confdefs.h <<\EOF
13443#define HAVE_STATFS 1
13444EOF
13445
13446else
13447 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
13448fi
13449
698dcdb6
VZ
13450if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
13451 for ac_func in fcntl flock
4f3c5f06 13452do
698dcdb6 13453echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
52e8b690 13454echo "configure:13455: checking for $ac_func" >&5
698dcdb6
VZ
13455if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13456 echo $ac_n "(cached) $ac_c" 1>&6
13457else
13458 cat > conftest.$ac_ext <<EOF
52e8b690 13459#line 13460 "configure"
4f3c5f06
VZ
13460#include "confdefs.h"
13461/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13462 which can conflict with char $ac_func(); below. */
4f3c5f06
VZ
13463#include <assert.h>
13464/* Override any gcc2 internal prototype to avoid an error. */
13465/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13466 builtin and then its argument prototype would still apply. */
13467char $ac_func();
13468
13469int main() {
4f3c5f06
VZ
13470
13471/* The GNU C library defines this for functions which it implements
13472 to always fail with ENOSYS. Some functions are actually named
13473 something starting with __ and the normal name is an alias. */
13474#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13475choke me
13476#else
698dcdb6 13477$ac_func();
4f3c5f06
VZ
13478#endif
13479
698dcdb6
VZ
13480; return 0; }
13481EOF
52e8b690 13482if { (eval echo configure:13483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13483 rm -rf conftest*
13484 eval "ac_cv_func_$ac_func=yes"
13485else
13486 echo "configure: failed program was:" >&5
13487 cat conftest.$ac_ext >&5
13488 rm -rf conftest*
13489 eval "ac_cv_func_$ac_func=no"
13490fi
13491rm -f conftest*
13492fi
13493
13494if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13495 echo "$ac_t""yes" 1>&6
13496 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13497 cat >> confdefs.h <<EOF
13498#define $ac_tr_func 1
4f3c5f06
VZ
13499EOF
13500 break
698dcdb6
VZ
13501else
13502 echo "$ac_t""no" 1>&6
4f3c5f06
VZ
13503fi
13504done
13505
698dcdb6 13506
4f3c5f06 13507 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
698dcdb6 13508 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f3c5f06
VZ
13509 wxUSE_SNGLINST_CHECKER=no
13510 fi
13511fi
13512
270a909e
VZ
13513for ac_func in timegm
13514do
698dcdb6 13515echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
52e8b690 13516echo "configure:13517: checking for $ac_func" >&5
698dcdb6
VZ
13517if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13518 echo $ac_n "(cached) $ac_c" 1>&6
13519else
13520 cat > conftest.$ac_ext <<EOF
52e8b690 13521#line 13522 "configure"
270a909e
VZ
13522#include "confdefs.h"
13523/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13524 which can conflict with char $ac_func(); below. */
270a909e
VZ
13525#include <assert.h>
13526/* Override any gcc2 internal prototype to avoid an error. */
13527/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13528 builtin and then its argument prototype would still apply. */
13529char $ac_func();
13530
13531int main() {
270a909e
VZ
13532
13533/* The GNU C library defines this for functions which it implements
13534 to always fail with ENOSYS. Some functions are actually named
13535 something starting with __ and the normal name is an alias. */
13536#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13537choke me
13538#else
698dcdb6 13539$ac_func();
270a909e
VZ
13540#endif
13541
698dcdb6 13542; return 0; }
270a909e 13543EOF
52e8b690 13544if { (eval echo configure:13545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13545 rm -rf conftest*
13546 eval "ac_cv_func_$ac_func=yes"
13547else
13548 echo "configure: failed program was:" >&5
13549 cat conftest.$ac_ext >&5
13550 rm -rf conftest*
13551 eval "ac_cv_func_$ac_func=no"
13552fi
13553rm -f conftest*
13554fi
10f2d63a 13555
698dcdb6
VZ
13556if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13557 echo "$ac_t""yes" 1>&6
13558 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13559 cat >> confdefs.h <<EOF
13560#define $ac_tr_func 1
13561EOF
13562
13563else
13564 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13565fi
13566done
13567
698dcdb6 13568
8fd0d89b
VZ
13569for ac_func in putenv setenv
13570do
698dcdb6 13571echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
52e8b690 13572echo "configure:13573: checking for $ac_func" >&5
698dcdb6
VZ
13573if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13574 echo $ac_n "(cached) $ac_c" 1>&6
13575else
13576 cat > conftest.$ac_ext <<EOF
52e8b690 13577#line 13578 "configure"
8fd0d89b
VZ
13578#include "confdefs.h"
13579/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13580 which can conflict with char $ac_func(); below. */
8fd0d89b
VZ
13581#include <assert.h>
13582/* Override any gcc2 internal prototype to avoid an error. */
13583/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13584 builtin and then its argument prototype would still apply. */
13585char $ac_func();
13586
13587int main() {
8fd0d89b
VZ
13588
13589/* The GNU C library defines this for functions which it implements
13590 to always fail with ENOSYS. Some functions are actually named
13591 something starting with __ and the normal name is an alias. */
13592#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13593choke me
13594#else
698dcdb6 13595$ac_func();
8fd0d89b
VZ
13596#endif
13597
698dcdb6
VZ
13598; return 0; }
13599EOF
52e8b690 13600if { (eval echo configure:13601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13601 rm -rf conftest*
13602 eval "ac_cv_func_$ac_func=yes"
13603else
13604 echo "configure: failed program was:" >&5
13605 cat conftest.$ac_ext >&5
13606 rm -rf conftest*
13607 eval "ac_cv_func_$ac_func=no"
13608fi
13609rm -f conftest*
13610fi
13611
13612if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13613 echo "$ac_t""yes" 1>&6
13614 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13615 cat >> confdefs.h <<EOF
13616#define $ac_tr_func 1
8fd0d89b
VZ
13617EOF
13618 break
698dcdb6
VZ
13619else
13620 echo "$ac_t""no" 1>&6
8fd0d89b
VZ
13621fi
13622done
13623
698dcdb6 13624
b12915c1
VZ
13625HAVE_SOME_SLEEP_FUNC=0
13626if test "$USE_BEOS" = 1; then
698dcdb6 13627 cat >> confdefs.h <<\EOF
b12915c1
VZ
13628#define HAVE_SLEEP 1
13629EOF
13630
13631 HAVE_SOME_SLEEP_FUNC=1
13632fi
13633
f11bdd03 13634if test "$USE_DARWIN" = 1; then
698dcdb6 13635 cat >> confdefs.h <<\EOF
b4085ce6
GD
13636#define HAVE_USLEEP 1
13637EOF
13638
13639 HAVE_SOME_SLEEP_FUNC=1
13640fi
13641
b12915c1
VZ
13642if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
13643 POSIX4_LINK=
698dcdb6 13644 for ac_func in nanosleep
10f2d63a 13645do
698dcdb6 13646echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
52e8b690 13647echo "configure:13648: checking for $ac_func" >&5
698dcdb6
VZ
13648if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13649 echo $ac_n "(cached) $ac_c" 1>&6
13650else
13651 cat > conftest.$ac_ext <<EOF
52e8b690 13652#line 13653 "configure"
10f2d63a
VZ
13653#include "confdefs.h"
13654/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13655 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13656#include <assert.h>
13657/* Override any gcc2 internal prototype to avoid an error. */
13658/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13659 builtin and then its argument prototype would still apply. */
13660char $ac_func();
13661
13662int main() {
10f2d63a
VZ
13663
13664/* The GNU C library defines this for functions which it implements
13665 to always fail with ENOSYS. Some functions are actually named
13666 something starting with __ and the normal name is an alias. */
13667#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13668choke me
13669#else
698dcdb6 13670$ac_func();
10f2d63a
VZ
13671#endif
13672
698dcdb6
VZ
13673; return 0; }
13674EOF
52e8b690 13675if { (eval echo configure:13676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13676 rm -rf conftest*
13677 eval "ac_cv_func_$ac_func=yes"
13678else
13679 echo "configure: failed program was:" >&5
13680 cat conftest.$ac_ext >&5
13681 rm -rf conftest*
13682 eval "ac_cv_func_$ac_func=no"
13683fi
13684rm -f conftest*
13685fi
13686
13687if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13688 echo "$ac_t""yes" 1>&6
13689 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13690 cat >> confdefs.h <<EOF
13691#define $ac_tr_func 1
13692EOF
13693 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13694#define HAVE_NANOSLEEP 1
13695EOF
13696
13697else
698dcdb6
VZ
13698 echo "$ac_t""no" 1>&6
13699echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
52e8b690 13700echo "configure:13701: checking for nanosleep in -lposix4" >&5
698dcdb6
VZ
13701ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
13702if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13703 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13704else
698dcdb6 13705 ac_save_LIBS="$LIBS"
10f2d63a 13706LIBS="-lposix4 $LIBS"
698dcdb6 13707cat > conftest.$ac_ext <<EOF
52e8b690 13708#line 13709 "configure"
10f2d63a
VZ
13709#include "confdefs.h"
13710/* Override any gcc2 internal prototype to avoid an error. */
13711/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13712 builtin and then its argument prototype would still apply. */
13713char nanosleep();
13714
13715int main() {
13716nanosleep()
13717; return 0; }
13718EOF
52e8b690 13719if { (eval echo configure:13720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13720 rm -rf conftest*
13721 eval "ac_cv_lib_$ac_lib_var=yes"
13722else
13723 echo "configure: failed program was:" >&5
13724 cat conftest.$ac_ext >&5
13725 rm -rf conftest*
13726 eval "ac_cv_lib_$ac_lib_var=no"
13727fi
13728rm -f conftest*
13729LIBS="$ac_save_LIBS"
13730
13731fi
13732if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13733 echo "$ac_t""yes" 1>&6
13734
13735 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13736#define HAVE_NANOSLEEP 1
13737EOF
13738
b12915c1 13739 POSIX4_LINK="-lposix4"
698dcdb6 13740
10f2d63a 13741else
698dcdb6 13742 echo "$ac_t""no" 1>&6
10f2d63a 13743
698dcdb6 13744 for ac_func in usleep
10f2d63a 13745do
698dcdb6 13746echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
52e8b690 13747echo "configure:13748: checking for $ac_func" >&5
698dcdb6
VZ
13748if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13749 echo $ac_n "(cached) $ac_c" 1>&6
13750else
13751 cat > conftest.$ac_ext <<EOF
52e8b690 13752#line 13753 "configure"
10f2d63a
VZ
13753#include "confdefs.h"
13754/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13755 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13756#include <assert.h>
13757/* Override any gcc2 internal prototype to avoid an error. */
13758/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13759 builtin and then its argument prototype would still apply. */
13760char $ac_func();
13761
13762int main() {
10f2d63a
VZ
13763
13764/* The GNU C library defines this for functions which it implements
13765 to always fail with ENOSYS. Some functions are actually named
13766 something starting with __ and the normal name is an alias. */
13767#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13768choke me
13769#else
698dcdb6 13770$ac_func();
10f2d63a
VZ
13771#endif
13772
698dcdb6
VZ
13773; return 0; }
13774EOF
52e8b690 13775if { (eval echo configure:13776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13776 rm -rf conftest*
13777 eval "ac_cv_func_$ac_func=yes"
13778else
13779 echo "configure: failed program was:" >&5
13780 cat conftest.$ac_ext >&5
13781 rm -rf conftest*
13782 eval "ac_cv_func_$ac_func=no"
13783fi
13784rm -f conftest*
13785fi
13786
13787if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13788 echo "$ac_t""yes" 1>&6
13789 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13790 cat >> confdefs.h <<EOF
13791#define $ac_tr_func 1
13792EOF
13793 cat >> confdefs.h <<\EOF
b4085ce6
GD
13794#define HAVE_USLEEP 1
13795EOF
13796
10f2d63a 13797else
698dcdb6
VZ
13798 echo "$ac_t""no" 1>&6
13799echo "configure: warning: wxSleep() function will not work" 1>&2
13800
10f2d63a
VZ
13801fi
13802done
13803
698dcdb6
VZ
13804
13805
10f2d63a
VZ
13806fi
13807
698dcdb6
VZ
13808
13809
10f2d63a
VZ
13810fi
13811done
13812
b12915c1 13813fi
10f2d63a
VZ
13814
13815for ac_func in uname gethostname
13816do
698dcdb6 13817echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
52e8b690 13818echo "configure:13819: checking for $ac_func" >&5
698dcdb6
VZ
13819if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13820 echo $ac_n "(cached) $ac_c" 1>&6
13821else
13822 cat > conftest.$ac_ext <<EOF
52e8b690 13823#line 13824 "configure"
10f2d63a
VZ
13824#include "confdefs.h"
13825/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13826 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13827#include <assert.h>
13828/* Override any gcc2 internal prototype to avoid an error. */
13829/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13830 builtin and then its argument prototype would still apply. */
13831char $ac_func();
13832
13833int main() {
10f2d63a
VZ
13834
13835/* The GNU C library defines this for functions which it implements
13836 to always fail with ENOSYS. Some functions are actually named
13837 something starting with __ and the normal name is an alias. */
13838#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13839choke me
13840#else
698dcdb6 13841$ac_func();
10f2d63a
VZ
13842#endif
13843
698dcdb6
VZ
13844; return 0; }
13845EOF
52e8b690 13846if { (eval echo configure:13847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13847 rm -rf conftest*
13848 eval "ac_cv_func_$ac_func=yes"
13849else
13850 echo "configure: failed program was:" >&5
13851 cat conftest.$ac_ext >&5
13852 rm -rf conftest*
13853 eval "ac_cv_func_$ac_func=no"
13854fi
13855rm -f conftest*
13856fi
13857
13858if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13859 echo "$ac_t""yes" 1>&6
13860 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13861 cat >> confdefs.h <<EOF
13862#define $ac_tr_func 1
10f2d63a
VZ
13863EOF
13864 break
698dcdb6
VZ
13865else
13866 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13867fi
13868done
13869
698dcdb6
VZ
13870
13871
13872ac_ext=C
13873# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 13874ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
13875ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13876ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13877cross_compiling=$ac_cv_prog_cxx_cross
13878
6098c7f9 13879
10f2d63a
VZ
13880for ac_func in strtok_r
13881do
698dcdb6 13882echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
52e8b690 13883echo "configure:13884: checking for $ac_func" >&5
698dcdb6
VZ
13884if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13885 echo $ac_n "(cached) $ac_c" 1>&6
13886else
13887 cat > conftest.$ac_ext <<EOF
52e8b690 13888#line 13889 "configure"
10f2d63a
VZ
13889#include "confdefs.h"
13890/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13891 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13892#include <assert.h>
13893/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
13894#ifdef __cplusplus
13895extern "C"
13896#endif
10f2d63a 13897/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13898 builtin and then its argument prototype would still apply. */
13899char $ac_func();
13900
13901int main() {
10f2d63a
VZ
13902
13903/* The GNU C library defines this for functions which it implements
13904 to always fail with ENOSYS. Some functions are actually named
13905 something starting with __ and the normal name is an alias. */
13906#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13907choke me
13908#else
698dcdb6 13909$ac_func();
10f2d63a
VZ
13910#endif
13911
698dcdb6 13912; return 0; }
10f2d63a 13913EOF
52e8b690 13914if { (eval echo configure:13915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13915 rm -rf conftest*
13916 eval "ac_cv_func_$ac_func=yes"
13917else
13918 echo "configure: failed program was:" >&5
13919 cat conftest.$ac_ext >&5
13920 rm -rf conftest*
13921 eval "ac_cv_func_$ac_func=no"
13922fi
13923rm -f conftest*
13924fi
10f2d63a 13925
698dcdb6
VZ
13926if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13927 echo "$ac_t""yes" 1>&6
13928 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13929 cat >> confdefs.h <<EOF
13930#define $ac_tr_func 1
13931EOF
13932
13933else
13934 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13935fi
13936done
13937
698dcdb6 13938
6098c7f9 13939ac_ext=c
698dcdb6 13940# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 13941ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13942ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13943ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13944cross_compiling=$ac_cv_prog_cc_cross
6232543b 13945
1e487827 13946
698dcdb6 13947INET_LINK=
10f2d63a
VZ
13948for ac_func in inet_addr
13949do
698dcdb6 13950echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
52e8b690 13951echo "configure:13952: checking for $ac_func" >&5
698dcdb6
VZ
13952if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13953 echo $ac_n "(cached) $ac_c" 1>&6
13954else
13955 cat > conftest.$ac_ext <<EOF
52e8b690 13956#line 13957 "configure"
10f2d63a
VZ
13957#include "confdefs.h"
13958/* System header to define __stub macros and hopefully few prototypes,
698dcdb6
VZ
13959 which can conflict with char $ac_func(); below. */
13960#include <assert.h>
13961/* Override any gcc2 internal prototype to avoid an error. */
10f2d63a 13962/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13963 builtin and then its argument prototype would still apply. */
13964char $ac_func();
13965
13966int main() {
10f2d63a
VZ
13967
13968/* The GNU C library defines this for functions which it implements
13969 to always fail with ENOSYS. Some functions are actually named
1e487827
VS
13970 something starting with __ and the normal name is an alias. */
13971#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13972choke me
13973#else
698dcdb6 13974$ac_func();
1e487827 13975#endif
703e0a69 13976
698dcdb6
VZ
13977; return 0; }
13978EOF
52e8b690 13979if { (eval echo configure:13980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13980 rm -rf conftest*
13981 eval "ac_cv_func_$ac_func=yes"
13982else
13983 echo "configure: failed program was:" >&5
13984 cat conftest.$ac_ext >&5
13985 rm -rf conftest*
13986 eval "ac_cv_func_$ac_func=no"
13987fi
13988rm -f conftest*
13989fi
13990
13991if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13992 echo "$ac_t""yes" 1>&6
13993 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13994 cat >> confdefs.h <<EOF
13995#define $ac_tr_func 1
13996EOF
13997 cat >> confdefs.h <<\EOF
c63c7106
VZ
13998#define HAVE_INET_ADDR 1
13999EOF
14000
10f2d63a 14001else
698dcdb6
VZ
14002 echo "$ac_t""no" 1>&6
14003echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
52e8b690 14004echo "configure:14005: checking for inet_addr in -lnsl" >&5
698dcdb6
VZ
14005ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
14006if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14007 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 14008else
698dcdb6 14009 ac_save_LIBS="$LIBS"
c63c7106 14010LIBS="-lnsl $LIBS"
698dcdb6 14011cat > conftest.$ac_ext <<EOF
52e8b690 14012#line 14013 "configure"
c63c7106
VZ
14013#include "confdefs.h"
14014/* Override any gcc2 internal prototype to avoid an error. */
14015/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14016 builtin and then its argument prototype would still apply. */
14017char inet_addr();
14018
14019int main() {
14020inet_addr()
14021; return 0; }
14022EOF
52e8b690 14023if { (eval echo configure:14024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14024 rm -rf conftest*
14025 eval "ac_cv_lib_$ac_lib_var=yes"
14026else
14027 echo "configure: failed program was:" >&5
14028 cat conftest.$ac_ext >&5
14029 rm -rf conftest*
14030 eval "ac_cv_lib_$ac_lib_var=no"
14031fi
14032rm -f conftest*
14033LIBS="$ac_save_LIBS"
14034
14035fi
14036if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14037 echo "$ac_t""yes" 1>&6
c63c7106
VZ
14038 INET_LINK="nsl"
14039else
698dcdb6
VZ
14040 echo "$ac_t""no" 1>&6
14041echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
52e8b690 14042echo "configure:14043: checking for inet_addr in -lresolv" >&5
698dcdb6
VZ
14043ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
14044if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14045 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 14046else
698dcdb6 14047 ac_save_LIBS="$LIBS"
c63c7106 14048LIBS="-lresolv $LIBS"
698dcdb6 14049cat > conftest.$ac_ext <<EOF
52e8b690 14050#line 14051 "configure"
c63c7106
VZ
14051#include "confdefs.h"
14052/* Override any gcc2 internal prototype to avoid an error. */
14053/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14054 builtin and then its argument prototype would still apply. */
14055char inet_addr();
14056
14057int main() {
14058inet_addr()
14059; return 0; }
14060EOF
52e8b690 14061if { (eval echo configure:14062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14062 rm -rf conftest*
14063 eval "ac_cv_lib_$ac_lib_var=yes"
14064else
14065 echo "configure: failed program was:" >&5
14066 cat conftest.$ac_ext >&5
14067 rm -rf conftest*
14068 eval "ac_cv_lib_$ac_lib_var=no"
14069fi
14070rm -f conftest*
14071LIBS="$ac_save_LIBS"
c63c7106 14072
6232543b 14073fi
698dcdb6
VZ
14074if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14075 echo "$ac_t""yes" 1>&6
14076 INET_LINK="resolv"
14077
14078else
14079 echo "$ac_t""no" 1>&6
14080fi
c63c7106 14081
698dcdb6 14082
1e487827 14083fi
703e0a69 14084
698dcdb6
VZ
14085
14086
10f2d63a
VZ
14087fi
14088done
14089
698dcdb6 14090
10f2d63a
VZ
14091for ac_func in inet_aton
14092do
698dcdb6 14093echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
52e8b690 14094echo "configure:14095: checking for $ac_func" >&5
698dcdb6
VZ
14095if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14096 echo $ac_n "(cached) $ac_c" 1>&6
14097else
14098 cat > conftest.$ac_ext <<EOF
52e8b690 14099#line 14100 "configure"
10f2d63a
VZ
14100#include "confdefs.h"
14101/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14102 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
14103#include <assert.h>
14104/* Override any gcc2 internal prototype to avoid an error. */
14105/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14106 builtin and then its argument prototype would still apply. */
14107char $ac_func();
14108
14109int main() {
10f2d63a
VZ
14110
14111/* The GNU C library defines this for functions which it implements
14112 to always fail with ENOSYS. Some functions are actually named
14113 something starting with __ and the normal name is an alias. */
14114#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14115choke me
14116#else
698dcdb6 14117$ac_func();
10f2d63a
VZ
14118#endif
14119
698dcdb6
VZ
14120; return 0; }
14121EOF
52e8b690 14122if { (eval echo configure:14123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14123 rm -rf conftest*
14124 eval "ac_cv_func_$ac_func=yes"
14125else
14126 echo "configure: failed program was:" >&5
14127 cat conftest.$ac_ext >&5
14128 rm -rf conftest*
14129 eval "ac_cv_func_$ac_func=no"
14130fi
14131rm -f conftest*
14132fi
14133
14134if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14135 echo "$ac_t""yes" 1>&6
14136 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14137 cat >> confdefs.h <<EOF
14138#define $ac_tr_func 1
14139EOF
14140 cat >> confdefs.h <<\EOF
c63c7106
VZ
14141#define HAVE_INET_ATON 1
14142EOF
14143
10f2d63a 14144else
698dcdb6
VZ
14145 echo "$ac_t""no" 1>&6
14146 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
52e8b690 14147echo "configure:14148: checking for inet_aton in -l$INET_LINK" >&5
698dcdb6
VZ
14148ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
14149if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14150 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14151else
698dcdb6 14152 ac_save_LIBS="$LIBS"
c63c7106 14153LIBS="-l$INET_LINK $LIBS"
698dcdb6 14154cat > conftest.$ac_ext <<EOF
52e8b690 14155#line 14156 "configure"
10f2d63a
VZ
14156#include "confdefs.h"
14157/* Override any gcc2 internal prototype to avoid an error. */
14158/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14159 builtin and then its argument prototype would still apply. */
14160char inet_aton();
14161
14162int main() {
14163inet_aton()
14164; return 0; }
14165EOF
52e8b690 14166if { (eval echo configure:14167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14167 rm -rf conftest*
14168 eval "ac_cv_lib_$ac_lib_var=yes"
14169else
14170 echo "configure: failed program was:" >&5
14171 cat conftest.$ac_ext >&5
14172 rm -rf conftest*
14173 eval "ac_cv_lib_$ac_lib_var=no"
14174fi
14175rm -f conftest*
14176LIBS="$ac_save_LIBS"
14177
14178fi
14179if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14180 echo "$ac_t""yes" 1>&6
14181 cat >> confdefs.h <<\EOF
c63c7106 14182#define HAVE_INET_ATON 1
10f2d63a
VZ
14183EOF
14184
698dcdb6
VZ
14185else
14186 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14187fi
14188
698dcdb6 14189
c63c7106
VZ
14190fi
14191done
14192
698dcdb6 14193
c63c7106 14194if test "x$INET_LINK" != "x"; then
698dcdb6 14195 cat >> confdefs.h <<\EOF
c63c7106
VZ
14196#define HAVE_INET_ADDR 1
14197EOF
14198
14199 INET_LINK="-l$INET_LINK"
14200fi
10f2d63a
VZ
14201
14202fi
14203
698dcdb6
VZ
14204
14205cat > confcache <<\EOF
10f2d63a
VZ
14206# This file is a shell script that caches the results of configure
14207# tests run on this system so they can be shared between configure
698dcdb6
VZ
14208# scripts and configure runs. It is not useful on other systems.
14209# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 14210#
698dcdb6
VZ
14211# By default, configure uses ./config.cache as the cache file,
14212# creating it if it does not exist already. You can give configure
14213# the --cache-file=FILE option to use a different cache file; that is
14214# what configure does when it calls configure scripts in
14215# subdirectories, so they share the cache.
14216# Giving --cache-file=/dev/null disables caching, for debugging configure.
14217# config.status only pays attention to the cache file if you give it the
14218# --recheck option to rerun configure.
10f2d63a 14219#
698dcdb6 14220EOF
10f2d63a
VZ
14221# The following way of writing the cache mishandles newlines in values,
14222# but we know of no workaround that is simple, portable, and efficient.
14223# So, don't put newlines in cache variables' values.
14224# Ultrix sh set writes to stderr and can't be redirected directly,
14225# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
14226(set) 2>&1 |
14227 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14228 *ac_space=\ *)
14229 # `set' does not quote correctly, so add quotes (double-quote substitution
14230 # turns \\\\ into \\, and sed turns \\ into \).
14231 sed -n \
14232 -e "s/'/'\\\\''/g" \
14233 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14234 ;;
14235 *)
14236 # `set' quotes correctly as required by POSIX, so do not add quotes.
14237 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14238 ;;
14239 esac >> confcache
14240if cmp -s $cache_file confcache; then
14241 :
14242else
10f2d63a 14243 if test -w $cache_file; then
698dcdb6
VZ
14244 echo "updating cache $cache_file"
14245 cat confcache > $cache_file
10f2d63a
VZ
14246 else
14247 echo "not updating unwritable cache $cache_file"
14248 fi
14249fi
14250rm -f confcache
14251
698dcdb6
VZ
14252
14253
b089607b 14254if test "$TOOLKIT" != "MSW"; then
10f2d63a 14255
698dcdb6 14256
10f2d63a
VZ
14257THREADS_LINK=""
14258THREADS_OBJ=""
14259
14260if test "$wxUSE_THREADS" = "yes" ; then
14261 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 14262 echo "configure: warning: Threads are not supported under WINE" 1>&2
10f2d63a 14263 wxUSE_THREADS="no"
b12915c1 14264 elif test "$USE_BEOS" = 1; then
698dcdb6 14265 echo "configure: warning: BeOS threads are not yet supported" 1>&2
b12915c1 14266 wxUSE_THREADS="no"
10f2d63a
VZ
14267 fi
14268fi
14269
14270if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 14271
186837b0 14272 if test "$USE_AIX" = 1; then
f6bcfd97
BP
14273 THREADS_LIB=pthreads
14274 else
14275 THREADS_LIB=pthread
14276 fi
14277
698dcdb6 14278 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
52e8b690 14279echo "configure:14280: checking for pthread_create in -l$THREADS_LIB" >&5
698dcdb6
VZ
14280ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
14281if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14282 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14283else
698dcdb6 14284 ac_save_LIBS="$LIBS"
f6bcfd97 14285LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 14286cat > conftest.$ac_ext <<EOF
52e8b690 14287#line 14288 "configure"
10f2d63a
VZ
14288#include "confdefs.h"
14289/* Override any gcc2 internal prototype to avoid an error. */
14290/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14291 builtin and then its argument prototype would still apply. */
14292char pthread_create();
14293
14294int main() {
14295pthread_create()
14296; return 0; }
14297EOF
52e8b690 14298if { (eval echo configure:14299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14299 rm -rf conftest*
14300 eval "ac_cv_lib_$ac_lib_var=yes"
14301else
14302 echo "configure: failed program was:" >&5
14303 cat conftest.$ac_ext >&5
14304 rm -rf conftest*
14305 eval "ac_cv_lib_$ac_lib_var=no"
14306fi
14307rm -f conftest*
14308LIBS="$ac_save_LIBS"
10f2d63a 14309
698dcdb6
VZ
14310fi
14311if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14312 echo "$ac_t""yes" 1>&6
14313
10f2d63a 14314 THREADS_OBJ="threadpsx.lo"
f6bcfd97 14315 THREADS_LINK=$THREADS_LIB
698dcdb6 14316
10f2d63a 14317else
698dcdb6 14318 echo "$ac_t""no" 1>&6
10f2d63a 14319
698dcdb6 14320 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
52e8b690 14321echo "configure:14322: checking for pthread_create in -lc_r" >&5
698dcdb6
VZ
14322ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
14323if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14324 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14325else
698dcdb6 14326 ac_save_LIBS="$LIBS"
10f2d63a 14327LIBS="-lc_r $LIBS"
698dcdb6 14328cat > conftest.$ac_ext <<EOF
52e8b690 14329#line 14330 "configure"
10f2d63a
VZ
14330#include "confdefs.h"
14331/* Override any gcc2 internal prototype to avoid an error. */
14332/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14333 builtin and then its argument prototype would still apply. */
14334char pthread_create();
14335
14336int main() {
14337pthread_create()
14338; return 0; }
14339EOF
52e8b690 14340if { (eval echo configure:14341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14341 rm -rf conftest*
14342 eval "ac_cv_lib_$ac_lib_var=yes"
14343else
14344 echo "configure: failed program was:" >&5
14345 cat conftest.$ac_ext >&5
14346 rm -rf conftest*
14347 eval "ac_cv_lib_$ac_lib_var=no"
14348fi
14349rm -f conftest*
14350LIBS="$ac_save_LIBS"
10f2d63a 14351
698dcdb6
VZ
14352fi
14353if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14354 echo "$ac_t""yes" 1>&6
14355
10f2d63a
VZ
14356 THREADS_OBJ="threadpsx.lo"
14357 THREADS_LINK="c_r"
698dcdb6 14358
10f2d63a 14359else
698dcdb6 14360 echo "$ac_t""no" 1>&6
10f2d63a 14361
698dcdb6
VZ
14362 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
14363echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
52e8b690 14364echo "configure:14365: checking for sys/prctl.h" >&5
698dcdb6
VZ
14365if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14366 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14367else
698dcdb6 14368 cat > conftest.$ac_ext <<EOF
52e8b690 14369#line 14370 "configure"
10f2d63a
VZ
14370#include "confdefs.h"
14371#include <sys/prctl.h>
698dcdb6
VZ
14372EOF
14373ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
52e8b690 14374{ (eval echo configure:14375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14375ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14376if test -z "$ac_err"; then
14377 rm -rf conftest*
14378 eval "ac_cv_header_$ac_safe=yes"
1e487827 14379else
698dcdb6
VZ
14380 echo "$ac_err" >&5
14381 echo "configure: failed program was:" >&5
10f2d63a 14382 cat conftest.$ac_ext >&5
698dcdb6
VZ
14383 rm -rf conftest*
14384 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14385fi
698dcdb6 14386rm -f conftest*
10f2d63a 14387fi
698dcdb6
VZ
14388if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14389 echo "$ac_t""yes" 1>&6
14390
1f8ae82f 14391 THREADS_OBJ="threadsgi.lo"
698dcdb6
VZ
14392
14393else
14394 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14395fi
14396
698dcdb6 14397
6232543b 14398fi
10f2d63a 14399
698dcdb6 14400
1e487827 14401fi
703e0a69 14402
698dcdb6 14403
10f2d63a
VZ
14404 if test -z "$THREADS_OBJ" ; then
14405 wxUSE_THREADS=no
698dcdb6 14406 echo "configure: warning: No thread support on this system" 1>&2
10f2d63a
VZ
14407 fi
14408fi
14409
14410if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 14411 for ac_func in thr_setconcurrency
70846f0a 14412do
698dcdb6 14413echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
52e8b690 14414echo "configure:14415: checking for $ac_func" >&5
698dcdb6
VZ
14415if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14416 echo $ac_n "(cached) $ac_c" 1>&6
14417else
14418 cat > conftest.$ac_ext <<EOF
52e8b690 14419#line 14420 "configure"
70846f0a
VZ
14420#include "confdefs.h"
14421/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14422 which can conflict with char $ac_func(); below. */
70846f0a
VZ
14423#include <assert.h>
14424/* Override any gcc2 internal prototype to avoid an error. */
14425/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14426 builtin and then its argument prototype would still apply. */
14427char $ac_func();
14428
14429int main() {
70846f0a
VZ
14430
14431/* The GNU C library defines this for functions which it implements
14432 to always fail with ENOSYS. Some functions are actually named
14433 something starting with __ and the normal name is an alias. */
14434#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14435choke me
14436#else
698dcdb6 14437$ac_func();
70846f0a
VZ
14438#endif
14439
698dcdb6 14440; return 0; }
70846f0a 14441EOF
52e8b690 14442if { (eval echo configure:14443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14443 rm -rf conftest*
14444 eval "ac_cv_func_$ac_func=yes"
14445else
14446 echo "configure: failed program was:" >&5
14447 cat conftest.$ac_ext >&5
14448 rm -rf conftest*
14449 eval "ac_cv_func_$ac_func=no"
14450fi
14451rm -f conftest*
14452fi
70846f0a 14453
698dcdb6
VZ
14454if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14455 echo "$ac_t""yes" 1>&6
14456 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14457 cat >> confdefs.h <<EOF
14458#define $ac_tr_func 1
14459EOF
14460
14461else
14462 echo "$ac_t""no" 1>&6
70846f0a
VZ
14463fi
14464done
14465
698dcdb6
VZ
14466
14467
14468 for ac_hdr in sched.h
10f2d63a 14469do
698dcdb6
VZ
14470ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14471echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
52e8b690 14472echo "configure:14473: checking for $ac_hdr" >&5
698dcdb6
VZ
14473if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14474 echo $ac_n "(cached) $ac_c" 1>&6
14475else
14476 cat > conftest.$ac_ext <<EOF
52e8b690 14477#line 14478 "configure"
10f2d63a 14478#include "confdefs.h"
698dcdb6
VZ
14479#include <$ac_hdr>
14480EOF
14481ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
52e8b690 14482{ (eval echo configure:14483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14483ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14484if test -z "$ac_err"; then
14485 rm -rf conftest*
14486 eval "ac_cv_header_$ac_safe=yes"
1e487827 14487else
698dcdb6
VZ
14488 echo "$ac_err" >&5
14489 echo "configure: failed program was:" >&5
10f2d63a 14490 cat conftest.$ac_ext >&5
698dcdb6
VZ
14491 rm -rf conftest*
14492 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14493fi
698dcdb6 14494rm -f conftest*
10f2d63a 14495fi
698dcdb6
VZ
14496if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14497 echo "$ac_t""yes" 1>&6
14498 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14499 cat >> confdefs.h <<EOF
14500#define $ac_tr_hdr 1
10f2d63a 14501EOF
698dcdb6
VZ
14502
14503else
14504 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14505fi
14506done
14507
698dcdb6
VZ
14508
14509 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
52e8b690 14510echo "configure:14511: checking for sched_yield in -l$THREADS_LINK" >&5
698dcdb6
VZ
14511ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
14512if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14513 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14514else
698dcdb6 14515 ac_save_LIBS="$LIBS"
10f2d63a 14516LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14517cat > conftest.$ac_ext <<EOF
52e8b690 14518#line 14519 "configure"
10f2d63a
VZ
14519#include "confdefs.h"
14520/* Override any gcc2 internal prototype to avoid an error. */
14521/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14522 builtin and then its argument prototype would still apply. */
14523char sched_yield();
14524
14525int main() {
14526sched_yield()
14527; return 0; }
14528EOF
52e8b690 14529if { (eval echo configure:14530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14530 rm -rf conftest*
14531 eval "ac_cv_lib_$ac_lib_var=yes"
14532else
14533 echo "configure: failed program was:" >&5
14534 cat conftest.$ac_ext >&5
14535 rm -rf conftest*
14536 eval "ac_cv_lib_$ac_lib_var=no"
14537fi
14538rm -f conftest*
14539LIBS="$ac_save_LIBS"
14540
14541fi
14542if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14543 echo "$ac_t""yes" 1>&6
14544 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14545#define HAVE_SCHED_YIELD 1
14546EOF
14547
14548else
698dcdb6
VZ
14549 echo "$ac_t""no" 1>&6
14550echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
52e8b690 14551echo "configure:14552: checking for sched_yield in -lposix4" >&5
698dcdb6
VZ
14552ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
14553if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14554 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14555else
698dcdb6 14556 ac_save_LIBS="$LIBS"
1e487827 14557LIBS="-lposix4 $LIBS"
698dcdb6 14558cat > conftest.$ac_ext <<EOF
52e8b690 14559#line 14560 "configure"
10f2d63a
VZ
14560#include "confdefs.h"
14561/* Override any gcc2 internal prototype to avoid an error. */
14562/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14563 builtin and then its argument prototype would still apply. */
14564char sched_yield();
14565
14566int main() {
14567sched_yield()
14568; return 0; }
14569EOF
52e8b690 14570if { (eval echo configure:14571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14571 rm -rf conftest*
14572 eval "ac_cv_lib_$ac_lib_var=yes"
14573else
14574 echo "configure: failed program was:" >&5
14575 cat conftest.$ac_ext >&5
14576 rm -rf conftest*
14577 eval "ac_cv_lib_$ac_lib_var=no"
14578fi
14579rm -f conftest*
14580LIBS="$ac_save_LIBS"
14581
14582fi
14583if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14584 echo "$ac_t""yes" 1>&6
14585 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14586#define HAVE_SCHED_YIELD 1
14587EOF
14588 POSIX4_LINK="-lposix4"
14589else
698dcdb6
VZ
14590 echo "$ac_t""no" 1>&6
14591echo "configure: warning: wxThread::Yield will not work properly" 1>&2
14592
6232543b 14593fi
10f2d63a 14594
698dcdb6 14595
1e487827 14596fi
703e0a69 14597
698dcdb6 14598
f6bcfd97 14599 HAVE_PRIOR_FUNCS=0
698dcdb6 14600 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
52e8b690 14601echo "configure:14602: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
698dcdb6
VZ
14602ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
14603if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14604 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14605else
698dcdb6 14606 ac_save_LIBS="$LIBS"
10f2d63a 14607LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14608cat > conftest.$ac_ext <<EOF
52e8b690 14609#line 14610 "configure"
10f2d63a
VZ
14610#include "confdefs.h"
14611/* Override any gcc2 internal prototype to avoid an error. */
14612/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14613 builtin and then its argument prototype would still apply. */
14614char pthread_attr_getschedpolicy();
14615
14616int main() {
14617pthread_attr_getschedpolicy()
14618; return 0; }
14619EOF
52e8b690 14620if { (eval echo configure:14621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14621 rm -rf conftest*
14622 eval "ac_cv_lib_$ac_lib_var=yes"
14623else
14624 echo "configure: failed program was:" >&5
14625 cat conftest.$ac_ext >&5
14626 rm -rf conftest*
14627 eval "ac_cv_lib_$ac_lib_var=no"
14628fi
14629rm -f conftest*
14630LIBS="$ac_save_LIBS"
14631
14632fi
14633if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14634 echo "$ac_t""yes" 1>&6
14635 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
52e8b690 14636echo "configure:14637: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
698dcdb6
VZ
14637ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
14638if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14639 echo $ac_n "(cached) $ac_c" 1>&6
14640else
14641 ac_save_LIBS="$LIBS"
f6bcfd97 14642LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14643cat > conftest.$ac_ext <<EOF
52e8b690 14644#line 14645 "configure"
f6bcfd97
BP
14645#include "confdefs.h"
14646/* Override any gcc2 internal prototype to avoid an error. */
14647/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14648 builtin and then its argument prototype would still apply. */
14649char pthread_attr_setschedparam();
14650
14651int main() {
14652pthread_attr_setschedparam()
14653; return 0; }
14654EOF
52e8b690 14655if { (eval echo configure:14656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14656 rm -rf conftest*
14657 eval "ac_cv_lib_$ac_lib_var=yes"
14658else
14659 echo "configure: failed program was:" >&5
14660 cat conftest.$ac_ext >&5
14661 rm -rf conftest*
14662 eval "ac_cv_lib_$ac_lib_var=no"
14663fi
14664rm -f conftest*
14665LIBS="$ac_save_LIBS"
14666
14667fi
14668if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14669 echo "$ac_t""yes" 1>&6
14670 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
52e8b690 14671echo "configure:14672: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
698dcdb6
VZ
14672ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14673if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14674 echo $ac_n "(cached) $ac_c" 1>&6
14675else
14676 ac_save_LIBS="$LIBS"
f6bcfd97 14677LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14678cat > conftest.$ac_ext <<EOF
52e8b690 14679#line 14680 "configure"
f6bcfd97
BP
14680#include "confdefs.h"
14681/* Override any gcc2 internal prototype to avoid an error. */
14682/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14683 builtin and then its argument prototype would still apply. */
14684char sched_get_priority_max();
14685
14686int main() {
14687sched_get_priority_max()
14688; return 0; }
14689EOF
52e8b690 14690if { (eval echo configure:14691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14691 rm -rf conftest*
14692 eval "ac_cv_lib_$ac_lib_var=yes"
14693else
14694 echo "configure: failed program was:" >&5
14695 cat conftest.$ac_ext >&5
14696 rm -rf conftest*
14697 eval "ac_cv_lib_$ac_lib_var=no"
14698fi
14699rm -f conftest*
14700LIBS="$ac_save_LIBS"
14701
14702fi
14703if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14704 echo "$ac_t""yes" 1>&6
f6bcfd97 14705 HAVE_PRIOR_FUNCS=1
10f2d63a 14706else
698dcdb6
VZ
14707 echo "$ac_t""no" 1>&6
14708echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
52e8b690 14709echo "configure:14710: checking for sched_get_priority_max in -lposix4" >&5
698dcdb6
VZ
14710ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14711if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14712 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 14713else
698dcdb6 14714 ac_save_LIBS="$LIBS"
1e487827 14715LIBS="-lposix4 $LIBS"
698dcdb6 14716cat > conftest.$ac_ext <<EOF
52e8b690 14717#line 14718 "configure"
10f2d63a 14718#include "confdefs.h"
6232543b 14719/* Override any gcc2 internal prototype to avoid an error. */
6232543b 14720/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14721 builtin and then its argument prototype would still apply. */
14722char sched_get_priority_max();
14723
14724int main() {
14725sched_get_priority_max()
14726; return 0; }
14727EOF
52e8b690 14728if { (eval echo configure:14729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14729 rm -rf conftest*
14730 eval "ac_cv_lib_$ac_lib_var=yes"
14731else
14732 echo "configure: failed program was:" >&5
14733 cat conftest.$ac_ext >&5
14734 rm -rf conftest*
14735 eval "ac_cv_lib_$ac_lib_var=no"
14736fi
14737rm -f conftest*
14738LIBS="$ac_save_LIBS"
10f2d63a 14739
698dcdb6
VZ
14740fi
14741if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14742 echo "$ac_t""yes" 1>&6
14743
f6bcfd97
BP
14744 HAVE_PRIOR_FUNCS=1
14745 POSIX4_LINK="-lposix4"
698dcdb6
VZ
14746
14747else
14748 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14749fi
14750
698dcdb6 14751
10f2d63a
VZ
14752fi
14753
698dcdb6
VZ
14754
14755else
14756 echo "$ac_t""no" 1>&6
6232543b 14757fi
10f2d63a 14758
698dcdb6
VZ
14759
14760else
14761 echo "$ac_t""no" 1>&6
1e487827 14762fi
703e0a69 14763
698dcdb6 14764
f6bcfd97 14765 if test "$HAVE_PRIOR_FUNCS" = 1; then
698dcdb6 14766 cat >> confdefs.h <<\EOF
f6bcfd97
BP
14767#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
14768EOF
14769
14770 else
698dcdb6 14771 echo "configure: warning: Setting thread priority will not work" 1>&2
f6bcfd97
BP
14772 fi
14773
698dcdb6 14774 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
52e8b690 14775echo "configure:14776: checking for pthread_cancel in -l$THREADS_LINK" >&5
698dcdb6
VZ
14776ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
14777if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14778 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14779else
698dcdb6 14780 ac_save_LIBS="$LIBS"
10f2d63a 14781LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14782cat > conftest.$ac_ext <<EOF
52e8b690 14783#line 14784 "configure"
10f2d63a
VZ
14784#include "confdefs.h"
14785/* Override any gcc2 internal prototype to avoid an error. */
14786/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14787 builtin and then its argument prototype would still apply. */
14788char pthread_cancel();
14789
14790int main() {
14791pthread_cancel()
14792; return 0; }
14793EOF
52e8b690 14794if { (eval echo configure:14795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14795 rm -rf conftest*
14796 eval "ac_cv_lib_$ac_lib_var=yes"
14797else
14798 echo "configure: failed program was:" >&5
14799 cat conftest.$ac_ext >&5
14800 rm -rf conftest*
14801 eval "ac_cv_lib_$ac_lib_var=no"
14802fi
14803rm -f conftest*
14804LIBS="$ac_save_LIBS"
14805
14806fi
14807if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14808 echo "$ac_t""yes" 1>&6
14809 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14810#define HAVE_PTHREAD_CANCEL 1
14811EOF
14812
14813else
698dcdb6
VZ
14814 echo "$ac_t""no" 1>&6
14815echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10f2d63a
VZ
14816fi
14817
1e487827 14818
698dcdb6 14819 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
52e8b690 14820echo "configure:14821: checking for pthread_cleanup_push/pop" >&5
698dcdb6
VZ
14821if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
14822 echo $ac_n "(cached) $ac_c" 1>&6
14823else
14824
14825 cat > conftest.$ac_ext <<EOF
52e8b690 14826#line 14827 "configure"
10f2d63a
VZ
14827#include "confdefs.h"
14828#include <pthread.h>
698dcdb6 14829int main() {
10f2d63a
VZ
14830
14831 pthread_cleanup_push(NULL, NULL);
14832 pthread_cleanup_pop(0);
698dcdb6
VZ
14833
14834; return 0; }
14835EOF
52e8b690 14836if { (eval echo configure:14837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14837 rm -rf conftest*
14838
10f2d63a 14839 wx_cv_func_pthread_cleanup_push=yes
698dcdb6 14840
10f2d63a 14841else
698dcdb6
VZ
14842 echo "configure: failed program was:" >&5
14843 cat conftest.$ac_ext >&5
14844 rm -rf conftest*
14845
10f2d63a 14846 wx_cv_func_pthread_cleanup_push=no
698dcdb6 14847
6232543b 14848fi
698dcdb6
VZ
14849rm -f conftest*
14850
1e487827 14851fi
698dcdb6
VZ
14852
14853echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
10f2d63a 14854
d9b9876f 14855 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
698dcdb6 14856 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14857#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
14858EOF
14859
14860 fi
14861
698dcdb6 14862
b48da802
VZ
14863 if test "x$wx_lib_glibc21" = "xyes"; then
14864 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
ab252f7b
VZ
14865 fi
14866
698dcdb6 14867 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
52e8b690 14868echo "configure:14869: checking for pthread_mutexattr_t" >&5
698dcdb6
VZ
14869if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
14870 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 14871else
698dcdb6
VZ
14872
14873 cat > conftest.$ac_ext <<EOF
52e8b690 14874#line 14875 "configure"
d9b9876f
VZ
14875#include "confdefs.h"
14876#include <pthread.h>
698dcdb6 14877int main() {
d9b9876f
VZ
14878
14879 pthread_mutexattr_t attr;
14880 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
698dcdb6
VZ
14881
14882; return 0; }
14883EOF
52e8b690 14884if { (eval echo configure:14885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14885 rm -rf conftest*
14886
d9b9876f 14887 wx_cv_type_pthread_mutexattr_t=yes
698dcdb6 14888
d9b9876f 14889else
698dcdb6
VZ
14890 echo "configure: failed program was:" >&5
14891 cat conftest.$ac_ext >&5
14892 rm -rf conftest*
14893
d9b9876f 14894 wx_cv_type_pthread_mutexattr_t=no
698dcdb6
VZ
14895
14896
6232543b 14897fi
698dcdb6
VZ
14898rm -f conftest*
14899
1e487827 14900fi
698dcdb6
VZ
14901
14902echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
d9b9876f
VZ
14903
14904 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
698dcdb6 14905 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14906#define HAVE_PTHREAD_MUTEXATTR_T 1
14907EOF
14908
14909 else
698dcdb6 14910 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
52e8b690 14911echo "configure:14912: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
698dcdb6
VZ
14912if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
14913 echo $ac_n "(cached) $ac_c" 1>&6
14914else
14915
14916 cat > conftest.$ac_ext <<EOF
52e8b690 14917#line 14918 "configure"
d9b9876f
VZ
14918#include "confdefs.h"
14919#include <pthread.h>
698dcdb6 14920int main() {
d9b9876f
VZ
14921
14922 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
698dcdb6
VZ
14923
14924; return 0; }
14925EOF
52e8b690 14926if { (eval echo configure:14927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14927 rm -rf conftest*
14928
d9b9876f 14929 wx_cv_type_pthread_rec_mutex_init=yes
698dcdb6 14930
d9b9876f 14931else
698dcdb6
VZ
14932 echo "configure: failed program was:" >&5
14933 cat conftest.$ac_ext >&5
14934 rm -rf conftest*
14935
d9b9876f 14936 wx_cv_type_pthread_rec_mutex_init=no
698dcdb6
VZ
14937
14938
6232543b 14939fi
698dcdb6
VZ
14940rm -f conftest*
14941
1e487827 14942fi
698dcdb6
VZ
14943
14944echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
3765e936 14945 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
698dcdb6 14946 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14947#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
14948EOF
14949
14950 else
698dcdb6 14951 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
d9b9876f
VZ
14952 fi
14953 fi
14954
10f2d63a 14955 THREADS_LINK="-l$THREADS_LINK"
186837b0
VZ
14956
14957 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
a3cb1afc 14958 CPPFLAGS="${CFLAGS} -mt"
186837b0
VZ
14959 CXXFLAGS="${CXXFLAGS} -mt"
14960 LDFLAGS="${LDFLAGS} -mt"
14961 fi
10f2d63a
VZ
14962fi
14963
14964fi
14965
14966if test "$wxUSE_THREADS" = "yes"; then
698dcdb6 14967 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14968#define wxUSE_THREADS 1
14969EOF
14970
698dcdb6 14971
7b6058cd 14972 if test "$USE_DARWIN" != 1; then
a3cb1afc 14973 CPPFLAGS="${CPPFLAGS} -D_REENTRANT"
2c6025bc 14974 fi
10f2d63a
VZ
14975
14976 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
14977else
14978 if test "$ac_cv_func_strtok_r" = "yes"; then
698dcdb6 14979 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
52e8b690 14980echo "configure:14981: checking if -D_REENTRANT is needed" >&5
ab9b9eab 14981 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
a3cb1afc 14982 CPPFLAGS="${CPPFLAGS} -D_REENTRANT"
698dcdb6 14983 echo "$ac_t""yes" 1>&6
ab9b9eab 14984 else
698dcdb6 14985 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14986 fi
14987 fi
14988fi
14989
6f72b082 14990if test "$WXGTK20" = 1 ; then
698dcdb6 14991 cat >> confdefs.h <<EOF
6f72b082 14992#define __WXGTK20__ $WXGTK20
13111b2a
VZ
14993EOF
14994
14995 WXGTK12=1
14996fi
14997
10f2d63a 14998if test "$WXGTK12" = 1 ; then
698dcdb6 14999 cat >> confdefs.h <<EOF
10f2d63a
VZ
15000#define __WXGTK12__ $WXGTK12
15001EOF
15002
15003fi
15004
f6bcfd97 15005if test "$WXGTK127" = 1 ; then
698dcdb6 15006 cat >> confdefs.h <<EOF
f6bcfd97
BP
15007#define __WXGTK127__ $WXGTK127
15008EOF
15009
15010fi
15011
10f2d63a
VZ
15012if test "$WXWINE" = 1 ; then
15013 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
15014fi
15015
b4085ce6 15016if test "$wxUSE_MAC" = 1 ; then
f11bdd03 15017 TOOLKIT_DEF="${TOOLKIT_DEF} -DTARGET_CARBON"
a3cb1afc
VZ
15018 CPPFLAGS="${CPPFLAGS} -fpascal-strings"
15019 CXXFLAGS="${CXXFLAGS} -cpp-precomp"
2f51a9ec
GD
15020 # Extract the first word of "Rez", so it can be a program name with args.
15021set dummy Rez; ac_word=$2
698dcdb6 15022echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
52e8b690 15023echo "configure:15024: checking for $ac_word" >&5
698dcdb6
VZ
15024if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then
15025 echo $ac_n "(cached) $ac_c" 1>&6
2f51a9ec
GD
15026else
15027 if test -n "$REZ"; then
15028 ac_cv_prog_REZ="$REZ" # Let the user override the test.
15029else
698dcdb6
VZ
15030 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15031 ac_dummy="$PATH"
15032 for ac_dir in $ac_dummy; do
15033 test -z "$ac_dir" && ac_dir=.
15034 if test -f $ac_dir/$ac_word; then
15035 ac_cv_prog_REZ="Rez"
15036 break
15037 fi
15038 done
15039 IFS="$ac_save_ifs"
2f51a9ec
GD
15040 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
15041fi
15042fi
698dcdb6 15043REZ="$ac_cv_prog_REZ"
2f51a9ec 15044if test -n "$REZ"; then
698dcdb6 15045 echo "$ac_t""$REZ" 1>&6
2f51a9ec 15046else
698dcdb6 15047 echo "$ac_t""no" 1>&6
2f51a9ec
GD
15048fi
15049
15050 # Extract the first word of "Derez", so it can be a program name with args.
15051set dummy Derez; ac_word=$2
698dcdb6 15052echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
52e8b690 15053echo "configure:15054: checking for $ac_word" >&5
698dcdb6
VZ
15054if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
15055 echo $ac_n "(cached) $ac_c" 1>&6
2f51a9ec
GD
15056else
15057 if test -n "$DEREZ"; then
15058 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
15059else
698dcdb6
VZ
15060 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15061 ac_dummy="$PATH"
15062 for ac_dir in $ac_dummy; do
15063 test -z "$ac_dir" && ac_dir=.
15064 if test -f $ac_dir/$ac_word; then
15065 ac_cv_prog_DEREZ="Derez"
15066 break
15067 fi
15068 done
15069 IFS="$ac_save_ifs"
2f51a9ec
GD
15070 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
15071fi
15072fi
698dcdb6 15073DEREZ="$ac_cv_prog_DEREZ"
2f51a9ec 15074if test -n "$DEREZ"; then
698dcdb6 15075 echo "$ac_t""$DEREZ" 1>&6
2f51a9ec 15076else
698dcdb6 15077 echo "$ac_t""no" 1>&6
2f51a9ec
GD
15078fi
15079
15080 RESCOMP=${REZ}
15081 REZFLAGS="-d __UNIX__ -useDF"
15082 DEREZFLAGS="Carbon.r -useDF"
15083 RESFLAGS="Carbon.r -t APPL"
15084 LIBWXMACRES="\$(LIBWX_MACRES)"
15085 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
b4085ce6
GD
15086fi
15087
10f2d63a
VZ
15088if test "$wxUSE_CYGWIN" = 1 ; then
15089 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
15090fi
15091
15092WXDEBUG=
15093
15094if test "$wxUSE_DEBUG_INFO" = "yes" ; then
15095 WXDEBUG="-g"
15096 wxUSE_OPTIMISE=no
15097fi
15098
15099if test "$wxUSE_DEBUG_GDB" = "yes" ; then
15100 wxUSE_DEBUG_INFO=yes
15101 WXDEBUG="-ggdb"
15102fi
15103
15104if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
698dcdb6 15105 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15106#define WXDEBUG 1
15107EOF
15108
15109 WXDEBUG_DEFINE="-D__WXDEBUG__"
15110else
15111 if test "$wxUSE_GTK" = 1 ; then
15112 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
15113 fi
15114fi
15115
15116if test "$wxUSE_MEM_TRACING" = "yes" ; then
698dcdb6 15117 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15118#define wxUSE_MEMORY_TRACING 1
15119EOF
15120
698dcdb6 15121 cat >> confdefs.h <<\EOF
10f2d63a 15122#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
15123EOF
15124
698dcdb6 15125 cat >> confdefs.h <<\EOF
47c13eb7 15126#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
15127EOF
15128
15129 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
15130fi
15131
15132if test "$wxUSE_DMALLOC" = "yes" ; then
15133 DMALLOC_LINK="-ldmalloc"
15134fi
15135
15136PROFILE=
15137if test "$wxUSE_PROFILE" = "yes" ; then
15138 PROFILE="-pg"
15139fi
15140
15141DEP_INFO_FLAGS=
caa2c79b 15142CODE_GEN_FLAGS=
0f3f1cbc 15143CODE_GEN_FLAGS_CXX=
10f2d63a
VZ
15144if test "$GCC" = yes ; then
15145 if test "$wxUSE_NO_RTTI" = "yes" ; then
0f3f1cbc 15146 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
15147 fi
15148 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
0f3f1cbc 15149 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
15150 fi
15151 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 15152 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
15153 fi
15154 if test "$wxUSE_NO_DEPS" = "no" ; then
15155 DEP_INFO_FLAGS="-MMD"
15156 fi
15157fi
15158
698dcdb6 15159
10f2d63a
VZ
15160CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
15161CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
15162if test "$wxUSE_OPTIMISE" = "no" ; then
15163 OPTIMISE=
15164else
15165 if test "$GCC" = yes ; then
15166 OPTIMISE="-O2"
15167 case "${host}" in
15168 i586-*-*|i686-*-* )
15169 OPTIMISE="${OPTIMISE} "
15170 ;;
15171 esac
15172 else
15173 OPTIMISE="-O"
15174 fi
15175fi
15176
54276ccf
VZ
15177if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
15178 cat >> confdefs.h <<\EOF
15179#define WXWIN_COMPATIBILITY_2 1
15180EOF
15181
15182
15183 WXWIN_COMPATIBILITY_2_2="yes"
15184fi
15185
15186if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
15187 cat >> confdefs.h <<\EOF
15188#define WXWIN_COMPATIBILITY_2_2 1
15189EOF
15190
15191fi
15192
698dcdb6 15193
10f2d63a 15194ZLIB_INCLUDE=
422107f9 15195if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
698dcdb6 15196 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15197#define wxUSE_ZLIB 1
15198EOF
15199
422107f9
VZ
15200 if test "$wxUSE_ZLIB" = "yes" ; then
15201 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
15202 else
15203 ZLIB_LINK=
698dcdb6
VZ
15204 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
15205echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
52e8b690 15206echo "configure:15207: checking for zlib.h" >&5
698dcdb6
VZ
15207if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15208 echo $ac_n "(cached) $ac_c" 1>&6
15209else
15210 cat > conftest.$ac_ext <<EOF
52e8b690 15211#line 15212 "configure"
422107f9
VZ
15212#include "confdefs.h"
15213#include <zlib.h>
698dcdb6
VZ
15214EOF
15215ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
52e8b690 15216{ (eval echo configure:15217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15217ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15218if test -z "$ac_err"; then
15219 rm -rf conftest*
15220 eval "ac_cv_header_$ac_safe=yes"
422107f9 15221else
698dcdb6
VZ
15222 echo "$ac_err" >&5
15223 echo "configure: failed program was:" >&5
422107f9 15224 cat conftest.$ac_ext >&5
698dcdb6
VZ
15225 rm -rf conftest*
15226 eval "ac_cv_header_$ac_safe=no"
422107f9 15227fi
698dcdb6 15228rm -f conftest*
422107f9 15229fi
698dcdb6
VZ
15230if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15231 echo "$ac_t""yes" 1>&6
15232 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
52e8b690 15233echo "configure:15234: checking for deflate in -lz" >&5
698dcdb6
VZ
15234ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
15235if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15236 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15237else
698dcdb6 15238 ac_save_LIBS="$LIBS"
422107f9 15239LIBS="-lz $LIBS"
698dcdb6 15240cat > conftest.$ac_ext <<EOF
52e8b690 15241#line 15242 "configure"
422107f9
VZ
15242#include "confdefs.h"
15243/* Override any gcc2 internal prototype to avoid an error. */
15244/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15245 builtin and then its argument prototype would still apply. */
15246char deflate();
15247
15248int main() {
15249deflate()
15250; return 0; }
15251EOF
52e8b690 15252if { (eval echo configure:15253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15253 rm -rf conftest*
15254 eval "ac_cv_lib_$ac_lib_var=yes"
15255else
15256 echo "configure: failed program was:" >&5
15257 cat conftest.$ac_ext >&5
15258 rm -rf conftest*
15259 eval "ac_cv_lib_$ac_lib_var=no"
15260fi
15261rm -f conftest*
15262LIBS="$ac_save_LIBS"
15263
15264fi
15265if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15266 echo "$ac_t""yes" 1>&6
422107f9 15267 ZLIB_LINK="-lz"
698dcdb6
VZ
15268else
15269 echo "$ac_t""no" 1>&6
422107f9
VZ
15270fi
15271
698dcdb6
VZ
15272else
15273 echo "$ac_t""no" 1>&6
422107f9
VZ
15274fi
15275
15276 if test "x$ZLIB_LINK" = "x" ; then
698dcdb6 15277 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
422107f9
VZ
15278 fi
15279 fi
10f2d63a
VZ
15280fi
15281
15282PNG_INCLUDE=
422107f9 15283if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
698dcdb6 15284 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15285#define wxUSE_LIBPNG 1
15286EOF
15287
41fd4136 15288 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
698dcdb6 15289 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
422107f9
VZ
15290 wxUSE_LIBPNG=yes
15291 fi
15292
15293 if test "$wxUSE_LIBPNG" = "yes" ; then
15294 PNG_INCLUDE="-I\${top_srcdir}/src/png"
15295 else
15296 PNG_LINK=
698dcdb6
VZ
15297 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
15298echo $ac_n "checking for png.h""... $ac_c" 1>&6
52e8b690 15299echo "configure:15300: checking for png.h" >&5
698dcdb6
VZ
15300if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15301 echo $ac_n "(cached) $ac_c" 1>&6
15302else
15303 cat > conftest.$ac_ext <<EOF
52e8b690 15304#line 15305 "configure"
422107f9
VZ
15305#include "confdefs.h"
15306#include <png.h>
698dcdb6
VZ
15307EOF
15308ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
52e8b690 15309{ (eval echo configure:15310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15310ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15311if test -z "$ac_err"; then
15312 rm -rf conftest*
15313 eval "ac_cv_header_$ac_safe=yes"
422107f9 15314else
698dcdb6
VZ
15315 echo "$ac_err" >&5
15316 echo "configure: failed program was:" >&5
422107f9 15317 cat conftest.$ac_ext >&5
698dcdb6
VZ
15318 rm -rf conftest*
15319 eval "ac_cv_header_$ac_safe=no"
422107f9 15320fi
698dcdb6 15321rm -f conftest*
422107f9 15322fi
698dcdb6
VZ
15323if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15324 echo "$ac_t""yes" 1>&6
15325 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
52e8b690 15326echo "configure:15327: checking for png_check_sig in -lpng" >&5
698dcdb6
VZ
15327ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
15328if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15329 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15330else
698dcdb6 15331 ac_save_LIBS="$LIBS"
422107f9 15332LIBS="-lpng -lz -lm $LIBS"
698dcdb6 15333cat > conftest.$ac_ext <<EOF
52e8b690 15334#line 15335 "configure"
422107f9
VZ
15335#include "confdefs.h"
15336/* Override any gcc2 internal prototype to avoid an error. */
15337/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15338 builtin and then its argument prototype would still apply. */
15339char png_check_sig();
15340
15341int main() {
15342png_check_sig()
15343; return 0; }
15344EOF
52e8b690 15345if { (eval echo configure:15346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15346 rm -rf conftest*
15347 eval "ac_cv_lib_$ac_lib_var=yes"
15348else
15349 echo "configure: failed program was:" >&5
15350 cat conftest.$ac_ext >&5
15351 rm -rf conftest*
15352 eval "ac_cv_lib_$ac_lib_var=no"
15353fi
15354rm -f conftest*
15355LIBS="$ac_save_LIBS"
15356
15357fi
15358if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15359 echo "$ac_t""yes" 1>&6
422107f9 15360 PNG_LINK="-lpng"
698dcdb6
VZ
15361else
15362 echo "$ac_t""no" 1>&6
422107f9
VZ
15363fi
15364
698dcdb6
VZ
15365
15366else
15367 echo "$ac_t""no" 1>&6
422107f9
VZ
15368fi
15369
15370 if test "x$PNG_LINK" = "x" ; then
698dcdb6 15371 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
15372 fi
15373 fi
15374
10f2d63a
VZ
15375 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
15376fi
15377
15378JPEG_INCLUDE=
422107f9 15379if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
698dcdb6 15380 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15381#define wxUSE_LIBJPEG 1
15382EOF
15383
422107f9
VZ
15384 if test "$wxUSE_LIBJPEG" = "yes" ; then
15385 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
15386 else
15387 JPEG_LINK=
463abc64 15388 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
52e8b690 15389echo "configure:15390: checking for jpeglib.h" >&5
463abc64 15390 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
698dcdb6
VZ
15391 echo $ac_n "(cached) $ac_c" 1>&6
15392else
15393 cat > conftest.$ac_ext <<EOF
52e8b690 15394#line 15395 "configure"
422107f9 15395#include "confdefs.h"
463abc64
VZ
15396
15397 #undef HAVE_STDLIB_H
15398 #include <stdio.h>
15399 #include <jpeglib.h>
15400
15401int main() {
15402
15403
15404; return 0; }
698dcdb6 15405EOF
52e8b690 15406if { (eval echo configure:15407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15407 rm -rf conftest*
463abc64 15408 ac_cv_header_jpeglib_h=yes
6232543b 15409else
698dcdb6 15410 echo "configure: failed program was:" >&5
422107f9 15411 cat conftest.$ac_ext >&5
698dcdb6 15412 rm -rf conftest*
463abc64
VZ
15413 ac_cv_header_jpeglib_h=no
15414
422107f9 15415fi
698dcdb6 15416rm -f conftest*
463abc64 15417
422107f9 15418fi
463abc64
VZ
15419
15420 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
15421
15422 if test "$ac_cv_header_jpeglib_h" = "yes"; then
15423 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
52e8b690 15424echo "configure:15425: checking for jpeg_read_header in -ljpeg" >&5
698dcdb6
VZ
15425ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
15426if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15427 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15428else
698dcdb6 15429 ac_save_LIBS="$LIBS"
422107f9 15430LIBS="-ljpeg $LIBS"
698dcdb6 15431cat > conftest.$ac_ext <<EOF
52e8b690 15432#line 15433 "configure"
422107f9
VZ
15433#include "confdefs.h"
15434/* Override any gcc2 internal prototype to avoid an error. */
15435/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15436 builtin and then its argument prototype would still apply. */
15437char jpeg_read_header();
15438
15439int main() {
15440jpeg_read_header()
15441; return 0; }
15442EOF
52e8b690 15443if { (eval echo configure:15444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15444 rm -rf conftest*
15445 eval "ac_cv_lib_$ac_lib_var=yes"
15446else
15447 echo "configure: failed program was:" >&5
15448 cat conftest.$ac_ext >&5
15449 rm -rf conftest*
15450 eval "ac_cv_lib_$ac_lib_var=no"
15451fi
15452rm -f conftest*
15453LIBS="$ac_save_LIBS"
15454
15455fi
15456if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15457 echo "$ac_t""yes" 1>&6
422107f9 15458 JPEG_LINK="-ljpeg"
698dcdb6
VZ
15459else
15460 echo "$ac_t""no" 1>&6
422107f9
VZ
15461fi
15462
463abc64 15463 fi
422107f9
VZ
15464
15465 if test "x$JPEG_LINK" = "x" ; then
698dcdb6 15466 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
15467 fi
15468 fi
10f2d63a
VZ
15469fi
15470
c7a2bf27 15471TIFF_INCLUDE=
0dcf9893 15472if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
698dcdb6 15473 cat >> confdefs.h <<\EOF
c7a2bf27
RR
15474#define wxUSE_LIBTIFF 1
15475EOF
15476
665bbe97 15477 if test "$wxUSE_LIBTIFF" = "yes" ; then
0dcf9893
VZ
15478 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
15479 else
15480 TIFF_LINK=
698dcdb6
VZ
15481 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
15482echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
52e8b690 15483echo "configure:15484: checking for tiffio.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
52e8b690 15488#line 15489 "configure"
0dcf9893
VZ
15489#include "confdefs.h"
15490#include <tiffio.h>
698dcdb6
VZ
15491EOF
15492ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
52e8b690 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"
1e487827 15498else
698dcdb6
VZ
15499 echo "$ac_err" >&5
15500 echo "configure: failed program was:" >&5
0dcf9893 15501 cat conftest.$ac_ext >&5
698dcdb6
VZ
15502 rm -rf conftest*
15503 eval "ac_cv_header_$ac_safe=no"
0dcf9893 15504fi
698dcdb6 15505rm -f conftest*
0dcf9893 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 TIFFError in -ltiff""... $ac_c" 1>&6
52e8b690 15510echo "configure:15511: checking for TIFFError in -ltiff" >&5
698dcdb6
VZ
15511ac_lib_var=`echo tiff'_'TIFFError | 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
0dcf9893 15514else
698dcdb6 15515 ac_save_LIBS="$LIBS"
0dcf9893 15516LIBS="-ltiff -lm $LIBS"
698dcdb6 15517cat > conftest.$ac_ext <<EOF
52e8b690 15518#line 15519 "configure"
0dcf9893
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 TIFFError();
15524
15525int main() {
15526TIFFError()
15527; return 0; }
15528EOF
52e8b690 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
0dcf9893 15544 TIFF_LINK="-ltiff"
698dcdb6
VZ
15545else
15546 echo "$ac_t""no" 1>&6
0dcf9893
VZ
15547fi
15548
698dcdb6
VZ
15549else
15550 echo "$ac_t""no" 1>&6
0dcf9893
VZ
15551fi
15552
15553 if test "x$TIFF_LINK" = "x" ; then
698dcdb6 15554 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
0dcf9893
VZ
15555 fi
15556 fi
c7a2bf27
RR
15557fi
15558
3fed1840
RR
15559FREETYPE_INCLUDE=
15560if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
698dcdb6 15561 cat >> confdefs.h <<\EOF
3fed1840
RR
15562#define wxUSE_FREETYPE 1
15563EOF
15564
15565 if test "$wxUSE_FREETYPE" = "yes" ; then
15566 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
15567 else
15568 FREETYPE_LINK=
698dcdb6
VZ
15569 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
15570echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
52e8b690 15571echo "configure:15572: checking for freetype.h" >&5
698dcdb6
VZ
15572if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15573 echo $ac_n "(cached) $ac_c" 1>&6
15574else
15575 cat > conftest.$ac_ext <<EOF
52e8b690 15576#line 15577 "configure"
3fed1840
RR
15577#include "confdefs.h"
15578#include <freetype.h>
698dcdb6
VZ
15579EOF
15580ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
52e8b690 15581{ (eval echo configure:15582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15582ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15583if test -z "$ac_err"; then
15584 rm -rf conftest*
15585 eval "ac_cv_header_$ac_safe=yes"
3fed1840 15586else
698dcdb6
VZ
15587 echo "$ac_err" >&5
15588 echo "configure: failed program was:" >&5
3fed1840 15589 cat conftest.$ac_ext >&5
698dcdb6
VZ
15590 rm -rf conftest*
15591 eval "ac_cv_header_$ac_safe=no"
3fed1840 15592fi
698dcdb6 15593rm -f conftest*
3fed1840 15594fi
698dcdb6
VZ
15595if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15596 echo "$ac_t""yes" 1>&6
15597 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
52e8b690 15598echo "configure:15599: checking for FT_Render_Glyph in -lfreetype" >&5
698dcdb6
VZ
15599ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
15600if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15601 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 15602else
698dcdb6 15603 ac_save_LIBS="$LIBS"
3fed1840 15604LIBS="-lfreetype -lm $LIBS"
698dcdb6 15605cat > conftest.$ac_ext <<EOF
52e8b690 15606#line 15607 "configure"
3fed1840
RR
15607#include "confdefs.h"
15608/* Override any gcc2 internal prototype to avoid an error. */
15609/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15610 builtin and then its argument prototype would still apply. */
15611char FT_Render_Glyph();
15612
15613int main() {
15614FT_Render_Glyph()
15615; return 0; }
15616EOF
52e8b690 15617if { (eval echo configure:15618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15618 rm -rf conftest*
15619 eval "ac_cv_lib_$ac_lib_var=yes"
15620else
15621 echo "configure: failed program was:" >&5
15622 cat conftest.$ac_ext >&5
15623 rm -rf conftest*
15624 eval "ac_cv_lib_$ac_lib_var=no"
15625fi
15626rm -f conftest*
15627LIBS="$ac_save_LIBS"
15628
15629fi
15630if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15631 echo "$ac_t""yes" 1>&6
3fed1840 15632 FREETYPE_LINK="-lfreetype"
698dcdb6
VZ
15633else
15634 echo "$ac_t""no" 1>&6
3fed1840
RR
15635fi
15636
698dcdb6
VZ
15637
15638else
15639 echo "$ac_t""no" 1>&6
3fed1840
RR
15640fi
15641
15642 if test "x$FREETYPE_LINK" = "x" ; then
698dcdb6 15643 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
3fed1840
RR
15644 fi
15645 fi
15646fi
15647
10f2d63a 15648if test "$wxUSE_OPENGL" = "yes"; then
7b6058cd
GD
15649 if test "$wxUSE_MAC" = 1; then
15650 cat >> confdefs.h <<\EOF
15651#define wxUSE_OPENGL 1
15652EOF
15653
15654 cat >> confdefs.h <<\EOF
15655#define wxUSE_GLCANVAS 1
15656EOF
15657
15658 OPENGL_LINK="-framework OpenGL -framework AGL"
24176f2c 15659 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
7b6058cd
GD
15660 else
15661 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
698dcdb6 15662echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
52e8b690 15663echo "configure:15664: checking for GL/gl.h" >&5
698dcdb6
VZ
15664if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15665 echo $ac_n "(cached) $ac_c" 1>&6
15666else
15667 cat > conftest.$ac_ext <<EOF
52e8b690 15668#line 15669 "configure"
10f2d63a
VZ
15669#include "confdefs.h"
15670#include <GL/gl.h>
698dcdb6
VZ
15671EOF
15672ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
52e8b690 15673{ (eval echo configure:15674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15674ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15675if test -z "$ac_err"; then
15676 rm -rf conftest*
15677 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 15678else
698dcdb6
VZ
15679 echo "$ac_err" >&5
15680 echo "configure: failed program was:" >&5
10f2d63a 15681 cat conftest.$ac_ext >&5
698dcdb6
VZ
15682 rm -rf conftest*
15683 eval "ac_cv_header_$ac_safe=no"
10f2d63a 15684fi
698dcdb6 15685rm -f conftest*
10f2d63a 15686fi
698dcdb6
VZ
15687if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15688 echo "$ac_t""yes" 1>&6
15689
7b6058cd 15690 cat >> confdefs.h <<\EOF
bdad4e7e
RR
15691#define wxUSE_OPENGL 1
15692EOF
15693
7b6058cd 15694 cat >> confdefs.h <<\EOF
bdad4e7e
RR
15695#define wxUSE_GLCANVAS 1
15696EOF
15697
24176f2c 15698 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
7b6058cd 15699 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
52e8b690 15700echo "configure:15701: checking for glFlush in -lGL" >&5
698dcdb6
VZ
15701ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
15702if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15703 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15704else
698dcdb6 15705 ac_save_LIBS="$LIBS"
bdad4e7e 15706LIBS="-lGL $LIBS"
698dcdb6 15707cat > conftest.$ac_ext <<EOF
52e8b690 15708#line 15709 "configure"
10f2d63a
VZ
15709#include "confdefs.h"
15710/* Override any gcc2 internal prototype to avoid an error. */
15711/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15712 builtin and then its argument prototype would still apply. */
15713char glFlush();
6232543b 15714
698dcdb6
VZ
15715int main() {
15716glFlush()
15717; return 0; }
15718EOF
52e8b690 15719if { (eval echo configure:15720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15720 rm -rf conftest*
15721 eval "ac_cv_lib_$ac_lib_var=yes"
15722else
15723 echo "configure: failed program was:" >&5
15724 cat conftest.$ac_ext >&5
15725 rm -rf conftest*
15726 eval "ac_cv_lib_$ac_lib_var=no"
15727fi
15728rm -f conftest*
15729LIBS="$ac_save_LIBS"
1e487827 15730
698dcdb6
VZ
15731fi
15732if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15733 echo "$ac_t""yes" 1>&6
15734
7b6058cd
GD
15735 OPENGL_LINK="-lGL -lGLU"
15736
10f2d63a 15737else
698dcdb6 15738 echo "$ac_t""no" 1>&6
10f2d63a 15739
7b6058cd 15740 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
52e8b690 15741echo "configure:15742: checking for glFlush in -lMesaGL" >&5
698dcdb6
VZ
15742ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
15743if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15744 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15745else
698dcdb6 15746 ac_save_LIBS="$LIBS"
10f2d63a 15747LIBS="-lMesaGL $LIBS"
698dcdb6 15748cat > conftest.$ac_ext <<EOF
52e8b690 15749#line 15750 "configure"
10f2d63a
VZ
15750#include "confdefs.h"
15751/* Override any gcc2 internal prototype to avoid an error. */
15752/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15753 builtin and then its argument prototype would still apply. */
15754char glFlush();
15755
15756int main() {
15757glFlush()
15758; return 0; }
15759EOF
52e8b690 15760if { (eval echo configure:15761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15761 rm -rf conftest*
15762 eval "ac_cv_lib_$ac_lib_var=yes"
15763else
15764 echo "configure: failed program was:" >&5
15765 cat conftest.$ac_ext >&5
15766 rm -rf conftest*
15767 eval "ac_cv_lib_$ac_lib_var=no"
15768fi
15769rm -f conftest*
15770LIBS="$ac_save_LIBS"
10f2d63a 15771
698dcdb6
VZ
15772fi
15773if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15774 echo "$ac_t""yes" 1>&6
15775
7b6058cd
GD
15776 OPENGL_LINK="-lMesaGL -lMesaGLU"
15777
698dcdb6
VZ
15778else
15779 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15780fi
15781
7b6058cd 15782
10f2d63a
VZ
15783fi
15784
7b6058cd 15785
10f2d63a 15786else
698dcdb6
VZ
15787 echo "$ac_t""no" 1>&6
15788wxUSE_OPENGL=0
10f2d63a
VZ
15789fi
15790
7b6058cd 15791 fi
10f2d63a
VZ
15792fi
15793
698dcdb6 15794
10f2d63a 15795if test "$wxUSE_GUI" = "yes"; then
698dcdb6 15796 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15797#define wxUSE_GUI 1
15798EOF
15799
698dcdb6 15800
10f2d63a 15801 else
698dcdb6 15802 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15803#define wxUSE_NOGUI 1
15804EOF
15805
15806fi
15807
698dcdb6 15808
10f2d63a 15809if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 15810 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15811#define wxUSE_UNIX 1
15812EOF
15813
15814fi
15815
698dcdb6 15816
10f2d63a 15817if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 15818 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15819#define wxUSE_APPLE_IEEE 1
15820EOF
15821
15822fi
15823
1e6feb95
VZ
15824if test "$wxUSE_TIMER" = "yes"; then
15825 cat >> confdefs.h <<\EOF
15826#define wxUSE_TIMER 1
15827EOF
15828
15829fi
15830
10f2d63a 15831if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 15832 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15833#define wxUSE_WAVE 1
15834EOF
15835
15836fi
15837
1e6feb95
VZ
15838if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15839 cat >> confdefs.h <<\EOF
15840#define wxUSE_CMDLINE_PARSER 1
15841EOF
15842
15843fi
15844
15845if test "$wxUSE_STOPWATCH" = "yes"; then
15846 cat >> confdefs.h <<\EOF
15847#define wxUSE_STOPWATCH 1
15848EOF
15849
15850fi
15851
15852if test "$wxUSE_DATETIME" = "yes"; then
15853 cat >> confdefs.h <<\EOF
15854#define wxUSE_DATETIME 1
15855EOF
15856
15857fi
15858
15859if test "$wxUSE_TIMEDATE" = "yes"; then
15860 cat >> confdefs.h <<\EOF
15861#define wxUSE_TIMEDATE 1
15862EOF
15863
15864fi
15865
10f2d63a 15866if test "$wxUSE_FILE" = "yes"; then
698dcdb6 15867 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15868#define wxUSE_FILE 1
15869EOF
15870
15871fi
15872
1e6feb95
VZ
15873if test "$wxUSE_FFILE" = "yes"; then
15874 cat >> confdefs.h <<\EOF
15875#define wxUSE_FFILE 1
15876EOF
15877
15878fi
15879
24528b0c 15880if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 15881 cat >> confdefs.h <<\EOF
24528b0c
VS
15882#define wxUSE_FILESYSTEM 1
15883EOF
15884
15885fi
15886
10f2d63a 15887if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 15888 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15889#define wxUSE_FS_INET 1
15890EOF
15891
15892fi
15893
15894if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 15895 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15896#define wxUSE_FS_ZIP 1
15897EOF
15898
15899fi
15900
15901if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 15902 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15903#define wxUSE_ZIPSTREAM 1
15904EOF
15905
15906fi
15907
eb4efbdc 15908if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 15909 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
15910#define wxUSE_ON_FATAL_EXCEPTION 1
15911EOF
15912
15913fi
15914
4f3c5f06 15915if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 15916 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
15917#define wxUSE_SNGLINST_CHECKER 1
15918EOF
15919
15920fi
15921
10f2d63a 15922if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 15923 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15924#define wxUSE_BUSYINFO 1
15925EOF
15926
15927fi
15928
15929if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 15930 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15931#define wxUSE_STD_IOSTREAM 1
15932EOF
15933
15934fi
15935
15936if test "$wxUSE_TEXTFILE" = "yes"; then
15937 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15938 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 15939 else
698dcdb6 15940 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15941#define wxUSE_TEXTFILE 1
15942EOF
15943
15944 fi
15945fi
15946
15947if test "$wxUSE_CONFIG" = "yes" ; then
15948 if test "$wxUSE_TEXTFILE" != "yes"; then
698dcdb6 15949 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
10f2d63a 15950 else
698dcdb6 15951 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15952#define wxUSE_CONFIG 1
15953EOF
15954
15955 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15956 fi
15957fi
15958
15959if test "$wxUSE_INTL" = "yes" ; then
15960 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15961 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 15962 else
698dcdb6 15963 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15964#define wxUSE_INTL 1
15965EOF
15966
15967 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 15968 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
15969 fi
15970fi
15971
15972if test "$wxUSE_LOG" = "yes"; then
698dcdb6 15973 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15974#define wxUSE_LOG 1
15975EOF
15976
d73be714
VZ
15977
15978 if test "$wxUSE_LOGGUI" = "yes"; then
15979 cat >> confdefs.h <<\EOF
15980#define wxUSE_LOGGUI 1
15981EOF
15982
15983 fi
15984
15985 if test "$wxUSE_LOGWINDOW" = "yes"; then
15986 cat >> confdefs.h <<\EOF
15987#define wxUSE_LOGWINDOW 1
15988EOF
15989
15990 fi
10f2d63a
VZ
15991fi
15992
15993if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 15994 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15995#define wxUSE_LONGLONG 1
15996EOF
15997
15998fi
15999
e8f65ba6 16000if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 16001 cat >> confdefs.h <<\EOF
e8f65ba6
RR
16002#define wxUSE_GEOMETRY 1
16003EOF
16004
16005fi
16006
10f2d63a 16007if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 16008 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16009#define wxUSE_DIALUP_MANAGER 1
16010EOF
16011
70f7a477 16012 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
16013fi
16014
16015if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 16016 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16017#define wxUSE_STREAMS 1
16018EOF
16019
16020fi
16021
1e487827 16022
1e6feb95 16023if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 16024 for ac_func in strptime
83307f33 16025do
698dcdb6 16026echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
52e8b690 16027echo "configure:16028: checking for $ac_func" >&5
698dcdb6
VZ
16028if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16029 echo $ac_n "(cached) $ac_c" 1>&6
16030else
16031 cat > conftest.$ac_ext <<EOF
52e8b690 16032#line 16033 "configure"
83307f33
VZ
16033#include "confdefs.h"
16034/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16035 which can conflict with char $ac_func(); below. */
83307f33
VZ
16036#include <assert.h>
16037/* Override any gcc2 internal prototype to avoid an error. */
16038/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16039 builtin and then its argument prototype would still apply. */
16040char $ac_func();
16041
16042int main() {
83307f33
VZ
16043
16044/* The GNU C library defines this for functions which it implements
16045 to always fail with ENOSYS. Some functions are actually named
16046 something starting with __ and the normal name is an alias. */
16047#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16048choke me
16049#else
698dcdb6 16050$ac_func();
83307f33
VZ
16051#endif
16052
698dcdb6 16053; return 0; }
83307f33 16054EOF
52e8b690 16055if { (eval echo configure:16056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16056 rm -rf conftest*
16057 eval "ac_cv_func_$ac_func=yes"
16058else
16059 echo "configure: failed program was:" >&5
16060 cat conftest.$ac_ext >&5
16061 rm -rf conftest*
16062 eval "ac_cv_func_$ac_func=no"
16063fi
16064rm -f conftest*
16065fi
83307f33 16066
698dcdb6
VZ
16067if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16068 echo "$ac_t""yes" 1>&6
16069 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16070 cat >> confdefs.h <<EOF
16071#define $ac_tr_func 1
16072EOF
16073
16074else
16075 echo "$ac_t""no" 1>&6
83307f33
VZ
16076fi
16077done
16078
1e487827 16079
698dcdb6 16080 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
52e8b690 16081echo "configure:16082: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
16082if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
16083 echo $ac_n "(cached) $ac_c" 1>&6
16084else
16085
16086 cat > conftest.$ac_ext <<EOF
52e8b690 16087#line 16088 "configure"
360d6699
VZ
16088#include "confdefs.h"
16089
b4085ce6 16090 #include <time.h>
698dcdb6
VZ
16091
16092int main() {
360d6699
VZ
16093
16094 int tz;
4f11a343 16095 tz = timezone;
698dcdb6
VZ
16096
16097; return 0; }
16098EOF
52e8b690 16099if { (eval echo configure:16100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16100 rm -rf conftest*
16101
4f11a343 16102 wx_cv_var_timezone=timezone
698dcdb6 16103
360d6699 16104else
698dcdb6
VZ
16105 echo "configure: failed program was:" >&5
16106 cat conftest.$ac_ext >&5
16107 rm -rf conftest*
16108
16109 cat > conftest.$ac_ext <<EOF
52e8b690 16110#line 16111 "configure"
360d6699
VZ
16111#include "confdefs.h"
16112
b4085ce6 16113 #include <time.h>
698dcdb6
VZ
16114
16115int main() {
360d6699
VZ
16116
16117 int tz;
16118 tz = _timezone;
698dcdb6
VZ
16119
16120; return 0; }
16121EOF
52e8b690 16122if { (eval echo configure:16123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16123 rm -rf conftest*
16124
360d6699 16125 wx_cv_var_timezone=_timezone
698dcdb6 16126
5357c8e8 16127else
698dcdb6
VZ
16128 echo "configure: failed program was:" >&5
16129 cat conftest.$ac_ext >&5
16130 rm -rf conftest*
16131
16132 cat > conftest.$ac_ext <<EOF
52e8b690 16133#line 16134 "configure"
5357c8e8
VZ
16134#include "confdefs.h"
16135
b4085ce6 16136 #include <time.h>
698dcdb6
VZ
16137
16138int main() {
5357c8e8
VZ
16139
16140 int tz;
4f11a343 16141 tz = __timezone;
698dcdb6
VZ
16142
16143; return 0; }
16144EOF
52e8b690 16145if { (eval echo configure:16146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16146 rm -rf conftest*
16147
4f11a343 16148 wx_cv_var_timezone=__timezone
698dcdb6 16149
360d6699 16150else
698dcdb6
VZ
16151 echo "configure: failed program was:" >&5
16152 cat conftest.$ac_ext >&5
16153 rm -rf conftest*
16154 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
16155
360d6699 16156fi
698dcdb6
VZ
16157rm -f conftest*
16158
16159
360d6699 16160fi
698dcdb6
VZ
16161rm -f conftest*
16162
16163
6232543b 16164fi
698dcdb6
VZ
16165rm -f conftest*
16166
16167
1e487827 16168fi
703e0a69 16169
698dcdb6
VZ
16170echo "$ac_t""$wx_cv_var_timezone" 1>&6
16171
16172 cat >> confdefs.h <<EOF
360d6699
VZ
16173#define WX_TIMEZONE $wx_cv_var_timezone
16174EOF
16175
698dcdb6
VZ
16176
16177 for ac_func in localtime
afc31813 16178do
698dcdb6 16179echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
52e8b690 16180echo "configure:16181: checking for $ac_func" >&5
698dcdb6
VZ
16181if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16182 echo $ac_n "(cached) $ac_c" 1>&6
16183else
16184 cat > conftest.$ac_ext <<EOF
52e8b690 16185#line 16186 "configure"
10f2d63a 16186#include "confdefs.h"
afc31813 16187/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16188 which can conflict with char $ac_func(); below. */
afc31813
VZ
16189#include <assert.h>
16190/* Override any gcc2 internal prototype to avoid an error. */
16191/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16192 builtin and then its argument prototype would still apply. */
16193char $ac_func();
16194
16195int main() {
afc31813
VZ
16196
16197/* The GNU C library defines this for functions which it implements
16198 to always fail with ENOSYS. Some functions are actually named
16199 something starting with __ and the normal name is an alias. */
16200#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16201choke me
16202#else
698dcdb6 16203$ac_func();
afc31813
VZ
16204#endif
16205
698dcdb6 16206; return 0; }
10f2d63a 16207EOF
52e8b690 16208if { (eval echo configure:16209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16209 rm -rf conftest*
16210 eval "ac_cv_func_$ac_func=yes"
16211else
16212 echo "configure: failed program was:" >&5
16213 cat conftest.$ac_ext >&5
16214 rm -rf conftest*
16215 eval "ac_cv_func_$ac_func=no"
16216fi
16217rm -f conftest*
16218fi
afc31813 16219
698dcdb6
VZ
16220if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16221 echo "$ac_t""yes" 1>&6
16222 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16223 cat >> confdefs.h <<EOF
16224#define $ac_tr_func 1
16225EOF
16226
16227else
16228 echo "$ac_t""no" 1>&6
afc31813
VZ
16229fi
16230done
16231
1e487827 16232
698dcdb6
VZ
16233 if test "$ac_cv_func_localtime" = "yes"; then
16234 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
52e8b690 16235echo "configure:16236: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
16236if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16237 echo $ac_n "(cached) $ac_c" 1>&6
16238else
16239
16240 cat > conftest.$ac_ext <<EOF
52e8b690 16241#line 16242 "configure"
0470b1e6
VZ
16242#include "confdefs.h"
16243
b4085ce6 16244 #include <time.h>
698dcdb6
VZ
16245
16246int main() {
0470b1e6
VZ
16247
16248 struct tm tm;
16249 tm.tm_gmtoff++;
698dcdb6
VZ
16250
16251; return 0; }
16252EOF
52e8b690 16253if { (eval echo configure:16254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16254 rm -rf conftest*
16255
f03a98d8 16256 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 16257
0470b1e6 16258else
698dcdb6
VZ
16259 echo "configure: failed program was:" >&5
16260 cat conftest.$ac_ext >&5
16261 rm -rf conftest*
16262 wx_cv_struct_tm_has_gmtoff=no
16263
0470b1e6 16264fi
698dcdb6
VZ
16265rm -f conftest*
16266
1e487827 16267fi
698dcdb6
VZ
16268
16269echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
16270 fi
16271
16272 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 16273 cat >> confdefs.h <<\EOF
6232543b
VS
16274#define WX_GMTOFF_IN_TM 1
16275EOF
0470b1e6 16276
3fcdd07b
VZ
16277 fi
16278
698dcdb6 16279 for ac_func in gettimeofday ftime
3fcdd07b 16280do
698dcdb6 16281echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
52e8b690 16282echo "configure:16283: checking for $ac_func" >&5
698dcdb6
VZ
16283if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16284 echo $ac_n "(cached) $ac_c" 1>&6
16285else
16286 cat > conftest.$ac_ext <<EOF
52e8b690 16287#line 16288 "configure"
3fcdd07b
VZ
16288#include "confdefs.h"
16289/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16290 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
16291#include <assert.h>
16292/* Override any gcc2 internal prototype to avoid an error. */
16293/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16294 builtin and then its argument prototype would still apply. */
16295char $ac_func();
16296
16297int main() {
3fcdd07b
VZ
16298
16299/* The GNU C library defines this for functions which it implements
16300 to always fail with ENOSYS. Some functions are actually named
16301 something starting with __ and the normal name is an alias. */
16302#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16303choke me
16304#else
698dcdb6 16305$ac_func();
3fcdd07b
VZ
16306#endif
16307
698dcdb6
VZ
16308; return 0; }
16309EOF
52e8b690 16310if { (eval echo configure:16311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16311 rm -rf conftest*
16312 eval "ac_cv_func_$ac_func=yes"
16313else
16314 echo "configure: failed program was:" >&5
16315 cat conftest.$ac_ext >&5
16316 rm -rf conftest*
16317 eval "ac_cv_func_$ac_func=no"
16318fi
16319rm -f conftest*
16320fi
16321
16322if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16323 echo "$ac_t""yes" 1>&6
16324 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16325 cat >> confdefs.h <<EOF
16326#define $ac_tr_func 1
3fcdd07b
VZ
16327EOF
16328 break
698dcdb6
VZ
16329else
16330 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
16331fi
16332done
16333
afc31813 16334
698dcdb6
VZ
16335 if test "$ac_cv_func_gettimeofday" = "yes"; then
16336 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
52e8b690 16337echo "configure:16338: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
16338if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16339 echo $ac_n "(cached) $ac_c" 1>&6
16340else
16341
16342
16343 ac_ext=C
16344# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16345ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16346ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16347ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16348cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16349
698dcdb6
VZ
16350
16351 cat > conftest.$ac_ext <<EOF
52e8b690 16352#line 16353 "configure"
10f2d63a 16353#include "confdefs.h"
afc31813
VZ
16354
16355 #include <sys/time.h>
16356 #include <unistd.h>
698dcdb6
VZ
16357
16358int main() {
afc31813
VZ
16359
16360 struct timeval tv;
776862b4 16361 gettimeofday(&tv, NULL);
698dcdb6
VZ
16362
16363; return 0; }
16364EOF
52e8b690 16365if { (eval echo configure:16366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16366 rm -rf conftest*
afc31813 16367 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 16368else
698dcdb6
VZ
16369 echo "configure: failed program was:" >&5
16370 cat conftest.$ac_ext >&5
16371 rm -rf conftest*
16372 cat > conftest.$ac_ext <<EOF
52e8b690 16373#line 16374 "configure"
10f2d63a 16374#include "confdefs.h"
afc31813
VZ
16375
16376 #include <sys/time.h>
16377 #include <unistd.h>
698dcdb6
VZ
16378
16379int main() {
afc31813
VZ
16380
16381 struct timeval tv;
16382 gettimeofday(&tv);
698dcdb6
VZ
16383
16384; return 0; }
16385EOF
52e8b690 16386if { (eval echo configure:16387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16387 rm -rf conftest*
afc31813 16388 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 16389else
698dcdb6
VZ
16390 echo "configure: failed program was:" >&5
16391 cat conftest.$ac_ext >&5
16392 rm -rf conftest*
776862b4
VZ
16393
16394 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
16395 wx_cv_func_gettimeofday_has_2_args=unknown
16396
698dcdb6 16397
10f2d63a 16398fi
698dcdb6
VZ
16399rm -f conftest*
16400
10f2d63a 16401fi
698dcdb6 16402rm -f conftest*
afc31813 16403 ac_ext=c
698dcdb6 16404# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 16405ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16406ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16407ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16408cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 16409
698dcdb6 16410
afc31813 16411fi
698dcdb6
VZ
16412
16413echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 16414
afc31813 16415 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 16416 cat >> confdefs.h <<\EOF
afc31813
VZ
16417#define WX_GETTIMEOFDAY_NO_TZ 1
16418EOF
16419
16420 fi
16421 fi
16422
698dcdb6 16423 cat >> confdefs.h <<\EOF
afc31813
VZ
16424#define wxUSE_TIMEDATE 1
16425EOF
16426
16427 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16428fi
16429
698dcdb6 16430
b089607b
VZ
16431if test "$TOOLKIT" != "MSW"; then
16432
afc31813 16433if test "$wxUSE_SOCKETS" = "yes"; then
698dcdb6 16434 echo $ac_n "checking for socket""... $ac_c" 1>&6
52e8b690 16435echo "configure:16436: checking for socket" >&5
698dcdb6
VZ
16436if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16437 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16438else
698dcdb6 16439 cat > conftest.$ac_ext <<EOF
52e8b690 16440#line 16441 "configure"
c63c7106
VZ
16441#include "confdefs.h"
16442/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16443 which can conflict with char socket(); below. */
c63c7106
VZ
16444#include <assert.h>
16445/* Override any gcc2 internal prototype to avoid an error. */
16446/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16447 builtin and then its argument prototype would still apply. */
16448char socket();
16449
16450int main() {
c63c7106
VZ
16451
16452/* The GNU C library defines this for functions which it implements
16453 to always fail with ENOSYS. Some functions are actually named
16454 something starting with __ and the normal name is an alias. */
16455#if defined (__stub_socket) || defined (__stub___socket)
16456choke me
16457#else
698dcdb6 16458socket();
c63c7106
VZ
16459#endif
16460
698dcdb6
VZ
16461; return 0; }
16462EOF
52e8b690 16463if { (eval echo configure:16464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16464 rm -rf conftest*
16465 eval "ac_cv_func_socket=yes"
16466else
16467 echo "configure: failed program was:" >&5
16468 cat conftest.$ac_ext >&5
16469 rm -rf conftest*
16470 eval "ac_cv_func_socket=no"
16471fi
16472rm -f conftest*
16473fi
16474
16475if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16476 echo "$ac_t""yes" 1>&6
c63c7106
VZ
16477 :
16478else
698dcdb6
VZ
16479 echo "$ac_t""no" 1>&6
16480echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
52e8b690 16481echo "configure:16482: checking for socket in -lsocket" >&5
698dcdb6
VZ
16482ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16483if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16484 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16485else
698dcdb6 16486 ac_save_LIBS="$LIBS"
c63c7106 16487LIBS="-lsocket $LIBS"
698dcdb6 16488cat > conftest.$ac_ext <<EOF
52e8b690 16489#line 16490 "configure"
c63c7106
VZ
16490#include "confdefs.h"
16491/* Override any gcc2 internal prototype to avoid an error. */
16492/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16493 builtin and then its argument prototype would still apply. */
16494char socket();
16495
16496int main() {
16497socket()
16498; return 0; }
16499EOF
52e8b690 16500if { (eval echo configure:16501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16501 rm -rf conftest*
16502 eval "ac_cv_lib_$ac_lib_var=yes"
16503else
16504 echo "configure: failed program was:" >&5
16505 cat conftest.$ac_ext >&5
16506 rm -rf conftest*
16507 eval "ac_cv_lib_$ac_lib_var=no"
16508fi
16509rm -f conftest*
16510LIBS="$ac_save_LIBS"
16511
16512fi
16513if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16514 echo "$ac_t""yes" 1>&6
c63c7106 16515 INET_LINK="$INET_LINK -lsocket"
c63c7106 16516else
698dcdb6 16517 echo "$ac_t""no" 1>&6
afc31813 16518
698dcdb6 16519 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
afc31813 16520 wxUSE_SOCKETS=no
698dcdb6
VZ
16521
16522
10f2d63a
VZ
16523fi
16524
698dcdb6 16525
6232543b 16526fi
b089607b 16527
1e487827 16528fi
afc31813 16529
51a9faba 16530
698dcdb6
VZ
16531if test "$wxUSE_SOCKETS" = "yes" ; then
16532 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
52e8b690 16533echo "configure:16534: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
16534if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16535 echo $ac_n "(cached) $ac_c" 1>&6
16536else
16537
16538
16539 ac_ext=C
16540# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16541ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16542ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16543ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16544cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16545
698dcdb6
VZ
16546
16547 cat > conftest.$ac_ext <<EOF
52e8b690 16548#line 16549 "configure"
afc31813 16549#include "confdefs.h"
51a9faba 16550
3ace2e6d 16551 #include <sys/types.h>
51a9faba 16552 #include <sys/socket.h>
698dcdb6
VZ
16553
16554int main() {
51a9faba
VZ
16555
16556 socklen_t len;
16557 getsockname(0, 0, &len);
698dcdb6
VZ
16558
16559; return 0; }
16560EOF
52e8b690 16561if { (eval echo configure:16562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16562 rm -rf conftest*
51a9faba 16563 wx_cv_type_getsockname3=socklen_t
afc31813 16564else
698dcdb6
VZ
16565 echo "configure: failed program was:" >&5
16566 cat conftest.$ac_ext >&5
16567 rm -rf conftest*
16568 cat > conftest.$ac_ext <<EOF
52e8b690 16569#line 16570 "configure"
afc31813 16570#include "confdefs.h"
51a9faba 16571
3ace2e6d 16572 #include <sys/types.h>
51a9faba 16573 #include <sys/socket.h>
698dcdb6
VZ
16574
16575int main() {
51a9faba
VZ
16576
16577 size_t len;
16578 getsockname(0, 0, &len);
698dcdb6
VZ
16579
16580; return 0; }
16581EOF
52e8b690 16582if { (eval echo configure:16583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16583 rm -rf conftest*
51a9faba 16584 wx_cv_type_getsockname3=size_t
afc31813 16585else
698dcdb6
VZ
16586 echo "configure: failed program was:" >&5
16587 cat conftest.$ac_ext >&5
16588 rm -rf conftest*
16589 cat > conftest.$ac_ext <<EOF
52e8b690 16590#line 16591 "configure"
afc31813 16591#include "confdefs.h"
51a9faba 16592
3ace2e6d 16593 #include <sys/types.h>
51a9faba 16594 #include <sys/socket.h>
698dcdb6
VZ
16595
16596int main() {
51a9faba
VZ
16597
16598 int len;
16599 getsockname(0, 0, &len);
698dcdb6
VZ
16600
16601; return 0; }
16602EOF
52e8b690 16603if { (eval echo configure:16604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16604 rm -rf conftest*
51a9faba 16605 wx_cv_type_getsockname3=int
afc31813 16606else
698dcdb6
VZ
16607 echo "configure: failed program was:" >&5
16608 cat conftest.$ac_ext >&5
16609 rm -rf conftest*
16610 wx_cv_type_getsockname3=unknown
16611
afc31813 16612fi
698dcdb6
VZ
16613rm -f conftest*
16614
afc31813 16615fi
698dcdb6
VZ
16616rm -f conftest*
16617
afc31813 16618fi
698dcdb6 16619rm -f conftest*
51a9faba
VZ
16620
16621 ac_ext=c
698dcdb6 16622# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 16623ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16624ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16625ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16626cross_compiling=$ac_cv_prog_cc_cross
afc31813 16627
698dcdb6 16628
51a9faba 16629fi
698dcdb6
VZ
16630
16631echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba
VZ
16632
16633 if test "$wx_cv_type_getsockname3" = "unknown"; then
16634 wxUSE_SOCKETS=no
698dcdb6 16635 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
51a9faba 16636 else
698dcdb6 16637 cat >> confdefs.h <<EOF
51a9faba
VZ
16638#define SOCKLEN_T $wx_cv_type_getsockname3
16639EOF
16640
16641 fi
16642fi
afc31813 16643
c521c494
RL
16644fi
16645
51a9faba 16646if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 16647 cat >> confdefs.h <<\EOF
afc31813
VZ
16648#define wxUSE_SOCKETS 1
16649EOF
16650
70f7a477 16651 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
16652 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
16653fi
16654
698dcdb6 16655
dc3d889d
VZ
16656if test "$wxUSE_GUI" = "yes"; then
16657
b089607b
VZ
16658if test "$TOOLKIT" != "MSW"; then
16659
ceded8b9 16660if test "$wxUSE_JOYSTICK" = "yes"; then
698dcdb6 16661 for ac_hdr in linux/joystick.h
10f2d63a 16662do
698dcdb6
VZ
16663ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16664echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
52e8b690 16665echo "configure:16666: checking for $ac_hdr" >&5
698dcdb6
VZ
16666if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16667 echo $ac_n "(cached) $ac_c" 1>&6
16668else
16669 cat > conftest.$ac_ext <<EOF
52e8b690 16670#line 16671 "configure"
10f2d63a 16671#include "confdefs.h"
698dcdb6
VZ
16672#include <$ac_hdr>
16673EOF
16674ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
52e8b690 16675{ (eval echo configure:16676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
16676ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16677if test -z "$ac_err"; then
16678 rm -rf conftest*
16679 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 16680else
698dcdb6
VZ
16681 echo "$ac_err" >&5
16682 echo "configure: failed program was:" >&5
10f2d63a 16683 cat conftest.$ac_ext >&5
698dcdb6
VZ
16684 rm -rf conftest*
16685 eval "ac_cv_header_$ac_safe=no"
10f2d63a 16686fi
698dcdb6 16687rm -f conftest*
10f2d63a 16688fi
698dcdb6
VZ
16689if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16690 echo "$ac_t""yes" 1>&6
16691 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16692 cat >> confdefs.h <<EOF
16693#define $ac_tr_hdr 1
10f2d63a 16694EOF
698dcdb6
VZ
16695
16696else
16697 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16698fi
16699done
16700
b089607b 16701 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
ceded8b9 16702 wxUSE_JOYSTICK=no
698dcdb6 16703 echo "configure: warning: Joystick not supported by this system" 1>&2
b089607b
VZ
16704 fi
16705fi
16706
16707fi
16708
ceded8b9 16709if test "$wxUSE_JOYSTICK" = "yes"; then
698dcdb6 16710 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16711#define wxUSE_JOYSTICK 1
16712EOF
16713
16714 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
16715fi
16716
dc3d889d
VZ
16717fi
16718
698dcdb6 16719
b089607b
VZ
16720if test "$TOOLKIT" != "MSW"; then
16721
10f2d63a
VZ
16722HAVE_DL_FUNCS=0
16723HAVE_SHL_FUNCS=0
16724if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
f11bdd03 16725 if test "$USE_DARWIN" = 1; then
b4085ce6
GD
16726 HAVE_DL_FUNCS=1
16727 else
698dcdb6 16728 for ac_func in dlopen
10f2d63a 16729do
698dcdb6 16730echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
52e8b690 16731echo "configure:16732: checking for $ac_func" >&5
698dcdb6
VZ
16732if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16733 echo $ac_n "(cached) $ac_c" 1>&6
16734else
16735 cat > conftest.$ac_ext <<EOF
52e8b690 16736#line 16737 "configure"
10f2d63a
VZ
16737#include "confdefs.h"
16738/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16739 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16740#include <assert.h>
16741/* Override any gcc2 internal prototype to avoid an error. */
16742/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16743 builtin and then its argument prototype would still apply. */
16744char $ac_func();
16745
16746int main() {
10f2d63a
VZ
16747
16748/* The GNU C library defines this for functions which it implements
16749 to always fail with ENOSYS. Some functions are actually named
16750 something starting with __ and the normal name is an alias. */
16751#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16752choke me
16753#else
698dcdb6 16754$ac_func();
10f2d63a
VZ
16755#endif
16756
698dcdb6
VZ
16757; return 0; }
16758EOF
52e8b690 16759if { (eval echo configure:16760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16760 rm -rf conftest*
16761 eval "ac_cv_func_$ac_func=yes"
16762else
16763 echo "configure: failed program was:" >&5
16764 cat conftest.$ac_ext >&5
16765 rm -rf conftest*
16766 eval "ac_cv_func_$ac_func=no"
16767fi
16768rm -f conftest*
16769fi
16770
16771if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16772 echo "$ac_t""yes" 1>&6
16773 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16774 cat >> confdefs.h <<EOF
16775#define $ac_tr_func 1
16776EOF
16777
16778 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16779#define HAVE_DLOPEN 1
16780EOF
16781
16782 HAVE_DL_FUNCS=1
698dcdb6 16783
10f2d63a 16784else
698dcdb6
VZ
16785 echo "$ac_t""no" 1>&6
16786echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
52e8b690 16787echo "configure:16788: checking for dlopen in -ldl" >&5
698dcdb6
VZ
16788ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16789if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16790 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16791else
698dcdb6 16792 ac_save_LIBS="$LIBS"
10f2d63a 16793LIBS="-ldl $LIBS"
698dcdb6 16794cat > conftest.$ac_ext <<EOF
52e8b690 16795#line 16796 "configure"
10f2d63a
VZ
16796#include "confdefs.h"
16797/* Override any gcc2 internal prototype to avoid an error. */
16798/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16799 builtin and then its argument prototype would still apply. */
16800char dlopen();
16801
16802int main() {
16803dlopen()
16804; return 0; }
16805EOF
52e8b690 16806if { (eval echo configure:16807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16807 rm -rf conftest*
16808 eval "ac_cv_lib_$ac_lib_var=yes"
16809else
16810 echo "configure: failed program was:" >&5
16811 cat conftest.$ac_ext >&5
16812 rm -rf conftest*
16813 eval "ac_cv_lib_$ac_lib_var=no"
16814fi
16815rm -f conftest*
16816LIBS="$ac_save_LIBS"
16817
16818fi
16819if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16820 echo "$ac_t""yes" 1>&6
16821
16822 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16823#define HAVE_DLOPEN 1
16824EOF
16825
16826 HAVE_DL_FUNCS=1
16827 LIBS="$LIBS -ldl"
698dcdb6 16828
10f2d63a 16829else
698dcdb6 16830 echo "$ac_t""no" 1>&6
10f2d63a 16831
698dcdb6 16832 for ac_func in shl_load
10f2d63a 16833do
698dcdb6 16834echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
52e8b690 16835echo "configure:16836: checking for $ac_func" >&5
698dcdb6
VZ
16836if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16837 echo $ac_n "(cached) $ac_c" 1>&6
16838else
16839 cat > conftest.$ac_ext <<EOF
52e8b690 16840#line 16841 "configure"
10f2d63a
VZ
16841#include "confdefs.h"
16842/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16843 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16844#include <assert.h>
16845/* Override any gcc2 internal prototype to avoid an error. */
16846/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16847 builtin and then its argument prototype would still apply. */
16848char $ac_func();
16849
16850int main() {
10f2d63a
VZ
16851
16852/* The GNU C library defines this for functions which it implements
16853 to always fail with ENOSYS. Some functions are actually named
16854 something starting with __ and the normal name is an alias. */
16855#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16856choke me
16857#else
698dcdb6 16858$ac_func();
10f2d63a
VZ
16859#endif
16860
698dcdb6
VZ
16861; return 0; }
16862EOF
52e8b690 16863if { (eval echo configure:16864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16864 rm -rf conftest*
16865 eval "ac_cv_func_$ac_func=yes"
16866else
16867 echo "configure: failed program was:" >&5
16868 cat conftest.$ac_ext >&5
16869 rm -rf conftest*
16870 eval "ac_cv_func_$ac_func=no"
16871fi
16872rm -f conftest*
16873fi
16874
16875if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16876 echo "$ac_t""yes" 1>&6
16877 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16878 cat >> confdefs.h <<EOF
16879#define $ac_tr_func 1
16880EOF
16881
16882 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16883#define HAVE_SHL_LOAD 1
16884EOF
16885
16886 HAVE_SHL_FUNCS=1
698dcdb6 16887
10f2d63a 16888else
698dcdb6
VZ
16889 echo "$ac_t""no" 1>&6
16890echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
52e8b690 16891echo "configure:16892: checking for dld in -lshl_load" >&5
698dcdb6
VZ
16892ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16893if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16894 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16895else
698dcdb6 16896 ac_save_LIBS="$LIBS"
f6bcfd97 16897LIBS="-lshl_load $LIBS"
698dcdb6 16898cat > conftest.$ac_ext <<EOF
52e8b690 16899#line 16900 "configure"
f6bcfd97
BP
16900#include "confdefs.h"
16901/* Override any gcc2 internal prototype to avoid an error. */
16902/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16903 builtin and then its argument prototype would still apply. */
16904char dld();
16905
16906int main() {
16907dld()
16908; return 0; }
16909EOF
52e8b690 16910if { (eval echo configure:16911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16911 rm -rf conftest*
16912 eval "ac_cv_lib_$ac_lib_var=yes"
16913else
16914 echo "configure: failed program was:" >&5
16915 cat conftest.$ac_ext >&5
16916 rm -rf conftest*
16917 eval "ac_cv_lib_$ac_lib_var=no"
16918fi
16919rm -f conftest*
16920LIBS="$ac_save_LIBS"
f6bcfd97 16921
698dcdb6
VZ
16922fi
16923if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16924 echo "$ac_t""yes" 1>&6
16925
f6bcfd97
BP
16926 HAVE_SHL_FUNCS=1
16927 LIBS="$LIBS -ldld"
698dcdb6
VZ
16928
16929else
16930 echo "$ac_t""no" 1>&6
f6bcfd97
BP
16931fi
16932
698dcdb6 16933
10f2d63a
VZ
16934fi
16935done
16936
698dcdb6 16937
10f2d63a
VZ
16938fi
16939
698dcdb6 16940
10f2d63a
VZ
16941fi
16942done
16943
1e487827 16944
698dcdb6
VZ
16945 if test "$HAVE_DL_FUNCS" = 1; then
16946 for ac_func in dlerror
f6bcfd97 16947do
698dcdb6 16948echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
52e8b690 16949echo "configure:16950: checking for $ac_func" >&5
698dcdb6
VZ
16950if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16951 echo $ac_n "(cached) $ac_c" 1>&6
16952else
16953 cat > conftest.$ac_ext <<EOF
52e8b690 16954#line 16955 "configure"
f6bcfd97
BP
16955#include "confdefs.h"
16956/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16957 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
16958#include <assert.h>
16959/* Override any gcc2 internal prototype to avoid an error. */
16960/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16961 builtin and then its argument prototype would still apply. */
16962char $ac_func();
16963
16964int main() {
f6bcfd97
BP
16965
16966/* The GNU C library defines this for functions which it implements
16967 to always fail with ENOSYS. Some functions are actually named
16968 something starting with __ and the normal name is an alias. */
16969#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16970choke me
16971#else
698dcdb6 16972$ac_func();
f6bcfd97
BP
16973#endif
16974
698dcdb6
VZ
16975; return 0; }
16976EOF
52e8b690 16977if { (eval echo configure:16978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16978 rm -rf conftest*
16979 eval "ac_cv_func_$ac_func=yes"
16980else
16981 echo "configure: failed program was:" >&5
16982 cat conftest.$ac_ext >&5
16983 rm -rf conftest*
16984 eval "ac_cv_func_$ac_func=no"
16985fi
16986rm -f conftest*
16987fi
16988
16989if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16990 echo "$ac_t""yes" 1>&6
16991 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16992 cat >> confdefs.h <<EOF
16993#define $ac_tr_func 1
16994EOF
16995 cat >> confdefs.h <<\EOF
f6bcfd97
BP
16996#define HAVE_DLERROR 1
16997EOF
16998
16999else
698dcdb6
VZ
17000 echo "$ac_t""no" 1>&6
17001echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
52e8b690 17002echo "configure:17003: checking for dlerror in -ldl" >&5
698dcdb6
VZ
17003ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
17004if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17005 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 17006else
698dcdb6 17007 ac_save_LIBS="$LIBS"
f6bcfd97 17008LIBS="-ldl $LIBS"
698dcdb6 17009cat > conftest.$ac_ext <<EOF
52e8b690 17010#line 17011 "configure"
f6bcfd97
BP
17011#include "confdefs.h"
17012/* Override any gcc2 internal prototype to avoid an error. */
17013/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17014 builtin and then its argument prototype would still apply. */
17015char dlerror();
17016
17017int main() {
17018dlerror()
17019; return 0; }
17020EOF
52e8b690 17021if { (eval echo configure:17022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17022 rm -rf conftest*
17023 eval "ac_cv_lib_$ac_lib_var=yes"
17024else
17025 echo "configure: failed program was:" >&5
17026 cat conftest.$ac_ext >&5
17027 rm -rf conftest*
17028 eval "ac_cv_lib_$ac_lib_var=no"
17029fi
17030rm -f conftest*
17031LIBS="$ac_save_LIBS"
17032
17033fi
17034if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17035 echo "$ac_t""yes" 1>&6
17036 cat >> confdefs.h <<\EOF
f6bcfd97
BP
17037#define HAVE_DLERROR 1
17038EOF
17039
698dcdb6
VZ
17040else
17041 echo "$ac_t""no" 1>&6
f6bcfd97
BP
17042fi
17043
17044fi
17045done
17046
17047 fi
b4085ce6 17048 fi
f6bcfd97 17049
10f2d63a
VZ
17050 if test "$HAVE_DL_FUNCS" = 0; then
17051 if test "$HAVE_SHL_FUNCS" = 0; then
17052 if test "$USE_UNIX" = 1; then
698dcdb6 17053 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
17054 wxUSE_DYNLIB_CLASS=no
17055 else
698dcdb6 17056 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
17057 fi
17058 fi
17059 fi
17060fi
17061
b089607b
VZ
17062fi
17063
10f2d63a 17064if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 17065 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17066#define wxUSE_DYNLIB_CLASS 1
17067EOF
17068
b12915c1
VZ
17069else
17070 wxUSE_ODBC=no
17071 wxUSE_SERIAL=no
10f2d63a
VZ
17072fi
17073
698dcdb6 17074
1e6feb95
VZ
17075if test "$wxUSE_FONTMAP" = "yes" ; then
17076 cat >> confdefs.h <<\EOF
17077#define wxUSE_FONTMAP 1
17078EOF
17079
17080fi
17081
10f2d63a 17082if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 17083 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17084#define wxUSE_UNICODE 1
17085EOF
17086
17087fi
17088
17089if test "$wxUSE_WCSRTOMBS" = "yes" ; then
698dcdb6 17090 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17091#define wxUSE_WCSRTOMBS 1
17092EOF
17093
17094fi
17095
17096if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 17097 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17098#define wxUSE_EXPERIMENTAL_PRINTF 1
17099EOF
17100
17101fi
17102
698dcdb6 17103
b12915c1 17104if test "$wxUSE_SERIAL" = "yes" ; then
698dcdb6 17105 cat >> confdefs.h <<\EOF
b12915c1
VZ
17106#define wxUSE_SERIAL 1
17107EOF
17108
17109fi
17110
698dcdb6 17111
10f2d63a
VZ
17112IODBC_C_SRC=""
17113if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 17114 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17115#define wxUSE_ODBC 1
17116EOF
17117
17118 WXODBCFLAG="-D_IODBC_"
17119 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
17120fi
17121
698dcdb6 17122
10f2d63a 17123if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 17124 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17125#define wxUSE_POSTSCRIPT 1
17126EOF
17127
17128fi
17129
698dcdb6 17130cat >> confdefs.h <<\EOF
10f2d63a
VZ
17131#define wxUSE_AFM_FOR_POSTSCRIPT 1
17132EOF
17133
698dcdb6
VZ
17134
17135cat >> confdefs.h <<\EOF
10f2d63a
VZ
17136#define wxUSE_NORMALIZED_PS_FONTS 1
17137EOF
17138
698dcdb6
VZ
17139
17140
10f2d63a 17141if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 17142 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17143#define wxUSE_CONSTRAINTS 1
17144EOF
17145
17146 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
17147fi
17148
17149if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
698dcdb6 17150 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17151#define wxUSE_MDI_ARCHITECTURE 1
17152EOF
17153
17154 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
17155fi
17156
17157if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 17158 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17159#define wxUSE_DOC_VIEW_ARCHITECTURE 1
17160EOF
17161
17162 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
17163 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17164 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
17165 fi
17166fi
17167
17168if test "$wxUSE_HELP" = "yes"; then
698dcdb6 17169 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17170#define wxUSE_HELP 1
17171EOF
17172
17173 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 17174
3e44f09d 17175 if test "$USE_WIN32" = 1; then
031d8228 17176 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
29fd3c0c
VS
17177 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
17178echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
52e8b690 17179echo "configure:17180: checking for htmlhelp.h" >&5
29fd3c0c
VS
17180if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17181 echo $ac_n "(cached) $ac_c" 1>&6
17182else
17183 cat > conftest.$ac_ext <<EOF
52e8b690 17184#line 17185 "configure"
29fd3c0c
VS
17185#include "confdefs.h"
17186#include <htmlhelp.h>
17187EOF
17188ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
52e8b690 17189{ (eval echo configure:17190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
17190ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17191if test -z "$ac_err"; then
17192 rm -rf conftest*
17193 eval "ac_cv_header_$ac_safe=yes"
17194else
17195 echo "$ac_err" >&5
17196 echo "configure: failed program was:" >&5
17197 cat conftest.$ac_ext >&5
17198 rm -rf conftest*
17199 eval "ac_cv_header_$ac_safe=no"
17200fi
17201rm -f conftest*
17202fi
17203if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17204 echo "$ac_t""yes" 1>&6
17205
17206 cat >> confdefs.h <<\EOF
17207#define wxUSE_MS_HTML_HELP 1
17208EOF
17209
17210
17211else
17212 echo "$ac_t""no" 1>&6
17213
2b9bdf71 17214 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h, disabled" 1>&2
29fd3c0c
VS
17215 wxUSE_MS_HTML_HELP=no
17216
17217fi
17218
3e44f09d 17219 fi
3379ed37 17220 fi
031d8228
VS
17221
17222 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17223 if test "$wxUSE_HTML" = "yes"; then
17224 cat >> confdefs.h <<\EOF
17225#define wxUSE_WXHTML_HELP 1
17226EOF
17227
17228 else
17229 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17230 wxUSE_WXHTML_HELP=no
17231 fi
17232 fi
10f2d63a
VZ
17233fi
17234
17235if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17236 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 17237 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 17238 else
698dcdb6 17239 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17240#define wxUSE_PRINTING_ARCHITECTURE 1
17241EOF
17242
17243 fi
17244 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17245fi
17246
17247if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 17248 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17249#define wxUSE_PROLOGIO 1
17250EOF
17251
17252fi
17253
17254if test "$wxUSE_RESOURCES" = "yes" ; then
3379ed37 17255 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17256#define wxUSE_RESOURCES 1
17257EOF
17258
3379ed37 17259 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
10f2d63a
VZ
17260fi
17261
17262if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 17263 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17264#define wxUSE_X_RESOURCES 1
17265EOF
17266
17267fi
17268
698dcdb6 17269
2b9bdf71
VZ
17270if test "$USE_WIN32" = 1; then
17271 for ac_hdr in ole2.h
10f2d63a 17272do
698dcdb6
VZ
17273ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17274echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2b9bdf71 17275echo "configure:17276: checking for $ac_hdr" >&5
698dcdb6
VZ
17276if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17277 echo $ac_n "(cached) $ac_c" 1>&6
17278else
17279 cat > conftest.$ac_ext <<EOF
2b9bdf71 17280#line 17281 "configure"
10f2d63a 17281#include "confdefs.h"
698dcdb6
VZ
17282#include <$ac_hdr>
17283EOF
17284ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2b9bdf71 17285{ (eval echo configure:17286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
17286ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17287if test -z "$ac_err"; then
17288 rm -rf conftest*
17289 eval "ac_cv_header_$ac_safe=yes"
1e487827 17290else
698dcdb6
VZ
17291 echo "$ac_err" >&5
17292 echo "configure: failed program was:" >&5
10f2d63a 17293 cat conftest.$ac_ext >&5
698dcdb6
VZ
17294 rm -rf conftest*
17295 eval "ac_cv_header_$ac_safe=no"
10f2d63a 17296fi
698dcdb6 17297rm -f conftest*
10f2d63a 17298fi
698dcdb6
VZ
17299if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17300 echo "$ac_t""yes" 1>&6
17301 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17302 cat >> confdefs.h <<EOF
17303#define $ac_tr_hdr 1
10f2d63a 17304EOF
698dcdb6
VZ
17305
17306else
17307 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17308fi
17309done
17310
698dcdb6 17311
2b9bdf71
VZ
17312 if test "$ac_cv_header_ole2_h" = "yes" ; then
17313 if test "$GCC" = yes ; then
17314 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
17315 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
17316 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
17317 LIBS="$LIBS -lrpcrt4 -loleaut32 -lole32 -luuid"
17318 cat >> confdefs.h <<\EOF
4f11a343
VS
17319#define wxUSE_OLE 1
17320EOF
17321
b64f0a5f 17322
2b9bdf71
VZ
17323 fi
17324
17325 cat >> confdefs.h <<\EOF
17326#define wxUSE_DATAOBJ 1
17327EOF
17328
17329 else
17330 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
17331
17332 wxUSE_CLIPBOARD=no
17333 wxUSE_DRAG_AND_DROP=no
17334 wxUSE_DATAOBJ=no
17335 fi
17336
17337 if test "$wxUSE_METAFILE" = "yes"; then
17338 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17339#define wxUSE_METAFILE 1
17340EOF
17341
2b9bdf71
VZ
17342
17343 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17344#define wxUSE_ENH_METAFILE 1
17345EOF
17346
2b9bdf71
VZ
17347 fi
17348fi
17349
17350if test "$wxUSE_IPC" = "yes"; then
17351 if test "$wxUSE_SOCKETS" != "yes"; then
17352 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
17353 fi
17354
17355 cat >> confdefs.h <<\EOF
17356#define wxUSE_IPC 1
17357EOF
17358
17359fi
17360
17361if test "$wxUSE_CLIPBOARD" = "yes"; then
17362 cat >> confdefs.h <<\EOF
17363#define wxUSE_CLIPBOARD 1
17364EOF
17365
17366fi
17367
17368if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17369 if test "$wxUSE_GTK" = 1; then
17370 if test "$WXGTK12" != 1; then
17371 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
10f2d63a
VZ
17372 wxUSE_DRAG_AND_DROP=no
17373 fi
17374 fi
17375
2b9bdf71
VZ
17376 if test "$wxUSE_MOTIF" = 1; then
17377 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
17378 wxUSE_DRAG_AND_DROP=no
17379 fi
17380
17381 if test "$wxUSE_MAC" = 1; then
17382 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
17383 wxUSE_DRAG_AND_DROP=no
17384 fi
17385
10f2d63a 17386 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 17387 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17388#define wxUSE_DRAG_AND_DROP 1
17389EOF
17390
17391 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17392 fi
17393
17394fi
17395
17396if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 17397 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17398#define wxUSE_SPLINES 1
17399EOF
17400
17401fi
17402
698dcdb6 17403
1e6feb95
VZ
17404USES_CONTROLS=0
17405if test "$wxUSE_CONTROLS" = "yes"; then
17406 USES_CONTROLS=1
17407fi
17408
10f2d63a 17409if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 17410 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17411#define wxUSE_ACCEL 1
17412EOF
17413
1e6feb95
VZ
17414 USES_CONTROLS=1
17415fi
17416
17417if test "$wxUSE_BUTTON" = "yes"; then
17418 cat >> confdefs.h <<\EOF
17419#define wxUSE_BUTTON 1
17420EOF
17421
17422 USES_CONTROLS=1
17423fi
17424
17425if test "$wxUSE_BMPBUTTON" = "yes"; then
17426 cat >> confdefs.h <<\EOF
17427#define wxUSE_BMPBUTTON 1
17428EOF
17429
17430 USES_CONTROLS=1
17431fi
17432
17433if test "$wxUSE_CALCTRL" = "yes"; then
17434 cat >> confdefs.h <<\EOF
17435#define wxUSE_CALENDARCTRL 1
17436EOF
17437
17438 USES_CONTROLS=1
17439 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
17440fi
17441
17442if test "$wxUSE_CARET" = "yes"; then
698dcdb6 17443 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17444#define wxUSE_CARET 1
17445EOF
17446
1e6feb95 17447 USES_CONTROLS=1
10f2d63a
VZ
17448 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17449fi
17450
17451if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 17452 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17453#define wxUSE_COMBOBOX 1
17454EOF
17455
1e6feb95 17456 USES_CONTROLS=1
10f2d63a
VZ
17457fi
17458
17459if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 17460 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17461#define wxUSE_CHOICE 1
17462EOF
17463
1e6feb95 17464 USES_CONTROLS=1
10f2d63a
VZ
17465fi
17466
17467if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 17468 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17469#define wxUSE_CHECKBOX 1
17470EOF
17471
1e6feb95 17472 USES_CONTROLS=1
10f2d63a
VZ
17473fi
17474
17475if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 17476 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17477#define wxUSE_CHECKLISTBOX 1
17478EOF
17479
1e6feb95 17480 USES_CONTROLS=1
10f2d63a
VZ
17481 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17482fi
17483
17484if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 17485 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17486#define wxUSE_GAUGE 1
17487EOF
17488
1e6feb95 17489 USES_CONTROLS=1
10f2d63a
VZ
17490fi
17491
d6a55c4b
VZ
17492if test "$wxUSE_NEW_GRID" = "yes"; then
17493 wxUSE_GRID="yes"
698dcdb6 17494 cat >> confdefs.h <<\EOF
d6a55c4b 17495#define wxUSE_NEW_GRID 1
10f2d63a
VZ
17496EOF
17497
1e6feb95 17498 USES_CONTROLS=1
d6a55c4b 17499 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
17500fi
17501
d6a55c4b 17502if test "$wxUSE_GRID" = "yes"; then
698dcdb6 17503 cat >> confdefs.h <<\EOF
d6a55c4b 17504#define wxUSE_GRID 1
10f2d63a
VZ
17505EOF
17506
1e6feb95 17507 USES_CONTROLS=1
d6a55c4b 17508 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
17509fi
17510
17511if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17512 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17513#define wxUSE_IMAGLIST 1
17514EOF
17515
17516fi
17517
17518if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 17519 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17520#define wxUSE_LISTBOX 1
17521EOF
17522
1e6feb95 17523 USES_CONTROLS=1
10f2d63a
VZ
17524fi
17525
17526if test "$wxUSE_LISTCTRL" = "yes"; then
17527 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17528 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17529#define wxUSE_LISTCTRL 1
17530EOF
17531
1e6feb95 17532 USES_CONTROLS=1
10f2d63a
VZ
17533 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17534 else
698dcdb6 17535 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17536 fi
17537fi
17538
17539if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 17540 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17541#define wxUSE_NOTEBOOK 1
17542EOF
17543
1e6feb95 17544 USES_CONTROLS=1
10f2d63a
VZ
17545 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17546fi
17547
24176f2c
GD
17548if test "$wxUSE_PROPSHEET" = "yes"; then
17549 cat >> confdefs.h <<\EOF
17550#define wxUSE_PROPSHEET 1
17551EOF
17552
17553 USES_CONTROLS=1
17554 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
17555fi
17556
10f2d63a 17557if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 17558 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17559#define wxUSE_RADIOBOX 1
17560EOF
17561
1e6feb95 17562 USES_CONTROLS=1
10f2d63a
VZ
17563fi
17564
17565if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 17566 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17567#define wxUSE_RADIOBTN 1
17568EOF
17569
1e6feb95 17570 USES_CONTROLS=1
10f2d63a
VZ
17571fi
17572
17573if test "$wxUSE_SASH" = "yes"; then
698dcdb6 17574 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17575#define wxUSE_SASH 1
17576EOF
17577
17578 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17579fi
17580
17581if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 17582 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17583#define wxUSE_SCROLLBAR 1
17584EOF
17585
1e6feb95 17586 USES_CONTROLS=1
741a9306 17587 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
17588fi
17589
17590if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 17591 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17592#define wxUSE_SLIDER 1
17593EOF
17594
1e6feb95 17595 USES_CONTROLS=1
10f2d63a
VZ
17596fi
17597
17598if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 17599 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17600#define wxUSE_SPINBTN 1
17601EOF
17602
1e6feb95 17603 USES_CONTROLS=1
10f2d63a
VZ
17604fi
17605
56cfaa52 17606if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 17607 cat >> confdefs.h <<\EOF
56cfaa52
RR
17608#define wxUSE_SPINCTRL 1
17609EOF
17610
1e6feb95 17611 USES_CONTROLS=1
56cfaa52
RR
17612fi
17613
10f2d63a 17614if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 17615 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17616#define wxUSE_SPLITTER 1
17617EOF
17618
17619 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17620fi
17621
17622if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 17623 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17624#define wxUSE_STATBMP 1
17625EOF
17626
1e6feb95 17627 USES_CONTROLS=1
10f2d63a
VZ
17628fi
17629
17630if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 17631 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17632#define wxUSE_STATBOX 1
17633EOF
17634
1e6feb95
VZ
17635 USES_CONTROLS=1
17636fi
17637
17638if test "$wxUSE_STATTEXT" = "yes"; then
17639 cat >> confdefs.h <<\EOF
17640#define wxUSE_STATTEXT 1
17641EOF
17642
17643 USES_CONTROLS=1
10f2d63a
VZ
17644fi
17645
17646if test "$wxUSE_STATLINE" = "yes"; then
17647 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 17648 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 17649 else
698dcdb6 17650 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17651#define wxUSE_STATLINE 1
17652EOF
17653
1e6feb95 17654 USES_CONTROLS=1
10f2d63a
VZ
17655 fi
17656fi
17657
17658if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 17659 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17660#define wxUSE_STATUSBAR 1
17661EOF
17662
1e6feb95 17663 USES_CONTROLS=1
698dcdb6 17664
2286341c 17665 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
17666fi
17667
17668if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 17669 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17670#define wxUSE_TAB_DIALOG 1
17671EOF
17672
17673 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17674fi
17675
1e6feb95
VZ
17676if test "$wxUSE_TEXTCTRL" = "yes"; then
17677 cat >> confdefs.h <<\EOF
17678#define wxUSE_TEXTCTRL 1
17679EOF
17680
17681 USES_CONTROLS=1
17682 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17683fi
17684
1db8dc4a 17685if test "$wxUSE_TOGGLEBTN" = "yes"; then
a45d7ab7
GD
17686 if test "$wxUSE_MAC" = 1; then
17687 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
17688 wxUSE_TOGGLEBTN=no
17689 fi
17690
17691 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17692 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
17693#define wxUSE_TOGGLEBTN 1
17694EOF
17695
1e6feb95 17696 USES_CONTROLS=1
a45d7ab7 17697 fi
1db8dc4a
VZ
17698fi
17699
360d6699 17700if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 17701 cat >> confdefs.h <<\EOF
360d6699
VZ
17702#define wxUSE_TOOLBAR_SIMPLE 1
17703EOF
17704
17705 wxUSE_TOOLBAR="yes"
1e6feb95 17706 USES_CONTROLS=1
360d6699
VZ
17707fi
17708
10f2d63a 17709if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 17710 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17711#define wxUSE_TOOLBAR 1
17712EOF
17713
1e6feb95 17714 USES_CONTROLS=1
698dcdb6 17715
360d6699
VZ
17716 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17717 wxUSE_TOOLBAR_NATIVE="yes"
17718 fi
17719
1e6feb95
VZ
17720 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17721 cat >> confdefs.h <<\EOF
360d6699
VZ
17722#define wxUSE_TOOLBAR_NATIVE 1
17723EOF
17724
1e6feb95
VZ
17725 USES_CONTROLS=1
17726 fi
17727
17728 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
17729fi
17730
10f2d63a
VZ
17731if test "$wxUSE_TOOLTIPS" = "yes"; then
17732 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 17733 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
10f2d63a
VZ
17734 else
17735 if test "$wxUSE_WINE" = 1; then
698dcdb6 17736 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
10f2d63a 17737 else
698dcdb6 17738 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17739#define wxUSE_TOOLTIPS 1
17740EOF
17741
17742 fi
17743 fi
17744fi
17745
17746if test "$wxUSE_TREECTRL" = "yes"; then
17747 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17748 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17749#define wxUSE_TREECTRL 1
17750EOF
17751
1e6feb95 17752 USES_CONTROLS=1
10f2d63a
VZ
17753 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17754 else
698dcdb6 17755 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17756 fi
17757fi
17758
9f41d601 17759if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65
GD
17760 if test "$wxUSE_MAC" = 1; then
17761 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
17762 else
17763 cat >> confdefs.h <<\EOF
9f41d601
RR
17764#define wxUSE_POPUPWIN 1
17765EOF
17766
6abe4b65
GD
17767 USES_CONTROLS=1
17768 fi
9f41d601
RR
17769fi
17770
1e6feb95
VZ
17771if test "$USES_CONTROLS" = 1; then
17772 cat >> confdefs.h <<\EOF
17773#define wxUSE_CONTROLS 1
10f2d63a
VZ
17774EOF
17775
10f2d63a
VZ
17776fi
17777
1e6feb95 17778
24176f2c
GD
17779if test "$wxUSE_TREELAYOUT" = "yes"; then
17780 cat >> confdefs.h <<\EOF
17781#define wxUSE_TREELAYOUT 1
17782EOF
17783
17784 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
17785fi
1e6feb95 17786
24fd6d87
VZ
17787if test "$wxUSE_DRAGIMAGE" = "yes"; then
17788 cat >> confdefs.h <<\EOF
17789#define wxUSE_DRAGIMAGE 1
17790EOF
17791
17792 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
17793fi
17794
1e6feb95 17795if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 17796 cat >> confdefs.h <<\EOF
1e6feb95 17797#define wxUSE_MENUS 1
10f2d63a
VZ
17798EOF
17799
1e6feb95 17800 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
17801fi
17802
1e6feb95
VZ
17803if test "$wxUSE_METAFILE" = "yes"; then
17804 cat >> confdefs.h <<\EOF
17805#define wxUSE_METAFILE 1
10f2d63a
VZ
17806EOF
17807
10f2d63a
VZ
17808fi
17809
1e6feb95
VZ
17810if test "$wxUSE_MIMETYPE" = "yes"; then
17811 cat >> confdefs.h <<\EOF
17812#define wxUSE_MIMETYPE 1
10f2d63a
VZ
17813EOF
17814
10f2d63a
VZ
17815fi
17816
3e44f09d
VZ
17817if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
17818 cat >> confdefs.h <<\EOF
17819#define wxUSE_SYSTEM_OPTIONS 1
17820EOF
17821
17822fi
17823
10f2d63a 17824if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 17825 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17826#define wxUSE_MINIFRAME 1
17827EOF
17828
17829 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
17830fi
17831
17832if test "$wxUSE_HTML" = "yes"; then
698dcdb6 17833 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17834#define wxUSE_HTML 1
17835EOF
17836
17837 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
17838 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
17839fi
17840
17841if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 17842 cat >> confdefs.h <<\EOF
1e487827
VS
17843#define wxUSE_VALIDATORS 1
17844EOF
703e0a69 17845
698dcdb6
VZ
17846 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
17847fi
17848
17849if test "$wxUSE_IMAGE" = "yes" ; then
17850 cat >> confdefs.h <<\EOF
17851#define wxUSE_IMAGE 1
17852EOF
17853
17854fi
17855
17856if test "$wxUSE_GIF" = "yes" ; then
17857 cat >> confdefs.h <<\EOF
17858#define wxUSE_GIF 1
17859EOF
17860
17861fi
17862
17863if test "$wxUSE_PCX" = "yes" ; then
17864 cat >> confdefs.h <<\EOF
17865#define wxUSE_PCX 1
17866EOF
17867
17868fi
17869
17870if test "$wxUSE_PNM" = "yes" ; then
17871 cat >> confdefs.h <<\EOF
17872#define wxUSE_PNM 1
17873EOF
17874
17875fi
17876
17877if test "$wxUSE_XPM" = "yes" ; then
17878 cat >> confdefs.h <<\EOF
17879#define wxUSE_XPM 1
17880EOF
17881
17882fi
17883
17884
1e6feb95
VZ
17885if test "$wxUSE_CHOICEDLG" = "yes"; then
17886 cat >> confdefs.h <<\EOF
17887#define wxUSE_CHOICEDLG 1
17888EOF
17889
17890fi
17891
17892if test "$wxUSE_COLOURDLG" = "yes"; then
17893 cat >> confdefs.h <<\EOF
17894#define wxUSE_COLOURDLG 1
17895EOF
17896
17897fi
17898
17899if test "$wxUSE_FILEDLG" = "yes"; then
17900 cat >> confdefs.h <<\EOF
17901#define wxUSE_FILEDLG 1
17902EOF
17903
17904fi
17905
8db37e06
VZ
17906if test "$wxUSE_FINDREPLDLG" = "yes"; then
17907 cat >> confdefs.h <<\EOF
17908#define wxUSE_FINDREPLDLG 1
17909EOF
17910
17911fi
17912
1e6feb95
VZ
17913if test "$wxUSE_FONTDLG" = "yes"; then
17914 cat >> confdefs.h <<\EOF
17915#define wxUSE_FONTDLG 1
17916EOF
17917
17918fi
17919
17920if test "$wxUSE_DIRDLG" = "yes"; then
17921 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17922 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
17923 else
17924 if test "$wxUSE_TREECTRL" != "yes"; then
17925 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
17926 else
17927 cat >> confdefs.h <<\EOF
17928#define wxUSE_DIRDLG 1
17929EOF
17930
17931 fi
17932 fi
17933fi
17934
17935if test "$wxUSE_MSGDLG" = "yes"; then
17936 cat >> confdefs.h <<\EOF
17937#define wxUSE_MSGDLG 1
17938EOF
17939
17940fi
17941
17942if test "$wxUSE_NUMBERDLG" = "yes"; then
17943 cat >> confdefs.h <<\EOF
17944#define wxUSE_NUMBERDLG 1
17945EOF
17946
17947fi
17948
17949if test "$wxUSE_PROGRESSDLG" = "yes"; then
17950 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17951 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
17952 else
17953 cat >> confdefs.h <<\EOF
17954#define wxUSE_PROGRESSDLG 1
17955EOF
17956
17957 fi
17958fi
17959
cbca9943
VZ
17960if test "$wxUSE_SPLASH" = "yes"; then
17961 cat >> confdefs.h <<\EOF
17962#define wxUSE_SPLASH 1
17963EOF
17964
17965fi
17966
1e6feb95
VZ
17967if test "$wxUSE_STARTUP_TIPS" = "yes"; then
17968 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17969 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
17970 else
17971 cat >> confdefs.h <<\EOF
17972#define wxUSE_STARTUP_TIPS 1
17973EOF
17974
17975 fi
17976fi
17977
17978if test "$wxUSE_TEXTDLG" = "yes"; then
17979 cat >> confdefs.h <<\EOF
17980#define wxUSE_TEXTDLG 1
17981EOF
17982
17983fi
17984
b1f5d087
VZ
17985if test "$wxUSE_WIZARDDLG" = "yes"; then
17986 cat >> confdefs.h <<\EOF
17987#define wxUSE_WIZARDDLG 1
17988EOF
17989
17990 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
17991fi
17992
1e6feb95 17993
698dcdb6
VZ
17994if test "$cross_compiling" = "yes"; then
17995 OSINFO="\"$host\""
17996else
17997 OSINFO=`uname -s -r -m`
17998 OSINFO="\"$OSINFO\""
17999fi
18000
18001cat >> confdefs.h <<EOF
18002#define WXWIN_OS_DESCRIPTION $OSINFO
18003EOF
18004
18005
18006
06dda230
VZ
18007if test "x$prefix" != "xNONE"; then
18008 wxPREFIX=$prefix
18009else
18010 wxPREFIX=$ac_default_prefix
18011fi
18012
7e67ed0d 18013cat >> confdefs.h <<EOF
06dda230 18014#define wxINSTALL_PREFIX "$wxPREFIX"
7e67ed0d
VZ
18015EOF
18016
18017
18018
698dcdb6
VZ
18019GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
18020OPENGL_LIBS="$OPENGL_LINK"
18021
18022EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
f11bdd03 18023if test "$wxUSE_MAC" = 1 ; then
698dcdb6
VZ
18024 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
18025fi
18026if test "$wxUSE_GUI" = "yes"; then
18027 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
18028fi
18029
18030LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
18031
3e44f09d
VZ
18032INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include \
18033$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
18034$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
698dcdb6
VZ
18035
18036if test "$wxUSE_GTK" = 1; then
18037 WXCONFIG_INCLUDE=""
18038else
18039 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
18040fi
18041
18042if test "$GXX" = yes ; then
18043 CXXWARNINGS="-Wall"
18044 fi
18045EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
18046
18047CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
18048CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
18049
18050LDFLAGS="$LDFLAGS $PROFILE"
18051
18052if test "$wxUSE_GUI" = "yes"; then
18053
24fd6d87 18054 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
24176f2c
GD
18055 drawing dynamic erase event exec font image \
18056 minimal richedit rotate widgets"
1e6feb95
VZ
18057
18058 if test "$wxUSE_UNIVERSAL" = "yes" ; then
18059 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
18060 fi
698dcdb6
VZ
18061
18062 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
18063else
24176f2c 18064 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
18065fi
18066
18067SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
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
32832908
VZ
18135
18136
18137
18138
18139
18140
18141
2224580a 18142
dad6c0ea 18143
f6bcfd97
BP
18144
18145
18146
2f51a9ec
GD
18147
18148
18149
18150
18151
18152
f6bcfd97 18153
dad6c0ea 18154
caa2c79b 18155
3711412e 18156
1e6feb95
VZ
18157
18158
0f3f1cbc 18159
18dbb1f6 18160
10f2d63a
VZ
18161
18162
698dcdb6 18163echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2b9bdf71 18164echo "configure:18165: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
18165set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
18166if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
18167 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18168else
698dcdb6 18169 cat > conftestmake <<\EOF
10f2d63a
VZ
18170all:
18171 @echo 'ac_maketemp="${MAKE}"'
18172EOF
18173# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 18174eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
18175if test -n "$ac_maketemp"; then
18176 eval ac_cv_prog_make_${ac_make}_set=yes
18177else
18178 eval ac_cv_prog_make_${ac_make}_set=no
18179fi
698dcdb6 18180rm -f conftestmake
10f2d63a
VZ
18181fi
18182if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 18183 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
18184 SET_MAKE=
18185else
698dcdb6 18186 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18187 SET_MAKE="MAKE=${MAKE-make}"
18188fi
18189
698dcdb6 18190
00cf1208
RR
18191if test -d include; then
18192 if test -d include/wx; then
1e6feb95
VZ
18193 if test -d include/wx/${SETUPH_DIR}; then
18194 if test -f include/wx/${SETUPH_DIR}/setup.h; then
18195 mv -f include/wx/${SETUPH_DIR}/setup.h setup.h
00cf1208
RR
18196 fi
18197 fi
18198 fi
18199fi
665bbe97 18200
698dcdb6 18201
10f2d63a 18202
2224580a 18203if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 18204 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
18205 wx_cv_path_ifs=$PATH_IFS
18206 wx_cv_program_ext=$PROGRAM_EXT
18207 wx_cv_target_library=$WX_TARGET_LIBRARY
7b6058cd 18208 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
3711412e 18209 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
93a20a27 18210 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
7b6058cd 18211 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
698dcdb6 18212 subdirs="demos samples utils contrib"
2224580a
VZ
18213
18214fi
10f2d63a 18215
698dcdb6
VZ
18216trap '' 1 2 15
18217cat > confcache <<\EOF
10f2d63a
VZ
18218# This file is a shell script that caches the results of configure
18219# tests run on this system so they can be shared between configure
698dcdb6
VZ
18220# scripts and configure runs. It is not useful on other systems.
18221# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 18222#
698dcdb6
VZ
18223# By default, configure uses ./config.cache as the cache file,
18224# creating it if it does not exist already. You can give configure
18225# the --cache-file=FILE option to use a different cache file; that is
18226# what configure does when it calls configure scripts in
18227# subdirectories, so they share the cache.
18228# Giving --cache-file=/dev/null disables caching, for debugging configure.
18229# config.status only pays attention to the cache file if you give it the
18230# --recheck option to rerun configure.
10f2d63a 18231#
698dcdb6 18232EOF
10f2d63a
VZ
18233# The following way of writing the cache mishandles newlines in values,
18234# but we know of no workaround that is simple, portable, and efficient.
18235# So, don't put newlines in cache variables' values.
18236# Ultrix sh set writes to stderr and can't be redirected directly,
18237# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
18238(set) 2>&1 |
18239 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18240 *ac_space=\ *)
18241 # `set' does not quote correctly, so add quotes (double-quote substitution
18242 # turns \\\\ into \\, and sed turns \\ into \).
18243 sed -n \
18244 -e "s/'/'\\\\''/g" \
18245 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18246 ;;
18247 *)
18248 # `set' quotes correctly as required by POSIX, so do not add quotes.
18249 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18250 ;;
18251 esac >> confcache
18252if cmp -s $cache_file confcache; then
18253 :
18254else
10f2d63a 18255 if test -w $cache_file; then
698dcdb6
VZ
18256 echo "updating cache $cache_file"
18257 cat confcache > $cache_file
10f2d63a
VZ
18258 else
18259 echo "not updating unwritable cache $cache_file"
18260 fi
18261fi
18262rm -f confcache
18263
698dcdb6
VZ
18264trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18265
10f2d63a
VZ
18266test "x$prefix" = xNONE && prefix=$ac_default_prefix
18267# Let make expand exec_prefix.
18268test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18269
698dcdb6
VZ
18270# Any assignment to VPATH causes Sun make to only execute
18271# the first set of double-colon rules, so remove it if not needed.
18272# If there is a colon in the path, we need to keep it.
10f2d63a 18273if test "x$srcdir" = x.; then
698dcdb6 18274 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
18275fi
18276
698dcdb6
VZ
18277trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18278
10f2d63a
VZ
18279DEFS=-DHAVE_CONFIG_H
18280
698dcdb6 18281# Without the "./", some shells look in PATH for config.status.
10f2d63a 18282: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
18283
18284echo creating $CONFIG_STATUS
18285rm -f $CONFIG_STATUS
18286cat > $CONFIG_STATUS <<EOF
18287#! /bin/sh
10f2d63a
VZ
18288# Generated automatically by configure.
18289# Run this file to recreate the current configuration.
698dcdb6
VZ
18290# This directory was configured as follows,
18291# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18292#
18293# $0 $ac_configure_args
18294#
10f2d63a 18295# Compiler output produced by configure, useful for debugging
698dcdb6 18296# configure, is in ./config.log if it exists.
1e487827 18297
698dcdb6
VZ
18298ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18299for ac_option
10f2d63a 18300do
698dcdb6 18301 case "\$ac_option" in
10f2d63a 18302 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
18303 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18304 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18305 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18306 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18307 exit 0 ;;
18308 -help | --help | --hel | --he | --h)
18309 echo "\$ac_cs_usage"; exit 0 ;;
18310 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
18311 esac
18312done
18313
698dcdb6
VZ
18314ac_given_srcdir=$srcdir
18315ac_given_INSTALL="$INSTALL"
703e0a69 18316
698dcdb6
VZ
18317trap 'rm -fr `echo "
18318 wx-config
18319 src/make.env
18320 src/makeprog.env
18321 src/makelib.env
18322 Makefile
18323 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 18324EOF
698dcdb6 18325cat >> $CONFIG_STATUS <<EOF
1e487827 18326
698dcdb6
VZ
18327# Protect against being on the right side of a sed subst in config.status.
18328sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18329 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18330$ac_vpsub
18331$extrasub
18332s%@SHELL@%$SHELL%g
18333s%@CFLAGS@%$CFLAGS%g
18334s%@CPPFLAGS@%$CPPFLAGS%g
18335s%@CXXFLAGS@%$CXXFLAGS%g
18336s%@FFLAGS@%$FFLAGS%g
18337s%@DEFS@%$DEFS%g
18338s%@LDFLAGS@%$LDFLAGS%g
18339s%@LIBS@%$LIBS%g
18340s%@exec_prefix@%$exec_prefix%g
18341s%@prefix@%$prefix%g
18342s%@program_transform_name@%$program_transform_name%g
18343s%@bindir@%$bindir%g
18344s%@sbindir@%$sbindir%g
18345s%@libexecdir@%$libexecdir%g
18346s%@datadir@%$datadir%g
18347s%@sysconfdir@%$sysconfdir%g
18348s%@sharedstatedir@%$sharedstatedir%g
18349s%@localstatedir@%$localstatedir%g
18350s%@libdir@%$libdir%g
18351s%@includedir@%$includedir%g
18352s%@oldincludedir@%$oldincludedir%g
18353s%@infodir@%$infodir%g
18354s%@mandir@%$mandir%g
18355s%@host@%$host%g
18356s%@host_alias@%$host_alias%g
18357s%@host_cpu@%$host_cpu%g
18358s%@host_vendor@%$host_vendor%g
18359s%@host_os@%$host_os%g
18360s%@target@%$target%g
18361s%@target_alias@%$target_alias%g
18362s%@target_cpu@%$target_cpu%g
18363s%@target_vendor@%$target_vendor%g
18364s%@target_os@%$target_os%g
18365s%@build@%$build%g
18366s%@build_alias@%$build_alias%g
18367s%@build_cpu@%$build_cpu%g
18368s%@build_vendor@%$build_vendor%g
18369s%@build_os@%$build_os%g
18370s%@CC@%$CC%g
18371s%@CPP@%$CPP%g
18372s%@CXX@%$CXX%g
18373s%@CXXCPP@%$CXXCPP%g
18374s%@RANLIB@%$RANLIB%g
18375s%@AR@%$AR%g
18376s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18377s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18378s%@INSTALL_DATA@%$INSTALL_DATA%g
18379s%@STRIP@%$STRIP%g
18380s%@YACC@%$YACC%g
18381s%@LEX@%$LEX%g
18382s%@LEXLIB@%$LEXLIB%g
18383s%@LN_S@%$LN_S%g
18384s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
698dcdb6
VZ
18385s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18386s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 18387s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
18388s%@X_CFLAGS@%$X_CFLAGS%g
18389s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18390s%@X_LIBS@%$X_LIBS%g
18391s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
18392s%@REZ@%$REZ%g
18393s%@DEREZ@%$DEREZ%g
18394s%@LEX_STEM@%$LEX_STEM%g
18395s%@PATH_IFS@%$PATH_IFS%g
18396s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18397s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18398s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
18399s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
18400s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18401s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
18402s%@WX_LIBRARY@%$WX_LIBRARY%g
18403s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18404s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18405s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
18406s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
18407s%@PROGRAM_EXT@%$PROGRAM_EXT%g
18408s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
18409s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18410s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
18411s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
18412s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18413s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18414s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
18415s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
18416s%@WX_ALL@%$WX_ALL%g
18417s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18418s%@SHARED_LD@%$SHARED_LD%g
18419s%@PIC_FLAG@%$PIC_FLAG%g
18420s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
18421s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18422s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
18423s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
18424s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
18425s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18426s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18427s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18428s%@USE_GUI@%$USE_GUI%g
18429s%@AFMINSTALL@%$AFMINSTALL%g
1e6feb95 18430s%@SETUPH_DIR@%$SETUPH_DIR%g
698dcdb6
VZ
18431s%@TOOLKIT@%$TOOLKIT%g
18432s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
18433s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
18434s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
18435s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
1e6feb95 18436s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
698dcdb6
VZ
18437s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18438s%@ALL_OBJECTS@%$ALL_OBJECTS%g
18439s%@ALL_DEPFILES@%$ALL_DEPFILES%g
18440s%@GUIDIST@%$GUIDIST%g
18441s%@PORT_FILES@%$PORT_FILES%g
18442s%@DISTDIR@%$DISTDIR%g
18443s%@RPM_SPEC@%$RPM_SPEC%g
18444s%@RPM_FILES@%$RPM_FILES%g
18445s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
18446s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
18447s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
18448s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
18449s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
18450s%@USER_SUBDIRS@%$USER_SUBDIRS%g
18451s%@EXTRA_LIBS@%$EXTRA_LIBS%g
18452s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18453s%@EXTRADEFS@%$EXTRADEFS%g
18454s%@LD_LIBS@%$LD_LIBS%g
18dbb1f6 18455s%@WXMSW_DLL_DEFINES@%$WXMSW_DLL_DEFINES%g
698dcdb6
VZ
18456s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
18457s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
18458s%@RESPROGRAM@%$RESPROGRAM%g
18459s%@RESCOMP@%$RESCOMP%g
18460s%@RESFLAGS@%$RESFLAGS%g
18461s%@REZFLAGS@%$REZFLAGS%g
18462s%@DEREZFLAGS@%$DEREZFLAGS%g
18463s%@LIBWXMACRES@%$LIBWXMACRES%g
18464s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18465s%@DLLTOOL@%$DLLTOOL%g
18466s%@AS@%$AS%g
18467s%@NM@%$NM%g
18468s%@LD@%$LD%g
18469s%@MAKEINFO@%$MAKEINFO%g
18470s%@SET_MAKE@%$SET_MAKE%g
18471s%@subdirs@%$subdirs%g
1e487827 18472
1e487827 18473CEOF
1e487827
VS
18474EOF
18475
698dcdb6
VZ
18476cat >> $CONFIG_STATUS <<\EOF
18477
18478# Split the substitutions into bite-sized pieces for seds with
18479# small command number limits, like on Digital OSF/1 and HP-UX.
18480ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18481ac_file=1 # Number of current file.
18482ac_beg=1 # First line for current file.
18483ac_end=$ac_max_sed_cmds # Line after last line for current file.
18484ac_more_lines=:
18485ac_sed_cmds=""
18486while $ac_more_lines; do
18487 if test $ac_beg -gt 1; then
18488 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18489 else
18490 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18491 fi
18492 if test ! -s conftest.s$ac_file; then
18493 ac_more_lines=false
18494 rm -f conftest.s$ac_file
18495 else
18496 if test -z "$ac_sed_cmds"; then
18497 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 18498 else
698dcdb6 18499 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 18500 fi
698dcdb6
VZ
18501 ac_file=`expr $ac_file + 1`
18502 ac_beg=$ac_end
18503 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 18504 fi
698dcdb6
VZ
18505done
18506if test -z "$ac_sed_cmds"; then
18507 ac_sed_cmds=cat
18508fi
18509EOF
10f2d63a 18510
698dcdb6
VZ
18511cat >> $CONFIG_STATUS <<EOF
18512
18513CONFIG_FILES=\${CONFIG_FILES-"wx-config
18514 src/make.env
18515 src/makeprog.env
18516 src/makelib.env
18517 Makefile
18518 "}
10f2d63a 18519EOF
698dcdb6
VZ
18520cat >> $CONFIG_STATUS <<\EOF
18521for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 18522 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
18523 case "$ac_file" in
18524 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18525 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18526 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
18527 esac
18528
698dcdb6 18529 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 18530
698dcdb6
VZ
18531 # Remove last slash and all that follows it. Not all systems have dirname.
18532 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18533 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18534 # The file is in a subdirectory.
18535 test ! -d "$ac_dir" && mkdir "$ac_dir"
18536 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 18537 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 18538 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
18539 else
18540 ac_dir_suffix= ac_dots=
18541 fi
18542
698dcdb6
VZ
18543 case "$ac_given_srcdir" in
18544 .) srcdir=.
18545 if test -z "$ac_dots"; then top_srcdir=.
18546 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18547 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 18548 *) # Relative path.
698dcdb6
VZ
18549 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18550 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
18551 esac
18552
698dcdb6
VZ
18553 case "$ac_given_INSTALL" in
18554 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18555 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
18556 esac
18557
698dcdb6
VZ
18558 echo creating "$ac_file"
18559 rm -f "$ac_file"
18560 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18561 case "$ac_file" in
18562 *Makefile*) ac_comsub="1i\\
18563# $configure_input" ;;
18564 *) ac_comsub= ;;
18565 esac
10f2d63a 18566
698dcdb6
VZ
18567 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18568 sed -e "$ac_comsub
18569s%@configure_input@%$configure_input%g
18570s%@srcdir@%$srcdir%g
18571s%@top_srcdir@%$top_srcdir%g
18572s%@INSTALL@%$INSTALL%g
18573" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18574fi; done
18575rm -f conftest.s*
10f2d63a
VZ
18576
18577# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18578# NAME is the cpp macro being defined and VALUE is the value it is being given.
18579#
18580# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
18581ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18582ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18583ac_dC='\3'
18584ac_dD='%g'
18585# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18586ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18587ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 18588ac_uC=' '
698dcdb6
VZ
18589ac_uD='\4%g'
18590# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18591ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18592ac_eB='$%\1#\2define\3'
18593ac_eC=' '
18594ac_eD='%g'
10f2d63a 18595
698dcdb6
VZ
18596if test "${CONFIG_HEADERS+set}" != set; then
18597EOF
18598cat >> $CONFIG_STATUS <<EOF
18599 CONFIG_HEADERS="setup.h:setup.h.in"
18600EOF
18601cat >> $CONFIG_STATUS <<\EOF
18602fi
18603for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 18604 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
18605 case "$ac_file" in
18606 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18607 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18608 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
18609 esac
18610
698dcdb6
VZ
18611 echo creating $ac_file
18612
18613 rm -f conftest.frag conftest.in conftest.out
18614 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18615 cat $ac_file_inputs > conftest.in
18616
18617EOF
18618
18619# Transform confdefs.h into a sed script conftest.vals that substitutes
18620# the proper values into config.h.in to produce config.h. And first:
18621# Protect against being on the right side of a sed subst in config.status.
18622# Protect against being in an unquoted here document in config.status.
18623rm -f conftest.vals
18624cat > conftest.hdr <<\EOF
18625s/[\\&%]/\\&/g
18626s%[\\$`]%\\&%g
18627s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18628s%ac_d%ac_u%gp
18629s%ac_u%ac_e%gp
18630EOF
18631sed -n -f conftest.hdr confdefs.h > conftest.vals
18632rm -f conftest.hdr
10f2d63a
VZ
18633
18634# This sed command replaces #undef with comments. This is necessary, for
18635# example, in the case of _POSIX_SOURCE, which is predefined and required
18636# on some systems where configure will not decide to define it.
698dcdb6
VZ
18637cat >> conftest.vals <<\EOF
18638s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
18639EOF
18640
698dcdb6
VZ
18641# Break up conftest.vals because some shells have a limit on
18642# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
18643
18644rm -f conftest.tail
698dcdb6 18645while :
10f2d63a 18646do
698dcdb6
VZ
18647 ac_lines=`grep -c . conftest.vals`
18648 # grep -c gives empty output for an empty file on some AIX systems.
18649 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18650 # Write a limited-size here document to conftest.frag.
18651 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18652 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 18653 echo 'CEOF
698dcdb6
VZ
18654 sed -f conftest.frag conftest.in > conftest.out
18655 rm -f conftest.in
18656 mv conftest.out conftest.in
18657' >> $CONFIG_STATUS
18658 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18659 rm -f conftest.vals
18660 mv conftest.tail conftest.vals
10f2d63a 18661done
698dcdb6
VZ
18662rm -f conftest.vals
18663
18664cat >> $CONFIG_STATUS <<\EOF
18665 rm -f conftest.frag conftest.h
18666 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18667 cat conftest.in >> conftest.h
18668 rm -f conftest.in
18669 if cmp -s $ac_file conftest.h 2>/dev/null; then
18670 echo "$ac_file is unchanged"
18671 rm -f conftest.h
10f2d63a 18672 else
698dcdb6
VZ
18673 # Remove last slash and all that follows it. Not all systems have dirname.
18674 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 18675 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
18676 # The file is in a subdirectory.
18677 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 18678 fi
698dcdb6
VZ
18679 rm -f $ac_file
18680 mv conftest.h $ac_file
10f2d63a 18681 fi
698dcdb6
VZ
18682fi; done
18683
10f2d63a 18684EOF
698dcdb6 18685cat >> $CONFIG_STATUS <<EOF
10f2d63a 18686
1e6feb95 18687 SETUPH_DIR="${SETUPH_DIR}"
698dcdb6
VZ
18688 TOOLKIT_NAME="${TOOLKIT_NAME}"
18689 LN_S="${LN_S}"
18690
18691
18692EOF
18693cat >> $CONFIG_STATUS <<\EOF
10f2d63a 18694
6ef41520 18695 if test ! -f wx${TOOLKIT_NAME}-config; then
991a5759
VZ
18696 chmod +x wx-config
18697 mv wx-config wx${TOOLKIT_NAME}-config
18698 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
18699 fi
665bbe97 18700
698dcdb6 18701
00cf1208
RR
18702 if test ! -d lib; then
18703 mkdir lib
18704 fi
18705 if test ! -d lib/wx; then
18706 mkdir lib/wx
18707 fi
18708 if test ! -d lib/wx/include; then
18709 mkdir lib/wx/include
18710 fi
18711 if test ! -d lib/wx/include/wx; then
18712 mkdir lib/wx/include/wx
18713 fi
f6bcfd97
BP
18714 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
18715 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
00cf1208
RR
18716 fi
18717 if test -f setup.h; then
066b00aa 18718 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
00cf1208 18719 fi
07eb77a6 18720
698dcdb6 18721
10f2d63a
VZ
18722 if test ! -d include; then
18723 mkdir include
18724 fi
18725 if test ! -d include/wx; then
18726 mkdir include/wx
18727 fi
1e6feb95
VZ
18728 if test ! -d include/wx/${SETUPH_DIR}; then
18729 mkdir include/wx/${SETUPH_DIR}
10f2d63a 18730 fi
afc31813 18731 if test -f setup.h; then
1e6feb95 18732 cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h
afc31813 18733 fi
665bbe97 18734
698dcdb6
VZ
18735
18736exit 0
10f2d63a
VZ
18737EOF
18738chmod +x $CONFIG_STATUS
698dcdb6
VZ
18739rm -fr confdefs* $ac_clean_files
18740test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 18741
2224580a
VZ
18742if test "$no_recursion" != yes; then
18743
18744 # Remove --cache-file and --srcdir arguments so they do not pile up.
18745 ac_sub_configure_args=
18746 ac_prev=
18747 for ac_arg in $ac_configure_args; do
18748 if test -n "$ac_prev"; then
18749 ac_prev=
18750 continue
18751 fi
698dcdb6 18752 case "$ac_arg" in
2224580a
VZ
18753 -cache-file | --cache-file | --cache-fil | --cache-fi \
18754 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18755 ac_prev=cache_file ;;
18756 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 18757 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
18758 ;;
18759 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18760 ac_prev=srcdir ;;
18761 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18762 ;;
18763 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18764 esac
18765 done
18766
698dcdb6 18767 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
18768
18769 # Do not complain, so a configure script can configure whichever
18770 # parts of a large source tree are present.
698dcdb6
VZ
18771 if test ! -d $srcdir/$ac_config_dir; then
18772 continue
18773 fi
18774
18775 echo configuring in $ac_config_dir
2224580a 18776
698dcdb6 18777 case "$srcdir" in
2224580a
VZ
18778 .) ;;
18779 *)
698dcdb6
VZ
18780 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18781 else
18782 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18783 fi
18784 ;;
2224580a
VZ
18785 esac
18786
18787 ac_popdir=`pwd`
698dcdb6 18788 cd $ac_config_dir
2224580a 18789
698dcdb6
VZ
18790 # A "../" for each directory in /$ac_config_dir.
18791 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 18792
698dcdb6 18793 case "$srcdir" in
2224580a
VZ
18794 .) # No --srcdir option. We are building in place.
18795 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
18796 /*) # Absolute path.
18797 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 18798 *) # Relative path.
698dcdb6 18799 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
18800 esac
18801
18802 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
18803 if test -f $ac_sub_srcdir/configure; then
18804 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
18805 elif test -f $ac_sub_srcdir/configure.in; then
18806 ac_sub_configure=$ac_configure
18807 else
698dcdb6 18808 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
18809 ac_sub_configure=
18810 fi
18811
18812 # The recursion is here.
18813 if test -n "$ac_sub_configure"; then
698dcdb6 18814
2224580a 18815 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
18816 case "$cache_file" in
18817 /*) ac_sub_cache_file=$cache_file ;;
2224580a 18818 *) # Relative path.
698dcdb6 18819 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 18820 esac
698dcdb6
VZ
18821 case "$ac_given_INSTALL" in
18822 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18823 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18824 esac
2224580a 18825
698dcdb6 18826 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 18827 # The eval makes quoting arguments work.
698dcdb6
VZ
18828 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
18829 then :
18830 else
18831 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
18832 fi
2224580a
VZ
18833 fi
18834
18835 cd $ac_popdir
18836 done
18837fi
18838
698dcdb6 18839